@mongodb-js/compass-aggregations 8.14.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md ADDED
@@ -0,0 +1,270 @@
1
+ # compass-aggregations
2
+
3
+ > Compass Plugin for the MongoDB Aggregation Pipeline Builder.
4
+
5
+ [![](https://docs.mongodb.com/compass/master/_images/agg-builder-export-dropdown.png)](https://docs.mongodb.com/compass/master/aggregation-pipeline-builder/)
6
+
7
+ ## Code Tour
8
+
9
+ - `src/components/aggregations` The primary export is connected component
10
+ - `src/modules/` is where action happens
11
+ - action creators components call
12
+ - reducers that call dataService, window.open, emit to other plugins, etc.
13
+ - follows the `ducks` pattern
14
+ - `src/stores/store` is where plugin listens+responds to events of interest from other plugins
15
+ - store is global state instantiated via `configureStore()`
16
+ - All tests are local to their module e.g. `src/*/<module>.spec.js`
17
+
18
+ ### Note: Cross-plugin Communication
19
+
20
+ > How does clicking on export to language button in aggregation builder show the modal that has code in it?
21
+
22
+ The aggregation builder in Compass actually involves 2 Compass plugins:
23
+
24
+ - [`<Aggregation />`](https://github.com/mongodb-js/compass-aggregations) Plugin for primary UI
25
+ - [`<ExportToLanguage />`](https://github.com/mongodb-js/compass-export-to-language) Modal plugin that connects `<Aggregation />` to `bson-transpilers` [for actual compiling to another language](https://github.com/mongodb-js/bson-transpilers)
26
+
27
+ Here's how these 2 plugins come together:
28
+
29
+ - `./src/modules/export-to-language.js` `appRegistry.emit('open-aggregation-export-to-language', generatePipelineAsString())`
30
+ - [`compass-export-to-language/src/stores/store.js`](https://github.com/mongodb-js/compass-export-to-language/blob/master/src/stores/store.js#L16) Listener for 'export to lang' event via appRegistry and renders its modal.
31
+ - [`compass-export-to-language/src/modules/export-query.js`](https://github.com/mongodb-js/compass-export-to-language/blob/master/src/modules/export-query.js#L56) has reducer for calling `bson-transpilers.compile()` which populates the code in the modal dialog.
32
+
33
+ ### Usage with a `mongodb-data-service` Provider
34
+
35
+ See `./examples-data-service-provider.js` for details on what `data-service` functions are used and the applicable options for each.
36
+
37
+ ## Contributing
38
+
39
+ If you're interested in helping with the Aggregation Builder plugin, we'd be over the moon excited! Here are a few ideas if you're interested but not sure where to start:
40
+
41
+ - [Add a new example aggregation](https://github.com/mongodb-js/compass-aggregations/#adding-new-examples)
42
+ - Additions/clarifications/improvements to `README`'s
43
+ - More tests (especially edge cases!)
44
+ - Generate `jsdoc` html to include in GitHub pages
45
+ - Improve build times (e.g. audit our webpack configs)
46
+
47
+ ## Related
48
+
49
+ - [`<ExportToLanguage />`](https://github.com/mongodb-js/compass-export-to-language) Modal plugin that connects `<Aggregation />` to `bson-transpilers` [for actual compiling to another language](https://github.com/mongodb-js/bson-transpilers)
50
+ - [`mongodb-js/stage-validator`](https://github.com/mongodb-js/stage-validator) Aggregation Pipeline Stage grammar.
51
+ - [`bson-transpilers`](https://github.com/mongodb-js/bson-transpilers) Read the amazing: [Compiler in JavaScript using ANTLR](https://medium.com/dailyjs/compiler-in-javascript-using-antlr-9ec53fd2780f)
52
+ - [`mongodb-js/ace-mode`](https://github.com/mongodb-js/ace-mode) MongoDB highlighting rules for ACE.
53
+ - [`mongodb-js/ace-theme`](https://github.com/mongodb-js/ace-theme) MongoDB syntax highlighting rules for ACE.
54
+ - [`mongodb-js/ace-autocompleter`](https://github.com/mongodb-js/ace-autocompleter) Makes ACE autocompletion aware of MongoDB Aggregation Pipeline [operators, expressions, and fields](https://github.com/mongodb-js/ace-autocompleter/tree/master/lib/constants).
55
+
56
+ ## Usage
57
+
58
+ This plugin uses an instance of a Redux store and not the traditional singleton,
59
+ so the store instance must be passed to the plugin. The plugin exports a function
60
+ to initialise the store instance, which decorates it with various methods to
61
+ conveniently set any values it uses.
62
+
63
+ This is for:
64
+ - `@mongodb-js/compass-aggregations 4.0.0-beta.11`
65
+ - `@mongodb-js/compass-export-to-language 4.0.2`
66
+
67
+ ### Browser
68
+
69
+ Setting values via configure:
70
+
71
+ ```js
72
+ import AppRegistry from 'hadron-app-registry';
73
+ import AggregationsPlugin, {
74
+ configureStore as configureAggregationsStore
75
+ } from '@mongodb-js/compass-aggregations';
76
+ import ExportToLanguagePlugin, {
77
+ configureStore as configureExportToLanguageStore
78
+ } from '@mongodb-js/compass-export-to-language';
79
+
80
+ const handleOut = (namespace) => {
81
+ window.open(`https://cloud.mongodb.com/${namespace}`, '_new');
82
+ };
83
+
84
+ const handleCopy = (query) => {
85
+ alert(query);
86
+ };
87
+
88
+ const appRegistry = new AppRegistry();
89
+
90
+ const aggregationsStore = configureAggregationsStore({
91
+ dataProvider: {
92
+ error: null,
93
+ dataProvider: dataProvider
94
+ },
95
+ namespace: 'db.coll',
96
+ serverVersion: '4.2.0',
97
+ fields: [],
98
+ isAtlasDeployed: true,
99
+ allowWrites: false,
100
+ outResultsFn: handleOut,
101
+ env: 'atlas',
102
+ localAppRegistry: appRegistry
103
+ });
104
+
105
+ const exportToLanguageStore = configureExportToLanguageStore({
106
+ localAppRegistry: appRegistry,
107
+ copyToClipboardFn: handleCopy
108
+ });
109
+
110
+ <AggregationsPlugin store={aggregationsStore} />
111
+ <ExportToLanguagePlugin store={exportToLanguageStore} />
112
+ ```
113
+
114
+ ### Hadron/Electron
115
+
116
+ ```js
117
+ const role = appRegistry.getRole('Collection.Tab')[0];
118
+ const Plugin = role.component;
119
+ const configureStore = role.configureStore;
120
+ const store = configureStore({
121
+ globalAppRegistry: appRegistry,
122
+ localAppRegistry: localAppRegistry,
123
+ dataProvider: {
124
+ error: null,
125
+ dataProvider: dataProvider
126
+ },
127
+ env: 'on-prem',
128
+ namespace: 'db.coll',
129
+ serverVersion: '4.2.0',
130
+ fields: []
131
+ });
132
+
133
+ <Plugin store={store} />
134
+ ```
135
+
136
+ ### Fields
137
+
138
+ The fields array must be an array of objects that the ACE editor autocompleter understands. See
139
+ [This example](https://github.com/mongodb-js/ace-autocompleter/blob/master/lib/constants/accumulators.js)
140
+ for what that array looks like.
141
+
142
+ ### Data Provider
143
+
144
+ The data provider is an object that must adhere to the following interface:
145
+
146
+ ```js
147
+ /**
148
+ * Get a count of documents.
149
+ *
150
+ * @param {String} namespace - The namespace in "db.collection" format.
151
+ * @param {Object} filter - The MQL query filter.
152
+ * @param {Object} options - The query options.
153
+ * @param {Function} callback - Gets error and integer count as params.
154
+ */
155
+ provider.count(namespace, filter, options, callback);
156
+
157
+ /**
158
+ * Execute an aggregation pipeline.
159
+ *
160
+ * @param {String} namespace - The namespace in "db.collection" format.
161
+ * @param {Array} pipeline - The pipeline.
162
+ * @param {Object} options - The agg options.
163
+ * @param {Function} callback - Gets error and cursor as params. Cursor must
164
+ * implement #toArray (which takes a callback with error and an array of result docs)
165
+ * and #close
166
+ */
167
+ provider.aggregate(namespace, pipeline, options, callback);
168
+ ```
169
+
170
+ ### App Registry Events Emmitted
171
+ Various actions within this plugin will emit events for other parts of the
172
+ application can be listened to via [hadron-app-registry][hadron-app-registry].
173
+ `Local` events are scoped to a `Tab`.
174
+ `Global` events are scoped to the whole Compass application.
175
+
176
+ #### Global
177
+ - **'open-create-view'**: Indicated `Create View` is to be opened.
178
+ - **'compass:export-to-language:opened', source**: Indicates
179
+ `export-to-language` was opened. `source` refers to the module it is opened
180
+ from, in this case `Aggregations`.
181
+ - **'compass:aggregations:pipeline-imported'**: Indicates a pipeline ws
182
+ imported, either from pasting the pipeline in, or from using the import
183
+ functionality. Sends data to metrics.
184
+ - **'compass:aggregations:create-view', numOfStages**: Indicates `Create View` was
185
+ successful. `numOfStages` refers to pipeline length. Sends data to metrics.
186
+ - **'compass:aggregations:pipeline-opened'**: Indicates a saved pipeline was
187
+ opened. Sends pipeline data to metrics.
188
+ - **'open-namespace-in-new-tab'**: Indicates current pipeline's namespace is to
189
+ be opened in a new tab. Called when `Create View` is successful, when
190
+ `$merge` are to be shown, when `$out` results are to be shown.
191
+ - **'compass:aggregations:update-view', numOfStages**: Indicates a pipeline view
192
+ was updated. `numOfStages` refers to the length of the pipeline. Sends data to
193
+ metrics.
194
+ - **'compass:aggregations:settings-applied', settings**: Indicates pipeline
195
+ settings are to be applied. `settings` include: `isExpanded`, `isCommentMode`,
196
+ `isDirty`, `sampleSize`, `maxTimeMS`, `limit`.
197
+ - **'refresh-data'**: Indicates a data refresh is required within Compass.
198
+ - **'select-namespace', metadata**: Indicates a namespace is being selected.
199
+ Emitted when updating a collection. `metadata` refers to information about the
200
+ pipeline.
201
+ - **'agg-pipeline-deleted'**: Indicates a pipeline was deleted. Sends pipeline
202
+ data to metrics.
203
+ - **'agg-pipeline-saved', pipelineName**: Indicates a pipeline was saved
204
+ locally. Sens pipeline data to analytics.
205
+ - **'agg-pipeline-executed', metadata**: Indicates a pipeline was executed.
206
+ `metadata` refers to data about the pipeline. Sends pipeline data to metrics.
207
+ - **'agg-pipeline-out-executed', pipelineId**: Indicates a pipeline was executed
208
+ with a `$out`. Sends pipeline data to metrics.
209
+
210
+ #### Local
211
+ - **'open-aggregation-export-to-language', pipeline**: Indicates
212
+ `export-to-language` plugin is to opened. `pipeline` refers to the pipeline to
213
+ be exported.
214
+ - **'open-create-view', { meta: { source, pipeline }}**: Indicates `Create
215
+ View` is being opened.
216
+
217
+ ### App Registry Events Received
218
+ #### Local
219
+ - **'import-finished'**: When import data was successful, refresh plugin's input
220
+ data.
221
+ - **'fields-changed', fields**: Received when schema fields change. Updates
222
+ plugin's fields.
223
+ - **'refresh-data'**: Received when Compass data was refreshed. Refreshes input
224
+ data in the plugin.
225
+ - **'open-create-view', { meta: { source, pipeline }}**: Received when `Create
226
+ View` is to be opened. Opens a Create View modal.
227
+
228
+ #### Global
229
+ - **'refresh-data'**: Received when Input data is to be refreshed on Compass
230
+ level. Refreshes plugin's input.
231
+
232
+ ### Metrics Events
233
+ - `refresh-data`
234
+ - `open-create-view`
235
+ - `agg-pipeline-saved`
236
+ - `agg-pipeline-deleted`
237
+ - `agg-pipeline-executed`
238
+ - `agg-pipeline-out-executed`
239
+ - `compass:aggregations:update-view`
240
+ - `compass:aggregations:create-view`
241
+ - `compass:aggregations:pipeline-opened`
242
+ - `compass:aggregations:settings-applied`
243
+ - `compass:aggregations:pipeline-imported`
244
+
245
+ ## Development
246
+
247
+ ### Tests
248
+
249
+ ```shell
250
+ npm run test
251
+ ```
252
+
253
+ ### Electron
254
+
255
+ ```shell
256
+ npm start
257
+ ```
258
+
259
+ ### Analyze Build
260
+
261
+ ```shell
262
+ npm run analyze
263
+ ```
264
+
265
+ ## Install
266
+ ```shell
267
+ npm i -S @mongodb-js/compass-aggregations
268
+ ```
269
+
270
+ [hadron-app-registry]: https://github.com/mongodb-js/hadron-app-registry
package/lib/index.js ADDED
@@ -0,0 +1,36 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("hadron-react-components"),require("hadron-react-buttons"),require("@mongodb-js/compass-components"),require("react-bootstrap"),require("mongodb-ace-autocompleter"),require("bson"),require("mongodb-query-parser"),require("react-dom"),require("@leafygreen-ui/logo"),require("react-ace"),require("@mongodb-js/compass-crud"),require("@leafygreen-ui/badge"),require("mongodb-ace-mode"),require("mongodb-ace-theme"),require("async"),require("@leafygreen-ui/banner")):"function"==typeof define&&define.amd?define(["prop-types","react","hadron-react-components","hadron-react-buttons","@mongodb-js/compass-components","react-bootstrap","mongodb-ace-autocompleter","bson","mongodb-query-parser","react-dom","@leafygreen-ui/logo","react-ace","@mongodb-js/compass-crud","@leafygreen-ui/badge","mongodb-ace-mode","mongodb-ace-theme","async","@leafygreen-ui/banner"],t):"object"==typeof exports?exports.AggregationsPlugin=t(require("prop-types"),require("react"),require("hadron-react-components"),require("hadron-react-buttons"),require("@mongodb-js/compass-components"),require("react-bootstrap"),require("mongodb-ace-autocompleter"),require("bson"),require("mongodb-query-parser"),require("react-dom"),require("@leafygreen-ui/logo"),require("react-ace"),require("@mongodb-js/compass-crud"),require("@leafygreen-ui/badge"),require("mongodb-ace-mode"),require("mongodb-ace-theme"),require("async"),require("@leafygreen-ui/banner")):e.AggregationsPlugin=t(e["prop-types"],e.react,e["hadron-react-components"],e["hadron-react-buttons"],e["@mongodb-js/compass-components"],e["react-bootstrap"],e["mongodb-ace-autocompleter"],e.bson,e["mongodb-query-parser"],e["react-dom"],e["@leafygreen-ui/logo"],e["react-ace"],e["@mongodb-js/compass-crud"],e["@leafygreen-ui/badge"],e["mongodb-ace-mode"],e["mongodb-ace-theme"],e.async,e["@leafygreen-ui/banner"])}(window,(function(e,t,n,i,r,s,o,a,l,u,c,h,p,d,f,g,m,v){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./",n(n.s=241)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){!function(e){"use strict";var t={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},n="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",i={5:n,"5module":n+" export import",6:n+" const class extends export import super"},r=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",a=new RegExp("["+s+"]"),l=new RegExp("["+s+o+"]");s=o=null;var u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],c=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function h(e,t){for(var n=65536,i=0;i<t.length;i+=2){if((n+=t[i])>e)return!1;if((n+=t[i+1])>=e)return!0}}function p(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&a.test(String.fromCharCode(e)):!1!==t&&h(e,u)))}function d(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&(h(e,u)||h(e,c)))))}var f=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function g(e,t){return new f(e,{beforeExpr:!0,binop:t})}var m={beforeExpr:!0},v={startsExpr:!0},y={};function b(e,t){return void 0===t&&(t={}),t.keyword=e,y[e]=new f(e,t)}var w={num:new f("num",v),regexp:new f("regexp",v),string:new f("string",v),name:new f("name",v),privateId:new f("privateId",v),eof:new f("eof"),bracketL:new f("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:!0,startsExpr:!0}),braceR:new f("}"),parenL:new f("(",{beforeExpr:!0,startsExpr:!0}),parenR:new f(")"),comma:new f(",",m),semi:new f(";",m),colon:new f(":",m),dot:new f("."),question:new f("?",m),questionDot:new f("?."),arrow:new f("=>",m),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",m),backQuote:new f("`",v),dollarBraceL:new f("${",{beforeExpr:!0,startsExpr:!0}),eq:new f("=",{beforeExpr:!0,isAssign:!0}),assign:new f("_=",{beforeExpr:!0,isAssign:!0}),incDec:new f("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new f("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:g("||",1),logicalAND:g("&&",2),bitwiseOR:g("|",3),bitwiseXOR:g("^",4),bitwiseAND:g("&",5),equality:g("==/!=/===/!==",6),relational:g("</>/<=/>=",7),bitShift:g("<</>>/>>>",8),plusMin:new f("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:g("%",10),star:g("*",10),slash:g("/",10),starstar:new f("**",{beforeExpr:!0}),coalesce:g("??",1),_break:b("break"),_case:b("case",m),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",m),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",m),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",v),_if:b("if"),_return:b("return",m),_switch:b("switch"),_throw:b("throw",m),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",v),_super:b("super",v),_class:b("class",v),_extends:b("extends",m),_export:b("export"),_import:b("import",v),_null:b("null",v),_true:b("true",v),_false:b("false",v),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,C=new RegExp(x.source,"g");function E(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var A=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,S=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,k=D.hasOwnProperty,F=D.toString;function _(e,t){return k.call(e,t)}var T=Array.isArray||function(e){return"[object Array]"===F.call(e)};function O(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var P=function(e,t){this.line=e,this.column=t};P.prototype.offset=function(e){return new P(this.line,this.column+e)};var R=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function B(e,t){for(var n=1,i=0;;){C.lastIndex=i;var r=C.exec(e);if(!(r&&r.index<t))return new P(n,t-i);++n,i=r.index+r[0].length}}var L={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},M=!1;function I(e){var t={};for(var n in L)t[n]=e&&_(e,n)?e[n]:L[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!M&&"object"==typeof console&&console.warn&&(M=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),T(t.onToken)){var i=t.onToken;t.onToken=function(e){return i.push(e)}}return T(t.onComment)&&(t.onComment=function(e,t){return function(n,i,r,s,o,a){var l={type:n?"Block":"Line",value:i,start:r,end:s};e.locations&&(l.loc=new R(this,o,a)),e.ranges&&(l.range=[r,s]),t.push(l)}}(t,t.onComment)),t}function N(e,t){return 2|(e?4:0)|(t?8:0)}var $=function(e,n,r){this.options=e=I(e),this.sourceFile=e.sourceFile,this.keywords=O(i[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var s="";!0!==e.allowReserved&&(s=t[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(s+=" await")),this.reservedWords=O(s);var o=(s?s+" ":"")+t.strict;this.reservedWordsStrict=O(o),this.reservedWordsStrictBind=O(o+" "+t.strictBind),this.input=String(n),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=w.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},j={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},inNonArrowFunction:{configurable:!0}};$.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},j.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},j.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},j.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},j.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},j.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},j.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},j.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},j.inNonArrowFunction.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(2&t)>0||n},$.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,i=0;i<e.length;i++)n=e[i](n);return n},$.parse=function(e,t){return new this(t,e).parse()},$.parseExpressionAt=function(e,t,n){var i=new this(n,e,t);return i.nextToken(),i.parseExpression()},$.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties($.prototype,j);var V=$.prototype,z=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function W(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}V.strictDirective=function(e){for(;;){S.lastIndex=e,e+=S.exec(this.input)[0].length;var t=z.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){S.lastIndex=e+t[0].length;var n=S.exec(this.input),i=n.index+n[0].length,r=this.input.charAt(i);return";"===r||"}"===r||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(i+1))}e+=t[0].length,S.lastIndex=e,e+=S.exec(this.input)[0].length,";"===this.input[e]&&e++}},V.eat=function(e){return this.type===e&&(this.next(),!0)},V.isContextual=function(e){return this.type===w.name&&this.value===e&&!this.containsEsc},V.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},V.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},V.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},V.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},V.semicolon=function(){this.eat(w.semi)||this.insertSemicolon()||this.unexpected()},V.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},V.expect=function(e){this.eat(e)||this.unexpected()},V.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},V.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},V.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,i=e.doubleProto;if(!t)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},V.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},V.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var U=$.prototype;U.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==w.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var s=r[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var H={kind:"loop"},q={kind:"switch"};U.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;S.lastIndex=this.pos;var t=S.exec(this.input),n=this.pos+t[0].length,i=this.input.charCodeAt(n);if(91===i||92===i||i>55295&&i<56320)return!0;if(e)return!1;if(123===i)return!0;if(p(i,!0)){for(var s=n+1;d(i=this.input.charCodeAt(s),!0);)++s;if(92===i||i>55295&&i<56320)return!0;var o=this.input.slice(n,s);if(!r.test(o))return!0}return!1},U.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;S.lastIndex=this.pos;var e,t=S.exec(this.input),n=this.pos+t[0].length;return!(x.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(d(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},U.parseStatement=function(e,t,n){var i,r=this.type,s=this.startNode();switch(this.isLet(e)&&(r=w._var,i="let"),r){case w._break:case w._continue:return this.parseBreakContinueStatement(s,r.keyword);case w._debugger:return this.parseDebuggerStatement(s);case w._do:return this.parseDoStatement(s);case w._for:return this.parseForStatement(s);case w._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case w._class:return e&&this.unexpected(),this.parseClass(s,!0);case w._if:return this.parseIfStatement(s);case w._return:return this.parseReturnStatement(s);case w._switch:return this.parseSwitchStatement(s);case w._throw:return this.parseThrowStatement(s);case w._try:return this.parseTryStatement(s);case w._const:case w._var:return i=i||this.value,e&&"var"!==i&&this.unexpected(),this.parseVarStatement(s,i);case w._while:return this.parseWhileStatement(s);case w._with:return this.parseWithStatement(s);case w.braceL:return this.parseBlock(!0,s);case w.semi:return this.parseEmptyStatement(s);case w._export:case w._import:if(this.options.ecmaVersion>10&&r===w._import){S.lastIndex=this.pos;var o=S.exec(this.input),a=this.pos+o[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===w._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var u=this.value,c=this.parseExpression();return r===w.name&&"Identifier"===c.type&&this.eat(w.colon)?this.parseLabeledStatement(s,u,c,e):this.parseExpressionStatement(s,c)}},U.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(w.semi)||this.insertSemicolon()?e.label=null:this.type!==w.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(n||"loop"===r.kind))break;if(e.label&&n)break}}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},U.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},U.parseDoStatement=function(e){return this.next(),this.labels.push(H),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(w.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},U.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(H),this.enterScope(0),this.expect(w.parenL),this.type===w.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===w._var||this.type===w._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===i.declarations.length?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var s=new W,o=this.parseExpression(!(t>-1)||"await",s);return this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,s),this.checkLValPattern(o),this.parseForIn(e,o)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},U.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,G|(n?0:X),!1,t)},U.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},U.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(w.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},U.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(w.braceL),this.labels.push(q),this.enterScope(0);for(var n=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var i=this.type===w._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(w.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},U.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var K=[];U.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===w._catch){var t=this.startNode();if(this.next(),this.eat(w.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLValPattern(t.param,n?4:2),this.expect(w.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(w._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},U.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},U.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(H),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},U.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},U.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},U.parseLabeledStatement=function(e,t,n,i){for(var r=0,s=this.labels;r<s.length;r+=1)s[r].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===w._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var l=this.labels[a];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},U.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},U.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(w.braceL),e&&this.enterScope(0);this.type!==w.braceR;){var i=this.parseStatement(null);t.body.push(i)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},U.parseFor=function(e,t){return e.init=t,this.expect(w.semi),e.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),e.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},U.parseForIn=function(e,t){var n=this.type===w._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},U.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(w.eq)?i.init=this.parseMaybeAssign(t):"const"!==n||this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===i.id.type||t&&(this.type===w._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(w.comma))break}return e},U.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var G=1,X=2;function J(e,t){var n=t.key.name,i=e[n],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===i&&"iset"===r||"iset"===i&&"iget"===r||"sget"===i&&"sset"===r||"sset"===i&&"sget"===r?(e[n]="true",!1):!!i||(e[n]=r,!1)}function Y(e,t){var n=e.computed,i=e.key;return!n&&("Identifier"===i.type&&i.name===t||"Literal"===i.type&&i.value===t)}U.parseFunction=function(e,t,n,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===w.star&&t&X&&this.unexpected(),e.generator=this.eat(w.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&G&&(e.id=4&t&&this.type!==w.name?null:this.parseIdent(),!e.id||t&X||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(N(e.async,e.generator)),t&G||(e.id=this.type===w.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,t&G?"FunctionDeclaration":"FunctionExpression")},U.parseFunctionParams=function(e){this.expect(w.parenL),e.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},U.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),r=this.startNode(),s=!1;for(r.body=[],this.expect(w.braceL);this.type!==w.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(r.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(s&&this.raise(o.start,"Duplicate constructor in the same class"),s=!0):"PrivateIdentifier"===o.key.type&&J(i,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},U.parseClassElement=function(e){if(this.eat(w.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),i="",r=!1,s=!1,o="method";if(n.static=!1,this.eatContextual("static")&&(this.isClassElementNameStart()||this.type===w.star?n.static=!0:i="static"),!i&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==w.star||this.canInsertSemicolon()?i="async":s=!0),!i&&(t>=9||!s)&&this.eat(w.star)&&(r=!0),!i&&!s&&!r){var a=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=a:i=a)}if(i?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=i,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===w.parenL||"method"!==o||r||s){var l=!n.static&&Y(n,"constructor"),u=l&&e;l&&"method"!==o&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":o,this.parseClassMethod(n,r,s,u)}else this.parseClassField(n);return n},U.isClassElementNameStart=function(){return this.type===w.name||this.type===w.privateId||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword},U.parseClassElementName=function(e){this.type===w.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},U.parseClassMethod=function(e,t,n,i){var r=e.key;"constructor"===e.kind?(t&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):e.static&&Y(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,i);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},U.parseClassField=function(e){if(Y(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Y(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(w.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},U.parseClassId=function(e,t){this.type===w.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},U.parseClassSuper=function(e){e.superClass=this.eat(w._extends)?this.parseExprSubscripts():null},U.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},U.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,i=this.privateNameStack.length,r=0===i?null:this.privateNameStack[i-1],s=0;s<n.length;++s){var o=n[s];_(t,o.name)||(r?r.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}},U.parseExport=function(e,t){if(this.next(),this.eat(w.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(w._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===w._function||(n=this.isAsyncFunction())){var i=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(i,4|G,!1,n)}else if(this.type===w._class){var r=this.startNode();e.declaration=this.parseClass(r,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,o=e.specifiers;s<o.length;s+=1){var a=o[s];this.checkUnreserved(a.local),this.checkLocalExport(a.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},U.checkExport=function(e,t,n){e&&(_(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},U.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===n)for(var i=0,r=t.properties;i<r.length;i+=1){var s=r[i];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var o=0,a=t.elements;o<a.length;o+=1){var l=a[o];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},U.checkVariableExport=function(e,t){if(e)for(var n=0,i=t;n<i.length;n+=1){var r=i[n];this.checkPatternExport(e,r.id)}},U.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},U.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(w.braceL);!this.eat(w.braceR);){if(n)n=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var i=this.startNode();i.local=this.parseIdent(!0),i.exported=this.eatContextual("as")?this.parseIdent(!0):i.local,this.checkExport(e,i.exported.name,i.exported.start),t.push(this.finishNode(i,"ExportSpecifier"))}return t},U.parseImport=function(e){return this.next(),this.type===w.string?(e.specifiers=K,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===w.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},U.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===w.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(w.comma))return e}if(this.type===w.star){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportNamespaceSpecifier")),e}for(this.expect(w.braceL);!this.eat(w.braceR);){if(t)t=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var r=this.startNode();r.imported=this.parseIdent(!0),this.eatContextual("as")?r.local=this.parseIdent():(this.checkUnreserved(r.imported),r.local=r.imported),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportSpecifier"))}return e},U.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},U.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Q=$.prototype;Q.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},Q.toAssignableList=function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i];r&&this.toAssignable(r,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},Q.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Q.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==w.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Q.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()},Q.parseBindingList=function(e,t,n){for(var i=[],r=!0;!this.eat(e);)if(r?r=!1:this.expect(w.comma),t&&this.type===w.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===w.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),i.push(s),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),i.push(o)}return i},Q.parseBindingListItem=function(e){return e},Q.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return n;var i=this.startNodeAt(e,t);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},Q.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var i=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(_(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}},Q.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var l=a[o];l&&this.checkLValInnerPattern(l,t,n)}break;default:this.checkLValSimple(e,t,n)}},Q.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Z=$.prototype;Z.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i,r=e.key;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===i&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[i="$"+i];o?("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(r.start,"Redefinition of property"):o=t[i]={init:!1,get:!1,set:!1},o[s]=!0}}},Z.parseExpression=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===w.comma){var s=this.startNodeAt(n,i);for(s.expressions=[r];this.eat(w.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return r},Z.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,r=-1,s=-1;t?(r=t.parenthesizedAssign,s=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new W,i=!0);var o=this.start,a=this.startLoc;this.type!==w.parenL&&this.type!==w.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,o,a)),this.type.isAssign){var u=this.startNodeAt(o,a);return u.operator=this.value,this.type===w.eq&&(l=this.toAssignable(l,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===w.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),this.finishNode(u,"AssignmentExpression")}return i&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),s>-1&&(t.trailingComma=s),l},Z.parseMaybeConditional=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(w.question)){var s=this.startNodeAt(n,i);return s.test=r,s.consequent=this.parseMaybeAssign(),this.expect(w.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return r},Z.parseExprOps=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||r.start===n&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,n,i,-1,e)},Z.parseExprOp=function(e,t,n,i,r){var s=this.type.binop;if(null!=s&&(!r||this.type!==w._in)&&s>i){var o=this.type===w.logicalOR||this.type===w.logicalAND,a=this.type===w.coalesce;a&&(s=w.logicalAND.binop);var l=this.value;this.next();var u=this.start,c=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),u,c,s,r),p=this.buildBinary(t,n,e,h,l,o||a);return(o&&this.type===w.coalesce||a&&(this.type===w.logicalOR||this.type===w.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,n,i,r)}return e},Z.buildBinary=function(e,t,n,i,r,s){var o=this.startNodeAt(e,t);return o.left=n,o.operator=r,o.right=i,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},Z.parseMaybeUnary=function(e,t,n){var i,r=this.start,s=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(),t=!0;else if(this.type.prefix){var o=this.startNode(),a=this.type===w.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,a),this.checkExpressionErrors(e,!0),a?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&function e(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,a?"UpdateExpression":"UnaryExpression")}else{if(i=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(r,s);l.operator=this.value,l.prefix=!1,l.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(l,"UpdateExpression")}}return n||!this.eat(w.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(r,s,i,this.parseMaybeUnary(null,!1),"**",!1)},Z.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,i=this.parseExprAtom(e);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var r=this.parseSubscripts(i,t,n);return e&&"MemberExpression"===r.type&&(e.parenthesizedAssign>=r.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=r.start&&(e.parenthesizedBind=-1),e.trailingComma>=r.start&&(e.trailingComma=-1)),r},Z.parseSubscripts=function(e,t,n,i){for(var r=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var o=this.parseSubscript(e,t,n,i,r,s);if(o.optional&&(s=!0),o===e||"ArrowFunctionExpression"===o.type){if(s){var a=this.startNodeAt(t,n);a.expression=o,o=this.finishNode(a,"ChainExpression")}return o}e=o}},Z.parseSubscript=function(e,t,n,i,r,s){var o=this.options.ecmaVersion>=11,a=o&&this.eat(w.questionDot);i&&a&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(w.bracketL);if(l||a&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(w.bracketR)):this.type===w.privateId&&"Super"!==e.type?u.property=this.parsePrivateIdent():u.property=this.parseIdent("never"!==this.options.allowReserved),u.computed=!!l,o&&(u.optional=a),e=this.finishNode(u,"MemberExpression")}else if(!i&&this.eat(w.parenL)){var c=new W,h=this.yieldPos,p=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,c);if(r&&!a&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(c,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=d,this.parseArrowExpression(this.startNodeAt(t,n),f,!0);this.checkExpressionErrors(c,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=f,o&&(g.optional=a),e=this.finishNode(g,"CallExpression")}else if(this.type===w.backQuote){(a||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var m=this.startNodeAt(t,n);m.tag=e,m.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(m,"TaggedTemplateExpression")}return e},Z.parseExprAtom=function(e){this.type===w.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case w._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==w.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL&&this.unexpected(),this.finishNode(t,"Super");case w._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case w.name:var i=this.start,r=this.startLoc,s=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(w._function))return this.parseFunction(this.startNodeAt(i,r),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(i,r),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===w.name&&!s&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(w.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,r),[o],!0)}return o;case w.regexp:var a=this.value;return(t=this.parseLiteral(a.value)).regex={pattern:a.pattern,flags:a.flags},t;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return(t=this.startNode()).value=this.type===w._null?null:this.type===w._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case w.parenL:var l=this.start,u=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),u;case w.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(w.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case w.braceL:return this.parseObj(!1,e);case w._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Z.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case w.parenL:return this.parseDynamicImport(e);case w.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},Z.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(w.parenR)){var t=this.start;this.eat(w.comma)&&this.eat(w.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Z.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Z.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},Z.parseParenExpression=function(){this.expect(w.parenL);var e=this.parseExpression();return this.expect(w.parenR),e},Z.parseParenAndDistinguishExpression=function(e){var t,n=this.start,i=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,o=this.start,a=this.startLoc,l=[],u=!0,c=!1,h=new W,p=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==w.parenR;){if(u?u=!1:this.expect(w.comma),r&&this.afterTrailingComma(w.parenR,!0)){c=!0;break}if(this.type===w.ellipsis){s=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var f=this.start,g=this.startLoc;if(this.expect(w.parenR),e&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(n,i,l);l.length&&!c||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,l.length>1?((t=this.startNodeAt(o,a)).expressions=l,this.finishNodeAt(t,"SequenceExpression",f,g)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var m=this.startNodeAt(n,i);return m.expression=t,this.finishNode(m,"ParenthesizedExpression")}return t},Z.parseParenItem=function(e){return e},Z.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var ee=[];Z.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(w.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc,s=this.type===w._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),i,r,!0),s&&"ImportExpression"===e.callee.type&&this.raise(i,"Cannot use new with import()"),this.eat(w.parenL)?e.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ee,this.finishNode(e,"NewExpression")},Z.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===w.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===w.backQuote,this.finishNode(n,"TemplateElement")},Z.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(n.quasis=[i];!i.tail;)this.type===w.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(w.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(w.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},Z.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},Z.parseObj=function(e,t){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(w.braceR);){if(i)i=!1;else if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,r,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},Z.parseProperty=function(e,t){var n,i,r,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===w.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===w.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(r=this.start,s=this.startLoc),e||(n=this.eat(w.star)));var a=this.containsEsc;return this.parsePropertyName(o),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(o,t)):i=!1,this.parsePropertyValue(o,e,n,i,r,s,t,a),this.finishNode(o,"Property")},Z.parsePropertyValue=function(e,t,n,i,r,s,o,a){if((n||i)&&this.type===w.colon&&this.unexpected(),this.eat(w.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,i);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===w.comma||this.type===w.braceR||this.type===w.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||i)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key)):this.type===w.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(n||i)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},Z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(w.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(w.bracketR),e.key;e.computed=!1}return e.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Z.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|N(t,i.generator)|(n?128:0)),this.expect(w.parenL),i.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")},Z.parseArrowExpression=function(e,t,n){var i=this.yieldPos,r=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|N(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=i,this.awaitPos=r,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},Z.parseFunctionBody=function(e,t,n){var i=t&&this.type!==w.braceL,r=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!o||(s=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!r&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!r),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=a}this.exitScope()},Z.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if("Identifier"!==n[t].type)return!1;return!0},Z.checkParams=function(e,t){for(var n=Object.create(null),i=0,r=e.params;i<r.length;i+=1){var s=r[i];this.checkLValInnerPattern(s,1,t?null:n)}},Z.parseExprList=function(e,t,n,i){for(var r=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(w.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===w.comma?o=null:this.type===w.ellipsis?(o=this.parseSpread(i),i&&this.type===w.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):o=this.parseMaybeAssign(!1,i),r.push(o)}return r},Z.checkUnreserved=function(e){var t=e.start,n=e.end,i=e.name;this.inGenerator&&"yield"===i&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===i&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===i&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(i)&&(this.inAsync||"await"!==i||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))},Z.parseIdent=function(e,t){var n=this.startNode();return this.type===w.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(n,"Identifier"),e||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},Z.parsePrivateIdent=function(){var e=this.startNode();return this.type===w.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},Z.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(w.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Z.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0),this.finishNode(e,"AwaitExpression")};var te=$.prototype;te.raise=function(e,t){var n=B(this.input,e);t+=" ("+n.line+":"+n.column+")";var i=new SyntaxError(t);throw i.pos=e,i.loc=n,i.raisedAt=this.pos,i},te.raiseRecoverable=te.raise,te.curPosition=function(){if(this.options.locations)return new P(this.curLine,this.pos-this.lineStart)};var ne=$.prototype,ie=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ne.enterScope=function(e){this.scopeStack.push(new ie(e))},ne.exitScope=function(){this.scopeStack.pop()},ne.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ne.declareName=function(e,t,n){var i=!1;if(2===t){var r=this.currentScope();i=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&1&r.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var s=this.currentScope();i=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){i=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],3&a.flags)break}i&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},ne.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ne.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ne.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},ne.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var re=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new R(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},se=$.prototype;function oe(e,t,n,i){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=n),e}se.startNode=function(){return new re(this,this.start,this.startLoc)},se.startNodeAt=function(e,t){return new re(this,e,t)},se.finishNode=function(e,t){return oe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},se.finishNodeAt=function(e,t,n,i){return oe.call(this,e,t,n,i)},se.copyNode=function(e){var t=new re(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var ae=function(e,t,n,i,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=i,this.generator=!!r},le={b_stat:new ae("{",!1),b_expr:new ae("{",!0),b_tmpl:new ae("${",!1),p_stat:new ae("(",!1),p_expr:new ae("(",!0),q_tmpl:new ae("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ae("function",!1),f_expr:new ae("function",!0),f_expr_gen:new ae("function",!0,!1,null,!0),f_gen:new ae("function",!1,!1,null,!0)},ue=$.prototype;ue.initialContext=function(){return[le.b_stat]},ue.braceIsBlock=function(e){var t=this.curContext();return t===le.f_expr||t===le.f_stat||(e!==w.colon||t!==le.b_stat&&t!==le.b_expr?e===w._return||e===w.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===w._else||e===w.semi||e===w.eof||e===w.parenR||e===w.arrow||(e===w.braceL?t===le.b_stat:e!==w._var&&e!==w._const&&e!==w.name&&!this.exprAllowed):!t.isExpr)},ue.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ue.updateContext=function(e){var t,n=this.type;n.keyword&&e===w.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},w.parenR.updateContext=w.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===le.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},w.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?le.b_stat:le.b_expr),this.exprAllowed=!0},w.dollarBraceL.updateContext=function(){this.context.push(le.b_tmpl),this.exprAllowed=!0},w.parenL.updateContext=function(e){var t=e===w._if||e===w._for||e===w._with||e===w._while;this.context.push(t?le.p_stat:le.p_expr),this.exprAllowed=!0},w.incDec.updateContext=function(){},w._function.updateContext=w._class.updateContext=function(e){!e.beforeExpr||e===w._else||e===w.semi&&this.curContext()!==le.p_stat||e===w._return&&x.test(this.input.slice(this.lastTokEnd,this.start))||(e===w.colon||e===w.braceL)&&this.curContext()===le.b_stat?this.context.push(le.f_stat):this.context.push(le.f_expr),this.exprAllowed=!1},w.backQuote.updateContext=function(){this.curContext()===le.q_tmpl?this.context.pop():this.context.push(le.q_tmpl),this.exprAllowed=!1},w.star.updateContext=function(e){if(e===w._function){var t=this.context.length-1;this.context[t]===le.f_expr?this.context[t]=le.f_expr_gen:this.context[t]=le.f_gen}this.exprAllowed=!0},w.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==w.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ce="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",he=ce+" Extended_Pictographic",pe={9:ce,10:he,11:he,12:he+" EBase EComp EMod EPres ExtPict"},de="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",fe="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ge=fe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",me=ge+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ve={9:fe,10:ge,11:me,12:me+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},ye={};function be(e){var t=ye[e]={binary:O(pe[e]+" "+de),nonBinary:{General_Category:O(de),Script:O(ve[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}be(9),be(10),be(11),be(12);var we=$.prototype,xe=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=ye[e.options.ecmaVersion>=12?12:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Ce(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Ee(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Ae(e){return e>=65&&e<=90||e>=97&&e<=122}function Se(e){return Ae(e)||95===e}function De(e){return Se(e)||ke(e)}function ke(e){return e>=48&&e<=57}function Fe(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function _e(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Te(e){return e>=48&&e<=55}xe.prototype.reset=function(e,t,n){var i=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchN=i&&this.parser.options.ecmaVersion>=9},xe.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},xe.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,i=n.length;if(e>=i)return-1;var r=n.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=i)return r;var s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(r<<10)+s-56613888:r},xe.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,i=n.length;if(e>=i)return i;var r,s=n.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=i||(r=n.charCodeAt(e+1))<56320||r>57343?e+1:e+2},xe.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},xe.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},xe.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},xe.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},we.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,i=0;i<n.length;i++){var r=n.charAt(i);-1===t.indexOf(r)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(r,i+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},we.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},we.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var i=n[t];-1===e.groupNames.indexOf(i)&&e.raise("Invalid named capture referenced")}},we.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},we.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},we.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},we.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},we.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},we.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},we.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},we.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},we.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},we.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},we.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},we.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},we.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},we.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ee(t)&&(e.lastIntValue=t,e.advance(),!0)},we.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Ee(n);)e.advance();return e.pos!==t},we.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},we.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},we.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},we.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ce(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ce(e.lastIntValue);return!0}return!1},we.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),function(e){return p(e,!0)||36===e||95===e}(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)},we.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)},we.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},we.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},we.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},we.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},we.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},we.regexp_eatZero=function(e){return 48===e.current()&&!ke(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},we.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},we.regexp_eatControlLetter=function(e){var t=e.current();return!!Ae(t)&&(e.lastIntValue=t%32,e.advance(),!0)},we.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(r&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(s-55296)+(a-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1},we.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},we.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},we.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},we.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,i),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r),!0}return!1},we.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){_(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},we.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},we.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Se(t=e.current());)e.lastStringValue+=Ce(t),e.advance();return""!==e.lastStringValue},we.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";De(t=e.current());)e.lastStringValue+=Ce(t),e.advance();return""!==e.lastStringValue},we.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},we.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},we.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},we.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Te(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return 93!==i&&(e.lastIntValue=i,e.advance(),!0)},we.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},we.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!ke(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},we.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},we.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ke(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},we.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Fe(n=e.current());)e.lastIntValue=16*e.lastIntValue+_e(n),e.advance();return e.pos!==t},we.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},we.regexp_eatOctalDigit=function(e){var t=e.current();return Te(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},we.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var r=e.current();if(!Fe(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+_e(r),e.advance()}return!0};var Oe=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new R(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Pe=$.prototype;function Re(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function Be(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}Pe.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Oe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Pe.getToken=function(){return this.next(),new Oe(this)},"undefined"!=typeof Symbol&&(Pe[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===w.eof,value:t}}}}),Pe.curContext=function(){return this.context[this.context.length-1]},Pe.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(w.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Pe.readToken=function(e){return p(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Pe.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Pe.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(C.lastIndex=n;(e=C.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,i),n,this.pos,t,this.curPosition())},Pe.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!E(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Pe.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&A.test(String.fromCharCode(e))))break e;++this.pos}}},Pe.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Pe.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(w.ellipsis)):(++this.pos,this.finishToken(w.dot))},Pe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(w.assign,2):this.finishOp(w.slash,1)},Pe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,i=42===e?w.star:w.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,i=w.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(w.assign,n+1):this.finishOp(i,n)},Pe.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(124===e?w.logicalOR:w.logicalAND,2):61===t?this.finishOp(w.assign,2):this.finishOp(124===e?w.bitwiseOR:w.bitwiseAND,1)},Pe.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(w.assign,2):this.finishOp(w.bitwiseXOR,1)},Pe.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!x.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(w.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(w.assign,2):this.finishOp(w.plusMin,1)},Pe.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(w.assign,n+1):this.finishOp(w.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(w.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Pe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(w.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(w.arrow)):this.finishOp(61===e?w.eq:w.prefix,1)},Pe.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(w.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(w.coalesce,2)}return this.finishOp(w.question,1)},Pe.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,p(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(w.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Be(e)+"'")},Pe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Be(e)+"'")},Pe.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Pe.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(x.test(i)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new xe(this));a.reset(n,r,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(r,o)}catch(e){}return this.finishToken(w.regexp,{pattern:r,flags:o,value:l})},Pe.readInt=function(e,t,n){for(var i=this.options.ecmaVersion>=12&&void 0===t,r=n&&48===this.input.charCodeAt(this.pos),s=this.pos,o=0,a=0,l=0,u=null==t?1/0:t;l<u;++l,++this.pos){var c=this.input.charCodeAt(this.pos),h=void 0;if(i&&95===c)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=c;else{if((h=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;a=c,o=o*e+h}}return i&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:o},Pe.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=Re(this.input.slice(t,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,n)},Pe.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===i){var r=Re(this.input.slice(t,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,r)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==i||n||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||n||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,o=(s=this.input.slice(t,this.pos),n?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(w.num,o)},Pe.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Pe.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;92===i?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(E(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(w.string,t)};var Le={};Pe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Le)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Pe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Le;this.raise(e,t)},Pe.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==w.template&&this.type!==w.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(w.template,e)):36===n?(this.pos+=2,this.finishToken(w.dollarBraceL)):(++this.pos,this.finishToken(w.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Pe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(w.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Pe.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Be(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;return this.invalidStringToken(n,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),"0"===i&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return E(t)?"":String.fromCharCode(t)}},Pe.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Pe.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(d(r,i))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?p:d)(o,i)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=Be(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Pe.readWord=function(){var e=this.readWord1(),t=w.name;return this.keywords.test(e)&&(t=y[e]),this.finishToken(t,e)},$.acorn={Parser:$,version:"8.4.1",defaultOptions:L,Position:P,SourceLocation:R,getLineInfo:B,Node:re,TokenType:f,tokTypes:w,keywordTypes:y,TokContext:ae,tokContexts:le,isIdentifierChar:d,isIdentifierStart:p,Token:Oe,isNewLine:E,lineBreak:x,lineBreakG:C,nonASCIIwhitespace:A},e.Node=re,e.Parser=$,e.Position=P,e.SourceLocation=R,e.TokContext=ae,e.Token=Oe,e.TokenType=f,e.defaultOptions=L,e.getLineInfo=B,e.isIdentifierChar=d,e.isIdentifierStart=p,e.isNewLine=E,e.keywordTypes=y,e.lineBreak=x,e.lineBreakG=C,e.nonASCIIwhitespace=A,e.parse=function(e,t){return $.parse(e,t)},e.parseExpressionAt=function(e,t,n){return $.parseExpressionAt(e,t,n)},e.tokContexts=le,e.tokTypes=w,e.tokenizer=function(e,t){return $.tokenizer(e,t)},e.version="8.4.1",Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},s=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],r=0;r<e.length;r++){var s=e[r],l=t.base?s[0]+t.base:s[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var h=a(c),p={css:s[1],media:s[2],sourceMap:s[3]};-1!==h?(o[h].references++,o[h].updater(p)):o.push({identifier:c,updater:m(p,t),references:1}),i.push(c)}return i}function u(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var o=s(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var c,h=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function p(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=h(t,r);else{var s=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(s,o[t]):e.appendChild(s)}}function d(e,t,n){var i=n.css,r=n.media,s=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var f=null,g=0;function m(e,t){var n,i,r;if(t.singleton){var s=g++;n=f||(f=u(t)),i=p.bind(null,n,s,!1),r=p.bind(null,n,s,!0)}else n=u(t),i=d.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=a(n[i]);o[r].references--}for(var s=l(e,t),u=0;u<n.length;u++){var c=a(n[u]);0===o[c].references&&(o[c].updater(),o.splice(c,1))}n=s}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=(o=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),s=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(s).concat([r]).join("\n")}var o,a,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(r[o]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){var i;
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var s=typeof i;if("string"===s||"number"===s)e.push(i);else if(Array.isArray(i)){if(i.length){var o=r.apply(null,i);o&&e.push(o)}}else if("object"===s)if(i.toString===Object.prototype.toString)for(var a in i)n.call(i,a)&&i[a]&&e.push(a);else e.push(i.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i)}()},function(e,t){const n="@mongodb-js/mongodb-redux-common/app-registry",i=n+"/LOCAL_APP_REGISTRY_ACTIVATED",r=n+"/GLOBAL_APP_REGISTRY_ACTIVATED",s={localAppRegistry:null,globalAppRegistry:null},o=(e,t,...n)=>{e&&e.emit(t,...n)};e.exports=(e=s,t)=>t.type===i?{...e,localAppRegistry:t.appRegistry}:t.type===r?{...e,globalAppRegistry:t.appRegistry}:e,e.exports.LOCAL_APP_REGISTRY_ACTIVATED=i,e.exports.GLOBAL_APP_REGISTRY_ACTIVATED=r,e.exports.INITIAL_STATE=s,e.exports.localAppRegistryActivated=e=>({type:i,appRegistry:e}),e.exports.globalAppRegistryActivated=e=>({type:r,appRegistry:e}),e.exports.localAppRegistryEmit=(e,...t)=>(n,i)=>{o(i().appRegistry.localAppRegistry,e,...t)},e.exports.globalAppRegistryEmit=(e,...t)=>(n,i)=>{o(i().appRegistry.globalAppRegistry,e,...t)}},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t,n){"use strict";t.__esModule=!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&&e!==Symbol.prototype?"symbol":typeof e};t.splitColorValues=function(e){var t=e.length;return function(n){for(var i={},r=o(u(n)),s=0;s<t;s++)i[e[s]]=void 0!==r[s]?parseFloat(r[s]):1;return i}};var r=function(e){return Object.prototype.toString.call(e).slice(8,-1)},s=/([a-z])([A-Z])/g,o=(t.camelToDash=function(e){return e.replace(s,"$1-$2").toLowerCase()},t.setDOMAttrs=function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])},t.splitCommaDelimited=function(e){return c(e)?e.split(/,\s*/):[e]}),a=t.contains=function(e){return function(t){return c(e)&&-1!==t.indexOf(e)}},l=t.isFirstChars=function(e){return function(t){return c(e)&&0===t.indexOf(e)}},u=(t.createUnitType=function(e,t){return{test:a(e),parse:parseFloat,transform:t}},t.getValueFromFunctionString=function(e){return e.substring(e.indexOf("(")+1,e.lastIndexOf(")"))});t.isArray=function(e){return"Array"===r(e)},t.isFunc=function(e){return"Function"===r(e)},t.isNum=function(e){return"number"==typeof e},t.isObj=function(e){return"object"===(void 0===e?"undefined":i(e))};var c=t.isString=function(e){return"string"==typeof e},h=t.isHex=l("#"),p=t.isRgb=l("rgb"),d=t.isHsl=l("hsl");t.isColor=function(e){return h(e)||p(e)||d(e)}},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,t){e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"currentTime",(function(){return a})),n.d(t,"onFrameStart",(function(){return b})),n.d(t,"onFrameUpdate",(function(){return w})),n.d(t,"onFrameRender",(function(){return x})),n.d(t,"onFrameEnd",(function(){return C})),n.d(t,"cancelOnFrameStart",(function(){return E})),n.d(t,"cancelOnFrameUpdate",(function(){return A})),n.d(t,"cancelOnFrameRender",(function(){return S})),n.d(t,"cancelOnFrameEnd",(function(){return D})),n.d(t,"timeSinceLastFrame",(function(){return k})),n.d(t,"currentFrameTime",(function(){return F}));var i="undefined"!=typeof window&&void 0!==window.requestAnimationFrame,r=0,s=i?function(e){return window.requestAnimationFrame(e)}:function(e){var t=Date.now(),n=Math.max(0,16.7-(t-r));r=t+n,setTimeout((function(){return e(r)}),n)};function o(e){var t=[],n=[],i=0,r=!1,s=0;return{cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)},process:function(){for(r=!0,t=(e=[n,t])[0],(n=e[1]).length=0,i=t.length,s=0;s<i;s++)t[s]();var e;r=!1},schedule:function(s,o){void 0===o&&(o=!1),e();var a=o&&r,l=a?t:n;-1===l.indexOf(s)&&(l.push(s),a&&(i=t.length))}}}var a="undefined"!=typeof performance&&void 0!==performance.now?function(){return performance.now()}:function(){return Date.now()},l=!1,u=16.7,c=!0,h=0,p=0;function d(){l||(l=!0,c=!0,s(y))}var f=o(d),g=o(d),m=o(d),v=o(d);function y(e){l=!1,p=c?u:Math.max(Math.min(e-h,40),1),c||(u=p),h=e,f.process(),g.process(),m.process(),v.process(),l&&(c=!1)}var b=f.schedule,w=g.schedule,x=m.schedule,C=v.schedule,E=f.cancel,A=g.cancel,S=m.cancel,D=v.cancel,k=function(){return p},F=function(){return h}},function(e,t,n){"use strict";t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=n(14),s=n(23);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.scheduledUpdate=function(){t.lastUpdated=(0,r.timeSinceLastFrame)(),t.prev=t.current;var e=t.props,n=e.onUpdate,i=e.passive;return t.update&&(t.current=t.update(t.current)),n&&(n.registerAction?n.set(t.get()):n(t.get(),t)),t.fireListeners(),!i&&t._isActive&&(0,r.onFrameUpdate)(t.scheduledUpdate),t.isActionComplete&&t.isActionComplete()&&t.complete(),t},this.props=i({},this.constructor.defaultProps),this.setProps(n),this.lastUpdated=0,this.prev=this.current=n.current||n.from||0}return e.prototype.start=function(){var e=this.props,t=e.onStart,n=e._onStart;return e.passive||(this._isActive=!0,(0,r.onFrameUpdate)(this.scheduledUpdate)),this.onStart&&this.onStart(),t&&t(this),n&&n(this),this},e.prototype.stop=function(){var e=this.props,t=e.onStop,n=e._onStop;return e.passive||(this._isActive=!1,(0,r.cancelOnFrameUpdate)(this.scheduledUpdate)),this.onStop&&this.onStop(),t&&t(this),n&&n(this),this},e.prototype.complete=function(){var e=this.props,t=e.onComplete,n=e._onComplete;return this.stop(),this.onComplete&&this.onComplete(),t&&t(this),n&&n(this),this},e.prototype.setProps=function(e){var t=e.onUpdate,n=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["onUpdate"]);return this.props=i({},this.props,n),t&&this.output(t),this},e.prototype.output=function(e){return this.props.onUpdate=e,e.registerAction&&e.registerAction(this),this},e.prototype.get=function(){var e=this.props.transform;return e?e(this.current):this.current},e.prototype.getBeforeTransform=function(){return this.current},e.prototype.set=function(e){return this.current=e,this},e.prototype.getProp=function(e){return this.props[e]},e.prototype.getVelocity=function(){return(0,s.speedPerSecond)(this.current-this.prev,this.lastUpdated)},e.prototype.isActive=function(){return this._isActive},e.prototype.addListener=function(e){return this.listeners=this.listeners||[],this.numListeners=this.numListeners||0,-1===this.listeners.indexOf(e)&&(this.listeners.push(e),this.numListeners++),this},e.prototype.removeListener=function(e){var t=this.listeners?this.listeners.indexOf(e):-1;return-1!==t&&(this.numListeners--,this.listeners.splice(t,1)),this},e.prototype.fireListeners=function(){for(var e=this.get(),t=0;t<this.numListeners;t++)this.listeners[t](e,this);return this},e}();t.default=a},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(n)return[e,t];return e},e.exports=t.default},function(e,t,n){"use strict";const i=n(198),r=n(115);function s(e,t){return i(e,t,{parse:!0})}s.text=function(e,t){return i(e,t,{parse:!1,html:!1})},s.html=function(e,t){return i(e,t,{parse:!1,html:!0})},s.getEOL=function(e){if("string"!=typeof e)throw new TypeError("Invalid parameter 'text' specified.");return r.getEOL(e)},e.exports=s},function(e,t){function n(e){if(!(this instanceof n))return new n(e);this.ns=e,this.dotIndex=e.indexOf("."),-1===this.dotIndex?(this.database=e,this.collection=""):(this.database=e.slice(0,this.dotIndex),this.collection=e.slice(this.dotIndex+1)),this.system=/^system\./.test(this.collection),this.oplog=/local\.oplog\.(\$main|rs)/.test(e),this.command="$cmd"===this.collection||0===this.collection.indexOf("$cmd.sys"),this.special=this.oplog||this.command||this.system||"config"===this.database,this.specialish=this.special||["local","admin"].indexOf(this.database)>-1,this.normal=this.oplog||-1===this.ns.indexOf("$"),this.validDatabaseName=new RegExp('^[^\\\\/". ]*$').test(this.database)&&this.database.length<=n.MAX_DATABASE_NAME_LENGTH,this.validCollectionName=this.collection.length>0&&(this.oplog||/^[^\0\$]*$/.test(this.collection)),this.databaseHash=7,this.ns.split("").every(function(e,t){return"."!==e&&(this.databaseHash+=11*this.ns.charCodeAt(t),this.databaseHash*=3,!0)}.bind(this))}n.prototype.database="",n.prototype.databaseHash=0,n.prototype.collection="",n.prototype.command=!1,n.prototype.special=!1,n.prototype.system=!1,n.prototype.oplog=!1,n.prototype.normal=!1,n.prototype.specialish=!1,["Command","Special","System","Oplog","Normal","Conf"].forEach((function(e){n.prototype["is"+e]=function(){return this[e.toLowerCase()]}})),n.prototype.toString=function(){return this.ns},n.MAX_DATABASE_NAME_LENGTH=128,e.exports=n;var i=n;e.exports.sort=function(e){return e.sort((function(e,t){return i(e).specialish&&i(t).specialish?0:i(e).specialish&&!i(t).specialish?1:!i(e).specialish&&i(t).specialish?-1:e>t?1:-1})),e}},function(e,t){function n(e,t,n,i){var r,s=null==(r=i)||"number"==typeof r||"boolean"==typeof r?i:n(i),o=t.get(s);return void 0===o&&(o=e.call(this,i),t.set(s,o)),o}function i(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),s=t.get(r);return void 0===s&&(s=e.apply(this,i),t.set(r,s)),s}function r(e,t,n,i,r){return n.bind(t,e,i,r)}function s(e,t){return r(e,this,1===e.length?n:i,t.cache.create(),t.serializer)}function o(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:l,i=t&&t.serializer?t.serializer:o;return(t&&t.strategy?t.strategy:s)(e,{cache:n,serializer:i})},e.exports.strategies={variadic:function(e,t){return r(e,this,i,t.cache.create(),t.serializer)},monadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)}}},function(e,t){e.exports=l},function(e,t){e.exports=u},function(e,t,n){"use strict";t.__esModule=!0,t.stepProgress=t.speedPerSecond=t.speedPerFrame=t.smooth=t.radiansToDegrees=t.pointFromAngleAndDistance=t.getValueFromProgress=t.getProgressFromValue=t.distance=t.dilate=t.degreesToRadians=t.angle=void 0;var i=n(11),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t=Math.pow(10,t),Math.round(e*t)/t},s={x:0,y:0,z:0},o=function(e,t){return Math.abs(e-t)},a=(t.angle=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return l(Math.atan2(t.y-e.y,t.x-e.x))},t.degreesToRadians=function(e){return e*Math.PI/180}),l=(t.dilate=function(e,t,n){return e+(t-e)*n},t.distance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if((0,i.isNum)(e))return o(e,t);var n=o(e.x,t.x),r=o(e.y,t.y),a=(0,i.isNum)(e.z)?o(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(a,2))},t.getProgressFromValue=function(e,t,n){return(n-e)/(t-e)},t.getValueFromProgress=function(e,t,n){return-n*e+n*t+e},t.pointFromAngleAndDistance=function(e,t,n){return t=a(t),{x:n*Math.cos(t)+e.x,y:n*Math.sin(t)+e.y}},t.radiansToDegrees=function(e){return 180*e/Math.PI});t.smooth=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return r(t+n*(e-t)/Math.max(i,n))},t.speedPerFrame=function(e,t){return(0,i.isNum)(e)?e/(1e3/t):0},t.speedPerSecond=function(e,t){return t?e*(1e3/t):0},t.stepProgress=function(e,t){var n=1/(e-1),i=1-1/e,r=Math.min(t/i,1);return Math.floor(r/n)*n}},function(e,t,n){"use strict";t.__esModule=!0,t.bezier=t.blendColor=t.alpha=t.color=t.hsla=t.rgba=t.rgbUnit=t.px=t.degrees=t.percent=t.transformChildValues=t.steps=t.snap=t.smooth=t.wrap=t.nonlinearSpring=t.spring=t.generateNonIntergratedSpring=t.multiply=t.divide=t.add=t.subtract=t.interpolate=t.flow=t.pipe=t.conditional=t.clamp=t.clampMin=t.clampMax=t.applyOffset=t.appendUnit=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=n(23),s=n(11),o=n(106),a=n(14),l=function(e){return e},u=t.appendUnit=function(e){return function(t){return""+t+e}},c=(t.applyOffset=function(e,t){var n=f(e),i=g(t);return function(e){return i(n(e))}},t.clampMax=function(e){return function(t){return Math.min(t,e)}}),h=t.clampMin=function(e){return function(t){return Math.max(t,e)}},p=t.clamp=function(e,t){var n=h(e),i=c(t);return function(e){return n(i(e))}},d=(t.conditional=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;return function(i,r){return e(i,r)?t(i,r):n(i,r)}},t.pipe=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.length,r=0;return function(e){for(var n=arguments.length,s=Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];var a=e;for(r=0;r<i;r++)a=t[r].apply(t,[a].concat(s));return a}}),f=(t.flow=d,t.interpolate=function(e,t,n){var i=e.length,s=i-1;return function(o){if(o<=e[0])return t[0];if(o>=e[s])return t[s];for(var a=1;a<i&&!(e[a]>o||a===s);a++);var l=(0,r.getProgressFromValue)(e[a-1],e[a],o),u=n?n[a-1](l):l;return(0,r.getValueFromProgress)(t[a-1],t[a],u)}},t.subtract=function(e){return function(t){return t-e}}),g=t.add=function(e){return function(t){return t+e}},m=(t.divide=function(e){return function(t){return t/e}},t.multiply=function(e){return function(t){return t*e}},t.generateNonIntergratedSpring=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return function(t,n){return function(i){var r=n-i,s=-t*(0-e(Math.abs(r)));return r<=0?n+s:n-s}}}),v=(t.spring=m(),t.nonlinearSpring=m(Math.sqrt),t.wrap=function(e,t){return function(n){var i=t-e;return((n-e)%i+i)%i+e}},t.smooth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,t=0,n=0;return function(i){var s=(0,a.currentFrameTime)(),o=s!==n?s-n:0,l=o?(0,r.smooth)(i,t,o,e):t;return n=s,t=l,l}},t.snap=function(e){if("number"==typeof e)return function(t){return Math.round(t/e)*e};var t=0,n=e.length;return function(i){var r=Math.abs(e[0]-i);for(t=1;t<n;t++){var s=e[t],o=Math.abs(s-i);if(0===o)return s;if(o>r)return e[t-1];if(t===n-1)return s;r=o}}},t.steps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"start";return function(s){var o=(0,r.getProgressFromValue)(t,n,s);return(0,r.getValueFromProgress)(t,n,(0,r.stepProgress)(e,o,i))}},t.transformChildValues=function(e){var t={};return function(n){for(var i in n){var r=e[i];r&&(t[i]=r(n[i]))}return t}}),y=t.percent=u("%"),b=(t.degrees=u("deg"),t.px=u("px"),t.rgbUnit=d(p(0,255),Math.round)),w=t.rgba=d(v({red:b,green:b,blue:b,alpha:C}),(function(e){var t=e.red,n=e.green,i=e.blue,r=e.alpha;return"rgba("+t+", "+n+", "+i+", "+(void 0===r?1:r)+")"})),x=t.hsla=d(v({hue:parseInt,saturation:y,lightness:y,alpha:C}),(function(e){var t=e.hue,n=e.saturation,i=e.lightness,r=e.alpha;return"hsla("+t+", "+n+", "+i+", "+(void 0===r?1:r)+")"})),C=(t.color=function(e){return e.hasOwnProperty("red")?w(e):e.hasOwnProperty("hue")?x(e):e},t.alpha=p(0,1)),E=function(e,t,n){var i=e*e,r=t*t;return Math.sqrt(n*(r-i)+i)};t.blendColor=function(e,t){var n=(0,s.isString)(e)?(0,o.color)(e):e,a=(0,s.isString)(t)?(0,o.color)(t):t,l=i({},n);return function(e){for(var t in l)l[t]=E(n[t],a[t],e);return l.red=E(n.red,a.red,e),l.green=E(n.green,a.green,e),l.blue=E(n.blue,a.blue,e),l.alpha=(0,r.getValueFromProgress)(n.alpha,a.alpha,e),l}},t.bezier=function(e){return 3===e.length?function(e){return function(t){var n=1-t;return(e[0]*n+e[1]*t)*n+(e[1]*n+e[2]*t)*t}}(e):function(e){return function(t){var n=1-t,i=e[1]*n+e[2]*t;return((e[0]*n+e[1]*t)*n+i*t)*n+(i*n+(e[2]*n+e[3]*t)*t)*t}}(e)}},function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(r=i))}),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(238)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&i.test(e)};var i=/-webkit-|-moz-|-ms-/;e.exports=t.default},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(122),r={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return r.call(i(e),t)}},function(e,t){e.exports=require("path")},function(e,t,n){"use strict";var i,r=n(147),s=(i=r)&&i.__esModule?i:{default:i};e.exports=s.default},function(e,t){var n;t=e.exports=q,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var i=Number.MAX_SAFE_INTEGER||9007199254740991,r=t.re=[],s=t.src=[],o=0,a=o++;s[a]="0|[1-9]\\d*";var l=o++;s[l]="[0-9]+";var u=o++;s[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var c=o++;s[c]="("+s[a]+")\\.("+s[a]+")\\.("+s[a]+")";var h=o++;s[h]="("+s[l]+")\\.("+s[l]+")\\.("+s[l]+")";var p=o++;s[p]="(?:"+s[a]+"|"+s[u]+")";var d=o++;s[d]="(?:"+s[l]+"|"+s[u]+")";var f=o++;s[f]="(?:-("+s[p]+"(?:\\."+s[p]+")*))";var g=o++;s[g]="(?:-?("+s[d]+"(?:\\."+s[d]+")*))";var m=o++;s[m]="[0-9A-Za-z-]+";var v=o++;s[v]="(?:\\+("+s[m]+"(?:\\."+s[m]+")*))";var y=o++,b="v?"+s[c]+s[f]+"?"+s[v]+"?";s[y]="^"+b+"$";var w="[v=\\s]*"+s[h]+s[g]+"?"+s[v]+"?",x=o++;s[x]="^"+w+"$";var C=o++;s[C]="((?:<|>)?=?)";var E=o++;s[E]=s[l]+"|x|X|\\*";var A=o++;s[A]=s[a]+"|x|X|\\*";var S=o++;s[S]="[v=\\s]*("+s[A]+")(?:\\.("+s[A]+")(?:\\.("+s[A]+")(?:"+s[f]+")?"+s[v]+"?)?)?";var D=o++;s[D]="[v=\\s]*("+s[E]+")(?:\\.("+s[E]+")(?:\\.("+s[E]+")(?:"+s[g]+")?"+s[v]+"?)?)?";var k=o++;s[k]="^"+s[C]+"\\s*"+s[S]+"$";var F=o++;s[F]="^"+s[C]+"\\s*"+s[D]+"$";var _=o++;s[_]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var T=o++;s[T]="(?:~>?)";var O=o++;s[O]="(\\s*)"+s[T]+"\\s+",r[O]=new RegExp(s[O],"g");var P=o++;s[P]="^"+s[T]+s[S]+"$";var R=o++;s[R]="^"+s[T]+s[D]+"$";var B=o++;s[B]="(?:\\^)";var L=o++;s[L]="(\\s*)"+s[B]+"\\s+",r[L]=new RegExp(s[L],"g");var M=o++;s[M]="^"+s[B]+s[S]+"$";var I=o++;s[I]="^"+s[B]+s[D]+"$";var N=o++;s[N]="^"+s[C]+"\\s*("+w+")$|^$";var $=o++;s[$]="^"+s[C]+"\\s*("+b+")$|^$";var j=o++;s[j]="(\\s*)"+s[C]+"\\s*("+w+"|"+s[S]+")",r[j]=new RegExp(s[j],"g");var V=o++;s[V]="^\\s*("+s[S]+")\\s+-\\s+("+s[S]+")\\s*$";var z=o++;s[z]="^\\s*("+s[D]+")\\s+-\\s+("+s[D]+")\\s*$";var W=o++;s[W]="(<|>)?=?\\s*\\*";for(var U=0;U<35;U++)n(U,s[U]),r[U]||(r[U]=new RegExp(s[U]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof q)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?r[x]:r[y]).test(e))return null;try{return new q(e,t)}catch(e){return null}}function q(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof q){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof q))return new q(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var s=e.trim().match(t.loose?r[x]:r[y]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}t.parse=H,t.valid=function(e,t){var n=H(e,t);return n?n.version:null},t.clean=function(e,t){var n=H(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=q,q.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},q.prototype.toString=function(){return this.version},q.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof q||(e=new q(e,this.options)),this.compareMain(e)||this.comparePre(e)},q.prototype.compareMain=function(e){return e instanceof q||(e=new q(e,this.options)),G(this.major,e.major)||G(this.minor,e.minor)||G(this.patch,e.patch)},q.prototype.comparePre=function(e){if(e instanceof q||(e=new q(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var i=this.prerelease[t],r=e.prerelease[t];if(n("prerelease compare",t,i,r),void 0===i&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===i)return-1;if(i!==r)return G(i,r)}while(++t)},q.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,i){"string"==typeof n&&(i=n,n=void 0);try{return new q(e,n).inc(t,i).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),i=H(t),r="";if(n.prerelease.length||i.prerelease.length){r="pre";var s="prerelease"}for(var o in n)if(("major"===o||"minor"===o||"patch"===o)&&n[o]!==i[o])return r+o;return s},t.compareIdentifiers=G;var K=/^[0-9]+$/;function G(e,t){var n=K.test(e),i=K.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1}function X(e,t,n){return new q(e,n).compare(new q(t,n))}function J(e,t,n){return X(e,t,n)>0}function Y(e,t,n){return X(e,t,n)<0}function Q(e,t,n){return 0===X(e,t,n)}function Z(e,t,n){return 0!==X(e,t,n)}function ee(e,t,n){return X(e,t,n)>=0}function te(e,t,n){return X(e,t,n)<=0}function ne(e,t,n,i){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,i);case"!=":return Z(e,n,i);case">":return J(e,n,i);case">=":return ee(e,n,i);case"<":return Y(e,n,i);case"<=":return te(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===re?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return G(t,e)},t.major=function(e,t){return new q(e,t).major},t.minor=function(e,t){return new q(e,t).minor},t.patch=function(e,t){return new q(e,t).patch},t.compare=X,t.compareLoose=function(e,t){return X(e,t,!0)},t.rcompare=function(e,t,n){return X(t,e,n)},t.sort=function(e,n){return e.sort((function(e,i){return t.compare(e,i,n)}))},t.rsort=function(e,n){return e.sort((function(e,i){return t.rcompare(e,i,n)}))},t.gt=J,t.lt=Y,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=ie;var re={};function se(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof se)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new se(e.raw,t);if(e instanceof ie)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function oe(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,i,r,s,o,a,l,u,c,h,p){return((t=oe(n)?"":oe(i)?">="+n+".0.0":oe(r)?">="+n+"."+i+".0":">="+t)+" "+(a=oe(l)?"":oe(u)?"<"+(+l+1)+".0.0":oe(c)?"<"+l+"."+(+u+1)+".0":h?"<="+l+"."+u+"."+c+"-"+h:"<="+a)).trim()}function le(e,t,i){for(var r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!i.includePrerelease){for(r=0;r<e.length;r++)if(n(e[r].semver),e[r].semver!==re&&e[r].semver.prerelease.length>0){var s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new se(t,n)}catch(e){return!1}return t.test(e)}function ce(e,t,n,i){var r,s,o,a,l;switch(e=new q(e,i),t=new se(t,i),n){case">":r=J,s=te,o=Y,a=">",l=">=";break;case"<":r=Y,s=ee,o=J,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,i))return!1;for(var u=0;u<t.set.length;++u){var c=t.set[u],h=null,p=null;if(c.forEach((function(e){e.semver===re&&(e=new ie(">=0.0.0")),h=h||e,p=p||e,r(e.semver,h.semver,i)?h=e:o(e.semver,p.semver,i)&&(p=e)})),h.operator===a||h.operator===l)return!1;if((!p.operator||p.operator===a)&&s(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?r[N]:r[$],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new q(n[2],this.options.loose):this.semver=re},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===re||("string"==typeof e&&(e=new q(e,this.options)),ne(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new se(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new se(this.value,t),ue(e.semver,n,t);var i=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return i||r||s&&o||a||l},t.Range=se,se.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?r[z]:r[V];e=e.replace(i,ae),n("hyphen replace",e),e=e.replace(r[j],"$1$2$3"),n("comparator trim",e,r[j]),e=(e=(e=e.replace(r[O],"$1~")).replace(r[L],"$1^")).split(/\s+/).join(" ");var s=t?r[N]:r[$],o=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var i=t.loose?r[I]:r[M];return e.replace(i,(function(t,i,r,s,o){var a;return n("caret",e,t,i,r,s,o),oe(i)?a="":oe(r)?a=">="+i+".0.0 <"+(+i+1)+".0.0":oe(s)?a="0"===i?">="+i+"."+r+".0 <"+i+"."+(+r+1)+".0":">="+i+"."+r+".0 <"+(+i+1)+".0.0":o?(n("replaceCaret pr",o),a="0"===i?"0"===r?">="+i+"."+r+"."+s+"-"+o+" <"+i+"."+r+"."+(+s+1):">="+i+"."+r+"."+s+"-"+o+" <"+i+"."+(+r+1)+".0":">="+i+"."+r+"."+s+"-"+o+" <"+(+i+1)+".0.0"):(n("no pr"),a="0"===i?"0"===r?">="+i+"."+r+"."+s+" <"+i+"."+r+"."+(+s+1):">="+i+"."+r+"."+s+" <"+i+"."+(+r+1)+".0":">="+i+"."+r+"."+s+" <"+(+i+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var i=t.loose?r[R]:r[P];return e.replace(i,(function(t,i,r,s,o){var a;return n("tilde",e,t,i,r,s,o),oe(i)?a="":oe(r)?a=">="+i+".0.0 <"+(+i+1)+".0.0":oe(s)?a=">="+i+"."+r+".0 <"+i+"."+(+r+1)+".0":o?(n("replaceTilde pr",o),a=">="+i+"."+r+"."+s+"-"+o+" <"+i+"."+(+r+1)+".0"):a=">="+i+"."+r+"."+s+" <"+i+"."+(+r+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var i=t.loose?r[F]:r[k];return e.replace(i,(function(t,i,r,s,o,a){n("xRange",e,t,i,r,s,o,a);var l=oe(r),u=l||oe(s),c=u||oe(o);return"="===i&&c&&(i=""),l?t=">"===i||"<"===i?"<0.0.0":"*":i&&c?(u&&(s=0),o=0,">"===i?(i=">=",u?(r=+r+1,s=0,o=0):(s=+s+1,o=0)):"<="===i&&(i="<",u?r=+r+1:s=+s+1),t=i+r+"."+s+"."+o):u?t=">="+r+".0.0 <"+(+r+1)+".0.0":c&&(t=">="+r+"."+s+".0 <"+r+"."+(+s+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(r[W],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(s)}))),o=o.map((function(e){return new ie(e,this.options)}),this)},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new se(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new q(e,this.options));for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1},t.satisfies=ue,t.maxSatisfying=function(e,t,n){var i=null,r=null;try{var s=new se(t,n)}catch(e){return null}return e.forEach((function(e){s.test(e)&&(i&&-1!==r.compare(e)||(r=new q(i=e,n)))})),i},t.minSatisfying=function(e,t,n){var i=null,r=null;try{var s=new se(t,n)}catch(e){return null}return e.forEach((function(e){s.test(e)&&(i&&1!==r.compare(e)||(r=new q(i=e,n)))})),i},t.minVersion=function(e,t){e=new se(e,t);var n=new q("0.0.0");if(e.test(n))return n;if(n=new q("0.0.0-0"),e.test(n))return n;n=null;for(var i=0;i<e.set.length;++i){e.set[i].forEach((function(e){var t=new q(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new se(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return ce(e,t,"<",n)},t.gtr=function(e,t,n){return ce(e,t,">",n)},t.outside=ce,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof q)return e;if("string"!=typeof e)return null;var t=e.match(r[_]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},,function(e,t,n){"use strict";t.__esModule=!0,t.complex=t.color=t.hsla=t.hex=t.rgba=t.rgbUnit=t.scale=t.px=t.percent=t.degrees=t.alpha=t.number=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=n(24),s=n(106),o=n(11),a=t.number={test:o.isNum,parse:parseFloat},l=(t.alpha=i({},a,{transform:r.alpha}),t.degrees=(0,o.createUnitType)("deg",r.degrees),t.percent=(0,o.createUnitType)("%",r.percent),t.px=(0,o.createUnitType)("px",r.px),t.scale=i({},a,{default:1}),t.rgbUnit=i({},a,{transform:r.rgbUnit}),t.rgba={test:o.isRgb,parse:s.rgba,transform:r.rgba}),u=(t.hex=i({},l,{test:o.isHex,parse:s.hex}),t.hsla={test:o.isHsl,parse:s.hsla,transform:r.hsla},t.color={parse:s.color,test:o.isColor,transform:r.color},/(-)?(\d[\d\.]*)/g),c=function(e){return"${"+e+"}"};t.complex={test:function(e){var t=e.match&&e.match(u);return(0,o.isArray)(t)&&t.length>1},parse:function(e){var t={};return e.match(u).forEach((function(e,n){return t[n]=parseFloat(e)})),t},createTransformer:function(e){var t=0,n=e.replace(u,(function(){return c(t++)}));return function(e){var t=n;for(var i in e)e.hasOwnProperty(i)&&(t=t.replace(c(i),e[i]));return t}}}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=n(15),s=(i=r)&&i.__esModule?i:{default:i},o=n(14),a=n(24),l=n(23),u=n(49);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=(0,a.clamp)(0,1),d={loop:function(e){return e.start()},yoyo:function(e){return e.reverse().start()},flip:function(e){return e.flip().start()}},f=function(e){function t(){return c(this,t),h(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onStart=function(){var e=this.props,t=e.duration,n=e.playDirection;this.elapsed=1===n?0:t,this.progress=0},t.prototype.update=function(){var e=this.props,t=e.duration,n=e.ease,i=e.from,r=e.to,s=e.playDirection;return this.isManualUpdate||(this.elapsed+=(0,o.timeSinceLastFrame)()*s),this.isManualUpdate=!1,this.progress=p((0,l.getProgressFromValue)(0,t,this.elapsed)),(0,l.getValueFromProgress)(i,r,n(this.progress))},t.prototype.isActionComplete=function(){var e=this.props,t=e.duration,n=e.playDirection,i=e.yoyo,r=e.loop,s=e.flip,o=1===n?this.elapsed>=t:this.elapsed<=0;if(o&&(i||r||s)){var a=!1;for(var l in d){var u,c=d[l],h=l+"Count",p=this.getProp(l),f=this.getProp(h);if(p>f)this.setProps(((u={})[h]=f+1,u)),c(this),a=!0}a&&(o=!1)}return o},t.prototype.getElapsed=function(){return this.elapsed},t.prototype.flip=function(){this.elapsed=this.props.duration-this.elapsed;var e=[this.props.to,this.props.from];return this.props.from=e[0],this.props.to=e[1],this},t.prototype.reverse=function(){return this.props.playDirection*=-1,this},t.prototype.seek=function(e){var t=this.props.duration;this.elapsed=(0,l.getValueFromProgress)(0,t,e),this.isManualUpdate=!0,this.isActive()||this.scheduledUpdate()},t}(s.default);f.defaultProps={duration:300,ease:u.easeOut,from:0,to:1,flip:0,flipCount:0,yoyo:0,yoyoCount:0,loop:0,loopCount:0,playDirection:1},t.default=function(e){return new f(e)}},function(e,t,n){"use strict";t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=n(14),s=n(11);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.render=this.render.bind(this),this.props=i({},this.constructor.defaultProps,t),this.state={},this.changedValues=[]}return e.prototype.get=function(e){return e?void 0!==this.state[e]?this.state[e]:this.read(e):this.state},e.prototype.read=function(e){if(this.onRead)return this.onRead(e)},e.prototype.set=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0===t[1]){var i=t[0];for(var s in i)this.setValue(s,i[s])}else{var o=t[0],a=t[1];this.setValue(o,a)}return this.hasChanged&&(0,r.onFrameRender)(this.render),this},e.prototype.setValue=function(e,t){var n=this.state[e];if((0,s.isNum)(t)||(0,s.isString)(t))n!==t&&(this.state[e]=t,this.hasChanged=!0);else if((0,s.isArray)(t)){n||(this.state[e]=[]);for(var i=t.length,r=0;r<i;r++)this.state[e][r]!==t[r]&&(this.state[e][r]=t[r],this.hasChanged=!0)}else if((0,s.isObj)(t))for(var o in n||(this.state[e]={}),t)this.state[e][o]!==t[o]&&(this.state[e][o]=t[o],this.hasChanged=!0);this.hasChanged&&-1===this.changedValues.indexOf(e)&&this.changedValues.push(e)},e.prototype.render=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e||this.hasChanged)&&this.onRender&&this.onRender(),this.changedValues.length=0,this.hasChanged=!1,this},e}();t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var i=["X","Y","Z"],r={x:!0,y:!0,z:!0},s=["translate","scale","rotate","skew","transformPerspective"];r.rotate=r.scale=r.transformPerspective=!0,s.forEach((function(e){return i.forEach((function(t){return r[e+t]=!0}))})),t.default=r},function(e,t,n){var i=n(27);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(37),r=n(124),s=n(117);e.exports=i?function(e,t,n){return r.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=require("fs")},function(e,t){e.exports=c},function(e,t){var n=Object.prototype.toString,i=Array.isArray;e.exports=function(e){return"string"==typeof e||!i(e)&&function(e){return!!e&&"object"==typeof e}(e)&&"[object String]"==n.call(e)}},function(e,t,n){(function(e){var n="[object Map]",i="[object Set]",r=/^\[object .+?Constructor\]$/,s="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,a=s||o||Function("return this")(),l=t&&!t.nodeType&&t,u=l&&"object"==typeof e&&e&&!e.nodeType&&e,c=u&&u.exports===l;var h,p,d,f=Function.prototype,g=Object.prototype,m=a["__core-js_shared__"],v=(h=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",y=f.toString,b=g.hasOwnProperty,w=g.toString,x=RegExp("^"+y.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=c?a.Buffer:void 0,E=g.propertyIsEnumerable,A=C?C.isBuffer:void 0,S=(p=Object.keys,d=Object,function(e){return p(d(e))}),D=N(a,"DataView"),k=N(a,"Map"),F=N(a,"Promise"),_=N(a,"Set"),T=N(a,"WeakMap"),O=!E.call({valueOf:1},"valueOf"),P=j(D),R=j(k),B=j(F),L=j(_),M=j(T);function I(e){return!(!q(e)||function(e){return!!v&&v in e}(e))&&(H(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?x:r).test(j(e))}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return I(n)?n:void 0}var $=function(e){return w.call(e)};function j(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function V(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&W(e)}(e)&&b.call(e,"callee")&&(!E.call(e,"callee")||"[object Arguments]"==w.call(e))}(D&&"[object DataView]"!=$(new D(new ArrayBuffer(1)))||k&&$(new k)!=n||F&&"[object Promise]"!=$(F.resolve())||_&&$(new _)!=i||T&&"[object WeakMap]"!=$(new T))&&($=function(e){var t=w.call(e),r="[object Object]"==t?e.constructor:void 0,s=r?j(r):void 0;if(s)switch(s){case P:return"[object DataView]";case R:return n;case B:return"[object Promise]";case L:return i;case M:return"[object WeakMap]"}return t});var z=Array.isArray;function W(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!H(e)}var U=A||function(){return!1};function H(e){var t=q(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(W(e)&&(z(e)||"string"==typeof e||"function"==typeof e.splice||U(e)||V(e)))return!e.length;var t=$(e);if(t==n||t==i)return!e.size;if(O||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||g)}(e))return!S(e).length;for(var r in e)if(b.call(e,r))return!1;return!0}}).call(this,n(58)(e))},function(e,t){e.exports=h},function(e,t){e.exports=p},function(e,t,n){e.exports=n(228),e.exports.Element=n(135)},function(e,t,n){"use strict";var i=n(236),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?o:a[e.$$typeof]||r}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(f){var r=d(n);r&&r!==f&&e(t,r,i)}var o=c(n);h&&(o=o.concat(h(n)));for(var a=l(t),g=l(n),m=0;m<o.length;++m){var v=o[m];if(!(s[v]||i&&i[v]||g&&g[v]||a&&a[v])){var y=p(n,v);try{u(t,v,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,i,r,s,o,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,r,s,o,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";t.__esModule=!0,t.cubicBezier=t.anticipate=t.createAnticipateEasing=t.backInOut=t.backOut=t.backIn=t.createBackIn=t.circInOut=t.circOut=t.circIn=t.easeInOut=t.easeOut=t.easeIn=t.createExpoIn=t.linear=t.createMirroredEasing=t.createReversedEasing=void 0;var i=n(24),r=t.createReversedEasing=function(e){return function(t){return 1-e(1-t)}},s=t.createMirroredEasing=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},o=(t.linear=function(e){return e},t.createExpoIn=function(e){return function(t){return Math.pow(t,e)}}),a=t.easeIn=o(2),l=(t.easeOut=r(a),t.easeInOut=s(a),t.circIn=function(e){return 1-Math.sin(Math.acos(e))}),u=t.circOut=r(l),c=(t.circInOut=s(u),t.createBackIn=function(e){return function(t){return t*t*((e+1)*t-e)}}),h=t.backIn=c(1.525),p=(t.backOut=r(h),t.backInOut=s(h),t.createAnticipateEasing=function(e){var t=c(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}});t.anticipate=p(1.525),t.cubicBezier=function(e,t,n,r){var s=(0,i.bezier)(0,e,n,1),o=(0,i.bezier)(0,t,r,1);return function(e){return o(s(e))}}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=n(15),o=(i=s)&&i.__esModule?i:{default:i},a=n(14);var l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.actions,r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(n,["actions"]),s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return s.current={},s.actionKeys=[],s.addActions(i),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addActions=function(e){var t=this,n=function(n){-1===t.actionKeys.indexOf(n)&&t.actionKeys.push(n),t[n]=e[n];t[n].setProps({_onStop:function(){return t.numActiveActions--}}).addListener((function(e){t.current[n]=e,(0,a.onFrameUpdate)(t.scheduledUpdate)}))};for(var i in e)n(i)},t.prototype.onStart=function(){var e=this;this.numActiveActions=this.actionKeys.length,this.actionKeys.forEach((function(t){return e[t].start()}))},t.prototype.onStop=function(){var e=this;this.actionKeys.forEach((function(t){return e[t].stop()}))},t.prototype.getVelocity=function(){var e=this,t={};return this.actionKeys.forEach((function(n){return t[n]=e[n].getVelocity()})),t},t.prototype.isActionComplete=function(){return 0===this.numActiveActions},t}(o.default);l.defaultProps={passive:!0},t.default=function(e,t){return new l(r({actions:e},t))}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=n(15),o=(i=s)&&i.__esModule?i:{default:i},a=n(14);var l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.actions,r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(n,["actions"]),s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return s.actions=[],s.current=[],s.addActions(i),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addAction=function(e){var t=this;if(-1===this.actions.indexOf(e)){this.actions.push(e);var n=this.actions.length-1,i=function(e){t.current[n]=e,(0,a.onFrameUpdate)(t.scheduledUpdate)};i(e.get()),e.setProps({_onStop:function(){return t.numActiveActions--}}).addListener(i)}},t.prototype.addActions=function(e){var t=this;e.forEach((function(e){return t.addAction(e)}))},t.prototype.onStart=function(){this.numActiveActions=this.actions.length,this.actions.forEach((function(e){return e.start()}))},t.prototype.onStop=function(){this.actions.forEach((function(e){return e.stop()}))},t.prototype.getVelocity=function(){return this.actions.map((function(e){return e.getVelocity()}))},t.prototype.isActionComplete=function(){return 0===this.numActiveActions},t.prototype.getChildren=function(){return this.actions},t}(o.default);t.default=function(e,t){return new l(r({actions:e},t))}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=n(15),s=(i=r)&&i.__esModule?i:{default:i},o=n(14);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return a(this,t),l(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.set=function(e){return this.toUpdate=e,(0,o.onFrameUpdate)(this.scheduledUpdate),e},t.prototype.update=function(){return void 0!==this.toUpdate?this.toUpdate:this.current},t.prototype.stopRegisteredAction=function(){this.action&&this.action.isActive()&&this.action.stop(),this.action=void 0},t.prototype.registerAction=function(e){return this.stopRegisteredAction(),this.action=e,this},t.prototype.onStop=function(){this.stopRegisteredAction()},t}(s.default);u.defaultProps={passive:!0},t.default=function(e,t){return new u({current:e,onUpdate:t})}},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t.default},function(e,t,n){var i=n(118),r=n(120);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(12),r=n(39);e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},function(e,t,n){var i=n(12),r=n(56),s=i["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=s},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports=n(145)},function(e,t,n){"use strict";(function(e){var i,r=n(140);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e;var s=Object(r.a)(i);t.a=s}).call(this,n(146)(e))},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_resize-handle-module-resize-handle__1rugm {\n position: absolute;\n background: #dee0e3;\n width: 1.1px;\n height: 100%;\n}\n",""]),r.locals={"resize-handle":"AggregationsPlugin_resize-handle-module-resize-handle__1rugm"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_delete-stage-module-delete-stage__3PyCJ {\n margin-right: 6px;\n}\n.AggregationsPlugin_delete-stage-module-delete-stage__3PyCJ button {\n width: 30px;\n flex-grow: 4;\n display: flex;\n justify-content: flex-end;\n}\n",""]),r.locals={"delete-stage":"AggregationsPlugin_delete-stage-module-delete-stage__3PyCJ"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_add-after-stage-module-add-after-stage__1xZf9 {\n display: flex;\n justify-content: flex-end;\n}\n.AggregationsPlugin_add-after-stage-module-add-after-stage__1xZf9 button {\n width: 30px;\n margin-right: 6px;\n}\n",""]),r.locals={"add-after-stage":"AggregationsPlugin_add-after-stage-module-add-after-stage__1xZf9"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_toggle-stage-module-toggle-stage__2JZ-6 {\n margin: 0px 0px 0px 5px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n}\n.AggregationsPlugin_toggle-stage-module-toggle-stage-button__1ILJ7 {\n height: 20px !important;\n width: 40px !important;\n cursor: pointer !important;\n}\n.AggregationsPlugin_toggle-stage-module-toggle-stage-button__1ILJ7 span {\n height: 18px !important;\n width: 18px !important;\n cursor: pointer !important;\n}\n",""]),r.locals={"toggle-stage":"AggregationsPlugin_toggle-stage-module-toggle-stage__2JZ-6","toggle-stage-button":"AggregationsPlugin_toggle-stage-module-toggle-stage-button__1ILJ7"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_stage-grabber-module-stage-grabber__1-8cr {\n color: #dee0e3;\n margin: 3px 2px 0px 4px;\n position: relative;\n}\n",""]),r.locals={"stage-grabber":"AggregationsPlugin_stage-grabber-module-stage-grabber__1-8cr"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_stage-collapser-module-stage-collapser__3xs2F {\n position: relative;\n}\n.AggregationsPlugin_stage-collapser-module-stage-collapser__3xs2F button {\n width: 30px;\n}\n",""]),r.locals={"stage-collapser":"AggregationsPlugin_stage-collapser-module-stage-collapser__3xs2F"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_select-option-with-tooltip-module-tooltip__3SVxp {\n max-width: 340px !important;\n}\n.AggregationsPlugin_select-option-with-tooltip-module-option__K2UZL {\n display: flex;\n align-items: center;\n}\n.AggregationsPlugin_select-option-with-tooltip-module-optionIcon__os9Dz {\n margin-left: auto;\n}\n",""]),r.locals={tooltip:"AggregationsPlugin_select-option-with-tooltip-module-tooltip__3SVxp",option:"AggregationsPlugin_select-option-with-tooltip-module-option__K2UZL",optionIcon:"AggregationsPlugin_select-option-with-tooltip-module-optionIcon__os9Dz"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_stage-operator-select-module-stage-operator-select__1eiQN {\n position: relative;\n width: 120px;\n height: 22px;\n margin: 0px 0px 0px 5px;\n}\n.AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK {\n position: relative;\n font-size: 12px !important;\n cursor: pointer;\n}\n.AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK .Select-control {\n height: 22px;\n}\n.AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK .Select-placeholder {\n line-height: 25px;\n}\n.AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK .Select-input {\n height: 18px;\n}\n.AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK .Select-arrow-zone {\n height: 22px;\n}\n.AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK .Select-arrow {\n margin-top: 8px;\n}\n.AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK .Select-value {\n line-height: 22px !important;\n font-weight: bold;\n}\n.AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK .Select-menu {\n height: 200px;\n}\n.AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK .Select-menu-outer {\n z-index: 2000 !important;\n}\n",""]),r.locals={"stage-operator-select":"AggregationsPlugin_stage-operator-select-module-stage-operator-select__1eiQN","stage-operator-select-control":"AggregationsPlugin_stage-operator-select-module-stage-operator-select-control__LjhSK"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,'@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_stage-editor-toolbar-module-stage-editor-toolbar__2cwCK {\n width: 100%;\n border-bottom: 1px solid #dee0e3;\n border-radius: 4px 4px 0 0;\n padding: 10px 0;\n padding-right: 10px;\n flex-shrink: 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n position: relative;\n height: 30px;\n cursor: move;\n cursor: grab;\n}\n.AggregationsPlugin_stage-editor-toolbar-module-stage-editor-toolbar__2cwCK:active {\n cursor: grabbing;\n}\n.AggregationsPlugin_stage-editor-toolbar-module-stage-editor-toolbar-right__3NPrk {\n display: flex;\n justify-content: flex-end;\n flex-grow: 4;\n}\n.AggregationsPlugin_stage-editor-toolbar-module-stage-editor-toolbar-errored__siGjE {\n background: #FCEBE2;\n}\n.AggregationsPlugin_stage-editor-toolbar-module-stage-editor-toolbar__2cwCK i.info-sprinkle {\n display: inline-block;\n font: normal normal normal 14px/1 FontAwesome;\n font-size: inherit;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0 5px;\n cursor: pointer;\n color: #bfbfbe;\n}\n.AggregationsPlugin_stage-editor-toolbar-module-stage-editor-toolbar__2cwCK i.info-sprinkle:before {\n content: "\\f05a";\n}\n',""]),r.locals={"stage-editor-toolbar":"AggregationsPlugin_stage-editor-toolbar-module-stage-editor-toolbar__2cwCK","stage-editor-toolbar-right":"AggregationsPlugin_stage-editor-toolbar-module-stage-editor-toolbar-right__3NPrk","stage-editor-toolbar-errored":"AggregationsPlugin_stage-editor-toolbar-module-stage-editor-toolbar-errored__siGjE"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_stage-editor-module-stage-editor-container__1XwN_ {\n position: relative;\n padding: 6px 8px;\n text-align: center;\n}\n.AggregationsPlugin_stage-editor-module-stage-editor__3F-oQ {\n flex-shrink: 0;\n margin: 0;\n padding: 10px 0px 10px 0px;\n overflow: hidden;\n background: #f5f6f7;\n border-left: 2px solid #E4E4E4;\n width: 100%;\n min-height: 180px;\n}\n.AggregationsPlugin_stage-editor-module-stage-editor-errormsg__3Le7I {\n flex-shrink: 0;\n position: relative;\n margin: 10px;\n padding: 5px 10px;\n border-radius: 3px;\n overflow: hidden;\n background: #FCEBE2;\n border: 1px solid #F9D3C5;\n min-height: 20px;\n word-break: break-all;\n color: #8F221B;\n font-size: x-small;\n font-weight: bold;\n}\n.AggregationsPlugin_stage-editor-module-stage-editor-syntax-error__3qEJX {\n flex-shrink: 0;\n position: relative;\n margin: 10px;\n padding: 5px 10px;\n border-radius: 3px;\n overflow: hidden;\n background: #FEF7E3;\n border: 1px solid #FEF2C8;\n min-height: 20px;\n word-break: break-all;\n color: #86681D;\n font-size: x-small;\n font-weight: bold;\n}\n",""]),r.locals={"stage-editor-container":"AggregationsPlugin_stage-editor-module-stage-editor-container__1XwN_","stage-editor":"AggregationsPlugin_stage-editor-module-stage-editor__3F-oQ","stage-editor-errormsg":"AggregationsPlugin_stage-editor-module-stage-editor-errormsg__3Le7I","stage-editor-syntax-error":"AggregationsPlugin_stage-editor-module-stage-editor-syntax-error__3qEJX"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_loading-overlay-module-loading-overlay__3jA58 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n background-color: rgba(0, 0, 0, 0.08);\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.AggregationsPlugin_loading-overlay-module-loading-overlay-box__1EYpR {\n font-weight: bold;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 300px;\n height: 50px;\n background-color: #FFFFFF;\n}\n.AggregationsPlugin_loading-overlay-module-loading-overlay-box-text__1RHOh {\n font-size: 16px;\n margin-left: 5px;\n}\n.AggregationsPlugin_loading-overlay-module-loading-overlay-box__1EYpR i {\n font-size: 20px;\n color: #168B46;\n}\n",""]),r.locals={"loading-overlay":"AggregationsPlugin_loading-overlay-module-loading-overlay__3jA58","loading-overlay-box":"AggregationsPlugin_loading-overlay-module-loading-overlay-box__1EYpR","loading-overlay-box-text":"AggregationsPlugin_loading-overlay-module-loading-overlay-box-text__1RHOh"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_stage-preview-module-stage-preview__37FlK {\n width: 100%;\n display: flex;\n align-items: stretch;\n overflow: auto;\n position: relative;\n flex-grow: 1;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-empty__9L3fd {\n padding-left: 15px;\n margin: auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n fill: none;\n stroke: #89979B;\n text-align: center;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-missing-search-support__18Jmm {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 10px;\n margin: auto;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-missing-search-support-text__1XKhH {\n text-align: center;\n margin-top: 10px;\n margin-bottom: 20px;\n max-width: 400px;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-out__2kjVI {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-out-text__FwDzO {\n padding: 0px 15px 2px 15px;\n text-align: center;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-out-button__bnXRJ {\n margin-top: 3px;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-out-link__1uCqW {\n text-decoration: underline;\n cursor: pointer;\n color: #5b81a9;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-documents__uF1qq {\n display: flex;\n align-items: stretch;\n overflow-x: scroll;\n margin: 10px;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-documents__uF1qq .document {\n background-color: #fff;\n margin: 10px;\n padding: 0;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);\n width: 350px;\n min-height: 150px;\n overflow: scroll;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-documents__uF1qq .document-contents {\n flex-basis: 150px;\n flex-grow: 1;\n flex-shrink: 0;\n overflow: auto;\n padding: 20px;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-documents__uF1qq .document-elements {\n padding: 0px;\n margin-bottom: 0px;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-documents__uF1qq .document::-webkit-scrollbar {\n display: none;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-documents__uF1qq .document-contents::-webkit-scrollbar {\n display: none;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview-documents__uF1qq .element-value-is-string {\n word-break: normal;\n}\n.AggregationsPlugin_stage-preview-module-stage-preview__37FlK::-webkit-scrollbar {\n display: none;\n}\n",""]),r.locals={"stage-preview":"AggregationsPlugin_stage-preview-module-stage-preview__37FlK","stage-preview-empty":"AggregationsPlugin_stage-preview-module-stage-preview-empty__9L3fd","stage-preview-missing-search-support":"AggregationsPlugin_stage-preview-module-stage-preview-missing-search-support__18Jmm","stage-preview-missing-search-support-text":"AggregationsPlugin_stage-preview-module-stage-preview-missing-search-support-text__1XKhH","stage-preview-out":"AggregationsPlugin_stage-preview-module-stage-preview-out__2kjVI","stage-preview-out-text":"AggregationsPlugin_stage-preview-module-stage-preview-out-text__FwDzO","stage-preview-out-button":"AggregationsPlugin_stage-preview-module-stage-preview-out-button__bnXRJ","stage-preview-out-link":"AggregationsPlugin_stage-preview-module-stage-preview-out-link__1uCqW","stage-preview-documents":"AggregationsPlugin_stage-preview-module-stage-preview-documents__uF1qq"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,'@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_stage-preview-toolbar-module-stage-preview-toolbar__2o0am {\n width: 100%;\n font-size: 12px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n height: 30px;\n padding: 10px 0;\n padding-left: 25px;\n display: flex;\n align-items: center;\n border-bottom: 1px solid #dee0e3;\n border-radius: 4px 4px 0 0;\n}\n.AggregationsPlugin_stage-preview-toolbar-module-stage-preview-toolbar-link__q2ehc {\n text-decoration: underline;\n cursor: pointer;\n color: #5b81a9;\n}\n.AggregationsPlugin_stage-preview-toolbar-module-stage-preview-toolbar-errored__1JajO {\n background: #FCEBE2;\n}\n.AggregationsPlugin_stage-preview-toolbar-module-stage-preview-toolbar__2o0am i.info-sprinkle {\n display: inline-block;\n font: normal normal normal 14px/1 FontAwesome;\n font-size: inherit;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0 5px;\n cursor: pointer;\n color: #bfbfbe;\n}\n.AggregationsPlugin_stage-preview-toolbar-module-stage-preview-toolbar__2o0am i.info-sprinkle:before {\n content: "\\f05a";\n}\n.AggregationsPlugin_stage-preview-toolbar-module-stage-preview-toolbar__2o0am #stage-tooltip {\n width: 300px;\n white-space: pre-wrap;\n}\n',""]),r.locals={"stage-preview-toolbar":"AggregationsPlugin_stage-preview-toolbar-module-stage-preview-toolbar__2o0am","stage-preview-toolbar-link":"AggregationsPlugin_stage-preview-toolbar-module-stage-preview-toolbar-link__q2ehc","stage-preview-toolbar-errored":"AggregationsPlugin_stage-preview-toolbar-module-stage-preview-toolbar-errored__1JajO"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_stage-module-stage-container__ZDTxh {\n margin: 0px 10px 0px;\n padding-bottom: 15px;\n border-left: 2px solid #dee0e3;\n position: relative;\n}\n.AggregationsPlugin_stage-module-stage-container__ZDTxh:before {\n position: absolute;\n left: -3px;\n top: 10px;\n content: '';\n width: 4px;\n height: 16px;\n background-color: #f5f6f7;\n}\n.AggregationsPlugin_stage-module-stage-container__ZDTxh:after {\n position: absolute;\n left: -7px;\n top: 12px;\n content: '';\n width: 12px;\n height: 12px;\n border-radius: 50%;\n border: 2px solid #dee0e3;\n}\n.AggregationsPlugin_stage-module-stage-container-is-first__C7RFF:before {\n position: absolute;\n left: -3px;\n top: 0px;\n content: '';\n width: 4px;\n height: 26px;\n background-color: #f5f6f7;\n}\n.AggregationsPlugin_stage-module-stage-container__ZDTxh .AggregationsPlugin_stage-module-stage__1YPPq {\n position: relative;\n margin: 0px 8px 0px;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #fff;\n display: flex;\n flex-direction: row;\n}\n.AggregationsPlugin_stage-module-stage-container__ZDTxh .AggregationsPlugin_stage-module-stage-errored__mbJmP {\n border-color: #CF4A22;\n}\n.AggregationsPlugin_stage-module-stage-editor-container__1LvRF {\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: auto;\n}\n.AggregationsPlugin_stage-module-stage-preview-container__2xO44 {\n display: flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n overflow: auto;\n}\n.AggregationsPlugin_stage-module-stage-resize-handle-wrapper__1UhOK:hover div div,\n.AggregationsPlugin_stage-module-stage-resize-handle-wrapper__1UhOK:active div div {\n background-color: #bfbfbe;\n}\n.AggregationsPlugin_stage-module-stage-workspace__9LrbT {\n display: flex;\n align-items: stretch;\n border-radius: 0 0 4px 4px;\n}\n",""]),r.locals={"stage-container":"AggregationsPlugin_stage-module-stage-container__ZDTxh","stage-container-is-first":"AggregationsPlugin_stage-module-stage-container-is-first__C7RFF",stage:"AggregationsPlugin_stage-module-stage__1YPPq","stage-errored":"AggregationsPlugin_stage-module-stage-errored__mbJmP","stage-editor-container":"AggregationsPlugin_stage-module-stage-editor-container__1LvRF","stage-preview-container":"AggregationsPlugin_stage-module-stage-preview-container__2xO44","stage-resize-handle-wrapper":"AggregationsPlugin_stage-module-stage-resize-handle-wrapper__1UhOK","stage-workspace":"AggregationsPlugin_stage-module-stage-workspace__9LrbT"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_input-collapser-module-input-collapser__2CIHy {\n position: relative;\n}\n.AggregationsPlugin_input-collapser-module-input-collapser__2CIHy button {\n width: 30px;\n}\n",""]),r.locals={"input-collapser":"AggregationsPlugin_input-collapser-module-input-collapser__2CIHy"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_input-documents-count-module-input-documents-count__2sCxl {\n height: 30px;\n display: flex;\n align-items: center;\n flex-grow: 4;\n}\n.AggregationsPlugin_input-documents-count-module-input-documents-count-db__2xqQF {\n font-size: 12px;\n padding-left: 10px;\n color: #494747;\n}\n.AggregationsPlugin_input-documents-count-module-input-documents-count-label__Q3Y3L {\n font-size: 12px;\n padding-left: 5px;\n color: #494747;\n}\n",""]),r.locals={"input-documents-count":"AggregationsPlugin_input-documents-count-module-input-documents-count__2sCxl","input-documents-count-db":"AggregationsPlugin_input-documents-count-module-input-documents-count-db__2xqQF","input-documents-count-label":"AggregationsPlugin_input-documents-count-module-input-documents-count-label__Q3Y3L"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_input-refresh-module-input-refresh__1jTIT {\n flex-grow: 0;\n}\n",""]),r.locals={"input-refresh":"AggregationsPlugin_input-refresh-module-input-refresh__1jTIT"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_input-builder-toolbar-module-input-builder-toolbar__1H2sc {\n width: 350px;\n margin: 0px 15px 0px 18px;\n flex-shrink: 0;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n position: relative;\n height: 30px;\n align-items: center;\n}\n",""]),r.locals={"input-builder-toolbar":"AggregationsPlugin_input-builder-toolbar-module-input-builder-toolbar__1H2sc"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_input-preview-toolbar-module-input-preview-toolbar__34ttN {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n border-left: 1px solid #dee0e3;\n}\n.AggregationsPlugin_input-preview-toolbar-module-input-preview-toolbar-text__3gBhM {\n font-size: 12px;\n padding-left: 10px;\n color: #494747;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n",""]),r.locals={"input-preview-toolbar":"AggregationsPlugin_input-preview-toolbar-module-input-preview-toolbar__34ttN","input-preview-toolbar-text":"AggregationsPlugin_input-preview-toolbar-module-input-preview-toolbar-text__3gBhM"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_input-toolbar-module-input-toolbar__32jT7 {\n border-bottom: 1px solid #dee0e3;\n display: flex;\n align-items: center;\n position: relative;\n height: 40px;\n width: 100%;\n}\n",""]),r.locals={"input-toolbar":"AggregationsPlugin_input-toolbar-module-input-toolbar__32jT7"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_input-builder-module-input-builder__KDDTC {\n flex-grow: 1;\n position: relative;\n margin: 15px 18px 15px 18px;\n padding: 10px 0px 10px 0px;\n font-size: 13px;\n min-height: 54px;\n text-align: center;\n}\n.AggregationsPlugin_input-builder-module-input-builder-link__CRCCF {\n margin-left: 5px;\n text-decoration: underline;\n cursor: pointer;\n color: #5b81a9;\n}\n",""]),r.locals={"input-builder":"AggregationsPlugin_input-builder-module-input-builder__KDDTC","input-builder-link":"AggregationsPlugin_input-builder-module-input-builder-link__CRCCF"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_input-preview-module-input-preview__2di5A {\n display: flex;\n align-items: center;\n overflow: auto;\n flex-grow: 1;\n width: 100%;\n position: relative;\n}\n.AggregationsPlugin_input-preview-module-input-preview-documents__1878X {\n display: flex;\n align-items: flex-start;\n overflow-x: scroll;\n margin: 10px;\n}\n.AggregationsPlugin_input-preview-module-input-preview-documents__1878X .document {\n background-color: #fff;\n margin: 10px;\n padding: 0px 20px;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);\n width: 350px;\n height: 150px;\n overflow: scroll;\n flex-shrink: 0;\n}\n.AggregationsPlugin_input-preview-module-input-preview-documents__1878X .document-elements {\n padding: 0px;\n margin-bottom: 0px;\n}\n.AggregationsPlugin_input-preview-module-input-preview-documents__1878X .document::-webkit-scrollbar {\n display: none;\n}\n.AggregationsPlugin_input-preview-module-input-preview-documents__1878X .element-value-is-string {\n word-break: normal;\n}\n.AggregationsPlugin_input-preview-module-input-preview__2di5A::-webkit-scrollbar {\n display: none;\n}\n",""]),r.locals={"input-preview":"AggregationsPlugin_input-preview-module-input-preview__2di5A","input-preview-documents":"AggregationsPlugin_input-preview-module-input-preview-documents__1878X"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_input-workspace-module-input-workspace__1ivct {\n display: flex;\n align-items: center;\n}\n",""]),r.locals={"input-workspace":"AggregationsPlugin_input-workspace-module-input-workspace__1ivct"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_input-module-input__2mTmO {\n position: relative;\n margin: 18px;\n margin-left: 20px;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #fff;\n}\n",""]),r.locals={input:"AggregationsPlugin_input-module-input__2mTmO"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_add-stage-module-add-stage-container__L3KcT {\n margin: 0px;\n padding-bottom: 15px;\n position: relative;\n}\n.AggregationsPlugin_add-stage-module-add-stage-container__L3KcT:after {\n position: absolute;\n left: 6px;\n top: 2px;\n content: '';\n width: 10px;\n height: 10px;\n border-radius: 50%;\n border: 5px solid #dee0e3;\n}\n.AggregationsPlugin_add-stage-module-add-stage-container__L3KcT .AggregationsPlugin_add-stage-module-add-stage__3hDT6 {\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n position: relative;\n margin: 0px 20px 0px;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #fff;\n width: 370px;\n}\n.AggregationsPlugin_add-stage-module-add-stage-container__L3KcT .AggregationsPlugin_add-stage-module-add-stage__3hDT6 button {\n margin: 10px 0px 10px 0px;\n}\n",""]),r.locals={"add-stage-container":"AggregationsPlugin_add-stage-module-add-stage-container__L3KcT","add-stage":"AggregationsPlugin_add-stage-module-add-stage__3hDT6"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_custom-drag-layer-module-custom-drag-layer__oy-5R {\n position: fixed;\n pointer-events: none;\n z-index: 500;\n left: 5px;\n top: 0;\n width: 100%;\n height: 100%;\n}\n.AggregationsPlugin_custom-drag-layer-module-custom-drag-layer-container__s3SZv {\n border-radius: 5px;\n background-color: rgba(13, 50, 79, 0.6);\n color: #C5E4F2;\n width: calc(80% - 260px);\n height: 180px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-style: italic;\n font-size: 24px;\n font-weight: bold;\n}\n",""]),r.locals={"custom-drag-layer":"AggregationsPlugin_custom-drag-layer-module-custom-drag-layer__oy-5R","custom-drag-layer-container":"AggregationsPlugin_custom-drag-layer-module-custom-drag-layer-container__s3SZv"},t.a=r},function(e,t){e.exports=d},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_modify-source-banner-module-modify-source-banner__zkRAk {\n text-align: center;\n margin: 5px auto;\n margin-top: 20px;\n z-index: 500;\n}\n",""]),r.locals={"modify-source-banner":"AggregationsPlugin_modify-source-banner-module-modify-source-banner__zkRAk"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_pipeline-workspace-module-pipeline-workspace-container__3IpOe {\n position: relative;\n width: 100%;\n height: 100%;\n}\n.AggregationsPlugin_pipeline-workspace-module-pipeline-workspace__380z9 {\n display: flex;\n flex-direction: column;\n overflow-y: scroll;\n width: 100%;\n height: 100%;\n flex-grow: 1;\n}\n.AggregationsPlugin_pipeline-workspace-module-pipeline-workspace-container-container__36jIN {\n flex-grow: 1;\n width: 100%;\n position: relative;\n overflow-y: scroll;\n}\n",""]),r.locals={"pipeline-workspace-container":"AggregationsPlugin_pipeline-workspace-module-pipeline-workspace-container__3IpOe","pipeline-workspace":"AggregationsPlugin_pipeline-workspace-module-pipeline-workspace__380z9","pipeline-workspace-container-container":"AggregationsPlugin_pipeline-workspace-module-pipeline-workspace-container-container__36jIN"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_restore-pipeline-button-module-restore-pipeline__NGnMs {\n margin-right: 2px;\n flex-grow: 0;\n visibility: hidden;\n}\n",""]),r.locals={"restore-pipeline":"AggregationsPlugin_restore-pipeline-button-module-restore-pipeline__NGnMs"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_delete-pipeline-button-module-delete-pipeline__Ch_2o {\n margin: 0px 10px 0px 0px;\n flex-grow: 0;\n visibility: hidden;\n}\n",""]),r.locals={"delete-pipeline":"AggregationsPlugin_delete-pipeline-button-module-delete-pipeline__Ch_2o"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_save-pipeline-card-module-save-pipeline-card__2EPNA {\n border: 1px solid #dee0e3;\n box-shadow: 0 0 3px #dee0e3;\n margin: 10px;\n display: flex;\n align-items: center;\n background: #fff;\n}\n.AggregationsPlugin_save-pipeline-card-module-save-pipeline-card__2EPNA:hover button {\n visibility: visible;\n}\n.AggregationsPlugin_save-pipeline-card-module-save-pipeline-card-title__272aN {\n font-size: 12px;\n padding: 8px;\n line-height: 20px;\n font-weight: bold;\n flex-grow: 5;\n color: #494747;\n overflow-wrap: break-word;\n overflow: auto;\n}\n",""]),r.locals={"save-pipeline-card":"AggregationsPlugin_save-pipeline-card-module-save-pipeline-card__2EPNA","save-pipeline-card-title":"AggregationsPlugin_save-pipeline-card-module-save-pipeline-card-title__272aN"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_save-pipeline-module-save-pipeline__1r5sb {\n border-right: 1px solid #dee0e3;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #f8f8f8;\n position: absolute;\n width: 400px;\n height: 100%;\n top: 0;\n left: -401px;\n transition: left 0.2s ease-in-out;\n font-size: 1em;\n z-index: 500;\n}\n.AggregationsPlugin_save-pipeline-module-save-pipeline-is-visible__3bNUE {\n left: 0px;\n transition: left 0.2s ease-in-out;\n}\n.AggregationsPlugin_save-pipeline-module-save-pipeline-header__1G3Ck {\n height: 34px;\n display: flex;\n padding: 10px;\n font-size: 12px;\n line-height: 20px;\n font-weight: bold;\n color: #494747;\n align-items: center;\n justify-content: space-between;\n border-bottom: 1px solid #dee0e3;\n box-shadow: 1px 1px 1px #dee0e3;\n}\n.AggregationsPlugin_save-pipeline-module-save-pipeline-cards__2__gs {\n overflow-y: scroll;\n}\n.AggregationsPlugin_save-pipeline-module-save-pipeline-close__2mTMD {\n cursor: pointer;\n}\n.AggregationsPlugin_save-pipeline-module-save-pipeline-cards__2__gs::-webkit-scrollbar {\n display: none;\n}\n",""]),r.locals={"save-pipeline":"AggregationsPlugin_save-pipeline-module-save-pipeline__1r5sb","save-pipeline-is-visible":"AggregationsPlugin_save-pipeline-module-save-pipeline-is-visible__3bNUE","save-pipeline-header":"AggregationsPlugin_save-pipeline-module-save-pipeline-header__1G3Ck","save-pipeline-cards":"AggregationsPlugin_save-pipeline-module-save-pipeline-cards__2__gs","save-pipeline-close":"AggregationsPlugin_save-pipeline-module-save-pipeline-close__2mTMD"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,'@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_settings-module-container__3sWua {\n border-left: 1px solid #dee0e3;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #f8f8f8;\n position: absolute;\n width: 580px;\n height: 100%;\n top: 0;\n right: 0px;\n transition: right 0.2s ease-in-out;\n font-size: 1em;\n z-index: 500;\n}\n.AggregationsPlugin_settings-module-header__1rot3 {\n height: 32px;\n display: flex;\n padding: 5px;\n font-size: 12px;\n line-height: 20px;\n font-weight: bold;\n color: #494747;\n align-items: center;\n justify-content: space-between;\n border-bottom: 1px solid #dee0e3;\n box-shadow: 1px 1px 1px #dee0e3;\n}\n.AggregationsPlugin_settings-module-header-title__xCvBM {\n color: #424242;\n font-size: 12px;\n font-weight: bold;\n flex-grow: 2;\n}\n.AggregationsPlugin_settings-module-header-btn-group__1NySd {\n display: inline-block;\n}\n.AggregationsPlugin_settings-module-header-btn-group__1NySd button {\n margin-right: 5px;\n}\n.AggregationsPlugin_settings-module-header-btn-group__1NySd:last-child {\n margin-right: 0px;\n}\n.AggregationsPlugin_settings-module-input-group__3OjXF {\n margin: 10px;\n padding: 4px 10px 4px 10px;\n background-color: #FFFFFF;\n display: flex;\n align-items: center;\n}\n.AggregationsPlugin_settings-module-input-control__3kNAF {\n min-width: 90px;\n}\n.AggregationsPlugin_settings-module-input-control__3kNAF input {\n border-radius: 3px;\n border-color: #BFBFBE;\n border-style: solid;\n border-width: 1px;\n padding: 1px;\n text-align: right;\n float: right;\n}\n.AggregationsPlugin_settings-module-input-control__3kNAF input[type="text"],\n.AggregationsPlugin_settings-module-input-control__3kNAF input[type="number"] {\n width: 70px;\n color: #464C4F;\n}\n.AggregationsPlugin_settings-module-input-control__3kNAF input[type="text"]::placeholder,\n.AggregationsPlugin_settings-module-input-control__3kNAF input[type="number"]::placeholder {\n font-size: 13px;\n color: #AAAAAA;\n}\n.AggregationsPlugin_settings-module-input-meta__2H8QK {\n flex-grow: 1;\n}\n.AggregationsPlugin_settings-module-input-meta__2H8QK label {\n font-size: 13px;\n color: #464C4F;\n}\n.AggregationsPlugin_settings-module-input-meta__2H8QK p {\n font-size: 12px;\n color: #777A7F;\n}\n',""]),r.locals={container:"AggregationsPlugin_settings-module-container__3sWua",header:"AggregationsPlugin_settings-module-header__1rot3","header-title":"AggregationsPlugin_settings-module-header-title__xCvBM","header-btn-group":"AggregationsPlugin_settings-module-header-btn-group__1NySd","input-group":"AggregationsPlugin_settings-module-input-group__3OjXF","input-control":"AggregationsPlugin_settings-module-input-control__3kNAF","input-meta":"AggregationsPlugin_settings-module-input-meta__2H8QK"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_overview-toggler-module-overview-toggler__1C-NT {\n position: relative;\n margin-right: 3px;\n}\n.AggregationsPlugin_overview-toggler-module-overview-toggler__1C-NT button {\n width: 30px;\n}\n",""]),r.locals={"overview-toggler":"AggregationsPlugin_overview-toggler-module-overview-toggler__1C-NT"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_collation-collapser-module-collation-collapser__zYwyq {\n position: relative;\n margin-right: 3px;\n}\n.AggregationsPlugin_collation-collapser-module-collation-collapser__zYwyq button {\n white-space: nowrap;\n}\n",""]),r.locals={"collation-collapser":"AggregationsPlugin_collation-collapser-module-collation-collapser__zYwyq"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar__pso3j {\n align-items: center;\n display: flex;\n flex-shrink: 0;\n height: 34px;\n padding: 0px 10px 0px 15px;\n flex-grow: 1;\n z-index: 100;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar__pso3j .dropdown {\n margin-left: 3px;\n padding-right: 6px;\n height: 22px;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar__pso3j .dropdown i {\n top: 1px;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar__pso3j .dropdown-toggle {\n height: 22px;\n padding: 0 7px 0px 5px;\n font-size: 11px;\n border-radius: 0px 3px 3px 0px;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar__pso3j .dropdown-menu {\n font-size: 12px;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-update-view__3qcmB {\n margin-right: 5px;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-add-wrapper__3MdSS {\n margin: 0px 3px 0px 3px;\n margin-right: 3px;\n background-color: rgba(70, 76, 79, 0.1);\n display: flex;\n border-radius: 3px;\n font-size: 12px;\n padding: 2px 6px 2px 6px;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-name__39gvS {\n font-size: 12px;\n font-weight: bold;\n white-space: nowrap;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-open-saved-pipelines-button__2IZll {\n margin-right: 3px;\n white-space: nowrap;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-new-button__1gO9T {\n white-space: nowrap;\n border-radius: 3px 0px 0px 3px;\n border-right: 0;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-new-button__1gO9T:hover {\n border-right: 0;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-save-pipeline-button__dnipy {\n white-space: nowrap;\n border-radius: 3px 0px 0px 3px;\n border-right: 0;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-save-pipeline-button__dnipy:hover + button {\n border-left: 0;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-export-to-language__2rJjI {\n display: flex;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-is-modified__30wIY {\n padding-top: 1px;\n font-style: italic;\n}\n.AggregationsPlugin_pipeline-builder-toolbar-module-export-icon__3lNpo {\n height: 12px;\n width: 12px;\n display: block;\n background-image: url(\"data:image/svg+xml,%3Csvg width='12px' height='12px' viewBox='0 0 12 12' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Symbols' stroke='none' strokeWidth='1' fill='none' fillRule='evenodd'%3E%3Cg id='Icons-/-Export' transform='translate(-4.000000, -3.000000)' fill='%23494747'%3E%3Cg id='Icon' transform='translate(4.000000, 3.500000)'%3E%3Cpath d='M6.2777,0 L8.8,2.5223 C8.8,3.2415132 8.8,3.78074648 8.8,4.13999987 C8.8,4.3593827 8.8,5.03623299 8.8,5.7224982 C8.8,6.35273364 8.8,6.99090941 8.8,7.28999996 C8.8,7.80644 8.8,8.67644001 8.8,9.9 C8.8,10.5072 8.3072,11 7.7,11 L1.1,11 C0.49335,11 0,10.5072 0,9.9 L0,1.1 C0,0.4939 0.49335,0 1.1,0 L6.2777,0 Z M7.70005545,4 C7.70003697,3.77478974 7.70001848,3.54145641 7.7,3.3 L5.5,3.3 L5.5,1.1 L1.1,1.1 L1.1,9.9 L7.70055,9.9 L7.70035031,7.5 L8.79999983,7.5 L8.79999983,4 L7.70005491,4 Z M7.70005545,4 C7.70005931,4.04702072 7.70006317,4.09368734 7.70006703,4.13999987 C7.70009571,4.48417772 7.70014216,5.03201886 7.70019082,5.60623096 C7.70024165,6.20608089 7.7002949,6.83470922 7.70033284,7.28999996 L7.70035031,7.5 L7.69999981,4 Z' id='File' /%3E%3Cg id='Arrow' transform='translate(4.000000, 3.000000)'%3E%3Crect id='Rectangle' x='0.5' y='2.25' width='6' height='1' /%3E%3Cpolygon id='Triangle' transform='translate(7.000000, 2.750000) rotate(-270.000000) translate(-7.000000, -2.750000)' points='7 1.875 9 3.625 5 3.625' /%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n}\n",""]),r.locals={"pipeline-builder-toolbar":"AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar__pso3j","pipeline-builder-toolbar-update-view":"AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-update-view__3qcmB","pipeline-builder-toolbar-add-wrapper":"AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-add-wrapper__3MdSS","pipeline-builder-toolbar-name":"AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-name__39gvS","pipeline-builder-toolbar-open-saved-pipelines-button":"AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-open-saved-pipelines-button__2IZll","pipeline-builder-toolbar-new-button":"AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-new-button__1gO9T","pipeline-builder-toolbar-save-pipeline-button":"AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-save-pipeline-button__dnipy","pipeline-builder-toolbar-export-to-language":"AggregationsPlugin_pipeline-builder-toolbar-module-pipeline-builder-toolbar-export-to-language__2rJjI","is-modified":"AggregationsPlugin_pipeline-builder-toolbar-module-is-modified__30wIY","export-icon":"AggregationsPlugin_pipeline-builder-toolbar-module-export-icon__3lNpo"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}/**\n * Mixins\n */\n.AggregationsPlugin_pipeline-preview-toolbar-module-container-right__2-_uZ {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n box-shadow: 2px 0px #ebebed;\n height: 33px;\n padding-right: 15px;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-toggle-sample__1K48h,\n.AggregationsPlugin_pipeline-preview-toolbar-module-toggle-auto-preview__2Sf1S {\n margin-left: 15px;\n display: flex;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-switch___C9Kf {\n height: 16px !important;\n width: 36px !important;\n cursor: pointer !important;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-switch___C9Kf span {\n height: 14px !important;\n width: 14px !important;\n cursor: pointer !important;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-toggle-sample-label__3Tqov,\n.AggregationsPlugin_pipeline-preview-toolbar-module-toggle-auto-preview-label__k51fn {\n margin-left: 5px;\n display: flex;\n white-space: nowrap;\n font-size: 12px;\n text-transform: uppercase;\n color: #807f7f;\n font-weight: bold;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-settings__RH-Up {\n margin-left: 15px;\n display: flex;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-fullscreen__3zH86 {\n margin-left: 15px;\n display: flex;\n margin-left: 5px;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-is-modified__2WxFs {\n margin-left: 15px;\n display: flex;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-is-modified__2WxFs i {\n color: #13AA52;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-is-modified-on__1vEBQ i {\n color: #fbb129;\n}\n.AggregationsPlugin_pipeline-preview-toolbar-module-is-modified-on__1vEBQ span {\n padding-right: 5px;\n color: #fbb129;\n font-size: 13px;\n}\n",""]),r.locals={"container-right":"AggregationsPlugin_pipeline-preview-toolbar-module-container-right__2-_uZ","toggle-sample":"AggregationsPlugin_pipeline-preview-toolbar-module-toggle-sample__1K48h","toggle-auto-preview":"AggregationsPlugin_pipeline-preview-toolbar-module-toggle-auto-preview__2Sf1S",switch:"AggregationsPlugin_pipeline-preview-toolbar-module-switch___C9Kf","toggle-sample-label":"AggregationsPlugin_pipeline-preview-toolbar-module-toggle-sample-label__3Tqov","toggle-auto-preview-label":"AggregationsPlugin_pipeline-preview-toolbar-module-toggle-auto-preview-label__k51fn",settings:"AggregationsPlugin_pipeline-preview-toolbar-module-settings__RH-Up",fullscreen:"AggregationsPlugin_pipeline-preview-toolbar-module-fullscreen__3zH86","is-modified":"AggregationsPlugin_pipeline-preview-toolbar-module-is-modified__2WxFs","is-modified-on":"AggregationsPlugin_pipeline-preview-toolbar-module-is-modified-on__1vEBQ"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_pipeline-toolbar-module-pipeline-toolbar__3Ytdg {\n display: flex;\n width: 100%;\n flex-shrink: 0;\n height: 33px;\n}\n.AggregationsPlugin_pipeline-toolbar-module-pipeline-toolbar-border__2v73o {\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);\n}\n",""]),r.locals={"pipeline-toolbar":"AggregationsPlugin_pipeline-toolbar-module-pipeline-toolbar__3Ytdg","pipeline-toolbar-border":"AggregationsPlugin_pipeline-toolbar-module-pipeline-toolbar-border__2v73o"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,'@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_collation-toolbar-module-collation-toolbar__31baA {\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);\n display: flex;\n width: 100%;\n flex-shrink: 0;\n height: 43px;\n align-items: center;\n padding: 0px 10px 0px 15px;\n}\n.AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-wrapper__3Y4Kq {\n width: 100%;\n height: 30px;\n position: relative;\n display: flex;\n border-radius: 14px;\n border: 1px #bfbfbe solid;\n background: #fff;\n overflow: hidden;\n padding: 4px;\n margin-right: 5px;\n}\n.AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-wrapper__3Y4Kq .AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-label__qPzXB {\n background: #bfbfbe;\n color: #fff;\n white-space: nowrap;\n border-radius: 14px;\n padding: 2px 1px;\n margin-right: 5px;\n text-transform: uppercase;\n font-weight: bold;\n font-family: "Akzidenz", "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 11px;\n flex-grow: 0;\n width: 117px;\n}\n.AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-wrapper__3Y4Kq .AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-label__qPzXB i {\n margin-right: 3px;\n}\n.AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-wrapper__3Y4Kq .AggregationsPlugin_collation-toolbar-module-has-error__1DJu7 {\n background: #ef4c4c;\n}\n.AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-wrapper__3Y4Kq input {\n border: 0;\n width: 100%;\n}\n.AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-wrapper__3Y4Kq input:focus {\n outline-width: 0;\n}\n.AggregationsPlugin_collation-toolbar-module-has-focus__3yMBL {\n border-color: #43b1e5;\n}\n',""]),r.locals={"collation-toolbar":"AggregationsPlugin_collation-toolbar-module-collation-toolbar__31baA","collation-toolbar-input-wrapper":"AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-wrapper__3Y4Kq","collation-toolbar-input-label":"AggregationsPlugin_collation-toolbar-module-collation-toolbar-input-label__qPzXB","has-error":"AggregationsPlugin_collation-toolbar-module-has-error__1DJu7","has-focus":"AggregationsPlugin_collation-toolbar-module-has-focus__3yMBL"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_import-pipeline-module-import-pipeline-note__vDPrD {\n color: steelblue;\n background-color: #B0E0E6;\n border-radius: 5px;\n padding: 10px;\n margin-bottom: 10px;\n}\n.AggregationsPlugin_import-pipeline-module-import-pipeline-editor__2L-TC {\n flex-shrink: 0;\n position: relative;\n padding: 10px 0px 10px 0px;\n overflow: scroll;\n background: #f5f6f7;\n border-left: 2px solid #E4E4E4;\n min-height: 180px;\n max-height: 300px;\n}\n.AggregationsPlugin_import-pipeline-module-import-pipeline-error__92RZw {\n flex-shrink: 0;\n position: relative;\n margin: 10px 0px;\n padding: 10px;\n border-radius: 3px;\n overflow: auto;\n background: #ff473a;\n max-height: 100px;\n color: #f5f6f7;\n font-size: x-small;\n font-weight: bold;\n}\n",""]),r.locals={"import-pipeline-note":"AggregationsPlugin_import-pipeline-module-import-pipeline-note__vDPrD","import-pipeline-editor":"AggregationsPlugin_import-pipeline-module-import-pipeline-editor__2L-TC","import-pipeline-error":"AggregationsPlugin_import-pipeline-module-import-pipeline-error__92RZw"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_confirm-import-pipeline-module-confirm-import-pipeline-note__3qDU3 {\n padding: 0px;\n}\n",""]),r.locals={"confirm-import-pipeline-note":"AggregationsPlugin_confirm-import-pipeline-module-confirm-import-pipeline-note__3qDU3"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_confirm-new-pipeline-module-confirm-new-pipeline-note__2n2EL {\n padding: 0px;\n}\n",""]),r.locals={"confirm-new-pipeline-note":"AggregationsPlugin_confirm-new-pipeline-module-confirm-new-pipeline-note__2n2EL"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,".AggregationsPlugin_pipeline-module-pipeline__1nWUF {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n position: relative;\n}\n.AggregationsPlugin_pipeline-module-pipeline-fullscreen__2QlA5 {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n}\n",""]),r.locals={pipeline:"AggregationsPlugin_pipeline-module-pipeline__1nWUF","pipeline-fullscreen":"AggregationsPlugin_pipeline-module-pipeline-fullscreen__2QlA5"},t.a=r},function(e,t,n){"use strict";var i=n(4),r=n.n(i)()(!1);r.push([e.i,"@media screen and (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (min-width: 768px) {\n}@media (min-width: 768px) {\n}@media (max-width: 767px) {\n}@media (max-width: 767px) {\n}.AggregationsPlugin_aggregations-module-aggregations__12xcN {\n display: flex;\n align-items: flex-start;\n height: 100%;\n background-color: #f5f6f7;\n position: relative;\n min-height: 0;\n}\n",""]),r.locals={aggregations:"AggregationsPlugin_aggregations-module-aggregations__12xcN"},t.a=r},function(e,t,n){"use strict";t.__esModule=!0,t.color=t.hsla=t.rgba=t.hex=void 0;var i=n(11),r=t.hex=function(e){var t=void 0,n=void 0,i=void 0;return e.length>4?(t=e.substr(1,2),n=e.substr(3,2),i=e.substr(5,2)):(t=e.substr(1,1),n=e.substr(2,1),i=e.substr(3,1),t+=t,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:1}},s=t.rgba=(0,i.splitColorValues)(["red","green","blue","alpha"]),o=t.hsla=(0,i.splitColorValues)(["hue","saturation","lightness","alpha"]);t.color=function(e){return(0,i.isRgb)(e)?s(e):(0,i.isHex)(e)?r(e):(0,i.isHsl)(e)?o(e):e}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=n(15);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){var n,i;s(this,t);for(var r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(a))),i.playNext=function(){var e=i.props;e.i<e.order.length-1?(i.props.i++,i.playCurrent()):i.complete()},o(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onStart=function(){this.props.i=0,this.playCurrent()},t.prototype.playCurrent=function(){var e=this.props,t=e.i,n=e.order;n[t].props._onComplete=this.playNext,n[t].start()},t.prototype.onStop=function(){var e=this.props,t=e.i;e.order[t].stop()},t}(((i=r)&&i.__esModule?i:{default:i}).default);t.default=function(e,t){return new a({order:e,onComplete:t})}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=n(34),s=(i=r)&&i.__esModule?i:{default:i};t.default=function(e,t){return(0,s.default)({duration:e,onComplete:t})}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(33);t.default={color:i.color,backgroundColor:i.color,outlineColor:i.color,fill:i.color,stroke:i.color,borderColor:i.color,borderTopColor:i.color,borderRightColor:i.color,borderBottomColor:i.color,borderLeftColor:i.color,borderRadius:i.px,width:i.px,height:i.px,top:i.px,left:i.px,bottom:i.px,right:i.px,rotate:i.degrees,rotateX:i.degrees,rotateY:i.degrees,rotateZ:i.degrees,scale:i.scale,scaleX:i.scale,scaleY:i.scale,scaleZ:i.scale,skewX:i.degrees,skewY:i.degrees,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,perspective:i.px,opacity:i.alpha}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(11),r={},s={},o=["Webkit","Moz","O","ms",""],a=o.length,l=void 0;t.default=function(e,t){var n=t?s:r;return n[e]||function(e){l=l||document.createElement("div");for(var t=0;t<a;t++){var n=o[t],u=""===n,c=u?e:n+e.charAt(0).toUpperCase()+e.slice(1);c in l.style&&(r[e]=c,s[e]=(u?"":"-")+(0,i.camelToDash)(c))}}(e),n[e]}},function(e,t,n){"use strict";function i(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var n=0,r=t.length;n<r;++n)i(e,t[n]);else i(e,t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i,r){for(var s=0,o=e.length;s<o;++s){var a=e[s](t,n,i,r);if(a)return a}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(e)};var i,r=n(182),s=(i=r)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";const i=n(199),r=n(200);e.exports={getEOL:function(e){let t=0,n=0,i=0;for(;t<e.length&&(t=e.indexOf("\n",t),-1!=t);)t>0&&"\r"===e[t-1]?i++:n++,t++;return n===i?r.EOL:n>i?"\n":"\r\n"},getSpaces:function(e){return" ".repeat(e)},parseRegEx:function(e,t){const n=[];return i.tokenize(e,{loc:!0,range:!0,tolerant:!!t},e=>{"RegularExpression"===e.type&&n.push({start:e.range[0]+1,end:e.range[1]-1})}),n},indexInRegEx:function(e,t){let n,i=0,r=t.length-1;for(;i<=r;){n=Math.round((i+r)/2);const s=t[n];if(e>=s.start){if(e<=s.end)return!0;i=n+1}else r=n-1}return!1},isHtml:function(e){let t,n=0;do{if(t=e[n]," "!==t&&"\t"!==t&&"\r"!==t&&"\n"!==t)return"<"===t}while(++n<e.length)}}},function(e,t,n){var i=n(37),r=n(203),s=n(117),o=n(55),a=n(121),l=n(28),u=n(123),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(l(e,t))return s(!r.f.call(e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(27),r=n(119),s="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(38);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(120);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(37),r=n(27),s=n(204);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(37),r=n(123),s=n(125),o=n(121),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(s(e),t=o(t,!0),s(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(38);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var i=n(57),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},function(e,t){e.exports={}},function(e,t,n){var i=n(214),r=n(12),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e])||s(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},function(e,t,n){var i=n(130),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t){ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),o=e("./range").Range,a=e("./anchor").Anchor,l=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,c=o.comparePoints,h=function(){this.snippetMap={},this.snippetNameMap={}};(function(){i.implement(this,r),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return h.$tokenizer=new u({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length||-1!="`$\\".indexOf(i)?e=i:n.inFormatString&&("n"==i||"t"==i?e="\n":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:i>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,i){var r=e(t.substr(1),0,i);return i.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var i=n[0];return i.fmtString=e,e=this.splitRegex.exec(e),i.guard=e[1],i.fmt=e[2],i.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),h.prototype.getTokenizer=function(){return h.$tokenizer},h.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var i=e.session;switch(t){case"CURRENT_WORD":var r=i.getWordRange();case"SELECTION":case"SELECTED_TEXT":return i.getTextRange(r);case"CURRENT_LINE":return i.getLine(e.getCursorPosition().row);case"PREV_LINE":return i.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return i.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return i.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(e,t,n){var i=t.flag||"",r=t.guard;r=new RegExp(r,i.replace(/[^gi]/,""));var s=this.tokenizeTmSnippet(t.fmt,"formatString"),o=this,a=e.replace(r,(function(){o.variables.__=arguments;for(var e=o.resolveVariables(s,n),t="E",i=0;i<e.length;i++){var r=e[i];if("object"==typeof r)if(e[i]="",r.changeCase&&r.local){var a=e[i+1];a&&"string"==typeof a&&("u"==r.changeCase?e[i]=a[0].toUpperCase():e[i]=a[0].toLowerCase(),e[i+1]=a.substr(1))}else r.changeCase&&(t=r.changeCase);else"U"==t?e[i]=r.toUpperCase():"L"==t&&(e[i]=r.toLowerCase())}return e.join("")}));return this.variables.__=null,a},this.resolveVariables=function(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];if("string"==typeof r)n.push(r);else{if("object"!=typeof r)continue;if(r.skip)o(r);else{if(r.processed<i)continue;if(r.text){var s=this.getVariableValue(t,r.text);s&&r.fmtString&&(s=this.tmStrFormat(s,r)),r.processed=i,null==r.expectIf?s&&(n.push(s),o(r)):s?r.skip=r.elseBranch:o(r)}else(null!=r.tabstopId||null!=r.changeCase)&&n.push(r)}}}function o(t){var n=e.indexOf(t,i+1);-1!=n&&(i=n)}return n},this.insertSnippetForSelection=function(e,t){var n=e.getCursorPosition(),i=e.session.getLine(n.row),r=e.session.getTabString(),s=i.match(/^\s*/)[0];n.column<s.length&&(s=s.slice(0,n.column)),t=t.replace(/\r/g,"");var o=this.tokenizeTmSnippet(t);o=(o=this.resolveVariables(o,e)).map((function(e){return"\n"==e?e+s:"string"==typeof e?e.replace(/\t/g,r):e}));var a=[];o.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,i=a[n];if(i||((i=a[n]=[]).index=n,i.value=""),-1===i.indexOf(e)){i.push(e);var r=o.indexOf(e,t+1);if(-1!==r){var s=o.slice(t+1,r);s.some((function(e){return"object"==typeof e}))&&!i.value?i.value=s:!s.length||i.value&&"string"==typeof i.value||(i.value=s.join(""))}}}})),a.forEach((function(e){e.length=0}));var l={};function u(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if("object"==typeof i){if(l[i.tabstopId])continue;i=t[e.lastIndexOf(i,n-1)]||{tabstopId:i.tabstopId}}t[n]=i}return t}for(var c=0;c<o.length;c++){var h=o[c];if("object"==typeof h){var d=h.tabstopId,f=o.indexOf(h,c+1);if(l[d])l[d]===h&&(l[d]=null);else{var g=a[d],m="string"==typeof g.value?[g.value]:u(g.value);m.unshift(c+1,Math.max(0,f-c)),m.push(h),l[d]=h,o.splice.apply(o,m),-1===g.indexOf(h)&&g.push(h)}}}var v=0,y=0,b="";o.forEach((function(e){if("string"==typeof e){var t=e.split("\n");t.length>1?(y=t[t.length-1].length,v+=t.length-1):y+=e.length,b+=e}else e.start?e.end={row:v,column:y}:e.start={row:v,column:y}}));var w=e.getSelectionRange(),x=e.session.replace(w,b),C=new p(e),E=e.inVirtualSelectionMode&&e.selection.index;C.addTabstops(a,w.start,x,E)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),i=e.session.getState(n.row);"object"==typeof i&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?t="javascript":"css-"==i.substring(0,4)?t="css":"php-"==i.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),r=e.session.getLine(i.row),s=r.substring(0,i.column),o=r.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,s,o)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var r=e[i];if((!r.startRe||r.startRe.test(t))&&((!r.endRe||r.endRe.test(n))&&(r.startRe||r.endRe)))return r.matchBefore=r.startRe?r.startRe.exec(t):[""],r.matchAfter=r.endRe?r.endRe.exec(n):[""],r.replaceBefore=r.triggerRe?r.triggerRe.exec(t)[0]:"",r.replaceAfter=r.endTriggerRe?r.endTriggerRe.exec(n)[0]:"",r}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,i=this.snippetNameMap,r=this;function o(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function a(e,t,n){return e=o(e),t=o(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],i[t]={});var o=i[t];if(e.name){var l=o[e.name];l&&r.unregister(l),o[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=a(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=a(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?l(e):Array.isArray(e)&&e.forEach(l),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,i=this.snippetNameMap;function r(e){var r=i[e.scope||t];if(r&&r[e.name]){delete r[e.name];var s=n[e.scope||t],o=s&&s.indexOf(e);o>=0&&s.splice(o,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],i={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=r.exec(e);){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(e){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var s=t[2],o=t[3];if("regex"==s){var a=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=a.exec(o)[1],i.trigger=a.exec(o)[1],i.endTrigger=a.exec(o)[1],i.endGuard=a.exec(o)[1]}else"snippet"==s?(i.tabTrigger=o.match(/^\S*/)[0],i.name||(i.name=o)):i[s]=o}}return n},this.getSnippetByName=function(e,t){var n,i=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var r=i[t];return r&&(n=r[e]),!!n}),this),n}}).call(h.prototype);var p=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,i=e.end,r=n.row,s=i.row-r,o=i.column-n.column;if(t&&(s=-s,o=-o),!this.$inChange&&t){var a=this.selectedTabstop;if(a&&!a.some((function(e){return c(e.start,n)<=0&&c(e.end,i)>=0})))return this.detach()}for(var l=this.ranges,u=0;u<l.length;u++){var h=l[u];h.end.row<n.row||(t&&c(n,h.start)<0&&c(i,h.end)>0?(this.removeRange(h),u--):(h.start.row==r&&h.start.column>n.column&&(h.start.column+=o),h.end.row==r&&h.end.column>=n.column&&(h.end.column+=o),h.start.row>=r&&(h.start.row+=s),h.end.row>=r&&(h.end.row+=s),c(h.start,h.end)>0&&this.removeRange(h)))}l.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var n=this.editor.session,i=n.getTextRange(e.firstNonLinked),r=e.length;r--;){var s=e[r];if(s.linked){var o=t.snippetManager.tmStrFormat(i,s.original);n.replace(s,o)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=this.ranges.length;i--;)if(!this.ranges[i].linked){var r=this.ranges[i].contains(e.row,e.column),s=n||this.ranges[i].contains(t.row,t.column);if(r&&s)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var i=t.length;i--;)t.hasLinkedRanges&&t[i].linked||n.addRange(t[i].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var i=o.fromPoints(n,n);g(i.start,t),g(i.end,t),e[0]=[i],e[0].index=0}var r=[this.index+1,0],s=this.ranges;e.forEach((function(e,n){for(var i=this.$openTabstops[n]||e,a=e.length;a--;){var l=e[a],u=o.fromPoints(l.start,l.end||l.start);f(u.start,t),f(u.end,t),u.original=l,u.tabstop=i,s.push(u),i!=e?i.unshift(u):i[a]=u,l.fmtString?(u.linked=!0,i.hasLinkedRanges=!0):i.firstNonLinked||(i.firstNonLinked=u)}i.firstNonLinked||(i.hasLinkedRanges=!1),i===e&&(r.push(i),this.$openTabstops[n]=i),this.addTabstopMarkers(i)}),this),r.length>2&&(this.tabstops.length&&r.push(r.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,r))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(p.prototype);var d={};d.onChange=a.prototype.onChange,d.setPosition=function(e,t){this.pos.row=e,this.pos.column=t},d.update=function(e,t,n){this.$insertRight=n,this.pos=e,this.onChange(t)};var f=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},g=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new h;var m=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(m.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../virtual_renderer").VirtualRenderer,r=e("../editor").Editor,s=e("../range").Range,o=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),u=function(e){var t=new i(e);t.$maxLines=4;var n=new r(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusWaitTimout=0,n.$highlightTagPending=!0,n};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=function(e){var t=l.createElement("div"),n=new u(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var i,r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),h.start.row=h.end.row=t.row,e.stop()}));var c=new s(-1,0,-1,1/0),h=new s(-1,0,-1,1/0);h.id=n.session.addMarker(h,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?c.id&&(n.session.removeMarker(c.id),c.id=null):c.id=n.session.addMarker(c,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(i){if(i.x!=e.x||i.y!=e.y){(i=e).scrollTop=n.renderer.scrollTop;var t=i.getDocumentPosition().row;c.start.row!=t&&(c.id||n.setRow(t),d(t))}}else i=e})),n.renderer.on("beforeRender",(function(){if(i&&-1!=c.start.row){i.$pos=null;var e=i.getDocumentPosition().row;c.id||n.setRow(e),d(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow];i!=t.selectedNode&&(t.selectedNode&&l.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=i,i&&l.addCssClass(i,"ace_selected"))}));var p=function(){d(-1)},d=function(e,t){e!==c.start.row&&(c.start.row=c.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return c.start.row},o.addListener(n.container,"mouseout",p),n.on("hide",p),n.on("changeSelection",p),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var f=n.session.bgTokenizer;return f.$tokenizeRow=function(e){var t=n.data[e],i=[];if(!t)return i;"string"==typeof t&&(t={value:t}),t.caption||(t.caption=t.value||t.name);for(var r,s,o=-1,a=0;a<t.caption.length;a++)s=t.caption[a],o!==(r=t.matchMask&1<<a?1:0)?(i.push({type:t.className||(r?"completion-highlight":""),value:s}),o=r):i[i.length-1].value+=s;if(t.meta){var l=n.renderer.$size.scrollerWidth/n.renderer.layerConfig.characterWidth,u=t.meta;u.length+t.caption.length>l-2&&(u=u.substr(0,l-t.caption.length-3)+"…"),i.push({type:"rightAlignedText",value:u})}return i},f.$updateOnChange=r,f.start=r,n.session.$computeWidth=function(){return this.screenWidth=0},n.$blockScrolling=1/0,n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.data=[],n.setData=function(e){n.setValue(a.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return h.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),h.start.row!=e&&(n.selection.clearSelection(),h.start.row=h.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,r){var s=this.container,o=window.innerHeight,a=window.innerWidth,l=this.renderer,u=l.$maxLines*t*1.4,c=e.top+this.$borderSize;c>o/2&&!r&&c+t+u>o?(l.$maxPixelHeight=c-2*this.$borderSize,s.style.top="",s.style.bottom=o-c+"px",n.isTopdown=!1):(c+=t,l.$maxPixelHeight=o-c-.2*t,s.style.top=c+"px",s.style.bottom="",n.isTopdown=!0),s.style.display="",this.renderer.$textLayer.checkForSizeChanges();var h=e.left;h+s.offsetWidth>a&&(h=a-s.offsetWidth),s.style.left=h+"px",this._signal("show"),i=null,n.isOpen=!0},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n}})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var i=0,r=e.length;0===r&&n();for(var s=0;s<r;s++)t(e[s],(function(e,t){++i===r&&n(e,t)}))};var i=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||i;for(var r=[],s=t-1;s>=0&&n.test(e[s]);s--)r.push(e[s]);return r.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||i;for(var r=[],s=t;s<e.length&&n.test(e[s]);s++)r.push(e[s]);return r},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),i=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(i,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(i,n.column)}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],(function(e,t,n){"use strict";var i=e("./keyboard/hash_handler").HashHandler,r=e("./autocomplete/popup").AcePopup,s=e("./autocomplete/util"),o=(e("./lib/event"),e("./lib/lang")),a=e("./lib/dom"),l=e("./snippets").snippetManager,u=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new i,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=o.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=o.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new r(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var i=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var r=i.layerConfig.lineHeight,s=i.$cursorLayer.getPixelPosition(this.base,!0);s.left-=this.popup.getTextLeftOffset();var o=e.container.getBoundingClientRect();s.top+=o.top-i.layerConfig.offset,s.left+=o.left-e.renderer.scrollLeft,s.left+=i.gutterWidth,this.popup.show(s,r)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),i=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),r=this.popup&&this.popup.container;t==n||t.parentNode==r||i||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){var t=this.popup.getRow(),n=this.popup.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.popup.setRow(t)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText)for(var n,i=this.editor.selection.getAllRanges(),r=0;n=i[r];r++)n.start.column-=this.completions.filterText.length,this.editor.session.remove(n);e.snippet?l.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.detach()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),i=e.getCursorPosition(),r=s.getCompletionPrefix(e);this.base=n.doc.createAnchor(i.row,i.column-r.length),this.base.$insertRight=!0;var o=[],a=e.completers.length;return e.completers.forEach((function(l,u){l.getCompletions(e,n,i,r,(function(n,i){!n&&i&&(o=o.concat(i)),t(null,{prefix:s.getCompletionPrefix(e),matches:o,finished:0==--a})}))})),!0},this.showPopup=function(e){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(e){if(e&&this.base&&this.completions){var t=this.editor.getCursorPosition(),n=this.editor.session.getTextRange({start:this.base,end:t});if(n==this.completions.filterText)return;return this.completions.setFilter(n),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=n||this.completions.filtered[0].snippet?void this.openPopup(this.editor,n,e):this.detach():this.detach()}var i=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var r=function(){if(n.finished)return this.detach()}.bind(this),s=n.prefix,o=n&&n.matches;if(!o||!o.length)return r();if(0===s.indexOf(n.prefix)&&i==this.gatherCompletionsId){this.completions=new c(o),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(s);var a=this.completions.filtered;return a.length&&(1!=a.length||a[0].value!=s||a[0].snippet)?this.autoInsert&&1==a.length&&n.finished?this.insertMatch(a[0]):void this.openPopup(this.editor,s,e):r()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),i=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(i=e.getDocTooltip(n)),i})),i||(i=n),"string"==typeof i&&(i={docText:i}),i&&(i.docHTML||i.docText)?void this.showDocTooltip(i):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=a.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,i=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,window.innerWidth-i.right<320?(t.style.right=window.innerWidth-i.left+"px",t.style.left=""):(t.style.left=i.right+1+"px",t.style.right=""),t.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}}}).call(u.prototype),u.startCommand={name:"startAutocomplete",exec:function(e){e.completer||(e.completer=new u),e.completer.autoInsert=!1,e.completer.autoSelect=!0,e.completer.showPopup(e),e.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var c=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){return t.exactMatch-e.exactMatch||t.score-e.score}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],i=t.toUpperCase(),r=t.toLowerCase();e:for(var s,o=0;s=e[o];o++){var a=s.value||s.caption||s.snippet;if(a){var l,u,c=-1,h=0,p=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else for(var d=0;d<t.length;d++){var f=a.indexOf(r[d],c+1),g=a.indexOf(i[d],c+1);if((l=f>=0&&(g<0||f<g)?f:g)<0)continue e;(u=l-c-1)>0&&(-1===c&&(p+=10),p+=u),h|=1<<l,c=l}s.matchMask=h,s.exactMatch=p?0:1,s.score=(s.score||0)-p,n.push(s)}}return n}}).call(c.prototype),t.Autocomplete=u,t.FilteredList=c})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../range").Range,r=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function s(e,t){var n=function(e,t){return e.getTextRange(i.fromPoints({row:0,column:0},t)).split(r).length-1}(e,t),s=e.getValue().split(r),o=Object.create(null),a=s[n];return s.forEach((function(e,t){if(e&&e!==a){var i=Math.abs(n-t),r=s.length-i;o[e]?o[e]=Math.max(r,o[e]):o[e]=r}})),o}t.getCompletions=function(e,t,n,i,r){var o=s(t,n);r(null,Object.keys(o).map((function(e){return{caption:e,value:e,score:o[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var i=e("../snippets").snippetManager,r=e("../autocomplete").Autocomplete,s=e("../config"),o=e("../lib/lang"),a=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),u={getCompletions:function(e,t,n,i,r){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,i,r);var s=e.session.getState(n.row);r(null,t.$mode.getCompletions(s,t,n,i))}},c={getCompletions:function(e,t,n,r,s){var o=i.snippetMap,a=[];i.getActiveScopes(e).forEach((function(e){for(var t=o[e]||[],n=t.length;n--;){var i=t[n],r=i.name||i.tabTrigger;r&&a.push({caption:r,snippet:i.content,meta:i.tabTrigger&&!i.name?i.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),s(null,a)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",o.escapeHTML(e.caption),"</b>","<hr></hr>",o.escapeHTML(e.snippet)].join(""))}},h=[c,l,u];t.setCompleters=function(e){h.length=0,e&&h.push.apply(h,e)},t.addCompleter=function(e){h.push(e)},t.textCompleter=l,t.keyWordCompleter=u,t.snippetCompleter=c;var p={name:"expandSnippet",exec:function(e){return i.expandWithTab(e)},bindKey:"Tab"},d=function(e,t){f(t.session.$mode)},f=function(e){var t=e.$id;i.files||(i.files={}),g(t),e.modes&&e.modes.forEach(f)},g=function(e){if(e&&!i.files[e]){var t=e.replace("mode","snippets");i.files[e]={},s.loadModule(t,(function(t){t&&(i.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=i.parseSnippetFile(t.snippetText)),i.register(t.snippets||[],t.scope),t.includeScopes&&(i.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){g("ace/mode/"+e)}))))}))}},m=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!a.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){a.getCompletionPrefix(t)&&!n&&(t.completer||(t.completer=new r),t.completer.autoInsert=!1,t.completer.showPopup(t))}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.addCommand(r.startCommand)):this.commands.removeCommand(r.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.on("afterExec",m)):this.commands.removeListener("afterExec",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(p),this.on("changeMode",d),d(0,this)):(this.commands.removeCommand(p),this.off("changeMode",d))},value:!1}})})),ace.acequire(["ace/ext/language_tools"],(function(){}))},function(e,t){e.exports=f},function(e,t){e.exports=g},function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty,r="~";function s(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||e,s),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new s:delete e._events[t]}function u(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(r=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)i.call(e,t)&&n.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=new Array(s);i<s;i++)o[i]=n[i].fn;return o},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,i,s,o){var a=r?r+e:e;if(!this._events[a])return!1;var l,u,c=this._events[a],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,s),!0;case 6:return c.fn.call(c.context,t,n,i,s,o),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var p,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(p=1,l=new Array(h-1);p<h;p++)l[p-1]=arguments[p];c[u].fn.apply(c[u].context,l)}}return!0},u.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,i){var s=r?r+e:e;if(!this._events[s])return this;if(!t)return l(this,s),this;var o=this._events[s];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||l(this,s);else{for(var a=0,u=[],c=o.length;a<c;a++)(o[a].fn!==t||i&&!o[a].once||n&&o[a].context!==n)&&u.push(o[a]);u.length?this._events[s]=1===u.length?u[0]:u:l(this,s)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&l(this,t)):(this._events=new s,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=n(134),f=n(229),g=n(230),m=n(231),v=n(232),y=n(42),b=n(136),w=n(233),x=n(242),C={Added:"Element::Added",Edited:"Element::Edited",Removed:"Element::Removed",Reverted:"Element::Reverted",Converted:"Element::Converted",Invalid:"Element::Invalid",Valid:"Element::Valid"},E=["Binary","Code","MinKey","MaxKey","Timestamp","BSONRegExp","Undefined","Null"],A=/^(\[|\{)(.+)(\]|\})$/,S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e);var t=c(n);function n(e,i,r,s,a,l){var u;return o(this,n),(u=t.call(this)).uuid=x.v4(),u.key=e,u.currentKey=e,u.parent=s,u.previousElement=a,u.nextElement=l,u.added=r,u.removed=!1,u.type=w.type(i),u.currentType=u.type,u.setValid(),u._isExpandable(i)?(u.elements=u._generateElements(i),u.originalExpandableValue=i):(u.value=i,u.currentValue=i),u}return l(n,[{key:"bulkEdit",value:function(e){e.match(A)?(this.edit(JSON.parse(e)),this._bubbleUp(C.Converted)):this.edit(e)}},{key:"cancel",value:function(){if(this.elements){var e,t=r(this.elements);try{for(t.s();!(e=t.n()).done;){e.value.cancel()}}catch(e){t.e(e)}finally{t.f()}}this.isModified()&&this.revert()}},{key:"edit",value:function(e){this.currentType=w.type(e),this._isExpandable(e)&&!this._isExpandable(this.currentValue)?(this.currentValue=null,this.elements=this._generateElements(e)):!this._isExpandable(e)&&this.elements?(this.currentValue=e,this.elements=void 0):this.currentValue=e,this.setValid(),this._bubbleUp(C.Edited)}},{key:"get",value:function(e){return this.elements?this.elements.get(e):void 0}},{key:"at",value:function(e){return this.elements?this.elements.at(e):void 0}},{key:"next",value:function(){return"{"===this.currentValue?this._convertToEmptyObject():"["===this.currentValue?this._convertToEmptyArray():this._next()}},{key:"rename",value:function(e){if(void 0!==this.parent){var t=this.parent.elements._map[this.currentKey];delete this.parent.elements._map[this.currentKey],this.parent.elements._map[e]=t}this.currentKey=e,this._bubbleUp(C.Edited)}},{key:"generateObject",value:function(){return"Array"===this.currentType?b.generateArray(this.elements):this.elements?b.generate(this.elements):this.currentValue}},{key:"generateOriginalObject",value:function(){if("Array"===this.type){var e=this._generateElements(this.originalExpandableValue);return b.generateOriginalArray(e)}if("Object"===this.type){var t=this._generateElements(this.originalExpandableValue);return b.generateOriginal(t)}return this.value}},{key:"insertAfter",value:function(e,t,n){"Array"===this.currentType&&(""===e.currentKey&&this.elements.handleEmptyKeys(e),t=e.currentKey+1);var i=this.elements.insertAfter(e,t,n,!0,this);return"Array"===this.currentType&&this.elements.updateKeys(i,1),this._bubbleUp(C.Added),i}},{key:"insertEnd",value:function(e,t){"Array"===this.currentType&&(this.elements.flush(),e=0,this.elements.lastElement&&(""===this.elements.lastElement.currentKey&&this.elements.handleEmptyKeys(this.elements.lastElement),e=this.elements.lastElement.currentKey+1));var n=this.elements.insertEnd(e,t,!0,this);return this._bubbleUp(C.Added),n}},{key:"insertPlaceholder",value:function(){var e=this.elements.insertEnd("","",!0,this);return this._bubbleUp(C.Added),e}},{key:"isAdded",value:function(){return this.added||this.parent&&this.parent.isAdded()}},{key:"isBlank",value:function(){return""===this.currentKey&&""===this.currentValue}},{key:"isCurrentTypeValid",value:function(){return this.currentTypeValid}},{key:"setValid",value:function(){this.currentTypeValid=!0,this.invalidTypeMessage=void 0,this._bubbleUp(C.Valid,this.uuid)}},{key:"setInvalid",value:function(e,t,n){this.currentValue=e,this.currentType=t,this.currentTypeValid=!1,this.invalidTypeMessage=n,this._bubbleUp(C.Invalid,this.uuid)}},{key:"isDuplicateKey",value:function(e){if(e===this.currentKey)return!1;var t,n=r(this.parent.elements);try{for(n.s();!(t=n.n()).done;){if(t.value.currentKey===e)return!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"isEdited",value:function(){return(this.isRenamed()||!this._valuesEqual()||this.type!==this.currentType)&&!this.isAdded()}},{key:"_valuesEqual",value:function(){return"Date"===this.currentType&&y(this.currentValue)?v(this.value,new Date(this.currentValue)):"ObjectId"===this.currentType&&y(this.currentValue)?this._isObjectIdEqual():v(this.value,this.currentValue)}},{key:"_isObjectIdEqual",value:function(){try{return this.value.toHexString()===this.currentValue}catch(e){return!1}}},{key:"isLast",value:function(){return this.parent.elements.lastElement===this}},{key:"isRenamed",value:function(){var e=!1;return this.parent&&!this.parent.isRoot()&&"Object"!==this.parent.currentType||(e=this.key!==this.currentKey),e}},{key:"isRevertable",value:function(){return this.isEdited()||this.isRemoved()}},{key:"isRemovable",value:function(){return!this.parent.isRemoved()}},{key:"isNotActionable",value:function(){return"_id"===this.key&&!this.isAdded()||!this.isRemovable()}},{key:"isValueEditable",value:function(){return this.isKeyEditable()&&!E.includes(this.currentType)}},{key:"isParentEditable",value:function(){return!(this.parent&&!this.parent.isRoot())||this.parent.isKeyEditable()}},{key:"isKeyEditable",value:function(){return this.isParentEditable()&&(this.isAdded()||"_id"!==this.currentKey)}},{key:"isModified",value:function(){if(this.elements){var e,t=r(this.elements);try{for(t.s();!(e=t.n()).done;){if(e.value.isModified())return!0}}catch(e){t.e(e)}finally{t.f()}}return this.isAdded()||this.isEdited()||this.isRemoved()}},{key:"isRemoved",value:function(){return this.removed}},{key:"isRoot",value:function(){return!1}},{key:"remove",value:function(){this.revert(),this.removed=!0,this._bubbleUp(C.Removed)}},{key:"revert",value:function(){this.isAdded()?(this.parent&&"Array"===this.parent.currentType&&this.parent.elements.updateKeys(this,-1),this.parent.elements.remove(this),this.parent.emit(C.Removed),this.parent=null):(this.originalExpandableValue?(this.elements=this._generateElements(this.originalExpandableValue),this.currentValue=void 0):(null===this.currentValue&&null!==this.value?this.elements=null:this._removeAddedElements(),this.currentValue=this.value),this.currentKey=this.key,this.currentType=this.type,this.removed=!1),this.setValid(),this._bubbleUp(C.Reverted)}},{key:"_bubbleUp",value:function(e,t){this.emit(e,t);var n=this.parent;n&&(n.isRoot()?n.emit(e,t):n._bubbleUp(e,t))}},{key:"_convertToEmptyObject",value:function(){this.edit({}),this.insertPlaceholder()}},{key:"_convertToEmptyArray",value:function(){this.edit([]),this.insertPlaceholder()}},{key:"_isElementEmpty",value:function(e){return e&&e.isAdded()&&e.isBlank()}},{key:"_isExpandable",value:function(e){return g(e)||m(e)}},{key:"_generateElements",value:function(e){return new D(this,e)}},{key:"_key",value:function(e,t){return"Array"===this.currentType?t:e}},{key:"_next",value:function(){this._isElementEmpty(this.nextElement)||this._isElementEmpty(this)||this.parent.insertAfter(this,"","")}},{key:"_removeAddedElements",value:function(){if(this.elements){var e,t=r(this.elements);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.isAdded()&&this.elements.remove(n)}}catch(e){t.e(e)}finally{t.f()}}}}]),n}(d),D=function(){function e(t,n){o(this,e),this.firstElement=null,this.lastElement=null,this.doc=t,this.originalDoc=n,this.keys=f(this.originalDoc),"Array"===this.doc.currentType&&(this.keys=this.keys.map((function(e){return parseInt(e,10)}))),this.size=this.keys.length,this.loaded=0,this._map={}}return l(e,[{key:"at",value:function(e){if(this.flush(),Number.isInteger(e)){for(var t=this.firstElement,n=0;n<e;n++){if(!t)return;t=t.nextElement}return null===t?void 0:t}}},{key:"get",value:function(e){return this.flush(),this._map[e]}},{key:"insertAfter",value:function(e,t,n,i,r){return this.flush(),this._insertAfter(e,t,n,i,r)}},{key:"updateKeys",value:function(e,t){for(this.flush();e.nextElement;)e.nextElement.currentKey+=t,e=e.nextElement}},{key:"handleEmptyKeys",value:function(e){if(""===e.currentKey){for(var t=e;""===t.currentKey;){if(!t.previousElement){t.currentKey=0;break}t=t.previousElement}for(;t.nextElement;)t.nextElement.currentKey=t.currentKey+1,t=t.nextElement}}},{key:"insertBefore",value:function(e,t,n,i,r){return this.flush(),this._insertBefore(e,t,n,i,r)}},{key:"insertBeginning",value:function(e,t,n,i){return this.flush(),this._insertBeginning(e,t,n,i)}},{key:"insertEnd",value:function(e,t,n,i){return this.flush(),this.lastElement?this.insertAfter(this.lastElement,e,t,n,i):this.insertBeginning(e,t,n,i)}},{key:"flush",value:function(){if(this.loaded<this.size){var e,t=r(this);try{for(t.s();!(e=t.n()).done;){var n=e.value;n&&n.elements&&n.elements.flush()}}catch(e){t.e(e)}finally{t.f()}}}},{key:Symbol.iterator,value:function(){var e,t=this,n=0;return{next:function(){if(t._needsLazyLoad(n)){var i=t.keys[n];return n+=1,{value:e=t._lazyInsertEnd(i)}}return t._needsStandardIteration(n)&&(e=e?e.nextElement:t.firstElement)?(n+=1,{value:e}):{done:!0}}}}},{key:"_needsLazyLoad",value:function(e){return 0===e&&0===this.loaded&&this.size>0||this.loaded<=e&&e<this.size}},{key:"_needsStandardIteration",value:function(e){return this.loaded>0&&e<this.loaded&&e<this.size}},{key:"_lazyInsertEnd",value:function(e){return this.size-=1,this._insertEnd(e,this.originalDoc[e],this.doc.cloned,this.doc)}},{key:"_insertEnd",value:function(e,t,n,i){return this.lastElement?this._insertAfter(this.lastElement,e,t,n,i):this._insertBeginning(e,t,n,i)}},{key:"_insertBefore",value:function(e,t,n,i,r){var s=new S(t,n,i,r,e.previousElement,e);return e.previousElement?e.previousElement.nextElement=s:this.firstElement=s,e.previousElement=s,this._map[s.key]=s,this.size+=1,this.loaded+=1,s}},{key:"_insertBeginning",value:function(e,t,n,i){if(!this.firstElement){var r=new S(e,t,n,i,null,null);return this.firstElement=this.lastElement=r,this.size+=1,this.loaded+=1,this._map[r.key]=r,r}var s=this.insertBefore(this.firstElement,e,t,n,i);return this._map[s.key]=s,s}},{key:"_insertAfter",value:function(e,t,n,i,r){var s=new S(t,n,i,r,e,e.nextElement);return e.nextElement?e.nextElement.previousElement=s:this.lastElement=s,e.nextElement=s,this._map[s.key]=s,this.size+=1,this.loaded+=1,s}},{key:"remove",value:function(e){return this.flush(),e.previousElement?e.previousElement.nextElement=e.nextElement:this.firstElement=e.nextElement,e.nextElement?e.nextElement.previousElement=e.previousElement:this.lastElement=e.previousElement,e.nextElement=e.previousElement=null,delete this._map[e.currentKey],this.size-=1,this.loaded-=1,this}}]),e}();e.exports=S,e.exports.LinkedList=D,e.exports.Events=C,e.exports.DATE_FORMAT="YYYY-MM-DD HH:mm:ss.SSS"},function(e,t,n){"use strict";function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"generate",value:function(e){if(e){var t,n={},r=i(e);try{for(r.s();!(t=r.n()).done;){var s=t.value;s.isRemoved()||""===s.currentKey||(n[s.currentKey]=s.generateObject())}}catch(e){r.e(e)}finally{r.f()}return n}return e}},{key:"generateOriginal",value:function(e){if(e){var t,n={},r=i(e);try{for(r.s();!(t=r.n()).done;){var s=t.value;s.isAdded()||(n[s.key]=s.generateOriginalObject())}}catch(e){r.e(e)}finally{r.f()}return n}return e}},{key:"generateArray",value:function(e){if(e){var t,n=[],r=i(e);try{for(r.s();!(t=r.n()).done;){var s=t.value;s.isRemoved()||(s.elements?n.push(s.generateObject()):n.push(s.currentValue))}}catch(e){r.e(e)}finally{r.f()}return n}return e}},{key:"generateOriginalArray",value:function(e){if(e){var t,n=[],r=i(e);try{for(r.s();!(t=r.n()).done;){var s=t.value;s.originalExpandableValue?n.push(s.generateOriginalObject()):s.isAdded()||n.push(s.value)}}catch(e){r.e(e)}finally{r.f()}return n}return e}}])&&s(t.prototype,n),r&&s(t,r),e}();e.exports=new o},function(e,t){e.exports=require("electron")},function(e,t){e.exports=m},function(e,t,n){"use strict";var i=n(59),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?o:a[e.$$typeof]||r}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(f){var r=d(n);r&&r!==f&&e(t,r,i)}var o=c(n);h&&(o=o.concat(h(n)));for(var a=l(t),g=l(n),m=0;m<o.length;++m){var v=o[m];if(!(s[v]||i&&i[v]||g&&g[v]||a&&a[v])){var y=p(n,v);try{u(t,v,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";function i(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return i}))},function(e,t){e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(1),o=l(s),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],h=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||d()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||d()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(h(e,this.sizer),this.placeHolderSizer&&h(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?o.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=i({},this.props.style);t.display||(t.display="inline-block");var n=i({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,o.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),o.default.createElement("input",i({},r,{ref:this.inputRef})),o.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?o.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(s.Component);f.propTypes={className:a.default.string,defaultValue:a.default.any,extraWidth:a.default.oneOfType([a.default.number,a.default.string]),id:a.default.string,injectStyles:a.default.bool,inputClassName:a.default.string,inputRef:a.default.func,inputStyle:a.default.object,minWidth:a.default.oneOfType([a.default.number,a.default.string]),onAutosize:a.default.func,onChange:a.default.func,placeholder:a.default.string,placeholderIsMinWidth:a.default.bool,style:a.default.object,value:a.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.default=f},function(e,t,n){!function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function(e,n,i){"string"==typeof e?(2==arguments.length&&(i=n),t.modules[e]||(t.payloads[e]=i,t.modules[e]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n,i,r=function(e,t,n){if("string"==typeof t){var i=a(e,t);if(null!=i)return n&&n(),i}else if("[object Array]"===Object.prototype.toString.call(t)){for(var r=[],o=0,l=t.length;o<l;++o){var u=a(e,t[o]);if(null==u&&s.original)return;r.push(u)}return n&&n.apply(null,r)||!0}},s=function(e,t){var n=r("",e,t);return null==n&&s.original?s.original.apply(this,arguments):n},o=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return o(e,n[0])+"!"+o(e,n[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&i!=t;){var i=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},a=function(e,n){n=o(e,n);var i=t.modules[n];if(!i){if("function"==typeof(i=t.payloads[n])){var s={},a={id:n,uri:"",exports:s,packaged:!0};s=i((function(e,t){return r(n,e,t)}),s,a)||a.exports,t.modules[n]=s,delete t.payloads[n]}i=t.modules[n]=s||i}return i};i=e,(n="ace")&&(e[n]||(e[n]={}),i=e[n]),i.define&&i.define.packaged||(t.original=i.define,i.define=t,i.define.packaged=!0),i.acequire&&i.acequire.packaged||(s.original=i.acequire,i.acequire=s,i.acequire.packaged=!0)}(),ace.define("ace/lib/regexp",["require","exports","module"],(function(e,t,n){"use strict";var i,r={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},s=void 0===r.exec.call(/()??/,"")[1],o=(i=/^/g,r.test.call(i,""),!i.lastIndex);function a(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function l(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var i=n||0;i<e.length;i++)if(e[i]===t)return i;return-1}o&&s||(RegExp.prototype.exec=function(e){var t,n,i=r.exec.apply(this,arguments);if("string"==typeof e&&i){if(!s&&i.length>1&&l(i,"")>-1&&(n=RegExp(this.source,r.replace.call(a(this),"g","")),r.replace.call(e.slice(i.index),n,(function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(i[e]=void 0)}))),this._xregexp&&this._xregexp.captureNames)for(var u=1;u<i.length;u++)(t=this._xregexp.captureNames[u-1])&&(i[t]=i[u]);!o&&this.global&&!i[0].length&&this.lastIndex>i.index&&this.lastIndex--}return i},o||(RegExp.prototype.test=function(e){var t=r.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function i(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=p.call(arguments,1),r=function(){if(this instanceof r){var i=t.apply(this,n.concat(p.call(arguments)));return Object(i)===i?i:this}return t.apply(e,n.concat(p.call(arguments)))};return t.prototype&&(i.prototype=t.prototype,r.prototype=new i,i.prototype=null),r});var r,s,o,a,l,u=Function.prototype.call,c=Array.prototype,h=Object.prototype,p=c.slice,d=u.bind(h.toString),f=u.bind(h.hasOwnProperty);if((l=f(h,"__defineGetter__"))&&(r=u.bind(h.__defineGetter__),s=u.bind(h.__defineSetter__),o=u.bind(h.__lookupGetter__),a=u.bind(h.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var g=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?g.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(p.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var i=this.slice(e,e+t),r=p.call(arguments,2),s=r.length;if(e===n)s&&this.push.apply(this,r);else{var o=Math.min(t,n-e),a=e+o,l=a+s-o,u=n-a,c=n-o;if(l<a)for(var h=0;h<u;++h)this[l+h]=this[a+h];else if(l>a)for(h=u;h--;)this[l+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,r);else for(this.length=c+s,h=0;h<s;++h)this[e+h]=r[h]}return i};Array.isArray||(Array.isArray=function(e){return"[object Array]"==d(e)});var m,v,y=Object("a"),b="a"!=y[0]||!(0 in y);if(Array.prototype.forEach||(Array.prototype.forEach=function(e){var t=P(this),n=b&&"[object String]"==d(this)?this.split(""):t,i=arguments[1],r=-1,s=n.length>>>0;if("[object Function]"!=d(e))throw new TypeError;for(;++r<s;)r in n&&e.call(i,n[r],r,t)}),Array.prototype.map||(Array.prototype.map=function(e){var t=P(this),n=b&&"[object String]"==d(this)?this.split(""):t,i=n.length>>>0,r=Array(i),s=arguments[1];if("[object Function]"!=d(e))throw new TypeError(e+" is not a function");for(var o=0;o<i;o++)o in n&&(r[o]=e.call(s,n[o],o,t));return r}),Array.prototype.filter||(Array.prototype.filter=function(e){var t,n=P(this),i=b&&"[object String]"==d(this)?this.split(""):n,r=i.length>>>0,s=[],o=arguments[1];if("[object Function]"!=d(e))throw new TypeError(e+" is not a function");for(var a=0;a<r;a++)a in i&&(t=i[a],e.call(o,t,a,n)&&s.push(t));return s}),Array.prototype.every||(Array.prototype.every=function(e){var t=P(this),n=b&&"[object String]"==d(this)?this.split(""):t,i=n.length>>>0,r=arguments[1];if("[object Function]"!=d(e))throw new TypeError(e+" is not a function");for(var s=0;s<i;s++)if(s in n&&!e.call(r,n[s],s,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){var t=P(this),n=b&&"[object String]"==d(this)?this.split(""):t,i=n.length>>>0,r=arguments[1];if("[object Function]"!=d(e))throw new TypeError(e+" is not a function");for(var s=0;s<i;s++)if(s in n&&e.call(r,n[s],s,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){var t=P(this),n=b&&"[object String]"==d(this)?this.split(""):t,i=n.length>>>0;if("[object Function]"!=d(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var r,s=0;if(arguments.length>=2)r=arguments[1];else for(;;){if(s in n){r=n[s++];break}if(++s>=i)throw new TypeError("reduce of empty array with no initial value")}for(;s<i;s++)s in n&&(r=e.call(void 0,r,n[s],s,t));return r}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){var t=P(this),n=b&&"[object String]"==d(this)?this.split(""):t,i=n.length>>>0;if("[object Function]"!=d(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var r,s=i-1;if(arguments.length>=2)r=arguments[1];else for(;;){if(s in n){r=n[s--];break}if(--s<0)throw new TypeError("reduceRight of empty array with no initial value")}do{s in this&&(r=e.call(void 0,r,n[s],s,t))}while(s--);return r}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=b&&"[object String]"==d(this)?this.split(""):P(this),n=t.length>>>0;if(!n)return-1;var i=0;for(arguments.length>1&&(i=O(arguments[1])),i=i>=0?i:Math.max(0,n+i);i<n;i++)if(i in t&&t[i]===e)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){var t=b&&"[object String]"==d(this)?this.split(""):P(this),n=t.length>>>0;if(!n)return-1;var i=n-1;for(arguments.length>1&&(i=Math.min(i,O(arguments[1]))),i=i>=0?i:n-Math.abs(i);i>=0;i--)if(i in t&&e===t[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:h)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(f(e,t)){var n;if(n={enumerable:!0,configurable:!0},l){var i=e.__proto__;e.__proto__=h;var r=o(e,t),s=a(e,t);if(e.__proto__=i,r||s)return r&&(n.get=r),s&&(n.set=s),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(m=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=m();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var i=function(){};i.prototype=e,(n=new i).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});function w(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){}}if(Object.defineProperty){var x=w({}),C="undefined"==typeof document||w(document.createElement("div"));if(!x||!C)var E=Object.defineProperty}if(!Object.defineProperty||E){Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(E)try{return E.call(Object,e,t,n)}catch(e){}if(f(n,"value"))if(l&&(o(e,t)||a(e,t))){var i=e.__proto__;e.__proto__=h,delete e[t],e[t]=n.value,e.__proto__=i}else e[t]=n.value;else{if(!l)throw new TypeError("getters & setters can not be defined on this javascript engine");f(n,"get")&&r(e,t,n.get),f(n,"set")&&s(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)f(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(e){Object.freeze=(v=Object.freeze,function(e){return"function"==typeof e?e:v(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";f(e,t);)t+="?";e[t]=!0;var n=f(e,t);return delete e[t],n}),!Object.keys){var A=!0,S=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],D=S.length;for(var k in{toString:null})A=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)f(e,n)&&t.push(n);if(A)for(var i=0,r=D;i<r;i++){var s=S[i];f(e,s)&&t.push(s)}return t}}Date.now||(Date.now=function(){return(new Date).getTime()});var F="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff";if(!String.prototype.trim||F.trim()){F="["+F+"]";var _=new RegExp("^"+F+F+"*"),T=new RegExp(F+F+"*$");String.prototype.trim=function(){return String(this).replace(_,"").replace(T,"")}}function O(e){return(e=+e)!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}var P=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(e,t,n){"use strict";e("./regexp"),e("./es5-shim")})),ace.define("ace/lib/dom",["require","exports","module"],(function(e,t,n){"use strict";t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),i=!0;;){var r=n.indexOf(t);if(-1==r)break;i=!1,n.splice(r,1)}return i&&n.push(t),e.className=n.join(" "),i},t.setCssClass=function(e,n,i){i?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,i=0;if((t=t||document).createStyleSheet&&(n=t.styleSheets)){for(;i<n.length;)if(n[i++].owningElement.id===e)return!0}else if(n=t.getElementsByTagName("style"))for(;i<n.length;)if(n[i++].id===e)return!0;return!1},t.importCssString=function(e,n,i){if(i=i||document,n&&t.hasCssString(n,i))return null;var r;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */"),i.createStyleSheet?((r=i.createStyleSheet()).cssText=e,n&&(r.owningElement.id=n)):((r=t.createElement("style")).appendChild(i.createTextNode(e)),n&&(r.id=n),t.getDocumentHead(i).appendChild(r))},t.importCssStylsheet=function(e,n){if(n.createStyleSheet)n.createStyleSheet(e);else{var i=t.createElement("link");i.rel="stylesheet",i.href=e,t.getDocumentHead(n).appendChild(i)}},t.getInnerWidth=function(e){return parseInt(t.computedStyle(e,"paddingLeft"),10)+parseInt(t.computedStyle(e,"paddingRight"),10)+e.clientWidth},t.getInnerHeight=function(e){return parseInt(t.computedStyle(e,"paddingTop"),10)+parseInt(t.computedStyle(e,"paddingBottom"),10)+e.clientHeight},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var i=t.createElement("ace_outer"),r=i.style;r.position="absolute",r.left="-10000px",r.overflow="hidden",r.width="200px",r.minWidth="0px",r.height="150px",r.display="block",i.appendChild(n);var s=e.documentElement;s.appendChild(i);var o=n.offsetWidth;r.overflow="scroll";var a=n.offsetWidth;return o==a&&(a=i.clientWidth),s.removeChild(i),o-a},"undefined"!=typeof document?(void 0!==window.pageYOffset?(t.getPageScrollTop=function(){return window.pageYOffset},t.getPageScrollLeft=function(){return window.pageXOffset}):(t.getPageScrollTop=function(){return document.body.scrollTop},t.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?t.computedStyle=function(e,t){return t?(window.getComputedStyle(e,"")||{})[t]||"":window.getComputedStyle(e,"")||{}}:t.computedStyle=function(e,t){return t?e.currentStyle[t]:e.currentStyle},t.setInnerHtml=function(e,t){var n=e.cloneNode(!1);return n.innerHTML=t,e.parentNode.replaceChild(n,e),n},"textContent"in document.documentElement?(t.setInnerText=function(e,t){e.textContent=t},t.getInnerText=function(e){return e.textContent}):(t.setInnerText=function(e,t){e.innerText=t},t.getInnerText=function(e){return e.innerText}),t.getParentWindow=function(e){return e.defaultView||e.parentWindow}):t.importCssString=function(){}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],(function(e,t,n){"use strict";e("./fixoldbrowsers");var i=e("./oop"),r=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(t,r),t.keyCodeToString=function(e){var t=r[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},"object"==typeof navigator){var i=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),r=navigator.userAgent;t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==navigator.appName||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((r.match(/rv:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isAIR=r.indexOf("AdobeAIR")>=0,t.isIPad=r.indexOf("iPad")>=0,t.isChromeOS=r.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0)}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("./keys"),r=e("./useragent"),s=null,o=0;t.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var i=function(){n.call(e,window.event)};n._wrapper=i,e.attachEvent("on"+t,i)}},t.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},t.capture=function(e,n,i){function r(e){n&&n(e),i&&i(e),t.removeListener(document,"mousemove",n,!0),t.removeListener(document,"mouseup",r,!0),t.removeListener(document,"dragstart",r,!0)}return t.addListener(document,"mousemove",n,!0),t.addListener(document,"mouseup",r,!0),t.addListener(document,"dragstart",r,!0),r},t.addTouchMoveListener=function(e,n){var i,r;t.addListener(e,"touchstart",(function(e){var t=e.touches[0];i=t.clientX,r=t.clientY})),t.addListener(e,"touchmove",(function(e){var t=e.touches;if(!(t.length>1)){var s=t[0];e.wheelX=i-s.clientX,e.wheelY=r-s.clientY,i=s.clientX,r=s.clientY,n(e)}}))},t.addMouseWheelListener=function(e,n){"onmousewheel"in e?t.addListener(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),n(e)})):"onwheel"in e?t.addListener(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}n(e)})):t.addListener(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)}))},t.addMultiMouseDownListener=function(e,n,i,s){var o,a,l,u=0,c={2:"dblclick",3:"tripleclick",4:"quadclick"};function h(e){if(0!==t.getButton(e)?u=0:e.detail>1?++u>4&&(u=1):u=1,r.isIE){var h=Math.abs(e.clientX-o)>5||Math.abs(e.clientY-a)>5;l&&!h||(u=1),l&&clearTimeout(l),l=setTimeout((function(){l=null}),n[u-1]||600),1==u&&(o=e.clientX,a=e.clientY)}if(e._clicks=u,i[s]("mousedown",e),u>4)u=0;else if(u>1)return i[s](c[u],e)}function p(e){u=2,l&&clearTimeout(l),l=setTimeout((function(){l=null}),n[u-1]||600),i[s]("mousedown",e),i[s](c[u],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){t.addListener(e,"mousedown",h),r.isOldIE&&t.addListener(e,"dblclick",p)}))};var a=r.isMac&&r.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function l(e,t,n){var l=a(t);if(!r.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(l|=8),s.altGr){if(3==(3&l))return;s.altGr=0}if(18===n||17===n){var u="location"in t?t.location:t.keyLocation;if(17===n&&1===u)1==s[n]&&(o=t.timeStamp);else if(18===n&&3===l&&2===u){t.timeStamp-o<50&&(s.altGr=!0)}}}if((n in i.MODIFIER_KEYS&&(n=-1),8&l&&n>=91&&n<=93&&(n=-1),!l&&13===n)&&(3===(u="location"in t?t.location:t.keyLocation)&&(e(t,l,-n),t.defaultPrevented)))return;if(r.isChromeOS&&8&l){if(e(t,l,n),t.defaultPrevented)return;l&=-9}return!!(l||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,l,n)}function u(){s=Object.create(null)}if(t.getModifierString=function(e){return i.KEY_MODS[a(e)]},t.addCommandKeyListener=function(e,n){var i=t.addListener;if(r.isOldGecko||r.isOpera&&!("KeyboardEvent"in window)){var o=null;i(e,"keydown",(function(e){o=e.keyCode})),i(e,"keypress",(function(e){return l(n,e,o)}))}else{var a=null;i(e,"keydown",(function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=l(n,e,e.keyCode);return a=e.defaultPrevented,t})),i(e,"keypress",(function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)})),i(e,"keyup",(function(e){s[e.keyCode]=null})),s||(u(),i(window,"focus",u))}},"object"==typeof window&&window.postMessage&&!r.isOldIE){t.nextTick=function(e,n){n=n||window;t.addListener(n,"message",(function i(r){"zero-timeout-message-1"==r.data&&(t.stopPropagation(r),t.removeListener(n,"message",i),e())})),n.postMessage("zero-timeout-message-1","*")}}t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var i=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(r,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n[i]=e(t[i]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var i in n={},t)n[i]=e(t[i]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return e.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},i=function(e){return i.cancel(),t=setTimeout(n,e||0),i};return i.schedule=i,i.call=function(){return this.cancel(),e(),i},i.cancel=function(){return clearTimeout(t),t=null,i},i.isPending=function(){return t},i},t.delayedCall=function(e,t){var n=null,i=function(){n=null,e()},r=function(e){null==n&&(n=setTimeout(i,e||t))};return r.delay=function(e){n&&clearTimeout(n),n=setTimeout(i,e||t)},r.schedule=r,r.call=function(){this.cancel(),e()},r.cancel=function(){n&&clearTimeout(n),n=null},r.isPending=function(){return n},r}})),ace.define("ace/keyboard/textinput_ios",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/lib/keys"],(function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),s=e("../lib/dom"),o=e("../lib/lang"),a=e("../lib/keys"),l=a.KEY_MODS,u=r.isChrome<18,c=r.isIE;t.TextInput=function(e,t){var n=s.createElement("textarea");n.className=r.isIOS?"ace_text-input ace_text-input-ios":"ace_text-input",r.isTouchPad&&n.setAttribute("x-palm-disable-auto-cap",!0),n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var h=!1,p=!1,d=!1,f=!1,g="",m=!0;try{var v=document.activeElement===n}catch(e){}i.addListener(n,"blur",(function(e){t.onBlur(e),v=!1})),i.addListener(n,"focus",(function(e){v=!0,t.onFocus(e),w()})),this.focus=function(){if(g)return n.focus();n.style.position="fixed",n.focus()},this.blur=function(){n.blur()},this.isFocused=function(){return v};var y=o.delayedCall((function(){v&&w(m)})),b=o.delayedCall((function(){f||(n.value="\n aaaa a\n",v&&w())}));function w(e){if(!f){if(f=!0,C)t=0,i=e?0:n.value.length-1;else var t=4,i=5;try{n.setSelectionRange(t,i)}catch(e){}f=!1}}function x(){f||(n.value="\n aaaa a\n",r.isWebKit&&b.schedule())}r.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=m&&(m=!m,y.schedule())})),x(),v&&t.onFocus();var C=null;this.setInputHandler=function(e){C=e},this.getInputHandler=function(){return C};var E=!1,A=function(e){4===n.selectionStart&&5===n.selectionEnd||(C&&(e=C(e),C=null),d?(w(),e&&t.onPaste(e),d=!1):e=="\n aaaa a\n".substr(0)&&4===n.selectionStart?E?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):h||("\n aaaa a\n"==e.substring(0,9)&&e.length>"\n aaaa a\n".length?e=e.substr(9):e.substr(0,4)=="\n aaaa a\n".substr(0,4)?e=e.substr(4,e.length-"\n aaaa a\n".length+1):e.charAt(e.length-1)=="\n aaaa a\n".charAt(0)&&(e=e.slice(0,-1)),e=="\n aaaa a\n".charAt(0)||e.charAt(e.length-1)=="\n aaaa a\n".charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),h&&(h=!1),E&&(E=!1))},S=function(e){if(!f){var t=n.value;A(t),x()}},D=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!u){var r=c||n?"Text":"text/plain";try{return t?!1!==i.setData(r,t):i.getData(r)}catch(e){if(!n)return D(e,t,!0)}}},k=function(e,s){var o=t.getCopyText();if(!o)return i.preventDefault(e);D(e,o)?(r.isIOS&&(p=s,n.value="\n aa"+o+"a a\n",n.setSelectionRange(4,4+o.length),h={value:o}),s?t.onCut():t.onCopy(),r.isIOS||i.preventDefault(e)):(h=!0,n.value=o,n.select(),setTimeout((function(){h=!1,x(),w(),s?t.onCut():t.onCopy()})))};i.addCommandKeyListener(n,t.onCommandKey.bind(t)),i.addListener(n,"select",(function(e){!function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length}(n)?C&&w(t.selection.isEmpty()):(t.selectAll(),w())})),i.addListener(n,"input",S),i.addListener(n,"cut",(function(e){k(e,!0)})),i.addListener(n,"copy",(function(e){k(e,!1)})),i.addListener(n,"paste",(function(e){var s=D(e);"string"==typeof s?(s&&t.onPaste(s,e),r.isIE&&setTimeout(w),i.preventDefault(e)):(n.value="",d=!0)}));var F,_=function(){if(f&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\x01/g,"");if(f.lastValue!==e&&(t.onCompositionUpdate(e),f.lastValue&&t.undo(),f.canUndo&&(f.lastValue=e),f.lastValue)){var i=t.selection.getRange();t.insert(f.lastValue),t.session.markUndoGroup(),f.range=t.selection.getRange(),t.selection.setRange(i),t.selection.clearSelection()}}},T=function(e){if(t.onCompositionEnd&&!t.$readOnly){var i=f;f=!1;var s=setTimeout((function(){s=null;var e=n.value.replace(/\x01/g,"");f||(e==i.lastValue?x():!i.lastValue&&e&&(x(),A(e)))}));C=function(e){return s&&clearTimeout(s),(e=e.replace(/\x01/g,""))==i.lastValue?"":(i.lastValue&&s&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",T),"compositionend"==e.type&&i.range&&t.selection.setRange(i.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&S()}},O=o.delayedCall(_,50);function P(){clearTimeout(F),F=setTimeout((function(){g&&(n.style.cssText=g,g=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}i.addListener(n,"compositionstart",(function(e){f||!t.onCompositionStart||t.$readOnly||((f={}).canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(_,0),t.on("mousedown",T),f.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())})),r.isGecko?i.addListener(n,"text",(function(){O.schedule()})):(i.addListener(n,"keyup",(function(){O.schedule()})),i.addListener(n,"keydown",(function(){O.schedule()}))),i.addListener(n,"compositionend",T),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){E=!0,w(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,o){g||(g=n.style.cssText),n.style.cssText=(o?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var a=t.container.getBoundingClientRect(),l=s.computedStyle(t.container),u=a.top+(parseInt(l.borderTopWidth)||0),c=a.left+(parseInt(a.borderLeftWidth)||0),h=a.bottom-u-n.clientHeight-2,p=function(e){n.style.left=e.clientX-c-2+"px",n.style.top=Math.min(e.clientY-u-2,h)+"px"};p(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(F),r.isWin&&i.capture(t.container,p,P))},this.onContextMenuClose=P;var R=function(e){t.textInput.onContextMenu(e),P()};if(i.addListener(n,"mouseup",R),i.addListener(n,"mousedown",(function(e){e.preventDefault(),P()})),i.addListener(t.renderer.scroller,"contextmenu",R),i.addListener(n,"contextmenu",R),r.isIOS){var B=null,L=!1;e.addEventListener("keydown",(function(e){B&&clearTimeout(B),L=!0})),e.addEventListener("keyup",(function(e){B=setTimeout((function(){L=!1}),100)}));var M=function(e){if(document.activeElement===n&&!L){if(p)return setTimeout((function(){p=!1}),100);var i=n.selectionStart,r=n.selectionEnd;if(n.setSelectionRange(4,5),i==r)switch(i){case 0:t.onCommandKey(null,0,a.up);break;case 1:t.onCommandKey(null,0,a.home);break;case 2:t.onCommandKey(null,l.option,a.left);break;case 4:t.onCommandKey(null,0,a.left);break;case 5:t.onCommandKey(null,0,a.right);break;case 7:t.onCommandKey(null,l.option,a.right);break;case 8:t.onCommandKey(null,0,a.end);break;case 9:t.onCommandKey(null,0,a.down)}else{switch(r){case 6:t.onCommandKey(null,l.shift,a.right);break;case 7:t.onCommandKey(null,l.shift|l.option,a.right);break;case 8:t.onCommandKey(null,l.shift,a.end);break;case 9:t.onCommandKey(null,l.shift,a.down)}switch(i){case 0:t.onCommandKey(null,l.shift,a.up);break;case 1:t.onCommandKey(null,l.shift,a.home);break;case 2:t.onCommandKey(null,l.shift|l.option,a.left);break;case 3:t.onCommandKey(null,l.shift,a.left)}}}};document.addEventListener("selectionchange",M),t.on("destroy",(function(){document.removeEventListener("selectionchange",M)}))}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],(function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),s=e("../lib/dom"),o=e("../lib/lang"),a=r.isChrome<18,l=r.isIE,u=e("./textinput_ios").TextInput;t.TextInput=function(e,t){if(r.isIOS)return u.call(this,e,t);var n=s.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var c=!1,h=!1,p=!1,d="",f=!0;try{var g=document.activeElement===n}catch(e){}i.addListener(n,"blur",(function(e){t.onBlur(e),g=!1})),i.addListener(n,"focus",(function(e){g=!0,t.onFocus(e),y()})),this.focus=function(){if(d)return n.focus();var e=n.style.top;n.style.position="fixed",n.style.top="0px",n.focus(),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return g};var m=o.delayedCall((function(){g&&y(f)})),v=o.delayedCall((function(){p||(n.value="\u2028\u2028",g&&y())}));function y(e){if(!p){if(p=!0,w)var t=0,i=e?0:n.value.length-1;else t=e?2:1,i=2;try{n.setSelectionRange(t,i)}catch(e){}p=!1}}function b(){p||(n.value="\u2028\u2028",r.isWebKit&&v.schedule())}r.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=f&&(f=!f,m.schedule())})),b(),g&&t.onFocus();var w=null;this.setInputHandler=function(e){w=e},this.getInputHandler=function(){return w};var x=!1,C=function(e){w&&(e=w(e),w=null),h?(y(),e&&t.onPaste(e),h=!1):e=="\u2028\u2028".charAt(0)?x?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):("\u2028\u2028"==e.substring(0,2)?e=e.substr(2):e.charAt(0)=="\u2028\u2028".charAt(0)?e=e.substr(1):e.charAt(e.length-1)=="\u2028\u2028".charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)=="\u2028\u2028".charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),x&&(x=!1)},E=function(e){if(!p){var t=n.value;C(t),b()}},A=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!a){var r=l||n?"Text":"text/plain";try{return t?!1!==i.setData(r,t):i.getData(r)}catch(e){if(!n)return A(e,t,!0)}}},S=function(e,r){var s=t.getCopyText();if(!s)return i.preventDefault(e);A(e,s)?(r?t.onCut():t.onCopy(),i.preventDefault(e)):(c=!0,n.value=s,n.select(),setTimeout((function(){c=!1,b(),y(),r?t.onCut():t.onCopy()})))},D=function(e){S(e,!0)},k=function(e){S(e,!1)},F=function(e){var s=A(e);"string"==typeof s?(s&&t.onPaste(s,e),r.isIE&&setTimeout(y),i.preventDefault(e)):(n.value="",h=!0)};i.addCommandKeyListener(n,t.onCommandKey.bind(t)),i.addListener(n,"select",(function(e){c?c=!1:!function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length}(n)?w&&y(t.selection.isEmpty()):(t.selectAll(),y())})),i.addListener(n,"input",E),i.addListener(n,"cut",D),i.addListener(n,"copy",k),i.addListener(n,"paste",F),"oncut"in n&&"oncopy"in n&&"onpaste"in n||i.addListener(e,"keydown",(function(e){if((!r.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:k(e);break;case 86:F(e);break;case 88:D(e)}}));var _,T=function(){if(p&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\u2028/g,"");if(p.lastValue!==e&&(t.onCompositionUpdate(e),p.lastValue&&t.undo(),p.canUndo&&(p.lastValue=e),p.lastValue)){var i=t.selection.getRange();t.insert(p.lastValue),t.session.markUndoGroup(),p.range=t.selection.getRange(),t.selection.setRange(i),t.selection.clearSelection()}}},O=function(e){if(t.onCompositionEnd&&!t.$readOnly){var i=p;p=!1;var s=setTimeout((function(){s=null;var e=n.value.replace(/\u2028/g,"");p||(e==i.lastValue?b():!i.lastValue&&e&&(b(),C(e)))}));w=function(e){return s&&clearTimeout(s),(e=e.replace(/\u2028/g,""))==i.lastValue?"":(i.lastValue&&s&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",O),"compositionend"==e.type&&i.range&&t.selection.setRange(i.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&E()}},P=o.delayedCall(T,50);function R(){clearTimeout(_),_=setTimeout((function(){d&&(n.style.cssText=d,d=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}i.addListener(n,"compositionstart",(function(e){p||!t.onCompositionStart||t.$readOnly||((p={}).canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(T,0),t.on("mousedown",O),p.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())})),r.isGecko?i.addListener(n,"text",(function(){P.schedule()})):(i.addListener(n,"keyup",(function(){P.schedule()})),i.addListener(n,"keydown",(function(){P.schedule()}))),i.addListener(n,"compositionend",O),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){x=!0,y(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,o){d||(d=n.style.cssText),n.style.cssText=(o?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var a=t.container.getBoundingClientRect(),l=s.computedStyle(t.container),u=a.top+(parseInt(l.borderTopWidth)||0),c=a.left+(parseInt(a.borderLeftWidth)||0),h=a.bottom-u-n.clientHeight-2,p=function(e){n.style.left=e.clientX-c-2+"px",n.style.top=Math.min(e.clientY-u-2,h)+"px"};p(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(_),r.isWin&&i.capture(t.container,p,R))},this.onContextMenuClose=R;var B=function(e){t.textInput.onContextMenu(e),R()};i.addListener(n,"mouseup",B),i.addListener(n,"mousedown",(function(e){e.preventDefault(),R()})),i.addListener(t.renderer.scroller,"contextmenu",B),i.addListener(n,"contextmenu",B)}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";e("../lib/dom"),e("../lib/event");var i=e("../lib/useragent");function r(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function s(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var r=this.editor,s=e.getButton();if(0!==s){var o=r.getSelectionRange().isEmpty();return r.$blockScrolling++,(o||1==s)&&r.selection.moveToPosition(n),r.$blockScrolling--,void(2==s&&(r.textInput.onContextMenu(e.domEvent),i.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||r.isFocused()||(r.focus(),!this.$focusTimout||this.$clickSelection||r.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;n.$blockScrolling++,this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"),n.$blockScrolling--},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var r=s(this.$clickSelection,n);n=r.cursor,e=r.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),r=n.selection[e](i.row,i.column);if(n.$blockScrolling++,this.$clickSelection){var o=this.$clickSelection.comparePoint(r.start),a=this.$clickSelection.comparePoint(r.end);if(-1==o&&a<=0)t=this.$clickSelection.end,r.end.row==i.row&&r.end.column==i.column||(i=r.start);else if(1==a&&o>=0)t=this.$clickSelection.start,r.start.row==i.row&&r.start.column==i.column||(i=r.end);else if(-1==o&&1==a)i=r.end,t=r.start;else{var l=s(this.$clickSelection,i);i=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.$blockScrolling--,n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,i,r=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,i=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))),s=Date.now();(r>0||s-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,r=i-n.t,s=e.wheelX/r,o=e.wheelY/r;r<250&&(s=(s+n.vx)/2,o=(o+n.vy)/2);var a=Math.abs(s/o),l=!1;if(a>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=i;else if(i-n.allowed<250){Math.abs(s)<=1.1*Math.abs(n.vx)&&Math.abs(o)<=1.1*Math.abs(n.vy)?(l=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=s,n.vy=o,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){this.editor._emit("mousewheel",e)}}).call(r.prototype),t.DefaultHandlers=r})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom");function r(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){i.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(r.prototype),t.Tooltip=r})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/oop"),s=e("../lib/event"),o=e("../tooltip").Tooltip;function a(e){o.call(this,e)}r.inherits(a,o),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),s=this.getHeight();(e+=15)+r>n&&(e-=e+r-n),(t+=15)+s>i&&(t-=20+s),o.prototype.setPosition.call(this,e,t)}}.call(a.prototype),t.GutterHandler=function(e){var t,n,r,o=e.editor,l=o.renderer.$gutterLayer,u=new a(o.container);function c(){t&&(t=clearTimeout(t)),r&&(u.hide(),r=null,o._signal("hideGutterTooltip",u),o.removeEventListener("mousewheel",c))}function h(e){u.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(o.isFocused()&&0==t.getButton()&&"foldWidgets"!=l.getRegion(t)){var n=t.getDocumentPosition().row,i=o.session.selection;if(t.getShiftKey())i.selectTo(n,0);else{if(2==t.domEvent.detail)return o.selectAll(),t.preventDefault();e.$clickSelection=o.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(s){var a=s.domEvent.target||s.domEvent.srcElement;if(i.hasCssClass(a,"ace_fold-widget"))return c();r&&e.$tooltipFollowsMouse&&h(s),n=s,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,i=l.$annotations[t];if(!i)return c();if(t==o.session.getLength()){var s=o.renderer.pixelToScreenCoordinates(0,n.y).row,a=n.$pos;if(s>o.session.documentToScreenRow(a.row,a.column))return c()}if(r!=i)if(r=i.text.join("<br/>"),u.setHtml(r),u.show(),o._signal("showGutterTooltip",u),o.on("mousewheel",c),e.$tooltipFollowsMouse)h(n);else{var p=n.domEvent.target.getBoundingClientRect(),d=u.getElement().style;d.left=p.right+"px",d.top=p.bottom+"px"}}():c()}),50))})),s.addListener(o.renderer.$gutter,"mouseout",(function(e){n=null,r&&!t&&(t=setTimeout((function(){t=null,c()}),50))})),o.on("changeSession",c)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),s=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(s.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/event"),s=e("../lib/useragent");function o(e){var t=e.editor,n=i.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",s.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var o,l,u,c,h,p,d,f,g,m,v,y=t.container,b=0;function w(){var e=p;(function(e,n){var i=Date.now(),r=!n||e.row!=n.row,s=!n||e.column!=n.column;!m||r||s?(t.$blockScrolling+=1,t.moveCursorToPosition(e),t.$blockScrolling-=1,m=i,v={x:l,y:u}):a(v.x,v.y,l,u)>5?m=null:i-m>=200&&(t.renderer.scrollCursorIntoView(),m=null)})(p=t.renderer.screenToTextCoordinates(l,u),e),function(e,n){var i=Date.now(),r=t.renderer.layerConfig.lineHeight,s=t.renderer.layerConfig.characterWidth,o=t.renderer.scroller.getBoundingClientRect(),a={x:{left:l-o.left,right:o.right-l},y:{top:u-o.top,bottom:o.bottom-u}},c=Math.min(a.x.left,a.x.right),h=Math.min(a.y.top,a.y.bottom),p={row:e.row,column:e.column};c/s<=2&&(p.column+=a.x.left<a.x.right?-3:2),h/r<=1&&(p.row+=a.y.top<a.y.bottom?-1:1);var d=e.row!=p.row,f=e.column!=p.column,m=!n||e.row!=n.row;d||f&&!m?g?i-g>=200&&t.renderer.scrollCursorIntoView(p):g=i:g=null}(p,e)}function x(){h=t.selection.toOrientedRange(),o=t.session.addMarker(h,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(c),w(),c=setInterval(w,20),b=0,r.addListener(document,"mousemove",A)}function C(){clearInterval(c),t.session.removeMarker(o),o=null,t.$blockScrolling+=1,t.selection.fromOrientedRange(h),t.$blockScrolling-=1,t.isFocused()&&!f&&t.renderer.$cursorLayer.setBlinking(!t.getReadOnly()),h=null,p=null,b=0,g=null,m=null,r.removeListener(document,"mousemove",A)}this.onDragStart=function(e){if(this.cancelDrag||!y.draggable){var i=this;return setTimeout((function(){i.startSelect(),i.captureMouse(e)}),0),e.preventDefault()}h=t.getSelectionRange();var r=e.dataTransfer;r.effectAllowed=t.getReadOnly()?"copy":"copyMove",s.isOpera&&(t.container.appendChild(n),n.scrollTop=0),r.setDragImage&&r.setDragImage(n,0,0),s.isOpera&&t.container.removeChild(n),r.clearData(),r.setData("Text",t.session.getTextRange()),f=!0,this.setState("drag")},this.onDragEnd=function(e){if(y.draggable=!1,f=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;d||"move"!=n||t.session.remove(t.getSelectionRange()),t.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,u=e.clientY,o||x(),b++,e.dataTransfer.dropEffect=d=D(e),r.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,u=e.clientY,o||(x(),b++),null!==E&&(E=null),e.dataTransfer.dropEffect=d=D(e),r.preventDefault(e)},this.onDragLeave=function(e){if(--b<=0&&o)return C(),d=null,r.preventDefault(e)},this.onDrop=function(e){if(p){var n=e.dataTransfer;if(f)switch(d){case"move":h=h.contains(p.row,p.column)?{start:p,end:p}:t.moveText(h,p);break;case"copy":h=t.moveText(h,p,!0)}else{var i=n.getData("Text");h={start:p,end:t.session.insert(p,i)},t.focus(),d=null}return C(),r.preventDefault(e)}},r.addListener(y,"dragstart",this.onDragStart.bind(e)),r.addListener(y,"dragend",this.onDragEnd.bind(e)),r.addListener(y,"dragenter",this.onDragEnter.bind(e)),r.addListener(y,"dragover",this.onDragOver.bind(e)),r.addListener(y,"dragleave",this.onDragLeave.bind(e)),r.addListener(y,"drop",this.onDrop.bind(e));var E=null;function A(){null==E&&(E=setTimeout((function(){null!=E&&o&&C()}),20))}function S(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function D(e){var t=["copy","copymove","all","uninitialized"],n=s.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var r="none";return n&&t.indexOf(i)>=0?r="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(i)>=0?r="move":t.indexOf(i)>=0&&(r="copy"),r}}function a(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=s.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;s.isIE&&"dragReady"==this.state&&(a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton();if(1===(e.domEvent.detail||1)&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var r=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in r&&(r.unselectable="on"),t.getDragDelay()){if(s.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(o.prototype),t.DragdropHandler=o})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=i.getDocumentHead(),r=document.createElement("script");r.src=e,n.appendChild(r),r.onload=r.onreadystatechange=function(e,n){!n&&r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(r=r.onload=r.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var i={},r=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length&&(n[o](t,this),!t.propagationStopped);o++);return i&&!t.defaultPrevented?i(t,this):void 0}},i._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var i=0;i<n.length;i++)n[i](t,this)}},i.once=function(e,t){var n=this;t&&this.addEventListener(e,(function i(){n.removeEventListener(e,i),t.apply(null,arguments)}))},i.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var i=n[e],r=n._disabled_[e];r||(n._disabled_[e]=r=[]),r.push(i);var s=r.indexOf(t);-1!=s&&r.splice(s,1)}n[e]=t},i.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var i=n._disabled_[e];if(n[e]==t){n[e];i&&this.setDefaultHandler(e,i.pop())}else if(i){var r=i.indexOf(t);-1!=r&&i.splice(r,1)}}},i.on=i.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];return i||(i=this._eventRegistry[e]=[]),-1==i.indexOf(t)&&i[n?"unshift":"push"](t),t},i.off=i.removeListener=i.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}},i.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=i})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var i=e("./oop"),r=e("./event_emitter").EventEmitter,s={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};return e?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return o('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:o('misspelled option "'+e+'"')}};function o(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function a(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}var l=function(){this.$defaultOptions={}};(function(){i.implement(this,r),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var i=n[t];"string"==typeof i&&(i={forwardTo:i}),i.name||(i.name=t),e.$options[i.name]=i,"initialValue"in i&&(e["$"+i.name]=i.initialValue)})),i.implement(e,s),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){var i=this.$defaultOptions[e]||(this.$defaultOptions[e]={});i[t]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,n):i[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=o,this.reportError=a}).call(l.prototype),t.AppConfig=l})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(e,t,i){var r=e("./lib/lang"),s=(e("./lib/oop"),e("./lib/net")),o=e("./lib/app_config").AppConfig;i.exports=t=new o;var a=function(){return this||"undefined"!=typeof window&&window}(),l={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};function u(r){if(a&&a.document){l.packaged=r||e.packaged||i.packaged||a.define&&n(53).packaged;for(var s,o={},u="",c=document.currentScript||document._currentScript,h=(c&&c.ownerDocument||document).getElementsByTagName("script"),p=0;p<h.length;p++){var d=h[p],f=d.src||d.getAttribute("src");if(f){for(var g=d.attributes,m=0,v=g.length;m<v;m++){var y=g[m];0===y.name.indexOf("data-ace-")&&(o[(s=y.name.replace(/^data-ace-/,""),s.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=y.value)}var b=f.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);b&&(u=b[1])}}for(var w in u&&(o.base=o.base||u,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base,o)void 0!==o[w]&&t.set(w,o[w])}}t.get=function(e){if(!l.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return l[e]},t.set=function(e,t){if(!l.hasOwnProperty(e))throw new Error("Unknown config key: "+e);l[e]=t},t.all=function(){return r.copyObject(l)},t.moduleUrl=function(e,t){if(l.$moduleUrls[e])return l.$moduleUrls[e];var n=e.split("/"),i="snippets"==(t=t||n[n.length-2]||"")?"/":"-",r=n[n.length-1];if("worker"==t&&"-"==i){var s=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");r=r.replace(s,"")}(!r||r==t)&&n.length>1&&(r=n[n.length-2]);var o=l[t+"Path"];return null==o?o=l.basePath:"/"==i&&(t=i=""),o&&"/"!=o.slice(-1)&&(o+="/"),o+t+i+r+this.get("suffix")},t.setModuleUrl=function(e,t){return l.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,i){var r,o;Array.isArray(n)&&(o=n[0],n=n[1]);try{r=e(n)}catch(e){}if(r&&!t.$loading[n])return i&&i(r);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(i),!(t.$loading[n].length>1)){var a=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var i=t.$loading[n];t.$loading[n]=null,i.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return a();s.loadScript(t.moduleUrl(n,o),a)}},u(!0),t.init=u})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),s=e("./default_handlers").DefaultHandlers,o=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,u=e("../config"),c=function(e){var t=this;this.editor=e,new s(this),new o(this),new l(this);var n=function(t){(!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement()))&&window.focus(),e.focus()},a=e.renderer.getMouseEventTarget();i.addListener(a,"click",this.onMouseEvent.bind(this,"click")),i.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove")),i.addMultiMouseDownListener([a,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),i.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel")),i.addTouchMoveListener(e.container,this.onTouchMove.bind(this,"touchmove"));var u=e.renderer.$gutter;i.addListener(u,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),i.addListener(u,"click",this.onMouseEvent.bind(this,"gutterclick")),i.addListener(u,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),i.addListener(u,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),i.addListener(a,"mousedown",n),i.addListener(u,"mousedown",n),r.isIE&&e.renderer.scrollBarV&&(i.addListener(e.renderer.scrollBarV.element,"mousedown",n),i.addListener(e.renderer.scrollBarH.element,"mousedown",n)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var i=e.renderer.screenToTextCoordinates(n.x,n.y),r=e.session.selection.getRange(),s=e.renderer;!r.isEmpty()&&r.insideStart(i.row,i.column)?s.setCursorStyle("default"):s.setCursorStyle("")}}))};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new a(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new a(t,this.editor))},this.onMouseWheel=function(e,t){var n=new a(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.onTouchMove=function(e,t){var n=new a(t,this.editor);n.speed=1,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor.renderer;n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=null);var s=this,o=function(e){if(e){if(r.isWebKit&&!e.which&&s.releaseMouse)return s.releaseMouse();s.x=e.clientX,s.y=e.clientY,t&&t(e),s.mouseEvent=new a(e,s.editor),s.$mouseMoved=!0}},l=function(e){clearInterval(c),u(),s[s.state+"End"]&&s[s.state+"End"](e),s.state="",null==n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=!0,n.$moveTextAreaToCursor()),s.isMousePressed=!1,s.$onCaptureMouseMove=s.releaseMouse=null,e&&s.onMouseEvent("mouseup",e)},u=function(){s[s.state]&&s[s.state](),s.$mouseMoved=!1};if(r.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){l(e)}));s.$onCaptureMouseMove=o,s.releaseMouse=i.capture(this.editor.container,o,l);var c=setInterval(u,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&i.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)}}).call(c.prototype),u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:r.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=c})),ace.define("ace/mouse/fold_handler",["require","exports","module"],(function(e,t,n){"use strict";t.FoldHandler=function(e){e.on("click",(function(t){var n=t.getDocumentPosition(),i=e.session,r=i.getFoldAt(n.row,n.column,1);r&&(t.getAccelKey()?i.removeFold(r):i.expandFold(r),t.stop())})),e.on("gutterclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,i=e.session;i.foldWidgets&&i.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,i=e.session,r=i.getParentFoldRangeData(n,!0),s=r.range||r.firstRange;if(s){n=s.start.row;var o=i.getFoldAt(n,i.getLine(n).length,1);o?i.removeFold(o):(i.addFold("...",s),e.renderer.scrollCursorIntoView({row:s.start.row,column:0}))}t.stop()}}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var i=e("../lib/keys"),r=e("../lib/event"),s=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var s,o=!1,a=this.$editor.commands,l=this.$handlers.length;l--&&!((s=this.$handlers[l].handleKeyboard(this.$data,e,t,n,i))&&s.command&&((o="null"==s.command||a.exec(s.command,this.$editor,s.args,i))&&i&&-1!=e&&1!=s.passEvent&&1!=s.command.passEvent&&r.stopEvent(i),o)););return o||-1!=e||(s={command:"insertstring"},o=a.exec("insertstring",this.$editor,t)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",s),o},this.onCommandKey=function(e,t,n){var r=i.keyCodeToString(n);this.$callKeyboardHandlers(t,r,n,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)}}).call(s.prototype),t.KeyBinding=s})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var i=0,r=0,s=!1,o=!1,a=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=[18,18,18,18,18,18,18,18,18,6,5,6,8,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,5,5,5,6,8,4,4,11,11,11,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,18,18,18,18,18,18,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,9,4,11,11,11,11,4,4,4,4,0,4,4,18,4,4,11,11,2,2,4,0,4,4,4,2,0,4,4,4,4,4],h=[8,8,8,8,8,8,8,8,8,8,8,18,18,18,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,11,11,11,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8];function p(e,t,n){if(!(r<e))if(1!=e||1!=i||o)for(var s,a,l,u,c=n.length,h=0;h<c;){if(t[h]>=e){for(s=h+1;s<c&&t[s]>=e;)s++;for(a=h,l=s-1;a<l;a++,l--)u=n[a],n[a]=n[l],n[l]=u;h=s}h++}else n.reverse()}function d(e,t,n,r){var l,u,c,h,p=t[r];switch(p){case 0:case 1:s=!1;case 4:case 3:return p;case 2:return s?3:2;case 7:return s=!0,!0,1;case 8:return 4;case 9:return r<1||r+1>=t.length||2!=(l=n[r-1])&&3!=l||2!=(u=t[r+1])&&3!=u?4:(s&&(u=3),u==l?u:4);case 10:return 2==(l=r>0?n[r-1]:5)&&r+1<t.length&&2==t[r+1]?2:4;case 11:if(r>0&&2==n[r-1])return 2;if(s)return 4;for(h=r+1,c=t.length;h<c&&11==t[h];)h++;return h<c&&2==t[h]?2:4;case 12:for(c=t.length,h=r+1;h<c&&12==t[h];)h++;if(h<c){var d=e[r],f=d>=1425&&d<=2303||64286==d;if(l=t[h],f&&(1==l||7==l))return 1}return r<1||5==(l=t[r-1])?4:n[r-1];case 5:return s=!1,o=!0,i;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:s=!1;case 18:return 4}}function f(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?0:c[t]:5==n?/[\u0591-\u05f4]/.test(e)?1:0:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?11:/[\u06f0-\u06f9]/.test(e)?2:7:32==n&&t<=8287?h[255&t]:254==n&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.DOT="·",t.doBidiReorder=function(e,n,c){if(e.length<2)return{};var h=e.split(""),g=new Array(h.length),m=new Array(h.length),v=[];i=c?1:0,function(e,t,n,c){var h=i?u:l,p=null,g=null,m=null,v=0,y=null,b=-1,w=null,x=null,C=[];if(!c)for(w=0,c=[];w<n;w++)c[w]=f(e[w]);for(r=i,s=!1,!1,o=!1,a=!1,x=0;x<n;x++){if(p=v,C[x]=g=d(e,c,C,x),y=240&(v=h[p][g]),v&=15,t[x]=m=h[v][5],y>0)if(16==y){for(w=b;w<x;w++)t[w]=1;b=-1}else b=-1;if(h[v][6])-1==b&&(b=x);else if(b>-1){for(w=b;w<x;w++)t[w]=m;b=-1}5==c[x]&&(t[x]=0),r|=m}if(a)for(w=0;w<n;w++)if(6==c[w]){t[w]=i;for(var E=w-1;E>=0&&8==c[E];E--)t[E]=i}}(h,v,h.length,n);for(var y=0;y<g.length;g[y]=y,y++);p(2,v,g),p(1,v,g);for(y=0;y<g.length-1;y++)3===n[y]?v[y]=t.AN:1===v[y]&&(n[y]>7&&n[y]<13||4===n[y]||18===n[y])?v[y]=t.ON_R:y>0&&"ل"===h[y-1]&&/\u0622|\u0623|\u0625|\u0627/.test(h[y])&&(v[y-1]=v[y]=t.R_H,y++);h[h.length-1]===t.DOT&&(v[h.length-1]=t.B);for(y=0;y<g.length;y++)m[y]=v[g[y]];return{logicalFromVisual:g,bidiLevels:m}},t.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=f(e.charAt(i)),n||1!=t[i]&&7!=t[i]||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("./lib/bidiutil"),r=e("./lib/lang"),s=e("./lib/useragent"),o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=i,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.line="",this.wrapIndent=0,this.isLastRow=!1,this.EOF="¶",this.seenBidi=!1};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&o.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,i=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===i;)i=n,e++;return e},this.updateRowLine=function(e,t){if(void 0===e&&(e=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=e===this.session.getLength()-1,this.line=this.session.getLine(e),this.session.$useWrapMode){var n=this.session.$wrapData[e];n&&(void 0===t&&(t=this.getSplitIndex()),t>0&&n.length?(this.wrapIndent=n.indent,this.line=t<n.length?this.line.substring(n[t-1],n[n.length-1]):this.line.substring(n[n.length-1])):this.line=this.line.substring(0,n[t]))}var s,o=this.session,a=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||o.isFullWidth(e.charCodeAt(0))?(s="\t"===e?o.getScreenTabSize(t+a):2,a+=s-1,r.stringRepeat(i.DOT,s)):e}))},this.updateBidiMap=function(){var e=[],t=this.isLastRow?this.EOF:this.EOL,n=this.line+(this.showInvisibles?t:i.DOT);i.hasBidiCharacters(n,e)?this.bidiMap=i.doBidiReorder(n,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.seenBidi&&this.characterWidth!==e.$characterSize.width){var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[i.L]=this.charWidths[i.EN]=this.charWidths[i.ON_R]=t,this.charWidths[i.R]=this.charWidths[i.AN]=n,this.charWidths[i.R_H]=s.isChrome?n:.45*n,this.charWidths[i.B]=0,this.currentRow=null}},this.getShowInvisibles=function(){return this.showInvisibles},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setTextDir=function(e){this.isRtlDir=e},this.getPosLeft=function(e){e-=this.wrapIndent;var t=i.getVisualFromLogicalIdx(e>0?e-1:0,this.bidiMap),n=this.bidiMap.bidiLevels,r=0;0===e&&n[t]%2!=0&&t++;for(var s=0;s<t;s++)r+=this.charWidths[n[s]];return 0!==e&&n[t]%2==0&&(r+=this.charWidths[n[t]]),this.wrapIndent&&(r+=this.wrapIndent*this.charWidths[i.L]),r},this.getSelections=function(e,t){for(var n,r,s=this.bidiMap,o=s.bidiLevels,a=this.wrapIndent*this.charWidths[i.L],l=[],u=Math.min(e,t)-this.wrapIndent,c=Math.max(e,t)-this.wrapIndent,h=!1,p=!1,d=0,f=0;f<o.length;f++)r=s.logicalFromVisual[f],n=o[f],(h=r>=u&&r<c)&&!p?d=a:!h&&p&&l.push({left:d,width:a-d}),a+=this.charWidths[n],p=h;return h&&f===o.length&&l.push({left:d,width:a-d}),l},this.offsetToCol=function(e){var t=0,n=(e=Math.max(e,0),0),r=0,s=this.bidiMap.bidiLevels,o=this.charWidths[s[r]];for(this.wrapIndent&&(e-=this.wrapIndent*this.charWidths[i.L]);e>n+o/2;){if(n+=o,r===s.length-1){o=0;break}o=this.charWidths[s[++r]]}return r>0&&s[r-1]%2!=0&&s[r]%2==0?(e<n&&r--,t=this.bidiMap.logicalFromVisual[r]):r>0&&s[r-1]%2==0&&s[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===s.length-1&&0===o&&s[r-1]%2==0||!this.isRtlDir&&0===r&&s[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&s[r-1]%2!=0&&0!==o&&r--,t=this.bidiMap.logicalFromVisual[r]),t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var i=function(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,i=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(i.row,i.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(i.row,i.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/lang"),s=e("./lib/event_emitter").EventEmitter,o=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var t=this;this.lead.on("change",(function(e){t._emit("changeCursor"),t.$isEmpty||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.selectionAnchor.on("change",(function(){t.$isEmpty||t._emit("changeSelection")}))};(function(){i.implement(this,s),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.anchor.setPosition(e,t),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(e){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+e);else{var t=this.getSelectionAnchor(),n=this.getSelectionLead(),i=this.isBackwards();i&&0===t.column||this.setSelectionAnchor(t.row,t.column+e),(i||0!==n.column)&&this.$moveSelection((function(){this.moveCursorTo(n.row,n.column+e)}))}},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?o.fromPoints(t,t):this.isBackwards()?o.fromPoints(t,e):o.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,i="number"==typeof e?e:this.lead.row,r=this.session.getFoldLine(i);return r?(i=r.start.row,n=r.end.row):n=i,!0===t?new o(i,0,n,this.session.getLine(n).length):new o(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,r=e.column+t;return n<0&&(i=e.column-t,r=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,r).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(n,0),r=this.session.getDisplayLine(e,null,i.row,i.column).match(/^\s*/);r[0].length==t||this.session.$useEmacsStyleLineStart||(i.column+=r[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var i=n.search(/\s+$/);i>0&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var r=this.session.getFoldAt(e,t,1);if(r)this.moveCursorTo(r.end.row,r.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var i=this.session.getFoldStringAt(t,n,-1);null==i&&(i=this.doc.getLine(t).substring(0,n));var s=r.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(s)&&(n-=this.session.nonTokenRe.lastIndex,s=s.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(s)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&i.test(t);)n++;if(n<1)for(r.lastIndex=0;(t=e[n])&&!r.test(t);)if(r.lastIndex=0,n++,i.test(t)){if(n>2){n--;break}for(;(t=e[n])&&i.test(t);)n++;if(n>2)break}}return r.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),r=this.session.getFoldAt(e,t,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(t==n.length){var s=this.doc.getLength();do{e++,i=this.doc.getLine(e)}while(e<s&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),t=0}var o=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+o)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var i=this.session.getLine(t).substring(0,n);if(0===n){do{t--,i=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(i));n=i.length,/\s+$/.test(i)||(i="")}var s=r.stringReverse(i),o=this.$shortWordEndIndex(s);return this.moveCursorTo(t,n-o)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column);var r=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&r.row===this.lead.row&&r.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[r.row]&&(r.row>0||e>0)&&r.row++,this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var r=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(r.charAt(t))&&r.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return o.fromPoints(t,n)}catch(e){return o.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=o.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var i=e("./config"),r=2e3,s=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],r=0,s=this.matchMappings[t]={defaultToken:"text"},o="g",a=[],l=0;l<n.length;l++){var u=n[l];if(u.defaultToken&&(s.defaultToken=u.defaultToken),u.caseInsensitive&&(o="gi"),null!=u.regex){u.regex instanceof RegExp&&(u.regex=u.regex.toString().slice(1,-1));var c=u.regex,h=new RegExp("(?:("+c+")|(.))").exec("a").length-2;Array.isArray(u.token)?1==u.token.length||1==h?u.token=u.token[0]:h-1!=u.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:u,groupCount:h-1}),u.token=u.token[0]):(u.tokenArray=u.token,u.token=null,u.onMatch=this.$arrayTokens):"function"!=typeof u.token||u.onMatch||(u.onMatch=h>1?this.$applyToken:u.token),h>1&&(/\\\d/.test(u.regex)?c=u.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+r+1)})):(h=1,c=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||a.push(u)),s[r]=l,r+=h,i.push(c),u.onMatch||(u.onMatch=null)}}i.length||(s[0]=0,i.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,o)}),this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",o)}};(function(){this.$setMaxTokenCount=function(e){r=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],r=0,s=n.length;r<s;r++)t[r]&&(i[i.length]={type:n[r],value:t[r]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,r=0,s=i.length;r<s;r++)t[r+1]&&(n[n.length]={type:i[r],value:t[r+1]});return n},this.removeCapturingGroups=function(e){return e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,(function(e,t){return t?"(?:":e}))},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,i=!1,r={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,s,o,a,l){return i?i="]"!=a:a?i=!0:o?(n==r.stack&&(r.end=l+1,r.stack=-1),n--):s&&(n++,1!=s.length&&(r.stack=n,r.start=l)),e})),null!=r.end&&/^\)*$/.test(e.substr(r.end))&&(e=e.substring(0,r.start)+e.substr(r.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);"#tmp"===(t=n[0])&&(n.shift(),t=n.shift())}else n=[];var i=t||"start",s=this.states[i];s||(i="start",s=this.states[i]);var o=this.matchMappings[i],a=this.regExps[i];a.lastIndex=0;for(var l,u=[],c=0,h=0,p={type:null,value:""};l=a.exec(e);){var d=o.defaultToken,f=null,g=l[0],m=a.lastIndex;if(m-g.length>c){var v=e.substring(c,m-g.length);p.type==d?p.value+=v:(p.type&&u.push(p),p={type:d,value:v})}for(var y=0;y<l.length-2;y++)if(void 0!==l[y+1]){d=(f=s[o[y]]).onMatch?f.onMatch(g,i,n,e):f.token,f.next&&(i="string"==typeof f.next?f.next:f.next(i,n),(s=this.states[i])||(this.reportError("state doesn't exist",i),i="start",s=this.states[i]),o=this.matchMappings[i],c=m,(a=this.regExps[i]).lastIndex=m),f.consumeLineEnd&&(c=m);break}if(g)if("string"==typeof d)f&&!1===f.merge||p.type!==d?(p.type&&u.push(p),p={type:d,value:g}):p.value+=g;else if(d){p.type&&u.push(p),p={type:null,value:""};for(y=0;y<d.length;y++)u.push(d[y])}if(c==e.length)break;if(c=m,h++>r){for(h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c<e.length;)p.type&&u.push(p),p={value:e.substring(c,c+=2e3),type:"overflow"};i="start",n=[];break}}return p.type&&u.push(p),n.length>1&&n[0]!==i&&n.unshift("#tmp",i),{tokens:u,state:n.length?n:i}},this.reportError=i.reportError}).call(s.prototype),t.Tokenizer=s})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var i=e("../lib/lang"),r=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],r=0;r<i.length;r++){var s=i[r];(s.next||s.onMatch)&&("string"==typeof s.next&&0!==s.next.indexOf(t)&&(s.next=t+s.next),s.nextState&&0!==s.nextState.indexOf(t)&&(s.nextState=t+s.nextState))}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,r,s){var o="function"==typeof e?(new e).getRules():e;if(r)for(var a=0;a<r.length;a++)r[a]=t+r[a];else for(var l in r=[],o)r.push(t+l);if(this.addRules(o,t),n){var u=Array.prototype[s?"push":"unshift"];for(a=0;a<r.length;a++)u.apply(this.$rules[r[a]],i.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,i=this.$rules;Object.keys(i).forEach((function r(s){var o=i[s];o.processed=!0;for(var a=0;a<o.length;a++){var l=o[a],u=null;Array.isArray(l)&&(u=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var c=l.next||l.push;if(c&&Array.isArray(c)){var h=l.stateName;h||("string"!=typeof(h=l.token)&&(h=h[0]||""),i[h]&&(h+=n++)),i[h]=c,l.next=h,r(h)}else"pop"==c&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var p in l.rules)i[p]?i[p].push&&i[p].push.apply(i[p],l.rules[p]):i[p]=l.rules[p];var d="string"==typeof l?l:l.include;if(d&&(u=Array.isArray(d)?d.map((function(e){return i[e]})):i[d]),u){var f=[a,1].concat(u);l.noEscape&&(f=f.filter((function(e){return!e.next}))),o.splice.apply(o,f),a--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}),this)},this.createKeywordMapper=function(e,t,n,i){var r=Object.create(null);return Object.keys(e).forEach((function(t){var s=e[t];n&&(s=s.toLowerCase());for(var o=s.split(i||"|"),a=o.length;a--;)r[o[a]]=t})),Object.getPrototypeOf(r)&&(r.__proto__=null),this.$keywordList=Object.keys(r),e=null,n?function(e){return r[e.toLowerCase()]||t}:function(e){return r[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(r.prototype),t.TextHighlightRules=r})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var i=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(i.prototype),t.Behaviour=i})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range,r=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,n);this.$tokenIndex=i?i.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new i(this.$row,t,this.$row,t+e.value.length)}}).call(r.prototype),t.TokenIterator=r})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var i,r=e("../../lib/oop"),s=e("../behaviour").Behaviour,o=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),l=["text","paren.rparen","punctuation.operator"],u=["text","paren.rparen","punctuation.operator","comment"],c={},h={'"':'"',"'":"'"},p=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,c.rangeCount!=e.multiSelect.rangeCount&&(c={rangeCount:e.multiSelect.rangeCount})),c[t])return i=c[t];i=c[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(e,t,n,i){var r=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,r,e.end.column+(r?0:1)]}},f=function(e){this.add("braces","insertion",(function(t,n,r,s,o){var l=r.getCursorPosition(),u=s.doc.getLine(l.row);if("{"==o){p(r);var c=r.getSelectionRange(),h=s.doc.getTextRange(c);if(""!==h&&"{"!==h&&r.getWrapBehavioursEnabled())return d(c,h,"{","}");if(f.isSaneInsertion(r,s))return/[\]\}\)]/.test(u[l.column])||r.inMultiSelectMode||e&&e.braces?(f.recordAutoInsert(r,s,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(r,s,"{"),{text:"{",selection:[1,1]})}else if("}"==o){if(p(r),"}"==u.substring(l.column,l.column+1))if(null!==s.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&f.isAutoInsertedClosing(l,u,o))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==o||"\r\n"==o){p(r);var g="";if(f.isMaybeInsertedClosing(l,u)&&(g=a.stringRepeat("}",i.maybeInsertedBrackets),f.clearMaybeInsertedClosing()),"}"===u.substring(l.column,l.column+1)){var m=s.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!m)return null;var v=this.$getIndent(s.getLine(m.row))}else{if(!g)return void f.clearMaybeInsertedClosing();v=this.$getIndent(u)}var y=v+s.getTabString();return{text:"\n"+y+"\n"+v+g,selection:[1,y.length,1,y.length]}}f.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,r,s){var o=r.doc.getTextRange(s);if(!s.isMultiLine()&&"{"==o){if(p(n),"}"==r.doc.getLine(s.start.row).substring(s.end.column,s.end.column+1))return s.end.column++,s;i.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,i,r){if("("==r){p(n);var s=n.getSelectionRange(),o=i.doc.getTextRange(s);if(""!==o&&n.getWrapBehavioursEnabled())return d(s,o,"(",")");if(f.isSaneInsertion(n,i))return f.recordAutoInsert(n,i,")"),{text:"()",selection:[1,1]}}else if(")"==r){p(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row);if(")"==l.substring(a.column,a.column+1))if(null!==i.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&f.isAutoInsertedClosing(a,l,r))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,i,r){var s=i.doc.getTextRange(r);if(!r.isMultiLine()&&"("==s&&(p(n),")"==i.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("brackets","insertion",(function(e,t,n,i,r){if("["==r){p(n);var s=n.getSelectionRange(),o=i.doc.getTextRange(s);if(""!==o&&n.getWrapBehavioursEnabled())return d(s,o,"[","]");if(f.isSaneInsertion(n,i))return f.recordAutoInsert(n,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==r){p(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row);if("]"==l.substring(a.column,a.column+1))if(null!==i.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&f.isAutoInsertedClosing(a,l,r))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,i,r){var s=i.doc.getTextRange(r);if(!r.isMultiLine()&&"["==s&&(p(n),"]"==i.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("string_dquotes","insertion",(function(e,t,n,i,r){var s=i.$mode.$quotes||h;if(1==r.length&&s[r]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(r))return;p(n);var o=r,a=n.getSelectionRange(),l=i.doc.getTextRange(a);if(!(""===l||1==l.length&&s[l])&&n.getWrapBehavioursEnabled())return d(a,l,o,o);if(!l){var u=n.getCursorPosition(),c=i.doc.getLine(u.row),f=c.substring(u.column-1,u.column),g=c.substring(u.column,u.column+1),m=i.getTokenAt(u.row,u.column),v=i.getTokenAt(u.row,u.column+1);if("\\"==f&&m&&/escape/.test(m.type))return null;var y,b=m&&/string|escape/.test(m.type),w=!v||/string|escape/.test(v.type);if(g==o)(y=b!==w)&&/string\.end/.test(v.type)&&(y=!1);else{if(b&&!w)return null;if(b&&w)return null;var x=i.$mode.tokenRe;x.lastIndex=0;var C=x.test(f);x.lastIndex=0;var E=x.test(f);if(C||E)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;y=!0}return{text:y?o+o:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,i,r){var s=i.doc.getTextRange(r);if(!r.isMultiLine()&&('"'==s||"'"==s)&&(p(n),i.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)==s))return r.end.column++,r}))};f.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new o(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",l)){var r=new o(t,n.row,n.column+1);if(!this.$matchTokenType(r.getCurrentToken()||"text",l))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",u)},f.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},f.recordAutoInsert=function(e,t,n){var r=e.getCursorPosition(),s=t.doc.getLine(r.row);this.isAutoInsertedClosing(r,s,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=r.row,i.autoInsertedLineEnd=n+s.substr(r.column),i.autoInsertedBrackets++},f.recordMaybeInsert=function(e,t,n){var r=e.getCursorPosition(),s=t.doc.getLine(r.row);this.isMaybeInsertedClosing(r,s)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=r.row,i.maybeInsertedLineStart=s.substr(0,r.column)+n,i.maybeInsertedLineEnd=s.substr(r.column),i.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(e,t,n){return i.autoInsertedBrackets>0&&e.row===i.autoInsertedRow&&n===i.autoInsertedLineEnd[0]&&t.substr(e.column)===i.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(e,t){return i.maybeInsertedBrackets>0&&e.row===i.maybeInsertedRow&&t.substr(e.column)===i.maybeInsertedLineEnd&&t.substr(0,e.column)==i.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},r.inherits(f,s),t.CstyleBehaviour=f})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";t.packages={},function(e){var n=/\w{4}/g;for(var i in e)t.packages[i]=e[i].replace(n,"\\u$&")}({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})})),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../tokenizer").Tokenizer,r=e("./text_highlight_rules").TextHighlightRules,s=e("./behaviour/cstyle").CstyleBehaviour,o=e("../unicode"),a=e("../lib/lang"),l=e("../token_iterator").TokenIterator,u=e("../range").Range,c=function(){this.HighlightRules=r};(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+o.packages.L+o.packages.Mn+o.packages.Mc+o.packages.Nd+o.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+o.packages.L+o.packages.Mn+o.packages.Mc+o.packages.Nd+o.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,i){var r=t.doc,s=!0,o=!0,l=1/0,u=t.getTabSize(),c=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))g=this.lineCommentStart.map(a.escapeRegExp).join("|"),d=this.lineCommentStart[0];else g=a.escapeRegExp(this.lineCommentStart),d=this.lineCommentStart;g=new RegExp("^(\\s*)(?:"+g+") ?"),c=t.getUseSoftTabs();y=function(e,t){var n=e.match(g);if(n){var i=n[1].length,s=n[0].length;p(e,i,s)||" "!=n[0][s-1]||s--,r.removeInLine(t,i,s)}};var h=d+" ",p=(v=function(e,t){s&&!/\S/.test(e)||(p(e,l,l)?r.insertInLine({row:t,column:l},h):r.insertInLine({row:t,column:l},d))},b=function(e,t){return g.test(e)},function(e,t,n){for(var i=0;t--&&" "==e.charAt(t);)i++;if(i%u!=0)return!1;for(i=0;" "==e.charAt(n++);)i++;return u>2?i%u!=u-1:i%u==0})}else{if(!this.blockComment)return!1;var d=this.blockComment.start,f=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+a.escapeRegExp(d)+")"),m=new RegExp("(?:"+a.escapeRegExp(f)+")\\s*$"),v=function(e,t){b(e,t)||s&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},f),r.insertInLine({row:t,column:l},d))},y=function(e,t){var n;(n=e.match(m))&&r.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&r.removeInLine(t,n[1].length,n[0].length)},b=function(e,n){if(g.test(e))return!0;for(var i=t.getTokens(n),r=0;r<i.length;r++)if("comment"===i[r].type)return!0}}function w(e){for(var t=n;t<=i;t++)e(r.getLine(t),t)}var x=1/0;w((function(e,t){var n=e.search(/\S/);-1!==n?(n<l&&(l=n),o&&!b(e,t)&&(o=!1)):x>e.length&&(x=e.length)})),l==1/0&&(l=x,s=!1,o=!1),c&&l%u!=0&&(l=Math.floor(l/u)*u),w(o?y:v)},this.toggleBlockComment=function(e,t,n,i){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var s,o,a=(g=new l(t,i.row,i.column)).getCurrentToken(),c=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var h,p;a&&/comment/.test(a.type);){if(-1!=(m=a.value.indexOf(r.start))){var d=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m;h=new u(d,f,d,f+r.start.length);break}a=g.stepBackward()}var g;for(a=(g=new l(t,i.row,i.column)).getCurrentToken();a&&/comment/.test(a.type);){var m;if(-1!=(m=a.value.indexOf(r.end))){d=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m;p=new u(d,f,d,f+r.end.length);break}a=g.stepForward()}p&&t.remove(p),h&&(t.remove(h),s=h.start.row,o=-r.start.length)}else o=r.start.length,s=n.start.row,t.insert(n.end,r.end),t.insert(n.start,r.start);c.start.row==s&&(c.start.column+=o),c.end.row==s&&(c.end.column+=o),t.selection.fromOrientedRange(c)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)e[t]&&(this.$embeds.push(t),this.$modes[t]=new e[t]);var n=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<n.length;t++)!function(e){var i=n[t],r=e[i];e[n[t]]=function(){return this.$delegator(i,arguments,r)}}(this)},this.$delegator=function(e,t,n){var i=t[0];"string"!=typeof i&&(i=i[0]);for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var s=i.split(this.$embeds[r]);if(!s[0]&&s[1]){t[0]=s[1];var o=this.$modes[this.$embeds[r]];return o[e].apply(o,t)}}var a=n.apply(this,t);return n?a:void 0},this.transformAction=function(e,t,n,i,r){if(this.$behaviour){var s=this.$behaviour.getBehaviours();for(var o in s)if(s[o][t]){var a=s[o][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var r=t[i],s=0,o=r.length;s<o;s++)if("string"==typeof r[s].token)/keyword|support|storage/.test(r[s].token)&&n.push(r[s].regex);else if("object"==typeof r[s].token)for(var a=0,l=r[s].token.length;a<l;a++)if(/keyword|support|storage/.test(r[s].token[a])){i=r[s].regex.match(/\(.+?\)/g)[a];n.push(i.substr(1,i.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,i){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(c.prototype),t.Mode=c})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var i=t.start.row,r=t.start.column,s=e[i]||"";switch(t.action){case"insert":if(1===t.lines.length)e[i]=s.substring(0,r)+t.lines[0]+s.substring(r);else{var o=[i,1].concat(t.lines);e.splice.apply(e,o),e[i]=s.substring(0,r)+e[i],e[i+t.lines.length-1]+=s.substring(r)}break;case"remove":var a=t.end.column,l=t.end.row;i===l?e[i]=s.substring(0,r)+s.substring(a):e.splice(i,l-i+1,s.substring(0,r)+e[l].substring(a))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var i=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}i.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row||t.start.row>this.row)){var n=function(t,n,i){var r="insert"==t.action,s=(r?1:-1)*(t.end.row-t.start.row),o=(r?1:-1)*(t.end.column-t.start.column),a=t.start,l=r?a:t.end;if(e(n,a,i))return{row:n.row,column:n.column};if(e(l,n,!i))return{row:n.row+s,column:n.column+(n.row==l.row?o:0)};return{row:a.row,column:a.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var r={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:r,value:i})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./apply_delta").applyDelta,s=e("./lib/event_emitter").EventEmitter,o=e("./range").Range,a=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){i.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var i=this.getLine(e);return null==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),i={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var i=this.clippedPos(e,t),r=this.clippedPos(e,n);return this.applyDelta({start:i,end:r,action:"remove",lines:this.getLinesForRange({start:i,end:r})},!0),this.clonePos(i)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,i=t<this.getLength()-1,r=n?e-1:e,s=n?this.getLine(r).length:0,a=i?t+1:t,l=i?0:this.getLine(a).length,u=new o(r,s,a,l),c=this.$lines.slice(e,t+1);return this.applyDelta({start:u.start,end:u.end,action:"remove",lines:this.getLinesForRange(u)}),c},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof o||(e=o.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),r(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length,r=e.start.row,s=e.start.column,o=0,a=0;;){o=a,a+=t-1;var l=n.slice(o,a);if(a>i){e.lines=l,e.start.row=r+o,e.start.column=s;break}l.push(""),this.applyDelta({start:this.pos(r+o,s),end:this.pos(r+a,s=0),action:e.action,lines:l},!0)}},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,r=t||0,s=n.length;r<s;r++)if((e-=n[r].length+i)<0)return{row:r,column:e+n[r].length+i};return{row:s-1,column:n[s-1].length}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,r=0,s=Math.min(e.row,n.length),o=t||0;o<s;++o)r+=n[o].length+i;return r+e.column}}).call(l.prototype),t.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,i=-1,r=n.doc,s=t;n.lines[t];)t++;var o=r.getLength(),a=0;for(n.running=!1;t<o;){n.$tokenizeRow(t),i=t;do{t++}while(n.lines[t]);if(++a%5==0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==i&&(i=t),s<=i&&n.fireUpdateEvent(s,i)}}};(function(){i.implement(this,r),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],i=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens}}).call(s.prototype),t.BackgroundTokenizer=s})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),r=(e("./lib/oop"),e("./range").Range),s=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,s){if(this.regExp)for(var o=s.firstRow,a=s.lastRow,l=o;l<=a;l++){var u=this.cache[l];null==u&&((u=i.getMatchOffsets(n.getLine(l),this.regExp)).length>this.MAX_RANGES&&(u=u.slice(0,this.MAX_RANGES)),u=u.map((function(e){return new r(l,e.offset,l,e.offset+e.length)})),this.cache[l]=u.length?u:"");for(var c=u.length;c--;)t.drawSingleLineMarker(e,u[c].toScreenRange(n),this.clazz,s)}}}).call(s.prototype),t.SearchHighlight=s})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range;function r(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,r,s=0,o=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<o.length;l++){if(-1==(r=(i=o[l]).range.compareStart(t,n)))return void e(null,t,n,s,a);if(!e(null,i.start.row,i.start.column,s,a)&&e(i.placeholder,i.start.row,i.start.column,s)||0===r)return;a=!i.sameRow,s=i.end.column}e(null,t,n,s,a)},this.getNextFoldTo=function(e,t){for(var n,i,r=0;r<this.folds.length;r++){if(-1==(i=(n=this.folds[r]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var i,r,s=this.getNextFoldTo(e,t);if(s)if(i=s.fold,"inside"==s.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){var o=(r=this.folds).indexOf(i);for(0===o&&(this.start.column+=n);o<r.length;o++){if((i=r[o]).start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var i=n.fold,s=this.folds,o=this.foldData,a=s.indexOf(i),l=s[a-1];this.end.row=l.end.row,this.end.column=l.end.column;var u=new r(o,s=s.splice(a,s.length-a));return o.splice(o.indexOf(this)+1,0,u),u},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if((e-=i.start.column-t)<0)return{row:i.start.row,column:i.start.column+e};if((e-=i.placeholder.length)<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(r.prototype),t.FoldLine=r})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range.comparePoints,r=function(){this.ranges=[]};(function(){this.comparePoints=i,this.pointIndex=function(e,t,n){for(var r=this.ranges,s=n||0;s<r.length;s++){var o=r[s],a=i(e,o.end);if(!(a>0)){var l=i(e,o.start);return 0===a?t&&0!==l?-s-2:s:l>0||0===l&&!t?s:-s-1}}return-s-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,r=(n=n.sort((function(e,t){return i(e.start,t.start)})))[0],s=1;s<n.length;s++){e=r,r=n[s];var o=i(e.end,r.start);o<0||(0!=o||e.isEmpty()||r.isEmpty())&&(i(e.end,r.end)<0&&(e.end.row=r.end.row,e.end.column=r.end.column),n.splice(s,1),t.push(r),r=e,s--)}return this.ranges=n,t},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var r=this.pointIndex({row:t,column:0},i);r<0&&(r=-r-1);for(var s=[],o=i;o<r;o++)s.push(n[o]);return s},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){if("insert"==e.action)var t=e.start,n=e.end;else n=e.start,t=e.end;for(var i=t.row,r=n.row-i,s=-t.column+n.column,o=this.ranges,a=0,l=o.length;a<l;a++){if(!((u=o[a]).end.row<i)){if(u.start.row>i)break;if(u.start.row==i&&u.start.column>=t.column&&(u.start.column==t.column&&this.$insertRight||(u.start.column+=s,u.start.row+=r)),u.end.row==i&&u.end.column>=t.column){if(u.end.column==t.column&&this.$insertRight)continue;u.end.column==t.column&&s>0&&a<l-1&&u.end.column>u.start.column&&u.end.column==o[a+1].start.column&&(u.end.column-=s),u.end.column+=s,u.end.row+=r}}}if(0!=r&&a<l)for(;a<l;a++){var u;(u=o[a]).start.row+=r,u.end.row+=r}}}).call(r.prototype),t.RangeList=r})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";e("../range").Range;var i=e("../range_list").RangeList,r=e("../lib/oop"),s=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function o(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function a(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}r.inherits(s,i),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new s(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){if(!this.range.containsRange(e))throw new Error("A fold can't intersect already existing fold"+e.range+this.range);var t,n;t=e,n=this.start,o(t.start,n),o(t.end,n);for(var i=e.start.row,r=e.start.column,s=0,a=-1;s<this.subFolds.length&&1==(a=this.subFolds[s].range.compare(i,r));s++);var l=this.subFolds[s];if(0==a)return l.addSubFold(e);i=e.range.end.row,r=e.range.end.column;var u=s;for(a=-1;u<this.subFolds.length&&1==(a=this.subFolds[u].range.compare(i,r));u++);this.subFolds[u];if(0==a)throw new Error("A fold can't intersect already existing fold"+e.range+this.range);this.subFolds.splice(s,u-s,e);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return function(e,t){a(e.start,t),a(e.end,t)}(e,this.start)}}.call(s.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../range").Range,r=e("./fold_line").FoldLine,s=e("./fold").Fold,o=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var r=i.folds,s=0;s<r.length;s++){var o=r[s];if(o.range.contains(e,t)){if(1==n&&o.range.isEnd(e,t))continue;if(-1==n&&o.range.isStart(e,t))continue;return o}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,r=[];t.column+=1,n.column-=1;for(var s=0;s<i.length;s++){var o=i[s].range.compareRange(e);if(2!=o){if(-2==o)break;for(var a=i[s].folds,l=0;l<a.length;l++){var u=a[l];if(-2==(o=u.range.compareRange(e)))break;if(2!=o){if(42==o)break;r.push(u)}}}}return t.column-=1,n.column+=1,r},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(!(i=i||this.getFoldLine(e)))return null;for(var r,s,o={end:{column:0}},a=0;a<i.folds.length;a++){var l=(s=i.folds[a]).range.compareEnd(e,t);if(-1==l){r=this.getLine(s.start.row).substring(o.end.column,s.start.column);break}if(0===l)return null;o=s}return r||(r=this.getLine(s.start.row).substring(o.end.column)),-1==n?r.substring(0,t-o.end.column):1==n?r.substring(t-o.end.column):r},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var r=n[i];if(r.start.row<=e&&r.end.row>=e)return r;if(r.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var r=n[i];if(r.end.row>=e)return r}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,r=0;r<n.length;r++){var s=n[r],o=s.end.row,a=s.start.row;if(o>=t){a<t&&(a>=e?i-=t-a:i=0);break}o>=e&&(i-=a>=e?o-a:o-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,i=this.$foldData,o=!1;e instanceof s?n=e:(n=new s(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var a=n.start.row,l=n.start.column,u=n.end.row,c=n.end.column;if(!(a<u||a==u&&l<=c-2))throw new Error("The range has to be at least 2 characters width");var h=this.getFoldAt(a,l,1),p=this.getFoldAt(u,c,-1);if(h&&p==h)return h.addSubFold(n);h&&!h.range.isStart(a,l)&&this.removeFold(h),p&&!p.range.isEnd(u,c)&&this.removeFold(p);var d=this.getFoldsInRange(n.range);d.length>0&&(this.removeFolds(d),d.forEach((function(e){n.addSubFold(e)})));for(var f=0;f<i.length;f++){var g=i[f];if(u==g.start.row){g.addFold(n),o=!0;break}if(a==g.end.row){if(g.addFold(n),o=!0,!n.sameRow){var m=i[f+1];if(m&&m.start.row==u){g.merge(m);break}}break}if(u<=g.start.row)break}return o||(g=this.$addFoldLine(new r(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,r=this.$foldData,s=t.folds;if(1==s.length)r.splice(r.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))s.pop(),t.end.row=s[s.length-1].end.row,t.end.column=s[s.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))s.shift(),t.start.row=s[0].start.row,t.start.column=s[0].start.column;else if(e.sameRow)s.splice(s.indexOf(e),1);else{var o=t.split(e.start.row,e.start.column);(s=o.folds).shift(),o.start.row=s[0].start.row,o.start.column=s[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,r;if(null==e?(n=new i(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new i(e,0,e,this.getLine(e).length):"row"in e?i.fromPoints(e,e):e,r=this.getFoldsInRangeList(n),t)this.removeFolds(r);else for(var s=r;s.length;)this.expandFolds(s),s=this.getFoldsInRangeList(n);if(r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,i,r){null==i&&(i=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var s=this.doc,o="";return e.walk((function(e,t,n,a){if(!(t<i)){if(t==i){if(n<r)return;a=Math.max(r,a)}o+=null!=e?e:s.getLine(t).substring(a,n)}}),t,n),o},this.getDisplayLine=function(e,t,n,i){var r,s=this.getFoldLine(e);return s?this.getFoldDisplayLine(s,e,t,n,i):(r=this.doc.getLine(e)).substring(i||0,t||r.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new r(e,n)}))},this.toggleFold=function(e){var t,n,i=this.selection.getRange();if(i.isEmpty()){var r=i.start;if(t=this.getFoldAt(r.row,r.column))return void this.expandFold(t);(n=this.findMatchingBracket(r))?1==i.comparePoint(n)?i.end=n:(i.start=n,i.start.column++,i.end.column--):(n=this.findMatchingBracket({row:r.row,column:r.column+1}))?(1==i.comparePoint(n)?i.end=n:i.start=n,i.start.column++):i=this.getCommentFoldRange(r.row,r.column)||i}else{var s=this.getFoldsInRange(i);if(e&&s.length)return void this.expandFolds(s);1==s.length&&(t=s[0])}if(t||(t=this.getFoldAt(i.start.row,i.start.column)),t&&t.range.toString()==i.toString())this.expandFold(t);else{var o="...";if(!i.isMultiLine()){if((o=this.getTextRange(i)).length<4)return;o=o.trim().substring(0,2)+".."}this.addFold(o,i)}},this.getCommentFoldRange=function(e,t,n){var r=new o(this,e,t),s=r.getCurrentToken(),a=s.type;if(s&&/^comment|string/.test(a)){"comment"==(a=a.match(/comment|string/)[0])&&(a+="|doc-start");var l=new RegExp(a),u=new i;if(1!=n){do{s=r.stepBackward()}while(s&&l.test(s.type));r.stepForward()}if(u.start.row=r.getCurrentTokenRow(),u.start.column=r.getCurrentTokenColumn()+2,r=new o(this,e,t),-1!=n){var c=-1;do{if(s=r.stepForward(),-1==c){var h=this.getState(r.$row);l.test(h)||(c=r.$row)}else if(r.$row>c)break}while(s&&l.test(s.type));s=r.stepBackward()}else s=r.getCurrentToken();return u.end.row=r.getCurrentTokenRow(),u.end.column=r.getCurrentTokenColumn()+s.value.length-2,u}},this.foldAll=function(e,t,n){null==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength();for(var r=e=e||0;r<t;r++)if(null==i[r]&&(i[r]=this.getFoldWidget(r)),"start"==i[r]){var s=this.getFoldWidgetRange(r);if(s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e){r=s.end.row;try{var o=this.addFold("...",s);o&&(o.collapseChildren=n)}catch(e){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var i,r=e-1;r>=0;){var s=n[r];if(null==s&&(s=n[r]=this.getFoldWidget(r)),"start"==s){var o=this.getFoldWidgetRange(r);if(i||(i=o),o&&o.end.row>=e)break}r--}return{range:-1!==r&&o,firstRange:i}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),r="end"===n?-1:1,s=this.getFoldAt(e,-1===r?0:i.length,r);if(s)return t.children||t.all?this.removeFold(s):this.expandFold(s),s;var o=this.getFoldWidgetRange(e,!0);if(o&&!o.isMultiLine()&&(s=this.getFoldAt(o.start.row,o.start.column,1))&&o.isEqual(s.range))return this.removeFold(s),s;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,u=a.range.end.row;this.foldAll(l,u,t.all?1e4:0)}else t.children?(u=o?o.end.row:this.getLength(),this.foldAll(e+1,u,t.all?1e4:0)):o&&(t.all&&(o.collapseChildren=1e4),this.addFold("...",o));return o}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var i=this.getParentFoldRangeData(t,!0);if(n=i.range||i.firstRange){t=n.start.row;var r=this.getFoldAt(t,this.getLine(t).length,1);r?this.removeFold(r):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../token_iterator").TokenIterator,r=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,s=n.charAt(e.column-1),o=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(o||(s=n.charAt(e.column),e={row:e.row,column:e.column+1},o=s&&s.match(/([\(\[\{])|([\)\]\}])/),i=!1),!o)return null;if(o[1]){if(!(a=this.$findClosingBracket(o[1],e)))return null;t=r.fromPoints(e,a),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{var a;if(!(a=this.$findOpeningBracket(o[2],e)))return null;t=r.fromPoints(a,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,n){var r=this.$brackets[e],s=1,o=new i(this,t.row,t.column),a=o.getCurrentToken();if(a||(a=o.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-o.getCurrentTokenColumn()-2,u=a.value;;){for(;l>=0;){var c=u.charAt(l);if(c==r){if(0==(s-=1))return{row:o.getCurrentTokenRow(),column:l+o.getCurrentTokenColumn()}}else c==e&&(s+=1);l-=1}do{a=o.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;l=(u=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var r=this.$brackets[e],s=1,o=new i(this,t.row,t.column),a=o.getCurrentToken();if(a||(a=o.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-o.getCurrentTokenColumn();;){for(var u=a.value,c=u.length;l<c;){var h=u.charAt(l);if(h==r){if(0==(s-=1))return{row:o.getCurrentTokenRow(),column:l+o.getCurrentTokenColumn()}}else h==e&&(s+=1);l+=1}do{a=o.stepForward()}while(a&&!n.test(a.type));if(null==a)break;l=0}return null}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/lang"),s=e("./bidihandler").BidiHandler,o=e("./config"),a=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,u=e("./mode/text").Mode,c=e("./range").Range,h=e("./document").Document,p=e("./background_tokenizer").BackgroundTokenizer,d=e("./search_highlight").SearchHighlight,f=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++f.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new h(e)),this.$bidiHandler=new s(this),this.setDocument(e),this.selection=new l(this),o.resetOptions(this),this.setMode(t),o._signal("session",this)};f.$uid=0,function(){i.implement(this,a),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,i=e.length-1;n<=i;){var r=n+i>>1,s=e[r];if(t>s)n=r+1;else{if(!(t<s))return r;i=r-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);this.$fromUndo||!this.$undoManager||e.ignore||(this.$deltasDoc.push(e),t&&0!=t.length&&this.$deltasFold.push({action:"removeFolds",folds:t}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,i=this.bgTokenizer.getTokens(e),r=0;if(null==t){var s=i.length-1;r=this.getLine(e).length}else for(s=0;s<i.length&&!((r+=i[s].value.length)>=t);s++);return(n=i[s])?(n.index=s,n.start=r-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),t.$deltas.length>0&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,i){var r=this.$markerId++,s={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:r};return i?(this.$frontMarkers[r]=s,this._signal("changeFrontMarker")):(this.$backMarkers[r]=s,this._signal("changeBackMarker")),r},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;t&&(delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new d(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,i){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var r=new c(e,0,t,1/0);return r.id=this.addMarker(r,n,"fullLine",i),r},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),i=!1;if(t>0&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var r=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))r=/\s/;else r=this.nonTokenRe;var s=t;if(s>0){do{s--}while(s>=0&&n.charAt(s).match(r));s++}for(var o=t;o<n.length&&n.charAt(o).match(r);)o++;return new c(e,s,e,o)},this.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),i=this.getLine(n.end.row);i.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new u),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,o.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[i]=e,e.$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var n=e.getTokenizer();if(void 0!==n.addEventListener){var i=this.onReloadTokenizer.bind(this);n.addEventListener("update",i)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=new p(n);var r=this;this.bgTokenizer.addEventListener("update",(function(e){r._signal("tokenizerUpdate",e)}))}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){o.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,r=0,s=this.$foldData[r],o=s?s.start.row:1/0,a=t.length,l=0;l<a;l++){if(l>o){if((l=s.end.row+1)>=a)break;o=(s=this.$foldData[r++])?s.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>i&&(i=n[l])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,i=e.length-1;-1!=i;i--){var r=e[i];"doc"==r.group?(this.doc.revertDeltas(r.deltas),n=this.$getUndoSelection(r.deltas,!0,n)):r.deltas.forEach((function(e){this.addFolds(e.folds)}),this)}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,i=0;i<e.length;i++){var r=e[i];"doc"==r.group&&(this.doc.applyDeltas(r.deltas),n=this.$getUndoSelection(r.deltas,!1,n))}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,n){function i(e){return t?"insert"!==e.action:"insert"===e.action}var r,s,o=e[0];i(o)?r=c.fromPoints(o.start,o.end):r=c.fromPoints(o.start,o.start);for(var a=1;a<e.length;a++)i(o=e[a])?(s=o.start,-1==r.compare(s.row,s.column)&&r.setStart(s),s=o.end,1==r.compare(s.row,s.column)&&r.setEnd(s),!0):(s=o.start,-1==r.compare(s.row,s.column)&&(r=c.fromPoints(o.start,o.start)),!1);if(null!=n){0===c.comparePoints(n.start,r.start)&&(n.start.column+=r.end.column-r.start.column,n.end.column+=r.end.column-r.start.column);var l=n.compareRange(r);1==l?r.setStart(n.start):-1==l&&r.setEnd(n.end)}return r},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var i=this.getTextRange(e),r=this.getFoldsInRange(e),s=c.fromPoints(t,t);if(!n){this.remove(e);var o=e.start.row-e.end.row;(u=o?-e.end.column:e.start.column-e.end.column)&&(s.start.row==e.end.row&&s.start.column>e.end.column&&(s.start.column+=u),s.end.row==e.end.row&&s.end.column>e.end.column&&(s.end.column+=u)),o&&s.start.row>=e.end.row&&(s.start.row+=o,s.end.row+=o)}if(s.end=this.insert(s.start,i),r.length){var a=e.start,l=s.start,u=(o=l.row-a.row,l.column-a.column);this.addFolds(r.map((function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=u),e.end.row==a.row&&(e.end.column+=u),e.start.row+=o,e.end.row+=o,e})))}return s},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new c(0,0,0,0),i=this.getTabSize(),r=t.start.row;r<=t.end.row;++r){var s=this.getLine(r);n.start.row=r,n.end.row=r;for(var o=0;o<i&&" "==s.charAt(o);++o);o<i&&"\t"==s.charAt(o)?(n.start.column=o,n.end.column=o+1):(n.start.column=0,n.end.column=o),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((r=this.getRowFoldStart(e+n))<0)return 0;var i=r-e}else if(n>0){var r;if((r=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;i=r-t}else{e=this.$clipRowToDocument(e);i=(t=this.$clipRowToDocument(t))-e+1}var s=new c(e,0,t,Number.MAX_VALUE),o=this.getFoldsInRange(s).map((function(e){return(e=e.clone()).start.row+=i,e.end.row+=i,e})),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,a),o.length&&this.addFolds(o),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&i>1&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,r=e.end,s=i.row,o=r.row,a=o-s,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(s,a);var u=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var c=0;if(g=this.getFoldLine(r.row)){g.addRemoveChars(r.row,r.column,i.column-r.column),g.shiftRow(-a);var h=this.getFoldLine(s);h&&h!==g&&(h.merge(g),g=h),c=u.indexOf(g)+1}for(;c<u.length;c++){(g=u[c]).start.row>=r.row&&g.shiftRow(-a)}o=s}else{var p=Array(a);p.unshift(s,0);var d=t?this.$wrapData:this.$rowLengthCache;d.splice.apply(d,p);u=this.$foldData,c=0;if(g=this.getFoldLine(s)){var f=g.range.compareInside(i.row,i.column);0==f?(g=g.split(i.row,i.column))&&(g.shiftRow(a),g.addRemoveChars(o,0,r.column-i.column)):-1==f&&(g.addRemoveChars(s,0,r.column-i.column),g.shiftRow(a)),c=u.indexOf(g)+1}for(;c<u.length;c++){var g;(g=u[c]).start.row>=s&&g.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(g=this.getFoldLine(s))&&g.addRemoveChars(s,i.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(s,o):this.$updateRowLengthCache(s,o),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,i){var r,s,o=this.doc.getAllLines(),a=this.getTabSize(),l=this.$wrapData,u=this.$wrapLimit,c=n;for(i=Math.min(i,o.length-1);c<=i;)(s=this.getFoldLine(c,s))?(r=[],s.walk(function(n,i,s,a){var l;if(null!=n){(l=this.$getDisplayTokens(n,r.length))[0]=e;for(var u=1;u<l.length;u++)l[u]=t}else l=this.$getDisplayTokens(o[i].substring(a,s),r.length);r=r.concat(l)}.bind(this),s.end.row,o[s.end.row].length+1),l[s.start.row]=this.$computeWrapSplits(r,u,a),c=s.end.row+1):(r=this.$getDisplayTokens(o[c]),l[c]=this.$computeWrapSplits(r,u,a),c++)};var e=3,t=4;function n(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(n,i,r){if(0==n.length)return[];var s=[],o=n.length,a=0,l=0,u=this.$wrapAsCode,c=this.$indentedSoftWrap,h=i<=Math.max(2*r,8)||!1===c?0:Math.floor(i/2);function p(e){var t=n.slice(a,e),i=t.length;t.join("").replace(/12/g,(function(){i-=1})).replace(/2/g,(function(){i-=1})),s.length||(d=function(){var e=0;if(0===h)return e;if(c)for(var t=0;t<n.length;t++){var i=n[t];if(10==i)e+=1;else{if(11!=i){if(12==i)continue;break}e+=r}}return u&&!1!==c&&(e+=r),Math.min(e,h)}(),s.indent=d),l+=i,s.push(l),a=e}for(var d=0;o-a>i-d;){var f=a+i-d;if(n[f-1]>=10&&n[f]>=10)p(f);else if(n[f]!=e&&n[f]!=t){for(var g=Math.max(f-(i-(i>>2)),a-1);f>g&&n[f]<e;)f--;if(u){for(;f>g&&n[f]<e;)f--;for(;f>g&&9==n[f];)f--}else for(;f>g&&n[f]<10;)f--;f>g?p(++f):(2==n[f=a+i]&&f--,p(f-d))}else{for(;f!=a-1&&n[f]!=e;f--);if(f>a){p(f);continue}for(f=a+i;f<n.length&&n[f]==t;f++);if(f==n.length)break;p(f)}}return s},this.$getDisplayTokens=function(e,t){var i,r=[];t=t||0;for(var s=0;s<e.length;s++){var o=e.charCodeAt(s);if(9==o){i=this.getScreenTabSize(r.length+t),r.push(11);for(var a=1;a<i;a++)r.push(12)}else 32==o?r.push(10):o>39&&o<48||o>57&&o<64?r.push(9):o>=4352&&n(o)?r.push(1,2):r.push(1)}return r},this.$getStringScreenWidth=function(e,t,i){if(0==t)return[0,0];var r,s;for(null==t&&(t=1/0),i=i||0,s=0;s<e.length&&(9==(r=e.charCodeAt(s))?i+=this.getScreenTabSize(i):r>=4352&&n(r)?i+=2:i+=1,!(i>t));s++);return[i,s]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-e%this.$tabSize},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var i,r,s=0,o=0,a=0,l=0,u=this.$screenRowCache,c=this.$getRowCacheIndex(u,e),h=u.length;if(h&&c>=0){a=u[c],s=this.$docRowCache[c];var p=e>u[h-1]}else p=!h;for(var d=this.getLength()-1,f=this.getNextFoldLine(s),g=f?f.start.row:1/0;a<=e&&!(a+(l=this.getRowLength(s))>e||s>=d);)a+=l,++s>g&&(s=f.end.row+1,g=(f=this.getNextFoldLine(s,f))?f.start.row:1/0),p&&(this.$docRowCache.push(s),this.$screenRowCache.push(a));if(f&&f.start.row<=s)i=this.getFoldDisplayLine(f),s=f.start.row;else{if(a+l<=e||s>d)return{row:d,column:this.getLine(d).length};i=this.getLine(s),f=null}var m=0,v=Math.floor(e-a);if(this.$useWrapMode){var y=this.$wrapData[s];y&&(r=y[v],v>0&&y.length&&(m=y.indent,o=y[v-1]||y[y.length-1],i=i.substring(o)))}return void 0!==n&&this.$bidiHandler.isBidiRow(a+v,s,v)&&(t=this.$bidiHandler.offsetToCol(n)),o+=this.$getStringScreenWidth(i,t-m)[1],this.$useWrapMode&&o>=r&&(o=r-1),f?f.idxToPosition(o):{row:s,column:o}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i,r=0,s=null;(i=this.getFoldAt(e,t,1))&&(e=i.start.row,t=i.start.column);var o,a=0,l=this.$docRowCache,u=this.$getRowCacheIndex(l,e),c=l.length;if(c&&u>=0){a=l[u],r=this.$screenRowCache[u];var h=e>l[c-1]}else h=!c;for(var p=this.getNextFoldLine(a),d=p?p.start.row:1/0;a<e;){if(a>=d){if((o=p.end.row+1)>e)break;d=(p=this.getNextFoldLine(o,p))?p.start.row:1/0}else o=a+1;r+=this.getRowLength(a),a=o,h&&(this.$docRowCache.push(a),this.$screenRowCache.push(r))}var f="";p&&a>=d?(f=this.getFoldDisplayLine(p,e,t),s=p.start.row):(f=this.getLine(e).substring(0,t),s=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[s];if(m){for(var v=0;f.length>=m[v];)r++,v++;f=f.substring(m[v-1]||0,f.length),g=v>0?m.indent:0}}return{row:r,column:g+this.$getStringScreenWidth(f)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,i=0,r=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);i<n;){var s=this.$wrapData[i];e+=s?s.length+1:1,++i>r&&(i=t.end.row+1,r=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var o=this.$foldData,a=0;a<o.length;a++)e-=(t=o[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,i){if(0===n)return[0,0];var r,s;for(n||(n=1/0),i=i||0,s=0;s<t.length&&!((i+="\t"===(r=t.charAt(s))?this.getScreenTabSize(i):e.getCharacterWidth(r))>n);s++);return[i,s]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=n}.call(f.prototype),e("./edit_session/folding").Folding.call(f.prototype),e("./edit_session/bracket_match").BracketMatch.call(f.prototype),o.defineOptions(f.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}}),t.EditSession=f})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),r=e("./lib/oop"),s=e("./range").Range,o=function(){this.$options={}};(function(){this.set=function(e){return r.mixin(this.$options,e),this},this.getOptions=function(){return i.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var i=null;return n.forEach((function(e,n,r,o){return i=new s(e,n,r,o),!(n==o&&t.start&&t.start.start&&0!=t.skipCurrent&&i.isEqual(t.start))||(i=null,!1)})),i},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,r=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),o=[],a=t.re;if(t.$isMultiLine){var l,u=a.length,c=r.length-u;e:for(var h=a.offset||0;h<=c;h++){for(var p=0;p<u;p++)if(-1==r[h+p].search(a[p]))continue e;var d=r[h],f=r[h+u-1],g=d.length-d.match(a[0])[0].length,m=f.match(a[u-1])[0].length;l&&l.end.row===h&&l.end.column>g||(o.push(l=new s(h,g,h+u-1,m)),u>2&&(h=h+u-2))}}else for(var v=0;v<r.length;v++){var y=i.getMatchOffsets(r[v],a);for(p=0;p<y.length;p++){var b=y[p];o.push(new s(v,b.offset,v,b.offset+b.length))}}if(n){var w=n.start.column,x=n.start.column;for(v=0,p=o.length-1;v<p&&o[v].start.column<w&&o[v].start.row==n.start.row;)v++;for(;v<p&&o[p].end.column>x&&o[p].end.row==n.end.row;)p--;for(o=o.slice(v,p+1),v=0,p=o.length;v<p;v++)o[v].start.row+=n.start.row,o[v].end.row+=n.start.row}return o},this.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var r=i.exec(e);if(!r||r[0].length!=e.length)return null;if(t=e.replace(i,t),n.preserveCase){t=t.split("");for(var s=Math.min(e.length,e.length);s--;){var o=e[s];o&&o.toLowerCase()!=o?t[s]=t[s].toUpperCase():t[s]=t[s].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=i.escapeRegExp(n)),e.wholeWord&&(n=function(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(n,e));var r=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,r);try{var s=new RegExp(n,r)}catch(e){s=!1}return e.re=s},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],r=0;r<n.length;r++)try{i.push(new RegExp(n[r],t))}catch(e){return!1}return i},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var i=1==t.backwards,r=0!=t.skipCurrent,s=t.range,o=t.start;o||(o=s?s[i?"end":"start"]:e.selection.getRange()),o.start&&(o=o[r!=i?"end":"start"]);var a=s?s.start.row:0,l=s?s.end.row:e.getLength()-1;if(i)var u=function(e){var n=o.row;if(!h(n,o.column,e)){for(n--;n>=a;n--)if(h(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,a=o.row;n>=a;n--)if(h(n,Number.MAX_VALUE,e))return}};else u=function(e){var n=o.row;if(!h(n,o.column,e)){for(n+=1;n<=l;n++)if(h(n,0,e))return;if(0!=t.wrap)for(n=a,l=o.row;n<=l;n++)if(h(n,0,e))return}};if(t.$isMultiLine)var c=n.length,h=function(t,r,s){var o=i?t-c+1:t;if(!(o<0)){var a=e.getLine(o),l=a.search(n[0]);if(!(!i&&l<r||-1===l)){for(var u=1;u<c;u++)if(-1==(a=e.getLine(o+u)).search(n[u]))return;var h=a.match(n[c-1])[0].length;if(!(i&&h>r))return!!s(o,l,o+c-1,h)||void 0}}};else if(i)h=function(t,i,r){var s,o=e.getLine(t),a=[],l=0;for(n.lastIndex=0;s=n.exec(o);){var u=s[0].length;if(l=s.index,!u){if(l>=o.length)break;n.lastIndex=l+=1}if(s.index+u>i)break;a.push(s.index,u)}for(var c=a.length-1;c>=0;c-=2){var h=a[c-1];if(r(t,h,t,h+(u=a[c])))return!0}};else h=function(t,i,r){var s,o=e.getLine(t),a=i;for(n.lastIndex=i;s=n.exec(o);){var l=s[0].length;if(r(t,a=s.index,t,a+l))return!0;if(!l&&(n.lastIndex=a+=1,a>=o.length))return!1}};return{forEach:u}}}).call(o.prototype),t.Search=o})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/keys"),r=e("../lib/useragent"),s=i.KEY_MODS;function o(e,t){this.platform=t||(r.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){o.call(this,e,t),this.$singleCommand=!1}a.prototype=o.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var r in i){var s=i[r];if(s==e)delete i[r];else if(Array.isArray(s)){var o=s.indexOf(e);-1!=o&&(s.splice(o,1),1==s.length&&(i[r]=s[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var i="";if(-1!=e.indexOf(" ")){var r=e.split(/\s+/);e=r.pop(),r.forEach((function(e){var t=this.parseKeys(e),n=s[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")}),this),i+=" "}var o=this.parseKeys(e),a=s[o.hashId]+o.key;this._addCommandToBinding(i+a,t,n)}),this)},this._addCommandToBinding=function(t,n,i){var r,s=this.commandKeyBinding;if(n)if(!s[t]||this.$singleCommand)s[t]=n;else{Array.isArray(s[t])?-1!=(r=s[t].indexOf(n))&&s[t].splice(r,1):s[t]=[s[t]],"number"!=typeof i&&(i=e(n));var o=s[t];for(r=0;r<o.length;r++){if(e(o[r])>i)break}o.splice(r,0,n)}else delete s[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),r=i[n];if(i.FUNCTION_KEYS[r])n=i.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var s=0,o=t.length;o--;){var a=i.KEY_MODS[t[o]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[o]+" in "+e),!1;s|=a}return{key:n,hashId:s}},this.findKeyCommand=function(e,t){var n=s[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var r=s[t]+n,o=this.commandKeyBinding[r];return e.$keyChain&&(e.$keyChain+=" "+r,o=this.commandKeyBinding[e.$keyChain]||o),!o||"chainKeys"!=o&&"chainKeys"!=o[o.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-r.length-1)),{command:o}):(e.$keyChain=e.$keyChain||r,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(o.prototype),t.HashHandler=o,t.MultiHashHandler=a})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../keyboard/hash_handler").MultiHashHandler,s=e("../lib/event_emitter").EventEmitter,o=function(e,t){r.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};i.inherits(o,r),function(){i.implement(this,s),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(e.isAvailable&&!e.isAvailable(t))return!1;var r={editor:t,command:e,args:n};return r.returnValue=this._emit("exec",r),this._signal("afterExec",r),!1!==r.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(o.prototype),t.CommandManager=o})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var i=e("../lib/lang"),r=e("../config"),s=e("../range").Range;function o(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:o("Ctrl-,","Command-,"),exec:function(e){r.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:o("Alt-E","F4"),exec:function(e){r.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:o("Alt-Shift-E","Shift-F4"),exec:function(e){r.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:o("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:o(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:o("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:o("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:o("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:o("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:o("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:o("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:o("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:o("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:o("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:o("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:o("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:o("Ctrl-F","Command-F"),exec:function(e){r.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:o("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:o("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:o("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:o("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:o("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:o("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:o("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:o("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:o("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:o("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:o("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:o("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:o("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:o("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:o("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:o("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:o("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:o("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:o("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:o("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:o(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:o("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:o(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:o("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:o("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:o("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:o("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:o("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:o("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:o("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:o(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:o("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:o("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:o("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:o("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:o("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:o("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:o("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:o("Ctrl-H","Command-Option-F"),exec:function(e){r.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",bindKey:o("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:o("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:o("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:o("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:o("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:o("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:o("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:o("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:o("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:o("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:o("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:o("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:o("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:o("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:o("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:o("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:o("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:o("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:o("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:o(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:o("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:o("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:o("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:o("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:o(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),r=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),o=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),u=n.row+1;u<=r.row+1;u++){var c=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(u)));0!==c.length&&(c=" "+c),l+=c}r.row+1<e.session.doc.getLength()-1&&(l+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new s(n.row,0,r.row+2,0),l),a>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+a)):(o=e.session.doc.getLine(n.row).length>o?o+1:o,e.selection.moveCursorTo(n.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:o(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,r=[];i.length<1&&(i=[e.selection.getRange()]);for(var o=0;o<i.length;o++)o==i.length-1&&(i[o].end.row===t&&i[o].end.column===n||r.push(new s(i[o].end.row,i[o].end.column,t,n))),0===o?0===i[o].start.row&&0===i[o].start.column||r.push(new s(0,0,i[o].start.row,i[o].start.column)):r.push(new s(i[o-1].end.row,i[o-1].end.column,i[o].start.row,i[o].start.column));e.exitMultiSelectMode(),e.clearSelection();for(o=0;o<r.length;o++)e.selection.addRange(r[o],!1)},readOnly:!0,scrollIntoView:"none"}]})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/oop"),r=e("./lib/dom"),s=e("./lib/lang"),o=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,u=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,p=e("./search").Search,d=e("./range").Range,f=e("./lib/event_emitter").EventEmitter,g=e("./commands/command_manager").CommandManager,m=e("./commands/default_commands").commands,v=e("./config"),y=e("./token_iterator").TokenIterator,b=function(e,t){var n=e.getContainerElement();this.container=n,this.renderer=e,this.id="editor"+ ++b.$uid,this.commands=new g(o.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new a(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new u(this)),this.keyBinding=new c(this),this.$blockScrolling=0,this.$search=(new p).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||new h("")),v.resetOptions(this),v._signal("editor",this)};b.$uid=0,function(){i.implement(this,f),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var t=this.curOp.command;t.name&&this.$blockScrolling>0&&this.$blockScrolling--;var n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),r=this.renderer.layerConfig;(i.start.row>=r.lastRow||i.end.row<=r.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var r=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var i=new d(n.row,n.column,n.row,n.column+1);else if(t.$mode.getMatching)i=t.$mode.getMatching(e.session);i&&(t.$bracketHighlight=t.addMarker(i,"ace_bracket","text"))}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),i=new y(e.session,n.row,n.column),r=i.getCurrentToken();if(!r||!/\b(?:tag-open|tag-name)/.test(r.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==r.type.indexOf("tag-open")||(r=i.stepForward())){var s=r.value,o=0,a=i.stepBackward();if("<"==a.value)do{a=r,(r=i.stepForward())&&r.value===s&&-1!==r.type.indexOf("tag-name")&&("<"===a.value?o++:"</"===a.value&&o--)}while(r&&o>=0);else{do{r=a,a=i.stepBackward(),r&&r.value===s&&-1!==r.type.indexOf("tag-name")&&("<"===a.value?o++:"</"===a.value&&o--)}while(a&&o<=0);i.stepForward()}if(!r)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);var l=i.getCurrentTokenRow(),u=i.getCurrentTokenColumn(),c=new d(l,u,l,u+r.value.length),h=t.$backMarkers[t.$tagHighlight];t.$tagHighlight&&null!=h&&0!==c.compareRange(h.range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),c&&!t.$tagHighlight&&(t.$tagHighlight=t.addMarker(c,"ace_bracket","text"))}}}),50)}},this.focus=function(){var e=this;setTimeout((function(){e.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(v.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new d(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),i=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",i)}var r=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(r),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column-1,i=t.end.column+1,r=e.getLine(t.start.row),s=r.length,o=r.substring(Math.max(n,0),Math.min(i,s));if(!(n>=0&&/^[\w\d]/.test(o)||i<=s&&/[\w\d]$/.test(o)))if(o=r.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(o))return this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o})}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var n=t.split(/\r\n|\r|\n/),i=this.selection.rangeList.ranges;if(n.length>i.length||n.length<2||!n[1])return this.commands.exec("insertstring",this,t);for(var r=i.length;r--;){var s=i[r];s.isEmpty()||this.session.remove(s),this.session.insert(s.start,n[r])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,i=n.getMode(),r=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var s=i.transformAction(n.getState(r.row),"insertion",this,n,e);s&&(e!==s.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=s.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(o=new d.fromPoints(r,r)).end.column+=e.length,this.session.remove(o)}}else{var o=this.getSelectionRange();r=this.session.remove(o),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(r.row);if(r.column>a.search(/\S|$/)){var l=a.substr(r.column).search(/\S|$/);n.doc.removeInLine(r.row,r.column,r.column+l)}}this.clearSelection();var u=r.column,c=n.getState(r.row),h=(a=n.getLine(r.row),i.checkOutdent(c,a,e));n.insert(r,e);if(s&&s.selection&&(2==s.selection.length?this.selection.setSelectionRange(new d(r.row,u+s.selection[0],r.row,u+s.selection[1])):this.selection.setSelectionRange(new d(r.row+s.selection[0],s.selection[1],r.row+s.selection[2],s.selection[3]))),n.getDocument().isNewLine(e)){var p=i.getNextLineIndent(c,a.slice(0,r.column),n.getTabString());n.insert({row:r.row+1,column:0},p)}h&&i.autoOutdent(c,n,r.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),r=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var s=n.getTextRange(t);if("\n"==s[s.length-1]){var o=n.getLine(t.end.row);/^\s+$/.test(o)&&(t.end.column=o.length)}}r&&(t=r)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,r=this.session.getLine(e.row);t<r.length?(n=r.charAt(t)+r.charAt(t-1),i=new d(e.row,t-1,e.row,t+1)):(n=r.charAt(t-1)+r.charAt(t-2),i=new d(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){c=this.$getSelectedRows();return void e.indentRows(c.first,c.last,"\t")}}var i=e.getLine(t.start.row),r=t.start,o=e.getTabSize(),a=e.documentToScreenColumn(r.row,r.column);if(this.session.getUseSoftTabs())var l=o-a%o,u=s.stringRepeat(" ",l);else{for(l=a%o;" "==i[t.start.column-1]&&l;)t.start.column--,l--;this.selection.setSelectionRange(t),u="\t"}return this.insert(u)}var c=this.$getSelectedRows();e.indentRows(c.first,c.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var r=new d(0,0,0,0);for(i=e.first;i<=e.last;i++){var s=t.getLine(i);r.start.row=i,r.end.row=i,r.end.column=s.length,t.replace(r,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var i=this.session.getLine(e);n.lastIndex<t;){var r=n.exec(i);if(r.index<=t&&r.index+r[0].length>=t)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new d(t,n-1,t,n),r=this.session.getTextRange(i);if(!isNaN(parseFloat(r))&&isFinite(r)){var s=this.getNumberAt(t,n);if(s){var o=s.value.indexOf(".")>=0?s.start+s.value.indexOf(".")+1:s.end,a=s.start+s.value.length-o,l=parseFloat(s.value);l*=Math.pow(10,a),o!==s.end&&n<o?e*=Math.pow(10,s.end-n-1):e*=Math.pow(10,s.end-n),l+=e;var u=(l/=Math.pow(10,a)).toFixed(a),c=new d(t,s.start,t,s.end);this.session.replace(c,u),this.moveCursorTo(t,Math.max(s.start+1,n+u.length-s.value.length))}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),i=e.isBackwards();if(n.isEmpty()){var r=n.start.row;t.duplicateLines(r,r)}else{var s=i?n.start:n.end,o=t.insert(s,t.getTextRange(n),!1);n.start=s,n.end=o,e.setSelectionRange(n,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,i,r=this.selection;if(!r.inMultiSelectMode||this.inVirtualSelectionMode){var s=r.toOrientedRange();n=this.$getSelectedRows(s),i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),s.moveBy(i,0),r.fromOrientedRange(s)}else{var o=r.rangeList.ranges;r.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,u=o.length,c=0;c<u;c++){var h=c;o[c].moveBy(a,0);for(var p=(n=this.$getSelectedRows(o[c])).first,d=n.last;++c<u;){l&&o[c].moveBy(l,0);var f=this.$getSelectedRows(o[c]);if(t&&f.first!=d)break;if(!t&&f.first>d+1)break;d=f.last}for(c--,a=this.session.$moveLines(p,d,t?0:e),t&&-1==e&&(h=c+1);h<=c;)o[h].moveBy(a,0),h++;t||(a=0),l+=a}r.fromOrientedRange(r.ranges[0]),r.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,r=e*Math.floor(i.height/i.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(r,0)})):!1===t&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection()),this.$blockScrolling--;var s=n.scrollTop;n.scrollBy(0,r*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(s)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new y(this.session,n.row,n.column),r=i.getCurrentToken(),s=r||i.stepForward();if(s){var o,a,l=!1,u={},c=n.column-s.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;c<s.value.length&&!l;c++)if(h[s.value[c]])switch(a=h[s.value[c]]+"."+s.type.replace("rparen","lparen"),isNaN(u[a])&&(u[a]=0),s.value[c]){case"(":case"[":case"{":u[a]++;break;case")":case"]":case"}":u[a]--,-1===u[a]&&(o="bracket",l=!0)}}else s&&-1!==s.type.indexOf("tag-name")&&(isNaN(u[s.value])&&(u[s.value]=0),"<"===r.value?u[s.value]++:"</"===r.value&&u[s.value]--,-1===u[s.value]&&(o="tag",l=!0));l||(r=s,s=i.stepForward(),c=0)}while(s&&!l);if(o){var p,f;if("bracket"===o)(p=this.session.getBracketRange(n))||(f=(p=new d(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+c-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+c-1)).start,(t||f.row===n.row&&Math.abs(f.column-n.column)<2)&&(p=this.session.getBracketRange(f)));else if("tag"===o){if(!s||-1===s.type.indexOf("tag-name"))return;var g=s.value;if(0===(p=new d(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(n.row,n.column)){l=!1;do{s=r,(r=i.stepBackward())&&(-1!==r.type.indexOf("tag-close")&&p.setEnd(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+1),s.value===g&&-1!==s.type.indexOf("tag-name")&&("<"===r.value?u[g]++:"</"===r.value&&u[g]--,0===u[g]&&(l=!0)))}while(r&&!l)}s&&s.type.indexOf("tag-name")&&(f=p.start).row==n.row&&Math.abs(f.column-n.column)<2&&(f=p.end)}(f=p&&p.cursor||f)&&(e?p&&t?this.selection.setRange(p):p&&p.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(f.row,f.column):this.selection.moveTo(f.row,f.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.$blockScrolling-=1,this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n?(this.$tryReplace(n,e)&&(i=1),null!==n&&(this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),i):i},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;this.$blockScrolling+=1;var r=this.getSelectionRange();this.selection.moveTo(0,0);for(var s=n.length-1;s>=0;--s)this.$tryReplace(n[s],e)&&i++;return this.selection.setSelectionRange(r),this.$blockScrolling-=1,i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&i.mixin(t,e);var r=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),e=this.session.getTextRange(r)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:r});var s=this.$search.find(this.session);return t.preventScroll?s:s?(this.revealRange(s,n),s):(t.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var r=this.$scrollAnchor;r.style.cssText="position:absolute",this.container.insertBefore(r,this.container.firstChild);var s=this.on("changeSelection",(function(){i=!0})),o=this.renderer.on("beforeRender",(function(){i&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,s=e.$cursorLayer.$pixelPos,o=e.layerConfig,a=s.top-o.offset;null!=(i=s.top>=0&&a+t.top<0||!(s.top<o.height&&s.top+t.top+o.lineHeight>window.innerHeight)&&null)&&(r.style.top=a+"px",r.style.left=s.left+"px",r.style.height=o.lineHeight+"px",r.scrollIntoView(i)),i=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",s),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",o))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,r.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))}}.call(b.prototype),v.defineOptions(b.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=b})),ace.define("ace/undomanager",["require","exports","module"],(function(e,t,n){"use strict";var i=function(){this.reset()};(function(){function e(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function t(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function n(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++){for(var r=e[i],s={group:r.group,deltas:new Array(r.length)},o=0;o<r.deltas.length;o++){var a=r.deltas[o];s.deltas[o]=t(a)}n[i]=s}return n}this.execute=function(e){var t=e.args[0];this.$doc=e.args[1],e.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(e){var t=this.$undoStack.pop(),n=null;return t&&(n=this.$doc.undoChanges(t,e),this.$redoStack.push(t),this.dirtyCounter--),n},this.redo=function(e){var t=this.$redoStack.pop(),n=null;return t&&(n=this.$doc.redoChanges(this.$deserializeDeltas(t),e),this.$undoStack.push(t),this.dirtyCounter++),n},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(t){return n(t,e)},this.$deserializeDeltas=function(e){return n(e,t)}}).call(i.prototype),t.UndoManager=i})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/oop"),s=e("../lib/lang"),o=e("../lib/event_emitter").EventEmitter,a=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){r.implement(this,o),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,r=this.$annotations[i];r||(r=this.$annotations[i]={text:[]});var o=n.text;o=o?s.escapeHTML(o):n.html||"",-1===r.text.indexOf(o)&&r.text.push(o);var a=n.type;"error"==a?r.className=" ace_error":"warning"==a&&" ace_error"!=r.className?r.className=" ace_warning":"info"!=a||r.className||(r.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var i=new Array(n+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(e){for(var t=this.session,n=e.firstRow,r=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),s=t.getNextFoldLine(n),o=s?s.start.row:1/0,a=this.$showFoldWidgets&&t.foldWidgets,l=t.$breakpoints,u=t.$decorations,c=t.$firstLineNumber,h=0,p=t.gutterRenderer||this.$renderer,d=null,f=-1,g=n;;){if(g>o&&(g=s.end.row+1,o=(s=t.getNextFoldLine(g,s))?s.start.row:1/0),g>r){for(;this.$cells.length>f+1;)d=this.$cells.pop(),this.element.removeChild(d.element);break}(d=this.$cells[++f])||((d={element:null,textNode:null,foldWidget:null}).element=i.createElement("div"),d.textNode=document.createTextNode(""),d.element.appendChild(d.textNode),this.element.appendChild(d.element),this.$cells[f]=d);var m="ace_gutter-cell ";if(l[g]&&(m+=l[g]),u[g]&&(m+=u[g]),this.$annotations[g]&&(m+=this.$annotations[g].className),d.element.className!=m&&(d.element.className=m),(y=t.getRowLength(g)*e.lineHeight+"px")!=d.element.style.height&&(d.element.style.height=y),a){var v=a[g];null==v&&(v=a[g]=t.getFoldWidget(g))}if(v){d.foldWidget||(d.foldWidget=i.createElement("span"),d.element.appendChild(d.foldWidget));m="ace_fold-widget ace_"+v;"start"==v&&g==o&&g<s.end.row?m+=" ace_closed":m+=" ace_open",d.foldWidget.className!=m&&(d.foldWidget.className=m);var y=e.lineHeight+"px";d.foldWidget.style.height!=y&&(d.foldWidget.style.height=y)}else d.foldWidget&&(d.element.removeChild(d.foldWidget),d.foldWidget=null);var b=h=p?p.getText(t,g):g+c;b!==d.textNode.data&&(d.textNode.data=b),g++}this.element.style.height=e.minHeight+"px",(this.$fixedWidth||t.$useWrapMode)&&(h=t.getLength()+c);var w=p?p.getWidth(t,h,e):h.toString().length*e.characterWidth,x=this.$padding||this.$computePadding();(w+=x.left+x.right)===this.gutterWidth||isNaN(w)||(this.gutterWidth=w,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",w))},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?i.addCssClass(this.element,"ace_folding-enabled"):i.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=i.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(e.paddingLeft)+1||0,this.$padding.right=parseInt(e.paddingRight)||0,this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(a.prototype),t.Gutter=a})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../range").Range,r=e("../lib/dom"),s=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e){this.config=e;var t=[];for(var n in this.markers){var i=this.markers[n];if(i.range){var r=i.range.clipRows(e.firstRow,e.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),i.renderer){var s=this.$getTop(r.start.row,e),o=this.$padding+(this.session.$bidiHandler.isBidiRow(r.start.row)?this.session.$bidiHandler.getPosLeft(r.start.column):r.start.column*e.characterWidth);i.renderer(t,r,o,s,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,r,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,r,i.clazz,e):r.isMultiLine()?"text"==i.type?this.drawTextMarker(t,r,i.clazz,e):this.drawMultiLineMarker(t,r,i.clazz,e):this.session.$bidiHandler.isBidiRow(r.start.row)?this.drawBidiSingleLineMarker(t,r,i.clazz+" ace_start ace_br15",e):this.drawSingleLineMarker(t,r,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,r,s){for(var o=this.session,a=t.start.row,l=t.end.row,u=a,c=0,h=0,p=o.getScreenLastRowColumn(u),d=null,f=new i(u,t.start.column,u,h);u<=l;u++)f.start.row=f.end.row=u,f.start.column=u==a?t.start.column:o.getRowWrapIndent(u),f.end.column=p,c=h,h=p,p=u+1<l?o.getScreenLastRowColumn(u+1):u==l?0:t.end.column,d=n+(u==a?" ace_start":"")+" ace_br"+((u==a||u==a+1&&t.start.column?1:0)|(c<h?2:0)|(h>p?4:0)|(u==l?8:0)),this.session.$bidiHandler.isBidiRow(u)?this.drawBidiSingleLineMarker(e,f,d,r,u==l?0:1,s):this.drawSingleLineMarker(e,f,d,r,u==l?0:1,s)},this.drawMultiLineMarker=function(e,t,n,i,r){var s,o,a,l=this.$padding;(r=r||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((u=t.clone()).end.row=u.start.row,u.end.column=this.session.getLine(u.start.row).length,this.drawBidiSingleLineMarker(e,u,n+" ace_br1 ace_start",i,null,r)):(s=i.lineHeight,o=this.$getTop(t.start.row,i),a=l+t.start.column*i.characterWidth,e.push("<div class='",n," ace_br1 ace_start' style='","height:",s,"px;","right:0;","top:",o,"px;","left:",a,"px;",r,"'></div>"));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var u;(u=t.clone()).start.row=u.end.row,u.start.column=0,this.drawBidiSingleLineMarker(e,u,n+" ace_br12",i,null,r)}else{var c=t.end.column*i.characterWidth;s=i.lineHeight,o=this.$getTop(t.end.row,i),e.push("<div class='",n," ace_br12' style='","height:",s,"px;","width:",c,"px;","top:",o,"px;","left:",l,"px;",r,"'></div>")}if(!((s=(t.end.row-t.start.row-1)*i.lineHeight)<=0)){o=this.$getTop(t.start.row+1,i);var h=(t.start.column?1:0)|(t.end.column?0:8);e.push("<div class='",n,h?" ace_br"+h:"","' style='","height:",s,"px;","right:0;","top:",o,"px;","left:",l,"px;",r,"'></div>")}},this.drawSingleLineMarker=function(e,t,n,i,r,s){var o=i.lineHeight,a=(t.end.column+(r||0)-t.start.column)*i.characterWidth,l=this.$getTop(t.start.row,i),u=this.$padding+t.start.column*i.characterWidth;e.push("<div class='",n,"' style='","height:",o,"px;","width:",a,"px;","top:",l,"px;","left:",u,"px;",s||"","'></div>")},this.drawBidiSingleLineMarker=function(e,t,n,i,r,s){var o=i.lineHeight,a=this.$getTop(t.start.row,i),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(t){e.push("<div class='",n,"' style='","height:",o,"px;","width:",t.width+(r||0),"px;","top:",a,"px;","left:",l+t.left,"px;",s||"","'></div>")}))},this.drawFullLineMarker=function(e,t,n,i,r){var s=this.$getTop(t.start.row,i),o=i.lineHeight;t.start.row!=t.end.row&&(o+=this.$getTop(t.end.row,i)-s),e.push("<div class='",n,"' style='","height:",o,"px;","top:",s,"px;","left:0;right:0;",r||"","'></div>")},this.drawScreenLineMarker=function(e,t,n,i,r){var s=this.$getTop(t.start.row,i),o=i.lineHeight;e.push("<div class='",n,"' style='","height:",o,"px;","top:",s,"px;","left:0;right:0;",r||"","'></div>")}}).call(s.prototype),t.Marker=s})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../lib/dom"),s=e("../lib/lang"),o=(e("../lib/useragent"),e("../lib/event_emitter").EventEmitter),a=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){i.implement(this,o),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)this.showInvisibles?t.push("<span class='ace_invisible ace_invisible_tab'>"+s.stringRepeat(this.TAB_CHAR,n)+"</span>"):t.push(s.stringRepeat(" ",n));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var i="ace_indent-guide",r="",o="";if(this.showInvisibles){i+=" ace_invisible",r=" ace_invisible_space",o=" ace_invisible_tab";var a=s.stringRepeat(this.SPACE_CHAR,this.tabSize),l=s.stringRepeat(this.TAB_CHAR,this.tabSize)}else l=a=s.stringRepeat(" ",this.tabSize);this.$tabStrings[" "]="<span class='"+i+r+"'>"+a+"</span>",this.$tabStrings["\t"]="<span class='"+i+o+"'>"+l+"</span>"}},this.updateLines=function(e,t,n){this.config.lastRow==e.lastRow&&this.config.firstRow==e.firstRow||this.scrollLines(e),this.config=e;for(var i=Math.max(t,e.firstRow),r=Math.min(n,e.lastRow),s=this.element.childNodes,o=0,a=e.firstRow;a<i;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(i)){i=l.start.row;break}a=l.end.row}o++}a=i;for(var l,u=(l=this.session.getNextFoldLine(a))?l.start.row:1/0;a>u&&(a=l.end.row+1,u=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(a>r);){var c=s[o++];if(c){var h=[];this.$renderLine(h,a,!this.$useLineGroups(),a==u&&l),c.style.height=e.lineHeight*this.session.getRowLength(a)+"px",c.innerHTML=h.join("")}a++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);var n=this.element;if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)n.removeChild(n.firstChild);if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)n.removeChild(n.lastChild);if(e.firstRow<t.firstRow){var r=this.$renderLinesFragment(e,e.firstRow,t.firstRow-1);n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r)}if(e.lastRow>t.lastRow){r=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);n.appendChild(r)}},this.$renderLinesFragment=function(e,t,n){for(var i=this.element.ownerDocument.createDocumentFragment(),s=t,o=this.session.getNextFoldLine(s),a=o?o.start.row:1/0;s>a&&(s=o.end.row+1,a=(o=this.session.getNextFoldLine(s,o))?o.start.row:1/0),!(s>n);){var l=r.createElement("div"),u=[];if(this.$renderLine(u,s,!1,s==a&&o),l.innerHTML=u.join(""),this.$useLineGroups())l.className="ace_line_group",i.appendChild(l),l.style.height=e.lineHeight*this.session.getRowLength(s)+"px";else for(;l.firstChild;)i.appendChild(l.firstChild);s++}return i},this.update=function(e){this.config=e;for(var t=[],n=e.firstRow,i=e.lastRow,r=n,s=this.session.getNextFoldLine(r),o=s?s.start.row:1/0;r>o&&(r=s.end.row+1,o=(s=this.session.getNextFoldLine(r,s))?s.start.row:1/0),!(r>i);)this.$useLineGroups()&&t.push("<div class='ace_line_group' style='height:",e.lineHeight*this.session.getRowLength(r),"px'>"),this.$renderLine(t,r,!1,r==o&&s),this.$useLineGroups()&&t.push("</div>"),r++;this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){var r=this,o=i.replace(/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,i,o,a){if(n)return r.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+s.stringRepeat(r.SPACE_CHAR,e.length)+"</span>":e;if("&"==e)return"&#38;";if("<"==e)return"&#60;";if(">"==e)return"&#62;";if("\t"==e){var l=r.session.getScreenTabSize(t+o);return t+=l-1,r.$tabStrings[l]}if(" "==e){var u=r.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",c=r.showInvisibles?r.SPACE_CHAR:"";return t+=1,"<span class='"+u+"' style='width:"+2*r.config.characterWidth+"px'>"+c+"</span>"}return i?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+r.SPACE_CHAR+"</span>":(t+=1,"<span class='ace_cjk' style='width:"+2*r.config.characterWidth+"px'>"+e+"</span>")}));if(this.$textToken[n.type])e.push(o);else{var a="ace_"+n.type.replace(/\./g," ace_"),l="";"fold"==n.type&&(l=" style='width:"+n.value.length*this.config.characterWidth+"px;' "),e.push("<span class='",a,"'",l,">",o,"</span>")}return t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);return i<=0||i>=n?t:" "==t[0]?(i-=i%this.tabSize,e.push(s.stringRepeat(this.$tabStrings[" "],i/this.tabSize)),t.substr(i)):"\t"==t[0]?(e.push(s.stringRepeat(this.$tabStrings["\t"],i)),t.substr(i)):t},this.$renderWrappedLine=function(e,t,n,i){for(var r=0,o=0,a=n[0],l=0,u=0;u<t.length;u++){var c=t[u],h=c.value;if(0==u&&this.displayIndentGuides){if(r=h.length,!(h=this.renderIndentGuide(e,h,a)))continue;r-=h.length}if(r+h.length<a)l=this.$renderToken(e,l,c,h),r+=h.length;else{for(;r+h.length>=a;)l=this.$renderToken(e,l,c,h.substring(0,a-r)),h=h.substring(a-r),r=a,i||e.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),e.push(s.stringRepeat(" ",n.indent)),l=0,a=n[++o]||Number.MAX_VALUE;0!=h.length&&(r+=h.length,l=this.$renderToken(e,l,c,h))}}},this.$renderSimpleLine=function(e,t){var n=0,i=t[0],r=i.value;this.displayIndentGuides&&(r=this.renderIndentGuide(e,r)),r&&(n=this.$renderToken(e,n,i,r));for(var s=1;s<t.length;s++)r=(i=t[s]).value,n=this.$renderToken(e,n,i,r)},this.$renderLine=function(e,t,n,i){if(i||0==i||(i=this.session.getFoldLine(t)),i)var r=this.$getFoldLineTokens(t,i);else r=this.session.getTokens(t);if(n||e.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(t)),"px'>"),r.length){var s=this.session.getRowSplitData(t);s&&s.length?this.$renderWrappedLine(e,r,s,n):this.$renderSimpleLine(e,r)}this.showInvisibles&&(i&&(t=i.end.row),e.push("<span class='ace_invisible ace_invisible_eol'>",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),n||e.push("</div>")},this.$getFoldLineTokens=function(e,t){var n=this.session,i=[];var r=n.getTokens(e);return t.walk((function(e,t,s,o,a){null!=e?i.push({type:"fold",value:e}):(a&&(r=n.getTokens(t)),r.length&&function(e,t,n){for(var r=0,s=0;s+e[r].value.length<t;)if(s+=e[r].value.length,++r==e.length)return;for(s!=t&&((o=e[r].value.substring(t-s)).length>n-t&&(o=o.substring(0,n-t)),i.push({type:e[r].type,value:o}),s=t+o.length,r+=1);s<n&&r<e.length;){var o;(o=e[r].value).length+s>n?i.push({type:e[r].type,value:o.substring(0,n-s)}):i.push(e[r]),s+=o.length,r+=1}}(r,o,s))}),t.end.row,this.session.getLine(t.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(a.prototype),t.Text=a})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i,r=e("../lib/dom"),s=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===i&&(i=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(i?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||i||(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var r=t.length;n<r;n++){var s=this.getPixelPosition(t[n].cursor,!0);if(!((s.top>e.height+e.offset||s.top<0)&&n>1)){var o=(this.cursors[i++]||this.addCursor()).style;this.drawCursor?this.drawCursor(o,s,e,t[n],this.session):(o.left=s.left+"px",o.top=s.top+"px",o.width=e.characterWidth+"px",o.height=e.lineHeight+"px")}}for(;this.cursors.length>i;)this.removeCursor();var a=this.session.getOverwrite();this.$setOverwrite(a),this.$pixelPos=s,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(s.prototype),t.Cursor=s})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/dom"),s=e("./lib/event"),o=e("./lib/event_emitter").EventEmitter,a=function(e){this.element=r.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=r.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)};(function(){i.implement(this,o),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var l=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=r.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(l,a),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>32768?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var u=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(u,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(u.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=u,t.VScrollBar=l,t.HScrollBar=u})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var i=e("./lib/event"),r=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;i.nextFrame((function(){var e;for(t.pending=!1;e=t.changes;)t.changes=0,t.onRender(e)}),this.window)}}}).call(r.prototype),t.RenderLoop=r})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/oop"),r=e("../lib/dom"),s=e("../lib/lang"),o=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,l=0,u=t.FontMetrics=function(e){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),l||this.$testFractionalRect(),this.$measureNode.innerHTML=s.stringRepeat("X",l),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){i.implement(this,a),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=r.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;l=t>0&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",o.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval((function(){e.checkForSizeChanges()}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===l){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(t){e={width:0,height:0}}var t={height:e.height,width:e.width/l}}else t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/l};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.innerHTML=s.stringRepeat(e,l),this.$main.getBoundingClientRect().width/l},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(u.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/dom"),s=e("./config"),o=e("./lib/useragent"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,u=e("./layer/text").Text,c=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,p=e("./scrollbar").VScrollBar,d=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter;r.importCssString('.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}',"ace_editor.css");var m=function(e,t){var n=this;this.container=e||r.createElement("div"),this.$keepTextAreaAtCursor=!o.isOldIE,r.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var i=this.$textLayer=new u(this.content);this.canvas=i.element,this.$markerFront=new l(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new p(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new d(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var r=this.container;i||(i=r.clientHeight||r.scrollHeight),n||(n=r.clientWidth||r.scrollWidth);var s=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(s|this.$changes,!0):this.$loop.schedule(s|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var r=0,s=this.$size,o={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};return i&&(e||s.height!=i)&&(s.height=i,r|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||s.width!=n)&&(r|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)),s.$dirty=!n||!i,r&&this._signal("resize",o),r},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var n=this.session.selection.getCursor();n.column=0,e=this.$cursorLayer.getPixelPosition(n,!0),t*=this.session.getRowLength(n.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=r.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,n=this.$cursorLayer.$pixelPos.left;t-=e.offset;var i=this.textarea.style,r=this.lineHeight;if(t<0||t>e.height-r)i.top=i.left="0";else{var s=this.characterWidth;if(this.$composition){var o=this.textarea.value.replace(/^\x01+/,"");s*=this.session.$getStringScreenWidth(o)[0]+2,r+=2}(n-=this.scrollLeft)>this.$size.scrollerWidth-s&&(n=this.$size.scrollerWidth-s),n+=this.gutterWidth,i.height=r+"px",i.width=s+"px",i.left=Math.min(n,this.$size.scrollerWidth-s)+"px",i.top=Math.min(t,this.$size.height-r)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var r=this.scrollMargin;r.top=0|e,r.bottom=0|t,r.right=0|i,r.left=0|n,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-n.offset+"px",this.content.style.marginTop=-n.offset+"px",this.content.style.width=n.width+2*this.$padding+"px",this.content.style.height=n.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength()*this.lineHeight,r=this.$getLongestLine(),s=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-r-2*this.$padding<0),o=this.$horizScroll!==s;o&&(this.$horizScroll=s,this.scrollBarH.setVisible(s));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=this.scrollTop%this.lineHeight,u=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=c;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,i-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,r+2*this.$padding-t.scrollerWidth+h.right)));var p=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+c<0||this.scrollTop>h.top),d=a!==p;d&&(this.$vScroll=p,this.scrollBarV.setVisible(p));var f,g,m=Math.ceil(u/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-l)/this.lineHeight)),y=v+m,b=this.lineHeight;v=e.screenToDocumentRow(v,0);var w=e.getFoldLine(v);w&&(v=w.start.row),f=e.documentToScreenRow(v,0),g=e.getRowLength(v)*b,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),u=t.scrollerHeight+e.getRowLength(y)*b+g,l=this.scrollTop-f*b;var x=0;return this.layerConfig.width!=r&&(x=this.CHANGE_H_SCROLL),(o||d)&&(x=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),d&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:v,firstRowScreen:f,lastRow:y,lineHeight:b,characterWidth:this.characterWidth,minHeight:u,maxHeight:i,offset:l,gutterOffset:b?Math.max(0,Math.ceil((l+t.height-t.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},x},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),r=i.left,s=i.top,o=n&&n.top||0,a=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+o>s?(t&&l+o>s+this.lineHeight&&(s-=t*this.$size.scrollerHeight),0===s&&(s=-this.scrollMargin.top),this.session.setScrollTop(s)):l+this.$size.scrollerHeight-a<s+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<s-this.lineHeight&&(s+=t*this.$size.scrollerHeight),this.session.setScrollTop(s+this.lineHeight-this.$size.scrollerHeight));var u=this.scrollLeft;u>r?(r<this.$padding+2*this.layerConfig.characterWidth&&(r=-this.scrollMargin.left),this.session.setScrollLeft(r)):u+this.$size.scrollerWidth<r+this.characterWidth?this.session.setScrollLeft(Math.round(r+this.characterWidth-this.$size.scrollerWidth)):u<=this.$padding&&r-u<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,r=n.top-i*(t||0);return this.session.setScrollTop(r),r},this.STEPS=8,this.$calcSteps=function(e,t){var n,i,r=0,s=this.STEPS,o=[];for(r=0;r<s;++r)o.push((n=r/this.STEPS,i=e,(t-e)*(Math.pow(n-1,3)+1)+i));return o},this.scrollToLine=function(e,t,n,i){var r=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(r-=this.$size.scrollerHeight/2);var s=this.scrollTop;this.session.setScrollTop(r),!1!==n&&this.animateScrolling(s,i)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=n){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(e=r[0])==n)return}var s=i.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:s},clearInterval(this.$timer),i.session.setScrollTop(s.shift()),i.session.$scrollTop=n,this.$timer=setInterval((function(){s.length?(i.session.setScrollTop(s.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):(i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=i/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),o=Math.round(r);return{row:s,column:o,side:r-o>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=Math.round(i/this.characterWidth),s=(t+this.scrollTop-n.top)/this.lineHeight;return this.session.screenToDocumentPosition(s,Math.max(r,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),r=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),s=i.row*this.lineHeight;return{pageX:n.left+r-this.scrollLeft,pageY:n.top+s-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(r.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)o(e);else{var i=e||this.$options.theme.initialValue;s.loadModule(["theme",i],o)}function o(i){if(n.$themeId!=e)return t&&t();if(!i||!i.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.importCssString(i.cssText,i.cssClass,n.container.ownerDocument),n.theme&&r.removeCssClass(n.container,n.theme.cssClass);var s="padding"in i?i.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&s!=n.$padding&&n.setPadding(s),n.$theme=i.cssClass,n.theme=i,r.addCssClass(n.container,i.cssClass),r.setCssClass(n.container,"ace_dark",i.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:i}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){r.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){r.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(m.prototype),s.defineOptions(m.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=r.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=m})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../lib/net"),s=e("../lib/event_emitter").EventEmitter,o=e("../config");function a(e,t){var n=function(e,t){var n=t.src;r.qualifyURL(e);try{return new Blob([n],{type:"application/javascript"})}catch(e){var i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return i.append(n),i.getBlob("application/javascript")}}(e,t),i=(window.URL||window.webkitURL).createObjectURL(n);return new Worker(i)}var l=function(t,n,i,r,s){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),o.get("packaged")||!e.toUrl)r=r||o.moduleUrl(n.id,"worker");else{var l=this.$normalizePath;r=r||l(e.toUrl("ace/worker/worker.js",null,"_"));var u={};t.forEach((function(t){u[t]=l(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}this.$worker=a(r,n),s&&this.send("importScripts",s),this.$worker.postMessage({init:!0,tlns:u,module:n.id,classname:i}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,s),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return r.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);var u=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var i=null,r=!1,a=Object.create(s),l=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){l.messageBuffer.push(e),i&&(r?setTimeout(u):u())},this.setEmitSync=function(e){r=e};var u=function(){var e=l.messageBuffer.shift();e.command?i[e.command].apply(i,e.args):e.event&&a._signal(e.event,e.data)};a.postMessage=function(e){l.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},o.loadModule(["worker",t],(function(e){for(i=new e[n](a);l.messageBuffer.length;)u()}))};u.prototype=l.prototype,t.UIWorkerClient=u,t.WorkerClient=l,t.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("./range").Range,r=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop"),o=function(e,t,n,i,r,s){var o=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=r,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){o.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){s.implement(this,r),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=n.addMarker(new i(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new i(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,r=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;if(this.updateAnchors(e),r&&(this.length+=n),r&&!this.session.$fromUndo)if("insert"===e.action)for(var o=this.others.length-1;o>=0;o--){var a={row:(l=this.others[o]).row,column:l.column+s};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(o=this.others.length-1;o>=0;o--){var l;a={row:(l=this.others[o]).row,column:l.column+s};this.doc.remove(new i(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,r){t.removeMarker(n.markerId),n.markerId=t.addMarker(new i(n.row,n.column,n.row,n.column+e.length),r,null,!1)};n(this.pos,this.mainClass);for(var r=this.others.length;r--;)n(this.others[r],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(o.prototype),t.PlaceHolder=o})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var i=e("../lib/event"),r=e("../lib/useragent");function s(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,o=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),u=e.getButton();if(a&&r.isMac&&(u=t.button),e.editor.inMultiSelectMode&&2==u)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||l){if(0===u){var c,h=e.editor,p=h.selection,d=h.inMultiSelectMode,f=e.getDocumentPosition(),g=p.getCursor(),m=e.inSelection()||p.isEmpty()&&s(f,g),v=e.x,y=e.y,b=h.session,w=h.renderer.pixelToScreenCoordinates(v,y),x=w;if(h.$mouseHandler.$enableJumpToDef)a&&n||l&&n?c=o?"block":"add":n&&h.$blockSelectEnabled&&(c="block");else if(l&&!n){if(c="add",!d&&o)return}else n&&h.$blockSelectEnabled&&(c="block");if(c&&r.isMac&&t.ctrlKey&&h.$mouseHandler.cancelContextMenu(),"add"==c){if(!d&&m)return;if(!d){var C=p.toOrientedRange();h.addSelectionMarker(C)}var E=p.rangeList.rangeAtPoint(f);h.$blockScrolling++,h.inVirtualSelectionMode=!0,o&&(E=null,C=p.ranges[0]||C,h.removeSelectionMarker(C)),h.once("mouseup",(function(){var e=p.toOrientedRange();E&&e.isEmpty()&&s(E.cursor,e.cursor)?p.substractPoint(e.cursor):(o?p.substractPoint(C.cursor):C&&(h.removeSelectionMarker(C),p.addRange(C)),p.addRange(e)),h.$blockScrolling--,h.inVirtualSelectionMode=!1}))}else if("block"==c){var A;e.stop(),h.inVirtualSelectionMode=!0;var S=[];h.$blockScrolling++,d&&!l?p.toSingleRange():!d&&l&&(A=p.toOrientedRange(),h.addSelectionMarker(A)),o?w=b.documentToScreenPosition(p.lead):p.moveToPosition(f),h.$blockScrolling--,x={row:-1,column:-1};var D=function(){var e=h.renderer.pixelToScreenCoordinates(v,y),t=b.screenToDocumentPosition(e.row,e.column,e.offsetX);s(x,e)&&s(t,p.lead)||(x=e,h.$blockScrolling++,h.selection.moveToPosition(t),h.renderer.scrollCursorIntoView(),h.removeSelectionMarkers(S),S=p.rectangularRangeBlock(x,w),h.$mouseHandler.$clickSelection&&1==S.length&&S[0].isEmpty()&&(S[0]=h.$mouseHandler.$clickSelection.clone()),S.forEach(h.addSelectionMarker,h),h.updateSelectionMarkers(),h.$blockScrolling--)};i.capture(h.container,(function(e){v=e.clientX,y=e.clientY}),(function(e){clearInterval(k),h.removeSelectionMarkers(S),S.length||(S=[p.toOrientedRange()]),h.$blockScrolling++,A&&(h.removeSelectionMarker(A),p.toSingleRange(A));for(var t=0;t<S.length;t++)p.addRange(S[t]);h.inVirtualSelectionMode=!1,h.$mouseHandler.$clickSelection=null,h.$blockScrolling--}));var k=setInterval((function(){D()}),20);return e.preventDefault()}}}else 0===u&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var i=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new i(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var i=e("./range_list").RangeList,r=e("./range").Range,s=e("./selection").Selection,o=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),u=e("./commands/multi_select_commands");t.commands=u.defaultCommands.concat(u.multiSelectCommands);var c=new(0,e("./search").Search);var h=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var i=this.isBackwards(),s=n.start.row,o=n.end.row;if(s==o){if(i)var a=n.end,l=n.start;else a=n.start,l=n.end;return this.addRange(r.fromPoints(l,l)),void this.addRange(r.fromPoints(a,a))}var u=[],c=this.getLineRange(s,!0);c.start.column=n.start.column,u.push(c);for(var h=s+1;h<o;h++)u.push(this.getLineRange(h,!0));(c=this.getLineRange(o,!0)).end.column=n.end.column,u.push(c),u.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.selectionLead),s=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(i,s).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],s=e.column<t.column;if(s)var o=e.column,a=t.column,l=e.offsetX,u=t.offsetX;else o=t.column,a=e.column,l=t.offsetX,u=e.offsetX;var c,h,p=e.row<t.row;if(p)var d=e.row,f=t.row;else d=t.row,f=e.row;o<0&&(o=0),d<0&&(d=0),d==f&&(n=!0);for(var g=d;g<=f;g++){var m=r.fromPoints(this.session.screenToDocumentPosition(g,o,l),this.session.screenToDocumentPosition(g,a,u));if(m.isEmpty()){if(v&&(c=m.end,h=v,c.row==h.row&&c.column==h.column))break;var v=m.end}m.cursor=s?m.start:m.end,i.push(m)}if(p&&i.reverse(),!n){for(var y=i.length-1;i[y].isEmpty()&&y>0;)y--;if(y>0)for(var b=0;i[b].isEmpty();)b++;for(var w=y;w>=b;w--)i[w].isEmpty()&&i.splice(w,1)}return i}}.call(s.prototype);var p=e("./editor").Editor;function d(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",o),e.commands.addCommands(u.defaultCommands),function(e){var t=e.textInput.getElement(),n=!1;function i(t){n&&(e.renderer.setMouseCursor(""),n=!1)}a.addListener(t,"keydown",(function(t){var r=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&r?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&i()})),a.addListener(t,"keyup",i),a.addListener(t,"blur",i)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var r=t.indexOf(i);-1!=r&&t.splice(r,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(u.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(u.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,r=n&&n.keepOrder,o=1==n||n&&n.$byLines,a=this.session,l=this.selection,u=l.rangeList,c=(r?l:u).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=l._eventRegistry;l._eventRegistry={};var p=new s(a);this.inVirtualSelectionMode=!0;for(var d=c.length;d--;){if(o)for(;d>0&&c[d].start.row==c[d-1].end.row;)d--;p.fromOrientedRange(c[d]),p.index=d,this.selection=a.selection=p;var f=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===f||(i=f),p.toOrientedRange(c[d])}p.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=h,l.mergeOverlappingRanges();var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var r=this.session.getDocument().getNewLineCharacter();(e=n.join(r)).length==(n.length-1)*r.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row==t.row&&this.session.$clipPositionToDocument(i.row,i.column).column==t.column||this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,null==t.needle){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var r=this.$search.findAll(this.session);if(!r.length)return 0;this.$blockScrolling+=1;var s=this.multiSelect;n||s.toSingleRange(r[0]);for(var o=r.length;o--;)s.addRange(r[o],!0);return i&&s.rangeList.rangeAtPoint(i.start)&&s.addRange(i,!0),this.$blockScrolling-=1,r.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,s=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(s.column=this.selection.$desiredColumn);var o,a=this.session.screenToDocumentPosition(s.row+e,s.column);if(n.isEmpty())u=a;else var l=this.session.documentToScreenPosition(i?n.end:n.start),u=this.session.screenToDocumentPosition(l.row+e,l.column);i?(o=r.fromPoints(a,u)).cursor=o.start:(o=r.fromPoints(u,a)).cursor=o.end;if(o.desiredColumn=s.column,this.selection.inMultiSelectMode){if(t)var c=n.cursor}else this.selection.addRange(n);this.selection.addRange(o),c&&this.selection.substractPoint(c)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,r=i.length;r--;){if((a=i[r]).isEmpty()){var s=t.getWordRange(a.start.row,a.start.column);a.start.row=s.start.row,a.start.column=s.start.column,a.end.row=s.end.row,a.end.column=s.end.column}}n.mergeOverlappingRanges();var o=[];for(r=i.length;r--;){var a=i[r];o.unshift(t.getTextRange(a))}e<0?o.unshift(o.pop()):o.push(o.shift());for(r=i.length;r--;){s=(a=i[r]).clone();t.replace(a,o[r]),a.start.row=s.start.row,a.start.column=s.start.column}},this.selectMore=function(e,t,n){var i=this.session,r=i.multiSelect.toOrientedRange();if(!r.isEmpty()||((r=i.getWordRange(r.start.row,r.start.column)).cursor=-1==e?r.start:r.end,this.multiSelect.addRange(r),!n)){var s=i.getTextRange(r),o=function(e,t,n){return c.$options.wrap=!0,c.$options.needle=t,c.$options.backwards=-1==n,c.find(e)}(i,s,e);o&&(o.cursor=-1==e?o.start:o.end,this.$blockScrolling+=1,this.session.unfold(o),this.multiSelect.addRange(o),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(r.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,i=-1,s=n.filter((function(e){if(e.cursor.row==i)return!0;i=e.cursor.row}));if(n.length&&s.length!=n.length-1){s.forEach((function(e){t.substractPoint(e.cursor)}));var o=0,a=1/0,u=n.map((function(t){var n=t.cursor,i=e.getLine(n.row).substr(n.column).search(/\S/g);return-1==i&&(i=0),n.column>o&&(o=n.column),i<a&&(a=i),i}));n.forEach((function(t,n){var i=t.cursor,s=o-i.column,c=u[n]-a;s>c?e.insert(i,l.stringRepeat(" ",s-c)):e.remove(new r(i.row,i.column,i.row,i.column-s+c)),t.start.column=t.end.column=o,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),h=c.start.row,p=c.end.row,d=h==p;if(d){var f,g=this.session.getLength();do{f=this.session.getLine(p)}while(/[=:]/.test(f)&&++p<g);do{f=this.session.getLine(h)}while(/[=:]/.test(f)&&--h>0);h<0&&(h=0),p>=g&&(p=g-1)}var m=this.session.removeFullLines(h,p);m=this.$reAlignText(m,d),this.session.insert({row:h,column:0},m.join("\n")+"\n"),d||(c.start.column=0,c.end.column=m[m.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(e,t){var n,i,r,s=!0,o=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,i=t[2].length,r=t[3].length,t):(n+i+r!=t[1].length+t[2].length+t[3].length&&(o=!1),n!=t[1].length&&(s=!1),n>t[1].length&&(n=t[1].length),i<t[2].length&&(i=t[2].length),r>t[3].length&&(r=t[3].length),t):[e]})).map(t?u:s?o?function(e){return e[2]?a(n+i-e[2].length)+e[2]+a(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:u:function(e){return e[2]?a(n)+e[2]+a(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return l.stringRepeat(" ",e)}function u(e){return e[2]?a(n)+e[2]+a(i-e[2].length+r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=d,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){d(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",o)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",o))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../../range").Range,r=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var r=/\S/,s=e.getLine(t),o=s.search(r);if(-1!=o){for(var a=n||s.length,l=e.getLength(),u=t,c=t;++t<l;){var h=e.getLine(t).search(r);if(-1!=h){if(h<=o)break;c=t}}if(c>u){var p=e.getLine(c).length;return new i(u,a,c,p)}}},this.openingBracketBlock=function(e,t,n,r,s){var o={row:n,column:r+1},a=e.$findClosingBracket(t,o,s);if(a){var l=e.foldWidgets[a.row];return null==l&&(l=e.getFoldWidget(a.row)),"start"==l&&a.row>o.row&&(a.row--,a.column=e.getLine(a.row).length),i.fromPoints(o,a)}},this.closingBracketBlock=function(e,t,n,r,s){var o={row:n,column:r},a=e.$findOpeningBracket(t,o);if(a)return a.column++,o.column--,i.fromPoints(a,o)}}).call(r.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom");e("./range").Range;function r(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,r=i.start.row,s=i.end.row,o="add"==e.action,a=r+1;a<s;a++)n[a]&&(n[a].hidden=o);n[s]&&(o?n[r]?n[s].hidden=o:n[r]=n[s]:(n[r]==n[s]&&(n[r]=void 0),n[s].hidden=o))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,i=e.end.row-n;if(0===i);else if("remove"==e.action){t.splice(n+1,i).forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var r=new Array(i);r.unshift(n,0),t.splice.apply(t,r),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e.session=this.session;var n=this.editor.renderer;e.html&&!e.el&&(e.el=i.createElement("div"),e.el.innerHTML=e.html),e.el&&(i.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,n.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/n.layerConfig.lineHeight);var r=this.session.getFoldAt(e.row,0);if(e.$fold=r,r){var s=this.session.lineWidgets;e.row!=r.end.row||s[r.start.row]?e.hidden=!0:s[r.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],i=[];n;)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var r=1/0,s=0;s<n.length;s++){var o=n[s];if(o&&o.el&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,t.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/i.characterWidth));var a=o.h/i.lineHeight;o.coverLine&&(a-=this.session.getRowLineCount(o.row))<0&&(a=0),o.rowCount!=a&&(o.rowCount=a,o.row<r&&(r=o.row))}}r!=1/0&&(this.session._emit("changeFold",{data:{start:{row:r}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){for(var r=Math.min(this.firstRow,n.firstRow),s=Math.max(this.lastRow,n.lastRow,i.length);r>0&&!i[r];)r--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var o=r;o<=s;o++){var a=i[o];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var u=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(u-=t.scrollLeft),a.el.style.left=u+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(r.prototype),t.LineWidgets=r})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var i=e("../line_widgets").LineWidgets,r=e("../lib/dom"),s=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var o=e.getCursorPosition(),a=o.row,l=n.widgetManager.getWidgetsAtRow(a).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():a-=t;var u,c=function(e,t,n){var i=e.getAnnotations().sort(s.comparePoints);if(i.length){var r=function(e,t,n){for(var i=0,r=e.length-1;i<=r;){var s=i+r>>1,o=n(t,e[s]);if(o>0)i=s+1;else{if(!(o<0))return s;r=s-1}}return-(i+1)}(i,{row:t,column:-1},s.comparePoints);r<0&&(r=-r-1),r>=i.length?r=n>0?0:i.length-1:0===r&&n<0&&(r=i.length-1);var o=i[r];if(o&&n){if(o.row===t){do{o=i[r+=n]}while(o&&o.row===t);if(!o)return i.slice()}var a=[];t=o.row;do{a[n<0?"unshift":"push"](o),o=i[r+=n]}while(o&&o.row==t);return a.length&&a}}}(n,a,t);if(c){var h=c[0];o.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,o.row=h.row,u=e.renderer.$gutterLayer.$annotations[o.row]}else{if(l)return;u={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(o.row),e.selection.moveToPosition(o);var p={row:o.row,fixedWidth:!0,coverGutter:!0,el:r.createElement("div"),type:"errorMarker"},d=p.el.appendChild(r.createElement("div")),f=p.el.appendChild(r.createElement("div"));f.className="error_widget_arrow "+u.className;var g=e.renderer.$cursorLayer.getPixelPosition(o).left;f.style.left=g+e.renderer.gutterWidth-5+"px",p.el.className="error_widget_wrapper",d.className="error_widget "+u.className,d.innerHTML=u.text.join("<br>"),d.appendChild(r.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return p.destroy(),{command:"null"}};p.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(p),e.off("changeSelection",p.destroy),e.off("changeSession",p.destroy),e.off("mouseup",p.destroy),e.off("change",p.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",p.destroy),e.on("changeSession",p.destroy),e.on("mouseup",p.destroy),e.on("change",p.destroy),e.session.widgetManager.addLineWidget(p),p.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:p.el.offsetHeight})},r.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,i){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/dom"),s=e("./lib/event"),o=e("./editor").Editor,a=e("./edit_session").EditSession,l=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,t.define=n(53),t.edit=function(e){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof o)return e.env.editor;var i="";if(e&&/input|textarea/i.test(e.tagName)){var a=e;i=a.value,e=r.createElement("pre"),a.parentNode.replaceChild(e,a)}else e&&(i=r.getInnerText(e),e.innerHTML="");var l=t.createEditSession(i),c=new o(new u(e));c.setSession(l);var h={document:l,editor:c,onResize:c.resize.bind(c,null)};return a&&(h.textarea=a),s.addListener(window,"resize",h.onResize),c.on("destroy",(function(){s.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),c.container.env=c.env=h,c},t.createEditSession=function(e,t){var n=new a(e,t);return n.setUndoManager(new l),n},t.EditSession=a,t.UndoManager=l,t.version="1.2.9"})),ace.acequire(["ace/ace"],(function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])})),e.exports=window.ace.acequire("ace/ace")},function(e,t){var n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,a="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,u=a||l||Function("return this")(),c=Object.prototype.toString,h=Math.max,p=Math.min,d=function(){return u.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=r.test(e);return a||s.test(e)?o(e.slice(2),a?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var i,r,s,o,a,l,u=0,c=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=i,s=r;return i=r=void 0,u=t,o=e.apply(s,n)}function b(e){return u=e,a=setTimeout(x,t),c?y(e):o}function w(e){var n=e-l;return void 0===l||n>=t||n<0||m&&e-u>=s}function x(){var e=d();if(w(e))return C(e);a=setTimeout(x,function(e){var n=t-(e-l);return m?p(n,s-(e-u)):n}(e))}function C(e){return a=void 0,v&&i?y(e):(i=r=void 0,o)}function E(){var e=d(),n=w(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return b(l);if(m)return a=setTimeout(x,t),y(l)}return void 0===a&&(a=setTimeout(x,t)),o}return t=g(t)||0,f(n)&&(c=!!n.leading,s=(m="maxWait"in n)?h(g(n.maxWait)||0,t):s,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==a&&clearTimeout(a),u=0,i=l=r=a=void 0},E.flush=function(){return void 0===a?o:C(d())},E}},function(e,t,n){"use strict";
7
+ /** @license React v16.13.1
8
+ * react-is.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */var i="function"==typeof Symbol&&Symbol.for,r=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,o=i?Symbol.for("react.fragment"):60107,a=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,c=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.async_mode"):60111,p=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,f=i?Symbol.for("react.suspense"):60113,g=i?Symbol.for("react.suspense_list"):60120,m=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,y=i?Symbol.for("react.block"):60121,b=i?Symbol.for("react.fundamental"):60117,w=i?Symbol.for("react.responder"):60118,x=i?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case h:case p:case o:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case m:case u:return e;default:return t}}case s:return t}}}function E(e){return C(e)===p}t.AsyncMode=h,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=s,t.Profiler=l,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||C(e)===h},t.isConcurrentMode=E,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return C(e)===d},t.isFragment=function(e){return C(e)===o},t.isLazy=function(e){return C(e)===v},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===s},t.isProfiler=function(e){return C(e)===l},t.isStrictMode=function(e){return C(e)===a},t.isSuspense=function(e){return C(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===l||e===a||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===w||e.$$typeof===x||e.$$typeof===y)},t.typeOf=C},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(148),o=c(n(0)),a=c(n(1)),l=c(n(164)),u=c(n(166));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isDragging:!1,offset:null},n.handleChange=n.handleChange.bind(n),n.handleClick=n.handleClick.bind(n),n.handleHandleClick=n.handleHandleClick.bind(n),n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseUp=n.handleMouseUp.bind(n),n.setRef=n.setRef.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"clickChange",value:function(e){this.ref.parentNode&&"label"===this.ref.parentNode.tagName.toLowerCase()||this.props.onChange(e)}},{key:"componentDidMount",value:function(){window.addEventListener("mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"getHandleColor",value:function(){return(0,l.default)(this.props.handleColor)}},{key:"getHandleCursor",value:function(){return this.isDisabled()?"default":this.state.isDragging?"grabbing":"grab"}},{key:"getHandleLength",value:function(){return this.getHeight()-2}},{key:"getHeight",value:function(){return 30}},{key:"getOffColor",value:function(){return(0,l.default)(this.props.offColor)}},{key:"getOffset",value:function(){return this.state.isDragging?this.state.offset:this.props.checked?this.getOffsetWidth():0}},{key:"getOffsetProgress",value:function(){return this.getOffset()/this.getOffsetWidth()}},{key:"getOffsetWidth",value:function(e){return this.getWidth()-this.getHandleLength()-2}},{key:"getOnColor",value:function(){return(0,l.default)(this.props.onColor)}},{key:"getPendingColor",value:function(e){var t=e.color,n=e.pendingColor;return n?(0,l.default)(n):"white"===t?"#dfdfdf":(0,l.default)(t)}},{key:"getPendingOffColor",value:function(){return this.getPendingColor({color:this.props.offColor,pendingColor:this.props.pendingOffColor})}},{key:"getPendingOnColor",value:function(){return this.getPendingColor({color:this.props.onColor,pendingColor:this.props.pendingOnColor})}},{key:"getWidth",value:function(){return 50}},{key:"handleChange",value:function(e){this.props.onChange(e.target.checked)}},{key:"handleClick",value:function(e){this.isDisabled()||this.clickChange(!this.props.checked)}},{key:"handleHandleClick",value:function(e){e.stopPropagation()}},{key:"handleMouseDown",value:function(e){var t=this;this.isDisabled()||(this.pointerTracker=(0,s.pointer)(e).start(),this.offsetTracker=(0,s.trackOffset)(this.pointerTracker.x,{from:this.getOffset(),onUpdate:s.transform.pipe(s.transform.clamp(0,this.getOffsetWidth()),(function(e){return t.setState({offset:e})}))}).start(),this.setState({isDragging:!0,offset:this.getOffset()}))}},{key:"handleMouseUp",value:function(){if(this.state.isDragging){this.pointerTracker.stop(),this.offsetTracker.stop();var e=this.props.checked?this.getOffsetWidth():0,t=this.state.offset===e?!this.props.checked:this.getOffsetProgress()>=.5;this.setState({isDragging:!1,offset:null}),this.clickChange(t)}}},{key:"isDisabled",value:function(){return this.props.disabled||this.props.readOnly}},{key:"render",value:function(){var e=this.props,t=e.checked,n=e.className,r=e.disabled,o=e.name,l=(e.onChange,e.readOnly),c=e.style,h=this.state.isDragging,p=s.transform.pipe(s.easing.createExpoIn(2),s.transform.blendColor(this.getOffColor(),this.getOnColor()),s.transform.rgba)(this.getOffsetProgress()),d=s.transform.pipe(s.easing.createExpoIn(1),s.transform.blendColor(this.getPendingOffColor(),this.getPendingOnColor()),s.transform.rgba)(this.getOffsetProgress());return a.default.createElement("span",{className:n,onClick:this.handleClick,ref:this.setRef,style:i({},(0,u.default)({backgroundColor:p,border:"1px solid "+d,borderRadius:this.getHeight()/2,boxShadow:"inset 0 0 0 "+this.getOffset()+"px "+d,boxSizing:"border-box",display:"inline-block",height:this.getHeight(),opacity:this.isDisabled()?.5:1,position:"relative",transition:h?null:"0.2s",userSelect:"none",width:this.getWidth()}),c)},a.default.createElement("span",{onClick:this.handleHandleClick,onMouseDown:this.handleMouseDown,style:(0,u.default)({backgroundColor:this.getHandleColor(),borderRadius:"100%",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.4)",cursor:this.getHandleCursor(),display:"inline-block",height:this.getHandleLength(),left:this.getOffset(),position:"absolute",top:0,transition:h?null:"0.2s",width:this.getHandleLength()})}),a.default.createElement("input",{checked:t,disabled:r,name:o,onChange:this.handleChange,readOnly:l,style:{display:"none"},type:"checkbox"}))}},{key:"setRef",value:function(e){this.ref=e}}]),t}(a.default.Component);h.propTypes={checked:o.default.bool,className:o.default.string,disabled:o.default.bool,handleColor:o.default.string,name:o.default.string,offColor:o.default.string,onChange:o.default.func,onColor:o.default.string,pendingOffColor:o.default.string,pendingOnColor:o.default.string,readOnly:o.default.bool,style:o.default.object},h.defaultProps={handleColor:"white",offColor:"white",onChange:function(){},onColor:"rgb(76, 217, 100)"},t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.svgPath=t.svg=t.css=t.Renderer=t.value=t.spring=t.stagger=t.tween=t.trackOffset=t.touches=t.pointer=t.physics=t.parallel=t.delay=t.crossFade=t.composite=t.colorTween=t.chain=t.Action=t.valueTypes=t.transform=t.easing=t.calc=t.currentFrameTimestamp=t.timeSinceLastFrame=t.cancelOnFrameEnd=t.cancelOnFrameRender=t.cancelOnFrameUpdate=t.cancelOnFrameStart=t.onFrameEnd=t.onFrameRender=t.onFrameUpdate=t.onFrameStart=void 0;var i=n(14);Object.defineProperty(t,"onFrameStart",{enumerable:!0,get:function(){return i.onFrameStart}}),Object.defineProperty(t,"onFrameUpdate",{enumerable:!0,get:function(){return i.onFrameUpdate}}),Object.defineProperty(t,"onFrameRender",{enumerable:!0,get:function(){return i.onFrameRender}}),Object.defineProperty(t,"onFrameEnd",{enumerable:!0,get:function(){return i.onFrameEnd}}),Object.defineProperty(t,"cancelOnFrameStart",{enumerable:!0,get:function(){return i.cancelOnFrameStart}}),Object.defineProperty(t,"cancelOnFrameUpdate",{enumerable:!0,get:function(){return i.cancelOnFrameUpdate}}),Object.defineProperty(t,"cancelOnFrameRender",{enumerable:!0,get:function(){return i.cancelOnFrameRender}}),Object.defineProperty(t,"cancelOnFrameEnd",{enumerable:!0,get:function(){return i.cancelOnFrameEnd}}),Object.defineProperty(t,"timeSinceLastFrame",{enumerable:!0,get:function(){return i.timeSinceLastFrame}}),Object.defineProperty(t,"currentFrameTimestamp",{enumerable:!0,get:function(){return i.currentFrameTime}});var r=F(n(23)),s=F(n(49)),o=F(n(24)),a=F(n(33)),l=k(n(15)),u=k(n(107)),c=k(n(149)),h=k(n(50)),p=k(n(150)),d=k(n(108)),f=k(n(51)),g=k(n(151)),m=k(n(152)),v=k(n(153)),y=k(n(154)),b=k(n(34)),w=k(n(155)),x=k(n(156)),C=k(n(52)),E=k(n(35)),A=k(n(157)),S=k(n(159)),D=k(n(162));function k(e){return e&&e.__esModule?e:{default:e}}function F(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}t.calc=r,t.easing=s,t.transform=o,t.valueTypes=a,t.Action=l.default,t.chain=u.default,t.colorTween=c.default,t.composite=h.default,t.crossFade=p.default,t.delay=d.default,t.parallel=f.default,t.physics=g.default,t.pointer=m.default,t.touches=v.default,t.trackOffset=y.default,t.tween=b.default,t.stagger=w.default,t.spring=x.default,t.value=C.default,t.Renderer=E.default,t.css=A.default,t.svg=S.default,t.svgPath=D.default},function(e,t,n){"use strict";t.__esModule=!0;var i,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=n(34),o=(i=s)&&i.__esModule?i:{default:i},a=n(24),l=n(33);t.default=function(e){var t=e.from,n=e.to,i=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["from","to"]);return(0,o.default)(r({},i,{from:0,to:1,transform:(0,a.pipe)((0,a.blendColor)(t,n),l.color.transform)}))}},function(e,t,n){"use strict";t.__esModule=!0;var i=a(n(15)),r=a(n(34)),s=n(49),o=n(23);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),u(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onStart=function(){var e=this.props,t=e.duration,n=e.ease,i=e.fader;this.fader=i||(0,r.default)({to:1,duration:t,ease:n}).start()},t.prototype.update=function(){var e=this.props,t=e.from,n=e.to,i=this.fader.get(),r=t.get(),s=n.get();return(0,o.getValueFromProgress)(r,s,i)},t}(i.default);c.defaultProps={ease:s.linear},t.default=function(e){return new c(e)}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=n(15),s=(i=r)&&i.__esModule?i:{default:i},o=n(14),a=n(23);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),u(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.update=function(){var e=this.props,t=e.autoStopSpeed,n=e.acceleration,i=e.friction,r=e.velocity,s=e.spring,l=e.to,u=r,c=(0,o.timeSinceLastFrame)();(n&&(u+=(0,a.speedPerFrame)(n,c)),i&&(u*=Math.pow(1-i,c/100)),s&&void 0!==l)&&(u+=(l-this.current)*(0,a.speedPerFrame)(s,c));return this.current+=(0,a.speedPerFrame)(u,c),this.props.velocity=u,this.isComplete=!1!==t&&(!u||Math.abs(u)<=t),this.isComplete&&s&&(this.current=l),this.current},t.prototype.isActionComplete=function(){return this.isComplete},t}(s.default);c.defaultProps={acceleration:0,friction:0,velocity:0,autoStopSpeed:.001},t.default=function(e){return new c(e)}},function(e,t,n){"use strict";t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=o(n(52)),s=o(n(50));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=e.x,o=e.y,a=t.eventToPoints,l=t.moveEvent,u=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["eventToPoints","moveEvent"]),c=(0,s.default)({x:(0,r.default)(n),y:(0,r.default)(o)},i({preventDefault:!0},u)),h=function(e){c.getProp("preventDefault")&&e.preventDefault();var t=a(e);c.x.set(t.x),c.y.set(t.y)};return c.setProps({_onStart:function(){return document.documentElement.addEventListener(l,h,{passive:!c.getProp("preventDefault")})},_onStop:function(){return document.documentElement.removeEventListener(l,h)}}),c}var l=function(e){return{x:e.clientX,y:e.clientY}},u=function(e){var t=e.changedTouches;return{x:t[0].clientX,y:t[0].clientY}};t.default=function(e,t){return function(e){return e.originalEvent||e.nativeEvent||e}(e).touches?a(u(e),i({moveEvent:"touchmove",eventToPoints:u},t)):a(l(e),i({moveEvent:"mousemove",eventToPoints:l},t))}},function(e,t,n){"use strict";t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=a(n(52)),s=a(n(50)),o=a(n(51));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=t.eventToTouches,a=t.moveEvent,l=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["eventToTouches","moveEvent"]),u=(0,o.default)(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],o=i.x,a=i.y;t[n]=(0,s.default)({x:(0,r.default)(o),y:(0,r.default)(a)})}return t}(e),i({preventDefault:!0},l));function c(e){l.preventDefault&&e.preventDefault();var t=n(e);!function(e,t){for(var n=0;n<t.length;n++){var i=t[n],o=i.x,a=i.y,l=e.getChildren()[n];void 0!==l?(l.x.set(o),l.y.set(a)):e.addAction((0,s.default)({x:(0,r.default)(o),y:(0,r.default)(a)}))}}(u,t)}return u.setProps({_onStart:function(){return document.documentElement.addEventListener(a,c)},_onStop:function(){return document.documentElement.removeEventListener(a,c)}}),u}var u=function(e){return[{x:e.pageX,y:e.pageY}]},c=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=i.clientX,s=i.clientY;t[n]={x:r,y:s}}return t}(e.touches)};t.default=function(e,t){return function(e){return e.originalEvent||e.nativeEvent||e}(e).touches?l(c(e),i({moveEvent:"touchmove",eventToTouches:c},t)):l(u(e),i({moveEvent:"mousemove",eventToTouches:u},t))}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=n(15),o=(i=s)&&i.__esModule?i:{default:i},a=n(24);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),u(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onStart=function(){var e=this.props.action;this.applyOffset=(0,a.applyOffset)(e.get(),this.current)},t.prototype.update=function(){var e=this.props.action;return this.applyOffset(e.get())},t}(o.default);t.default=function(e,t){return new c(r({action:e},t))}},function(e,t,n){"use strict";t.__esModule=!0;var i=a(n(107)),r=a(n(51)),s=a(n(108)),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){var a=(0,o.isFunc)(t);return(0,r.default)(e.map((function(e,n){var r=a?t(n):n*t;return(0,i.default)([(0,s.default)(r),e])})),{onComplete:n})}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=n(15),s=(i=r)&&i.__esModule?i:{default:i},o=n(14);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return a(this,t),l(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onStart=function(){var e=this.props,t=e.velocity,n=e.to,i=e.from;this.t=0,this.initialVelocity=t?t/1e3:0,this.isComplete=!1,this.delta=n-i},t.prototype.update=function(){var e=this.props,t=e.stiffness,n=e.damping,i=e.mass,r=e.from,s=e.to,a=e.restSpeed,l=e.restDisplacement,u=this.delta,c=this.initialVelocity,h=(0,o.timeSinceLastFrame)()/1e3,p=this.t=this.t+h,d=n/(2*Math.sqrt(t*i)),f=Math.sqrt(t/i),g=f*Math.sqrt(1-d*d),m=0;if(d<1){var v=Math.exp(-d*f*p);m=v*((c+d*f*1)/g*Math.sin(g*p)+1*Math.cos(g*p)),this.velocity=v*(Math.cos(g*p)*(c+d*f*1)-1*g*Math.sin(g*p))-d*f*v*(Math.sin(g*p)*(c+d*f*1)/g+1*Math.cos(g*p))}else{var y=Math.exp(-f*p);m=y*(1+(c+1*f)*p),this.velocity=y*(p*c*f-1*p*(f*f)+c)}var b=r+(1-m)*u,w=Math.abs(this.velocity)<=a,x=Math.abs(s-b)<=l;return this.isComplete=w&&x,this.isComplete&&(b=s),b},t.prototype.isActionComplete=function(){return this.isComplete},t}(s.default);u.defaultProps={stiffness:100,damping:10,mass:1,velocity:0,from:0,to:0,restSpeed:.01,restDisplacement:.01},t.default=function(e){return new u(e)}},function(e,t,n){"use strict";t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.default=function(e,t){return new p(i({element:e,enableHardwareAcceleration:!0},t))};var r=u(n(35)),s=u(n(158)),o=u(n(36)),a=u(n(109)),l=u(n(110));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){return c(this,t),h(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onRender=function(){var e=this.props,t=e.element,n=e.enableHardwareAcceleration;(0,s.default)(t,this.state,this.changedValues,n)},t.prototype.onRead=function(e){var t=a.default[e];if(o.default[e])return t&&t.default||0;var n=this.props.element,i=window.getComputedStyle(n,null)[(0,l.default)(e)]||0;return t&&t.parse?t.parse(i):i},t}(r.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,a){for(var l="",u="",c=!1,h=!1,p=n.length,d=0;d<p;d++){var f=n[d];if(i.default[f]){for(var g in c=!0,t)i.default[g]&&-1===n.indexOf(g)&&n.push(g);break}}n.sort(C);for(var m=n.length,v=0;v<m;v++){var y=n[v],b=t[y];w[y]&&(y=w[y]),r.default[y]&&((0,o.isNum)(b)||(0,o.isObj)(b))&&r.default[y].transform&&(b=r.default[y].transform(b)),i.default[y]?(u+=y+"("+b+") ",h=y===w.z||h):l+=";"+(0,s.default)(y,!0)+":"+b}c&&(!h&&a&&(u+=w.z+"(0)"),l+=";"+(0,s.default)("transform",!0)+":"+u);e.style.cssText+=l};var i=a(n(36)),r=a(n(109)),s=a(n(110)),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}var l=i.default.translate,u=i.default.translateX,c=i.default.translateY,h=i.default.translateZ,p=i.default.scale,d=i.default.scaleX,f=i.default.scaleY,g=i.default.scaleZ,m=i.default.rotate,v=i.default.rotateX,y=i.default.rotateY,b=i.default.rotateZ,w={x:"translateX",y:"translateY",z:"translateZ"},x=[l,u,c,h,p,d,f,g,m,v,y,b];function C(e,t){return x.indexOf(e)-x.indexOf(t)}},function(e,t,n){"use strict";t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.default=function(e,t){return new c(i({element:e},t))};var r=u(n(35)),s=u(n(160)),o=u(n(36)),a=u(n(161)),l=n(11);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n)),r=n.element.getBBox(),s=r.x,o=r.y,a=r.width,l=r.height;return i.elementDimensions={x:s,y:o,width:a,height:l},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onRender=function(){var e=this.props.element,t=(0,s.default)(this.state,this.elementDimensions);(0,l.setDOMAttrs)(e,t)},t.prototype.onRead=function(e){var t=this.props.element;if(o.default[e]){var n=a.default[e];return n?n.default:0}return t.getAttribute(e)},t}(r.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=!1,i={},s=void 0!==e.scale?e.scale||1e-4:e.scaleX||1,a=void 0!==e.scaleY?e.scaleY||1e-4:s||1,l=t.width*((e.originX||50)/100)+t.x,u=t.height*((e.originY||50)/100)+t.y,c=1*s*-l,h=1*a*-u,p=l/s,d=u/a,f={translate:"translate("+e.translateX+", "+e.translateY+") ",scale:"translate("+c+", "+h+") scale("+s+", "+a+") translate("+p+", "+d+") ",rotate:"rotate("+e.rotate+", "+l+", "+u+") ",skewX:"skewX("+e.skewX+") ",skewY:"skewY("+e.skewY+") "};for(var g in e)e.hasOwnProperty(g)&&(o.default[g]?n=!0:i[(0,r.camelToDash)(g)]=e[g]);if(n)for(var m in i.transform="",f)if(f.hasOwnProperty(m)){var v="scale"===m?"1":"0";i.transform+=f[m].replace(/undefined/g,v)}return i};var i,r=n(11),s=n(36),o=(i=s)&&i.__esModule?i:{default:i}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(33);t.default={fill:i.color,stroke:i.color,scale:i.scale,scaleX:i.scale,scaleY:i.scale,opacity:i.alpha,fillOpacity:i.alpha,strokeOpacity:i.alpha}},function(e,t,n){"use strict";t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.default=function(e,t){return new l(i({element:e},t))};var r=a(n(35)),s=a(n(163)),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n)),r=n.element.getBBox(),s=r.x,o=r.y,a=r.width,l=r.height;return i.elementDimensions={x:s,y:o,width:a,height:l,pathLength:n.element.getTotalLength()},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onRender=function(){var e=this.elementDimensions.pathLength,t=this.props.element;(0,o.setDOMAttrs)(t,(0,s.default)(this.state,e))},t.prototype.onRead=function(e){return this.props.element.getAttribute(e)},t}(r.default)},function(e,t,n){"use strict";t.__esModule=!0;var i=function(e,t){return parseFloat(e)/100*t+"px"};t.default=function(e,t){var n={},r={length:"0",spacing:t+"px"},s=!1;for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];switch(o){case"length":case"spacing":s=!0,r[o]=i(a,t);break;case"offset":n["stroke-dashoffset"]=i(-a,t);break;default:n[o]=a}}return s&&(n["stroke-dasharray"]=r.length+" "+r.spacing),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return s.default[e]?"rgb("+s.default[e].join(",")+")":e};var i,r=n(165),s=(i=r)&&i.__esModule?i:{default:i}},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return s.prefix(e)};var i,r=n(167);var s=new((i=r)&&i.__esModule?i:{default:i}).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=m(n(168)),r=m(n(172)),s=m(n(173)),o=m(n(174)),a=m(n(175)),l=m(n(176)),u=m(n(177)),c=m(n(178)),h=m(n(179)),p=m(n(180)),d=m(n(181)),f=m(n(183)),g=m(n(197));function m(e){return e&&e.__esModule?e:{default:e}}var v=[s.default,r.default,o.default,l.default,u.default,c.default,h.default,p.default,d.default,a.default],y=(0,i.default)({prefixMap:g.default.prefixMap,plugins:v},f.default);t.default=y,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.default=function(e){var t=e.prefixMap,n=e.plugins,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e);var i="undefined"!=typeof navigator?navigator.userAgent:void 0;if(this._userAgent=n.userAgent||i,this._keepUnprefixed=n.keepUnprefixed||!1,this._userAgent&&(this._browserInfo=(0,r.default)(this._userAgent)),!this._browserInfo||!this._browserInfo.cssPrefix)return this._useFallback=!0,!1;this.prefixedKeyframes=(0,s.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);var o=this._browserInfo.browserName&&t[this._browserInfo.browserName];if(o){for(var a in this._requiresPrefix={},o)o[a]>=this._browserInfo.browserVersion&&(this._requiresPrefix[a]=!0);this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return i(e,[{key:"prefix",value:function(e){return this._useFallback?c(e):this._hasPropsRequiringPrefix?this._prefixStyle(e):e}},{key:"_prefixStyle",value:function(e){for(var t in e){var i=e[t];if((0,l.default)(i))e[t]=this.prefix(i);else if(Array.isArray(i)){for(var r=[],s=0,c=i.length;s<c;++s){var h=(0,u.default)(n,t,i[s],e,this._metaData);(0,a.default)(r,h||i[s])}r.length>0&&(e[t]=r)}else{var p=(0,u.default)(n,t,i,e,this._metaData);p&&(e[t]=p),this._requiresPrefix.hasOwnProperty(t)&&(e[this._browserInfo.jsPrefix+(0,o.default)(t)]=i,this._keepUnprefixed||delete e[t])}}return e}}],[{key:"prefixAll",value:function(e){return c(e)}}]),e}()};var r=c(n(169)),s=c(n(171)),o=c(n(54)),a=c(n(111)),l=c(n(112)),u=c(n(113));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=s.default._detect(e);t.yandexbrowser&&(t=s.default._detect(e.replace(/YaBrowser\/[0-9.]*/,"")));for(var n in o)if(t.hasOwnProperty(n)){var i=o[n];t.jsPrefix=i,t.cssPrefix="-"+i.toLowerCase()+"-";break}t.browserName=function(e){if(e.firefox)return"firefox";if(e.mobile||e.tablet){if(e.ios)return"ios_saf";if(e.android)return"android";if(e.opera)return"op_mini"}for(var t in a)if(e.hasOwnProperty(t))return a[t]}(t),t.version?t.browserVersion=parseFloat(t.version):t.browserVersion=parseInt(parseFloat(t.osversion),10);t.osVersion=parseFloat(t.osversion),"ios_saf"===t.browserName&&t.browserVersion>t.osVersion&&(t.browserVersion=t.osVersion);"android"===t.browserName&&t.chrome&&t.browserVersion>37&&(t.browserName="and_chr");"android"===t.browserName&&t.osVersion<5&&(t.browserVersion=t.osVersion);"android"===t.browserName&&t.samsungBrowser&&(t.browserName="and_chr",t.browserVersion=44);return t};var i,r=n(170),s=(i=r)&&i.__esModule?i:{default:i};var o={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},a={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};e.exports=t.default},function(e,t,n){var i;i=function(){var e=!0;function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function i(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var r,o=n(/(ipod|iphone|ipad)/i).toLowerCase(),a=!/like android/i.test(t)&&/android/i.test(t),l=/nexus\s*[0-6]\s*/i.test(t),u=!l&&/nexus\s*[0-9]+/i.test(t),c=/CrOS/.test(t),h=/silk/i.test(t),p=/sailfish/i.test(t),d=/tizen/i.test(t),f=/(web|hpw)(o|0)s/i.test(t),g=/windows phone/i.test(t),m=(/SamsungBrowser/i.test(t),!g&&/windows/i.test(t)),v=!o&&!h&&/macintosh/i.test(t),y=!a&&!p&&!d&&!f&&/linux/i.test(t),b=i(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),w=n(/version\/(\d+(\.\d+)?)/i),x=/tablet/i.test(t)&&!/tablet pc/i.test(t),C=!x&&/[^-]mobi/i.test(t),E=/xbox/i.test(t);/opera/i.test(t)?r={name:"Opera",opera:e,version:w||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?r={name:"Opera",opera:e,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||w}:/SamsungBrowser/i.test(t)?r={name:"Samsung Internet for Android",samsungBrowser:e,version:w||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?r={name:"NAVER Whale browser",whale:e,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?r={name:"MZ Browser",mzbrowser:e,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?r={name:"Opera Coast",coast:e,version:w||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?r={name:"Focus",focus:e,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?r={name:"Yandex Browser",yandexbrowser:e,version:w||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?r={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?r={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?r={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?r={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?r={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?r={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:g?(r={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},b?(r.msedge=e,r.version=b):(r.msie=e,r.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?r={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?r={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?r={name:"Microsoft Edge",msedge:e,version:b}:/vivaldi/i.test(t)?r={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||w}:p?r={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?r={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(r={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(r.firefoxos=e,r.osname="Firefox OS")):h?r={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?r={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?r={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?r={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:w||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(r={name:"WebOS",osname:"WebOS",webos:e,version:w||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(r.touchpad=e)):/bada/i.test(t)?r={name:"Bada",osname:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:d?r={name:"Tizen",osname:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||w}:/qupzilla/i.test(t)?r={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||w}:/chromium/i.test(t)?r={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||w}:/chrome|crios|crmo/i.test(t)?r={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?r={name:"Android",version:w}:/safari|applewebkit/i.test(t)?(r={name:"Safari",safari:e},w&&(r.version=w)):o?(r={name:"iphone"==o?"iPhone":"ipad"==o?"iPad":"iPod"},w&&(r.version=w)):r=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||w}:{name:n(/^(.*)\/(.*) /),version:i(/^(.*)\/(.*) /)},!r.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(r.name=r.name||"Blink",r.blink=e):(r.name=r.name||"Webkit",r.webkit=e),!r.version&&w&&(r.version=w)):!r.opera&&/gecko\//i.test(t)&&(r.name=r.name||"Gecko",r.gecko=e,r.version=r.version||n(/gecko\/(\d+(\.\d+)?)/i)),r.windowsphone||!a&&!r.silk?!r.windowsphone&&o?(r[o]=e,r.ios=e,r.osname="iOS"):v?(r.mac=e,r.osname="macOS"):E?(r.xbox=e,r.osname="Xbox"):m?(r.windows=e,r.osname="Windows"):y&&(r.linux=e,r.osname="Linux"):(r.android=e,r.osname="Android");var A="";r.windows?A=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):r.windowsphone?A=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):r.mac?A=(A=n(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):o?A=(A=n(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):a?A=n(/android[ \/-](\d+(\.\d+)*)/i):r.webos?A=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?A=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?A=n(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(A=n(/tizen[\/\s](\d+(\.\d+)*)/i)),A&&(r.osversion=A);var S=!r.windows&&A.split(".")[0];return x||u||"ipad"==o||a&&(3==S||S>=4&&!C)||r.silk?r.tablet=e:(C||"iphone"==o||"ipod"==o||a||l||r.blackberry||r.webos||r.bada)&&(r.mobile=e),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.samsungBrowser&&r.version>=4||r.whale&&1===s([r.version,"1.0"])||r.mzbrowser&&1===s([r.version,"6.0"])||r.focus&&1===s([r.version,"1.0"])||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(".")[0]>=6||r.blackberry&&r.version>=10.1||r.chromium&&r.version>=20?r.a=e:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(".")[0]<6||r.chromium&&r.version<20?r.c=e:r.x=e,r}var n=t("undefined"!=typeof navigator&&navigator.userAgent||"");function i(e){return e.split(".").length}function r(e,t){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n++)i.push(t(e[n]));return i}function s(e){for(var t=Math.max(i(e[0]),i(e[1])),n=r(e,(function(e){var n=t-i(e);return r((e+=new Array(n+1).join(".0")).split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));--t>=0;){if(n[0][t]>n[1][t])return 1;if(n[0][t]!==n[1][t])return-1;if(0===t)return 0}}function o(e,i,r){var o=n;"string"==typeof i&&(r=i,i=void 0),void 0===i&&(i=!1),r&&(o=t(r));var a=""+o.version;for(var l in e)if(e.hasOwnProperty(l)&&o[l]){if("string"!=typeof e[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(e));return s([a,e[l]])<0}return i}return n.test=function(e){for(var t=0;t<e.length;++t){var i=e[t];if("string"==typeof i&&i in n)return!0}return!1},n.isUnsupportedBrowser=o,n.compareVersions=s,n.check=function(e,t,n){return!o(e,t,n)},n._detect=t,n.detect=t,n},e.exports?e.exports=i():n(53)("bowser",i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("chrome"===e&&t<43||("safari"===e||"ios_saf"===e)&&t<9||"opera"===e&&t<30||"android"===e&&t<=4.4||"and_uc"===e)return n+"keyframes";return"keyframes"},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.browserName,l=i.browserVersion,u=i.cssPrefix,c=i.keepUnprefixed;if("cursor"===e&&o[t]&&("firefox"===r||"chrome"===r||"safari"===r||"opera"===r))return(0,s.default)(u+t,t,c);if("cursor"===e&&a[t]&&("firefox"===r&&l<24||"chrome"===r&&l<37||"safari"===r&&l<9||"opera"===r&&l<24))return(0,s.default)(u+t,t,c)};var i,r=n(17),s=(i=r)&&i.__esModule?i:{default:i};var o={grab:!0,grabbing:!0},a={"zoom-in":!0,"zoom-out":!0};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.browserName,o=i.browserVersion,a=i.cssPrefix,l=i.keepUnprefixed;if("string"==typeof t&&t.indexOf("cross-fade(")>-1&&("chrome"===r||"opera"===r||"and_chr"===r||("ios_saf"===r||"safari"===r)&&o<10))return(0,s.default)(t.replace(/cross-fade\(/g,a+"cross-fade("),t,l)};var i,r=n(17),s=(i=r)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.browserName,o=i.browserVersion,a=i.cssPrefix,l=i.keepUnprefixed;if("string"==typeof t&&t.indexOf("filter(")>-1&&("ios_saf"===r||"safari"===r&&o<9.1))return(0,s.default)(t.replace(/filter\(/g,a+"filter("),t,l)};var i,r=n(17),s=(i=r)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.browserName,a=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if("display"===e&&o[t]&&("chrome"===r&&a<29&&a>20||("safari"===r||"ios_saf"===r)&&a<9&&a>6||"opera"===r&&(15===a||16===a)))return(0,s.default)(l+t,t,u)};var i,r=n(17),s=(i=r)&&i.__esModule?i:{default:i};var o={flex:!0,"inline-flex":!0};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.browserName,u=i.browserVersion,c=i.cssPrefix,h=i.keepUnprefixed,p=i.requiresPrefix;if((l.indexOf(e)>-1||"display"===e&&"string"==typeof t&&t.indexOf("flex")>-1)&&("firefox"===r&&u<22||"chrome"===r&&u<21||("safari"===r||"ios_saf"===r)&&u<=6.1||"android"===r&&u<4.4||"and_uc"===r)){if(delete p[e],h||Array.isArray(n[e])||delete n[e],"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal"),"display"===e&&o.hasOwnProperty(t))return(0,s.default)(c+o[t],t,h);a.hasOwnProperty(e)&&(n[a[e]]=o[t]||t)}};var i,r=n(17),s=(i=r)&&i.__esModule?i:{default:i};var o={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},a={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"},l=Object.keys(a).concat(["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"]);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.browserName,a=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if("string"==typeof t&&o.test(t)&&("firefox"===r&&a<16||"chrome"===r&&a<26||("safari"===r||"ios_saf"===r)&&a<7||("opera"===r||"op_mini"===r)&&a<12.1||"android"===r&&a<4.4||"and_uc"===r))return(0,s.default)(l+t,t,u)};var i,r=n(17),s=(i=r)&&i.__esModule?i:{default:i};var o=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.browserName,o=i.cssPrefix,a=i.keepUnprefixed;if("string"==typeof t&&t.indexOf("image-set(")>-1&&("chrome"===r||"opera"===r||"and_chr"===r||"and_uc"===r||"ios_saf"===r||"safari"===r))return(0,s.default)(t.replace(/image-set\(/g,o+"image-set("),t,a)};var i,r=n(17),s=(i=r)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.browserName,o=i.cssPrefix,a=i.keepUnprefixed;if("position"===e&&"sticky"===t&&("safari"===r||"ios_saf"===r))return(0,s.default)(o+t,t,a)};var i,r=n(17),s=(i=r)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.cssPrefix,l=i.keepUnprefixed;if(o.hasOwnProperty(e)&&a.hasOwnProperty(t))return(0,s.default)(r+t,t,l)};var i,r=n(17),s=(i=r)&&i.__esModule?i:{default:i};var o={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},a={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var r=i.cssPrefix,l=i.keepUnprefixed,u=i.requiresPrefix;if("string"==typeof t&&o.hasOwnProperty(e)){a||(a=Object.keys(u).map((function(e){return(0,s.default)(e)})));var c=t.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return a.forEach((function(e){c.forEach((function(t,n){t.indexOf(e)>-1&&"order"!==e&&(c[n]=t.replace(e,r+e)+(l?","+t:""))}))})),c.join(",")}};var i,r=n(114),s=(i=r)&&i.__esModule?i:{default:i};var o={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},a=void 0;e.exports=t.default},function(e,t,n){"use strict";n.r(t);var i=/[A-Z]/g,r=/^ms-/,s={};function o(e){return"-"+e.toLowerCase()}t.default=function(e){if(s.hasOwnProperty(e))return s[e];var t=e.replace(i,o);return s[e]=r.test(t)?"-"+t:t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=g(n(184)),r=g(n(186)),s=g(n(187)),o=g(n(188)),a=g(n(189)),l=g(n(190)),u=g(n(191)),c=g(n(192)),h=g(n(193)),p=g(n(194)),d=g(n(195)),f=g(n(196));function g(e){return e&&e.__esModule?e:{default:e}}var m=[o.default,s.default,a.default,u.default,c.default,h.default,p.default,d.default,f.default,l.default];t.default=(0,i.default)({prefixMap:r.default.prefixMap,plugins:m}),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prefixMap,n=e.plugins;return function e(a){for(var l in a){var u=a[l];if((0,o.default)(u))a[l]=e(u);else if(Array.isArray(u)){for(var c=[],h=0,p=u.length;h<p;++h){var d=(0,r.default)(n,l,u[h],a,t);(0,s.default)(c,d||u[h])}c.length>0&&(a[l]=c)}else{var f=(0,r.default)(n,l,u,a,t);f&&(a[l]=f),(0,i.default)(t,l,a)}}return a}};var i=a(n(185)),r=a(n(113)),s=a(n(111)),o=a(n(112));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(e.hasOwnProperty(t))for(var i=e[t],r=0,o=i.length;r<o;++r)n[i[r]+(0,s.default)(t)]=n[t]};var i,r=n(54),s=(i=r)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["Webkit"],r=["Moz"],s=["ms"],o=["Webkit","Moz"],a=["Webkit","ms"],l=["Webkit","Moz","ms"];t.default={plugins:[],prefixMap:{appearance:o,userSelect:l,textEmphasisPosition:i,textEmphasis:i,textEmphasisStyle:i,textEmphasisColor:i,boxDecorationBreak:i,clipPath:i,maskImage:i,maskMode:i,maskRepeat:i,maskPosition:i,maskClip:i,maskOrigin:i,maskSize:i,maskComposite:i,mask:i,maskBorderSource:i,maskBorderMode:i,maskBorderSlice:i,maskBorderWidth:i,maskBorderOutset:i,maskBorderRepeat:i,maskBorder:i,maskType:i,textDecorationStyle:i,textDecorationSkip:i,textDecorationLine:i,textDecorationColor:i,filter:i,fontFeatureSettings:i,breakAfter:l,breakBefore:l,breakInside:l,columnCount:o,columnFill:o,columnGap:o,columnRule:o,columnRuleColor:o,columnRuleStyle:o,columnRuleWidth:o,columns:o,columnSpan:o,columnWidth:o,writingMode:a,flex:i,flexBasis:i,flexDirection:i,flexGrow:i,flexFlow:i,flexShrink:i,flexWrap:i,alignContent:i,alignItems:i,alignSelf:i,justifyContent:i,order:i,transform:i,transformOrigin:i,transformOriginX:i,transformOriginY:i,backfaceVisibility:i,perspective:i,perspectiveOrigin:i,transformStyle:i,transformOriginZ:i,animation:i,animationDelay:i,animationDirection:i,animationFillMode:i,animationDuration:i,animationIterationCount:i,animationName:i,animationPlayState:i,animationTimingFunction:i,backdropFilter:i,fontKerning:i,scrollSnapType:a,scrollSnapPointsX:a,scrollSnapPointsY:a,scrollSnapDestination:a,scrollSnapCoordinate:a,shapeImageThreshold:i,shapeImageMargin:i,shapeImageOutside:i,hyphens:l,flowInto:a,flowFrom:a,regionFragment:a,textAlignLast:r,tabSize:r,wrapFlow:s,wrapThrough:s,wrapMargin:s,gridTemplateColumns:s,gridTemplateRows:s,gridTemplateAreas:s,gridTemplate:s,gridAutoColumns:s,gridAutoRows:s,gridAutoFlow:s,grid:s,gridRowStart:s,gridColumnStart:s,gridRowEnd:s,gridRow:s,gridColumn:s,gridColumnEnd:s,gridColumnGap:s,gridRowGap:s,gridArea:s,gridGap:s,textSizeAdjust:a,borderImage:i,borderImageOutset:i,borderImageRepeat:i,borderImageSlice:i,borderImageSource:i,borderImageWidth:i,transitionDelay:i,transitionDuration:i,transitionProperty:i,transitionTimingFunction:i}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return i.map((function(e){return e+t}))};var i=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,s.default)(t)&&t.indexOf("cross-fade(")>-1)return o.map((function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")}))};var i,r=n(26),s=(i=r)&&i.__esModule?i:{default:i};var o=["-webkit-",""];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,s.default)(t)&&t.indexOf("filter(")>-1)return o.map((function(e){return t.replace(/filter\(/g,e+"filter(")}))};var i,r=n(26),s=(i=r)&&i.__esModule?i:{default:i};var o=["-webkit-",""];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("display"===e&&i.hasOwnProperty(t))return i[t]};var i={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal");r.hasOwnProperty(e)&&(n[r[e]]=i[t]||t)};var i={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},r={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,s.default)(t)&&a.test(t))return o.map((function(e){return e+t}))};var i,r=n(26),s=(i=r)&&i.__esModule?i:{default:i};var o=["-webkit-","-moz-",""],a=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,s.default)(t)&&t.indexOf("image-set(")>-1)return o.map((function(e){return t.replace(/image-set\(/g,e+"image-set(")}))};var i,r=n(26),s=(i=r)&&i.__esModule?i:{default:i};var o=["-webkit-",""];e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(r.hasOwnProperty(e)&&s.hasOwnProperty(t))return i.map((function(e){return e+t}))};var i=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},s={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){if("string"==typeof t&&a.hasOwnProperty(e)){var u=function(e,t){if((0,r.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),s=0,o=n.length;s<o;++s){var a=n[s],u=[a];for(var c in t){var h=(0,i.default)(c);if(a.indexOf(h)>-1&&"order"!==h)for(var p=t[c],d=0,f=p.length;d<f;++d)u.unshift(a.replace(h,l[p[d]]+h))}n[s]=u.join(",")}return n.join(",")}(t,o),c=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(e){return!/-moz-|-ms-/.test(e)})).join(",");if(e.indexOf("Webkit")>-1)return c;var h=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(e){return!/-webkit-|-ms-/.test(e)})).join(",");return e.indexOf("Moz")>-1?h:(n["Webkit"+(0,s.default)(e)]=c,n["Moz"+(0,s.default)(e)]=h,u)}};var i=o(n(114)),r=o(n(26)),s=o(n(54));function o(e){return e&&e.__esModule?e:{default:e}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},l={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={plugins:[],prefixMap:{chrome:{appearance:64,userSelect:53,textEmphasisPosition:64,textEmphasis:64,textEmphasisStyle:64,textEmphasisColor:64,boxDecorationBreak:64,clipPath:54,maskImage:64,maskMode:64,maskRepeat:64,maskPosition:64,maskClip:64,maskOrigin:64,maskSize:64,maskComposite:64,mask:64,maskBorderSource:64,maskBorderMode:64,maskBorderSlice:64,maskBorderWidth:64,maskBorderOutset:64,maskBorderRepeat:64,maskBorder:64,maskType:64,textDecorationStyle:56,textDecorationSkip:56,textDecorationLine:56,textDecorationColor:56,filter:52,fontFeatureSettings:47,breakAfter:49,breakBefore:49,breakInside:49,columnCount:49,columnFill:49,columnGap:49,columnRule:49,columnRuleColor:49,columnRuleStyle:49,columnRuleWidth:49,columns:49,columnSpan:49,columnWidth:49,writingMode:47},safari:{flex:8,flexBasis:8,flexDirection:8,flexGrow:8,flexFlow:8,flexShrink:8,flexWrap:8,alignContent:8,alignItems:8,alignSelf:8,justifyContent:8,order:8,transform:8,transformOrigin:8,transformOriginX:8,transformOriginY:8,backfaceVisibility:8,perspective:8,perspectiveOrigin:8,transformStyle:8,transformOriginZ:8,animation:8,animationDelay:8,animationDirection:8,animationFillMode:8,animationDuration:8,animationIterationCount:8,animationName:8,animationPlayState:8,animationTimingFunction:8,appearance:11,userSelect:11,backdropFilter:11,fontKerning:9,scrollSnapType:10.1,scrollSnapPointsX:10.1,scrollSnapPointsY:10.1,scrollSnapDestination:10.1,scrollSnapCoordinate:10.1,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8,breakAfter:8,breakInside:8,regionFragment:11,columnCount:8,columnFill:8,columnGap:8,columnRule:8,columnRuleColor:8,columnRuleStyle:8,columnRuleWidth:8,columns:8,columnSpan:8,columnWidth:8,writingMode:11},firefox:{appearance:58,userSelect:58,textAlignLast:48,tabSize:58,hyphens:42,breakAfter:51,breakBefore:51,breakInside:51,columnCount:51,columnFill:51,columnGap:51,columnRule:51,columnRuleColor:51,columnRuleStyle:51,columnRuleWidth:51,columns:51,columnSpan:51,columnWidth:51},opera:{flex:16,flexBasis:16,flexDirection:16,flexGrow:16,flexFlow:16,flexShrink:16,flexWrap:16,alignContent:16,alignItems:16,alignSelf:16,justifyContent:16,order:16,transform:22,transformOrigin:22,transformOriginX:22,transformOriginY:22,backfaceVisibility:22,perspective:22,perspectiveOrigin:22,transformStyle:22,transformOriginZ:22,animation:29,animationDelay:29,animationDirection:29,animationFillMode:29,animationDuration:29,animationIterationCount:29,animationName:29,animationPlayState:29,animationTimingFunction:29,appearance:49,userSelect:40,fontKerning:19,textEmphasisPosition:49,textEmphasis:49,textEmphasisStyle:49,textEmphasisColor:49,boxDecorationBreak:49,clipPath:41,maskImage:49,maskMode:49,maskRepeat:49,maskPosition:49,maskClip:49,maskOrigin:49,maskSize:49,maskComposite:49,mask:49,maskBorderSource:49,maskBorderMode:49,maskBorderSlice:49,maskBorderWidth:49,maskBorderOutset:49,maskBorderRepeat:49,maskBorder:49,maskType:49,textDecorationStyle:43,textDecorationSkip:43,textDecorationLine:43,textDecorationColor:43,filter:39,fontFeatureSettings:34,breakAfter:36,breakBefore:36,breakInside:36,columnCount:36,columnFill:36,columnGap:36,columnRule:36,columnRuleColor:36,columnRuleStyle:36,columnRuleWidth:36,columns:36,columnSpan:36,columnWidth:36,writingMode:34},ie:{userSelect:11,wrapFlow:11,wrapThrough:11,wrapMargin:11,scrollSnapType:11,scrollSnapPointsX:11,scrollSnapPointsY:11,scrollSnapDestination:11,scrollSnapCoordinate:11,hyphens:11,flowInto:11,flowFrom:11,breakBefore:11,breakAfter:11,breakInside:11,regionFragment:11,gridTemplateColumns:11,gridTemplateRows:11,gridTemplateAreas:11,gridTemplate:11,gridAutoColumns:11,gridAutoRows:11,gridAutoFlow:11,grid:11,gridRowStart:11,gridColumnStart:11,gridRowEnd:11,gridRow:11,gridColumn:11,gridColumnEnd:11,gridColumnGap:11,gridRowGap:11,gridArea:11,gridGap:11,textSizeAdjust:11,writingMode:11},edge:{userSelect:16,wrapFlow:16,wrapThrough:16,wrapMargin:16,scrollSnapType:16,scrollSnapPointsX:16,scrollSnapPointsY:16,scrollSnapDestination:16,scrollSnapCoordinate:16,hyphens:16,flowInto:16,flowFrom:16,breakBefore:16,breakAfter:16,breakInside:16,regionFragment:16,gridTemplateColumns:15,gridTemplateRows:15,gridTemplateAreas:15,gridTemplate:15,gridAutoColumns:15,gridAutoRows:15,gridAutoFlow:15,grid:15,gridRowStart:15,gridColumnStart:15,gridRowEnd:15,gridRow:15,gridColumn:15,gridColumnEnd:15,gridColumnGap:15,gridRowGap:15,gridArea:15,gridGap:15},ios_saf:{flex:8.1,flexBasis:8.1,flexDirection:8.1,flexGrow:8.1,flexFlow:8.1,flexShrink:8.1,flexWrap:8.1,alignContent:8.1,alignItems:8.1,alignSelf:8.1,justifyContent:8.1,order:8.1,transform:8.1,transformOrigin:8.1,transformOriginX:8.1,transformOriginY:8.1,backfaceVisibility:8.1,perspective:8.1,perspectiveOrigin:8.1,transformStyle:8.1,transformOriginZ:8.1,animation:8.1,animationDelay:8.1,animationDirection:8.1,animationFillMode:8.1,animationDuration:8.1,animationIterationCount:8.1,animationName:8.1,animationPlayState:8.1,animationTimingFunction:8.1,appearance:11,userSelect:11,backdropFilter:11,fontKerning:11,scrollSnapType:11,scrollSnapPointsX:11,scrollSnapPointsY:11,scrollSnapDestination:11,scrollSnapCoordinate:11,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textSizeAdjust:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8.1,breakAfter:8.1,breakInside:8.1,regionFragment:11,columnCount:8.1,columnFill:8.1,columnGap:8.1,columnRule:8.1,columnRuleColor:8.1,columnRuleStyle:8.1,columnRuleWidth:8.1,columns:8.1,columnSpan:8.1,columnWidth:8.1,writingMode:11},android:{borderImage:4.2,borderImageOutset:4.2,borderImageRepeat:4.2,borderImageSlice:4.2,borderImageSource:4.2,borderImageWidth:4.2,flex:4.2,flexBasis:4.2,flexDirection:4.2,flexGrow:4.2,flexFlow:4.2,flexShrink:4.2,flexWrap:4.2,alignContent:4.2,alignItems:4.2,alignSelf:4.2,justifyContent:4.2,order:4.2,transition:4.2,transitionDelay:4.2,transitionDuration:4.2,transitionProperty:4.2,transitionTimingFunction:4.2,transform:4.4,transformOrigin:4.4,transformOriginX:4.4,transformOriginY:4.4,backfaceVisibility:4.4,perspective:4.4,perspectiveOrigin:4.4,transformStyle:4.4,transformOriginZ:4.4,animation:4.4,animationDelay:4.4,animationDirection:4.4,animationFillMode:4.4,animationDuration:4.4,animationIterationCount:4.4,animationName:4.4,animationPlayState:4.4,animationTimingFunction:4.4,appearance:56,userSelect:4.4,fontKerning:4.4,textEmphasisPosition:56,textEmphasis:56,textEmphasisStyle:56,textEmphasisColor:56,boxDecorationBreak:56,clipPath:4.4,maskImage:56,maskMode:56,maskRepeat:56,maskPosition:56,maskClip:56,maskOrigin:56,maskSize:56,maskComposite:56,mask:56,maskBorderSource:56,maskBorderMode:56,maskBorderSlice:56,maskBorderWidth:56,maskBorderOutset:56,maskBorderRepeat:56,maskBorder:56,maskType:56,filter:4.4,fontFeatureSettings:4.4,breakAfter:4.4,breakBefore:4.4,breakInside:4.4,columnCount:4.4,columnFill:4.4,columnGap:4.4,columnRule:4.4,columnRuleColor:4.4,columnRuleStyle:4.4,columnRuleWidth:4.4,columns:4.4,columnSpan:4.4,columnWidth:4.4,writingMode:4.4},and_chr:{appearance:61,textEmphasisPosition:61,textEmphasis:61,textEmphasisStyle:61,textEmphasisColor:61,boxDecorationBreak:61,maskImage:61,maskMode:61,maskRepeat:61,maskPosition:61,maskClip:61,maskOrigin:61,maskSize:61,maskComposite:61,mask:61,maskBorderSource:61,maskBorderMode:61,maskBorderSlice:61,maskBorderWidth:61,maskBorderOutset:61,maskBorderRepeat:61,maskBorder:61,maskType:61},and_uc:{flex:11.4,flexBasis:11.4,flexDirection:11.4,flexGrow:11.4,flexFlow:11.4,flexShrink:11.4,flexWrap:11.4,alignContent:11.4,alignItems:11.4,alignSelf:11.4,justifyContent:11.4,order:11.4,transform:11.4,transformOrigin:11.4,transformOriginX:11.4,transformOriginY:11.4,backfaceVisibility:11.4,perspective:11.4,perspectiveOrigin:11.4,transformStyle:11.4,transformOriginZ:11.4,animation:11.4,animationDelay:11.4,animationDirection:11.4,animationFillMode:11.4,animationDuration:11.4,animationIterationCount:11.4,animationName:11.4,animationPlayState:11.4,animationTimingFunction:11.4,appearance:11.4,userSelect:11.4,textEmphasisPosition:11.4,textEmphasis:11.4,textEmphasisStyle:11.4,textEmphasisColor:11.4,clipPath:11.4,maskImage:11.4,maskMode:11.4,maskRepeat:11.4,maskPosition:11.4,maskClip:11.4,maskOrigin:11.4,maskSize:11.4,maskComposite:11.4,mask:11.4,maskBorderSource:11.4,maskBorderMode:11.4,maskBorderSlice:11.4,maskBorderWidth:11.4,maskBorderOutset:11.4,maskBorderRepeat:11.4,maskBorder:11.4,maskType:11.4,textSizeAdjust:11.4,filter:11.4,hyphens:11.4,fontFeatureSettings:11.4,breakAfter:11.4,breakBefore:11.4,breakInside:11.4,columnCount:11.4,columnFill:11.4,columnGap:11.4,columnRule:11.4,columnRuleColor:11.4,columnRuleStyle:11.4,columnRuleWidth:11.4,columns:11.4,columnSpan:11.4,columnWidth:11.4,writingMode:11.4},op_mini:{}}},e.exports=t.default},function(e,t,n){"use strict";const i=n(115);e.exports=function(e,t,n){if("string"!=typeof e)throw new TypeError("Input code/text/html must be a string.");if(void 0!==t&&"object"!=typeof t)throw new TypeError("Parameter 'options' must be an object.");const r=e.length,s=t&&t.safe,o=t&&t.space,a=t&&t.trim,l=t&&t.tolerant,u=i.getEOL(e);let c,h=0,p="",d=!0,f="",g=[];if(!r)return e;if(n.parse?(c=i.isHtml(e),c||(g=i.parseRegEx(e,l))):c=n.html,t&&t.ignore){let n=t.ignore;if(n instanceof RegExp?n=[n]:n instanceof Array?(n=n.filter(e=>e instanceof RegExp),n.length||(n=null)):n=null,n){for(let t=0;t<n.length;t++){const i=n[t];let r;do{r=i.exec(e),r&&g.push({start:r.index,end:r.index+r[0].length-1})}while(r&&i.global)}g=g.sort((e,t)=>e.start-t.start)}}do{if(!c&&"/"===e[h]&&h<r-1&&(!h||"\\"!==e[h-1])){if("/"===e[h+1]){if(m()){f&&(p+=f,f=""),p+="/";continue}const t=e.indexOf(u,h+2);if(t<0)break;d?(f="",o?h=t-1:(h=t+u.length-1,v())):h=t-1;continue}if("*"===e[h+1]){if(m()){f&&(p+=f,f=""),p+="/";continue}const t=e.indexOf("*/",h+2),n=s&&h<r-2&&"!"===e[h+2];if(n&&(p+=t>=0?e.substr(h,t-h+2):e.substr(h,r-h)),t<0)break;const a=e.substr(h,t-h+2);if(h=t+1,d&&(f=""),!n){const t=a.split(u);if(o)for(let e=0;e<t.length-1;e++)p+=u;const n=e.indexOf(u,h+1);if(n>h){let r=n-1;for(;(" "===e[r]||"\t"===e[r])&&--r>h;);r===h?d&&!o&&(h=n+u.length-1,v()):o&&(p+=i.getSpaces(t[t.length-1].length))}else if(o){let n=h+1;for(;(" "===e[n]||"\t"===e[n])&&++n<r;);n<r&&(p+=i.getSpaces(t[t.length-1].length))}}continue}}if(c&&"<"===e[h]&&h<r-3&&"!--"===e.substr(h+1,3)){if(m()){f&&(p+=f,f=""),p+="<";continue}const t=e.indexOf("--\x3e",h+4),n=s&&"[if"===e.substr(h+4,3);if(n&&(p+=t>=0?e.substr(h,t-h+3):e.substr(h,r-h)),t<0)break;const a=e.substr(h,t-h+3);if(h=t+2,d&&(f=""),!n){const t=a.split(u);if(o)for(let e=0;e<t.length-1;e++)p+=u;const n=e.indexOf(u,h+1);if(n>h){let r=n-1;for(;(" "===e[r]||"\t"===e[r])&&--r>h;);r===h?d&&!o&&(h=n+u.length-1,v()):o&&(p+=i.getSpaces(t[t.length-1].length))}else if(o){let n=h+1;for(;(" "===e[n]||"\t"===e[n])&&++n<r;);n<r&&(p+=i.getSpaces(t[t.length-1].length))}}continue}const t=e[h],n=" "===t||"\t"===t;if("\r"===t||"\n"===t?e.indexOf(u,h)===h&&(d=!0):n||(d=!1,p+=f,f=""),d&&n?f+=t:p+=t,!(c||"'"!==t&&'"'!==t&&"`"!==t||h&&"\\"===e[h-1])){if(m())continue;let n=h;do{if(n=e.indexOf(t,n+1),n>0){let t=n;for(;"\\"===e[--t];);if((n-t)%2)break}}while(n>0);if(n<0)break;p+=e.substr(h+1,n-h),h=n}}while(++h<r);function m(){if(g.length)return i.indexInRegEx(h,g)}function v(){if(a){let t,n,i;do{for(t=h+1,n=e.indexOf(u,t),i=t;(" "===e[i]||"\t"===e[i])&&++i<n;);i===n&&(h=n+u.length-1)}while(i===n)}}return p}},function(e,t,n){var i;i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(3),s=n(8),o=n(15);function a(e,t,n){var o=null,a=function(e,t){n&&n(e,t),o&&o.visit(e,t)},l="function"==typeof n?a:null,u=!1;if(t){u="boolean"==typeof t.comment&&t.comment;var c="boolean"==typeof t.attachComment&&t.attachComment;(u||c)&&((o=new i.CommentHandler).attach=c,t.comment=!0,l=a)}var h,p=!1;t&&"string"==typeof t.sourceType&&(p="module"===t.sourceType),h=t&&"boolean"==typeof t.jsx&&t.jsx?new r.JSXParser(e,t,l):new s.Parser(e,t,l);var d=p?h.parseModule():h.parseScript();return u&&o&&(d.comments=o.comments),h.config.tokens&&(d.tokens=h.tokens),h.config.tolerant&&(d.errors=h.errorHandler.errors),d}t.parse=a,t.parseModule=function(e,t,n){var i=t||{};return i.sourceType="module",a(e,i,n)},t.parseScript=function(e,t,n){var i=t||{};return i.sourceType="script",a(e,i,n)},t.tokenize=function(e,t,n){var i,r=new o.Tokenizer(e,t);i=[];try{for(;;){var s=r.getNextToken();if(!s)break;n&&(s=n(s)),i.push(s)}}catch(e){r.errorHandler.tolerate(e)}return r.errorHandler.tolerant&&(i.errors=r.errors()),i};var l=n(2);t.Syntax=l.Syntax,t.version="4.0.1"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===i.Syntax.BlockStatement&&0===e.body.length){for(var n=[],r=this.leading.length-1;r>=0;--r){var s=this.leading[r];t.end.offset>=s.start&&(n.unshift(s.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var i=this.trailing[n];i.start>=e.end.offset&&t.unshift(i.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var s=r.node.trailingComments[0];s&&s.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&((s=this.stack[this.stack.length-1])&&s.start>=e.start.offset);)t=s.node,this.stack.pop();if(t){for(var i=(t.leadingComments?t.leadingComments.length:0)-1;i>=0;--i){var r=t.leadingComments[i];r.range[1]<=e.start.offset&&(n.unshift(r),t.leadingComments.splice(i,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(i=this.leading.length-1;i>=0;--i){var s;(s=this.leading[i]).start<=e.start.offset&&(n.unshift(s.comment),this.leading.splice(i,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===i.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",i={type:n,value:e.value};if(e.range&&(i.range=e.range),e.loc&&(i.loc=e.loc),this.comments.push(i),this.attach){var r={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=n,this.leading.push(r),this.trailing.push(r)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(4),o=n(5),a=n(6),l=n(7),u=n(8),c=n(13),h=n(14);function p(e){var t;switch(e.type){case a.JSXSyntax.JSXIdentifier:t=e.name;break;case a.JSXSyntax.JSXNamespacedName:var n=e;t=p(n.namespace)+":"+p(n.name);break;case a.JSXSyntax.JSXMemberExpression:var i=e;t=p(i.object)+"."+p(i.property)}return t}c.TokenName[100]="JSXIdentifier",c.TokenName[101]="JSXText";var d=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return r(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,i=!1,r=!1,o=!1;!this.scanner.eof()&&n&&!i;){var a=this.scanner.source[this.scanner.index];if(a===e)break;if(i=";"===a,t+=a,++this.scanner.index,!i)switch(t.length){case 2:r="#"===a;break;case 3:r&&(n=(o="x"===a)||s.Character.isDecimalDigit(a.charCodeAt(0)),r=r&&!o);break;default:n=(n=n&&!(r&&!s.Character.isDecimalDigit(a.charCodeAt(0))))&&!(o&&!s.Character.isHexDigit(a.charCodeAt(0)))}}if(n&&i&&t.length>2){var l=t.substr(1,t.length-2);r&&l.length>1?t=String.fromCharCode(parseInt(l.substr(1),10)):o&&l.length>2?t=String.fromCharCode(parseInt("0"+l.substr(1),16)):r||o||!h.XHTMLEntities[l]||(t=h.XHTMLEntities[l])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:a=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],i="";!this.scanner.eof()&&(l=this.scanner.source[this.scanner.index++])!==n;)i+="&"===l?this.scanXHTMLEntity(n):l;return{type:8,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),o=this.scanner.source.charCodeAt(this.scanner.index+2),a=46===r&&46===o?"...":".";return t=this.scanner.index,this.scanner.index+=a.length,{type:7,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(s.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var l=this.scanner.source.charCodeAt(this.scanner.index);if(s.Character.isIdentifierPart(l)&&92!==l)++this.scanner.index;else{if(45!==l)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,s.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var i={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(i)),i},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new o.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var i=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXNamespacedName(n,i))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var s=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXMemberExpression(r,s))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var i=n;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new o.JSXNamespacedName(i,r))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new l.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new o.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new o.JSXOpeningElement(t,i,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new o.JSXClosingElement(t))}var n=this.parseJSXElementName(),i=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new o.JSXOpeningElement(n,r,i))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new o.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new o.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start<n.end){var i=this.getTokenRaw(n),r=this.finalize(t,new o.JSXText(n.value,i));e.push(r)}if("{"!==this.scanner.source[this.scanner.index])break;var s=this.parseJSXExpressionContainer();e.push(s)}return e},t.prototype.parseComplexJSXElement=function(e){for(var t=[];!this.scanner.eof();){e.children=e.children.concat(this.parseJSXChildren());var n=this.createJSXChildNode(),i=this.parseJSXBoundaryElement();if(i.type===a.JSXSyntax.JSXOpeningElement){var r=i;if(r.selfClosing){var s=this.finalize(n,new o.JSXElement(r,[],null));e.children.push(s)}else t.push(e),e={node:n,opening:r,closing:null,children:[]}}if(i.type===a.JSXSyntax.JSXClosingElement){e.closing=i;var l=p(e.opening.name);if(l!==p(e.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",l),!(t.length>0))break;s=this.finalize(e.node,new o.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(s),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],i=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:i,children:n});n=r.children,i=r.closing}return this.finalize(e,new o.JSXElement(t,n,i))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(u.Parser);t.JSXParser=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),r=function(e){this.type=i.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=r;var s=function(e,t,n){this.type=i.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXElement=s;var o=function(){this.type=i.JSXSyntax.JSXEmptyExpression};t.JSXEmptyExpression=o;var a=function(e){this.type=i.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXExpressionContainer=a;var l=function(e){this.type=i.JSXSyntax.JSXIdentifier,this.name=e};t.JSXIdentifier=l;var u=function(e,t){this.type=i.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXMemberExpression=u;var c=function(e,t){this.type=i.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=c;var h=function(e,t){this.type=i.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=h;var p=function(e,t,n){this.type=i.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXOpeningElement=p;var d=function(e){this.type=i.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=d;var f=function(e,t){this.type=i.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=f},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){this.type=i.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=r;var s=function(e){this.type=i.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=s;var o=function(e,t,n){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.ArrowFunctionExpression=o;var a=function(e,t,n){this.type=i.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentExpression=a;var l=function(e,t){this.type=i.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AssignmentPattern=l;var u=function(e,t,n){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncArrowFunctionExpression=u;var c=function(e,t,n){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=c;var h=function(e,t,n){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=h;var p=function(e){this.type=i.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=p;var d=function(e,t,n){var r="||"===e||"&&"===e;this.type=r?i.Syntax.LogicalExpression:i.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BinaryExpression=d;var f=function(e){this.type=i.Syntax.BlockStatement,this.body=e};t.BlockStatement=f;var g=function(e){this.type=i.Syntax.BreakStatement,this.label=e};t.BreakStatement=g;var m=function(e,t){this.type=i.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=m;var v=function(e,t){this.type=i.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=v;var y=function(e){this.type=i.Syntax.ClassBody,this.body=e};t.ClassBody=y;var b=function(e,t,n){this.type=i.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassDeclaration=b;var w=function(e,t,n){this.type=i.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=w;var x=function(e,t){this.type=i.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=x;var C=function(e,t,n){this.type=i.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ConditionalExpression=C;var E=function(e){this.type=i.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=E;var A=function(){this.type=i.Syntax.DebuggerStatement};t.DebuggerStatement=A;var S=function(e,t){this.type=i.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=S;var D=function(e,t){this.type=i.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=D;var k=function(){this.type=i.Syntax.EmptyStatement};t.EmptyStatement=k;var F=function(e){this.type=i.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=F;var _=function(e){this.type=i.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=_;var T=function(e,t,n){this.type=i.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportNamedDeclaration=T;var O=function(e,t){this.type=i.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=O;var P=function(e){this.type=i.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=P;var R=function(e,t,n){this.type=i.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForInStatement=R;var B=function(e,t,n){this.type=i.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForOfStatement=B;var L=function(e,t,n,r){this.type=i.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r};t.ForStatement=L;var M=function(e,t,n,r){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionDeclaration=M;var I=function(e,t,n,r){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionExpression=I;var N=function(e){this.type=i.Syntax.Identifier,this.name=e};t.Identifier=N;var $=function(e,t,n){this.type=i.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.IfStatement=$;var j=function(e,t){this.type=i.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=j;var V=function(e){this.type=i.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=V;var z=function(e){this.type=i.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=z;var W=function(e,t){this.type=i.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=W;var U=function(e,t){this.type=i.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=U;var H=function(e,t){this.type=i.Syntax.Literal,this.value=e,this.raw=t};t.Literal=H;var q=function(e,t){this.type=i.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=q;var K=function(e,t,n,r,s){this.type=i.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=r,this.static=s};t.MethodDefinition=K;var G=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=G;var X=function(e,t){this.type=i.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=X;var J=function(e){this.type=i.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=J;var Y=function(e){this.type=i.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=Y;var Q=function(e,t,n,r,s,o){this.type=i.Syntax.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=s,this.shorthand=o};t.Property=Q;var Z=function(e,t,n,r){this.type=i.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:r}};t.RegexLiteral=Z;var ee=function(e){this.type=i.Syntax.RestElement,this.argument=e};t.RestElement=ee;var te=function(e){this.type=i.Syntax.ReturnStatement,this.argument=e};t.ReturnStatement=te;var ne=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=ne;var ie=function(e){this.type=i.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=ie;var re=function(e){this.type=i.Syntax.SpreadElement,this.argument=e};t.SpreadElement=re;var se=function(e,t){this.type=i.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.StaticMemberExpression=se;var oe=function(){this.type=i.Syntax.Super};t.Super=oe;var ae=function(e,t){this.type=i.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchCase=ae;var le=function(e,t){this.type=i.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.SwitchStatement=le;var ue=function(e,t){this.type=i.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TaggedTemplateExpression=ue;var ce=function(e,t){this.type=i.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=ce;var he=function(e,t){this.type=i.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=he;var pe=function(){this.type=i.Syntax.ThisExpression};t.ThisExpression=pe;var de=function(e){this.type=i.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=de;var fe=function(e,t,n){this.type=i.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.TryStatement=fe;var ge=function(e,t){this.type=i.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=ge;var me=function(e,t,n){this.type=i.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.UpdateExpression=me;var ve=function(e,t){this.type=i.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=ve;var ye=function(e,t){this.type=i.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=ye;var be=function(e,t){this.type=i.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=be;var we=function(e,t){this.type=i.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=we;var xe=function(e,t){this.type=i.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=xe},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(10),s=n(11),o=n(7),a=n(12),l=n(2),u=n(13),c=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1),s=e.replace(/%(\d)/g,(function(e,t){return i.assert(t<r.length,"Message reference must be in range"),r[t]})),o=this.lastMarker.index,a=this.lastMarker.line,l=this.lastMarker.column+1;throw this.errorHandler.createError(o,a,l,s)},e.prototype.tolerateError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1),s=e.replace(/%(\d)/g,(function(e,t){return i.assert(t<r.length,"Message reference must be in range"),r[t]})),o=this.lastMarker.index,a=this.scanner.lineNumber,l=this.lastMarker.column+1;this.errorHandler.tolerateError(o,a,l,s)},e.prototype.unexpectedTokenError=function(e,t){var n,i=t||s.Messages.UnexpectedToken;if(e?(t||(i=2===e.type?s.Messages.UnexpectedEOS:3===e.type?s.Messages.UnexpectedIdentifier:6===e.type?s.Messages.UnexpectedNumber:8===e.type?s.Messages.UnexpectedString:10===e.type?s.Messages.UnexpectedTemplate:s.Messages.UnexpectedToken,4===e.type&&(this.scanner.isFutureReservedWord(e.value)?i=s.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(i=s.Messages.StrictReservedWord))),n=e.value):n="ILLEGAL",i=i.replace("%0",n),e&&"number"==typeof e.lineNumber){var r=e.start,o=e.lineNumber,a=this.lastMarker.index-this.lastMarker.column,l=e.start-a+1;return this.errorHandler.createError(r,o,l,i)}return r=this.lastMarker.index,o=this.lastMarker.line,l=this.lastMarker.column+1,this.errorHandler.createError(r,o,l,i)},e.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},e.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},e.prototype.collectComments=function(){if(this.config.comment){var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var n=e[t],i=void 0;i={type:n.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(n.slice[0],n.slice[1])},this.config.range&&(i.range=n.range),this.config.loc&&(i.loc=n.loc);var r={start:{line:n.loc.start.line,column:n.loc.start.column,offset:n.range[0]},end:{line:n.loc.end.line,column:n.loc.end.column,offset:n.range[1]}};this.delegate(i,r)}}else this.scanner.scanComments()},e.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},e.prototype.convertToken=function(e){var t={type:u.TokenName[e.type],value:this.getTokenRaw(e)};if(this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===e.type){var n=e.pattern,i=e.flags;t.regex={pattern:n,flags:i}}return t},e.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&3===t.type&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&2!==t.type&&this.tokens.push(this.convertToken(t)),e},e.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},e.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},e.prototype.startNode=function(e,t){void 0===t&&(t=0);var n=e.start-e.lineStart,i=e.lineNumber;return n<0&&(n+=t,i--),{index:e.start,line:i,column:n}},e.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var n={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,n)}return t},e.prototype.expect=function(e){var t=this.nextToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;7===e.type&&","===e.value?this.nextToken():7===e.type&&";"===e.value?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,s.Messages.UnexpectedToken)}else this.expect(",")},e.prototype.expectKeyword=function(e){var t=this.nextToken();4===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.match=function(e){return 7===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchKeyword=function(e){return 4===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchContextualKeyword=function(e){return 3===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var e=this.lookahead.value;return"="===e||"*="===e||"**="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=i,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=i||this.context.firstCoverInitializedNameError,r},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,i=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(i,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,s.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new o.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new o.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new o.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(i,new o.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(i,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(i,new o.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new o.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var i=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,i},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,i,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var i=this.parseFormalParameters(),r=this.parsePropertyMethod(i);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new o.AsyncFunctionExpression(null,i.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,s.Messages.StrictOctalLiteral);var i=this.getTokenRaw(n);e=this.finalize(t,new o.Literal(n.value,i));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new o.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===l.Syntax.Identifier&&e.name===t||e.type===l.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),i=this.lookahead,r=null,a=null,l=!1,u=!1,c=!1,h=!1;if(3===i.type){var p=i.value;this.nextToken(),l=this.match("["),r=(h=!(this.hasLineTerminator||"async"!==p||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new o.Identifier(p))}else this.match("*")?this.nextToken():(l=this.match("["),r=this.parseObjectPropertyKey());var d=this.qualifiedPropertyName(this.lookahead);if(3===i.type&&!h&&"get"===i.value&&d)t="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(3===i.type&&!h&&"set"===i.value&&d)t="set",l=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(7===i.type&&"*"===i.value&&d)t="init",l=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!h)!l&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(s.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0;else if(3===i.type)if(p=this.finalize(n,new o.Identifier(i.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),c=!0;var f=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(n,new o.AssignmentPattern(p,f))}else c=!0,a=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new o.Property(t,r,l,a,u,c))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new o.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){i.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:i},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],i=this.parseTemplateHead();for(n.push(i);!i.tail;)t.push(this.parseExpression()),i=this.parseTemplateElement(),n.push(i);return this.finalize(e,new o.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case l.Syntax.Identifier:case l.Syntax.MemberExpression:case l.Syntax.RestElement:case l.Syntax.AssignmentPattern:break;case l.Syntax.SpreadElement:e.type=l.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case l.Syntax.ArrayExpression:e.type=l.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)null!==e.elements[t]&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case l.Syntax.ObjectExpression:for(e.type=l.Syntax.ObjectPattern,t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case l.Syntax.AssignmentExpression:e.type=l.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left)}},e.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[e],async:!1};else{var i=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var s=0;s<r.length;s++)this.reinterpretExpressionAsPattern(r[s]);i=!0,e={type:"ArrowParameterPlaceHolder",params:r,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),r.push(this.parseRestElement(n)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,s=0;s<r.length;s++)this.reinterpretExpressionAsPattern(r[s]);i=!0,e={type:"ArrowParameterPlaceHolder",params:r,async:!1}}else r.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(i)break}i||(e=this.finalize(this.startNode(t),new o.SequenceExpression(r)))}if(!i){if(this.expect(")"),this.match("=>")&&(e.type===l.Syntax.Identifier&&"yield"===e.name&&(i=!0,e={type:"ArrowParameterPlaceHolder",params:[e],async:!1}),!i)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===l.Syntax.SequenceExpression)for(s=0;s<e.expressions.length;s++)this.reinterpretExpressionAsPattern(e.expressions[s]);else this.reinterpretExpressionAsPattern(e);e={type:"ArrowParameterPlaceHolder",params:e.type===l.Syntax.SequenceExpression?e.expressions:[e],async:!1}}this.context.isBindingElement=!1}}}return e},e.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.isIdentifierName=function(e){return 3===e.type||4===e.type||1===e.type||5===e.type},e.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new o.Identifier(t.value))},e.prototype.parseNewExpression=function(){var e,t=this.createNode(),n=this.parseIdentifierName();if(i.assert("new"===n.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var r=this.parseIdentifierName();e=new o.MetaProperty(n,r)}else this.throwUnexpectedToken(this.lookahead);else{var s=this.isolateCoverGrammar(this.parseLeftHandSideExpression),a=this.match("(")?this.parseArguments():[];e=new o.NewExpression(s,a),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(t,e)},e.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},e.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.parseLeftHandSideExpressionAllowCall=function(){var e,t=this.lookahead,n=this.matchContextualKeyword("async"),i=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(e=this.createNode(),this.nextToken(),e=this.finalize(e,new o.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):e=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var r=this.parseIdentifierName();e=this.finalize(this.startNode(t),new o.StaticMemberExpression(e,r))}else if(this.match("(")){var s=n&&t.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var a=s?this.parseAsyncArguments():this.parseArguments();if(e=this.finalize(this.startNode(t),new o.CallExpression(e,a)),s&&this.match("=>")){for(var l=0;l<a.length;++l)this.reinterpretExpressionAsPattern(a[l]);e={type:"ArrowParameterPlaceHolder",params:a,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),r=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),e=this.finalize(this.startNode(t),new o.ComputedMemberExpression(e,r));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var u=this.parseTemplateLiteral();e=this.finalize(this.startNode(t),new o.TaggedTemplateExpression(e,u))}return this.context.allowIn=i,e},e.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(e,new o.Super)},e.prototype.parseLeftHandSideExpression=function(){i.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var n=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new o.ComputedMemberExpression(t,n))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),n=this.parseIdentifierName(),t=this.finalize(e,new o.StaticMemberExpression(t,n));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var r=this.parseTemplateLiteral();t=this.finalize(e,new o.TaggedTemplateExpression(t,r))}return t},e.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var n=this.startNode(t),i=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(s.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment);var r=!0;e=this.finalize(n,new o.UpdateExpression(i.value,e,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(s.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var a=this.nextToken().value;r=!1,e=this.finalize(this.startNode(t),new o.UpdateExpression(a,e,r))}return e},e.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new o.AwaitExpression(t))},e.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),n=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new o.UnaryExpression(n.value,e)),this.context.strict&&"delete"===e.operator&&e.argument.type===l.Syntax.Identifier&&this.tolerateError(s.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else e=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return e},e.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==l.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=t,i=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new o.BinaryExpression("**",n,i))}return t},e.prototype.binaryPrecedence=function(e){var t=e.value;return 7===e.type?this.operatorPrecedence[t]||0:4===e.type&&("instanceof"===t||this.context.allowIn&&"in"===t)?7:0},e.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),n=this.lookahead,i=this.binaryPrecedence(n);if(i>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],s=t,a=this.isolateCoverGrammar(this.parseExponentiationExpression),l=[s,n.value,a],u=[i];!((i=this.binaryPrecedence(this.lookahead))<=0);){for(;l.length>2&&i<=u[u.length-1];){a=l.pop();var c=l.pop();u.pop(),s=l.pop(),r.pop();var h=this.startNode(r[r.length-1]);l.push(this.finalize(h,new o.BinaryExpression(c,s,a)))}l.push(this.nextToken().value),u.push(i),r.push(this.lookahead),l.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=l.length-1;t=l[p];for(var d=r.pop();p>1;){var f=r.pop(),g=d&&d.lineStart;h=this.startNode(f,g),c=l[p-1],t=this.finalize(h,new o.BinaryExpression(c,l[p-2],t)),p-=2,d=f}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,i,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case l.Syntax.Identifier:this.validateParam(e,t,t.name);break;case l.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case l.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case l.Syntax.ArrayPattern:for(var n=0;n<t.elements.length;n++)null!==t.elements[n]&&this.checkPatternParam(e,t.elements[n]);break;case l.Syntax.ObjectPattern:for(n=0;n<t.properties.length;n++)this.checkPatternParam(e,t.properties[n].value)}e.simple=e.simple&&t instanceof o.Identifier},e.prototype.reinterpretAsCoverFormalsList=function(e){var t,n=[e],i=!1;switch(e.type){case l.Syntax.Identifier:break;case"ArrowParameterPlaceHolder":n=e.params,i=e.async;break;default:return null}t={simple:!0,paramSet:{}};for(var r=0;r<n.length;++r)(o=n[r]).type===l.Syntax.AssignmentPattern?o.right.type===l.Syntax.YieldExpression&&(o.right.argument&&this.throwUnexpectedToken(this.lookahead),o.right.type=l.Syntax.Identifier,o.right.name="yield",delete o.right.argument,delete o.right.delegate):i&&o.type===l.Syntax.Identifier&&"await"===o.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(t,o),n[r]=o;if(this.context.strict||!this.context.allowYield)for(r=0;r<n.length;++r){var o;(o=n[r]).type===l.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(t.message===s.Messages.StrictParamDupe){var a=this.context.strict?t.stricted:t.firstRestricted;this.throwUnexpectedToken(a,t.message)}return{simple:t.simple,params:n,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,n=t;if(e=this.parseConditionalExpression(),3===n.type&&n.lineNumber===this.lookahead.lineNumber&&"async"===n.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var i=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(i),e={type:"ArrowParameterPlaceHolder",params:[i],async:!0}}if("ArrowParameterPlaceHolder"===e.type||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,a=this.reinterpretAsCoverFormalsList(e);if(a){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var u=this.context.strict,c=this.context.allowStrictDirective;this.context.allowStrictDirective=a.simple;var h=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=r;var d=this.startNode(t);this.expect("=>");var f=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,f=this.parseFunctionSourceElements(),this.context.allowIn=g}else f=this.isolateCoverGrammar(this.parseAssignmentExpression);var m=f.type!==l.Syntax.BlockStatement;this.context.strict&&a.firstRestricted&&this.throwUnexpectedToken(a.firstRestricted,a.message),this.context.strict&&a.stricted&&this.tolerateUnexpectedToken(a.stricted,a.message),e=r?this.finalize(d,new o.AsyncArrowFunctionExpression(a.params,f,m)):this.finalize(d,new o.ArrowFunctionExpression(a.params,f,m)),this.context.strict=u,this.context.allowStrictDirective=c,this.context.allowYield=h,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===l.Syntax.Identifier){var v=e;this.scanner.isRestrictedWord(v.name)&&this.tolerateUnexpectedToken(n,s.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(v.name)&&this.tolerateUnexpectedToken(n,s.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var y=(n=this.nextToken()).value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(y,e,b)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new o.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),i=this.parsePattern([],e);this.context.strict&&i.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(s.Messages.StrictVarName);var r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(s.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&i.type!==l.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new o.VariableDeclarator(i,r))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;i.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var r=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(r,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var i=this.parsePattern(e,t);return this.finalize(n,new o.RestElement(i))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var i=[];!this.match("]");)if(this.match(","))this.nextToken(),i.push(null);else{if(this.match("...")){i.push(this.parseBindingRestElement(e,t));break}i.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new o.ArrayPattern(i))},e.prototype.parsePropertyPattern=function(e,t){var n,i,r=this.createNode(),s=!1,a=!1;if(3===this.lookahead.type){var l=this.lookahead;n=this.parseVariableIdentifier();var u=this.finalize(r,new o.Identifier(l.value));if(this.match("=")){e.push(l),a=!0,this.nextToken();var c=this.parseAssignmentExpression();i=this.finalize(this.startNode(l),new o.AssignmentPattern(u,c))}else this.match(":")?(this.expect(":"),i=this.parsePatternWithDefault(e,t)):(e.push(l),a=!0,i=u)}else s=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),i=this.parsePatternWithDefault(e,t);return this.finalize(r,new o.Property("init",n,s,i,!1,a))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),i=[];for(this.expect("{");!this.match("}");)i.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new o.ObjectPattern(i))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,s.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,i=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var s=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,i=this.finalize(this.startNode(n),new o.AssignmentPattern(i,s))}return i},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,s.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,s.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new o.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(s.Messages.StrictVarName);var i=null;return this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===l.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new o.VariableDeclarator(n,i))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new o.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(s.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new o.IfStatement(i,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(n,i))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var i=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=i}return this.finalize(t,new o.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,i=null,r=null,a=null,u=!0,c=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){i=this.createNode(),this.nextToken();var h=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=h,1===p.length&&this.matchKeyword("in")){var d=p[0];d.init&&(d.id.type===l.Syntax.ArrayPattern||d.id.type===l.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(s.Messages.ForInOfLoopInitializer,"for-in"),i=this.finalize(i,new o.VariableDeclaration(p,"var")),this.nextToken(),e=i,t=this.parseExpression(),i=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new o.VariableDeclaration(p,"var")),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,u=!1):(i=this.finalize(i,new o.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){i=this.createNode();var f=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(h=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(f,{inFor:!0}),this.context.allowIn=h,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(i=this.finalize(i,new o.VariableDeclaration(p,f)),this.nextToken(),e=i,t=this.parseExpression(),i=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new o.VariableDeclaration(p,f)),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,u=!1):(this.consumeSemicolon(),i=this.finalize(i,new o.VariableDeclaration(p,f)))):(i=this.finalize(i,new o.Identifier(f)),this.nextToken(),e=i,t=this.parseExpression(),i=null)}else{var g=this.lookahead;if(h=this.context.allowIn,this.context.allowIn=!1,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=h,this.matchKeyword("in"))this.context.isAssignmentTarget&&i.type!==l.Syntax.AssignmentExpression||this.tolerateError(s.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(i),e=i,t=this.parseExpression(),i=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&i.type!==l.Syntax.AssignmentExpression||this.tolerateError(s.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(i),e=i,t=this.parseAssignmentExpression(),i=null,u=!1;else{if(this.match(",")){for(var m=[i];this.match(",");)this.nextToken(),m.push(this.isolateCoverGrammar(this.parseAssignmentExpression));i=this.finalize(this.startNode(g),new o.SequenceExpression(m))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(a=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var v=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=v}return void 0===e?this.finalize(c,new o.ForStatement(i,r,a,n)):u?this.finalize(c,new o.ForInStatement(e,t,n)):this.finalize(c,new o.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(s.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(s.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(s.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(s.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(s.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(s.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new o.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new o.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var i=[],r=!1;for(this.expect("{");!this.match("}");){var a=this.parseSwitchCase();null===a.test&&(r&&this.throwError(s.Messages.MultipleDefaultsInSwitch),r=!0),i.push(a)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new o.SwitchStatement(t,i))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===l.Syntax.Identifier&&this.match(":")){this.nextToken();var i=n,r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(s.Messages.Redeclaration,"Label",i.name),this.context.labelSet[r]=!0;var a=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){var u=this.lookahead,c=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(u,s.Messages.StrictFunction):c.generator&&this.tolerateUnexpectedToken(u,s.Messages.GeneratorInLegacyContext),a=c}else a=this.parseStatement();delete this.context.labelSet[r],e=new o.LabeledStatement(i,a)}else this.consumeSemicolon(),e=new o.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(s.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),i={},r=0;r<t.length;r++){var a="$"+t[r].value;Object.prototype.hasOwnProperty.call(i,a)&&this.tolerateError(s.Messages.DuplicateBinding,t[r].value),i[a]=!0}this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(s.Messages.StrictCatchVariable),this.expect(")");var u=this.parseBlock();return this.finalize(e,new o.CatchClause(n,u))},e.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},e.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),n=this.matchKeyword("catch")?this.parseCatchClause():null,i=this.matchKeyword("finally")?this.parseFinallyClause():null;return n||i||this.throwError(s.Messages.NoCatchOrFinally),this.finalize(e,new o.TryStatement(t,n,i))},e.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new o.DebuggerStatement)},e.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;e="{"===t?this.parseBlock():"("===t?this.parseExpressionStatement():";"===t?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement()}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},e.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),n=this.context.labelSet,i=this.context.inIteration,r=this.context.inSwitch,s=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=n,this.context.inIteration=i,this.context.inSwitch=r,this.context.inFunctionBody=s,this.finalize(e,new o.BlockStatement(t))},e.prototype.validateParam=function(e,t,n){var i="$"+n;this.context.strict?(this.scanner.isRestrictedWord(n)&&(e.stricted=t,e.message=s.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,i)&&(e.stricted=t,e.message=s.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(n)?(e.firstRestricted=t,e.message=s.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(n)?(e.firstRestricted=t,e.message=s.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,i)&&(e.stricted=t,e.message=s.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(e.paramSet,i,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[i]=!0},e.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var n=this.parsePattern(e);return this.match("=")&&this.throwError(s.Messages.DefaultRestParameter),this.match(")")||this.throwError(s.Messages.ParameterAfterRestParameter),this.finalize(t,new o.RestElement(n))},e.prototype.parseFormalParameter=function(e){for(var t=[],n=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),i=0;i<t.length;i++)this.validateParam(e,t[i],t[i].value);e.simple=e.simple&&n instanceof o.Identifier,e.params.push(n)},e.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(t),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===n.lineNumber&&4===n.type&&"function"===n.value}return e},e.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),n=this.matchContextualKeyword("async");n&&this.nextToken(),this.expectKeyword("function");var i,r=!n&&this.match("*");r&&this.nextToken();var a=null,l=null;if(!e||!this.match("(")){var u=this.lookahead;a=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(u.value)&&this.tolerateUnexpectedToken(u,s.Messages.StrictFunctionName):this.scanner.isRestrictedWord(u.value)?(l=u,i=s.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(u.value)&&(l=u,i=s.Messages.StrictReservedWord)}var c=this.context.await,h=this.context.allowYield;this.context.await=n,this.context.allowYield=!r;var p=this.parseFormalParameters(l),d=p.params,f=p.stricted;l=p.firstRestricted,p.message&&(i=p.message);var g=this.context.strict,m=this.context.allowStrictDirective;this.context.allowStrictDirective=p.simple;var v=this.parseFunctionSourceElements();return this.context.strict&&l&&this.throwUnexpectedToken(l,i),this.context.strict&&f&&this.tolerateUnexpectedToken(f,i),this.context.strict=g,this.context.allowStrictDirective=m,this.context.await=c,this.context.allowYield=h,n?this.finalize(t,new o.AsyncFunctionDeclaration(a,d,v)):this.finalize(t,new o.FunctionDeclaration(a,d,v,r))},e.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var n,i=!t&&this.match("*");i&&this.nextToken();var r,a=null,l=this.context.await,u=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!i,!this.match("(")){var c=this.lookahead;a=this.context.strict||i||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(c.value)&&this.tolerateUnexpectedToken(c,s.Messages.StrictFunctionName):this.scanner.isRestrictedWord(c.value)?(r=c,n=s.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(c.value)&&(r=c,n=s.Messages.StrictReservedWord)}var h=this.parseFormalParameters(r),p=h.params,d=h.stricted;r=h.firstRestricted,h.message&&(n=h.message);var f=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=h.simple;var m=this.parseFunctionSourceElements();return this.context.strict&&r&&this.throwUnexpectedToken(r,n),this.context.strict&&d&&this.tolerateUnexpectedToken(d,n),this.context.strict=f,this.context.allowStrictDirective=g,this.context.await=l,this.context.allowYield=u,t?this.finalize(e,new o.AsyncFunctionExpression(a,p,m)):this.finalize(e,new o.FunctionExpression(a,p,m,i))},e.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),n=this.parseExpression(),i=n.type===l.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,i?new o.Directive(n,i):new o.ExpressionStatement(n))},e.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var n=this.lookahead;if(8!==n.type)break;var i=this.parseDirective();t.push(i);var r=i.directive;if("string"!=typeof r)break;"use strict"===r?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,s.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(n,s.Messages.IllegalLanguageModeDirective)):!e&&n.octal&&(e=n)}return t},e.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===e.value}return!1},e.prototype.parseGetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();n.params.length>0&&this.tolerateError(s.Messages.BadGetterArity);var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,i,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(s.Messages.BadSetterArity):n.params[0]instanceof o.RestElement&&this.tolerateError(s.Messages.BadSetterRestParameter);var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,i,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,i,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var i=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=i}return this.finalize(e,new o.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),i="",r=null,a=null,l=!1,u=!1,c=!1,h=!1;if(this.match("*"))this.nextToken();else if(l=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,c=!0,l=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(h=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,s.Messages.ConstructorIsAsync))}var d=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&d?(i="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod()):"set"===t.value&&d&&(i="set",l=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseSetterMethod()):7===t.type&&"*"===t.value&&d&&(i="init",l=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0),!i&&r&&this.match("(")&&(i="init",a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0),i||this.throwUnexpectedToken(this.lookahead),"init"===i&&(i="method"),l||(c&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,s.Messages.StaticPrototype),!c&&this.isPropertyKey(r,"constructor")&&(("method"!==i||!u||a&&a.generator)&&this.throwUnexpectedToken(t,s.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,s.Messages.DuplicateConstructor):e.value=!0,i="constructor")),this.finalize(n,new o.MethodDefinition(r,l,a,i,c))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var s=this.parseClassBody();return this.context.strict=n,this.finalize(t,new o.ClassDeclaration(i,r,s))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(n,i,r))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(s.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new o.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(s.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var i=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new o.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new o.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new o.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new o.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(s.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new o.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var i=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new o.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new o.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new o.ExportNamedDeclaration(n,[],null));else{var a=[],l=null,u=!1;for(this.expect("{");!this.match("}");)u=u||this.matchKeyword("default"),a.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),l=this.parseModuleSpecifier(),this.consumeSemicolon()):u?(i=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause,this.throwError(i,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new o.ExportNamedDeclaration(null,a,l))}return e},e}();t.Parser=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,i){var r="Line "+t+": "+i,s=this.constructError(r,n);return s.index=e,s.lineNumber=t,s.description=i,s},e.prototype.throwError=function(e,t,n,i){throw this.createError(e,t,n,i)},e.prototype.tolerateError=function(e,t,n,i){var r=this.createError(e,t,n,i);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(4),s=n(11);function o(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function a(e){return"01234567".indexOf(e)}var l=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=s.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=s.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,i=[];for(this.trackComment&&(i=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var s=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(s)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var o={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};i.push(o)}return 13===s&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,i}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},i.push(o)),i},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(i))13===i&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===i){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(s)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(s)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(n))++this.index;else if(r.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var i=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(i)),t=!0}else{if(42!==n)break;this.index+=2,i=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(i))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,i=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(i))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,i=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(i))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,i=0;i<t;++i){if(this.eof()||!r.Character.isHexDigit(this.source.charCodeAt(this.index)))return null;n=16*n+o(this.source[this.index++])}return String.fromCharCode(n)},e.prototype.scanUnicodeCodePointEscape=function(){var e=this.source[this.index],t=0;for("}"===e&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index++],r.Character.isHexDigit(e.charCodeAt(0)));)t=16*t+o(e);return(t>1114111||"}"!==e)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=r.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)n+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=a(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+a(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+a(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var i=this.index;this.index=t,this.tolerateUnexpectedToken(s.Messages.InvalidEscapedReservedWord),this.index=i}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",i=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(i=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return i||0!==n.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:i,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e<this.length;++e){var t=this.source[e];if("8"===t||"9"===t)return!1;if(!r.Character.isOctalDigit(t.charCodeAt(0)))return!0}return!0},e.prototype.scanNumericLiteral=function(){var e=this.index,t=this.source[e];i.assert(r.Character.isDecimalDigit(t.charCodeAt(0))||"."===t,"Numeric literal must start with a decimal digit or a decimal point");var n="";if("."!==t){if(n=this.source[this.index++],t=this.source[this.index],"0"===n){if("x"===t||"X"===t)return++this.index,this.scanHexLiteral(e);if("b"===t||"B"===t)return++this.index,this.scanBinaryLiteral(e);if("o"===t||"O"===t)return this.scanOctalLiteral(t,e);if(t&&r.Character.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,e)}for(;r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if("."===t){for(n+=this.source[this.index++];r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if("e"===t||"E"===t)if(n+=this.source[this.index++],"+"!==(t=this.source[this.index])&&"-"!==t||(n+=this.source[this.index++]),r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];else this.throwUnexpectedToken();return r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanStringLiteral=function(){var e=this.index,t=this.source[e];i.assert("'"===t||'"'===t,"String literal must starts with a quote"),++this.index;for(var n=!1,o="";!this.eof();){var a=this.source[this.index++];if(a===t){t="";break}if("\\"===a)if((a=this.source[this.index++])&&r.Character.isLineTerminator(a.charCodeAt(0)))++this.lineNumber,"\r"===a&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(a){case"u":if("{"===this.source[this.index])++this.index,o+=this.scanUnicodeCodePointEscape();else{var l=this.scanHexEscape(a);null===l&&this.throwUnexpectedToken(),o+=l}break;case"x":var u=this.scanHexEscape(a);null===u&&this.throwUnexpectedToken(s.Messages.InvalidHexEscapeSequence),o+=u;break;case"n":o+="\n";break;case"r":o+="\r";break;case"t":o+="\t";break;case"b":o+="\b";break;case"f":o+="\f";break;case"v":o+="\v";break;case"8":case"9":o+=a,this.tolerateUnexpectedToken();break;default:if(a&&r.Character.isOctalDigit(a.charCodeAt(0))){var c=this.octalToDecimal(a);n=c.octal||n,o+=String.fromCharCode(c.code)}else o+=a}else{if(r.Character.isLineTerminator(a.charCodeAt(0)))break;o+=a}}return""!==t&&(this.index=e,this.throwUnexpectedToken()),{type:8,value:o,octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanTemplate=function(){var e="",t=!1,n=this.index,i="`"===this.source[n],o=!1,a=2;for(++this.index;!this.eof();){var l=this.source[this.index++];if("`"===l){a=1,o=!0,t=!0;break}if("$"===l){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,t=!0;break}e+=l}else if("\\"===l)if(l=this.source[this.index++],r.Character.isLineTerminator(l.charCodeAt(0)))++this.lineNumber,"\r"===l&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(l){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"u":if("{"===this.source[this.index])++this.index,e+=this.scanUnicodeCodePointEscape();else{var u=this.index,c=this.scanHexEscape(l);null!==c?e+=c:(this.index=u,e+=l)}break;case"x":var h=this.scanHexEscape(l);null===h&&this.throwUnexpectedToken(s.Messages.InvalidHexEscapeSequence),e+=h;break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:"0"===l?(r.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral),e+="\0"):r.Character.isOctalDigit(l.charCodeAt(0))?this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral):e+=l}else r.Character.isLineTerminator(l.charCodeAt(0))?(++this.lineNumber,"\r"===l&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,e+="\n"):e+=l}return t||this.throwUnexpectedToken(),i||this.curlyStack.pop(),{type:10,value:this.source.slice(n+1,this.index-a),cooked:e,head:i,tail:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},e.prototype.testRegExp=function(e,t){var n=e,i=this;t.indexOf("u")>=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var r=parseInt(t||n,16);return r>1114111&&i.throwUnexpectedToken(s.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(n)}catch(e){this.throwUnexpectedToken(s.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];i.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,o=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(s.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){o=!0;break}"["===e&&(n=!0)}return o||this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!r.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,i=this.scanHexEscape("u");if(null!==i)for(e+=i;n<this.index;++n)this.source[n];else this.index=n,e+="u";this.tolerateUnexpectedToken()}else this.tolerateUnexpectedToken()}return e},e.prototype.scanRegExp=function(){var e=this.index,t=this.scanRegExpBody(),n=this.scanRegExpFlags();return{type:9,value:"",pattern:t,flags:n,regex:this.testRegExp(t,n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var e=this.source.charCodeAt(this.index);return r.Character.isIdentifierStart(e)?this.scanIdentifier():40===e||41===e||59===e?this.scanPunctuator():39===e||34===e?this.scanStringLiteral():46===e?r.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():r.Character.isDecimalDigit(e)?this.scanNumericLiteral():96===e||125===e&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():e>=55296&&e<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(12),s=n(13),o=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(i=this.values[this.curly-4])&&!this.beforeFunctionExpression(i);else if("function"===this.values[this.curly-4]){var i;t=!(i=this.values[this.curly-5])||!this.beforeFunctionExpression(i)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),a=function(){function e(e,t){this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new r.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new o}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t<e.length;++t){var n=e[t],i=this.scanner.source.slice(n.slice[0],n.slice[1]),r={type:n.multiLine?"BlockComment":"LineComment",value:i};this.trackRange&&(r.range=n.range),this.trackLoc&&(r.loc=n.loc),this.buffer.push(r)}if(!this.scanner.eof()){var o=void 0;this.trackLoc&&(o={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var a="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(a);var l={type:s.TokenName[a.type],value:this.scanner.source.slice(a.start,a.end)};if(this.trackRange&&(l.range=[a.start,a.end]),this.trackLoc&&(o.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},l.loc=o),9===a.type){var u=a.pattern,c=a.flags;l.regex={pattern:u,flags:c}}this.buffer.push(l)}}return this.buffer.shift()},e}();t.Tokenizer=a}])},e.exports=i()},function(e,t){e.exports=require("os")},function(e,t,n){"use strict";var i=n(202),r=n(222).left,s=n(224),o=n(225),a=n(227);i({target:"Array",proto:!0,forced:!s("reduce")||!a&&o>79&&o<83},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(12),r=n(116).f,s=n(39),o=n(205),a=n(56),l=n(212),u=n(221);e.exports=function(e,t){var n,c,h,p,d,f=e.target,g=e.global,m=e.stat;if(n=g?i:m?i[f]||a(f,{}):(i[f]||{}).prototype)for(c in t){if(p=t[c],h=e.noTargetGet?(d=r(n,c))&&d.value:n[c],!u(g?c:f+(m?".":"#")+c,e.forced)&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&s(p,"sham",!0),o(n,c,p,e)}}},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!i.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},function(e,t,n){var i=n(12),r=n(38),s=i.document,o=r(s)&&r(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},function(e,t,n){var i=n(12),r=n(39),s=n(28),o=n(56),a=n(126),l=n(206),u=l.get,c=l.enforce,h=String(String).split("String");(e.exports=function(e,t,n,a){var l,u=!!a&&!!a.unsafe,p=!!a&&!!a.enumerable,d=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||r(n,"name",t),(l=c(n)).source||(l.source=h.join("string"==typeof t?t:""))),e!==i?(u?!d&&e[t]&&(p=!0):delete e[t],p?e[t]=n:r(e,t,n)):p?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||a(this)}))},function(e,t,n){var i,r,s,o=n(207),a=n(12),l=n(38),u=n(39),c=n(28),h=n(57),p=n(208),d=n(127),f=a.WeakMap;if(o||h.state){var g=h.state||(h.state=new f),m=g.get,v=g.has,y=g.set;i=function(e,t){if(v.call(g,e))throw new TypeError("Object already initialized");return t.facade=e,y.call(g,e,t),t},r=function(e){return m.call(g,e)||{}},s=function(e){return v.call(g,e)}}else{var b=p("state");d[b]=!0,i=function(e,t){if(c(e,b))throw new TypeError("Object already initialized");return t.facade=e,u(e,b,t),t},r=function(e){return c(e,b)?e[b]:{}},s=function(e){return c(e,b)}}e.exports={set:i,get:r,has:s,enforce:function(e){return s(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var i=n(12),r=n(126),s=i.WeakMap;e.exports="function"==typeof s&&/native code/.test(r(s))},function(e,t,n){var i=n(209),r=n(211),s=i("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},function(e,t,n){var i=n(210),r=n(57);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.1",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},function(e,t,n){var i=n(28),r=n(213),s=n(116),o=n(124);e.exports=function(e,t){for(var n=r(t),a=o.f,l=s.f,u=0;u<n.length;u++){var c=n[u];i(e,c)||a(e,c,l(t,c))}}},function(e,t,n){var i=n(128),r=n(215),s=n(220),o=n(125);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(o(e)),n=s.f;return n?t.concat(n(e)):t}},function(e,t,n){var i=n(12);e.exports=i},function(e,t,n){var i=n(216),r=n(219).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(28),r=n(55),s=n(217).indexOf,o=n(127);e.exports=function(e,t){var n,a=r(e),l=0,u=[];for(n in a)!i(o,n)&&i(a,n)&&u.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~s(u,n)||u.push(n));return u}},function(e,t,n){var i=n(55),r=n(129),s=n(218),o=function(e){return function(t,n,o){var a,l=i(t),u=r(l.length),c=s(o,u);if(e&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var i=n(130),r=Math.max,s=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):s(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(27),r=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==u||n!=l&&("function"==typeof t?i(t):!!t)},o=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=s.data={},l=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},function(e,t,n){var i=n(223),r=n(122),s=n(118),o=n(129),a=function(e){return function(t,n,a,l){i(n);var u=r(t),c=s(u),h=o(u.length),p=e?h-1:0,d=e?-1:1;if(a<2)for(;;){if(p in c){l=c[p],p+=d;break}if(p+=d,e?p<0:h<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:h>p;p+=d)p in c&&(l=n(l,c[p],p,u));return l}};e.exports={left:a(!1),right:a(!0)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var i=n(27);e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var i,r,s=n(12),o=n(226),a=s.process,l=a&&a.versions,u=l&&l.v8;u?r=(i=u.split("."))[0]<4?1:i[0]+i[1]:o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+r},function(e,t,n){var i=n(128);e.exports=i("navigator","userAgent")||""},function(e,t,n){var i=n(119),r=n(12);e.exports="process"==i(r.process)},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=n(134),g=n(135),m=g.LinkedList,v=n(136),y={Cancel:"Document::Cancel"},b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(o,e);var t,n,i,r=h(o);function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=r.call(this)).doc=e,n.cloned=t||!1,n.isUpdatable=!0,n.elements=n._generateElements(),n}return t=o,(n=[{key:"cancel",value:function(){var e,t=a(this.elements);try{for(t.s();!(e=t.n()).done;)e.value.cancel()}catch(e){t.e(e)}finally{t.f()}this.emit(y.Cancel)}},{key:"generateObject",value:function(){return v.generate(this.elements)}},{key:"generateOriginalObject",value:function(){return v.generateOriginal(this.elements)}},{key:"generateUpdateUnlessChangedInBackgroundQuery",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.getOriginalKeysAndValuesForFieldsThatWereUpdated(e),n=s({_id:this.getId()},t),i=this.getSetUpdateForDocumentChanges(),r=this.getUnsetUpdateForDocumentChanges(),o={};return i&&Object.keys(i).length>0&&(o.$set=i),r&&Object.keys(r).length>0&&(o.$unset=r),{query:n,updateDoc:o}}},{key:"get",value:function(e){return this.elements.get(e)}},{key:"getChild",value:function(e){if(e){for(var t="Array"===this.currentType?this.elements.at(e[0]):this.elements.get(e[0]),n=1;n<e.length;){if(void 0===t)return;t="Array"===t.currentType?t.at(e[n]):t.get(e[n]),n++}return t}}},{key:"getId",value:function(){var e=this.get("_id");return e?e.generateObject():null}},{key:"getOriginalKeysAndValuesForFieldsThatWereUpdated",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={};if(this.elements){var n,i=a(this.elements);try{for(i.s();!(n=i.n()).done;){var r=n.value;(r.isModified()&&!r.isAdded()||e&&r.key in e)&&(t[r.key]=r.generateOriginalObject()),r.isAdded()&&""!==r.currentKey&&(t[r.currentKey]={$exists:!1})}}catch(e){i.e(e)}finally{i.f()}}return t}},{key:"getOriginalKeysAndValuesForSpecifiedKeys",value:function(e){var t={};if(this.elements){var n,i=a(this.elements);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.key in e&&(t[r.key]=r.generateOriginalObject())}}catch(e){i.e(e)}finally{i.f()}}return t}},{key:"getSetUpdateForDocumentChanges",value:function(){var e={};if(this.elements){var t,n=a(this.elements);try{for(n.s();!(t=n.n()).done;){var i=t.value;!i.isRemoved()&&""!==i.currentKey&&i.isModified()&&(e[i.currentKey]=i.generateObject())}}catch(e){n.e(e)}finally{n.f()}}return e}},{key:"getStringId",value:function(){var e=this.get("_id");return e?"Array"===e.currentType||"Object"===e.currentType?JSON.stringify(e.generateObject()):""+e.value:null}},{key:"getUnsetUpdateForDocumentChanges",value:function(){var e={};if(this.elements){var t,n=a(this.elements);try{for(n.s();!(t=n.n()).done;){var i=t.value;!i.isAdded()&&i.isRemoved()&&""!==i.key&&(e[i.key]=!0),!i.isAdded()&&i.isRenamed()&&""!==i.key&&(e[i.key]=!0)}}catch(e){n.e(e)}finally{n.f()}}return e}},{key:"insertPlaceholder",value:function(){return this.insertEnd("","")}},{key:"insertEnd",value:function(e,t){var n=this.elements.insertEnd(e,t,!0,this);return this.emit(g.Events.Added),n}},{key:"insertAfter",value:function(e,t,n){var i=this.elements.insertAfter(e,t,n,!0,this);return this.emit(g.Events.Added),i}},{key:"isAdded",value:function(){return!1}},{key:"isModified",value:function(){var e,t=a(this.elements);try{for(t.s();!(e=t.n()).done;)if(e.value.isModified())return!0}catch(e){t.e(e)}finally{t.f()}return!1}},{key:"isRemoved",value:function(){return!1}},{key:"isRoot",value:function(){return!0}},{key:"next",value:function(){this.elements.flush();var e=this.elements.lastElement;e&&e.isAdded()&&e.isBlank()?e.remove():this.insertPlaceholder()}},{key:"_generateElements",value:function(){return new m(this,this.doc)}}])&&u(t.prototype,n),i&&u(t,i),o}(f);e.exports=b,e.exports.Events=y},function(e,t){var n=/^(?:0|[1-9]\d*)$/;var i,r,s=Object.prototype,o=s.hasOwnProperty,a=s.toString,l=s.propertyIsEnumerable,u=(i=Object.keys,r=Object,function(e){return i(r(e))});function c(e,t){var n=d(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&f(e)}(e)&&o.call(e,"callee")&&(!l.call(e,"callee")||"[object Arguments]"==a.call(e))}(e)?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],i=n.length,r=!!i;for(var s in e)!t&&!o.call(e,s)||r&&("length"==s||p(s,i))||n.push(s);return n}function h(e){if(n=(t=e)&&t.constructor,i="function"==typeof n&&n.prototype||s,t!==i)return u(e);var t,n,i,r=[];for(var a in Object(e))o.call(e,a)&&"constructor"!=a&&r.push(a);return r}function p(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||n.test(e))&&e>-1&&e%1==0&&e<t}var d=Array.isArray;function f(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?a.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}e.exports=function(e){return f(e)?c(e):h(e)}},function(e,t){var n,i,r=Function.prototype,s=Object.prototype,o=r.toString,a=s.hasOwnProperty,l=o.call(Object),u=s.toString,c=(n=Object.getPrototypeOf,i=Object,function(e){return n(i(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=u.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=c(e);if(null===t)return!0;var n=a.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&o.call(n)==l}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){(function(e){var n="[object Arguments]",i="[object Map]",r="[object Object]",s="[object Set]",o=/^\[object .+?Constructor\]$/,a=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[n]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l[i]=l["[object Number]"]=l[r]=l["[object RegExp]"]=l[s]=l["[object String]"]=l["[object WeakMap]"]=!1;var u="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,h=u||c||Function("return this")(),p=t&&!t.nodeType&&t,d=p&&"object"==typeof e&&e&&!e.nodeType&&e,f=d&&d.exports===p,g=f&&u.process,m=function(){try{return g&&g.binding&&g.binding("util")}catch(e){}}(),v=m&&m.isTypedArray;function y(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function b(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function w(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var x,C,E,A=Array.prototype,S=Function.prototype,D=Object.prototype,k=h["__core-js_shared__"],F=S.toString,_=D.hasOwnProperty,T=(x=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",O=D.toString,P=RegExp("^"+F.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=f?h.Buffer:void 0,B=h.Symbol,L=h.Uint8Array,M=D.propertyIsEnumerable,I=A.splice,N=B?B.toStringTag:void 0,$=Object.getOwnPropertySymbols,j=R?R.isBuffer:void 0,V=(C=Object.keys,E=Object,function(e){return C(E(e))}),z=me(h,"DataView"),W=me(h,"Map"),U=me(h,"Promise"),H=me(h,"Set"),q=me(h,"WeakMap"),K=me(Object,"create"),G=we(z),X=we(W),J=we(U),Y=we(H),Q=we(q),Z=B?B.prototype:void 0,ee=Z?Z.valueOf:void 0;function te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ie;++t<n;)this.add(e[t])}function se(e){var t=this.__data__=new ne(e);this.size=t.size}function oe(e,t){var n=Ee(e),i=!n&&Ce(e),r=!n&&!i&&Ae(e),s=!n&&!i&&!r&&_e(e),o=n||i||r||s,a=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],l=a.length;for(var u in e)!t&&!_.call(e,u)||o&&("length"==u||r&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||be(u,l))||a.push(u);return a}function ae(e,t){for(var n=e.length;n--;)if(xe(e[n][0],t))return n;return-1}function le(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?function(e){var t=_.call(e,N),n=e[N];try{e[N]=void 0;var i=!0}catch(e){}var r=O.call(e);i&&(t?e[N]=n:delete e[N]);return r}(e):function(e){return O.call(e)}(e)}function ue(e){return Fe(e)&&le(e)==n}function ce(e,t,o,a,l){return e===t||(null==e||null==t||!Fe(e)&&!Fe(t)?e!=e&&t!=t:function(e,t,o,a,l,u){var c=Ee(e),h=Ee(t),p=c?"[object Array]":ye(e),d=h?"[object Array]":ye(t),f=(p=p==n?r:p)==r,g=(d=d==n?r:d)==r,m=p==d;if(m&&Ae(e)){if(!Ae(t))return!1;c=!0,f=!1}if(m&&!f)return u||(u=new se),c||_e(e)?de(e,t,o,a,l,u):function(e,t,n,r,o,a,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new L(e),new L(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var u=b;case s:var c=1&r;if(u||(u=w),e.size!=t.size&&!c)return!1;var h=l.get(e);if(h)return h==t;r|=2,l.set(e,t);var p=de(u(e),u(t),r,o,a,l);return l.delete(e),p;case"[object Symbol]":if(ee)return ee.call(e)==ee.call(t)}return!1}(e,t,p,o,a,l,u);if(!(1&o)){var v=f&&_.call(e,"__wrapped__"),y=g&&_.call(t,"__wrapped__");if(v||y){var x=v?e.value():e,C=y?t.value():t;return u||(u=new se),l(x,C,o,a,u)}}if(!m)return!1;return u||(u=new se),function(e,t,n,i,r,s){var o=1&n,a=fe(e),l=a.length,u=fe(t).length;if(l!=u&&!o)return!1;var c=l;for(;c--;){var h=a[c];if(!(o?h in t:_.call(t,h)))return!1}var p=s.get(e);if(p&&s.get(t))return p==t;var d=!0;s.set(e,t),s.set(t,e);var f=o;for(;++c<l;){h=a[c];var g=e[h],m=t[h];if(i)var v=o?i(m,g,h,t,e,s):i(g,m,h,e,t,s);if(!(void 0===v?g===m||r(g,m,n,i,s):v)){d=!1;break}f||(f="constructor"==h)}if(d&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return s.delete(e),s.delete(t),d}(e,t,o,a,l,u)}(e,t,o,a,ce,l))}function he(e){return!(!ke(e)||function(e){return!!T&&T in e}(e))&&(Se(e)?P:o).test(we(e))}function pe(e){if(n=(t=e)&&t.constructor,i="function"==typeof n&&n.prototype||D,t!==i)return V(e);var t,n,i,r=[];for(var s in Object(e))_.call(e,s)&&"constructor"!=s&&r.push(s);return r}function de(e,t,n,i,r,s){var o=1&n,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var c=-1,h=!0,p=2&n?new re:void 0;for(s.set(e,t),s.set(t,e);++c<a;){var d=e[c],f=t[c];if(i)var g=o?i(f,d,c,t,e,s):i(d,f,c,e,t,s);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!y(t,(function(e,t){if(o=t,!p.has(o)&&(d===e||r(d,e,n,i,s)))return p.push(t);var o}))){h=!1;break}}else if(d!==f&&!r(d,f,n,i,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function fe(e){return function(e,t,n){var i=t(e);return Ee(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,Te,ve)}function ge(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function me(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return he(n)?n:void 0}te.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},te.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},te.prototype.get=function(e){var t=this.__data__;if(K){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _.call(t,e)?t[e]:void 0},te.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:_.call(t,e)},te.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K&&void 0===t?"__lodash_hash_undefined__":t,this},ne.prototype.clear=function(){this.__data__=[],this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=ae(t,e);return!(n<0)&&(n==t.length-1?t.pop():I.call(t,n,1),--this.size,!0)},ne.prototype.get=function(e){var t=this.__data__,n=ae(t,e);return n<0?void 0:t[n][1]},ne.prototype.has=function(e){return ae(this.__data__,e)>-1},ne.prototype.set=function(e,t){var n=this.__data__,i=ae(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new te,map:new(W||ne),string:new te}},ie.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return ge(this,e).get(e)},ie.prototype.has=function(e){return ge(this,e).has(e)},ie.prototype.set=function(e,t){var n=ge(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},re.prototype.add=re.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},re.prototype.has=function(e){return this.__data__.has(e)},se.prototype.clear=function(){this.__data__=new ne,this.size=0},se.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ne){var i=n.__data__;if(!W||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(i)}return n.set(e,t),this.size=n.size,this};var ve=$?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}($(e),(function(t){return M.call(e,t)})))}:function(){return[]},ye=le;function be(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}function we(e){if(null!=e){try{return F.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function xe(e,t){return e===t||e!=e&&t!=t}(z&&"[object DataView]"!=ye(new z(new ArrayBuffer(1)))||W&&ye(new W)!=i||U&&"[object Promise]"!=ye(U.resolve())||H&&ye(new H)!=s||q&&"[object WeakMap]"!=ye(new q))&&(ye=function(e){var t=le(e),n=t==r?e.constructor:void 0,o=n?we(n):"";if(o)switch(o){case G:return"[object DataView]";case X:return i;case J:return"[object Promise]";case Y:return s;case Q:return"[object WeakMap]"}return t});var Ce=ue(function(){return arguments}())?ue:function(e){return Fe(e)&&_.call(e,"callee")&&!M.call(e,"callee")},Ee=Array.isArray;var Ae=j||function(){return!1};function Se(e){if(!ke(e))return!1;var t=le(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Fe(e){return null!=e&&"object"==typeof e}var _e=v?function(e){return function(t){return e(t)}}(v):function(e){return Fe(e)&&De(e.length)&&!!l[le(e)]};function Te(e){return null!=(t=e)&&De(t.length)&&!Se(t)?oe(e):pe(e);var t}e.exports=function(e,t){return ce(e,t)}}).call(this,n(58)(e))},function(e,t,n){e.exports=n(234)},function(e,t,n){const{isPlainObject:i,isArray:r,isString:s,isNumber:o,hasIn:a,keys:l,without:u,toNumber:c,toString:h}=n(235),{ObjectId:p,MinKey:d,MaxKey:f,Long:g,Double:m,Int32:v,Decimal128:y,Binary:b,BSONRegExp:w,Code:x,BSONSymbol:C,Timestamp:E,BSONMap:A}=n(16),S=/\[object (\w+)\]/,D=Math.pow(2,63)-1,k=-D,F=/^-?\d+$/,_=["Long","Int32","Double","Decimal128"],T={Array:e=>r(e)?e:i(e)?[]:[e],Binary:e=>new b(""+e,b.SUBTYPE_DEFAULT),Boolean:e=>{if(s(e)){if("true"===e.toLowerCase())return!0;if("false"===e.toLowerCase())return!1;throw new Error(`'${e}' is not a valid boolean string`)}return!!e},Code:e=>new x(""+e,{}),Date:e=>new Date(e),Decimal128:e=>(a(e,"_bsontype")&&_.includes(e._bsontype)&&(e="Long"===e._bsontype?e.toString():e.valueOf()),y.fromString(""+e)),Double:e=>{if("-"===e||""===e)throw new Error(`Value '${e}' is not a valid Double value`);if(s(e)&&e.endsWith("."))throw new Error("Please enter at least one digit after the decimal");const t=c(e);return new m(t)},Int32:e=>{if("-"===e||""===e)throw new Error(`Value '${e}' is not a valid Int32 value`);const t=c(e);if(t>=-2147483648&&t<=2147483647)return new v(t);throw new Error(`Value ${t} is outside the valid Int32 range`)},Int64:e=>{if("-"===e||""===e)throw new Error(`Value '${e}' is not a valid Int64 value`);const t=c(e);if(t>=k&&t<=D)return e.value||"number"==typeof e?g.fromNumber(t):"object"==typeof e?g.fromString(e.toString()):g.fromString(e);throw new Error(`Value ${e.toString()} is outside the valid Int64 range`)},MaxKey:()=>new f,MinKey:()=>new d,Null:()=>null,Object:e=>i(e)?e:{},ObjectId:e=>s(e)&&""!==e?p.createFromHexString(e):new p,BSONRegexp:e=>new w(""+e),String:h,BSONSymbol:e=>new C(""+e),BSONMap:e=>new A(e),Timestamp:e=>{const t=c(e);return E.fromNumber(t)},Undefined:()=>{}},O=l(T);const P=new class{test(e){if(F.test(e)){var t=c(e);return t>=-2147483648&&t<=2147483647}return!1}},R=new class{test(e){return!!F.test(e)&&Number.isSafeInteger(c(e))}};e.exports=new class{cast(e,t){var n=T[t],i=e;return n&&(i=n(e)),"[object Object]"===i?"":i}type(e){return a(e,"_bsontype")?"Long"===e._bsontype?"Int64":"ObjectID"===e._bsontype?"ObjectId":e._bsontype:o(e)?(t=h(e),P.test(t)?"Int32":R.test(t)?"Int64":"Double"):i(e)?"Object":r(e)?"Array":Object.prototype.toString.call(e).replace(S,"$1");var t}castableTypes(e=!1){return!0===e?O:u(O,"Decimal128")}}},function(e,t,n){(function(e){var i;
15
+ /**
16
+ * @license
17
+ * Lodash <https://lodash.com/>
18
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
19
+ * Released under MIT license <https://lodash.com/license>
20
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
21
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
22
+ */(function(){var r="Expected a function",s="__lodash_placeholder__",o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",h="[object Error]",p="[object Function]",d="[object GeneratorFunction]",f="[object Map]",g="[object Number]",m="[object Object]",v="[object RegExp]",y="[object Set]",b="[object String]",w="[object Symbol]",x="[object WeakMap]",C="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",S="[object Float64Array]",D="[object Int8Array]",k="[object Int16Array]",F="[object Int32Array]",_="[object Uint8Array]",T="[object Uint16Array]",O="[object Uint32Array]",P=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,M=/[&<>"']/g,I=RegExp(L.source),N=RegExp(M.source),$=/<%-([\s\S]+?)%>/g,j=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,q=RegExp(H.source),K=/^\s+/,G=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Y=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Z=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,te=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,se=/^\[object .+?Constructor\]$/,oe=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="[\\ud800-\\udfff]",fe="["+pe+"]",ge="["+he+"]",me="\\d+",ve="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",be="[^\\ud800-\\udfff"+pe+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Se="(?:"+ye+"|"+be+")",De="(?:"+Ae+"|"+be+")",ke="(?:"+ge+"|"+we+")"+"?",Fe="[\\ufe0e\\ufe0f]?"+ke+("(?:\\u200d(?:"+[xe,Ce,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+ke+")*"),_e="(?:"+[ve,Ce,Ee].join("|")+")"+Fe,Te="(?:"+[xe+ge+"?",ge,Ce,Ee,de].join("|")+")",Oe=RegExp("['’]","g"),Pe=RegExp(ge,"g"),Re=RegExp(we+"(?="+we+")|"+Te+Fe,"g"),Be=RegExp([Ae+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[fe,Ae,"$"].join("|")+")",De+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[fe,Ae+Se,"$"].join("|")+")",Ae+"?"+Se+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ae+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,_e].join("|"),"g"),Le=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ie=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ne=-1,$e={};$e[A]=$e[S]=$e[D]=$e[k]=$e[F]=$e[_]=$e["[object Uint8ClampedArray]"]=$e[T]=$e[O]=!0,$e[a]=$e[l]=$e[C]=$e[u]=$e[E]=$e[c]=$e[h]=$e[p]=$e[f]=$e[g]=$e[m]=$e[v]=$e[y]=$e[b]=$e[x]=!1;var je={};je[a]=je[l]=je[C]=je[E]=je[u]=je[c]=je[A]=je[S]=je[D]=je[k]=je[F]=je[f]=je[g]=je[m]=je[v]=je[y]=je[b]=je[w]=je[_]=je["[object Uint8ClampedArray]"]=je[T]=je[O]=!0,je[h]=je[p]=je[x]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ze=parseFloat,We=parseInt,Ue="object"==typeof global&&global&&global.Object===Object&&global,He="object"==typeof self&&self&&self.Object===Object&&self,qe=Ue||He||Function("return this")(),Ke=t&&!t.nodeType&&t,Ge=Ke&&"object"==typeof e&&e&&!e.nodeType&&e,Xe=Ge&&Ge.exports===Ke,Je=Xe&&Ue.process,Ye=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Qe=Ye&&Ye.isArrayBuffer,Ze=Ye&&Ye.isDate,et=Ye&&Ye.isMap,tt=Ye&&Ye.isRegExp,nt=Ye&&Ye.isSet,it=Ye&&Ye.isTypedArray;function rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function st(e,t,n,i){for(var r=-1,s=null==e?0:e.length;++r<s;){var o=e[r];t(i,o,n(o),e)}return i}function ot(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function at(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}function ct(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function ht(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function pt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function dt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function ft(e,t,n,i){var r=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++r]);++r<s;)n=t(n,e[r],r,e);return n}function gt(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function mt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var vt=At("length");function yt(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function bt(e,t,n,i){for(var r=e.length,s=n+(i?1:-1);i?s--:++s<r;)if(t(e[s],s,e))return s;return-1}function wt(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):bt(e,Ct,n)}function xt(e,t,n,i){for(var r=n-1,s=e.length;++r<s;)if(i(e[r],t))return r;return-1}function Ct(e){return e!=e}function Et(e,t){var n=null==e?0:e.length;return n?kt(e,t)/n:NaN}function At(e){return function(t){return null==t?void 0:t[e]}}function St(e){return function(t){return null==e?void 0:e[t]}}function Dt(e,t,n,i,r){return r(e,(function(e,r,s){n=i?(i=!1,e):t(n,e,r,s)})),n}function kt(e,t){for(var n,i=-1,r=e.length;++i<r;){var s=t(e[i]);void 0!==s&&(n=void 0===n?s:n+s)}return n}function Ft(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function _t(e){return e?e.slice(0,Kt(e)+1).replace(K,""):e}function Tt(e){return function(t){return e(t)}}function Ot(e,t){return pt(t,(function(t){return e[t]}))}function Pt(e,t){return e.has(t)}function Rt(e,t){for(var n=-1,i=e.length;++n<i&&wt(t,e[n],0)>-1;);return n}function Bt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Lt(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var Mt=St({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),It=St({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Nt(e){return"\\"+Ve[e]}function $t(e){return Le.test(e)}function jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function Vt(e,t){return function(n){return e(t(n))}}function zt(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[r++]=n)}return o}function Wt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Ht(e){return $t(e)?function(e){var t=Re.lastIndex=0;for(;Re.test(e);)++t;return t}(e):vt(e)}function qt(e){return $t(e)?function(e){return e.match(Re)||[]}(e):function(e){return e.split("")}(e)}function Kt(e){for(var t=e.length;t--&&G.test(e.charAt(t)););return t}var Gt=St({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Xt=function e(t){var n,i=(t=null==t?qe:Xt.defaults(qe.Object(),t,Xt.pick(qe,Ie))).Array,G=t.Date,he=t.Error,pe=t.Function,de=t.Math,fe=t.Object,ge=t.RegExp,me=t.String,ve=t.TypeError,ye=i.prototype,be=pe.prototype,we=fe.prototype,xe=t["__core-js_shared__"],Ce=be.toString,Ee=we.hasOwnProperty,Ae=0,Se=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=we.toString,ke=Ce.call(fe),Fe=qe._,_e=ge("^"+Ce.call(Ee).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=Xe?t.Buffer:void 0,Re=t.Symbol,Le=t.Uint8Array,Ve=Te?Te.allocUnsafe:void 0,Ue=Vt(fe.getPrototypeOf,fe),He=fe.create,Ke=we.propertyIsEnumerable,Ge=ye.splice,Je=Re?Re.isConcatSpreadable:void 0,Ye=Re?Re.iterator:void 0,vt=Re?Re.toStringTag:void 0,St=function(){try{var e=es(fe,"defineProperty");return e({},"",{}),e}catch(e){}}(),Jt=t.clearTimeout!==qe.clearTimeout&&t.clearTimeout,Yt=G&&G.now!==qe.Date.now&&G.now,Qt=t.setTimeout!==qe.setTimeout&&t.setTimeout,Zt=de.ceil,en=de.floor,tn=fe.getOwnPropertySymbols,nn=Te?Te.isBuffer:void 0,rn=t.isFinite,sn=ye.join,on=Vt(fe.keys,fe),an=de.max,ln=de.min,un=G.now,cn=t.parseInt,hn=de.random,pn=ye.reverse,dn=es(t,"DataView"),fn=es(t,"Map"),gn=es(t,"Promise"),mn=es(t,"Set"),vn=es(t,"WeakMap"),yn=es(fe,"create"),bn=vn&&new vn,wn={},xn=ks(dn),Cn=ks(fn),En=ks(gn),An=ks(mn),Sn=ks(vn),Dn=Re?Re.prototype:void 0,kn=Dn?Dn.valueOf:void 0,Fn=Dn?Dn.toString:void 0;function _n(e){if(Ho(e)&&!Bo(e)&&!(e instanceof Rn)){if(e instanceof Pn)return e;if(Ee.call(e,"__wrapped__"))return Fs(e)}return new Pn(e)}var Tn=function(){function e(){}return function(t){if(!Uo(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function On(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Rn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function In(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Mn;++t<n;)this.add(e[t])}function Nn(e){var t=this.__data__=new Ln(e);this.size=t.size}function $n(e,t){var n=Bo(e),i=!n&&Ro(e),r=!n&&!i&&No(e),s=!n&&!i&&!r&&Zo(e),o=n||i||r||s,a=o?Ft(e.length,me):[],l=a.length;for(var u in e)!t&&!Ee.call(e,u)||o&&("length"==u||r&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||as(u,l))||a.push(u);return a}function jn(e){var t=e.length;return t?e[Ii(0,t-1)]:void 0}function Vn(e,t){return As(yr(e),Jn(t,0,e.length))}function zn(e){return As(yr(e))}function Wn(e,t,n){(void 0!==n&&!To(e[t],n)||void 0===n&&!(t in e))&&Gn(e,t,n)}function Un(e,t,n){var i=e[t];Ee.call(e,t)&&To(i,n)&&(void 0!==n||t in e)||Gn(e,t,n)}function Hn(e,t){for(var n=e.length;n--;)if(To(e[n][0],t))return n;return-1}function qn(e,t,n,i){return ti(e,(function(e,r,s){t(i,e,n(e),s)})),i}function Kn(e,t){return e&&br(t,xa(t),e)}function Gn(e,t,n){"__proto__"==t&&St?St(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Xn(e,t){for(var n=-1,r=t.length,s=i(r),o=null==e;++n<r;)s[n]=o?void 0:ma(e,t[n]);return s}function Jn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Yn(e,t,n,i,r,s){var o,l=1&t,h=2&t,x=4&t;if(n&&(o=r?n(e,i,r,s):n(e)),void 0!==o)return o;if(!Uo(e))return e;var P=Bo(e);if(P){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return yr(e,o)}else{var R=is(e),B=R==p||R==d;if(No(e))return pr(e,l);if(R==m||R==a||B&&!r){if(o=h||B?{}:ss(e),!l)return h?function(e,t){return br(e,ns(e),t)}(e,function(e,t){return e&&br(t,Ca(t),e)}(o,e)):function(e,t){return br(e,ts(e),t)}(e,Kn(o,e))}else{if(!je[R])return r?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case C:return dr(e);case u:case c:return new i(+e);case E:return function(e,t){var n=t?dr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case S:case D:case k:case F:case _:case"[object Uint8ClampedArray]":case T:case O:return fr(e,n);case f:return new i;case g:case b:return new i(e);case v:return function(e){var t=new e.constructor(e.source,ne.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new i;case w:return r=e,kn?fe(kn.call(r)):{}}var r}(e,R,l)}}s||(s=new Nn);var L=s.get(e);if(L)return L;s.set(e,o),Jo(e)?e.forEach((function(i){o.add(Yn(i,t,n,i,e,s))})):qo(e)&&e.forEach((function(i,r){o.set(r,Yn(i,t,n,r,e,s))}));var M=P?void 0:(x?h?Kr:qr:h?Ca:xa)(e);return ot(M||e,(function(i,r){M&&(i=e[r=i]),Un(o,r,Yn(i,t,n,r,e,s))})),o}function Qn(e,t,n){var i=n.length;if(null==e)return!i;for(e=fe(e);i--;){var r=n[i],s=t[r],o=e[r];if(void 0===o&&!(r in e)||!s(o))return!1}return!0}function Zn(e,t,n){if("function"!=typeof e)throw new ve(r);return ws((function(){e.apply(void 0,n)}),t)}function ei(e,t,n,i){var r=-1,s=ct,o=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=pt(t,Tt(n))),i?(s=ht,o=!1):t.length>=200&&(s=Pt,o=!1,t=new In(t));e:for(;++r<a;){var c=e[r],h=null==n?c:n(c);if(c=i||0!==c?c:0,o&&h==h){for(var p=u;p--;)if(t[p]===h)continue e;l.push(c)}else s(t,h,i)||l.push(c)}return l}_n.templateSettings={escape:$,evaluate:j,interpolate:V,variable:"",imports:{_:_n}},_n.prototype=On.prototype,_n.prototype.constructor=_n,Pn.prototype=Tn(On.prototype),Pn.prototype.constructor=Pn,Rn.prototype=Tn(On.prototype),Rn.prototype.constructor=Rn,Bn.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},Bn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Bn.prototype.get=function(e){var t=this.__data__;if(yn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ee.call(t,e)?t[e]:void 0},Bn.prototype.has=function(e){var t=this.__data__;return yn?void 0!==t[e]:Ee.call(t,e)},Bn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yn&&void 0===t?"__lodash_hash_undefined__":t,this},Ln.prototype.clear=function(){this.__data__=[],this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=Hn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Ln.prototype.get=function(e){var t=this.__data__,n=Hn(t,e);return n<0?void 0:t[n][1]},Ln.prototype.has=function(e){return Hn(this.__data__,e)>-1},Ln.prototype.set=function(e,t){var n=this.__data__,i=Hn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Mn.prototype.clear=function(){this.size=0,this.__data__={hash:new Bn,map:new(fn||Ln),string:new Bn}},Mn.prototype.delete=function(e){var t=Qr(this,e).delete(e);return this.size-=t?1:0,t},Mn.prototype.get=function(e){return Qr(this,e).get(e)},Mn.prototype.has=function(e){return Qr(this,e).has(e)},Mn.prototype.set=function(e,t){var n=Qr(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},In.prototype.add=In.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},In.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.clear=function(){this.__data__=new Ln,this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Nn.prototype.get=function(e){return this.__data__.get(e)},Nn.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ln){var i=n.__data__;if(!fn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mn(i)}return n.set(e,t),this.size=n.size,this};var ti=Cr(ui),ni=Cr(ci,!0);function ii(e,t){var n=!0;return ti(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function ri(e,t,n){for(var i=-1,r=e.length;++i<r;){var s=e[i],o=t(s);if(null!=o&&(void 0===a?o==o&&!Qo(o):n(o,a)))var a=o,l=s}return l}function si(e,t){var n=[];return ti(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function oi(e,t,n,i,r){var s=-1,o=e.length;for(n||(n=os),r||(r=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?oi(a,t-1,n,i,r):dt(r,a):i||(r[r.length]=a)}return r}var ai=Er(),li=Er(!0);function ui(e,t){return e&&ai(e,t,xa)}function ci(e,t){return e&&li(e,t,xa)}function hi(e,t){return ut(t,(function(t){return Vo(e[t])}))}function pi(e,t){for(var n=0,i=(t=lr(t,e)).length;null!=e&&n<i;)e=e[Ds(t[n++])];return n&&n==i?e:void 0}function di(e,t,n){var i=t(e);return Bo(e)?i:dt(i,n(e))}function fi(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":vt&&vt in fe(e)?function(e){var t=Ee.call(e,vt),n=e[vt];try{e[vt]=void 0;var i=!0}catch(e){}var r=De.call(e);i&&(t?e[vt]=n:delete e[vt]);return r}(e):function(e){return De.call(e)}(e)}function gi(e,t){return e>t}function mi(e,t){return null!=e&&Ee.call(e,t)}function vi(e,t){return null!=e&&t in fe(e)}function yi(e,t,n){for(var r=n?ht:ct,s=e[0].length,o=e.length,a=o,l=i(o),u=1/0,c=[];a--;){var h=e[a];a&&t&&(h=pt(h,Tt(t))),u=ln(h.length,u),l[a]=!n&&(t||s>=120&&h.length>=120)?new In(a&&h):void 0}h=e[0];var p=-1,d=l[0];e:for(;++p<s&&c.length<u;){var f=h[p],g=t?t(f):f;if(f=n||0!==f?f:0,!(d?Pt(d,g):r(c,g,n))){for(a=o;--a;){var m=l[a];if(!(m?Pt(m,g):r(e[a],g,n)))continue e}d&&d.push(g),c.push(f)}}return c}function bi(e,t,n){var i=null==(e=ms(e,t=lr(t,e)))?e:e[Ds($s(t))];return null==i?void 0:rt(i,e,n)}function wi(e){return Ho(e)&&fi(e)==a}function xi(e,t,n,i,r){return e===t||(null==e||null==t||!Ho(e)&&!Ho(t)?e!=e&&t!=t:function(e,t,n,i,r,s){var o=Bo(e),p=Bo(t),d=o?l:is(e),x=p?l:is(t),A=(d=d==a?m:d)==m,S=(x=x==a?m:x)==m,D=d==x;if(D&&No(e)){if(!No(t))return!1;o=!0,A=!1}if(D&&!A)return s||(s=new Nn),o||Zo(e)?Ur(e,t,n,i,r,s):function(e,t,n,i,r,s,o){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!s(new Le(e),new Le(t)));case u:case c:case g:return To(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case b:return e==t+"";case f:var a=jt;case y:var l=1&i;if(a||(a=Wt),e.size!=t.size&&!l)return!1;var p=o.get(e);if(p)return p==t;i|=2,o.set(e,t);var d=Ur(a(e),a(t),i,r,s,o);return o.delete(e),d;case w:if(kn)return kn.call(e)==kn.call(t)}return!1}(e,t,d,n,i,r,s);if(!(1&n)){var k=A&&Ee.call(e,"__wrapped__"),F=S&&Ee.call(t,"__wrapped__");if(k||F){var _=k?e.value():e,T=F?t.value():t;return s||(s=new Nn),r(_,T,n,i,s)}}if(!D)return!1;return s||(s=new Nn),function(e,t,n,i,r,s){var o=1&n,a=qr(e),l=a.length,u=qr(t).length;if(l!=u&&!o)return!1;var c=l;for(;c--;){var h=a[c];if(!(o?h in t:Ee.call(t,h)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var f=!0;s.set(e,t),s.set(t,e);var g=o;for(;++c<l;){h=a[c];var m=e[h],v=t[h];if(i)var y=o?i(v,m,h,t,e,s):i(m,v,h,e,t,s);if(!(void 0===y?m===v||r(m,v,n,i,s):y)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,n,i,r,s)}(e,t,n,i,xi,r))}function Ci(e,t,n,i){var r=n.length,s=r,o=!i;if(null==e)return!s;for(e=fe(e);r--;){var a=n[r];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<s;){var l=(a=n[r])[0],u=e[l],c=a[1];if(o&&a[2]){if(void 0===u&&!(l in e))return!1}else{var h=new Nn;if(i)var p=i(u,c,l,e,t,h);if(!(void 0===p?xi(c,u,3,i,h):p))return!1}}return!0}function Ei(e){return!(!Uo(e)||(t=e,Se&&Se in t))&&(Vo(e)?_e:se).test(ks(e));var t}function Ai(e){return"function"==typeof e?e:null==e?Ka:"object"==typeof e?Bo(e)?Ti(e[0],e[1]):_i(e):nl(e)}function Si(e){if(!ps(e))return on(e);var t=[];for(var n in fe(e))Ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Di(e){if(!Uo(e))return function(e){var t=[];if(null!=e)for(var n in fe(e))t.push(n);return t}(e);var t=ps(e),n=[];for(var i in e)("constructor"!=i||!t&&Ee.call(e,i))&&n.push(i);return n}function ki(e,t){return e<t}function Fi(e,t){var n=-1,r=Mo(e)?i(e.length):[];return ti(e,(function(e,i,s){r[++n]=t(e,i,s)})),r}function _i(e){var t=Zr(e);return 1==t.length&&t[0][2]?fs(t[0][0],t[0][1]):function(n){return n===e||Ci(n,e,t)}}function Ti(e,t){return us(e)&&ds(t)?fs(Ds(e),t):function(n){var i=ma(n,e);return void 0===i&&i===t?va(n,e):xi(t,i,3)}}function Oi(e,t,n,i,r){e!==t&&ai(t,(function(s,o){if(r||(r=new Nn),Uo(s))!function(e,t,n,i,r,s,o){var a=ys(e,n),l=ys(t,n),u=o.get(l);if(u)return void Wn(e,n,u);var c=s?s(a,l,n+"",e,t,o):void 0,h=void 0===c;if(h){var p=Bo(l),d=!p&&No(l),f=!p&&!d&&Zo(l);c=l,p||d||f?Bo(a)?c=a:Io(a)?c=yr(a):d?(h=!1,c=pr(l,!0)):f?(h=!1,c=fr(l,!0)):c=[]:Go(l)||Ro(l)?(c=a,Ro(a)?c=aa(a):Uo(a)&&!Vo(a)||(c=ss(l))):h=!1}h&&(o.set(l,c),r(c,l,i,s,o),o.delete(l));Wn(e,n,c)}(e,t,o,n,Oi,i,r);else{var a=i?i(ys(e,o),s,o+"",e,t,r):void 0;void 0===a&&(a=s),Wn(e,o,a)}}),Ca)}function Pi(e,t){var n=e.length;if(n)return as(t+=t<0?n:0,n)?e[t]:void 0}function Ri(e,t,n){t=t.length?pt(t,(function(e){return Bo(e)?function(t){return pi(t,1===e.length?e[0]:e)}:e})):[Ka];var i=-1;return t=pt(t,Tt(Yr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fi(e,(function(e,n,r){return{criteria:pt(t,(function(t){return t(e)})),index:++i,value:e}})),(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,s=t.criteria,o=r.length,a=n.length;for(;++i<o;){var l=gr(r[i],s[i]);if(l){if(i>=a)return l;var u=n[i];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Bi(e,t,n){for(var i=-1,r=t.length,s={};++i<r;){var o=t[i],a=pi(e,o);n(a,o)&&zi(s,lr(o,e),a)}return s}function Li(e,t,n,i){var r=i?xt:wt,s=-1,o=t.length,a=e;for(e===t&&(t=yr(t)),n&&(a=pt(e,Tt(n)));++s<o;)for(var l=0,u=t[s],c=n?n(u):u;(l=r(a,c,l,i))>-1;)a!==e&&Ge.call(a,l,1),Ge.call(e,l,1);return e}function Mi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==s){var s=r;as(r)?Ge.call(e,r,1):er(e,r)}}return e}function Ii(e,t){return e+en(hn()*(t-e+1))}function Ni(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function $i(e,t){return xs(gs(e,t,Ka),e+"")}function ji(e){return jn(Ta(e))}function Vi(e,t){var n=Ta(e);return As(n,Jn(t,0,n.length))}function zi(e,t,n,i){if(!Uo(e))return e;for(var r=-1,s=(t=lr(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var l=Ds(t[r]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(r!=o){var c=a[l];void 0===(u=i?i(c,l,a):void 0)&&(u=Uo(c)?c:as(t[r+1])?[]:{})}Un(a,l,u),a=a[l]}return e}var Wi=bn?function(e,t){return bn.set(e,t),e}:Ka,Ui=St?function(e,t){return St(e,"toString",{configurable:!0,enumerable:!1,value:Ua(t),writable:!0})}:Ka;function Hi(e){return As(Ta(e))}function qi(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=i(s);++r<s;)o[r]=e[r+t];return o}function Ki(e,t){var n;return ti(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function Gi(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var s=i+r>>>1,o=e[s];null!==o&&!Qo(o)&&(n?o<=t:o<t)?i=s+1:r=s}return r}return Xi(e,t,Ka,n)}function Xi(e,t,n,i){var r=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,a=null===t,l=Qo(t),u=void 0===t;r<s;){var c=en((r+s)/2),h=n(e[c]),p=void 0!==h,d=null===h,f=h==h,g=Qo(h);if(o)var m=i||f;else m=u?f&&(i||p):a?f&&p&&(i||!d):l?f&&p&&!d&&(i||!g):!d&&!g&&(i?h<=t:h<t);m?r=c+1:s=c}return ln(s,4294967294)}function Ji(e,t){for(var n=-1,i=e.length,r=0,s=[];++n<i;){var o=e[n],a=t?t(o):o;if(!n||!To(a,l)){var l=a;s[r++]=0===o?0:o}}return s}function Yi(e){return"number"==typeof e?e:Qo(e)?NaN:+e}function Qi(e){if("string"==typeof e)return e;if(Bo(e))return pt(e,Qi)+"";if(Qo(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zi(e,t,n){var i=-1,r=ct,s=e.length,o=!0,a=[],l=a;if(n)o=!1,r=ht;else if(s>=200){var u=t?null:Nr(e);if(u)return Wt(u);o=!1,r=Pt,l=new In}else l=t?[]:a;e:for(;++i<s;){var c=e[i],h=t?t(c):c;if(c=n||0!==c?c:0,o&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue e;t&&l.push(h),a.push(c)}else r(l,h,n)||(l!==a&&l.push(h),a.push(c))}return a}function er(e,t){return null==(e=ms(e,t=lr(t,e)))||delete e[Ds($s(t))]}function tr(e,t,n,i){return zi(e,t,n(pi(e,t)),i)}function nr(e,t,n,i){for(var r=e.length,s=i?r:-1;(i?s--:++s<r)&&t(e[s],s,e););return n?qi(e,i?0:s,i?s+1:r):qi(e,i?s+1:0,i?r:s)}function ir(e,t){var n=e;return n instanceof Rn&&(n=n.value()),ft(t,(function(e,t){return t.func.apply(t.thisArg,dt([e],t.args))}),n)}function rr(e,t,n){var r=e.length;if(r<2)return r?Zi(e[0]):[];for(var s=-1,o=i(r);++s<r;)for(var a=e[s],l=-1;++l<r;)l!=s&&(o[s]=ei(o[s]||a,e[l],t,n));return Zi(oi(o,1),t,n)}function sr(e,t,n){for(var i=-1,r=e.length,s=t.length,o={};++i<r;){var a=i<s?t[i]:void 0;n(o,e[i],a)}return o}function or(e){return Io(e)?e:[]}function ar(e){return"function"==typeof e?e:Ka}function lr(e,t){return Bo(e)?e:us(e,t)?[e]:Ss(la(e))}var ur=$i;function cr(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:qi(e,t,n)}var hr=Jt||function(e){return qe.clearTimeout(e)};function pr(e,t){if(t)return e.slice();var n=e.length,i=Ve?Ve(n):new e.constructor(n);return e.copy(i),i}function dr(e){var t=new e.constructor(e.byteLength);return new Le(t).set(new Le(e)),t}function fr(e,t){var n=t?dr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gr(e,t){if(e!==t){var n=void 0!==e,i=null===e,r=e==e,s=Qo(e),o=void 0!==t,a=null===t,l=t==t,u=Qo(t);if(!a&&!u&&!s&&e>t||s&&o&&l&&!a&&!u||i&&o&&l||!n&&l||!r)return 1;if(!i&&!s&&!u&&e<t||u&&n&&r&&!i&&!s||a&&n&&r||!o&&r||!l)return-1}return 0}function mr(e,t,n,r){for(var s=-1,o=e.length,a=n.length,l=-1,u=t.length,c=an(o-a,0),h=i(u+c),p=!r;++l<u;)h[l]=t[l];for(;++s<a;)(p||s<o)&&(h[n[s]]=e[s]);for(;c--;)h[l++]=e[s++];return h}function vr(e,t,n,r){for(var s=-1,o=e.length,a=-1,l=n.length,u=-1,c=t.length,h=an(o-l,0),p=i(h+c),d=!r;++s<h;)p[s]=e[s];for(var f=s;++u<c;)p[f+u]=t[u];for(;++a<l;)(d||s<o)&&(p[f+n[a]]=e[s++]);return p}function yr(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function br(e,t,n,i){var r=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=i?i(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),r?Gn(n,a,l):Un(n,a,l)}return n}function wr(e,t){return function(n,i){var r=Bo(n)?st:qn,s=t?t():{};return r(n,e,Yr(i,2),s)}}function xr(e){return $i((function(t,n){var i=-1,r=n.length,s=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(r--,s):void 0,o&&ls(n[0],n[1],o)&&(s=r<3?void 0:s,r=1),t=fe(t);++i<r;){var a=n[i];a&&e(t,a,i,s)}return t}))}function Cr(e,t){return function(n,i){if(null==n)return n;if(!Mo(n))return e(n,i);for(var r=n.length,s=t?r:-1,o=fe(n);(t?s--:++s<r)&&!1!==i(o[s],s,o););return n}}function Er(e){return function(t,n,i){for(var r=-1,s=fe(t),o=i(t),a=o.length;a--;){var l=o[e?a:++r];if(!1===n(s[l],l,s))break}return t}}function Ar(e){return function(t){var n=$t(t=la(t))?qt(t):void 0,i=n?n[0]:t.charAt(0),r=n?cr(n,1).join(""):t.slice(1);return i[e]()+r}}function Sr(e){return function(t){return ft(Va(Ra(t).replace(Oe,"")),e,"")}}function Dr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Tn(e.prototype),i=e.apply(n,t);return Uo(i)?i:n}}function kr(e){return function(t,n,i){var r=fe(t);if(!Mo(t)){var s=Yr(n,3);t=xa(t),n=function(e){return s(r[e],e,r)}}var o=e(t,n,i);return o>-1?r[s?t[o]:o]:void 0}}function Fr(e){return Hr((function(t){var n=t.length,i=n,s=Pn.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new ve(r);if(s&&!a&&"wrapper"==Xr(o))var a=new Pn([],!0)}for(i=a?i:n;++i<n;){var l=Xr(o=t[i]),u="wrapper"==l?Gr(o):void 0;a=u&&cs(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?a[Xr(u[0])].apply(a,u[3]):1==o.length&&cs(o)?a[l]():a.thru(o)}return function(){var e=arguments,i=e[0];if(a&&1==e.length&&Bo(i))return a.plant(i).value();for(var r=0,s=n?t[r].apply(this,e):i;++r<n;)s=t[r].call(this,s);return s}}))}function _r(e,t,n,r,s,o,a,l,u,c){var h=128&t,p=1&t,d=2&t,f=24&t,g=512&t,m=d?void 0:Dr(e);return function v(){for(var y=arguments.length,b=i(y),w=y;w--;)b[w]=arguments[w];if(f)var x=Jr(v),C=Lt(b,x);if(r&&(b=mr(b,r,s,f)),o&&(b=vr(b,o,a,f)),y-=C,f&&y<c){var E=zt(b,x);return Mr(e,t,_r,v.placeholder,n,b,E,l,u,c-y)}var A=p?n:this,S=d?A[e]:e;return y=b.length,l?b=vs(b,l):g&&y>1&&b.reverse(),h&&u<y&&(b.length=u),this&&this!==qe&&this instanceof v&&(S=m||Dr(S)),S.apply(A,b)}}function Tr(e,t){return function(n,i){return function(e,t,n,i){return ui(e,(function(e,r,s){t(i,n(e),r,s)})),i}(n,e,t(i),{})}}function Or(e,t){return function(n,i){var r;if(void 0===n&&void 0===i)return t;if(void 0!==n&&(r=n),void 0!==i){if(void 0===r)return i;"string"==typeof n||"string"==typeof i?(n=Qi(n),i=Qi(i)):(n=Yi(n),i=Yi(i)),r=e(n,i)}return r}}function Pr(e){return Hr((function(t){return t=pt(t,Tt(Yr())),$i((function(n){var i=this;return e(t,(function(e){return rt(e,i,n)}))}))}))}function Rr(e,t){var n=(t=void 0===t?" ":Qi(t)).length;if(n<2)return n?Ni(t,e):t;var i=Ni(t,Zt(e/Ht(t)));return $t(t)?cr(qt(i),0,e).join(""):i.slice(0,e)}function Br(e){return function(t,n,r){return r&&"number"!=typeof r&&ls(t,n,r)&&(n=r=void 0),t=ia(t),void 0===n?(n=t,t=0):n=ia(n),function(e,t,n,r){for(var s=-1,o=an(Zt((t-e)/(n||1)),0),a=i(o);o--;)a[r?o:++s]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:ia(r),e)}}function Lr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=oa(t),n=oa(n)),e(t,n)}}function Mr(e,t,n,i,r,s,o,a,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var h=[e,t,r,c?s:void 0,c?o:void 0,c?void 0:s,c?void 0:o,a,l,u],p=n.apply(void 0,h);return cs(e)&&bs(p,h),p.placeholder=i,Cs(p,e,t)}function Ir(e){var t=de[e];return function(e,n){if(e=oa(e),(n=null==n?0:ln(ra(n),292))&&rn(e)){var i=(la(e)+"e").split("e");return+((i=(la(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Nr=mn&&1/Wt(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Qa;function $r(e){return function(t){var n=is(t);return n==f?jt(t):n==y?Ut(t):function(e,t){return pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function jr(e,t,n,o,a,l,u,c){var h=2&t;if(!h&&"function"!=typeof e)throw new ve(r);var p=o?o.length:0;if(p||(t&=-97,o=a=void 0),u=void 0===u?u:an(ra(u),0),c=void 0===c?c:ra(c),p-=a?a.length:0,64&t){var d=o,f=a;o=a=void 0}var g=h?void 0:Gr(e),m=[e,t,n,o,a,d,f,l,u,c];if(g&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<131,a=128==i&&8==n||128==i&&256==n&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?mr(u,l,t[4]):l,e[4]=u?zt(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?vr(u,l,t[6]):l,e[6]=u?zt(e[5],s):t[6]);(l=t[7])&&(e[7]=l);128&i&&(e[8]=null==e[8]?t[8]:ln(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(m,g),e=m[0],t=m[1],n=m[2],o=m[3],a=m[4],!(c=m[9]=void 0===m[9]?h?0:e.length:an(m[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var r=Dr(e);return function s(){for(var o=arguments.length,a=i(o),l=o,u=Jr(s);l--;)a[l]=arguments[l];var c=o<3&&a[0]!==u&&a[o-1]!==u?[]:zt(a,u);if((o-=c.length)<n)return Mr(e,t,_r,s.placeholder,void 0,a,c,void 0,void 0,n-o);var h=this&&this!==qe&&this instanceof s?r:e;return rt(h,this,a)}}(e,t,c):32!=t&&33!=t||a.length?_r.apply(void 0,m):function(e,t,n,r){var s=1&t,o=Dr(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=r.length,h=i(c+l),p=this&&this!==qe&&this instanceof t?o:e;++u<c;)h[u]=r[u];for(;l--;)h[u++]=arguments[++a];return rt(p,s?n:this,h)}}(e,t,n,o);else var v=function(e,t,n){var i=1&t,r=Dr(e);return function t(){var s=this&&this!==qe&&this instanceof t?r:e;return s.apply(i?n:this,arguments)}}(e,t,n);return Cs((g?Wi:bs)(v,m),e,t)}function Vr(e,t,n,i){return void 0===e||To(e,we[n])&&!Ee.call(i,n)?t:e}function zr(e,t,n,i,r,s){return Uo(e)&&Uo(t)&&(s.set(t,e),Oi(e,t,void 0,zr,s),s.delete(t)),e}function Wr(e){return Go(e)?void 0:e}function Ur(e,t,n,i,r,s){var o=1&n,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(e),c=s.get(t);if(u&&c)return u==t&&c==e;var h=-1,p=!0,d=2&n?new In:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var f=e[h],g=t[h];if(i)var m=o?i(g,f,h,t,e,s):i(f,g,h,e,t,s);if(void 0!==m){if(m)continue;p=!1;break}if(d){if(!mt(t,(function(e,t){if(!Pt(d,t)&&(f===e||r(f,e,n,i,s)))return d.push(t)}))){p=!1;break}}else if(f!==g&&!r(f,g,n,i,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Hr(e){return xs(gs(e,void 0,Bs),e+"")}function qr(e){return di(e,xa,ts)}function Kr(e){return di(e,Ca,ns)}var Gr=bn?function(e){return bn.get(e)}:Qa;function Xr(e){for(var t=e.name+"",n=wn[t],i=Ee.call(wn,t)?n.length:0;i--;){var r=n[i],s=r.func;if(null==s||s==e)return r.name}return t}function Jr(e){return(Ee.call(_n,"placeholder")?_n:e).placeholder}function Yr(){var e=_n.iteratee||Ga;return e=e===Ga?Ai:e,arguments.length?e(arguments[0],arguments[1]):e}function Qr(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Zr(e){for(var t=xa(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,ds(r)]}return t}function es(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ei(n)?n:void 0}var ts=tn?function(e){return null==e?[]:(e=fe(e),ut(tn(e),(function(t){return Ke.call(e,t)})))}:sl,ns=tn?function(e){for(var t=[];e;)dt(t,ts(e)),e=Ue(e);return t}:sl,is=fi;function rs(e,t,n){for(var i=-1,r=(t=lr(t,e)).length,s=!1;++i<r;){var o=Ds(t[i]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&Wo(r)&&as(o,r)&&(Bo(e)||Ro(e))}function ss(e){return"function"!=typeof e.constructor||ps(e)?{}:Tn(Ue(e))}function os(e){return Bo(e)||Ro(e)||!!(Je&&e&&e[Je])}function as(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ae.test(e))&&e>-1&&e%1==0&&e<t}function ls(e,t,n){if(!Uo(n))return!1;var i=typeof t;return!!("number"==i?Mo(n)&&as(t,n.length):"string"==i&&t in n)&&To(n[t],e)}function us(e,t){if(Bo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Qo(e))||(W.test(e)||!z.test(e)||null!=t&&e in fe(t))}function cs(e){var t=Xr(e),n=_n[t];if("function"!=typeof n||!(t in Rn.prototype))return!1;if(e===n)return!0;var i=Gr(n);return!!i&&e===i[0]}(dn&&is(new dn(new ArrayBuffer(1)))!=E||fn&&is(new fn)!=f||gn&&"[object Promise]"!=is(gn.resolve())||mn&&is(new mn)!=y||vn&&is(new vn)!=x)&&(is=function(e){var t=fi(e),n=t==m?e.constructor:void 0,i=n?ks(n):"";if(i)switch(i){case xn:return E;case Cn:return f;case En:return"[object Promise]";case An:return y;case Sn:return x}return t});var hs=xe?Vo:ol;function ps(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function ds(e){return e==e&&!Uo(e)}function fs(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in fe(n)))}}function gs(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=an(r.length-t,0),a=i(o);++s<o;)a[s]=r[t+s];s=-1;for(var l=i(t+1);++s<t;)l[s]=r[s];return l[t]=n(a),rt(e,this,l)}}function ms(e,t){return t.length<2?e:pi(e,qi(t,0,-1))}function vs(e,t){for(var n=e.length,i=ln(t.length,n),r=yr(e);i--;){var s=t[i];e[i]=as(s,n)?r[s]:void 0}return e}function ys(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var bs=Es(Wi),ws=Qt||function(e,t){return qe.setTimeout(e,t)},xs=Es(Ui);function Cs(e,t,n){var i=t+"";return xs(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return ot(o,(function(n){var i="_."+n[0];t&n[1]&&!ct(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Y):[]}(i),n)))}function Es(e){var t=0,n=0;return function(){var i=un(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function As(e,t){var n=-1,i=e.length,r=i-1;for(t=void 0===t?i:t;++n<t;){var s=Ii(n,r),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var Ss=function(e){var t=Ao(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(U,(function(e,n,i,r){t.push(i?r.replace(ee,"$1"):n||e)})),t}));function Ds(e){if("string"==typeof e||Qo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ks(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fs(e){if(e instanceof Rn)return e.clone();var t=new Pn(e.__wrapped__,e.__chain__);return t.__actions__=yr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var _s=$i((function(e,t){return Io(e)?ei(e,oi(t,1,Io,!0)):[]})),Ts=$i((function(e,t){var n=$s(t);return Io(n)&&(n=void 0),Io(e)?ei(e,oi(t,1,Io,!0),Yr(n,2)):[]})),Os=$i((function(e,t){var n=$s(t);return Io(n)&&(n=void 0),Io(e)?ei(e,oi(t,1,Io,!0),void 0,n):[]}));function Ps(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ra(n);return r<0&&(r=an(i+r,0)),bt(e,Yr(t,3),r)}function Rs(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i-1;return void 0!==n&&(r=ra(n),r=n<0?an(i+r,0):ln(r,i-1)),bt(e,Yr(t,3),r,!0)}function Bs(e){return(null==e?0:e.length)?oi(e,1):[]}function Ls(e){return e&&e.length?e[0]:void 0}var Ms=$i((function(e){var t=pt(e,or);return t.length&&t[0]===e[0]?yi(t):[]})),Is=$i((function(e){var t=$s(e),n=pt(e,or);return t===$s(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?yi(n,Yr(t,2)):[]})),Ns=$i((function(e){var t=$s(e),n=pt(e,or);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?yi(n,void 0,t):[]}));function $s(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var js=$i(Vs);function Vs(e,t){return e&&e.length&&t&&t.length?Li(e,t):e}var zs=Hr((function(e,t){var n=null==e?0:e.length,i=Xn(e,t);return Mi(e,pt(t,(function(e){return as(e,n)?+e:e})).sort(gr)),i}));function Ws(e){return null==e?e:pn.call(e)}var Us=$i((function(e){return Zi(oi(e,1,Io,!0))})),Hs=$i((function(e){var t=$s(e);return Io(t)&&(t=void 0),Zi(oi(e,1,Io,!0),Yr(t,2))})),qs=$i((function(e){var t=$s(e);return t="function"==typeof t?t:void 0,Zi(oi(e,1,Io,!0),void 0,t)}));function Ks(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Io(e))return t=an(e.length,t),!0})),Ft(t,(function(t){return pt(e,At(t))}))}function Gs(e,t){if(!e||!e.length)return[];var n=Ks(e);return null==t?n:pt(n,(function(e){return rt(t,void 0,e)}))}var Xs=$i((function(e,t){return Io(e)?ei(e,t):[]})),Js=$i((function(e){return rr(ut(e,Io))})),Ys=$i((function(e){var t=$s(e);return Io(t)&&(t=void 0),rr(ut(e,Io),Yr(t,2))})),Qs=$i((function(e){var t=$s(e);return t="function"==typeof t?t:void 0,rr(ut(e,Io),void 0,t)})),Zs=$i(Ks);var eo=$i((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gs(e,n)}));function to(e){var t=_n(e);return t.__chain__=!0,t}function no(e,t){return t(e)}var io=Hr((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,r=function(t){return Xn(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Rn&&as(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:no,args:[r],thisArg:void 0}),new Pn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(r)}));var ro=wr((function(e,t,n){Ee.call(e,n)?++e[n]:Gn(e,n,1)}));var so=kr(Ps),oo=kr(Rs);function ao(e,t){return(Bo(e)?ot:ti)(e,Yr(t,3))}function lo(e,t){return(Bo(e)?at:ni)(e,Yr(t,3))}var uo=wr((function(e,t,n){Ee.call(e,n)?e[n].push(t):Gn(e,n,[t])}));var co=$i((function(e,t,n){var r=-1,s="function"==typeof t,o=Mo(e)?i(e.length):[];return ti(e,(function(e){o[++r]=s?rt(t,e,n):bi(e,t,n)})),o})),ho=wr((function(e,t,n){Gn(e,n,t)}));function po(e,t){return(Bo(e)?pt:Fi)(e,Yr(t,3))}var fo=wr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var go=$i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ls(e,t[0],t[1])?t=[]:n>2&&ls(t[0],t[1],t[2])&&(t=[t[0]]),Ri(e,oi(t,1),[])})),mo=Yt||function(){return qe.Date.now()};function vo(e,t,n){return t=n?void 0:t,jr(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function yo(e,t){var n;if("function"!=typeof t)throw new ve(r);return e=ra(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var bo=$i((function(e,t,n){var i=1;if(n.length){var r=zt(n,Jr(bo));i|=32}return jr(e,i,t,n,r)})),wo=$i((function(e,t,n){var i=3;if(n.length){var r=zt(n,Jr(wo));i|=32}return jr(t,i,e,n,r)}));function xo(e,t,n){var i,s,o,a,l,u,c=0,h=!1,p=!1,d=!0;if("function"!=typeof e)throw new ve(r);function f(t){var n=i,r=s;return i=s=void 0,c=t,a=e.apply(r,n)}function g(e){return c=e,l=ws(v,t),h?f(e):a}function m(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-c>=o}function v(){var e=mo();if(m(e))return y(e);l=ws(v,function(e){var n=t-(e-u);return p?ln(n,o-(e-c)):n}(e))}function y(e){return l=void 0,d&&i?f(e):(i=s=void 0,a)}function b(){var e=mo(),n=m(e);if(i=arguments,s=this,u=e,n){if(void 0===l)return g(u);if(p)return hr(l),l=ws(v,t),f(u)}return void 0===l&&(l=ws(v,t)),a}return t=oa(t)||0,Uo(n)&&(h=!!n.leading,o=(p="maxWait"in n)?an(oa(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==l&&hr(l),c=0,i=u=s=l=void 0},b.flush=function(){return void 0===l?a:y(mo())},b}var Co=$i((function(e,t){return Zn(e,1,t)})),Eo=$i((function(e,t,n){return Zn(e,oa(t)||0,n)}));function Ao(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(r);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(Ao.Cache||Mn),n}function So(e){if("function"!=typeof e)throw new ve(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ao.Cache=Mn;var Do=ur((function(e,t){var n=(t=1==t.length&&Bo(t[0])?pt(t[0],Tt(Yr())):pt(oi(t,1),Tt(Yr()))).length;return $i((function(i){for(var r=-1,s=ln(i.length,n);++r<s;)i[r]=t[r].call(this,i[r]);return rt(e,this,i)}))})),ko=$i((function(e,t){return jr(e,32,void 0,t,zt(t,Jr(ko)))})),Fo=$i((function(e,t){return jr(e,64,void 0,t,zt(t,Jr(Fo)))})),_o=Hr((function(e,t){return jr(e,256,void 0,void 0,void 0,t)}));function To(e,t){return e===t||e!=e&&t!=t}var Oo=Lr(gi),Po=Lr((function(e,t){return e>=t})),Ro=wi(function(){return arguments}())?wi:function(e){return Ho(e)&&Ee.call(e,"callee")&&!Ke.call(e,"callee")},Bo=i.isArray,Lo=Qe?Tt(Qe):function(e){return Ho(e)&&fi(e)==C};function Mo(e){return null!=e&&Wo(e.length)&&!Vo(e)}function Io(e){return Ho(e)&&Mo(e)}var No=nn||ol,$o=Ze?Tt(Ze):function(e){return Ho(e)&&fi(e)==c};function jo(e){if(!Ho(e))return!1;var t=fi(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Go(e)}function Vo(e){if(!Uo(e))return!1;var t=fi(e);return t==p||t==d||"[object AsyncFunction]"==t||"[object Proxy]"==t}function zo(e){return"number"==typeof e&&e==ra(e)}function Wo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Uo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ho(e){return null!=e&&"object"==typeof e}var qo=et?Tt(et):function(e){return Ho(e)&&is(e)==f};function Ko(e){return"number"==typeof e||Ho(e)&&fi(e)==g}function Go(e){if(!Ho(e)||fi(e)!=m)return!1;var t=Ue(e);if(null===t)return!0;var n=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==ke}var Xo=tt?Tt(tt):function(e){return Ho(e)&&fi(e)==v};var Jo=nt?Tt(nt):function(e){return Ho(e)&&is(e)==y};function Yo(e){return"string"==typeof e||!Bo(e)&&Ho(e)&&fi(e)==b}function Qo(e){return"symbol"==typeof e||Ho(e)&&fi(e)==w}var Zo=it?Tt(it):function(e){return Ho(e)&&Wo(e.length)&&!!$e[fi(e)]};var ea=Lr(ki),ta=Lr((function(e,t){return e<=t}));function na(e){if(!e)return[];if(Mo(e))return Yo(e)?qt(e):yr(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=is(e);return(t==f?jt:t==y?Wt:Ta)(e)}function ia(e){return e?(e=oa(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ra(e){var t=ia(e),n=t%1;return t==t?n?t-n:t:0}function sa(e){return e?Jn(ra(e),0,4294967295):0}function oa(e){if("number"==typeof e)return e;if(Qo(e))return NaN;if(Uo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Uo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=_t(e);var n=re.test(e);return n||oe.test(e)?We(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function aa(e){return br(e,Ca(e))}function la(e){return null==e?"":Qi(e)}var ua=xr((function(e,t){if(ps(t)||Mo(t))br(t,xa(t),e);else for(var n in t)Ee.call(t,n)&&Un(e,n,t[n])})),ca=xr((function(e,t){br(t,Ca(t),e)})),ha=xr((function(e,t,n,i){br(t,Ca(t),e,i)})),pa=xr((function(e,t,n,i){br(t,xa(t),e,i)})),da=Hr(Xn);var fa=$i((function(e,t){e=fe(e);var n=-1,i=t.length,r=i>2?t[2]:void 0;for(r&&ls(t[0],t[1],r)&&(i=1);++n<i;)for(var s=t[n],o=Ca(s),a=-1,l=o.length;++a<l;){var u=o[a],c=e[u];(void 0===c||To(c,we[u])&&!Ee.call(e,u))&&(e[u]=s[u])}return e})),ga=$i((function(e){return e.push(void 0,zr),rt(Aa,void 0,e)}));function ma(e,t,n){var i=null==e?void 0:pi(e,t);return void 0===i?n:i}function va(e,t){return null!=e&&rs(e,t,vi)}var ya=Tr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),Ua(Ka)),ba=Tr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Ee.call(e,t)?e[t].push(n):e[t]=[n]}),Yr),wa=$i(bi);function xa(e){return Mo(e)?$n(e):Si(e)}function Ca(e){return Mo(e)?$n(e,!0):Di(e)}var Ea=xr((function(e,t,n){Oi(e,t,n)})),Aa=xr((function(e,t,n,i){Oi(e,t,n,i)})),Sa=Hr((function(e,t){var n={};if(null==e)return n;var i=!1;t=pt(t,(function(t){return t=lr(t,e),i||(i=t.length>1),t})),br(e,Kr(e),n),i&&(n=Yn(n,7,Wr));for(var r=t.length;r--;)er(n,t[r]);return n}));var Da=Hr((function(e,t){return null==e?{}:function(e,t){return Bi(e,t,(function(t,n){return va(e,n)}))}(e,t)}));function ka(e,t){if(null==e)return{};var n=pt(Kr(e),(function(e){return[e]}));return t=Yr(t),Bi(e,n,(function(e,n){return t(e,n[0])}))}var Fa=$r(xa),_a=$r(Ca);function Ta(e){return null==e?[]:Ot(e,xa(e))}var Oa=Sr((function(e,t,n){return t=t.toLowerCase(),e+(n?Pa(t):t)}));function Pa(e){return ja(la(e).toLowerCase())}function Ra(e){return(e=la(e))&&e.replace(le,Mt).replace(Pe,"")}var Ba=Sr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),La=Sr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ma=Ar("toLowerCase");var Ia=Sr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Na=Sr((function(e,t,n){return e+(n?" ":"")+ja(t)}));var $a=Sr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),ja=Ar("toUpperCase");function Va(e,t,n){return e=la(e),void 0===(t=n?void 0:t)?function(e){return Me.test(e)}(e)?function(e){return e.match(Be)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var za=$i((function(e,t){try{return rt(e,void 0,t)}catch(e){return jo(e)?e:new he(e)}})),Wa=Hr((function(e,t){return ot(t,(function(t){t=Ds(t),Gn(e,t,bo(e[t],e))})),e}));function Ua(e){return function(){return e}}var Ha=Fr(),qa=Fr(!0);function Ka(e){return e}function Ga(e){return Ai("function"==typeof e?e:Yn(e,1))}var Xa=$i((function(e,t){return function(n){return bi(n,e,t)}})),Ja=$i((function(e,t){return function(n){return bi(e,n,t)}}));function Ya(e,t,n){var i=xa(t),r=hi(t,i);null!=n||Uo(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=hi(t,xa(t)));var s=!(Uo(n)&&"chain"in n&&!n.chain),o=Vo(e);return ot(r,(function(n){var i=t[n];e[n]=i,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),r=n.__actions__=yr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,dt([this.value()],arguments))})})),e}function Qa(){}var Za=Pr(pt),el=Pr(lt),tl=Pr(mt);function nl(e){return us(e)?At(Ds(e)):function(e){return function(t){return pi(t,e)}}(e)}var il=Br(),rl=Br(!0);function sl(){return[]}function ol(){return!1}var al=Or((function(e,t){return e+t}),0),ll=Ir("ceil"),ul=Or((function(e,t){return e/t}),1),cl=Ir("floor");var hl,pl=Or((function(e,t){return e*t}),1),dl=Ir("round"),fl=Or((function(e,t){return e-t}),0);return _n.after=function(e,t){if("function"!=typeof t)throw new ve(r);return e=ra(e),function(){if(--e<1)return t.apply(this,arguments)}},_n.ary=vo,_n.assign=ua,_n.assignIn=ca,_n.assignInWith=ha,_n.assignWith=pa,_n.at=da,_n.before=yo,_n.bind=bo,_n.bindAll=Wa,_n.bindKey=wo,_n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Bo(e)?e:[e]},_n.chain=to,_n.chunk=function(e,t,n){t=(n?ls(e,t,n):void 0===t)?1:an(ra(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var s=0,o=0,a=i(Zt(r/t));s<r;)a[o++]=qi(e,s,s+=t);return a},_n.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var s=e[t];s&&(r[i++]=s)}return r},_n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return dt(Bo(n)?yr(n):[n],oi(t,1))},_n.cond=function(e){var t=null==e?0:e.length,n=Yr();return e=t?pt(e,(function(e){if("function"!=typeof e[1])throw new ve(r);return[n(e[0]),e[1]]})):[],$i((function(n){for(var i=-1;++i<t;){var r=e[i];if(rt(r[0],this,n))return rt(r[1],this,n)}}))},_n.conforms=function(e){return function(e){var t=xa(e);return function(n){return Qn(n,e,t)}}(Yn(e,1))},_n.constant=Ua,_n.countBy=ro,_n.create=function(e,t){var n=Tn(e);return null==t?n:Kn(n,t)},_n.curry=function e(t,n,i){var r=jr(t,8,void 0,void 0,void 0,void 0,void 0,n=i?void 0:n);return r.placeholder=e.placeholder,r},_n.curryRight=function e(t,n,i){var r=jr(t,16,void 0,void 0,void 0,void 0,void 0,n=i?void 0:n);return r.placeholder=e.placeholder,r},_n.debounce=xo,_n.defaults=fa,_n.defaultsDeep=ga,_n.defer=Co,_n.delay=Eo,_n.difference=_s,_n.differenceBy=Ts,_n.differenceWith=Os,_n.drop=function(e,t,n){var i=null==e?0:e.length;return i?qi(e,(t=n||void 0===t?1:ra(t))<0?0:t,i):[]},_n.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?qi(e,0,(t=i-(t=n||void 0===t?1:ra(t)))<0?0:t):[]},_n.dropRightWhile=function(e,t){return e&&e.length?nr(e,Yr(t,3),!0,!0):[]},_n.dropWhile=function(e,t){return e&&e.length?nr(e,Yr(t,3),!0):[]},_n.fill=function(e,t,n,i){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ls(e,t,n)&&(n=0,i=r),function(e,t,n,i){var r=e.length;for((n=ra(n))<0&&(n=-n>r?0:r+n),(i=void 0===i||i>r?r:ra(i))<0&&(i+=r),i=n>i?0:sa(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},_n.filter=function(e,t){return(Bo(e)?ut:si)(e,Yr(t,3))},_n.flatMap=function(e,t){return oi(po(e,t),1)},_n.flatMapDeep=function(e,t){return oi(po(e,t),1/0)},_n.flatMapDepth=function(e,t,n){return n=void 0===n?1:ra(n),oi(po(e,t),n)},_n.flatten=Bs,_n.flattenDeep=function(e){return(null==e?0:e.length)?oi(e,1/0):[]},_n.flattenDepth=function(e,t){return(null==e?0:e.length)?oi(e,t=void 0===t?1:ra(t)):[]},_n.flip=function(e){return jr(e,512)},_n.flow=Ha,_n.flowRight=qa,_n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},_n.functions=function(e){return null==e?[]:hi(e,xa(e))},_n.functionsIn=function(e){return null==e?[]:hi(e,Ca(e))},_n.groupBy=uo,_n.initial=function(e){return(null==e?0:e.length)?qi(e,0,-1):[]},_n.intersection=Ms,_n.intersectionBy=Is,_n.intersectionWith=Ns,_n.invert=ya,_n.invertBy=ba,_n.invokeMap=co,_n.iteratee=Ga,_n.keyBy=ho,_n.keys=xa,_n.keysIn=Ca,_n.map=po,_n.mapKeys=function(e,t){var n={};return t=Yr(t,3),ui(e,(function(e,i,r){Gn(n,t(e,i,r),e)})),n},_n.mapValues=function(e,t){var n={};return t=Yr(t,3),ui(e,(function(e,i,r){Gn(n,i,t(e,i,r))})),n},_n.matches=function(e){return _i(Yn(e,1))},_n.matchesProperty=function(e,t){return Ti(e,Yn(t,1))},_n.memoize=Ao,_n.merge=Ea,_n.mergeWith=Aa,_n.method=Xa,_n.methodOf=Ja,_n.mixin=Ya,_n.negate=So,_n.nthArg=function(e){return e=ra(e),$i((function(t){return Pi(t,e)}))},_n.omit=Sa,_n.omitBy=function(e,t){return ka(e,So(Yr(t)))},_n.once=function(e){return yo(2,e)},_n.orderBy=function(e,t,n,i){return null==e?[]:(Bo(t)||(t=null==t?[]:[t]),Bo(n=i?void 0:n)||(n=null==n?[]:[n]),Ri(e,t,n))},_n.over=Za,_n.overArgs=Do,_n.overEvery=el,_n.overSome=tl,_n.partial=ko,_n.partialRight=Fo,_n.partition=fo,_n.pick=Da,_n.pickBy=ka,_n.property=nl,_n.propertyOf=function(e){return function(t){return null==e?void 0:pi(e,t)}},_n.pull=js,_n.pullAll=Vs,_n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Li(e,t,Yr(n,2)):e},_n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Li(e,t,void 0,n):e},_n.pullAt=zs,_n.range=il,_n.rangeRight=rl,_n.rearg=_o,_n.reject=function(e,t){return(Bo(e)?ut:si)(e,So(Yr(t,3)))},_n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],s=e.length;for(t=Yr(t,3);++i<s;){var o=e[i];t(o,i,e)&&(n.push(o),r.push(i))}return Mi(e,r),n},_n.rest=function(e,t){if("function"!=typeof e)throw new ve(r);return $i(e,t=void 0===t?t:ra(t))},_n.reverse=Ws,_n.sampleSize=function(e,t,n){return t=(n?ls(e,t,n):void 0===t)?1:ra(t),(Bo(e)?Vn:Vi)(e,t)},_n.set=function(e,t,n){return null==e?e:zi(e,t,n)},_n.setWith=function(e,t,n,i){return i="function"==typeof i?i:void 0,null==e?e:zi(e,t,n,i)},_n.shuffle=function(e){return(Bo(e)?zn:Hi)(e)},_n.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ls(e,t,n)?(t=0,n=i):(t=null==t?0:ra(t),n=void 0===n?i:ra(n)),qi(e,t,n)):[]},_n.sortBy=go,_n.sortedUniq=function(e){return e&&e.length?Ji(e):[]},_n.sortedUniqBy=function(e,t){return e&&e.length?Ji(e,Yr(t,2)):[]},_n.split=function(e,t,n){return n&&"number"!=typeof n&&ls(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=la(e))&&("string"==typeof t||null!=t&&!Xo(t))&&!(t=Qi(t))&&$t(e)?cr(qt(e),0,n):e.split(t,n):[]},_n.spread=function(e,t){if("function"!=typeof e)throw new ve(r);return t=null==t?0:an(ra(t),0),$i((function(n){var i=n[t],r=cr(n,0,t);return i&&dt(r,i),rt(e,this,r)}))},_n.tail=function(e){var t=null==e?0:e.length;return t?qi(e,1,t):[]},_n.take=function(e,t,n){return e&&e.length?qi(e,0,(t=n||void 0===t?1:ra(t))<0?0:t):[]},_n.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?qi(e,(t=i-(t=n||void 0===t?1:ra(t)))<0?0:t,i):[]},_n.takeRightWhile=function(e,t){return e&&e.length?nr(e,Yr(t,3),!1,!0):[]},_n.takeWhile=function(e,t){return e&&e.length?nr(e,Yr(t,3)):[]},_n.tap=function(e,t){return t(e),e},_n.throttle=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new ve(r);return Uo(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),xo(e,t,{leading:i,maxWait:t,trailing:s})},_n.thru=no,_n.toArray=na,_n.toPairs=Fa,_n.toPairsIn=_a,_n.toPath=function(e){return Bo(e)?pt(e,Ds):Qo(e)?[e]:yr(Ss(la(e)))},_n.toPlainObject=aa,_n.transform=function(e,t,n){var i=Bo(e),r=i||No(e)||Zo(e);if(t=Yr(t,4),null==n){var s=e&&e.constructor;n=r?i?new s:[]:Uo(e)&&Vo(s)?Tn(Ue(e)):{}}return(r?ot:ui)(e,(function(e,i,r){return t(n,e,i,r)})),n},_n.unary=function(e){return vo(e,1)},_n.union=Us,_n.unionBy=Hs,_n.unionWith=qs,_n.uniq=function(e){return e&&e.length?Zi(e):[]},_n.uniqBy=function(e,t){return e&&e.length?Zi(e,Yr(t,2)):[]},_n.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zi(e,void 0,t):[]},_n.unset=function(e,t){return null==e||er(e,t)},_n.unzip=Ks,_n.unzipWith=Gs,_n.update=function(e,t,n){return null==e?e:tr(e,t,ar(n))},_n.updateWith=function(e,t,n,i){return i="function"==typeof i?i:void 0,null==e?e:tr(e,t,ar(n),i)},_n.values=Ta,_n.valuesIn=function(e){return null==e?[]:Ot(e,Ca(e))},_n.without=Xs,_n.words=Va,_n.wrap=function(e,t){return ko(ar(t),e)},_n.xor=Js,_n.xorBy=Ys,_n.xorWith=Qs,_n.zip=Zs,_n.zipObject=function(e,t){return sr(e||[],t||[],Un)},_n.zipObjectDeep=function(e,t){return sr(e||[],t||[],zi)},_n.zipWith=eo,_n.entries=Fa,_n.entriesIn=_a,_n.extend=ca,_n.extendWith=ha,Ya(_n,_n),_n.add=al,_n.attempt=za,_n.camelCase=Oa,_n.capitalize=Pa,_n.ceil=ll,_n.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=oa(n))==n?n:0),void 0!==t&&(t=(t=oa(t))==t?t:0),Jn(oa(e),t,n)},_n.clone=function(e){return Yn(e,4)},_n.cloneDeep=function(e){return Yn(e,5)},_n.cloneDeepWith=function(e,t){return Yn(e,5,t="function"==typeof t?t:void 0)},_n.cloneWith=function(e,t){return Yn(e,4,t="function"==typeof t?t:void 0)},_n.conformsTo=function(e,t){return null==t||Qn(e,t,xa(t))},_n.deburr=Ra,_n.defaultTo=function(e,t){return null==e||e!=e?t:e},_n.divide=ul,_n.endsWith=function(e,t,n){e=la(e),t=Qi(t);var i=e.length,r=n=void 0===n?i:Jn(ra(n),0,i);return(n-=t.length)>=0&&e.slice(n,r)==t},_n.eq=To,_n.escape=function(e){return(e=la(e))&&N.test(e)?e.replace(M,It):e},_n.escapeRegExp=function(e){return(e=la(e))&&q.test(e)?e.replace(H,"\\$&"):e},_n.every=function(e,t,n){var i=Bo(e)?lt:ii;return n&&ls(e,t,n)&&(t=void 0),i(e,Yr(t,3))},_n.find=so,_n.findIndex=Ps,_n.findKey=function(e,t){return yt(e,Yr(t,3),ui)},_n.findLast=oo,_n.findLastIndex=Rs,_n.findLastKey=function(e,t){return yt(e,Yr(t,3),ci)},_n.floor=cl,_n.forEach=ao,_n.forEachRight=lo,_n.forIn=function(e,t){return null==e?e:ai(e,Yr(t,3),Ca)},_n.forInRight=function(e,t){return null==e?e:li(e,Yr(t,3),Ca)},_n.forOwn=function(e,t){return e&&ui(e,Yr(t,3))},_n.forOwnRight=function(e,t){return e&&ci(e,Yr(t,3))},_n.get=ma,_n.gt=Oo,_n.gte=Po,_n.has=function(e,t){return null!=e&&rs(e,t,mi)},_n.hasIn=va,_n.head=Ls,_n.identity=Ka,_n.includes=function(e,t,n,i){e=Mo(e)?e:Ta(e),n=n&&!i?ra(n):0;var r=e.length;return n<0&&(n=an(r+n,0)),Yo(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&wt(e,t,n)>-1},_n.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ra(n);return r<0&&(r=an(i+r,0)),wt(e,t,r)},_n.inRange=function(e,t,n){return t=ia(t),void 0===n?(n=t,t=0):n=ia(n),function(e,t,n){return e>=ln(t,n)&&e<an(t,n)}(e=oa(e),t,n)},_n.invoke=wa,_n.isArguments=Ro,_n.isArray=Bo,_n.isArrayBuffer=Lo,_n.isArrayLike=Mo,_n.isArrayLikeObject=Io,_n.isBoolean=function(e){return!0===e||!1===e||Ho(e)&&fi(e)==u},_n.isBuffer=No,_n.isDate=$o,_n.isElement=function(e){return Ho(e)&&1===e.nodeType&&!Go(e)},_n.isEmpty=function(e){if(null==e)return!0;if(Mo(e)&&(Bo(e)||"string"==typeof e||"function"==typeof e.splice||No(e)||Zo(e)||Ro(e)))return!e.length;var t=is(e);if(t==f||t==y)return!e.size;if(ps(e))return!Si(e).length;for(var n in e)if(Ee.call(e,n))return!1;return!0},_n.isEqual=function(e,t){return xi(e,t)},_n.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?xi(e,t,void 0,n):!!i},_n.isError=jo,_n.isFinite=function(e){return"number"==typeof e&&rn(e)},_n.isFunction=Vo,_n.isInteger=zo,_n.isLength=Wo,_n.isMap=qo,_n.isMatch=function(e,t){return e===t||Ci(e,t,Zr(t))},_n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,Ci(e,t,Zr(t),n)},_n.isNaN=function(e){return Ko(e)&&e!=+e},_n.isNative=function(e){if(hs(e))throw new he("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ei(e)},_n.isNil=function(e){return null==e},_n.isNull=function(e){return null===e},_n.isNumber=Ko,_n.isObject=Uo,_n.isObjectLike=Ho,_n.isPlainObject=Go,_n.isRegExp=Xo,_n.isSafeInteger=function(e){return zo(e)&&e>=-9007199254740991&&e<=9007199254740991},_n.isSet=Jo,_n.isString=Yo,_n.isSymbol=Qo,_n.isTypedArray=Zo,_n.isUndefined=function(e){return void 0===e},_n.isWeakMap=function(e){return Ho(e)&&is(e)==x},_n.isWeakSet=function(e){return Ho(e)&&"[object WeakSet]"==fi(e)},_n.join=function(e,t){return null==e?"":sn.call(e,t)},_n.kebabCase=Ba,_n.last=$s,_n.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i;return void 0!==n&&(r=(r=ra(n))<0?an(i+r,0):ln(r,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,r):bt(e,Ct,r,!0)},_n.lowerCase=La,_n.lowerFirst=Ma,_n.lt=ea,_n.lte=ta,_n.max=function(e){return e&&e.length?ri(e,Ka,gi):void 0},_n.maxBy=function(e,t){return e&&e.length?ri(e,Yr(t,2),gi):void 0},_n.mean=function(e){return Et(e,Ka)},_n.meanBy=function(e,t){return Et(e,Yr(t,2))},_n.min=function(e){return e&&e.length?ri(e,Ka,ki):void 0},_n.minBy=function(e,t){return e&&e.length?ri(e,Yr(t,2),ki):void 0},_n.stubArray=sl,_n.stubFalse=ol,_n.stubObject=function(){return{}},_n.stubString=function(){return""},_n.stubTrue=function(){return!0},_n.multiply=pl,_n.nth=function(e,t){return e&&e.length?Pi(e,ra(t)):void 0},_n.noConflict=function(){return qe._===this&&(qe._=Fe),this},_n.noop=Qa,_n.now=mo,_n.pad=function(e,t,n){e=la(e);var i=(t=ra(t))?Ht(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Rr(en(r),n)+e+Rr(Zt(r),n)},_n.padEnd=function(e,t,n){e=la(e);var i=(t=ra(t))?Ht(e):0;return t&&i<t?e+Rr(t-i,n):e},_n.padStart=function(e,t,n){e=la(e);var i=(t=ra(t))?Ht(e):0;return t&&i<t?Rr(t-i,n)+e:e},_n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(la(e).replace(K,""),t||0)},_n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ls(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ia(e),void 0===t?(t=e,e=0):t=ia(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var r=hn();return ln(e+r*(t-e+ze("1e-"+((r+"").length-1))),t)}return Ii(e,t)},_n.reduce=function(e,t,n){var i=Bo(e)?ft:Dt,r=arguments.length<3;return i(e,Yr(t,4),n,r,ti)},_n.reduceRight=function(e,t,n){var i=Bo(e)?gt:Dt,r=arguments.length<3;return i(e,Yr(t,4),n,r,ni)},_n.repeat=function(e,t,n){return t=(n?ls(e,t,n):void 0===t)?1:ra(t),Ni(la(e),t)},_n.replace=function(){var e=arguments,t=la(e[0]);return e.length<3?t:t.replace(e[1],e[2])},_n.result=function(e,t,n){var i=-1,r=(t=lr(t,e)).length;for(r||(r=1,e=void 0);++i<r;){var s=null==e?void 0:e[Ds(t[i])];void 0===s&&(i=r,s=n),e=Vo(s)?s.call(e):s}return e},_n.round=dl,_n.runInContext=e,_n.sample=function(e){return(Bo(e)?jn:ji)(e)},_n.size=function(e){if(null==e)return 0;if(Mo(e))return Yo(e)?Ht(e):e.length;var t=is(e);return t==f||t==y?e.size:Si(e).length},_n.snakeCase=Ia,_n.some=function(e,t,n){var i=Bo(e)?mt:Ki;return n&&ls(e,t,n)&&(t=void 0),i(e,Yr(t,3))},_n.sortedIndex=function(e,t){return Gi(e,t)},_n.sortedIndexBy=function(e,t,n){return Xi(e,t,Yr(n,2))},_n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=Gi(e,t);if(i<n&&To(e[i],t))return i}return-1},_n.sortedLastIndex=function(e,t){return Gi(e,t,!0)},_n.sortedLastIndexBy=function(e,t,n){return Xi(e,t,Yr(n,2),!0)},_n.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Gi(e,t,!0)-1;if(To(e[n],t))return n}return-1},_n.startCase=Na,_n.startsWith=function(e,t,n){return e=la(e),n=null==n?0:Jn(ra(n),0,e.length),t=Qi(t),e.slice(n,n+t.length)==t},_n.subtract=fl,_n.sum=function(e){return e&&e.length?kt(e,Ka):0},_n.sumBy=function(e,t){return e&&e.length?kt(e,Yr(t,2)):0},_n.template=function(e,t,n){var i=_n.templateSettings;n&&ls(e,t,n)&&(t=void 0),e=la(e),t=ha({},t,i,Vr);var r,s,o=ha({},t.imports,i.imports,Vr),a=xa(o),l=Ot(o,a),u=0,c=t.interpolate||ue,h="__p += '",p=ge((t.escape||ue).source+"|"+c.source+"|"+(c===V?te:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),d="//# sourceURL="+(Ee.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ne+"]")+"\n";e.replace(p,(function(t,n,i,o,a,l){return i||(i=o),h+=e.slice(u,l).replace(ce,Nt),n&&(r=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var f=Ee.call(t,"variable")&&t.variable;if(f){if(Z.test(f))throw new he("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(P,""):h).replace(R,"$1").replace(B,"$1;"),h="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=za((function(){return pe(a,d+"return "+h).apply(void 0,l)}));if(g.source=h,jo(g))throw g;return g},_n.times=function(e,t){if((e=ra(e))<1||e>9007199254740991)return[];var n=4294967295,i=ln(e,4294967295);e-=4294967295;for(var r=Ft(i,t=Yr(t));++n<e;)t(n);return r},_n.toFinite=ia,_n.toInteger=ra,_n.toLength=sa,_n.toLower=function(e){return la(e).toLowerCase()},_n.toNumber=oa,_n.toSafeInteger=function(e){return e?Jn(ra(e),-9007199254740991,9007199254740991):0===e?e:0},_n.toString=la,_n.toUpper=function(e){return la(e).toUpperCase()},_n.trim=function(e,t,n){if((e=la(e))&&(n||void 0===t))return _t(e);if(!e||!(t=Qi(t)))return e;var i=qt(e),r=qt(t);return cr(i,Rt(i,r),Bt(i,r)+1).join("")},_n.trimEnd=function(e,t,n){if((e=la(e))&&(n||void 0===t))return e.slice(0,Kt(e)+1);if(!e||!(t=Qi(t)))return e;var i=qt(e);return cr(i,0,Bt(i,qt(t))+1).join("")},_n.trimStart=function(e,t,n){if((e=la(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Qi(t)))return e;var i=qt(e);return cr(i,Rt(i,qt(t))).join("")},_n.truncate=function(e,t){var n=30,i="...";if(Uo(t)){var r="separator"in t?t.separator:r;n="length"in t?ra(t.length):n,i="omission"in t?Qi(t.omission):i}var s=(e=la(e)).length;if($t(e)){var o=qt(e);s=o.length}if(n>=s)return e;var a=n-Ht(i);if(a<1)return i;var l=o?cr(o,0,a).join(""):e.slice(0,a);if(void 0===r)return l+i;if(o&&(a+=l.length-a),Xo(r)){if(e.slice(a).search(r)){var u,c=l;for(r.global||(r=ge(r.source,la(ne.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var h=u.index;l=l.slice(0,void 0===h?a:h)}}else if(e.indexOf(Qi(r),a)!=a){var p=l.lastIndexOf(r);p>-1&&(l=l.slice(0,p))}return l+i},_n.unescape=function(e){return(e=la(e))&&I.test(e)?e.replace(L,Gt):e},_n.uniqueId=function(e){var t=++Ae;return la(e)+t},_n.upperCase=$a,_n.upperFirst=ja,_n.each=ao,_n.eachRight=lo,_n.first=Ls,Ya(_n,(hl={},ui(_n,(function(e,t){Ee.call(_n.prototype,t)||(hl[t]=e)})),hl),{chain:!1}),_n.VERSION="4.17.21",ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){_n[e].placeholder=_n})),ot(["drop","take"],(function(e,t){Rn.prototype[e]=function(n){n=void 0===n?1:an(ra(n),0);var i=this.__filtered__&&!t?new Rn(this):this.clone();return i.__filtered__?i.__takeCount__=ln(n,i.__takeCount__):i.__views__.push({size:ln(n,4294967295),type:e+(i.__dir__<0?"Right":"")}),i},Rn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Rn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Yr(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Rn.prototype[e]=function(){return this[n](1).value()[0]}})),ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Rn.prototype[e]=function(){return this.__filtered__?new Rn(this):this[n](1)}})),Rn.prototype.compact=function(){return this.filter(Ka)},Rn.prototype.find=function(e){return this.filter(e).head()},Rn.prototype.findLast=function(e){return this.reverse().find(e)},Rn.prototype.invokeMap=$i((function(e,t){return"function"==typeof e?new Rn(this):this.map((function(n){return bi(n,e,t)}))})),Rn.prototype.reject=function(e){return this.filter(So(Yr(e)))},Rn.prototype.slice=function(e,t){e=ra(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Rn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ra(t))<0?n.dropRight(-t):n.take(t-e)),n)},Rn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Rn.prototype.toArray=function(){return this.take(4294967295)},ui(Rn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),r=_n[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);r&&(_n.prototype[t]=function(){var t=this.__wrapped__,o=i?[1]:arguments,a=t instanceof Rn,l=o[0],u=a||Bo(t),c=function(e){var t=r.apply(_n,dt([e],o));return i&&h?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(a=u=!1);var h=this.__chain__,p=!!this.__actions__.length,d=s&&!h,f=a&&!p;if(!s&&u){t=f?t:new Rn(this);var g=e.apply(t,o);return g.__actions__.push({func:no,args:[c],thisArg:void 0}),new Pn(g,h)}return d&&f?e.apply(this,o):(g=this.thru(c),d?i?g.value()[0]:g.value():g)})})),ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);_n.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Bo(r)?r:[],e)}return this[n]((function(n){return t.apply(Bo(n)?n:[],e)}))}})),ui(Rn.prototype,(function(e,t){var n=_n[t];if(n){var i=n.name+"";Ee.call(wn,i)||(wn[i]=[]),wn[i].push({name:t,func:n})}})),wn[_r(void 0,2).name]=[{name:"wrapper",func:void 0}],Rn.prototype.clone=function(){var e=new Rn(this.__wrapped__);return e.__actions__=yr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yr(this.__views__),e},Rn.prototype.reverse=function(){if(this.__filtered__){var e=new Rn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Rn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Bo(e),i=t<0,r=n?e.length:0,s=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var s=n[i],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=ln(t,e+o);break;case"takeRight":e=an(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=s.start,a=s.end,l=a-o,u=i?a:o-1,c=this.__iteratees__,h=c.length,p=0,d=ln(l,this.__takeCount__);if(!n||!i&&r==l&&d==l)return ir(e,this.__actions__);var f=[];e:for(;l--&&p<d;){for(var g=-1,m=e[u+=t];++g<h;){var v=c[g],y=v.iteratee,b=v.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}f[p++]=m}return f},_n.prototype.at=io,_n.prototype.chain=function(){return to(this)},_n.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},_n.prototype.next=function(){void 0===this.__values__&&(this.__values__=na(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},_n.prototype.plant=function(e){for(var t,n=this;n instanceof On;){var i=Fs(n);i.__index__=0,i.__values__=void 0,t?r.__wrapped__=i:t=i;var r=i;n=n.__wrapped__}return r.__wrapped__=e,t},_n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Rn){var t=e;return this.__actions__.length&&(t=new Rn(this)),(t=t.reverse()).__actions__.push({func:no,args:[Ws],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Ws)},_n.prototype.toJSON=_n.prototype.valueOf=_n.prototype.value=function(){return ir(this.__wrapped__,this.__actions__)},_n.prototype.first=_n.prototype.head,Ye&&(_n.prototype[Ye]=function(){return this}),_n}();qe._=Xt,void 0===(i=function(){return Xt}.call(t,n,t,e))||(e.exports=i)}).call(this)}).call(this,n(58)(e))},function(e,t,n){"use strict";e.exports=n(237)},function(e,t,n){"use strict";
23
+ /** @license React v16.13.1
24
+ * react-is.production.min.js
25
+ *
26
+ * Copyright (c) Facebook, Inc. and its affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var i="function"==typeof Symbol&&Symbol.for,r=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,o=i?Symbol.for("react.fragment"):60107,a=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,c=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.async_mode"):60111,p=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,f=i?Symbol.for("react.suspense"):60113,g=i?Symbol.for("react.suspense_list"):60120,m=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,y=i?Symbol.for("react.block"):60121,b=i?Symbol.for("react.fundamental"):60117,w=i?Symbol.for("react.responder"):60118,x=i?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case h:case p:case o:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case m:case u:return e;default:return t}}case s:return t}}}function E(e){return C(e)===p}t.AsyncMode=h,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=s,t.Profiler=l,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||C(e)===h},t.isConcurrentMode=E,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return C(e)===d},t.isFragment=function(e){return C(e)===o},t.isLazy=function(e){return C(e)===v},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===s},t.isProfiler=function(e){return C(e)===l},t.isStrictMode=function(e){return C(e)===a},t.isSuspense=function(e){return C(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===l||e===a||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===w||e.$$typeof===x||e.$$typeof===y)},t.typeOf=C},function(e,t,n){e.exports=function(e){function t(e){let n,r=null;function s(...e){if(!s.enabled)return;const i=s,r=Number(new Date),o=r-(n||r);i.diff=o,i.prev=n,i.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";a++;const s=t.formatters[r];if("function"==typeof s){const t=e[a];n=s.call(i,t),e.splice(a,1),a--}return n}),t.formatArgs.call(i,e);(i.log||t.log).apply(i,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=i,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===r?t.enabled(e):r,set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function i(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const i=("string"==typeof e?e:"").split(/[\s,]+/),r=i.length;for(n=0;n<r;n++)i[n]&&("-"===(e=i[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(239),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,i=6e4,r=60*i,s=24*r;function o(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*s;case"hours":case"hour":case"hrs":case"hr":case"h":return o*r;case"minutes":case"minute":case"mins":case"min":case"m":return o*i;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=s)return o(e,t,s,"day");if(t>=r)return o(e,t,r,"hour");if(t>=i)return o(e,t,i,"minute");if(t>=n)return o(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=s)return Math.round(e/s)+"d";if(t>=r)return Math.round(e/r)+"h";if(t>=i)return Math.round(e/i)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){e.exports="undefined"==typeof process||!process||!!process.type&&"renderer"===process.type},function(e,t,n){"use strict";n.r(t),n.d(t,"activate",(function(){return Xd})),n.d(t,"deactivate",(function(){return Jd})),n.d(t,"Aggregations",(function(){return ed})),n.d(t,"StageEditor",(function(){return ki})),n.d(t,"CreateViewPlugin",(function(){return Md})),n.d(t,"DuplicateViewPlugin",(function(){return Wd})),n.d(t,"configureStore",(function(){return cd})),n.d(t,"configureCreateViewStore",(function(){return Hd}));var i={};n.r(i),n.d(i,"FILE",(function(){return Ra})),n.d(i,"URL",(function(){return Ba})),n.d(i,"TEXT",(function(){return La}));var r=n(1),s=n.n(r),o=n(0),a=n.n(o);function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}var c=a.a.shape({trySubscribe:a.a.func.isRequired,tryUnsubscribe:a.a.func.isRequired,notifyNestedSubs:a.a.func.isRequired,isSubscribed:a.a.func.isRequired}),h=a.a.shape({subscribe:a.a.func.isRequired,dispatch:a.a.func.isRequired,getState:a.a.func.isRequired});s.a.forwardRef;var p=function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",i=function(t){u(s,t);var i=s.prototype;function s(n,i){var r;return(r=t.call(this,n,i)||this)[e]=n.store,r}return i.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},i.render=function(){return r.Children.only(this.props.children)},s}(r.Component);return i.propTypes={store:h.isRequired,children:a.a.element.isRequired},i.childContextTypes=((t={})[e]=h.isRequired,t[n]=c,t),i}();function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var n,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var m=n(139),v=n.n(m),y=n(48),b=n.n(y),w=n(59),x={notify:function(){}};var C=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=x}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=null,e=null},notify:function(){for(var n=e=t,i=0;i<n.length;i++)n[i]()},get:function(){return t},subscribe:function(n){var i=!0;return t===e&&(t=e.slice()),t.push(n),function(){i&&null!==e&&(i=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=x)},e}(),E=void 0!==s.a.forwardRef,A=0,S={};function D(){}function k(e,t){var n,i;void 0===t&&(t={});var s=t,o=s.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,l=s.methodName,p=void 0===l?"connectAdvanced":l,m=s.renderCountProp,y=void 0===m?void 0:m,x=s.shouldHandleStateChanges,k=void 0===x||x,F=s.storeKey,_=void 0===F?"store":F,T=s.withRef,O=void 0!==T&&T,P=g(s,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),R=_+"Subscription",B=A++,L=((n={})[_]=h,n[R]=c,n),M=((i={})[R]=c,i);return function(t){b()(Object(w.isValidElementType)(t),"You must pass a component to the function returned by "+p+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=a(n),s=f({},P,{getDisplayName:a,methodName:p,renderCountProp:y,shouldHandleStateChanges:k,storeKey:_,withRef:O,displayName:i,wrappedComponentName:n,WrappedComponent:t}),o=function(n){function o(e,t){var r;return(r=n.call(this,e,t)||this).version=B,r.state={},r.renderCount=0,r.store=e[_]||t[_],r.propsMode=Boolean(e[_]),r.setWrappedInstance=r.setWrappedInstance.bind(d(d(r))),b()(r.store,'Could not find "'+_+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+_+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}u(o,n);var a=o.prototype;return a.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[R]=t||this.context[R],e},a.componentDidMount=function(){k&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.componentWillReceiveProps=function(e){this.selector.run(e)},a.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=D,this.store=null,this.selector.run=D,this.selector.shouldComponentUpdate=!1},a.getWrappedInstance=function(){return b()(O,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+p+"() call."),this.wrappedInstance},a.setWrappedInstance=function(e){this.wrappedInstance=e},a.initSelector=function(){var t=e(this.store.dispatch,s);this.selector=function(e,t){var n={run:function(i){try{var r=e(t.getState(),i);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.initSubscription=function(){if(k){var e=(this.propsMode?this.props:this.context)[R];this.subscription=new C(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(S)):this.notifyNestedSubs()},a.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.addExtraProps=function(e){if(!(O||y||this.propsMode&&this.subscription))return e;var t=f({},e);return O&&(t.ref=this.setWrappedInstance),y&&(t[y]=this.renderCount++),this.propsMode&&this.subscription&&(t[R]=this.subscription),t},a.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},o}(r.Component);return E&&(o.prototype.UNSAFE_componentWillReceiveProps=o.prototype.componentWillReceiveProps,delete o.prototype.componentWillReceiveProps),o.WrappedComponent=t,o.displayName=i,o.childContextTypes=M,o.contextTypes=L,o.propTypes=L,v()(o,t)}}var F=Object.prototype.hasOwnProperty;function _(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function T(e,t){if(_(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!F.call(t,n[r])||!_(e[n[r]],t[n[r]]))return!1;return!0}var O="object"==typeof global&&global&&global.Object===Object&&global,P="object"==typeof self&&self&&self.Object===Object&&self,R=(O||P||Function("return this")()).Symbol,B=Object.prototype;B.hasOwnProperty,B.toString,R&&R.toStringTag;Object.prototype.toString;R&&R.toStringTag;L=Object.getPrototypeOf,M=Object;var L,M;var I=Function.prototype,N=Object.prototype,$=I.toString;N.hasOwnProperty,$.call(Object);n(60);function j(e,t){return function(){return t(e.apply(void 0,arguments))}}Object.assign;function V(e){return function(t,n){var i=e(t,n);function r(){return i}return r.dependsOnOwnProps=!1,r}}function z(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function W(e,t){return function(t,n){n.displayName;var i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,n){i.mapToProps=e,i.dependsOnOwnProps=z(e);var r=i(t,n);return"function"==typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=z(r),r=i(t,n)),r},i}}var U=[function(e){return"function"==typeof e?W(e):void 0},function(e){return e?void 0:V((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?V((function(t){return function(e,t){if("function"==typeof e)return j(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var s=n[r],o=e[s];"function"==typeof o&&(i[s]=j(o,t))}return i}(e,t)})):void 0}];var H=[function(e){return"function"==typeof e?W(e):void 0},function(e){return e?void 0:V((function(){return{}}))}];function q(e,t,n){return f({},n,e,t)}var K=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var i,r=n.pure,s=n.areMergedPropsEqual,o=!1;return function(t,n,a){var l=e(t,n,a);return o?r&&s(l,i)||(i=l):(o=!0,i=l),i}}}(e):void 0},function(e){return e?void 0:function(){return q}}];function G(e,t,n,i){return function(r,s){return n(e(r,s),t(i,s),s)}}function X(e,t,n,i,r){var s,o,a,l,u,c=r.areStatesEqual,h=r.areOwnPropsEqual,p=r.areStatePropsEqual,d=!1;function f(r,d){var f,g,m=!h(d,o),v=!c(r,s);return s=r,o=d,m&&v?(a=e(s,o),t.dependsOnOwnProps&&(l=t(i,o)),u=n(a,l,o)):m?(e.dependsOnOwnProps&&(a=e(s,o)),t.dependsOnOwnProps&&(l=t(i,o)),u=n(a,l,o)):v?(f=e(s,o),g=!p(f,a),a=f,g&&(u=n(a,l,o)),u):u}return function(r,c){return d?f(r,c):(a=e(s=r,o=c),l=t(i,o),u=n(a,l,o),d=!0,u)}}function J(e,t){var n=t.initMapStateToProps,i=t.initMapDispatchToProps,r=t.initMergeProps,s=g(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),o=n(e,s),a=i(e,s),l=r(e,s);return(s.pure?X:G)(o,a,l,e,s)}function Y(e,t,n){for(var i=t.length-1;i>=0;i--){var r=t[i](e);if(r)return r}return function(t,i){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+i.wrappedComponentName+".")}}function Q(e,t){return e===t}var Z,ee,te,ne,ie,re,se,oe,ae,le,ue,ce,he,pe=(te=(ee=void 0===Z?{}:Z).connectHOC,ne=void 0===te?k:te,ie=ee.mapStateToPropsFactories,re=void 0===ie?H:ie,se=ee.mapDispatchToPropsFactories,oe=void 0===se?U:se,ae=ee.mergePropsFactories,le=void 0===ae?K:ae,ue=ee.selectorFactory,ce=void 0===ue?J:ue,function(e,t,n,i){void 0===i&&(i={});var r=i,s=r.pure,o=void 0===s||s,a=r.areStatesEqual,l=void 0===a?Q:a,u=r.areOwnPropsEqual,c=void 0===u?T:u,h=r.areStatePropsEqual,p=void 0===h?T:h,d=r.areMergedPropsEqual,m=void 0===d?T:d,v=g(r,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),y=Y(e,re,"mapStateToProps"),b=Y(t,oe,"mapDispatchToProps"),w=Y(n,le,"mergeProps");return ne(ce,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:y,initMapDispatchToProps:b,initMergeProps:w,pure:o,areStatesEqual:l,areOwnPropsEqual:c,areStatePropsEqual:p,areMergedPropsEqual:m},v))}),de=n(5),fe=n.n(de),ge=n(141),me=n.n(ge),ve=(he=function(e,t){return(he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}he(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ye=function(){return(ye=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},be={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},we=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return ve(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:ye(ye({position:"absolute",userSelect:"none"},be[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),xe=n(20),Ce=n.n(xe),Ee=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ae=function(){return(Ae=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Se={width:"auto",height:"auto"},De=Ce()((function(e,t,n){return Math.max(Math.min(e,n),t)})),ke=Ce()((function(e,t){return Math.round(e/t)*t})),Fe=Ce()((function(e,t){return new RegExp(e,"i").test(t)})),_e=function(e){return Boolean(e.touches&&e.touches.length)},Te=Ce()((function(e,t,n){void 0===n&&(n=0);var i=t.reduce((function(n,i,r){return Math.abs(i-e)<Math.abs(t[n]-e)?r:n}),0),r=Math.abs(t[i]-e);return 0===n||r<n?t[i]:e})),Oe=Ce()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),Pe=Ce()((function(e){return"auto"===(e=e.toString())||Oe(e,"px")||Oe(e,"%")||Oe(e,"vh")||Oe(e,"vw")||Oe(e,"vmax")||Oe(e,"vmin")?e:e+"px"})),Re=function(e,t,n,i){if(e&&"string"==typeof e){if(Oe(e,"px"))return Number(e.replace("px",""));if(Oe(e,"%"))return t*(Number(e.replace("%",""))/100);if(Oe(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(Oe(e,"vh"))return i*(Number(e.replace("vh",""))/100)}return e},Be=Ce()((function(e,t,n,i,r,s,o){return i=Re(i,e.width,t,n),r=Re(r,e.height,t,n),s=Re(s,e.width,t,n),o=Re(o,e.height,t,n),{maxWidth:void 0===i?void 0:Number(i),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===s?void 0:Number(s),minHeight:void 0===o?void 0:Number(o)}})),Le=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Me=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add("__resizable_base__"):t.className+="__resizable_base__",e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Ee(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Se},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,i=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:i,this.resizable.style.position=r}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&Oe(e.propsSize[t].toString(),"%")){if(Oe(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return Pe(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Pe(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Pe(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var i={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,i,r=this.props.boundsByDirection,s=this.state.direction,o=r&&Fe("left",s),a=r&&Fe("top",s);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=o?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),i=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,i=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),i=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),i&&Number.isFinite(i)&&(t=t&&t<i?t:i),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,i=this.props.resizeRatio||1,r=this.state,s=r.direction,o=r.original,a=this.props,l=a.lockAspectRatio,u=a.lockAspectRatioExtraHeight,c=a.lockAspectRatioExtraWidth,h=o.width,p=o.height,d=u||0,f=c||0;return Fe("right",s)&&(h=o.width+(e-o.x)*i/n,l&&(p=(h-f)/this.ratio+d)),Fe("left",s)&&(h=o.width-(e-o.x)*i/n,l&&(p=(h-f)/this.ratio+d)),Fe("bottom",s)&&(p=o.height+(t-o.y)*i/n,l&&(h=(p-d)*this.ratio+f)),Fe("top",s)&&(p=o.height-(t-o.y)*i/n,l&&(h=(p-d)*this.ratio+f)),{newWidth:h,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,i){var r=this.props,s=r.lockAspectRatio,o=r.lockAspectRatioExtraHeight,a=r.lockAspectRatioExtraWidth,l=void 0===i.width?10:i.width,u=void 0===n.width||n.width<0?e:n.width,c=void 0===i.height?10:i.height,h=void 0===n.height||n.height<0?t:n.height,p=o||0,d=a||0;if(s){var f=(c-p)*this.ratio+d,g=(h-p)*this.ratio+d,m=(l-d)/this.ratio+p,v=(u-d)/this.ratio+p,y=Math.max(l,f),b=Math.min(u,g),w=Math.max(c,m),x=Math.min(h,v);e=De(e,y,b),t=De(t,w,x)}else e=De(e,l,u),t=De(t,c,h);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var i=this.resizable.getBoundingClientRect(),r=i.left,s=i.top,o=i.right,a=i.bottom;this.resizableLeft=r,this.resizableRight=o,this.resizableTop=s,this.resizableBottom=a}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,i=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)){if(i=e.nativeEvent.clientX,r=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent&&_e(e.nativeEvent)&&(i=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var s=this.window.getComputedStyle(this.resizable);if("auto"!==s.flexBasis){var o=this.parentNode;if(o){var a=this.window.getComputedStyle(o).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",n=s.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:i,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Ae(Ae({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&_e(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,i=t.maxHeight,r=t.minWidth,s=t.minHeight,o=_e(e)?e.touches[0].clientX:e.clientX,a=_e(e)?e.touches[0].clientY:e.clientY,l=this.state,u=l.direction,c=l.original,h=l.width,p=l.height,d=this.getParentSize(),f=Be(d,this.window.innerWidth,this.window.innerHeight,n,i,r,s);n=f.maxWidth,i=f.maxHeight,r=f.minWidth,s=f.minHeight;var g=this.calculateNewSizeFromDirection(o,a),m=g.newHeight,v=g.newWidth,y=this.calculateNewMaxFromBoundary(n,i),b=this.calculateNewSizeFromAspectRatio(v,m,{width:y.maxWidth,height:y.maxHeight},{width:r,height:s});if(v=b.newWidth,m=b.newHeight,this.props.grid){var w=ke(v,this.props.grid[0]),x=ke(m,this.props.grid[1]),C=this.props.snapGap||0;v=0===C||Math.abs(w-v)<=C?w:v,m=0===C||Math.abs(x-m)<=C?x:m}this.props.snap&&this.props.snap.x&&(v=Te(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(m=Te(m,this.props.snap.y,this.props.snapGap));var E={width:v-c.width,height:m-c.height};if(h&&"string"==typeof h)if(Oe(h,"%"))v=v/d.width*100+"%";else if(Oe(h,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(Oe(h,"vh")){v=v/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(Oe(p,"%"))m=m/d.height*100+"%";else if(Oe(p,"vw")){m=m/this.window.innerWidth*100+"vw"}else if(Oe(p,"vh")){m=m/this.window.innerHeight*100+"vh"}var A={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(m,"height")};"row"===this.flexDir?A.flexBasis=A.width:"column"===this.flexDir&&(A.flexBasis=A.height),this.setState(A),this.props.onResize&&this.props.onResize(e,u,this.resizable,E)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,i=t.direction,r=t.original;if(n&&this.resizable){var s={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,i,this.resizable,s),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Ae(Ae({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,i=t.handleStyles,s=t.handleClasses,o=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var u=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(we,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:i&&i[t],className:s&&s[t]},l&&l[t]?l[t]:null):null}));return r.createElement("div",{className:a,style:o},u)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==Le.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=Ae(Ae(Ae({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return r.createElement(i,Ae({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent),Ie=n(3),Ne=n.n(Ie),$e=n(61),je={insert:"head",singleton:!1},Ve=(Ne()($e.a,je),$e.a.locals||{});class ze extends r.PureComponent{render(){return s.a.createElement("div",{className:Ve["resize-handle"]})}}var We=n(62),Ue={insert:"head",singleton:!1},He=(Ne()(We.a,Ue),We.a.locals||{});function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ke extends r.PureComponent{constructor(...e){super(...e),qe(this,"onStageDeleted",()=>{this.props.stageDeleted(this.props.index),this.props.setIsModified(!0),this.props.runStage(this.props.index)})}render(){return s.a.createElement("div",{className:fe()(He["delete-stage"])},s.a.createElement("button",{type:"button",title:"Delete Stage",className:"btn btn-default btn-xs",onClick:this.onStageDeleted},s.a.createElement("i",{className:"fa fa-trash-o","aria-hidden":!0})))}}qe(Ke,"displayName","DeleteStageComponent"),qe(Ke,"propTypes",{index:a.a.number.isRequired,runStage:a.a.func.isRequired,stageDeleted:a.a.func.isRequired,setIsModified:a.a.func.isRequired});var Ge=Ke,Xe=n(7),Je=n(63),Ye={insert:"head",singleton:!1},Qe=(Ne()(Je.a,Ye),Je.a.locals||{});function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class et extends r.PureComponent{constructor(...e){super(...e),Ze(this,"onStageAddedAfter",()=>{this.props.stageAddedAfter(this.props.index)})}render(){return s.a.createElement("div",{className:fe()(Qe["add-after-stage"]),"data-tip":"Add stage below","data-place":"top","data-for":"add-after-stage"},s.a.createElement("button",{type:"button",title:"Add After Stage",className:"btn btn-default btn-xs",onClick:this.onStageAddedAfter},"+"),s.a.createElement(Xe.Tooltip,{id:"add-after-stage"}))}}Ze(et,"displayName","AddAfterStageComponent"),Ze(et,"propTypes",{index:a.a.number.isRequired,stageAddedAfter:a.a.func.isRequired});var tt=et,nt=n(30),it=n.n(nt),rt=n(64),st={insert:"head",singleton:!1},ot=(Ne()(rt.a,st),rt.a.locals||{});function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class lt extends r.PureComponent{constructor(...e){super(...e),at(this,"onStageToggled",()=>{this.props.stageToggled(this.props.index),this.props.setIsModified(!0),this.props.runStage(this.props.index)})}render(){const e=this.props.isEnabled?"Exclude stage from pipeline":"Include stage in pipeline";return s.a.createElement("div",{className:fe()(ot["toggle-stage"]),"data-for":"toggle-stage","data-tip":e,"data-place":"top"},s.a.createElement(it.a,{checked:this.props.isEnabled,onChange:this.onStageToggled,className:fe()(ot["toggle-stage-button"]),onColor:"rgb(19, 170, 82)",style:{backgroundColor:"rgb(255,255,255)"}}),s.a.createElement(Xe.Tooltip,{id:"toggle-stage"}))}}at(lt,"displayName","ToggleStageComponent"),at(lt,"propTypes",{isEnabled:a.a.bool.isRequired,index:a.a.number.isRequired,runStage:a.a.func.isRequired,stageToggled:a.a.func.isRequired,setIsModified:a.a.func.isRequired});var ut,ct,ht,pt=lt,dt=n(65),ft={insert:"head",singleton:!1},gt=(Ne()(dt.a,ft),dt.a.locals||{});class mt extends r.PureComponent{render(){return s.a.createElement("div",{className:gt["stage-grabber"]},s.a.createElement("i",{className:"fa fa-bars fa-rotate-90","aria-hidden":!0}))}}ht="StageGrabberComponent",(ct="displayName")in(ut=mt)?Object.defineProperty(ut,ct,{value:ht,enumerable:!0,configurable:!0,writable:!0}):ut[ct]=ht;var vt=mt,yt=n(66),bt={insert:"head",singleton:!1},wt=(Ne()(yt.a,bt),yt.a.locals||{});function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ct extends r.PureComponent{constructor(...e){super(...e),xt(this,"onStageCollapseToggled",()=>{this.props.stageCollapseToggled(this.props.index),this.props.setIsModified(!0)})}render(){const e=this.props.isExpanded?"fa fa-angle-down":"fa fa-angle-right",t=this.props.isExpanded?"Collapse":"Expand";return s.a.createElement("div",{className:fe()(wt["stage-collapser"])},s.a.createElement("button",{type:"button",title:t,onClick:this.onStageCollapseToggled,className:"btn btn-default btn-xs"},s.a.createElement("i",{className:e,"aria-hidden":!0})))}}xt(Ct,"displayName","StageCollapserComponent"),xt(Ct,"propTypes",{isExpanded:a.a.bool.isRequired,index:a.a.number.isRequired,stageCollapseToggled:a.a.func.isRequired,setIsModified:a.a.func.isRequired});var Et=Ct,At=n(142),St=n.n(At),Dt=n(22),kt=function(e){var t=e.onMouseDown;return s.a.createElement("span",{className:"Select-arrow",onMouseDown:t})};kt.propTypes={onMouseDown:a.a.func};var Ft=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],_t=function(e){for(var t=0;t<Ft.length;t++)e=e.replace(Ft[t].letters,Ft[t].base);return e},Tt=function(e){return null!=e&&""!==e},Ot=function(e,t,n,i){return i.ignoreAccents&&(t=_t(t)),i.ignoreCase&&(t=t.toLowerCase()),i.trimFilter&&(t=t.replace(/^\s+|\s+$/g,"")),n&&(n=n.map((function(e){return e[i.valueKey]}))),e.filter((function(e){if(n&&n.indexOf(e[i.valueKey])>-1)return!1;if(i.filterOption)return i.filterOption.call(void 0,e,t);if(!t)return!0;var r=e[i.valueKey],s=e[i.labelKey],o=Tt(r),a=Tt(s);if(!o&&!a)return!1;var l=o?String(r):null,u=a?String(s):null;return i.ignoreAccents&&(l&&"label"!==i.matchProp&&(l=_t(l)),u&&"value"!==i.matchProp&&(u=_t(u))),i.ignoreCase&&(l&&"label"!==i.matchProp&&(l=l.toLowerCase()),u&&"value"!==i.matchProp&&(u=u.toLowerCase())),"start"===i.matchPos?l&&"label"!==i.matchProp&&l.substr(0,t.length)===t||u&&"value"!==i.matchProp&&u.substr(0,t.length)===t:l&&"label"!==i.matchProp&&l.indexOf(t)>=0||u&&"value"!==i.matchProp&&u.indexOf(t)>=0}))},Pt=function(e){var t=e.focusedOption,n=e.focusOption,i=e.inputValue,r=e.instancePrefix,o=e.onFocus,a=e.onOptionRef,l=e.onSelect,u=e.optionClassName,c=e.optionComponent,h=e.optionGroupComponent,p=e.optionRenderer,d=e.options,f=e.removeValue,g=e.selectValue,m=e.valueArray,v=e.valueKey,y=h,b=c,w=p;return function e(c){return c.map((function(c,h){if(function(e){return e&&Array.isArray(e.options)}(c)){var p=fe()({"Select-option-group":!0});return s.a.createElement(y,{className:p,key:"option-group-"+h,label:w(c),option:c,optionIndex:h},e(c.options))}var d=m&&m.indexOf(c)>-1,x=c===t,C=fe()(u,{"Select-option":!0,"is-selected":d,"is-focused":x,"is-disabled":c.disabled});return s.a.createElement(b,{className:C,focusOption:n,inputValue:i,instancePrefix:r,isDisabled:c.disabled,isFocused:x,isSelected:d,key:"option-"+h+"-"+c[v],onFocus:o,onSelect:l,option:c,optionIndex:h,ref:function(e){a(e,x)},removeValue:f,selectValue:g},w(c,h))}))}(d)};Pt.propTypes={focusOption:a.a.func,focusedOption:a.a.object,inputValue:a.a.string,instancePrefix:a.a.string,onFocus:a.a.func,onOptionRef:a.a.func,onSelect:a.a.func,optionClassName:a.a.string,optionComponent:a.a.func,optionRenderer:a.a.func,options:a.a.array,removeValue:a.a.func,selectValue:a.a.func,valueArray:a.a.array,valueKey:a.a.string};var Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt=(function(){function e(e){this.value=e}function t(t){var n,i;function r(n,i){try{var o=t[n](i),a=o.value;a instanceof e?Promise.resolve(a.value).then((function(e){r("next",e)}),(function(e){r("throw",e)})):s(o.done?"return":"normal",o.value)}catch(e){s("throw",e)}}function s(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?r(n.key,n.arg):i=null}this._invoke=function(e,t){return new Promise((function(s,o){var a={key:e,arg:t,resolve:s,reject:o,next:null};i?i=i.next=a:(n=i=a,r(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),Lt=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Mt=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Nt=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},$t=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},jt=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Vt=function(e){function t(){return Bt(this,t),jt(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Nt(t,e),Lt(t,[{key:"render",value:function(){return this.props.children}}]),t}(s.a.Component);Vt.propTypes={children:a.a.node};var zt=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},Wt=function(e){function t(e){Bt(this,t);var n=jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return Nt(t,e),Lt(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,i=e.optionIndex,r=fe()(this.props.className,t.className);return t.disabled?s.a.createElement("div",{className:r,onMouseDown:zt,onClick:zt},this.props.children):s.a.createElement("div",{className:r,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+i,title:t.title},this.props.children)}}]),t}(s.a.Component);Wt.propTypes={children:a.a.node,className:a.a.string,instancePrefix:a.a.string.isRequired,isDisabled:a.a.bool,isFocused:a.a.bool,isSelected:a.a.bool,onFocus:a.a.func,onSelect:a.a.func,onUnfocus:a.a.func,option:a.a.object.isRequired,optionIndex:a.a.number};var Ut=function(e){function t(e){Bt(this,t);var n=jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return Nt(t,e),Lt(t,[{key:"blockEvent",value:function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)}},{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(e){this.dragging=!0}},{key:"handleTouchStart",value:function(e){this.dragging=!1}},{key:"render",value:function(){var e=this.props.option,t=fe()(this.props.className,e.className);return e.disabled?s.a.createElement("div",{className:t,onMouseDown:this.blockEvent,onClick:this.blockEvent},this.props.children):s.a.createElement("div",{className:t,style:e.style,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,title:e.title},s.a.createElement("div",{className:"Select-option-group-label"},this.props.label),this.props.children)}}]),t}(s.a.Component);Ut.propTypes={children:a.a.any,className:a.a.string,label:a.a.node,option:a.a.object.isRequired};var Ht=function(e){function t(e){Bt(this,t);var n=jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return Nt(t,e),Lt(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return s.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?s.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):s.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return s.a.createElement("div",{className:fe()("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(s.a.Component);
31
+ /*!
32
+ Copyright (c) 2017 Jed Watson.
33
+ Licensed under the MIT License (MIT), see
34
+ http://jedwatson.github.io/react-select
35
+ */
36
+ function qt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}Ht.propTypes={children:a.a.node,disabled:a.a.bool,id:a.a.string,onClick:a.a.func,onRemove:a.a.func,value:a.a.object.isRequired};var Kt=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},Gt=a.a.oneOfType([a.a.string,a.a.node]),Xt=(a.a.oneOfType([a.a.string,a.a.number]),1),Jt=function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},Yt=function(e){function t(e){Bt(this,t);var n=jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return["clearValue","focusOption","getOptionLabel","handleInputBlur","handleInputChange","handleInputFocus","handleInputValueChange","handleKeyDown","handleMenuScroll","handleMouseDown","handleMouseDownOnArrow","handleMouseDownOnMenu","handleTouchEnd","handleTouchEndClearValue","handleTouchMove","handleTouchOutside","handleTouchStart","handleValueClick","onOptionRef","removeValue","selectValue"].forEach((function(e){return n[e]=n[e].bind(n)})),n.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1},n}return Nt(t,e),Lt(t,[{key:"componentWillMount",value:function(){this._flatOptions=this.flattenOptions(this.props.options),this._instancePrefix="react-select-"+(this.props.instanceId||++Xt)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:Jt(e[0],this.props.multi)})}},{key:"componentDidMount",value:function(){void 0!==this.props.autofocus&&"undefined"!=typeof console&&console.warn("Warning: The autofocus prop has changed to autoFocus, support will be removed after react-select@1.0"),(this.props.autoFocus||this.props.autofocus)&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){e.options!==this.props.options&&(this._flatOptions=this.flattenOptions(e.options));var t=this.getValueArray(e.value,e);!e.isOpen&&this.props.isOpen?this.closeMenu():e.isOpen&&!this.props.isOpen&&this.setState({isOpen:!0}),e.required?this.setState({required:Jt(t[0],e.multi)}):this.props.required&&this.setState({required:!1}),this.state.inputValue&&this.props.value!==e.value&&e.onSelectResetsInput&&this.setState({inputValue:this.handleInputValueChange("")})}},{key:"componentDidUpdate",value:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var n=Object(Dt.findDOMNode)(this.focused),i=Object(Dt.findDOMNode)(this.menu),r=i.scrollTop,s=r+i.offsetHeight,o=n.offsetTop,a=o+n.offsetHeight;(r>o||s<a)&&(i.scrollTop=n.offsetTop),this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var l=Object(Dt.findDOMNode)(this.focused),u=Object(Dt.findDOMNode)(this.menu),c=l.getBoundingClientRect(),h=u.getBoundingClientRect();c.bottom>h.bottom?u.scrollTop=l.offsetTop+l.clientHeight-u.offsetHeight:c.top<h.top&&(u.scrollTop=l.offsetTop)}if(this.props.scrollMenuIntoView&&this.menuContainer){var p=this.menuContainer.getBoundingClientRect();window.innerHeight<p.bottom+this.props.menuBuffer&&window.scrollBy(0,p.bottom+this.props.menuBuffer-window.innerHeight)}if(e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu()),t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(this.state.isOpen);var d=this.state.isOpen?this.props.onOpen:this.props.onClose;d&&d()}}},{key:"componentWillUnmount",value:function(){this.toggleTouchOutsideEvent(!1)}},{key:"toggleTouchOutsideEvent",value:function(e){e?!document.addEventListener&&document.attachEvent?document.attachEvent("ontouchstart",this.handleTouchOutside):document.addEventListener("touchstart",this.handleTouchOutside):!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)}},{key:"handleTouchOutside",value:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"blurInput",value:function(){this.input&&this.input.blur()}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchEndClearValue",value:function(e){this.dragging||this.clearValue(e)}},{key:"handleMouseDown",value:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button))if("INPUT"!==e.target.tagName){if(e.preventDefault(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen});if(this.state.isFocused){this.focus();var t=this.input,n=!0;"function"==typeof t.getInput&&(t=t.getInput()),t.value="",this._focusAfterClear&&(n=!1,this._focusAfterClear=!1),this.setState({isOpen:n,isPseudoFocused:!1,focusedOption:null})}else this._openAfterFocus=this.props.openOnClick,this.focus(),this.setState({focusedOption:null})}else this.state.isFocused?this.state.isOpen||this.setState({isOpen:!0,isPseudoFocused:!1}):(this._openAfterFocus=this.props.openOnClick,this.focus())}},{key:"handleMouseDownOnArrow",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(this.state.isOpen?(e.stopPropagation(),e.preventDefault(),this.closeMenu()):this.setState({isOpen:!0}))}},{key:"handleMouseDownOnMenu",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}),this.hasScrolledToOption=!1}},{key:"handleInputFocus",value:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;t=!this._focusAfterClear&&t,this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0,isOpen:!!t}),this._focusAfterClear=!1,this._openAfterFocus=!1}}},{key:"handleInputBlur",value:function(e){if(!this.menu||this.menu!==document.activeElement&&!this.menu.contains(document.activeElement)){this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=this.handleInputValueChange("")),this.setState(t)}else this.focus()}},{key:"handleInputChange",value:function(e){var t=e.target.value;this.state.inputValue!==e.target.value&&(t=this.handleInputValueChange(t)),this.setState({inputValue:t,isOpen:!0,isPseudoFocused:!1})}},{key:"setInputValue",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==(void 0===t?"undefined":Rt(t))&&(e=""+t)}this.setState({inputValue:e})}},{key:"handleInputValueChange",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==(void 0===t?"undefined":Rt(t))&&(e=""+t)}return e}},{key:"handleKeyDown",value:function(e){if(!(this.props.disabled||"function"==typeof this.props.onInputKeyDown&&(this.props.onInputKeyDown(e),e.defaultPrevented)))switch(e.keyCode){case 8:!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue());break;case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)break;e.preventDefault(),this.selectFocusedOption();break;case 13:e.preventDefault(),e.stopPropagation(),this.state.isOpen?this.selectFocusedOption():this.focusNextOption();break;case 27:e.preventDefault(),this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 32:if(this.props.searchable)break;if(e.preventDefault(),!this.state.isOpen){this.focusNextOption();break}e.stopPropagation(),this.selectFocusedOption();break;case 38:e.preventDefault(),this.focusPreviousOption();break;case 40:e.preventDefault(),this.focusNextOption();break;case 33:e.preventDefault(),this.focusPageUpOption();break;case 34:e.preventDefault(),this.focusPageDownOption();break;case 35:if(e.shiftKey)break;e.preventDefault(),this.focusEndOption();break;case 36:if(e.shiftKey)break;e.preventDefault(),this.focusStartOption();break;case 46:e.preventDefault(),!this.state.inputValue&&this.props.deleteRemoves&&this.popValue()}}},{key:"handleValueClick",value:function(e,t){this.props.onValueClick&&this.props.onValueClick(e,t)}},{key:"handleMenuScroll",value:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i="object"===(void 0===n?"undefined":Rt(n))?n:this.props;if(i.multi){if("string"==typeof e&&(e=e.split(i.delimiter)),!Array.isArray(e)){if(null==e)return[];e=[e]}return e.map((function(e){return t.expandValue(e,i)})).filter((function(e){return e}))}var r=this.expandValue(e,i);return r?[r]:[]}},{key:"expandValue",value:function(e,t){var n=void 0===e?"undefined":Rt(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var i=t.labelKey,r=t.renderInvalidValues,s=t.valueKey,o=this._flatOptions;if(o){for(var a=0;a<o.length;a++)if(String(o[a][s])===String(e))return o[a];var l;if(r)return this._invalidOptions=this._invalidOptions||{},this._invalidOptions[e]=this._invalidOptions[e]||(Mt(l={invalid:!0},i,e),Mt(l,s,e),l),this._invalidOptions[e]}}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=Jt(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map((function(e){return e[t.props.valueKey]})).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},(function(){t.getValueArray(t.props.value).some((function(n){return n[t.props.valueKey]===e[t.props.valueKey]}))?t.removeValue(e):t.addValue(e)})):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},(function(){t.setValue(e)}))}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter((function(e){return!e.disabled})),i=n.indexOf(e);this.setValue(t.concat(e)),n.length-1===i?this.focusOption(n[i-1]):n.length>i&&this.focusOption(n[i+1])}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter((function(n){return n[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var i=-1,r=0;r<t.length;r++)if(this._focusedOption===t[r].option){i=r;break}if("next"===e&&-1!==i)i=(i+1)%t.length;else if("previous"===e)i>0?i-=1:i=t.length-1;else if("start"===e)i=0;else if("end"===e)i=t.length-1;else if("page_up"===e){var s=i-this.props.pageSize;i=s<0?0:s}else if("page_down"===e){var o=i+this.props.pageSize;i=o>t.length-1?t.length-1:o}-1===i&&(i=0),this.setState({focusedIndex:t[i].index,focusedOption:t[i].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return s.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},s.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,i=this.props.valueRenderer||this.getOptionLabel,r=this.props.valueComponent;if(!e.length)return function(e,t,n){var i=e.inputValue,r=e.isPseudoFocused,s=e.isFocused,o=t.onSelectResetsInput;return!i||!o&&!n&&!r&&!s}(this.state,this.props,t)?s.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null;var o,a,l,u,c,h,p=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(e,t){return s.a.createElement(r,{disabled:n.props.disabled||!1===e.clearableValue,id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,key:"value-"+t+"-"+e[n.props.valueKey],onClick:p,onRemove:n.removeValue,placeholder:n.props.placeholder,value:e},i(e,t),s.a.createElement("span",{className:"Select-aria-only"}," "))})):(o=this.state,a=this.props,l=o.inputValue,u=o.isPseudoFocused,c=o.isFocused,h=a.onSelectResetsInput,l&&(h||!c&&u||c&&!u)?void 0:(t&&(p=null),s.a.createElement(r,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:p,placeholder:this.props.placeholder,value:e[0]},i(e[0]))))}},{key:"renderInput",value:function(e,t){var n,i=this,r=fe()("Select-input",this.props.inputProps.className),o=this.state.isOpen,a=fe()((Mt(n={},this._instancePrefix+"-list",o),Mt(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),l=this.state.inputValue;!l||this.props.onSelectResetsInput||this.state.isFocused||(l="");var u=It({},this.props.inputProps,{"aria-activedescendant":o?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+o,"aria-haspopup":""+o,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":a,className:r,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return i.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:l});if(this.props.inputRenderer)return this.props.inputRenderer(u);if(this.props.disabled||!this.props.searchable){var c=$t(this.props.inputProps,[]),h=fe()(Mt({},this._instancePrefix+"-list",o));return s.a.createElement("div",It({},c,{"aria-expanded":o,"aria-owns":h,"aria-activedescendant":o?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:r,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return i.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?s.a.createElement(St.a,It({id:this.props.id},u,{minWidth:"5"})):s.a.createElement("div",{className:r,key:"input-wrap"},s.a.createElement("input",It({id:this.props.id},u)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return s.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?s.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterFlatOptions",value:function(e){var t=this.state.inputValue,n=this._flatOptions;return this.props.filterOptions?("function"==typeof this.props.filterOptions?this.props.filterOptions:Ot)(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey}):n}},{key:"flattenOptions",value:function(e,t){if(!e)return[];for(var n,i=[],r=0;r<e.length;r++){var s=qt(e[r]);t&&(s.group=t),(n=s)&&Array.isArray(n.options)?(i=i.concat(this.flattenOptions(s.options,s)),s.options=[]):i.push(s)}return i}},{key:"unflattenOptions",value:function(e){var t=[],n=void 0,i=void 0;return e.forEach((function(e){for(e.isInTree=!1,n=e.group;n;)n.isInTree&&(n.options=[],n.isInTree=!1),n=n.group})),e.forEach((function(e){for(n=(i=e).group;n;)i.isInTree||(n.options.push(i),i.isInTree=!0),n=(i=n).group;i.isInTree||(t.push(i),i.isInTree=!0)})),e.forEach((function(e){delete e.isInTree})),t}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionGroupComponent:this.props.optionGroupComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?s.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map((function(e){return Kt(e[t.props.valueKey])})).join(this.props.delimiter);return s.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map((function(e,n){return s.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:Kt(e[t.props.valueKey])})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,i=this.state.focusedOption||e;if(i&&!i.disabled){var r=-1;if(t.some((function(e,t){var s=e[n]===i[n];return s&&(r=t),s})),-1!==r)return r}for(var s=0;s<t.length;s++)if(!t[s].disabled)return s;return null}},{key:"renderOuter",value:function(e,t,n){var i=this,r=this.props.dropdownComponent,o=this.renderMenu(e,t,n);return o?s.a.createElement(r,null,s.a.createElement("div",{ref:function(e){return i.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},s.a.createElement("div",{className:"Select-menu",id:this._instancePrefix+"-list",onMouseDown:this.handleMouseDownOnMenu,onScroll:this.handleMenuScroll,ref:function(e){return i.menu=e},role:"listbox",style:this.props.menuStyle,tabIndex:-1},o))):null}},{key:"render",value:function(){var e=this,t=this.getValueArray(this.props.value);this._visibleOptions=this.filterFlatOptions(this.props.multi&&this.props.removeSelected?t:null);var n=this.unflattenOptions(this._visibleOptions),i="boolean"==typeof this.props.isOpen?this.props.isOpen:this.state.isOpen;this.props.multi&&!n.length&&t.length&&!this.state.inputValue&&(i=!1);var r=this.getFocusableOptionIndex(t[0]),o=null;o=this._focusedOption=null!==r?this._visibleOptions[r]:null;var a=fe()("Select",this.props.className,{"has-value":t.length,"is-clearable":this.props.clearable,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":i,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"Select--multi":this.props.multi,"Select--rtl":this.props.rtl,"Select--single":!this.props.multi}),l=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(l=s.a.createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),s.a.createElement("div",{ref:function(t){return e.wrapper=t},className:a,style:this.props.wrapperStyle},this.renderHiddenField(t),s.a.createElement("div",{ref:function(t){return e.control=t},className:"Select-control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,style:this.props.style},s.a.createElement("span",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,i),this.renderInput(t,r)),l,this.renderLoading(),this.renderClear(),this.renderArrow()),i?this.renderOuter(n,t,o):null)}}]),t}(s.a.Component);Yt.propTypes={"aria-describedby":a.a.string,"aria-label":a.a.string,"aria-labelledby":a.a.string,arrowRenderer:a.a.func,autoBlur:a.a.bool,autoFocus:a.a.bool,autofocus:a.a.bool,autosize:a.a.bool,backspaceRemoves:a.a.bool,backspaceToRemoveMessage:a.a.string,className:a.a.string,clearAllText:Gt,clearRenderer:a.a.func,clearValueText:Gt,clearable:a.a.bool,closeOnSelect:a.a.bool,deleteRemoves:a.a.bool,delimiter:a.a.string,disabled:a.a.bool,dropdownComponent:a.a.func,escapeClearsValue:a.a.bool,filterOption:a.a.func,filterOptions:a.a.any,id:a.a.string,ignoreAccents:a.a.bool,ignoreCase:a.a.bool,inputProps:a.a.object,inputRenderer:a.a.func,instanceId:a.a.string,isLoading:a.a.bool,isOpen:a.a.bool,joinValues:a.a.bool,labelKey:a.a.string,matchPos:a.a.string,matchProp:a.a.string,menuBuffer:a.a.number,menuContainerStyle:a.a.object,menuRenderer:a.a.func,menuStyle:a.a.object,multi:a.a.bool,name:a.a.string,noResultsText:Gt,onBlur:a.a.func,onBlurResetsInput:a.a.bool,onChange:a.a.func,onClose:a.a.func,onCloseResetsInput:a.a.bool,onFocus:a.a.func,onInputChange:a.a.func,onInputKeyDown:a.a.func,onMenuScrollToBottom:a.a.func,onOpen:a.a.func,onSelectResetsInput:a.a.bool,onValueClick:a.a.func,openOnClick:a.a.bool,openOnFocus:a.a.bool,optionClassName:a.a.string,optionComponent:a.a.func,optionGroupComponent:a.a.func,optionRenderer:a.a.func,options:a.a.array,pageSize:a.a.number,placeholder:Gt,removeSelected:a.a.bool,renderInvalidValues:a.a.bool,required:a.a.bool,resetValue:a.a.any,rtl:a.a.bool,scrollMenuIntoView:a.a.bool,searchable:a.a.bool,simpleValue:a.a.bool,style:a.a.object,tabIndex:a.a.string,tabSelectsValue:a.a.bool,trimFilter:a.a.bool,value:a.a.any,valueComponent:a.a.func,valueKey:a.a.string,valueRenderer:a.a.func,wrapperStyle:a.a.object},Yt.defaultProps={arrowRenderer:kt,autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearRenderer:function(){return s.a.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"&times;"}})},clearValueText:"Clear value",closeOnSelect:!0,deleteRemoves:!0,delimiter:",",disabled:!1,dropdownComponent:Vt,escapeClearsValue:!0,filterOptions:Ot,ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:Pt,multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,onSelectResetsInput:!0,openOnClick:!0,optionComponent:Wt,optionGroupComponent:Ut,pageSize:5,placeholder:"Select...",removeSelected:!0,required:!1,rtl:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,trimFilter:!0,valueComponent:Ht,valueKey:"value"};var Qt={autoload:a.a.bool.isRequired,cache:a.a.any,children:a.a.func.isRequired,ignoreAccents:a.a.bool,ignoreCase:a.a.bool,loadOptions:a.a.func.isRequired,loadingPlaceholder:a.a.oneOfType([a.a.string,a.a.node]),multi:a.a.bool,noResultsText:a.a.oneOfType([a.a.string,a.a.node]),onChange:a.a.func,onInputChange:a.a.func,options:a.a.array.isRequired,placeholder:a.a.oneOfType([a.a.string,a.a.node]),searchPromptText:a.a.oneOfType([a.a.string,a.a.node]),value:a.a.any},Zt={},en={autoload:!0,cache:Zt,children:function(e){return s.a.createElement(Yt,e)},ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},tn=function(e){function t(e,n){Bt(this,t);var i=jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i._cache=e.cache===Zt?{}:e.cache,i.state={inputValue:"",isLoading:!1,options:e.options},i.onInputChange=i.onInputChange.bind(i),i}return Nt(t,e),Lt(t,[{key:"componentDidMount",value:function(){this.props.autoload&&this.loadOptions("")}},{key:"componentWillReceiveProps",value:function(e){e.options!==this.props.options&&this.setState({options:e.options})}},{key:"componentWillUnmount",value:function(){this._callback=null}},{key:"loadOptions",value:function(e){var t=this,n=this.props.loadOptions,i=this._cache;if(i&&Object.prototype.hasOwnProperty.call(i,e))return this._callback=null,void this.setState({isLoading:!1,options:i[e]});var r=function n(r,s){var o=s&&s.options||[];i&&(i[e]=o),n===t._callback&&(t._callback=null,t.setState({isLoading:!1,options:o}))};this._callback=r;var s=n(e,r);s&&s.then((function(e){return r(0,e)}),(function(e){return r()})),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0})}},{key:"onInputChange",value:function(e){var t=this.props,n=t.ignoreAccents,i=t.ignoreCase,r=t.onInputChange,s=e;if(r){var o=r(s);null!=o&&"object"!==(void 0===o?"undefined":Rt(o))&&(s=""+o)}var a=s;return n&&(a=_t(a)),i&&(a=a.toLowerCase()),this.setState({inputValue:s}),this.loadOptions(a),s}},{key:"noResultsText",value:function(){var e=this.props,t=e.loadingPlaceholder,n=e.noResultsText,i=e.searchPromptText,r=this.state,s=r.inputValue;return r.isLoading?t:s&&n?n:i}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.loadingPlaceholder,r=t.placeholder,s=this.state,o=s.isLoading,a=s.options,l={noResultsText:this.noResultsText(),placeholder:o?i:r,options:o&&i?[]:a,ref:function(t){return e.select=t}};return n(It({},this.props,l,{isLoading:o,onInputChange:this.onInputChange}))}}]),t}(r.Component);tn.propTypes=Qt,tn.defaultProps=en;var nn=function(e){function t(e,n){Bt(this,t);var i=jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.filterOptions=i.filterOptions.bind(i),i.menuRenderer=i.menuRenderer.bind(i),i.onInputKeyDown=i.onInputKeyDown.bind(i),i.onInputChange=i.onInputChange.bind(i),i.onOptionSelect=i.onOptionSelect.bind(i),i}return Nt(t,e),Lt(t,[{key:"createNewOption",value:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,i=e.onNewOptionClick,r=e.options,s=void 0===r?[]:r;if(t({label:this.inputValue})){var o=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});this.isOptionUnique({option:o,options:s})&&(i?i(o):(s.unshift(o),this.select.selectValue(o)))}}},{key:"filterOptions",value:function(){var e=this.props,t=e.filterOptions,n=e.isValidNewOption,i=e.promptTextCreator,r=(arguments.length<=2?void 0:arguments[2])||[],s=t.apply(void 0,arguments)||[];if(n({label:this.inputValue})){var o=this.props.newOptionCreator,a=o({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),l=this.isOptionUnique({option:a,options:r.concat(s)});if(l){var u=i(this.inputValue);this._createPlaceholderOption=o({label:u,labelKey:this.labelKey,valueKey:this.valueKey}),s.unshift(this._createPlaceholderOption)}}return s}},{key:"isOptionUnique",value:function(e){var t=e.option,n=e.options,i=this.props.isOptionUnique;return n=n||this.select.filterFlatOptions(),i({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})}},{key:"menuRenderer",value:function(e){var t=this.props.menuRenderer;return t(It({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))}},{key:"onInputChange",value:function(e){var t=this.props.onInputChange;return this.inputValue=e,t&&(this.inputValue=t(e)),this.inputValue}},{key:"onInputKeyDown",value:function(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,i=t.onInputKeyDown,r=this.select.getFocusedOption();r&&r===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):i&&i(e)}},{key:"onOptionSelect",value:function(e){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.ref,i=$t(t,["ref"]),r=this.props.children;return r||(r=rn),r(It({},i,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey),n&&n(t)}}))}}]),t}(s.a.Component),rn=function(e){return s.a.createElement(Yt,e)},sn=function(e){var t=e.option,n=e.options,i=e.labelKey,r=e.valueKey;return!n||!n.length||0===n.filter((function(e){return e[i]===t[i]||e[r]===t[r]})).length},on=function(e){return!!e.label},an=function(e){var t=e.label,n=e.labelKey,i={};return i[e.valueKey]=t,i[n]=t,i.className="Select-create-option-placeholder",i},ln=function(e){return'Create option "'+e+'"'},un=function(e){switch(e.keyCode){case 9:case 13:case 188:return!0;default:return!1}};nn.isOptionUnique=sn,nn.isValidNewOption=on,nn.newOptionCreator=an,nn.promptTextCreator=ln,nn.shouldKeyDownEventCreateNewOption=un,nn.defaultProps={filterOptions:Ot,isOptionUnique:sn,isValidNewOption:on,menuRenderer:Pt,newOptionCreator:an,promptTextCreator:ln,shouldKeyDownEventCreateNewOption:un},nn.propTypes={children:a.a.func,filterOptions:a.a.any,isOptionUnique:a.a.func,isValidNewOption:a.a.func,menuRenderer:a.a.any,newOptionCreator:a.a.func,onInputChange:a.a.func,onInputKeyDown:a.a.func,onNewOptionClick:a.a.func,options:a.a.array,promptTextCreator:a.a.func,ref:a.a.func,shouldKeyDownEventCreateNewOption:a.a.func};var cn=function(e){function t(){return Bt(this,t),jt(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Nt(t,e),Lt(t,[{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this;return s.a.createElement(tn,this.props,(function(t){var n=t.ref,i=$t(t,["ref"]),r=n;return s.a.createElement(nn,i,(function(t){var n=t.ref,i=$t(t,["ref"]),s=n;return e.props.children(It({},i,{ref:function(t){s(t),r(t),e.select=t}}))}))}))}}]),t}(s.a.Component);cn.propTypes={children:a.a.func.isRequired},cn.defaultProps={children:function(e){return s.a.createElement(Yt,e)}},Yt.Async=tn,Yt.AsyncCreatable=cn,Yt.Creatable=nn,Yt.Value=Ht,Yt.Option=Wt;var hn=Yt,pn=n(41),dn=n(42),fn=n.n(dn),gn=n(31),mn=n.n(gn),vn=n(21),yn=n.n(vn),bn=n(18),wn=n.n(bn);const xn="Stage must be a properly formatted document.";function Cn(...e){const t=yn()(...e);if(!t)throw new Error(xn);return t}function En(e,t){const n=[];if("$project"!==e.stageOperator)return n;if(!e.isEnabled||!e.stageOperator||""===e.stage)return n;if(!t){t={};try{const n=wn()(e.stage);t[e.stageOperator]=Cn(n)}catch(e){return n}}const i=t[e.stageOperator];return Object.keys(i).map(e=>{const t=i[e];t&&n.push({name:e,value:e,score:1,meta:JSON.stringify(t),version:"0.0.0"})}),n}function An(e){if(!e.isEnabled||!e.stageOperator||""===e.stage)return{};const t={};try{const n=wn()(e.stage);t[e.stageOperator]=Cn(n)}catch(t){return e.syntaxError=xn,e.isValid=!1,e.previewDocuments=[],{}}return e.projections=En(e,t),e.isValid=!0,e.syntaxError=null,t}n(201);var Sn=n(13),Dn=n(6),kn=n.n(Dn),Fn=n(16),_n=n(19),Tn=n.n(_n),On=n(43),Pn=n.n(On);const Rn={$addFields:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/addFields/#pipe._S_addFields",tooltip:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value."},$bucket:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/bucket/#pipe._S_bucket",tooltip:"Categorizes incoming documents into groups, called buckets, based on specified boundaries."},$bucketAuto:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/bucketAuto/#pipe._S_bucketAuto",tooltip:"Automatically categorizes documents into a specified number of buckets, attempting even distribution if possible."},$collStats:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/collStats/#pipe._S_collStats",tooltip:"Returns statistics regarding a collection or view."},$count:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/count/#pipe._S_count",tooltip:"Returns a count of the number of documents at this stage of the aggregation pipeline."},$currentOp:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/currentOp/#pipe._S_currentOp",tooltip:""},$facet:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/facet/#pipe._S_facet",tooltip:"Allows for multiple parellel aggregations to be specified."},$geoNear:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/geoNear/#pipe._S_geoNear",tooltip:"Returns documents based on proximity to a geospatial point."},$graphLookup:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/graphLookup/#pipe._S_graphLookup",tooltip:"Performs a recursive search on a collection. To each output document, adds a new array field that contains the traversal results of the recursive search for that document."},$group:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/group/#pipe._S_group",tooltip:"Groups documents by a specified expression."},$indexStats:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/indexStats/#pipe._S_indexStats",tooltip:"Returns statistics regarding the use of each index for the collection."},$limit:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/limit/#pipe._S_limit",tooltip:"Limits the number of documents that flow into subsequent stages."},$listLocalSessions:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/listLocalSessions/#pipe._S_listLocalSessions",tooltip:""},$listSessions:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/listSessions/#pipe._S_listSessions",tooltip:""},$lookup:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/#pipe._S_lookup",tooltip:"Performs a join between two collections."},$match:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/match/#pipe._S_match",tooltip:"Filters the document stream to allow only matching documents to pass through to subsequent stages."},$merge:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/merge/#pipe._S_merge",tooltip:"Merges the resulting documents into a collection, optionally overriding existing documents."},$out:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/out/#pipe._S_out",tooltip:"Writes the result of a pipeline to a new or existing collection."},$project:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/project/#pipe._S_project",tooltip:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields."},$redact:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/redact/#pipe._S_redact",tooltip:"Restricts the content for each document based on information stored in the documents themselves."},$replaceRoot:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot/#pipe._S_replaceRoot",tooltip:"Replaces a document with the specified embedded document."},$replaceWith:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/replaceWith/",tooltip:"Replaces a document with the specified embedded document."},$sample:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/sample/#pipe._S_sample",tooltip:"Randomly selects the specified number of documents from its input."},$search:{link:"https://docs.atlas.mongodb.com/reference/full-text-search/query-syntax/#pipe._S_search",tooltip:"Performs a full-text search on the specified field(s)."},$set:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/set/#pipe._S_set",tooltip:"Adds new fields to documents."},$skip:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/skip/#pipe._S_skip",tooltip:"Skips a specified number of documents before advancing to the next stage."},$sort:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/sort/#pipe._S_sort",tooltip:"Reorders the document stream by a specified sort key and direction."},$sortByCount:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/sortByCount/#pipe._S_sortByCount",tooltip:"Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group."},$unset:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/unset/",tooltip:"Removes or excludes fields from documents."},$unwind:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/#pipe._S_unwind",tooltip:"Outputs a new document for each element in a specified array. "}},Bn=(Object.freeze({$limit:20}),Object.freeze({$limit:1e5}),["$collStats","$currentOp","$indexStats","$listLocalSessions","$listSessions"]),Ln=["$group","$bucket","$bucketAuto"],Mn=()=>({id:(new Fn.ObjectId).toHexString(),stageOperator:null,stage:"",isValid:!0,isEnabled:!0,isExpanded:!0,isLoading:!1,isComplete:!1,previewDocuments:[],syntaxError:null,error:null,projections:[]}),In=[Mn()],Nn=e=>e.map(e=>Object.assign({},e)),$n={};$n["aggregations/pipeline/STAGE_CHANGED"]=(e,t)=>{const n=Nn(e);return n[t.index].stage=t.stage,n[t.index].isComplete=!1,n[t.index].fromStageOperators=!1,n},$n["aggregations/pipeline/STAGE_ADDED"]=e=>{const t=Nn(e),n={...Mn()};return t.push(n),t},$n["aggregations/pipeline/STAGE_ADDED_AFTER"]=(e,t)=>{const n=Nn(e),i={...Mn()};return n.splice(t.index+1,0,i),n},$n["aggregations/pipeline/STAGE_DELETED"]=(e,t)=>{const n=Nn(e);return n.splice(t.index,1),n},$n["aggregations/pipeline/STAGE_MOVED"]=(e,t)=>{if(t.fromIndex===t.toIndex)return e;const n=Nn(e);return n.splice(t.toIndex,0,n.splice(t.fromIndex,1)[0]),n},$n["aggregations/pipeline/STAGE_OPERATOR_SELECTED"]=(e,t)=>{const n=t.stageOperator;if(n!==e[t.index].stageOperator){const r=Nn(e),s=(i=n,Sn.STAGE_OPERATORS.find(e=>e.name===i)),o=(s||{}).snippet||"{\n \n}",a=(s||{}).comment||"",l=t.isCommenting?`${a}${o}`:o;return r[t.index].stageOperator=n,r[t.index].stage=l,r[t.index].snippet=l,r[t.index].isExpanded=!0,r[t.index].isComplete=!1,r[t.index].fromStageOperators=!0,r}var i;return e},$n["aggregations/pipeline/STAGE_TOGGLED"]=(e,t)=>{const n=Nn(e);return n[t.index].isEnabled=!n[t.index].isEnabled,n},$n["aggregations/pipeline/STAGE_COLLAPSE_TOGGLED"]=(e,t)=>{const n=Nn(e);return n[t.index].isExpanded=!n[t.index].isExpanded,n},$n["aggregations/pipeline/STAGE_PREVIEW_UPDATED"]=(e,t)=>{const n=Nn(e);return n.env===Sn.ADL||n.env===Sn.ATLAS||"$search"!==n[t.index].stageOperator||!t.error||40324!==t.error.code&&31082!==t.error.code?(n[t.index].previewDocuments=null===t.error||void 0===t.error?t.documents:[],n[t.index].error=t.error?t.error.message:null,n[t.index].isMissingAtlasOnlyStageSupport=!1):(n[t.index].previewDocuments=[],n[t.index].error=null,n[t.index].isMissingAtlasOnlyStageSupport=!0),n[t.index].isLoading=!1,n[t.index].isComplete=t.isComplete,n},$n["aggregations/pipeline/LOADING_STAGE_RESULTS"]=(e,t)=>{const n=Nn(e);return n[t.index].isLoading=!0,n};const jn=(e,t,n,i)=>({type:"aggregations/pipeline/STAGE_PREVIEW_UPDATED",documents:e,index:t,error:n,isComplete:i}),Vn=e=>({type:"aggregations/pipeline/LOADING_STAGE_RESULTS",index:e}),zn=(e,t)=>{const n=e.inputDocuments.count,i=e.largeLimit||1e5;return e.pipeline.reduce((r,s,o)=>(o<=t&&s.isEnabled&&(("N/A"===n&&e.sample||n>i&&Ln.includes(s.stageOperator)&&e.sample)&&r.push({$limit:i}),r.push(s.executor||An(s))),r),[])},Wn=(e,t)=>`[${e.pipeline.filter((e,n)=>e.isEnabled&&n<=t).map(e=>function(e){if(!e.isEnabled||!e.stageOperator||""===e.stage)return"{}";const t=wn()(e.stage);let n;try{n=Cn(t)}catch(t){return e.syntaxError=xn,e.isValid=!1,e.previewDocuments=[],"{}"}e.isValid=!0,e.syntaxError=null;const i=yn.a.toJSString(n);return`{${e.stageOperator}: ${i}}`}(e)).join(", ")}]`,Un=(e,t,n,i,r)=>{const s=i.pipeline[r];s.executor=An(s),s.isValid&&s.isEnabled&&s.stageOperator&&"$out"!==s.stageOperator&&"$merge"!==s.stageOperator?qn(e,t,n,i,r):n(jn([],r,null,!1))},Hn=(e,t,n,i,r,s)=>{const o={maxTimeMS:r.maxTimeMS||6e4,allowDiskUse:!0};!1===Pn()(r.collation)&&(o.collation=r.collation),t.aggregate(n,e,o,(e,t)=>{if(e)return i(jn([],s,e));t.toArray((e,n)=>{i(jn(n||[],s,e,!0)),t.close(),i(Object(Dn.globalAppRegistryEmit)("agg-pipeline-executed",{id:r.id,numStages:r.pipeline.length,stageOperators:r.pipeline.map(e=>e.stageOperator)}))})})},qn=(e,t,n,i,r)=>{n(Vn(r));const s=((e,t)=>{const n=zn(e,t),i=e.pipeline[e.pipeline.length-1];return n.length>0&&!Bn.includes(i.stageOperator)&&n.push({$limit:e.limit||20}),n})(i,r);Hn(s,e,t,n,i,r)},Kn=e=>(t,n)=>{const i=n();if(e<i.pipeline.length){""===i.id&&t({type:"aggregations/id/CREATE_ID"});const n=i.dataService.dataService,r=i.namespace;for(let s=e;s<i.pipeline.length;s++)Un(n,r,t,i,s)}},Gn=(e,t)=>{const n=An(t).$merge;if(fn()(n))return`${e}.${n}`;const i=n.into;return fn()(i)?`${e}.${i}`:`${i.db||e}.${i.coll}`},Xn=e=>!!e&&e.every(e=>e===Sn.ATLAS);var Jn=n(67),Yn={insert:"head",singleton:!1},Qn=(Ne()(Jn.a,Yn),Jn.a.locals||{});function Zn(){return(Zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}class ei extends r.Component{render(){const{option:e}=this.props;return s.a.createElement("div",{"data-tip":e.description,"data-place":"right","data-for":"select-option-"+e.name},s.a.createElement(Wt,Zn({},this.props,{className:Qn.option+" "+this.props.className}),this.props.children,Xn(e.env)&&s.a.createElement(pn.AtlasLogoMark,{size:12,className:Qn.optionIcon})),s.a.createElement(Xe.Tooltip,{className:Qn.tooltip,id:"select-option-"+e.name}))}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(ei,"propTypes",{option:a.a.object,className:a.a.string,children:a.a.array});var ti=ei,ni=n(68),ii={insert:"head",singleton:!1},ri=(Ne()(ni.a,ii),ni.a.locals||{});function si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class oi extends r.PureComponent{constructor(...e){super(...e),si(this,"onStageOperatorSelected",e=>{this.props.stageOperatorSelected(this.props.index,e,this.props.isCommenting,this.props.env),this.props.setIsModified(!0)})}render(){const e=((e,t,n)=>{const i=mn.a.parse(e),r=i?[i.major,i.minor,i.patch].join("."):e;return Sn.STAGE_OPERATORS.filter(e=>!!("$out"!==e.name&&"$merge"!==e.name||t)&&(mn.a.gte(r,e.version)&&(((e,t)=>!e||!t||e.includes(t))(e.env,n)||Xn(e.env))))})(this.props.serverVersion,this.props.allowWrites,this.props.env);return s.a.createElement("div",{className:ri["stage-operator-select"]},s.a.createElement(hn,{optionComponent:ti,simpleValue:!0,searchable:!0,openOnClick:!0,openOnFocus:!0,clearable:!1,disabled:!this.props.isEnabled,className:ri["stage-operator-select-control"],options:e,value:this.props.stageOperator,onChange:this.onStageOperatorSelected}))}}si(oi,"displayName","StageOperatorSelectComponent"),si(oi,"propTypes",{allowWrites:a.a.bool.isRequired,env:a.a.string.isRequired,stageOperator:a.a.string,index:a.a.number.isRequired,isEnabled:a.a.bool.isRequired,isCommenting:a.a.bool.isRequired,stageOperatorSelected:a.a.func.isRequired,serverVersion:a.a.string.isRequired,setIsModified:a.a.func.isRequired});var ai=oi,li=n(69),ui={insert:"head",singleton:!1},ci=(Ne()(li.a,ui),li.a.locals||{});function hi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class pi extends r.PureComponent{render(){const{connectDragSource:e}=this.props;return e(s.a.createElement("div",{className:fe()(ci["stage-editor-toolbar"],{[ci["stage-editor-toolbar-errored"]]:this.props.error})},s.a.createElement(vt,null),s.a.createElement(Et,{isExpanded:this.props.isExpanded,index:this.props.index,setIsModified:this.props.setIsModified,stageCollapseToggled:this.props.stageCollapseToggled}),s.a.createElement(ai,{allowWrites:this.props.allowWrites,env:this.props.env,stageOperator:this.props.stageOperator,index:this.props.index,isEnabled:this.props.isEnabled,isCommenting:this.props.isCommenting,stageOperatorSelected:this.props.stageOperatorSelected,setIsModified:this.props.setIsModified,serverVersion:this.props.serverVersion}),s.a.createElement(pt,{index:this.props.index,isEnabled:this.props.isEnabled,runStage:this.props.runStage,setIsModified:this.props.setIsModified,stageToggled:this.props.stageToggled}),s.a.createElement("div",{className:ci["stage-editor-toolbar-right"]},s.a.createElement(Ge,{index:this.props.index,runStage:this.props.runStage,setIsModified:this.props.setIsModified,stageDeleted:this.props.stageDeleted}),s.a.createElement(tt,{index:this.props.index,stageAddedAfter:this.props.stageAddedAfter}))))}}hi(pi,"displayName","StageEditorToolbar"),hi(pi,"propTypes",{allowWrites:a.a.bool.isRequired,connectDragSource:a.a.func.isRequired,env:a.a.string.isRequired,error:a.a.string,isExpanded:a.a.bool.isRequired,isEnabled:a.a.bool.isRequired,stageOperator:a.a.string,index:a.a.number.isRequired,serverVersion:a.a.string.isRequired,stageOperatorSelected:a.a.func.isRequired,stageCollapseToggled:a.a.func.isRequired,stageToggled:a.a.func.isRequired,stageAddedAfter:a.a.func.isRequired,stageDeleted:a.a.func.isRequired,setIsModified:a.a.func.isRequired,isCommenting:a.a.bool.isRequired,openLink:a.a.func.isRequired,runStage:a.a.func.isRequired});var di=pi,fi=n(44),gi=n.n(fi),mi=n(143),vi=n.n(mi),yi=n(144),bi=n.n(yi),wi=n(70),xi={insert:"head",singleton:!1},Ci=(Ne()(wi.a,xi),wi.a.locals||{});n(131),n(132),n(133);function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ai=vi.a.acequire("ace/ext/language_tools"),Si={enableLiveAutocompletion:!0,tabSize:2,fontSize:11,minLines:5,maxLines:1/0,showGutter:!0,useWorker:!1};class Di extends r.Component{constructor(e){super(e),Ei(this,"onStageChange",e=>{if(null===this.props.stageOperator&&e&&"["===e.charAt(0))return this.props.newPipelineFromPaste(e),void this.props.runStage(0);this.props.stageChanged(e,this.props.index),this.props.projectionsChanged(),this.props.setIsModified(!0),!1!==this.props.fromStageOperators&&"$indexStats"!==this.props.stageOperator||!this.props.isAutoPreviewing||this.debounceRun()}),Ei(this,"onRunStage",()=>{this.props.runStage(this.props.index)});const t=Ai.textCompleter;this.completer=new Sn.StageAutoCompleter(this.props.serverVersion,t,this.getFieldsAndProjections(),this.props.stageOperator),this.debounceRun=bi()(this.onRunStage,750)}shouldComponentUpdate(e){return e.stageOperator!==this.props.stageOperator||e.error!==this.props.error||e.syntaxError!==this.props.syntaxError||e.index!==this.props.index||e.serverVersion!==this.props.serverVersion||e.fields.length!==this.props.fields.length||e.projections.length!==this.props.projections.length||e.isValid!==this.props.isValid}componentDidUpdate(e){this.completer.update(this.getFieldsAndProjections(),this.props.stageOperator),this.completer.version=this.props.serverVersion,this.props.stageOperator!==e.stageOperator&&this.editor&&(this.editor.setValue(""),this.editor.insertSnippet(this.props.snippet||""),this.editor.focus())}getFieldsAndProjections(){const{fields:e,projections:t,index:n}=this.props,i=t.filter(e=>e.index<n);return[].concat.call([],e,i)}renderError(){if(this.props.error)return s.a.createElement("div",{className:Ci["stage-editor-errormsg"],title:this.props.error},this.props.error)}renderSyntaxError(){if(!this.props.isValid)return s.a.createElement("div",{className:Ci["stage-editor-syntax-error"],title:this.props.syntaxError},this.props.syntaxError)}render(){return s.a.createElement("div",{className:Ci["stage-editor-container"]},s.a.createElement("div",{className:Ci["stage-editor"]},s.a.createElement(gi.a,{mode:"mongodb",theme:"mongodb",width:"100%",value:this.props.stage,onChange:this.onStageChange,editorProps:{$blockScrolling:1/0},name:"aggregations-stage-editor-"+this.props.index,setOptions:Si,onFocus:()=>{Ai.setCompleters([this.completer])},onLoad:e=>{this.editor=e,this.editor.commands.addCommand({name:"executePipeline",bindKey:{win:"Ctrl-Enter",mac:"Command-Enter"},exec:()=>{this.onRunStage()}})}})),this.renderSyntaxError(),this.renderError())}}Ei(Di,"displayName","StageEditorComponent"),Ei(Di,"propTypes",{stage:a.a.string,stageOperator:a.a.string,snippet:a.a.string,error:a.a.string,syntaxError:a.a.string,runStage:a.a.func.isRequired,index:a.a.number.isRequired,serverVersion:a.a.string.isRequired,fields:a.a.array.isRequired,stageChanged:a.a.func.isRequired,isAutoPreviewing:a.a.bool.isRequired,isValid:a.a.bool.isRequired,fromStageOperators:a.a.bool.isRequired,setIsModified:a.a.func.isRequired,projections:a.a.array.isRequired,projectionsChanged:a.a.func.isRequired,newPipelineFromPaste:a.a.func.isRequired}),Ei(Di,"defaultProps",{fields:[],projections:[]});var ki=Di,Fi=n(45),_i=n(8),Ti=n(46),Oi=n.n(Ti),Pi=n(71),Ri={insert:"head",singleton:!1},Bi=(Ne()(Pi.a,Ri),Pi.a.locals||{});function Li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Mi extends r.PureComponent{render(){return s.a.createElement("div",{className:Bi["loading-overlay"]},s.a.createElement("div",{className:Bi["loading-overlay-box"]},s.a.createElement("i",{className:"fa fa-circle-o-notch fa-spin","aria-hidden":!0}),s.a.createElement("div",{className:Bi["loading-overlay-box-text"]},this.props.text)))}}Li(Mi,"displayName","LoadingOverlay"),Li(Mi,"propTypes",{text:a.a.string.isRequired});var Ii=Mi,Ni=n(72),$i={insert:"head",singleton:!1},ji=(Ne()(Ni.a,$i),Ni.a.locals||{});function Vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class zi extends r.Component{constructor(...e){super(...e),Vi(this,"onGotoMergeResults",()=>{this.props.gotoMergeResults(this.props.index)}),Vi(this,"onGotoOutResults",()=>{const e=wn()(this.props.stage).replace(/['"]+/g,"");this.props.gotoOutResults(e)}),Vi(this,"onSaveDocuments",()=>{this.props.runOutStage(this.props.index)}),Vi(this,"onAtlasSignupCtaClicked",()=>{this.props.openLink("https://www.mongodb.com/cloud/atlas/lp/search-1?utm_campaign=atlas_search&utm_source=compass&utm_medium=product&utm_content=v1")})}renderMergeSection(){return this.props.isComplete?this.props.error?s.a.createElement("div",{className:ji["stage-preview-out"]}):s.a.createElement("div",{className:ji["stage-preview-out"]},s.a.createElement("div",{className:ji["stage-preview-out-text"]},"Documents persisted to collection specified by $merge."),s.a.createElement("div",{className:ji["stage-preview-out-link"],onClick:this.onGotoMergeResults},"Go to collection.")):s.a.createElement("div",{className:ji["stage-preview-out"]},s.a.createElement("div",{className:ji["stage-preview-out-text"]},"The $merge operator will cause the pipeline to persist the results to the specified location. Please confirm to execute."),s.a.createElement("div",{className:ji["stage-preview-out-button"]},s.a.createElement(_i.TextButton,{text:"Merge Documents",className:"btn btn-xs btn-primary",clickHandler:this.onSaveDocuments})))}renderOutSection(){return this.props.isComplete?this.props.error?s.a.createElement("div",{className:ji["stage-preview-out"]}):s.a.createElement("div",{className:ji["stage-preview-out"]},s.a.createElement("div",{className:ji["stage-preview-out-text"]},"Documents persisted to collection: ",wn()(this.props.stage),"."),s.a.createElement("div",{className:ji["stage-preview-out-link"],onClick:this.onGotoOutResults},"Go to collection.")):s.a.createElement("div",{className:ji["stage-preview-out"]},s.a.createElement("div",{className:ji["stage-preview-out-text"]},"The $out operator will cause the pipeline to persist the results to the specified location (collection, S3, or Atlas). If the collection exists it will be replaced. Please confirm to execute."),s.a.createElement("div",{className:ji["stage-preview-out-button"]},s.a.createElement(_i.TextButton,{text:"Save Documents",className:"btn btn-xs btn-primary",clickHandler:this.onSaveDocuments})))}renderAtlasOnlyStagePreviewSection(){return s.a.createElement("div",{className:ji["stage-preview-missing-search-support"]},s.a.createElement(pn.AtlasLogoMark,{size:30,className:ji["stage-preview-missing-search-support-icon"]}),s.a.createElement("div",{className:ji["stage-preview-missing-search-support-text"]},"This stage is only available with MongoDB Atlas. Create a free cluster or connect to an Atlas cluster to build search indexes and use the $search aggregation stage to run fast, relevant search queries."),s.a.createElement(_i.TextButton,{text:"Create Free Cluster",className:"btn btn-xs btn-primary",clickHandler:this.onAtlasSignupCtaClicked}))}renderPreview(){if(this.props.isMissingAtlasOnlyStageSupport)return this.renderAtlasOnlyStagePreviewSection();if(this.props.isValid&&this.props.isEnabled){if("$out"===this.props.stageOperator)return this.renderOutSection();if("$merge"===this.props.stageOperator)return this.renderMergeSection();if(this.props.documents.length>0){const e=this.props.documents.map((e,t)=>s.a.createElement(Fi.Document,{doc:new Oi.a(e),editable:!1,key:t,tz:"UTC"}));return s.a.createElement("div",{className:ji["stage-preview-documents"]},e)}}return this.props.isLoading?void 0:s.a.createElement("div",{className:ji["stage-preview-empty"]},s.a.createElement("div",null,s.a.createElement("svg",{width:"44",height:"60",viewBox:"0 0 44 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{d:"M21.9297 38.2988C23.4783 35.1247 27.7679 30.0989 32.5375 35.3879"}),s.a.createElement("path",{d:"M1 10.7831V51.3133L9.61538 59M1 10.7831L35.4615 1L43 5.19277M1 10.7831L10.1538 15.6747M9.61538 59L43 45.7229C39.9487 34.0763 38 22.5957 43 5.19277M9.61538 59C5.5 34.9362 7.46154 20.3333 10.1538 15.6747M43 5.19277L10.1538 15.6747"}),s.a.createElement("path",{d:"M19.7174 26.7113C19.7734 27.324 19.6719 27.8684 19.4884 28.2491C19.2999 28.6402 19.0726 28.7786 18.9038 28.7941C18.7349 28.8095 18.4862 28.7146 18.2299 28.3642C17.9804 28.0232 17.7818 27.5063 17.7257 26.8935C17.6696 26.2808 17.7711 25.7364 17.9546 25.3557C18.1432 24.9646 18.3704 24.8262 18.5393 24.8107C18.7082 24.7953 18.9568 24.8902 19.2132 25.2406C19.4627 25.5816 19.6613 26.0985 19.7174 26.7113Z",fill:"#89979B"}),s.a.createElement("path",{d:"M32.481 23.5351C32.5371 24.1479 32.4356 24.6923 32.2521 25.0729C32.0636 25.464 31.8363 25.6025 31.6674 25.6179C31.4985 25.6334 31.2499 25.5385 30.9935 25.1881C30.744 24.847 30.5454 24.3301 30.4894 23.7174C30.4333 23.1046 30.5348 22.5602 30.7183 22.1796C30.9068 21.7885 31.1341 21.65 31.303 21.6346C31.4719 21.6191 31.7205 21.714 31.9769 22.0644C32.2264 22.4055 32.425 22.9224 32.481 23.5351Z",fill:"#89979B"}))),s.a.createElement("div",null,s.a.createElement("i",null,"No Preview Documents")))}renderLoading(){if(this.props.isLoading)return"$out"===this.props.stageOperator?s.a.createElement(Ii,{text:"Persisting Documents..."}):s.a.createElement(Ii,{text:"Loading Preview Documents..."})}render(){return s.a.createElement("div",{className:ji["stage-preview"]},this.renderLoading(),this.renderPreview())}}Vi(zi,"displayName","StagePreview"),Vi(zi,"propTypes",{runOutStage:a.a.func.isRequired,gotoOutResults:a.a.func.isRequired,gotoMergeResults:a.a.func.isRequired,documents:a.a.array.isRequired,error:a.a.string,isValid:a.a.bool.isRequired,isEnabled:a.a.bool.isRequired,isLoading:a.a.bool.isRequired,isComplete:a.a.bool.isRequired,isMissingAtlasOnlyStageSupport:a.a.bool.isRequired,openLink:a.a.func.isRequired,index:a.a.number.isRequired,stageOperator:a.a.string,stage:a.a.string});var Wi=zi,Ui=n(73),Hi={insert:"head",singleton:!1},qi=(Ne()(Ui.a,Hi),Ui.a.locals||{});function Ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gi=/s3\:/,Xi=/atlas\:/;class Ji extends r.PureComponent{getWord(){return 1===this.props.count?"document":"documents"}getOutText(){try{const e=wn()(this.props.stageValue);return e.match(Gi)?"Documents will be saved to S3.":e.match(Xi)?"Documents will be saved to Atlas cluster.":"Documents will be saved to the collection: "+e}catch(e){return"Unable to parse the destination for the out stage."}}getText(){if(this.props.isEnabled){if(this.props.stageOperator){if("$out"===this.props.stageOperator&&this.props.isValid)return this.getOutText();const e=Rn[this.props.stageOperator];return s.a.createElement("div",null,s.a.createElement("span",null,"Output after ",s.a.createElement("span",{onClick:e?this.props.openLink.bind(this,e.link):null,className:fe()(e?qi["stage-preview-toolbar-link"]:"stage-preview-toolbar-link-invalid")},this.props.stageOperator)," stage"),this.renderInfoSprinkle(e),s.a.createElement("span",null,"(Sample of ",this.props.count," ",this.getWord(),")"))}return"A sample of the aggregated results from this stage will be shown below"}return"Stage is disabled. Results not passed in the pipeline."}renderInfoSprinkle(e){if(this.props.stageOperator)return e?s.a.createElement("span",{"data-tip":e.tooltip,"data-for":"stage-tooltip","data-place":"top","data-html":"true"},s.a.createElement(Xe.InfoSprinkle,{onClickHandler:this.props.openLink,helpLink:e.link}),s.a.createElement(Xe.Tooltip,{id:"stage-tooltip"})):s.a.createElement("span",null," ")}render(){return s.a.createElement("div",{className:fe()(qi["stage-preview-toolbar"],{[qi["stage-preview-toolbar-errored"]]:this.props.error})},this.getText())}}Ki(Ji,"displayName","StagePreviewToolbar"),Ki(Ji,"propTypes",{error:a.a.string,isEnabled:a.a.bool.isRequired,isValid:a.a.bool.isRequired,stageOperator:a.a.string,stageValue:a.a.any,count:a.a.number.isRequired,openLink:a.a.func.isRequired});var Yi=Ji,Qi=n(74),Zi={insert:"head",singleton:!1},er=(Ne()(Qi.a,Zi),Qi.a.locals||{});function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nr={top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};class ir extends r.Component{shouldComponentUpdate(e){return e.stageOperator!==this.props.stageOperator||e.snippet!==this.props.snippet||e.error!==this.props.error||e.syntaxError!==this.props.syntaxError||e.isValid!==this.props.isValid||e.isEnabled!==this.props.isEnabled||e.isExpanded!==this.props.isExpanded||e.isLoading!==this.props.isLoading||e.isComplete!==this.props.isComplete||e.isMissingAtlasOnlyStageSupport!==this.props.isMissingAtlasOnlyStageSupport||e.fromStageOperators!==this.props.fromStageOperators||e.index!==this.props.index||e.isCommenting!==this.props.isCommenting||e.isAutoPreviewing!==this.props.isAutoPreviewing||e.serverVersion!==this.props.serverVersion||e.fields.length!==this.props.fields.length||e.projections.length!==this.props.projections.length||"$out"===this.props.stageOperator&&e.stage!==this.props.stage}getOpacity(){return this.props.isEnabled?1:.6}renderEditor(){return s.a.createElement(Me,{className:er["stage-editor"],defaultSize:{width:"388px",height:"auto"},minWidth:"260px",maxWidth:"92%",enable:nr,ref:e=>{this.resizableRef=e},handleWrapperClass:er["stage-resize-handle-wrapper"],handleComponent:{right:s.a.createElement(ze,null)}},s.a.createElement(di,{allowWrites:this.props.allowWrites,connectDragSource:this.props.connectDragSource,env:this.props.env,isExpanded:this.props.isExpanded,isEnabled:this.props.isEnabled,stageOperator:this.props.stageOperator,index:this.props.index,stageOperatorSelected:this.props.stageOperatorSelected,stageCollapseToggled:this.props.stageCollapseToggled,stageToggled:this.props.stageToggled,runStage:this.props.runStage,openLink:this.props.openLink,isCommenting:this.props.isCommenting,stageAddedAfter:this.props.stageAddedAfter,stageDeleted:this.props.stageDeleted,setIsModified:this.props.setIsModified,serverVersion:this.props.serverVersion}),this.props.isExpanded&&s.a.createElement(ki,{stage:this.props.stage,stageOperator:this.props.stageOperator,snippet:this.props.snippet,error:this.props.error,syntaxError:this.props.syntaxError,isValid:this.props.isValid,fromStageOperators:this.props.fromStageOperators,runStage:this.props.runStage,index:this.props.index,serverVersion:this.props.serverVersion,setIsModified:this.props.setIsModified,isAutoPreviewing:this.props.isAutoPreviewing,fields:this.props.fields,stageChanged:this.props.stageChanged,projections:this.props.projections,projectionsChanged:this.props.projectionsChanged,newPipelineFromPaste:this.props.newPipelineFromPaste}))}renderPreview(){return s.a.createElement("div",{className:er["stage-preview-container"]},s.a.createElement(Yi,{isEnabled:this.props.isEnabled,isValid:this.props.isValid,stageOperator:this.props.stageOperator,stageValue:this.props.stage,count:this.props.previewDocuments.length,openLink:this.props.openLink}),this.props.isExpanded&&s.a.createElement(Wi,{documents:this.props.previewDocuments,isValid:this.props.isValid,isEnabled:this.props.isEnabled,isLoading:this.props.isLoading,isComplete:this.props.isComplete,isMissingAtlasOnlyStageSupport:this.props.isMissingAtlasOnlyStageSupport,error:this.props.error,stageOperator:this.props.stageOperator,stage:this.props.stage,index:this.props.index,runOutStage:this.props.runOutStage,gotoOutResults:this.props.gotoOutResults,gotoMergeResults:this.props.gotoMergeResults,openLink:this.props.openLink}))}render(){const e=this.getOpacity();return s.a.createElement("div",{className:fe()(er["stage-container"],{[er["stage-container-is-first"]]:0===this.props.index})},s.a.createElement("div",{className:fe()(er.stage,{[er["stage-errored"]]:this.props.error}),style:{opacity:e}},this.renderEditor(),this.renderPreview()))}}tr(ir,"displayName","StageComponent"),tr(ir,"propTypes",{allowWrites:a.a.bool.isRequired,env:a.a.string.isRequired,connectDragSource:a.a.func.isRequired,stage:a.a.string.isRequired,stageOperator:a.a.string,snippet:a.a.string,error:a.a.string,syntaxError:a.a.string,isValid:a.a.bool.isRequired,isEnabled:a.a.bool.isRequired,isExpanded:a.a.bool.isRequired,isLoading:a.a.bool.isRequired,isComplete:a.a.bool.isRequired,isMissingAtlasOnlyStageSupport:a.a.bool.isRequired,fromStageOperators:a.a.bool.isRequired,previewDocuments:a.a.array.isRequired,index:a.a.number.isRequired,isCommenting:a.a.bool.isRequired,isAutoPreviewing:a.a.bool.isRequired,runStage:a.a.func.isRequired,runOutStage:a.a.func.isRequired,gotoOutResults:a.a.func.isRequired,gotoMergeResults:a.a.func.isRequired,serverVersion:a.a.string.isRequired,stageChanged:a.a.func.isRequired,stageCollapseToggled:a.a.func.isRequired,stageAddedAfter:a.a.func.isRequired,stageDeleted:a.a.func.isRequired,stageMoved:a.a.func.isRequired,stageOperatorSelected:a.a.func.isRequired,stageToggled:a.a.func.isRequired,openLink:a.a.func.isRequired,fields:a.a.array.isRequired,setIsModified:a.a.func.isRequired,projections:a.a.array.isRequired,projectionsChanged:a.a.func.isRequired,newPipelineFromPaste:a.a.func.isRequired});var rr=ir,sr=n(75),or={insert:"head",singleton:!1},ar=(Ne()(sr.a,or),sr.a.locals||{});function lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ur extends r.PureComponent{render(){const e=this.props.isExpanded?"fa fa-angle-down":"fa fa-angle-right",t=this.props.isExpanded?"Collapse":"Expand";return s.a.createElement("div",{className:fe()(ar["input-collapser"])},s.a.createElement("button",{type:"button",title:t,onClick:this.props.toggleInputDocumentsCollapsed,className:"btn btn-default btn-xs"},s.a.createElement("i",{className:e,"aria-hidden":!0})))}}lr(ur,"displayName","InputCollapserComponent"),lr(ur,"propTypes",{isExpanded:a.a.bool.isRequired,toggleInputDocumentsCollapsed:a.a.func.isRequired});var cr=ur,hr=n(76),pr={insert:"head",singleton:!1},dr=(Ne()(hr.a,pr),hr.a.locals||{});function fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class gr extends r.PureComponent{render(){const e=fe()({fa:!0,"fa-database":!0,[dr["input-documents-count-db"]]:!0});return s.a.createElement("div",{className:fe()(dr["input-documents-count"])},s.a.createElement("i",{className:e,"aria-hidden":!0}),s.a.createElement("div",{className:fe()(dr["input-documents-count-label"])},this.props.count," Documents in the Collection"))}}fr(gr,"displayName","InputDocumentsCountComponent"),fr(gr,"propTypes",{count:a.a.oneOfType([a.a.number,a.a.string]).isRequired});var mr=gr,vr=n(77),yr={insert:"head",singleton:!1},br=(Ne()(vr.a,yr),vr.a.locals||{});function wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class xr extends r.PureComponent{render(){return s.a.createElement("div",{className:br["input-refresh"]},s.a.createElement("button",{type:"button",title:"Refresh Documents",onClick:this.props.refreshInputDocuments,className:"btn btn-default btn-xs"},s.a.createElement("i",{className:"fa fa-repeat","aria-hidden":!0})))}}wr(xr,"displayName","InputRefreshComponent"),wr(xr,"propTypes",{refreshInputDocuments:a.a.func.isRequired});var Cr=xr,Er=n(78),Ar={insert:"head",singleton:!1},Sr=(Ne()(Er.a,Ar),Er.a.locals||{});function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class kr extends r.PureComponent{render(){return s.a.createElement("div",{className:fe()(Sr["input-builder-toolbar"])},s.a.createElement(cr,{toggleInputDocumentsCollapsed:this.props.toggleInputDocumentsCollapsed,isExpanded:this.props.isExpanded}),s.a.createElement(mr,{count:this.props.count}),s.a.createElement(Cr,{refreshInputDocuments:this.props.refreshInputDocuments}))}}Dr(kr,"displayName","InputBuilderToolbar"),Dr(kr,"propTypes",{toggleInputDocumentsCollapsed:a.a.func.isRequired,refreshInputDocuments:a.a.func.isRequired,isExpanded:a.a.bool.isRequired,count:a.a.oneOfType([a.a.number,a.a.string]).isRequired});var Fr=kr,_r=n(79),Tr={insert:"head",singleton:!1},Or=(Ne()(_r.a,Tr),_r.a.locals||{});const Pr=()=>s.a.createElement("div",{className:fe()(Or["input-preview-toolbar"])},s.a.createElement("div",{className:fe()(Or["input-preview-toolbar-text"])},"Preview of Documents in the Collection"));Pr.displayName="InputPreviewToolbar";var Rr=Pr,Br=n(80),Lr={insert:"head",singleton:!1},Mr=(Ne()(Br.a,Lr),Br.a.locals||{});function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nr extends r.PureComponent{render(){return s.a.createElement("div",{className:Mr["input-toolbar"]},s.a.createElement(Fr,{toggleInputDocumentsCollapsed:this.props.toggleInputDocumentsCollapsed,refreshInputDocuments:this.props.refreshInputDocuments,isExpanded:this.props.isExpanded,count:this.props.count}),s.a.createElement(Rr,null))}}Ir(Nr,"displayName","InputToolbarComponent"),Ir(Nr,"propTypes",{toggleInputDocumentsCollapsed:a.a.func.isRequired,refreshInputDocuments:a.a.func.isRequired,isExpanded:a.a.bool.isRequired,count:a.a.oneOfType([a.a.number,a.a.string]).isRequired});var $r=Nr,jr=n(81),Vr={insert:"head",singleton:!1},zr=(Ne()(jr.a,Vr),jr.a.locals||{});function Wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ur extends r.PureComponent{constructor(...e){super(...e),Wr(this,"learnMore",()=>{this.props.openLink("https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/")})}render(){return s.a.createElement("div",{className:zr["input-builder"]},"Select an operator to construct expressions used in the aggregation pipeline stages.",s.a.createElement("span",{onClick:this.learnMore,className:zr["input-builder-link"]},"Learn more"))}}Wr(Ur,"displayName","InputBuilderComponent"),Wr(Ur,"propTypes",{openLink:a.a.func.isRequired});var Hr=Ur,qr=n(82),Kr={insert:"head",singleton:!1},Gr=(Ne()(qr.a,Kr),qr.a.locals||{});function Xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Jr extends r.Component{render(){const e=this.props.documents.map((e,t)=>s.a.createElement(Fi.Document,{doc:new Oi.a(e),editable:!1,tz:"UTC",key:t}));return s.a.createElement("div",{className:Gr["input-preview"]},this.props.isLoading?s.a.createElement(Ii,{text:"Sampling Documents..."}):null,s.a.createElement("div",{className:Gr["input-preview-documents"]},e))}}Xr(Jr,"displayName","InputPreview"),Xr(Jr,"propTypes",{documents:a.a.array.isRequired,isLoading:a.a.bool.isRequired});var Yr=Jr,Qr=n(83),Zr={insert:"head",singleton:!1},es=(Ne()(Qr.a,Zr),Qr.a.locals||{});function ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ns={top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};class is extends r.PureComponent{render(){return s.a.createElement("div",{className:es["input-workspace"]},s.a.createElement(Me,{defaultSize:{width:"388px",height:"auto"},minWidth:"220px",maxWidth:"92%",enable:ns,ref:e=>{this.resizableRef=e},handleWrapperClass:es["stage-resize-handle-wrapper"],handleComponent:{right:s.a.createElement(ze,null)}},s.a.createElement(Hr,{openLink:this.props.openLink})),s.a.createElement(Yr,{documents:this.props.documents,isLoading:this.props.isLoading}))}}ts(is,"displayName","InputWorkspace"),ts(is,"propTypes",{documents:a.a.array.isRequired,openLink:a.a.func.isRequired,isLoading:a.a.bool.isRequired});var rs=is,ss=n(84),os={insert:"head",singleton:!1},as=(Ne()(ss.a,os),ss.a.locals||{});function ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class us extends r.PureComponent{render(){const e=this.props.isExpanded?s.a.createElement(rs,{documents:this.props.documents,openLink:this.props.openLink,isLoading:this.props.isLoading}):null;return s.a.createElement("div",{className:as.input},s.a.createElement($r,{toggleInputDocumentsCollapsed:this.props.toggleInputDocumentsCollapsed,refreshInputDocuments:this.props.refreshInputDocuments,isExpanded:this.props.isExpanded,count:this.props.count}),e)}}ls(us,"displayName","InputComponent"),ls(us,"propTypes",{toggleInputDocumentsCollapsed:a.a.func.isRequired,refreshInputDocuments:a.a.func.isRequired,documents:a.a.array.isRequired,isLoading:a.a.bool.isRequired,isExpanded:a.a.bool.isRequired,openLink:a.a.func.isRequired,count:a.a.oneOfType([a.a.number,a.a.string]).isRequired});var cs=us,hs=n(85),ps={insert:"head",singleton:!1},ds=(Ne()(hs.a,ps),hs.a.locals||{});function fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class gs extends r.PureComponent{render(){return s.a.createElement("div",{className:ds["add-stage-container"]},s.a.createElement("div",{className:ds["add-stage"]},s.a.createElement(_i.TextButton,{text:"Add Stage",className:"btn btn-xs btn-default",clickHandler:this.props.stageAdded})))}}fs(gs,"displayName","AddStageComponent"),fs(gs,"propTypes",{stageAdded:a.a.func.isRequired});var ms=gs;function vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach((function(t){vs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ws(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var xs="function"==typeof Symbol&&Symbol.observable||"@@observable",Cs=function(){return Math.random().toString(36).substring(7).split("").join(".")},Es={INIT:"@@redux/INIT"+Cs(),REPLACE:"@@redux/REPLACE"+Cs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cs()}};function As(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ss(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ws(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ws(1));return n(Ss)(e,t)}if("function"!=typeof e)throw new Error(ws(2));var r=e,s=t,o=[],a=o,l=!1;function u(){a===o&&(a=o.slice())}function c(){if(l)throw new Error(ws(3));return s}function h(e){if("function"!=typeof e)throw new Error(ws(4));if(l)throw new Error(ws(5));var t=!0;return u(),a.push(e),function(){if(t){if(l)throw new Error(ws(6));t=!1,u();var n=a.indexOf(e);a.splice(n,1),o=null}}}function p(e){if(!As(e))throw new Error(ws(7));if(void 0===e.type)throw new Error(ws(8));if(l)throw new Error(ws(9));try{l=!0,s=r(s,e)}finally{l=!1}for(var t=o=a,n=0;n<t.length;n++){(0,t[n])()}return e}function d(e){if("function"!=typeof e)throw new Error(ws(10));r=e,p({type:Es.REPLACE})}function f(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ws(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[xs]=function(){return this},e}return p({type:Es.INIT}),(i={dispatch:p,subscribe:h,getState:c,replaceReducer:d})[xs]=f,i}var Ds="dnd-core/INIT_COORDS",ks="dnd-core/BEGIN_DRAG",Fs="dnd-core/PUBLISH_DRAG_SOURCE",_s="dnd-core/HOVER",Ts="dnd-core/DROP",Os="dnd-core/END_DRAG",Ps=function(e,t){return e===t};function Rs(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function Bs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ps;if(e.length!==t.length)return!1;for(var i=0;i<e.length;++i)if(!n(e[i],t[i]))return!1;return!0}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach((function(t){Is(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Is(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ns={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function $s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ns,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case Ds:case ks:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case _s:return Rs(e.clientOffset,n.clientOffset)?e:Ms({},e,{clientOffset:n.clientOffset});case Os:case Ts:return Ns;default:return e}}var js="dnd-core/ADD_SOURCE",Vs="dnd-core/ADD_TARGET",zs="dnd-core/REMOVE_SOURCE",Ws="dnd-core/REMOVE_TARGET";function Us(e){return(Us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hs(e,t,n){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e)}function qs(e,t){return e.filter((function(e){return e!==t}))}function Ks(e){return"object"===Us(e)}function Gs(e,t){var n=new Map,i=function(e){return n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(i),t.forEach(i);var r=[];return n.forEach((function(e,t){1===e&&r.push(t)})),r}function Xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xs(Object(n),!0).forEach((function(t){Ys(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ys(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qs={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Zs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qs,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case ks:return Js({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Fs:return Js({},e,{isSourcePublic:!0});case _s:return Js({},e,{targetIds:n.targetIds});case Ws:return-1===e.targetIds.indexOf(n.targetId)?e:Js({},e,{targetIds:qs(e.targetIds,n.targetId)});case Ts:return Js({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Os:return Js({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function eo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case js:case Vs:return e+1;case zs:case Ws:return e-1;default:return e}}var to=[],no=[];function io(e,t){return e!==to&&(e===no||void 0===t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}function ro(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case _s:break;case js:case Vs:case Ws:case zs:return to;case ks:case Fs:case Os:case Ts:default:return no}var t=e.payload,n=t.targetIds,i=void 0===n?[]:n,r=t.prevTargetIds,s=void 0===r?[]:r,o=Gs(i,s),a=o.length>0||!Bs(i,s);if(!a)return to;var l=s[s.length-1],u=i[i.length-1];return l!==u&&(l&&o.push(l),u&&o.push(u)),o}function so(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:ro(e.dirtyHandlerIds,{type:t.type,payload:ao({},t.payload,{prevTargetIds:Hs(e,"dragOperation.targetIds",[])})}),dragOffset:$s(e.dragOffset,t),refCount:eo(e.refCount,t),dragOperation:Zs(e.dragOperation,t),stateId:so(e.stateId)}}function co(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;(s=new Error(t.replace(/%s/g,(function(){return i[o++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}function ho(e,t){return{type:Ds,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}to.__IS_NONE__=!0,no.__IS_ALL__=!0;var po={type:Ds,payload:{clientOffset:null,sourceClientOffset:null}};function fo(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},i=n.publishSource,r=void 0===i||i,s=n.clientOffset,o=n.getSourceClientOffset,a=e.getMonitor(),l=e.getRegistry();e.dispatch(ho(s)),go(t,a,l);var u=yo(t,a);if(null!==u){var c=null;s&&(mo(o),c=o(u)),e.dispatch(ho(s,c));var h=l.getSource(u),p=h.beginDrag(a,u);vo(p),l.pinSource(u);var d=l.getSourceType(u);return{type:ks,payload:{itemType:d,item:p,sourceId:u,clientOffset:s||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}e.dispatch(po)}}function go(e,t,n){co(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){co(n.getSource(e),"Expected sourceIds to be registered.")}))}function mo(e){co("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function vo(e){co(Ks(e),"Item must be an object.")}function yo(e,t){for(var n=null,i=e.length-1;i>=0;i--)if(t.canDragSource(e[i])){n=e[i];break}return n}function bo(e){return function(){if(e.getMonitor().isDragging())return{type:Fs}}}function wo(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function xo(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.clientOffset;Co(t);var r=t.slice(0),s=e.getMonitor(),o=e.getRegistry();Eo(r,s,o);var a=s.getItemType();return Ao(r,o,a),So(r,s,o),{type:_s,payload:{targetIds:r,clientOffset:i||null}}}}function Co(e){co(Array.isArray(e),"Expected targetIds to be an array.")}function Eo(e,t,n){co(t.isDragging(),"Cannot call hover while not dragging."),co(!t.didDrop(),"Cannot call hover after drop.");for(var i=0;i<e.length;i++){var r=e[i];co(e.lastIndexOf(r)===i,"Expected targetIds to be unique in the passed array."),co(n.getTarget(r),"Expected targetIds to be registered.")}}function Ao(e,t,n){for(var i=e.length-1;i>=0;i--){var r=e[i];wo(t.getTargetType(r),n)||e.splice(i,1)}}function So(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach((function(t){Fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),i=e.getRegistry();To(n);var r=Po(n);r.forEach((function(r,s){var o=Oo(r,s,i,n),a={type:Ts,payload:{dropResult:ko({},t,{},o)}};e.dispatch(a)}))}}function To(e){co(e.isDragging(),"Cannot call drop while not dragging."),co(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function Oo(e,t,n,i){var r=n.getTarget(e),s=r?r.drop(i,e):void 0;return function(e){co(void 0===e||Ks(e),"Drop result must either be an object or undefined.")}(s),void 0===s&&(s=0===t?{}:i.getDropResult()),s}function Po(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Ro(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){co(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var i=t.getSourceId();return n.getSource(i,!0).endDrag(t,i),n.unpinSource(),{type:Os}}}function Bo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Mo,Io=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=n}var t,n,i;return t=e,(n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},i=n.handlerIds;co("function"==typeof e,"listener must be a function."),co(void 0===i||Array.isArray(i),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId,s=function(){var n=t.store.getState(),s=n.stateId;try{s===r||s===r+1&&!io(n.dirtyHandlerIds,i)||e()}finally{r=s}};return this.store.subscribe(s)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;co("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var i=t.store.getState().dragOffset;i!==n&&(n=i,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return co(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return co(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&wo(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return co(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var i=this.registry.getTargetType(e),r=this.getItemType();if(r&&!wo(i,r))return!1;var s=this.getTargetIds();if(!s.length)return!1;var o=s.indexOf(e);return n?o===s.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,i=e.clientOffset,r=e.initialClientOffset,s=e.initialSourceClientOffset,i&&r&&s?Bo((n=s,{x:(t=i).x+n.x,y:t.y+n.y}),r):null;var e,t,n,i,r,s}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?Bo(t,n):null;var e,t,n}}])&&Lo(t.prototype,n),i&&Lo(t,i),e}(),No=0;function $o(e){return($o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jo(e,t){t&&Array.isArray(e)?e.forEach((function(e){return jo(e,!1)})):co("string"==typeof e||"symbol"===$o(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Vo(e){Wo.length||(zo(),!0),Wo[Wo.length]=e}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Mo||(Mo={}));var zo,Wo=[],Uo=0;function Ho(){for(;Uo<Wo.length;){var e=Uo;if(Uo+=1,Wo[e].call(),Uo>1024){for(var t=0,n=Wo.length-Uo;t<n;t++)Wo[t]=Wo[t+Uo];Wo.length-=Uo,Uo=0}}Wo.length=0,Uo=0,!1}var qo,Ko,Go,Xo="undefined"!=typeof global?global:self,Jo=Xo.MutationObserver||Xo.WebKitMutationObserver;function Yo(e){return function(){var t=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof Jo?(qo=1,Ko=new Jo(Ho),Go=document.createTextNode(""),Ko.observe(Go,{characterData:!0}),zo=function(){qo=-qo,Go.data=qo}):zo=Yo(Ho),Vo.requestFlush=zo,Vo.makeRequestCallFromTimer=Yo;var Qo=[],Zo=[],ea=Vo.makeRequestCallFromTimer((function(){if(Zo.length)throw Zo.shift()}));function ta(e){var t;(t=Qo.length?Qo.pop():new na).task=e,Vo(t)}var na=function(){function e(){}return e.prototype.call=function(){try{this.task.call()}catch(e){ta.onerror?ta.onerror(e):(Zo.push(e),ea())}finally{this.task=null,Qo[Qo.length]=this}},e}();function ia(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ra(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,s=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw s}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function sa(e){var t=(No++).toString();switch(e){case Mo.SOURCE:return"S".concat(t);case Mo.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function oa(e){switch(e[0]){case"S":return Mo.SOURCE;case"T":return Mo.TARGET;default:co(!1,"Cannot parse handler ID: ".concat(e))}}function aa(e,t){var n=e.entries(),i=!1;do{var r=n.next(),s=r.done;if(ra(r.value,2)[1]===t)return!0;i=!!s}while(!i);return!1}var la=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,n,i;return t=e,(n=[{key:"addSource",value:function(e,t){jo(e),function(e){co("function"==typeof e.canDrag,"Expected canDrag to be a function."),co("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),co("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(Mo.SOURCE,e,t);return this.store.dispatch(function(e){return{type:js,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){jo(e,!0),function(e){co("function"==typeof e.canDrop,"Expected canDrop to be a function."),co("function"==typeof e.hover,"Expected hover to be a function."),co("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(Mo.TARGET,e,t);return this.store.dispatch(function(e){return{type:Vs,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return aa(this.dragSources,e)||aa(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];co(this.isSourceId(e),"Expected a valid source ID.");var n=t&&e===this.pinnedSourceId,i=n?this.pinnedSource:this.dragSources.get(e);return i}},{key:"getTarget",value:function(e){return co(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return co(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return co(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return oa(e)===Mo.SOURCE}},{key:"isTargetId",value:function(e){return oa(e)===Mo.TARGET}},{key:"removeSource",value:function(e){var t=this;co(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:zs,payload:{sourceId:e}}}(e)),ta((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){co(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Ws,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);co(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){co(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var i=sa(e);return this.types.set(i,t),e===Mo.SOURCE?this.dragSources.set(i,n):e===Mo.TARGET&&this.dropTargets.set(i,n),i}}])&&ia(t.prototype,n),i&&ia(t,i),e}();function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ca(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ha(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Ss(uo,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var pa=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ua(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var i=ha(n);this.store=i,this.monitor=new Io(i,new la(i)),i.subscribe(this.handleRefCountChange)}var t,n,i;return t=e,(n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:fo(e),publishDragSource:bo(e),hover:xo(e),drop:_o(e),endDrag:Ro(e)}}(this);return Object.keys(n).reduce((function(i,r){var s,o=n[r];return i[r]=(s=o,function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=s.apply(e,i);void 0!==o&&t(o)}),i}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}])&&ca(t.prototype,n),i&&ca(t,i),e}();function da(e,t,n,i){var r=new pa(i),s=e(r,t,n);return r.receiveBackend(s),r}var fa=r.createContext({dragDropManager:void 0});function ga(e,t,n,i){return{dragDropManager:da(e,t,n,i)}}function ma(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,s=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw s}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function va(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var ya=0,ba=Object(r.memo)((function(e){var t=e.children,n=ma(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xa(),n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=t;r[wa]||(r[wa]=ga(e,t,n,i));return r[wa]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(va(e,["children"])),2),i=n[0],s=n[1];return r.useEffect((function(){return s&&ya++,function(){s&&(0===--ya&&(xa()[wa]=null))}}),[]),r.createElement(fa.Provider,{value:i},t)}));ba.displayName="DndProvider";var wa=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function xa(){return"undefined"!=typeof global?global:window}function Ca(e){var t=null;return function(){return null==t&&(t=e()),t}}function Ea(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Aa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n,i;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,i=function(e){return n.add(e)};e.forEach(i),t.forEach(i);var r=[];return n.forEach((function(e){return r.push(e)})),r}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,i=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),i>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&Ea(t.prototype,n),i&&Ea(t,i),e}(),Sa=Ca((function(){return/firefox/i.test(navigator.userAgent)})),Da=Ca((function(){return Boolean(window.safari)}));function ka(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Fa=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=t.length,r=[],s=0;s<i;s++)r.push(s);r.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var o,a,l=[],u=[],c=[],h=0;h<i-1;h++)o=t[h+1]-t[h],a=n[h+1]-n[h],u.push(o),l.push(a),c.push(a/o);for(var p=[c[0]],d=0;d<u.length-1;d++){var f=c[d],g=c[d+1];if(f*g<=0)p.push(0);else{o=u[d];var m=u[d+1],v=o+m;p.push(3*v/((v+m)/f+(v+o)/g))}}p.push(c[c.length-1]);for(var y,b=[],w=[],x=0;x<p.length-1;x++){y=c[x];var C=p[x],E=1/u[x],A=C+p[x+1]-y-y;b.push((y-C-A)*E),w.push(A*E*E)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=b,this.c3s=w}var t,n,i;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,i=this.c1s,r=this.c2s,s=this.c3s,o=t.length-1;if(e===t[o])return n[o];for(var a,l=0,u=s.length-1;l<=u;){var c=t[a=Math.floor(.5*(l+u))];if(c<e)l=a+1;else{if(!(c>e))return n[a];u=a-1}}var h=e-t[o=Math.max(0,u)],p=h*h;return n[o]+i[o]*h+r[o]*p+s[o]*h*p}}])&&ka(t.prototype,n),i&&ka(t,i),e}();function _a(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),i=n.top;return{x:n.left,y:i}}function Ta(e){return{x:e.clientX,y:e.clientY}}function Oa(e,t,n,i,r){var s,o=function(e){return"IMG"===e.nodeName&&(Sa()||!document.documentElement.contains(e))}(t),a=_a(o?e:t),l={x:n.x-a.x,y:n.y-a.y},u=e.offsetWidth,c=e.offsetHeight,h=i.anchorX,p=i.anchorY,d=function(e,t,n,i){var r=e?t.width:n,s=e?t.height:i;return Da()&&e&&(s/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:s}}(o,t,u,c),f=d.dragPreviewWidth,g=d.dragPreviewHeight,m=r.offsetX,v=r.offsetY,y=0===v||v;return{x:0===m||m?m:new Fa([0,.5,1],[l.x,l.x/u*f,l.x+f-u]).interpolate(h),y:y?v:(s=new Fa([0,.5,1],[l.y,l.y/c*g,l.y+g-c]).interpolate(p),Da()&&o&&(s+=(window.devicePixelRatio-1)*g),s)}}var Pa,Ra="__NATIVE_FILE__",Ba="__NATIVE_URL__",La="__NATIVE_TEXT__";function Ma(e,t,n){var i=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=i?i:n}function Ia(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Na=(Ia(Pa={},Ra,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),Ia(Pa,Ba,{exposeProperties:{urls:function(e,t){return Ma(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),Ia(Pa,La,{exposeProperties:{text:function(e,t){return Ma(e,t,"")}},matchesTypes:["Text","text/plain"]}),Pa);function $a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var ja=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,i;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(i){n[i]={value:t.config.exposeProperties[i](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&$a(t.prototype,n),i&&$a(t,i),e}();function Va(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(Na).filter((function(e){return Na[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function za(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Wa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n,i;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&za(t.prototype,n),i&&za(t,i),e}();function Ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach((function(t){qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Ga=function(){function e(t,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return _a(i.sourceNodes.get(e))},this.endDragNativeItem=function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)},this.isNodeInDocument=function(e){return i.document&&i.document.body&&document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=i.currentDragSourceNode;i.isNodeInDocument(e)||i.clearCurrentDragSourceNode()&&i.actions.endDrag()},this.handleTopDragStartCapture=function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=i.dragStartSourceIds;i.dragStartSourceIds=null;var n=Ta(e);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,s=Va(r);if(i.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var o=i.monitor.getSourceId(),a=i.sourceNodes.get(o),l=i.sourcePreviewNodes.get(o)||a;if(l){var u=i.getCurrentSourcePreviewNodeOptions(),c=Oa(a,l,n,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});r.setDragImage(l,c.x,c.y)}}try{r.setData("application/json",{})}catch(e){}i.setCurrentDragSourceNode(e.target),i.getCurrentSourcePreviewNodeOptions().captureDraggingState?i.actions.publishDragSource():setTimeout((function(){return i.actions.publishDragSource()}),0)}else if(s)i.beginDragNativeItem(s);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){i.clearCurrentDragSourceNode()&&i.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(i.dragEnterTargetIds=[],i.enterLeaveCounter.enter(e.target)&&!i.monitor.isDragging()){var t=e.dataTransfer,n=Va(t);n&&i.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=i.dragEnterTargetIds;(i.dragEnterTargetIds=[],i.monitor.isDragging())&&(i.altKeyPressed=e.altKey,Sa()||i.actions.hover(t,{clientOffset:Ta(e)}),t.some((function(e){return i.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){i.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));i.altKeyPressed=e.altKey,i.actions.hover(t||[],{clientOffset:Ta(e)}),(t||[]).some((function(e){return i.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){i.isDraggingNativeItem()&&e.preventDefault(),i.enterLeaveCounter.leave(e.target)&&i.isDraggingNativeItem()&&i.endDragNativeItem()},this.handleTopDropCapture=function(e){i.dropTargetIds=[],e.preventDefault(),i.isDraggingNativeItem()&&i.currentNativeSource.loadDataTransfer(e.dataTransfer),i.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(t,{clientOffset:Ta(e)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new Wa(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Aa(this.isNodeInDocument)}var t,n,r;return t=e,(n=[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var i=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){i.sourcePreviewNodes.delete(e),i.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var i=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var r=function(t){return i.handleDragStart(t,e)},s=function(e){return i.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",s),function(){i.sourceNodes.delete(e),i.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,i=function(t){return n.handleDragEnter(t,e)},r=function(t){return n.handleDragOver(t,e)},s=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",i),t.addEventListener("dragover",r),t.addEventListener("drop",s),function(){t.removeEventListener("dragenter",i),t.removeEventListener("dragover",r),t.removeEventListener("drop",s)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Ha({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return Ha({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(i).some((function(t){return i[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new ja(Na[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&Ka(t.prototype,n),r&&Ka(t,r),e}(),Xa=function(e,t){return new Ga(e,t)};function Ja(e,t,n,i){var r=n?n.call(i,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var u=s[l];if(!a(u))return!1;var c=e[u],h=t[u];if(!1===(r=n?n.call(i,c,h,u):void 0)||void 0===r&&c!==h)return!1}return!0}var Ya=n(47),Qa=n.n(Ya);function Za(e){return(Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function el(e){return"function"==typeof e}function tl(){}function nl(e){if(!function(e){return"object"===Za(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function il(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function rl(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){return e&&e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}(e);var t}function sl(e){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ol(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function al(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ll(e,t,n){return t&&al(e.prototype,t),n&&al(e,n),e}function ul(e,t){return!t||"object"!==sl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cl(e){return(cl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hl(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pl(e,t)}function pl(e,t){return(pl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var dl=n(86),fl={insert:"head",singleton:!1},gl=(Ne()(dl.a,fl),dl.a.locals||{});const ml=e=>{const{initialOffset:t,currentOffset:n}=e;if(!t||!n)return{display:"none"};const{x:i,y:r}=n,s=`translate(${i}px, ${r}px)`;return{transform:s,WebkitTransform:s}},vl=e=>{const{isDragging:t,item:n}=e;return t?s.a.createElement("div",{className:gl["custom-drag-layer"]},s.a.createElement("div",{style:ml(e)},s.a.createElement("div",{className:gl["custom-drag-layer-container"]},s.a.createElement("div",null,n.stageOperator?n.stageOperator:"Stage "+(n.index+1))))):null};vl.propTypes={isDragging:a.a.bool,item:a.a.object};var yl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return co("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),co(nl(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var i=n,s=t.arePropsEqual,o=void 0===s?Ja:s,a=i.displayName||i.name||"Component",l=function(t){function n(){var e;return ol(this,n),(e=ul(this,cl(n).apply(this,arguments))).isCurrentlyMounted=!1,e.ref=r.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();Ja(t,e.state)||e.setState(t)}},e}return hl(n,t),ll(n,[{key:"getDecoratedComponentInstance",value:function(){return co(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!o(e,this.props)||!Ja(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return r.createElement(fa.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?r.createElement(i,Object.assign({},e.props,e.state,{ref:rl(i)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,co("object"===sl(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",a,a);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),n}(r.Component);return l.displayName="DragLayer(".concat(a,")"),l.DecoratedComponent=n,Qa()(l,n)}}(e=>({item:e.getItem(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}))(vl);function bl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function xl(e,t,n){return t&&wl(e.prototype,t),n&&wl(e,n),e}var Cl=function(){function e(t){bl(this,e),this.isDisposed=!1,this.action=el(t)?t:tl}return xl(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return e&&el(e.dispose)}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();Cl.empty={dispose:tl};var El=function(){function e(){bl(this,e),this.isDisposed=!1;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.disposables=n}return xl(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var i=0;i<e;i++)t[i].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var i=0;i<e;i++)t[i].dispose()}}}]),e}(),Al=function(){function e(){bl(this,e),this.isDisposed=!1}return xl(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function Sl(e){return(Sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,s=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw s}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function kl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Fl(e,t){return!t||"object"!==Sl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _l(e){return(_l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tl(e,t){return(Tl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ol(e){var t=e.DecoratedComponent,n=e.createHandler,i=e.createMonitor,s=e.createConnector,o=e.registerHandler,a=e.containerDisplayName,l=e.getType,u=e.collect,c=e.options.arePropsEqual,h=void 0===c?Ja:c,p=t,d=t.displayName||t.name||"Component",f=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Fl(this,_l(t).call(this,e))).decoratedRef=r.createRef(),n.handleChange=function(){var e=n.getCurrentState();Ja(e,n.state)||n.setState(e)},n.disposable=new Al,n.receiveProps(e),n.dispose(),n}var a,c,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tl(e,t)}(t,e),a=t,(c=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return co(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!h(e,this.props)||!Ja(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new Al,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){h(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(l(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=Dl(o(e,this.handler,this.manager),2),n=t[0],i=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var r=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new El(new Cl(r),new Cl(i)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?u(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return r.createElement(fa.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),r.createElement(p,Object.assign({},e.props,e.getCurrentState(),{ref:rl(p)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(co(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",d,d),void 0!==e&&(this.manager=e,this.handlerMonitor=i(e),this.handlerConnector=s(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&kl(a.prototype,c),f&&kl(a,f),t}(r.Component);return f.DecoratedComponent=t,f.displayName="".concat(a,"(").concat(d,")"),Qa()(f,t)}function Pl(e,t,n){var i=n.getRegistry(),r=i.addTarget(e,t);return[r,function(){return i.removeTarget(r)}]}function Rl(e,t,n){var i=n.getRegistry(),r=i.addSource(e,t);return[r,function(){return i.removeSource(r)}]}function Bl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Ll=!1,Ml=!1,Il=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n,i;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){co(!Ll,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ll=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ll=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;co(!Ml,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ml=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ml=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&Bl(t.prototype,n),i&&Bl(t,i),e}();function Nl(e,t){"function"==typeof e?e(t):e.current=t}function $l(e,t){var n=e.ref;return co("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?Object(r.cloneElement)(e,{ref:function(e){Nl(n,e),Nl(t,e)}}):Object(r.cloneElement)(e,{ref:t})}function jl(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function Vl(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var s=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object(r.isValidElement)(t)){var i=t;return e(i,n),i}var s=t;jl(s);var o=n?function(t){return e(t,n)}:e;return $l(s,o)}}(i);t[n]=function(){return s}}})),t}function zl(e){return(zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wl(e){return null!==e&&"object"===zl(e)&&e.hasOwnProperty("current")}function Ul(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Hl=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Vl({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,Wl(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,Wl(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,i;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();this.handlerId?this.dragPreview&&t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.disconnectDragPreview(),this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.disconnectDragPreview()}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Ja(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Ja(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&Ul(t.prototype,n),i&&Ul(t,i),e}();function ql(e){return(ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kl(e,t){return"string"==typeof e||"symbol"===ql(e)||!!t&&Array.isArray(e)&&e.every((function(e){return Kl(e,!1)}))}function Gl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Xl=["canDrag","beginDrag","isDragging","endDrag"],Jl=["beginDrag"],Yl=function(){function e(t,n,i){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(r.props)return r.spec.beginDrag(r.props,r.monitor,r.ref.current)},this.spec=t,this.monitor=n,this.ref=i}var t,n,i;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,il(this.ref))}}])&&Gl(t.prototype,n),i&&Gl(t,i),e}();function Ql(e){return Object.keys(e).forEach((function(t){co(Xl.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',Xl.join(", "),t),co("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),Jl.forEach((function(t){co("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new Yl(e,t,n)}}function Zl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var eu=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Vl({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,Wl(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,i;return t=e,(n=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Ja(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&Zl(t.prototype,n),i&&Zl(t,i),e}();function tu(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var nu=!1,iu=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,n,i;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;co(!nu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return nu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{nu=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&tu(t.prototype,n),i&&tu(t,i),e}();function ru(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var su,ou=["canDrop","hover","drop"],au=function(){function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=n,this.ref=i}var t,n,i;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,il(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&ru(t.prototype,n),i&&ru(t,i),e}();function lu(e){return Object.keys(e).forEach((function(t){co(ou.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',ou.join(", "),t),co("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new au(e,t,n)}}class uu extends r.Component{componentDidMount(){const{connectDragPreview:e}=this.props;e&&e((su||((su=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),su),{captureDraggingState:!0})}render(){return(0,this.props.connectDropTarget)(s.a.createElement("div",null,this.props.renderItem(this.props.item,this.props.index,this.props.connectDragSource)))}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(uu,"propTypes",{connectDragSource:a.a.func.isRequired,connectDropTarget:a.a.func.isRequired,connectDragPreview:a.a.func.isRequired,isOver:a.a.bool.isRequired,isDragging:a.a.bool.isRequired,index:a.a.number.isRequired,item:a.a.object.isRequired,onMove:a.a.func.isRequired,renderItem:a.a.func.isRequired});var cu,hu=function(e){return function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e;"function"!=typeof e&&(co(Kl(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),r=function(){return e}),co(nl(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var s=Ql(t);return co("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),co(nl(i),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return Ol({containerDisplayName:"DragSource",createHandler:s,registerHandler:Rl,createConnector:function(e){return new Hl(e)},createMonitor:function(e){return new Il(e)},DecoratedComponent:e,getType:r,collect:n,options:i})}}("stage",{beginDrag:e=>({index:e.index,stageOperator:e.stageOperator})},(e,t)=>({connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}))(e)}((cu=uu,function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e;"function"!=typeof e&&(co(Kl(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),r=function(){return e}),co(nl(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var s=lu(t);return co("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),co(nl(i),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return Ol({containerDisplayName:"DropTarget",createHandler:s,registerHandler:Pl,createMonitor:function(e){return new iu(e)},createConnector:function(e){return new eu(e)},DecoratedComponent:e,getType:r,collect:n,options:i})}}("stage",{hover(e,t,n){const i=t.getItem().index,r=e.index;if(i!==r){const s=Object(Dt.findDOMNode)(n).getBoundingClientRect(),o=(s.bottom-s.top)/2,a=t.getClientOffset().y-s.top;if(i<r&&a<o)return;if(i>r&&a>o)return;t.getItem().index=r,e.onMove(i,r)}}},(e,t)=>({connectDropTarget:e.dropTarget(),isOver:t.isOver()}))(cu)));function pu(e){return Xa(e,"undefined"!=typeof window?window:"undefined"!=typeof global?global:null)}class du extends r.Component{render(){const{items:e,onMove:t,renderItem:n}=this.props;return s.a.createElement(ba,{backend:pu},s.a.createElement(yl,null),e.map((e,i)=>s.a.createElement(hu,{key:i,index:i,stageOperator:e.stageOperator,onMove:t,renderItem:n,item:e})))}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(du,"propTypes",{items:a.a.array.isRequired,onMove:a.a.func.isRequired,renderItem:a.a.func.isRequired});var fu=du,gu=n(87),mu=n.n(gu),vu=n(88),yu={insert:"head",singleton:!1},bu=(Ne()(vu.a,yu),vu.a.locals||{});const wu=e=>s.a.createElement(mu.a,{className:bu["modify-source-banner"],variant:gu.Variant.Blue},'Modifying pipeline backing "',e.editViewName,'"');wu.propTypes={editViewName:a.a.string.isRequired};var xu=wu,Cu=n(89),Eu={insert:"head",singleton:!1},Au=(Ne()(Cu.a,Eu),Cu.a.locals||{});function Su(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Du extends r.PureComponent{constructor(...e){super(...e),Su(this,"onStageMoved",(e,t)=>{this.props.stageMoved(e,t),this.props.runStage(0)}),Su(this,"renderStage",(e,t,n)=>s.a.createElement(rr,{allowWrites:this.props.allowWrites,connectDragSource:n,env:this.props.env,stage:e.stage,stageOperator:e.stageOperator,snippet:e.snippet,error:e.error,syntaxError:e.syntaxError,isValid:e.isValid,isEnabled:e.isEnabled,isLoading:e.isLoading,isComplete:e.isComplete,isMissingAtlasOnlyStageSupport:e.isMissingAtlasOnlyStageSupport,isExpanded:e.isExpanded,isCommenting:this.props.isCommenting,isAutoPreviewing:this.props.isAutoPreviewing,fromStageOperators:e.fromStageOperators||!1,previewDocuments:e.previewDocuments,runStage:this.props.runStage,index:t,openLink:this.props.openLink,runOutStage:this.props.runOutStage,gotoOutResults:this.props.gotoOutResults,gotoMergeResults:this.props.gotoMergeResults,serverVersion:this.props.serverVersion,stageChanged:this.props.stageChanged,stageCollapseToggled:this.props.stageCollapseToggled,stageAddedAfter:this.props.stageAddedAfter,stageDeleted:this.props.stageDeleted,stageMoved:this.props.stageMoved,stageOperatorSelected:this.props.stageOperatorSelected,stageToggled:this.props.stageToggled,fields:this.props.fields,setIsModified:this.props.setIsModified,key:e.id,isOverviewOn:this.props.isOverviewOn,projections:this.props.projections,projectionsChanged:this.props.projectionsChanged,newPipelineFromPaste:this.props.newPipelineFromPaste})),Su(this,"renderStageList",()=>s.a.createElement(fu,{items:this.props.pipeline,onMove:this.onStageMoved,renderItem:this.renderStage}))}renderModifyingViewSourceBanner(){if(this.props.editViewName)return s.a.createElement(xu,{editViewName:this.props.editViewName})}render(){const e=this.props.inputDocuments;return s.a.createElement("div",{className:Au["pipeline-workspace-container-container"]},s.a.createElement("div",{className:Au["pipeline-workspace-container"]},s.a.createElement("div",{className:Au["pipeline-workspace"]},this.renderModifyingViewSourceBanner(),s.a.createElement(cs,{toggleInputDocumentsCollapsed:this.props.toggleInputDocumentsCollapsed,refreshInputDocuments:this.props.refreshInputDocuments,documents:e.documents,isLoading:e.isLoading,isExpanded:e.isExpanded,openLink:this.props.openLink,count:e.count,isOverviewOn:this.props.isOverviewOn}),this.renderStageList(),s.a.createElement(ms,{stageAdded:this.props.stageAdded,setIsModified:this.props.setIsModified}))))}}Su(Du,"displayName","PipelineWorkspace"),Su(Du,"propTypes",{allowWrites:a.a.bool.isRequired,editViewName:a.a.string,env:a.a.string.isRequired,pipeline:a.a.array.isRequired,toggleInputDocumentsCollapsed:a.a.func.isRequired,refreshInputDocuments:a.a.func.isRequired,stageAdded:a.a.func.isRequired,setIsModified:a.a.func.isRequired,openLink:a.a.func.isRequired,isCommenting:a.a.bool.isRequired,isAutoPreviewing:a.a.bool.isRequired,inputDocuments:a.a.object.isRequired,runStage:a.a.func.isRequired,runOutStage:a.a.func.isRequired,gotoOutResults:a.a.func.isRequired,gotoMergeResults:a.a.func.isRequired,serverVersion:a.a.string.isRequired,stageChanged:a.a.func.isRequired,stageCollapseToggled:a.a.func.isRequired,stageAddedAfter:a.a.func.isRequired,stageDeleted:a.a.func.isRequired,stageMoved:a.a.func.isRequired,stageOperatorSelected:a.a.func.isRequired,stageToggled:a.a.func.isRequired,fields:a.a.array.isRequired,isOverviewOn:a.a.bool.isRequired,projections:a.a.array.isRequired,projectionsChanged:a.a.func.isRequired,newPipelineFromPaste:a.a.func.isRequired});var ku=Du,Fu=n(90),_u={insert:"head",singleton:!1},Tu=(Ne()(Fu.a,_u),Fu.a.locals||{});function Ou(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Pu extends r.PureComponent{render(){const e=fe()({btn:!0,"btn-xs":!0,"btn-default":!0,[Tu["restore-pipeline-button"]]:!0});return s.a.createElement("div",{className:fe()(Tu["restore-pipeline"])},s.a.createElement(_i.TextButton,{text:"Open",className:e,clickHandler:this.props.clickHandler}))}}Ou(Pu,"displayName","RestorePipelineButtonComponent"),Ou(Pu,"propTypes",{clickHandler:a.a.func.isRequired});var Ru=Pu,Bu=n(91),Lu={insert:"head",singleton:!1},Mu=(Ne()(Bu.a,Lu),Bu.a.locals||{});function Iu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nu extends r.PureComponent{render(){const e=fe()({btn:!0,"btn-xs":!0,"btn-default":!0,[Mu["delete-pipeline-button"]]:!0});return s.a.createElement("div",{className:fe()(Mu["delete-pipeline"])},s.a.createElement(_i.IconButton,{title:"Delete",className:e,iconClassName:"fa fa-trash-o",clickHandler:this.props.clickHandler}))}}Iu(Nu,"displayName","DeletePipelineButtonComponent"),Iu(Nu,"propTypes",{clickHandler:a.a.func.isRequired});var $u=Nu,ju=n(92),Vu={insert:"head",singleton:!1},zu=(Ne()(ju.a,Vu),ju.a.locals||{});function Wu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Uu extends r.PureComponent{constructor(...e){super(...e),Wu(this,"handleDelete",()=>{this.props.deletePipeline(this.props.objectID)}),Wu(this,"restoreClickHandler",()=>{this.props.restorePipelineFrom(this.props.objectID),this.props.restorePipelineModalToggle(1)})}render(){return s.a.createElement("div",{className:fe()(zu["save-pipeline-card"]),"data-pipeline-object-id":this.props.objectID},s.a.createElement("div",{className:fe()(zu["save-pipeline-card-title"])},this.props.name),s.a.createElement(Ru,{clickHandler:this.restoreClickHandler}),s.a.createElement($u,{clickHandler:this.handleDelete}))}}Wu(Uu,"displayName","SavePipelineCardComponent"),Wu(Uu,"propTypes",{restorePipelineModalToggle:a.a.func.isRequired,restorePipelineFrom:a.a.func.isRequired,deletePipeline:a.a.func.isRequired,objectID:a.a.string.isRequired,name:a.a.string.isRequired});var Hu=Uu,qu=n(93),Ku={insert:"head",singleton:!1},Gu=(Ne()(qu.a,Ku),qu.a.locals||{});function Xu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ju extends r.Component{constructor(...e){super(...e),Xu(this,"handleSavedPipelinesClose",()=>{this.props.savedPipelinesListToggle(0)})}render(){const e=this.props.savedPipeline.pipelines.map((e,t)=>s.a.createElement(Hu,{restorePipelineModalToggle:this.props.restorePipelineModalToggle,restorePipelineFrom:this.props.restorePipelineFrom,deletePipeline:this.props.deletePipeline,name:e.name,objectID:e.id,key:t})),t=fe()({[Gu["save-pipeline"]]:!0,[Gu["save-pipeline-is-visible"]]:this.props.savedPipeline.isListVisible});return s.a.createElement("div",{className:t},s.a.createElement("div",{className:fe()(Gu["save-pipeline-header"])},s.a.createElement("div",{id:"saved-pipeline-header-title"},"Saved Pipelines"),s.a.createElement(_i.IconButton,{title:"Close Saved Pipelines",className:"btn btn-xs btn-default",iconClassName:"fa fa-times",clickHandler:this.handleSavedPipelinesClose})),s.a.createElement("div",{className:fe()(Gu["save-pipeline-cards"])},e))}}Xu(Ju,"displayName","SavePipelineComponent"),Xu(Ju,"propTypes",{restorePipelineModalToggle:a.a.func.isRequired,restorePipelineFrom:a.a.func.isRequired,deletePipeline:a.a.func.isRequired,savedPipelinesListToggle:a.a.func.isRequired,savedPipeline:a.a.object.isRequired});var Yu=Ju,Qu=n(94),Zu={insert:"head",singleton:!1},ec=(Ne()(Qu.a,Zu),Qu.a.locals||{});function tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class nc extends r.PureComponent{onCancelClicked(e){e.preventDefault(),e.stopPropagation(),this.props.toggleSettingsIsExpanded()}onCommentModeClicked(){this.props.toggleSettingsIsCommentMode()}onSampleSizeChanged(e){this.props.setSettingsSampleSize(parseInt(e.currentTarget.value,10))}onMaxTimeoutChanged(e){this.props.setSettingsMaxTimeMS(parseInt(e.currentTarget.value,10))}onLimitChanged(e){this.props.setSettingsLimit(parseInt(e.currentTarget.value,10))}onApplyClicked(e){e.preventDefault(),e.stopPropagation(),this.props.applySettings(),this.props.runStage(0),this.props.toggleSettingsIsExpanded()}renderLargeLimit(){if(!this.props.isAtlasDeployed){let e=this.props.largeLimit;return this.props.settings.isDirty&&(e=this.props.settings.limit),s.a.createElement("div",{className:fe()(ec["input-group"])},s.a.createElement("div",{className:fe()(ec["input-meta"])},s.a.createElement("label",null,"Limit"),s.a.createElement("p",null,"Limits input documents before $group, $bucket, and $bucketAuto stages. Set a limit to make the collection run faster.")),s.a.createElement("div",{className:fe()(ec["input-control"])},s.a.createElement("input",{type:"number",min:"0",placeholder:1e5,value:e,onChange:this.onLimitChanged.bind(this)})))}}renderFields(){let e=this.props.isCommenting,t=this.props.limit,n=this.props.maxTimeMS;return this.props.settings.isDirty&&(e=this.props.settings.isCommentMode,t=this.props.settings.sampleSize,n=this.props.settings.maxTimeMS),s.a.createElement("div",{className:fe()(ec.body)},s.a.createElement("div",{className:fe()(ec["input-group"])},s.a.createElement("div",{className:fe()(ec["input-meta"])},s.a.createElement("label",null,"Comment Mode"),s.a.createElement("p",null,"When enabled, adds helper comments to each stage. Only applies to new stages.")),s.a.createElement("div",{className:fe()(ec["input-control"])},s.a.createElement("input",{id:"aggregation-comment-mode",type:"checkbox",checked:e,onChange:this.onCommentModeClicked.bind(this)}))),s.a.createElement("div",{className:fe()(ec["input-group"])},s.a.createElement("div",{className:fe()(ec["input-meta"])},s.a.createElement("label",null,"Number of Preview Documents"),s.a.createElement("p",null,"Specify the number of documents to show in the preview.")),s.a.createElement("div",{className:fe()(ec["input-control"])},s.a.createElement("input",{type:"number",min:"0",placeholder:20,value:t,onChange:this.onSampleSizeChanged.bind(this)}))),s.a.createElement("div",{className:fe()(ec["input-group"])},s.a.createElement("div",{className:fe()(ec["input-meta"])},s.a.createElement("label",null,"Max Time"),s.a.createElement("p",null,"Specifies a cumulative time limit in milliseconds for processing operations on a cursor. Max timeout prevents long hang times.")),s.a.createElement("div",{className:fe()(ec["input-control"])},s.a.createElement("input",{type:"number",placeholder:6e4,min:"0",step:"1000",value:n,onChange:this.onMaxTimeoutChanged.bind(this)}))),this.renderLargeLimit())}render(){return this.props.isExpanded?s.a.createElement("div",{className:fe()(ec.container)},s.a.createElement("div",{className:fe()(ec.header)},s.a.createElement("div",{className:fe()(ec["header-title"])},"Settings"),s.a.createElement("div",{className:fe()(ec["header-btn-group"])},s.a.createElement(_i.TextButton,{id:"aggregations-settings-cancel",className:"btn btn-default btn-xs",text:"Cancel",clickHandler:this.onCancelClicked.bind(this)}),s.a.createElement(_i.TextButton,{id:"aggregation-settings-apply",className:"btn btn-primary btn-xs",text:"Apply",clickHandler:this.onApplyClicked.bind(this)}))),this.renderFields()):null}}tc(nc,"displayName","Settings"),tc(nc,"propTypes",{isAtlasDeployed:a.a.bool.isRequired,isCommenting:a.a.bool.isRequired,isExpanded:a.a.bool.isRequired,limit:a.a.number.isRequired,largeLimit:a.a.number.isRequired,maxTimeMS:a.a.number.isRequired,settings:a.a.object.isRequired,toggleSettingsIsExpanded:a.a.func.isRequired,toggleSettingsIsCommentMode:a.a.func.isRequired,setSettingsSampleSize:a.a.func.isRequired,setSettingsMaxTimeMS:a.a.func.isRequired,setSettingsLimit:a.a.func.isRequired,applySettings:a.a.func.isRequired,runStage:a.a.func.isRequired});var ic=nc,rc=n(10),sc=n(95),oc={insert:"head",singleton:!1},ac=(Ne()(sc.a,oc),sc.a.locals||{});function lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class uc extends r.PureComponent{render(){const e=this.props.isOverviewOn?"fa fa-angle-right":"fa fa-angle-down",t=this.props.isOverviewOn?"Expand all stages":"Collapse all stages";return s.a.createElement("div",{className:fe()(ac["overview-toggler"])},s.a.createElement("button",{type:"button",title:t,onClick:this.props.toggleOverview,className:"btn btn-default btn-xs"},s.a.createElement("i",{className:e,"aria-hidden":!0})))}}lc(uc,"displayName","OverviewToggler"),lc(uc,"propTypes",{isOverviewOn:a.a.bool.isRequired,toggleOverview:a.a.func.isRequired});var cc=uc,hc=n(96),pc={insert:"head",singleton:!1},dc=(Ne()(hc.a,pc),hc.a.locals||{});function fc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class gc extends r.PureComponent{render(){const e=this.props.isCollationExpanded?"fa fa-caret-down":"fa fa-caret-right",t=this.props.isCollationExpanded?"Collapse":"Expand";return s.a.createElement("div",{className:fe()(dc["collation-collapser"])},s.a.createElement("button",{type:"button",title:t,onClick:this.props.collationCollapseToggled,className:"btn btn-default btn-xs"},s.a.createElement("i",{className:e,"aria-hidden":!0})," ","Collation"))}}fc(gc,"displayName","CollationCollapserComponent"),fc(gc,"propTypes",{isCollationExpanded:a.a.bool.isRequired,collationCollapseToggled:a.a.func.isRequired});var mc=gc,vc=n(97),yc={insert:"head",singleton:!1},bc=(Ne()(vc.a,yc),vc.a.locals||{});function wc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class xc extends r.PureComponent{constructor(...e){super(...e),wc(this,"onNameChange",e=>{this.props.nameChanged(e.target.value),this.props.setIsModified(!0)}),wc(this,"onSaveClicked",()=>{this.isSavedPipeline()?(this.props.saveCurrentPipeline(),this.props.setIsModified(!1)):this.props.savingPipelineOpen()}),wc(this,"onSaveAsClicked",()=>{this.isSavedPipeline()?this.props.savingPipelineOpen({name:this.props.name,isSaveAs:!0}):this.onSaveClicked()}),wc(this,"handleSavedPipelinesOpen",()=>{this.props.getSavedPipelines(),this.props.savedPipelinesListToggle(1)}),wc(this,"handleSavedPipelinesClose",()=>{this.props.savedPipelinesListToggle(0)})}isSavedPipeline(){return""!==this.props.name}showNewPipelineConfirmModal(){this.props.setIsNewPipelineConfirm(!0)}renderIsModifiedIndicator(){const e=fe()({[bc["is-modified"]]:!0,[bc["is-modified-on"]]:this.props.isModified});return this.props.isModified?s.a.createElement("div",{className:e},"- ",s.a.createElement("span",null,"Modified")):null}renderSaveDropdownMenu(){const e=[s.a.createElement(rc.MenuItem,{key:"save-pipeline-as",onClick:this.onSaveAsClicked.bind(this)},"Save pipeline as…")];return mn.a.gte(this.props.serverVersion,"3.4.0")&&e.push(s.a.createElement(rc.MenuItem,{key:"create-a-view",onClick:this.props.openCreateView},"Create a view")),e}renderSavedPipelineListToggler(){if(!this.props.isAtlasDeployed&&!this.props.editViewName){const e=this.props.savedPipeline.isListVisible?this.handleSavedPipelinesClose:this.handleSavedPipelinesOpen;return s.a.createElement("span",{"data-tip":"Open saved Pipelines","data-for":"open-saved-pipelines","data-place":"top","data-html":"true"},s.a.createElement(_i.IconButton,{title:"Toggle Saved Pipelines",className:fe()("btn","btn-xs","btn-default",bc["pipeline-builder-toolbar-open-saved-pipelines-button"]),iconClassName:"fa fa-folder-open-o",clickHandler:e}),s.a.createElement(Xe.Tooltip,{id:"open-saved-pipelines"}))}}renderNewPipelineActionsItem(){if(!this.props.editViewName)return s.a.createElement("div",null,s.a.createElement(rc.Dropdown,{id:"new-pipeline-actions",className:"btn-group"},s.a.createElement(rc.Button,{variant:"default",className:fe()("btn-xs",bc["pipeline-builder-toolbar-new-button"]),onClick:this.showNewPipelineConfirmModal.bind(this)},s.a.createElement("i",{className:"fa fa-plus-circle"})),s.a.createElement(rc.Dropdown.Toggle,{className:"btn-default btn-xs btn"}),s.a.createElement(rc.Dropdown.Menu,null,s.a.createElement(rc.MenuItem,{onClick:this.props.newPipelineFromText},"New Pipeline From Text"))))}renderSavedPipelineNameItem(){if(!this.props.isAtlasDeployed&&!this.props.editViewName)return s.a.createElement("div",{className:bc["pipeline-builder-toolbar-add-wrapper"]},s.a.createElement("div",{className:bc["pipeline-builder-toolbar-name"]},this.props.name||"Untitled"),this.renderIsModifiedIndicator())}renderSavePipelineActionsItem(){if(!this.props.isAtlasDeployed&&!this.props.editViewName){const e=fe()({btn:!0,"btn-xs":!0,"btn-primary":!0,[bc["pipeline-builder-toolbar-save-pipeline-button"]]:!0});return s.a.createElement("div",null,s.a.createElement(rc.Dropdown,{id:"save-pipeline-actions"},s.a.createElement(rc.Button,{className:e,variant:"primary",onClick:this.onSaveClicked.bind(this)},"Save"),s.a.createElement(rc.Dropdown.Toggle,{className:"btn-xs btn btn-primary"}),s.a.createElement(rc.Dropdown.Menu,null,this.renderSaveDropdownMenu())))}}renderExportToLanguageItem(){return s.a.createElement("div",{className:bc["pipeline-builder-toolbar-export-to-language"],"data-tip":"Export pipeline code to language","data-for":"export-to-language","data-place":"top","data-html":"true"},s.a.createElement(_i.IconButton,{className:"btn btn-xs btn-default",iconClassName:fe()(bc["export-icon"]),clickHandler:this.props.exportToLanguage,title:"Export To Language"}),s.a.createElement(Xe.Tooltip,{id:"export-to-language"}))}renderUpdateViewButton(){if(this.props.editViewName)return s.a.createElement("div",{className:fe()(bc["pipeline-builder-toolbar-update-view"])},s.a.createElement(_i.TextButton,{className:"btn btn-xs btn-primary",text:"Update View",title:"Update View",disabled:!this.props.isModified,clickHandler:this.props.updateView}))}render(){return s.a.createElement("div",{className:bc["pipeline-builder-toolbar"]},s.a.createElement(cc,{isOverviewOn:this.props.isOverviewOn,toggleOverview:this.props.toggleOverview}),this.renderSavedPipelineListToggler(),this.renderNewPipelineActionsItem(),s.a.createElement(mc,{isCollationExpanded:this.props.isCollationExpanded,collationCollapseToggled:this.props.collationCollapseToggled}),this.renderUpdateViewButton(),this.renderSavedPipelineNameItem(),this.renderSavePipelineActionsItem(),this.renderExportToLanguageItem())}}wc(xc,"displayName","PipelineBuilderToolbarComponent"),wc(xc,"propTypes",{isAtlasDeployed:a.a.bool.isRequired,clonePipeline:a.a.func.isRequired,exportToLanguage:a.a.func.isRequired,setIsNewPipelineConfirm:a.a.func.isRequired,newPipelineFromText:a.a.func.isRequired,nameChanged:a.a.func.isRequired,name:a.a.string.isRequired,editViewName:a.a.string,setIsModified:a.a.func.isRequired,isModified:a.a.bool.isRequired,collationCollapseToggled:a.a.func.isRequired,isCollationExpanded:a.a.bool.isRequired,isOverviewOn:a.a.bool.isRequired,toggleOverview:a.a.func.isRequired,updateView:a.a.func.isRequired,serverVersion:a.a.string.isRequired,openCreateView:a.a.func.isRequired,savedPipeline:a.a.object.isRequired,savedPipelinesListToggle:a.a.func.isRequired,getSavedPipelines:a.a.func.isRequired,saveCurrentPipeline:a.a.func.isRequired,savingPipelineOpen:a.a.func.isRequired});var Cc=xc,Ec=n(98),Ac={insert:"head",singleton:!1},Sc=(Ne()(Ec.a,Ac),Ec.a.locals||{});function Dc(){return(Dc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function kc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fc={className:Sc.switch,onColor:"rgb(19, 170, 82)",style:{backgroundColor:"rgb(255,255,255)"}};class _c extends r.PureComponent{renderAutoPreviewToggle(){return s.a.createElement("div",{className:Sc["toggle-auto-preview"],"data-for":"preview-mode","data-tip":"Show a preview of resulting documents after <br />each stage in the pipeline.","data-place":"top","data-html":"true"},s.a.createElement(it.a,Dc({checked:this.props.isAutoPreviewing,onChange:this.props.toggleAutoPreview},Fc)),s.a.createElement("span",{className:Sc["toggle-auto-preview-label"]},"Auto Preview"),s.a.createElement(Xe.Tooltip,{id:"preview-mode"}))}renderSampleToggle(){if(!this.props.isAtlasDeployed)return s.a.createElement("div",{className:Sc["toggle-sample"],"data-tip":"Use a random sample of documents instead of<br />the entire collection so you can develop your<br />pipeline quickly. Sample size can be specified<br />in the settings panel.","data-for":"sampling-mode","data-place":"top","data-html":"true"},s.a.createElement(it.a,Dc({checked:this.props.isSampling,onChange:this.props.toggleSample},Fc)),s.a.createElement("span",{className:Sc["toggle-sample-label"]},"Sample Mode"),s.a.createElement(Xe.Tooltip,{id:"sampling-mode"}))}renderFullscreenButton(){const{isFullscreenOn:e}=this.props,t=e?"fa fa-compress":"fa fa-expand",n=e?"Exit Fullscreen":"Enter Fullscreen";return s.a.createElement("div",{className:Sc.fullscreen},s.a.createElement("button",{type:"button",title:n,className:"btn btn-xs btn-default",onClick:this.props.toggleFullscreen},s.a.createElement("i",{className:t,"aria-hidden":!0})))}renderSettingsToggle(){return s.a.createElement("div",{className:Sc.settings},s.a.createElement(_i.IconButton,{title:"Settings",className:"btn btn-xs btn-default",iconClassName:"fa fa-gear",clickHandler:this.props.toggleSettingsIsExpanded}))}render(){return s.a.createElement("div",{className:Sc["container-right"]},this.renderSampleToggle(),this.renderAutoPreviewToggle(),this.renderSettingsToggle())}}kc(_c,"displayName","PipelinePreviewToolbarComponent"),kc(_c,"propTypes",{isAtlasDeployed:a.a.bool.isRequired,toggleSample:a.a.func.isRequired,toggleAutoPreview:a.a.func.isRequired,isSampling:a.a.bool.isRequired,isAutoPreviewing:a.a.bool.isRequired,toggleSettingsIsExpanded:a.a.func.isRequired,isFullscreenOn:a.a.bool.isRequired,toggleFullscreen:a.a.func.isRequired});var Tc=_c,Oc=n(99),Pc={insert:"head",singleton:!1},Rc=(Ne()(Oc.a,Pc),Oc.a.locals||{});function Bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Lc extends r.PureComponent{render(){return s.a.createElement("div",{className:fe()(Rc["pipeline-toolbar"],{[Rc["pipeline-toolbar-border"]]:!this.props.isCollationExpanded})},s.a.createElement(Cc,{isAtlasDeployed:this.props.isAtlasDeployed,savedPipelinesListToggle:this.props.savedPipelinesListToggle,updateView:this.props.updateView,getSavedPipelines:this.props.getSavedPipelines,savedPipeline:this.props.savedPipeline,clonePipeline:this.props.clonePipeline,newPipelineFromText:this.props.newPipelineFromText,exportToLanguage:this.props.exportToLanguage,saveCurrentPipeline:this.props.saveCurrentPipeline,isValid:this.props.savedPipeline.isNameValid,nameChanged:this.props.nameChanged,isModified:this.props.isModified,setIsModified:this.props.setIsModified,name:this.props.name,editViewName:this.props.editViewName,collationCollapseToggled:this.props.collationCollapseToggled,isCollationExpanded:this.props.isCollationExpanded,isOverviewOn:this.props.isOverviewOn,toggleOverview:this.props.toggleOverview,savingPipelineOpen:this.props.savingPipelineOpen,serverVersion:this.props.serverVersion,openCreateView:this.props.openCreateView,setIsNewPipelineConfirm:this.props.setIsNewPipelineConfirm}),s.a.createElement(Tc,{isAtlasDeployed:this.props.isAtlasDeployed,toggleComments:this.props.toggleComments,toggleSample:this.props.toggleSample,toggleAutoPreview:this.props.toggleAutoPreview,isCommenting:this.props.isCommenting,isSampling:this.props.isSampling,isAutoPreviewing:this.props.isAutoPreviewing,isModified:this.props.isModified,toggleSettingsIsExpanded:this.props.toggleSettingsIsExpanded,isFullscreenOn:this.props.isFullscreenOn,toggleFullscreen:this.props.toggleFullscreen}))}}Bc(Lc,"displayName","PipelineToolbarComponent"),Bc(Lc,"propTypes",{isAtlasDeployed:a.a.bool.isRequired,savedPipelinesListToggle:a.a.func.isRequired,getSavedPipelines:a.a.func.isRequired,setIsNewPipelineConfirm:a.a.func.isRequired,newPipelineFromText:a.a.func.isRequired,clonePipeline:a.a.func.isRequired,exportToLanguage:a.a.func.isRequired,saveCurrentPipeline:a.a.func.isRequired,savedPipeline:a.a.object.isRequired,nameChanged:a.a.func.isRequired,toggleComments:a.a.func.isRequired,toggleSample:a.a.func.isRequired,toggleAutoPreview:a.a.func.isRequired,isModified:a.a.bool.isRequired,isCommenting:a.a.bool.isRequired,isSampling:a.a.bool.isRequired,isAutoPreviewing:a.a.bool.isRequired,setIsModified:a.a.func.isRequired,name:a.a.string,editViewName:a.a.string,updateView:a.a.func.isRequired,collationCollapseToggled:a.a.func.isRequired,isCollationExpanded:a.a.bool.isRequired,isOverviewOn:a.a.bool.isRequired,toggleOverview:a.a.func.isRequired,toggleSettingsIsExpanded:a.a.func.isRequired,isFullscreenOn:a.a.bool.isRequired,toggleFullscreen:a.a.func.isRequired,savingPipelineOpen:a.a.func.isRequired,serverVersion:a.a.string.isRequired,openCreateView:a.a.func.isRequired}),Bc(Lc,"defaultProps",{savedPipeline:{isNameValid:!0}});var Mc=Lc,Ic=n(100),Nc={insert:"head",singleton:!1},$c=(Ne()(Ic.a,Nc),Ic.a.locals||{});function jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Vc extends r.PureComponent{constructor(...e){super(...e),jc(this,"state",{hasFocus:!1}),jc(this,"onCollationChange",e=>{this.props.collationStringChanged(e.target.value),this.props.collationChanged(e.target.value)}),jc(this,"_onFocus",()=>{this.setState({hasFocus:!0})}),jc(this,"_onBlur",()=>{this.setState({hasFocus:!1})})}render(){return s.a.createElement("div",{className:fe()($c["collation-toolbar"])},s.a.createElement("div",{onBlur:this._onBlur,onFocus:this._onFocus,className:fe()($c["collation-toolbar-input-wrapper"],{[$c["has-focus"]]:this.state.hasFocus})},s.a.createElement("div",{className:fe()($c["collation-toolbar-input-label"],{[$c["has-error"]]:!1===this.props.collation}),"data-test-id":"collation-toolbar-input-label"},s.a.createElement(Xe.InfoSprinkle,{helpLink:"https://docs.mongodb.com/master/reference/collation/",onClickHandler:this.props.openLink}),"Collation"),s.a.createElement("input",{placeholder:"{ locale: 'simple' }",type:"text",onChange:this.onCollationChange,value:this.props.collationString})))}}jc(Vc,"displayName","CollationToolbarComponent"),jc(Vc,"propTypes",{collation:a.a.oneOfType([a.a.bool,a.a.object]),collationChanged:a.a.func.isRequired,collationString:a.a.string,collationStringChanged:a.a.func.isRequired,openLink:a.a.func.isRequired}),jc(Vc,"defaultProps",{collation:{},collationString:""});var zc=Vc,Wc=n(9);function Uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Hc extends r.Component{constructor(...e){super(...e),Uc(this,"onRestorePipelineModalToggle",()=>{this.props.restorePipelineModalToggle(0)}),Uc(this,"openPipeline",()=>{this.props.getPipelineFromIndexedDB(this.props.restorePipeline.pipelineObjectID)})}render(){return s.a.createElement(Wc.ConfirmationModal,{title:"Are you sure you want to open this pipeline?",open:this.props.restorePipeline.isModalVisible,onConfirm:this.openPipeline,onCancel:this.onRestorePipelineModalToggle,buttonText:"Open Pipeline"},"Opening this project will abandon ",s.a.createElement("b",null,"unsaved")," changes to the current pipeline you are building.")}}Uc(Hc,"displayName","RestorePipelineModalComponent"),Uc(Hc,"propTypes",{restorePipelineModalToggle:a.a.func.isRequired,getPipelineFromIndexedDB:a.a.func.isRequired,restorePipeline:a.a.object.isRequired});var qc=Hc,Kc=n(101),Gc={insert:"head",singleton:!1},Xc=(Ne()(Kc.a,Gc),Kc.a.locals||{});function Jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yc={enableLiveAutocompletion:!1,tabSize:2,fontSize:11,minLines:10,maxLines:1/0,showGutter:!0,useWorker:!1};class Qc extends r.PureComponent{renderError(){if(this.props.error)return s.a.createElement("div",{className:Xc["import-pipeline-error"]},this.props.error)}render(){return s.a.createElement(Wc.ConfirmationModal,{title:"New Pipeline From Plain Text",open:this.props.isOpen,onConfirm:this.props.createNew,onCancel:this.props.closeImport,buttonText:"Create New",submitDisabled:""===this.props.text},s.a.createElement("div",{className:Xc["import-pipeline-note"]},"Supports MongoDB Shell syntax. Pasting a pipeline will create a new pipeline."),s.a.createElement("div",{className:Xc["import-pipeline-editor"]},s.a.createElement(gi.a,{mode:"mongodb",theme:"mongodb",width:"100%",value:this.props.text,onChange:this.props.changeText,editorProps:{$blockScrolling:1/0},name:"import-pipeline-editor",setOptions:Yc})),this.renderError())}}Jc(Qc,"displayName","ImportPipelineComponent"),Jc(Qc,"propTypes",{isOpen:a.a.bool.isRequired,closeImport:a.a.func.isRequired,changeText:a.a.func.isRequired,createNew:a.a.func.isRequired,text:a.a.string.isRequired,error:a.a.string});var Zc=Qc,eh=n(102),th={insert:"head",singleton:!1},nh=(Ne()(eh.a,th),eh.a.locals||{});function ih(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class rh extends r.PureComponent{constructor(...e){super(...e),ih(this,"onConfirm",()=>{this.props.confirmNew(),this.props.isAutoPreviewing&&this.props.runStage(0)})}render(){return s.a.createElement(Wc.ConfirmationModal,{title:"Are you sure you want to create a new pipeline?",open:this.props.isConfirmationNeeded,onConfirm:this.onConfirm,onCancel:this.props.closeImport,buttonText:"Confirm"},s.a.createElement("div",{className:nh["confirm-import-pipeline-note"]},"Creating this pipeline will abandon unsaved changes to the current pipeline."))}}ih(rh,"displayName","ConfirmImportPipelineComponent"),ih(rh,"propTypes",{isConfirmationNeeded:a.a.bool.isRequired,isAutoPreviewing:a.a.bool.isRequired,closeImport:a.a.func.isRequired,confirmNew:a.a.func.isRequired,runStage:a.a.func.isRequired});var sh=rh;function oh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ah extends r.PureComponent{onNameChanged(e){this.props.savingPipelineNameChanged(e.currentTarget.value)}onSubmit(e){e.preventDefault(),e.stopPropagation(),this.save()}save(){this.props.isSaveAs&&this.props.clonePipeline(),this.props.savingPipelineApply(),this.props.saveCurrentPipeline()}render(){const e=this.props.isSaveAs?"Save Pipeline As...":"Save Pipeline";return s.a.createElement(Wc.ConfirmationModal,{title:e,open:this.props.isOpen,onConfirm:this.save.bind(this),onCancel:this.props.savingPipelineCancel,buttonText:"Save",submitDisabled:""===this.props.name},s.a.createElement("form",{onSubmit:this.onSubmit.bind(this)},s.a.createElement("input",{type:"text",value:this.props.name,onChange:this.onNameChanged.bind(this),className:"form-control input-lg",placeholder:"Untitled"})))}}oh(ah,"displayName","SavingPipelineModalComponent"),oh(ah,"propTypes",{isOpen:a.a.bool.isRequired,isSaveAs:a.a.bool.isRequired,name:a.a.string.isRequired,savingPipelineCancel:a.a.func.isRequired,savingPipelineApply:a.a.func.isRequired,savingPipelineNameChanged:a.a.func.isRequired,saveCurrentPipeline:a.a.func.isRequired,clonePipeline:a.a.func.isRequired});var lh=ah,uh=n(103),ch={insert:"head",singleton:!1},hh=(Ne()(uh.a,ch),uh.a.locals||{});function ph(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class dh extends r.PureComponent{constructor(...e){super(...e),ph(this,"onConfirm",()=>{this.props.newPipeline(),this.onClose()}),ph(this,"onClose",()=>{this.props.setIsNewPipelineConfirm(!1)})}render(){return s.a.createElement(Wc.ConfirmationModal,{title:"Are you sure you want to create a new pipeline?",open:this.props.isNewPipelineConfirm,onConfirm:this.onConfirm,onCancel:this.onClose,buttonText:"Confirm"},s.a.createElement("div",{className:hh["confirm-new-pipeline-note"]},"Creating this pipeline will abandon unsaved changes to the current pipeline."))}}ph(dh,"displayName","ConfirmNewPipelineComponent"),ph(dh,"propTypes",{isNewPipelineConfirm:a.a.bool.isRequired,setIsNewPipelineConfirm:a.a.func.isRequired,newPipeline:a.a.func.isRequired});var fh=dh,gh=n(104),mh={insert:"head",singleton:!1},vh=(Ne()(gh.a,mh),gh.a.locals||{});function yh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class bh extends r.PureComponent{renderCollationToolbar(){return this.props.isCollationExpanded?s.a.createElement(zc,{collation:this.props.collation,collationChanged:this.props.collationChanged,collationString:this.props.collationString,collationStringChanged:this.props.collationStringChanged,openLink:this.props.openLink}):null}renderModifyingViewSourceError(){if(this.props.updateViewError)return s.a.createElement(me.a,{variant:"danger",dismissible:!0,onClose:this.props.dismissViewError},this.props.updateViewError)}renderRestoreModal(){return this.props.restorePipeline.isModalVisible?s.a.createElement(qc,{restorePipelineModalToggle:this.props.restorePipelineModalToggle,getPipelineFromIndexedDB:this.props.getPipelineFromIndexedDB,restorePipeline:this.props.restorePipeline}):null}renderSavePipeline(){if(!this.props.isAtlasDeployed)return s.a.createElement(Yu,{restorePipelineModalToggle:this.props.restorePipelineModalToggle,restorePipelineFrom:this.props.restorePipelineFrom,deletePipeline:this.props.deletePipeline,savedPipelinesListToggle:this.props.savedPipelinesListToggle,savedPipeline:this.props.savedPipeline})}render(){const e=s.a.createElement(Zc,{isOpen:this.props.isImportPipelineOpen,closeImport:this.props.closeImport,changeText:this.props.changeText,createNew:this.props.createNew,error:this.props.importPipelineError,text:this.props.importPipelineText}),t=s.a.createElement(sh,{isConfirmationNeeded:this.props.isImportConfirmationNeeded,closeImport:this.props.closeImport,isAutoPreviewing:this.props.isAutoPreviewing,runStage:this.props.runStage,confirmNew:this.props.confirmNew}),n=s.a.createElement(fh,{isNewPipelineConfirm:this.props.isNewPipelineConfirm,setIsNewPipelineConfirm:this.props.setIsNewPipelineConfirm,newPipeline:this.props.newPipeline}),i=s.a.createElement(lh,{name:this.props.savingPipeline.name,isOpen:this.props.savingPipeline.isOpen,isSaveAs:this.props.savingPipeline.isSaveAs,saveCurrentPipeline:this.props.saveCurrentPipeline,savingPipelineNameChanged:this.props.savingPipelineNameChanged,savingPipelineApply:this.props.savingPipelineApply,savingPipelineCancel:this.props.savingPipelineCancel,savingPipelineOpen:this.props.savingPipelineOpen,clonePipeline:this.props.clonePipeline});return s.a.createElement("div",{className:fe()(vh.pipeline,!!this.props.isFullscreenOn&&vh["pipeline-fullscreen"])},s.a.createElement(Mc,{isAtlasDeployed:this.props.isAtlasDeployed,savedPipelinesListToggle:this.props.savedPipelinesListToggle,updateView:this.props.updateView,getSavedPipelines:this.props.getSavedPipelines,exportToLanguage:this.props.exportToLanguage,saveCurrentPipeline:this.props.saveCurrentPipeline,savedPipeline:this.props.savedPipeline,newPipelineFromText:this.props.newPipelineFromText,clonePipeline:this.props.clonePipeline,toggleComments:this.props.toggleComments,toggleSample:this.props.toggleSample,toggleAutoPreview:this.props.toggleAutoPreview,nameChanged:this.props.nameChanged,setIsModified:this.props.setIsModified,editViewName:this.props.editViewName,isModified:this.props.isModified,isCommenting:this.props.isCommenting,isSampling:this.props.isSampling,isAutoPreviewing:this.props.isAutoPreviewing,collationCollapseToggled:this.props.collationCollapseToggled,isCollationExpanded:this.props.isCollationExpanded,name:this.props.name,isOverviewOn:this.props.isOverviewOn,toggleOverview:this.props.toggleOverview,toggleSettingsIsExpanded:this.props.toggleSettingsIsExpanded,isFullscreenOn:this.props.isFullscreenOn,toggleFullscreen:this.props.toggleFullscreen,savingPipelineOpen:this.props.savingPipelineOpen,serverVersion:this.props.serverVersion,openCreateView:this.props.openCreateView,setIsNewPipelineConfirm:this.props.setIsNewPipelineConfirm}),this.renderCollationToolbar(),this.renderModifyingViewSourceError(),s.a.createElement(ku,this.props),this.renderSavePipeline(),s.a.createElement(ic,{isAtlasDeployed:this.props.isAtlasDeployed,isExpanded:this.props.settings.isExpanded,toggleSettingsIsExpanded:this.props.toggleSettingsIsExpanded,toggleSettingsIsCommentMode:this.props.toggleSettingsIsCommentMode,setSettingsSampleSize:this.props.setSettingsSampleSize,setSettingsMaxTimeMS:this.props.setSettingsMaxTimeMS,setSettingsLimit:this.props.setSettingsLimit,isCommenting:this.props.isCommenting,toggleComments:this.props.toggleComments,limit:this.props.limit,largeLimit:this.props.largeLimit,maxTimeMS:this.props.maxTimeMS,applySettings:this.props.applySettings,runStage:this.props.runStage,settings:this.props.settings}),this.renderRestoreModal(),e,t,i,n)}}yh(bh,"displayName","PipelineComponent"),yh(bh,"propTypes",{allowWrites:a.a.bool.isRequired,env:a.a.string.isRequired,isAtlasDeployed:a.a.bool.isRequired,getPipelineFromIndexedDB:a.a.func.isRequired,savedPipelinesListToggle:a.a.func.isRequired,getSavedPipelines:a.a.func.isRequired,toggleComments:a.a.func.isRequired,toggleSample:a.a.func.isRequired,toggleAutoPreview:a.a.func.isRequired,restorePipelineModalToggle:a.a.func.isRequired,restorePipelineFrom:a.a.func.isRequired,restorePipeline:a.a.object.isRequired,deletePipeline:a.a.func.isRequired,pipeline:a.a.array.isRequired,serverVersion:a.a.string.isRequired,stageAdded:a.a.func.isRequired,stageAddedAfter:a.a.func.isRequired,stageChanged:a.a.func.isRequired,stageCollapseToggled:a.a.func.isRequired,stageDeleted:a.a.func.isRequired,stageMoved:a.a.func.isRequired,stageOperatorSelected:a.a.func.isRequired,stageToggled:a.a.func.isRequired,savedPipeline:a.a.object.isRequired,saveCurrentPipeline:a.a.func.isRequired,newPipeline:a.a.func.isRequired,newPipelineFromText:a.a.func.isRequired,closeImport:a.a.func.isRequired,clonePipeline:a.a.func.isRequired,changeText:a.a.func.isRequired,createNew:a.a.func.isRequired,confirmNew:a.a.func.isRequired,runStage:a.a.func.isRequired,importPipelineText:a.a.string.isRequired,exportToLanguage:a.a.func.isRequired,fields:a.a.array.isRequired,nameChanged:a.a.func.isRequired,isModified:a.a.bool.isRequired,isCommenting:a.a.bool.isRequired,isSampling:a.a.bool.isRequired,isAutoPreviewing:a.a.bool.isRequired,isImportPipelineOpen:a.a.bool.isRequired,isImportConfirmationNeeded:a.a.bool.isRequired,setIsModified:a.a.func.isRequired,gotoOutResults:a.a.func.isRequired,gotoMergeResults:a.a.func.isRequired,name:a.a.string,dismissViewError:a.a.func.isRequired,editViewName:a.a.string,updateView:a.a.func.isRequired,updateViewError:a.a.string,importPipelineError:a.a.string,collation:a.a.oneOfType([a.a.bool,a.a.object]),collationChanged:a.a.func.isRequired,collationString:a.a.string,collationStringChanged:a.a.func.isRequired,openLink:a.a.func.isRequired,collationCollapseToggled:a.a.func.isRequired,isCollationExpanded:a.a.bool.isRequired,isOverviewOn:a.a.bool.isRequired,toggleOverview:a.a.func.isRequired,settings:a.a.object.isRequired,toggleSettingsIsExpanded:a.a.func.isRequired,toggleSettingsIsCommentMode:a.a.func.isRequired,setSettingsSampleSize:a.a.func.isRequired,setSettingsMaxTimeMS:a.a.func.isRequired,setSettingsLimit:a.a.func.isRequired,limit:a.a.number.isRequired,largeLimit:a.a.number.isRequired,maxTimeMS:a.a.number.isRequired,applySettings:a.a.func.isRequired,isFullscreenOn:a.a.bool.isRequired,toggleFullscreen:a.a.func.isRequired,savingPipelineNameChanged:a.a.func.isRequired,savingPipelineApply:a.a.func.isRequired,savingPipelineCancel:a.a.func.isRequired,savingPipelineOpen:a.a.func.isRequired,savingPipeline:a.a.object.isRequired,projections:a.a.array.isRequired,projectionsChanged:a.a.func.isRequired,newPipelineFromPaste:a.a.func.isRequired,openCreateView:a.a.func.isRequired,isNewPipelineConfirm:a.a.bool.isRequired,setIsNewPipelineConfirm:a.a.func.isRequired}),yh(bh,"defaultProps",{projections:[],maxTimeMS:6e4,limit:20,largeLimit:1e5});var wh=bh;const xh="aggregations/namespace/NAMESPACE_CHANGED";const Ch=e=>({type:xh,namespace:e});const Eh=n(25)("mongodb-aggregations:modules:input-document"),Ah={count:0,documents:[],error:null,isExpanded:!0,isLoading:!1};var Sh=(e=Ah,t)=>"aggregations/input-documents/TOGGLE_INPUT_COLLAPSED"===t.type?{...e,isExpanded:!e.isExpanded}:"aggregations/input-documents/LOADING_INPUT_DOCUMENTS"===t.type?{...e,isLoading:!0}:"aggregations/input-documents/UPDATE_INPUT_DOCUMENTS"===t.type?{...e,count:t.count,documents:t.documents,error:t.error,isLoading:!1}:e;const Dh=(e,t,n)=>({type:"aggregations/input-documents/UPDATE_INPUT_DOCUMENTS",count:e,documents:t,error:n}),kh=()=>(e,t)=>{const n=t(),i=n.dataService.dataService,r=n.namespace,s={maxTimeMS:n.settings.maxTimeMS},o=[{$limit:n.settings.sampleSize}];i&&i.isConnected()?(e({type:"aggregations/input-documents/LOADING_INPUT_DOCUMENTS"}),i.estimatedCount(r,s,(t,n)=>{i.aggregate(r,o,s,(i,r)=>{if(i)return e(Dh(t?"N/A":n,[],i));r.toArray((i,s)=>{e(Dh(t?"N/A":n,s,i)),r.close()})})})):i&&!i.isConnected()&&Eh("warning: trying to refresh aggregation but dataService is disconnected",i)},Fh=n(240);function _h(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Th="function"==typeof Symbol&&Symbol.observable||"@@observable",Oh=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ph={INIT:"@@redux/INIT"+Oh(),REPLACE:"@@redux/REPLACE"+Oh(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Oh()}};function Rh(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Bh(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(_h(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(_h(1));return n(Bh)(e,t)}if("function"!=typeof e)throw new Error(_h(2));var r=e,s=t,o=[],a=o,l=!1;function u(){a===o&&(a=o.slice())}function c(){if(l)throw new Error(_h(3));return s}function h(e){if("function"!=typeof e)throw new Error(_h(4));if(l)throw new Error(_h(5));var t=!0;return u(),a.push(e),function(){if(t){if(l)throw new Error(_h(6));t=!1,u();var n=a.indexOf(e);a.splice(n,1),o=null}}}function p(e){if(!Rh(e))throw new Error(_h(7));if(void 0===e.type)throw new Error(_h(8));if(l)throw new Error(_h(9));try{l=!0,s=r(s,e)}finally{l=!1}for(var t=o=a,n=0;n<t.length;n++){(0,t[n])()}return e}function d(e){if("function"!=typeof e)throw new Error(_h(10));r=e,p({type:Ph.REPLACE})}function f(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(_h(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Th]=function(){return this},e}return p({type:Ph.INIT}),(i={dispatch:p,subscribe:h,getState:c,replaceReducer:d})[Th]=f,i}function Lh(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];0,"function"==typeof e[r]&&(n[r]=e[r])}var s,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:Ph.INIT}))throw new Error(_h(12));if(void 0===n(void 0,{type:Ph.PROBE_UNKNOWN_ACTION()}))throw new Error(_h(13))}))}(n)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var i=!1,r={},a=0;a<o.length;a++){var l=o[a],u=n[l],c=e[l],h=u(c,t);if(void 0===h){t&&t.type;throw new Error(_h(14))}r[l]=h,i=i||h!==c}return(i=i||o.length!==Object.keys(e).length)?r:e}}function Mh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Ih(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error(_h(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map((function(e){return e(r)}));return i=Mh.apply(void 0,s)(n.dispatch),bs(bs({},n),{},{dispatch:i})}}}const Nh={error:null,dataService:null};function $h(e=Nh,t){return"aggregations/data-service/DATA_SERVICE_CONNECTED"===t.type?{error:t.error,dataService:t.dataService}:e}const jh=(e,t)=>({type:"aggregations/data-service/DATA_SERVICE_CONNECTED",error:e,dataService:t}),Vh=[];const zh=Sn.ON_PREM;const Wh=e=>({type:"aggregations/is-modified/SET_IS_MODIFIED",isModified:e});const Uh="aggregations/allow-writes/ALLOW_WRITES";const Hh={pipelines:[],isLoaded:!1,isListVisible:!1},qh={};qh["aggregations/saved-pipeline/LIST_TOGGLED"]=(e,t)=>{const n=(e=>Object.assign({},e))(e);return n.isListVisible=!!t.index,n},qh["aggregations/saved-pipeline/ADD"]=(e,t)=>({...e,pipelines:t.pipelines,isLoaded:!0});const Kh=e=>({type:"aggregations/saved-pipeline/ADD",pipelines:e}),Gh=()=>{const{remote:e}=n(137),t=n(29),i=e.app.getPath("userData");return t.join(i,"SavedPipelines")},Xh=()=>(e,t)=>{const i=n(138),r=n(40),s=n(29),o=t(),a=[],l=Gh();r.readdir(l,(t,n)=>{if(!t){const t=n.filter(e=>e.endsWith(".json")).map(e=>t=>{r.readFile(s.join(l,e),"utf8",(e,n)=>{if(!e){const e=JSON.parse(n);e.namespace===o.namespace&&a.push(e)}t(null)})});i.parallel(t,()=>{e(Wh(!1)),e(Kh(a)),e(Object(Dn.globalAppRegistryEmit)("agg-pipeline-saved",{name:o.name}))})}})},Jh={isModalVisible:!1,pipelineObjectID:""};var Yh=n(2);function Qh(e){return"✖"===e.name}function Zh(){}var ep=function(e,t){if(void 0===t&&(t={}),this.toks=this.constructor.BaseParser.tokenizer(e,t),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:Yh.tokTypes.eof,start:0,end:0},this.tok.validateRegExpFlags=Zh,this.tok.validateRegExpPattern=Zh,this.options.locations){var n=this.toks.curPosition();this.tok.loc=new Yh.SourceLocation(this.toks,n,n)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};ep.prototype.startNode=function(){return new Yh.Node(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)},ep.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start},ep.prototype.startNodeAt=function(e){return this.options.locations?new Yh.Node(this.toks,e[0],e[1]):new Yh.Node(this.toks,e)},ep.prototype.finishNode=function(e,t){return e.type=t,e.end=this.last.end,this.options.locations&&(e.loc.end=this.last.loc.end),this.options.ranges&&(e.range[1]=this.last.end),e},ep.prototype.dummyNode=function(e){var t=this.startNode();return t.type=e,t.end=t.start,this.options.locations&&(t.loc.end=t.loc.start),this.options.ranges&&(t.range[1]=t.start),this.last={type:Yh.tokTypes.name,start:t.start,end:t.start,loc:t.loc},t},ep.prototype.dummyIdent=function(){var e=this.dummyNode("Identifier");return e.name="✖",e},ep.prototype.dummyString=function(){var e=this.dummyNode("Literal");return e.value=e.raw="✖",e},ep.prototype.eat=function(e){return this.tok.type===e&&(this.next(),!0)},ep.prototype.isContextual=function(e){return this.tok.type===Yh.tokTypes.name&&this.tok.value===e},ep.prototype.eatContextual=function(e){return this.tok.value===e&&this.eat(Yh.tokTypes.name)},ep.prototype.canInsertSemicolon=function(){return this.tok.type===Yh.tokTypes.eof||this.tok.type===Yh.tokTypes.braceR||Yh.lineBreak.test(this.input.slice(this.last.end,this.tok.start))},ep.prototype.semicolon=function(){return this.eat(Yh.tokTypes.semi)},ep.prototype.expect=function(e){if(this.eat(e))return!0;for(var t=1;t<=2;t++)if(this.lookAhead(t).type===e){for(var n=0;n<t;n++)this.next();return!0}},ep.prototype.pushCx=function(){this.context.push(this.curIndent)},ep.prototype.popCx=function(){this.curIndent=this.context.pop()},ep.prototype.lineEnd=function(e){for(;e<this.input.length&&!Object(Yh.isNewLine)(this.input.charCodeAt(e));)++e;return e},ep.prototype.indentationAfter=function(e){for(var t=0;;++e){var n=this.input.charCodeAt(e);if(32===n)++t;else{if(9!==n)return t;t+=this.options.tabSize}}},ep.prototype.closes=function(e,t,n,i){return this.tok.type===e||this.tok.type===Yh.tokTypes.eof||n!==this.curLineStart&&this.curIndent<t&&this.tokenStartsLine()&&(!i||this.nextLineStart>=this.input.length||this.indentationAfter(this.nextLineStart)<t)},ep.prototype.tokenStartsLine=function(){for(var e=this.tok.start-1;e>=this.curLineStart;--e){var t=this.input.charCodeAt(e);if(9!==t&&32!==t)return!1}return!0},ep.prototype.extend=function(e,t){this[e]=t(this[e])},ep.prototype.parse=function(){return this.next(),this.parseTopLevel()},ep.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,i=0;i<e.length;i++)n=e[i](n);return n},ep.parse=function(e,t){return new this(e,t).parse()},ep.BaseParser=Yh.Parser;var tp=ep.prototype;function np(e){return e<14&&e>8||32===e||160===e||Object(Yh.isNewLine)(e)}tp.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}},tp.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===Yh.tokTypes.dot&&"."===this.input.substr(this.toks.end,1)&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=Yh.tokTypes.ellipsis),new Yh.Token(this.toks)}catch(s){if(!(s instanceof SyntaxError))throw s;var e=s.message,t=s.raisedAt,n=!0;if(/unterminated/i.test(e))if(t=this.lineEnd(s.pos+1),/string/.test(e))n={start:s.pos,end:t,type:Yh.tokTypes.string,value:this.input.slice(s.pos+1,t)};else if(/regular expr/i.test(e)){var i=this.input.slice(s.pos,t);try{i=new RegExp(i)}catch(e){}n={start:s.pos,end:t,type:Yh.tokTypes.regexp,value:i}}else n=!!/template/.test(e)&&{start:s.pos,end:t,type:Yh.tokTypes.template,value:this.input.slice(s.pos,t)};else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix/i.test(e))for(;t<this.input.length&&!np(this.input.charCodeAt(t));)++t;else if(/character escape|expected hexadecimal/i.test(e))for(;t<this.input.length;){var r=this.input.charCodeAt(t++);if(34===r||39===r||Object(Yh.isNewLine)(r))break}else if(/unexpected character/i.test(e))t++,n=!1;else{if(!/regular expression/i.test(e))throw s;n=!0}if(this.resetTo(t),!0===n&&(n={start:t,end:t,type:Yh.tokTypes.name,value:"✖"}),n)return this.options.locations&&(n.loc=new Yh.SourceLocation(this.toks,Object(Yh.getLineInfo)(this.input,n.start),Object(Yh.getLineInfo)(this.input,n.end))),n}},tp.resetTo=function(e){this.toks.pos=e;var t,n=this.input.charAt(e-1);if(this.toks.exprAllowed=!n||/[[{(,;:?/*=+\-~!|&%^<>]/.test(n)||/[enwfd]/.test(n)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(e-10,e)),this.options.locations)for(this.toks.curLine=1,this.toks.lineStart=Yh.lineBreakG.lastIndex=0;(t=Yh.lineBreakG.exec(this.input))&&t.index<e;)++this.toks.curLine,this.toks.lineStart=t.index+t[0].length},tp.lookAhead=function(e){for(;e>this.ahead.length;)this.ahead.push(this.readToken());return this.ahead[e-1]};var ip=ep.prototype;ip.parseTopLevel=function(){var e=this.startNodeAt(this.options.locations?[0,Object(Yh.getLineInfo)(this.input,0)]:0);for(e.body=[];this.tok.type!==Yh.tokTypes.eof;)e.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(e.body),this.last=this.tok,e.sourceType=this.options.sourceType,this.finishNode(e,"Program")},ip.parseStatement=function(){var e,t=this.tok.type,n=this.startNode();switch(this.toks.isLet()&&(t=Yh.tokTypes._var,e="let"),t){case Yh.tokTypes._break:case Yh.tokTypes._continue:this.next();var i=t===Yh.tokTypes._break;return this.semicolon()||this.canInsertSemicolon()?n.label=null:(n.label=this.tok.type===Yh.tokTypes.name?this.parseIdent():null,this.semicolon()),this.finishNode(n,i?"BreakStatement":"ContinueStatement");case Yh.tokTypes._debugger:return this.next(),this.semicolon(),this.finishNode(n,"DebuggerStatement");case Yh.tokTypes._do:return this.next(),n.body=this.parseStatement(),n.test=this.eat(Yh.tokTypes._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(n,"DoWhileStatement");case Yh.tokTypes._for:this.next();var r=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(Yh.tokTypes.parenL),this.tok.type===Yh.tokTypes.semi)return this.parseFor(n,null);var s=this.toks.isLet();if(s||this.tok.type===Yh.tokTypes._var||this.tok.type===Yh.tokTypes._const){var o=this.parseVar(this.startNode(),!0,s?"let":this.tok.value);return 1!==o.declarations.length||this.tok.type!==Yh.tokTypes._in&&!this.isContextual("of")?this.parseFor(n,o):(this.options.ecmaVersion>=9&&this.tok.type!==Yh.tokTypes._in&&(n.await=r),this.parseForIn(n,o))}var a=this.parseExpression(!0);return this.tok.type===Yh.tokTypes._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==Yh.tokTypes._in&&(n.await=r),this.parseForIn(n,this.toAssignable(a))):this.parseFor(n,a);case Yh.tokTypes._function:return this.next(),this.parseFunction(n,!0);case Yh.tokTypes._if:return this.next(),n.test=this.parseParenExpression(),n.consequent=this.parseStatement(),n.alternate=this.eat(Yh.tokTypes._else)?this.parseStatement():null,this.finishNode(n,"IfStatement");case Yh.tokTypes._return:return this.next(),this.eat(Yh.tokTypes.semi)||this.canInsertSemicolon()?n.argument=null:(n.argument=this.parseExpression(),this.semicolon()),this.finishNode(n,"ReturnStatement");case Yh.tokTypes._switch:var l,u=this.curIndent,c=this.curLineStart;for(this.next(),n.discriminant=this.parseParenExpression(),n.cases=[],this.pushCx(),this.expect(Yh.tokTypes.braceL);!this.closes(Yh.tokTypes.braceR,u,c,!0);)if(this.tok.type===Yh.tokTypes._case||this.tok.type===Yh.tokTypes._default){var h=this.tok.type===Yh.tokTypes._case;l&&this.finishNode(l,"SwitchCase"),n.cases.push(l=this.startNode()),l.consequent=[],this.next(),l.test=h?this.parseExpression():null,this.expect(Yh.tokTypes.colon)}else l||(n.cases.push(l=this.startNode()),l.consequent=[],l.test=null),l.consequent.push(this.parseStatement());return l&&this.finishNode(l,"SwitchCase"),this.popCx(),this.eat(Yh.tokTypes.braceR),this.finishNode(n,"SwitchStatement");case Yh.tokTypes._throw:return this.next(),n.argument=this.parseExpression(),this.semicolon(),this.finishNode(n,"ThrowStatement");case Yh.tokTypes._try:if(this.next(),n.block=this.parseBlock(),n.handler=null,this.tok.type===Yh.tokTypes._catch){var p=this.startNode();this.next(),this.eat(Yh.tokTypes.parenL)?(p.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(Yh.tokTypes.parenR)):p.param=null,p.body=this.parseBlock(),n.handler=this.finishNode(p,"CatchClause")}return n.finalizer=this.eat(Yh.tokTypes._finally)?this.parseBlock():null,n.handler||n.finalizer?this.finishNode(n,"TryStatement"):n.block;case Yh.tokTypes._var:case Yh.tokTypes._const:return this.parseVar(n,!1,e||this.tok.value);case Yh.tokTypes._while:return this.next(),n.test=this.parseParenExpression(),n.body=this.parseStatement(),this.finishNode(n,"WhileStatement");case Yh.tokTypes._with:return this.next(),n.object=this.parseParenExpression(),n.body=this.parseStatement(),this.finishNode(n,"WithStatement");case Yh.tokTypes.braceL:return this.parseBlock();case Yh.tokTypes.semi:return this.next(),this.finishNode(n,"EmptyStatement");case Yh.tokTypes._class:return this.parseClass(!0);case Yh.tokTypes._import:if(this.options.ecmaVersion>10){var d=this.lookAhead(1).type;if(d===Yh.tokTypes.parenL||d===Yh.tokTypes.dot)return n.expression=this.parseExpression(),this.semicolon(),this.finishNode(n,"ExpressionStatement")}return this.parseImport();case Yh.tokTypes._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(n,!0,!0);var f=this.parseExpression();return Qh(f)?(this.next(),this.tok.type===Yh.tokTypes.eof?this.finishNode(n,"EmptyStatement"):this.parseStatement()):t===Yh.tokTypes.name&&"Identifier"===f.type&&this.eat(Yh.tokTypes.colon)?(n.body=this.parseStatement(),n.label=f,this.finishNode(n,"LabeledStatement")):(n.expression=f,this.semicolon(),this.finishNode(n,"ExpressionStatement"))}},ip.parseBlock=function(){var e=this.startNode();this.pushCx(),this.expect(Yh.tokTypes.braceL);var t=this.curIndent,n=this.curLineStart;for(e.body=[];!this.closes(Yh.tokTypes.braceR,t,n,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(Yh.tokTypes.braceR),this.finishNode(e,"BlockStatement")},ip.parseFor=function(e,t){return e.init=t,e.test=e.update=null,this.eat(Yh.tokTypes.semi)&&this.tok.type!==Yh.tokTypes.semi&&(e.test=this.parseExpression()),this.eat(Yh.tokTypes.semi)&&this.tok.type!==Yh.tokTypes.parenR&&(e.update=this.parseExpression()),this.popCx(),this.expect(Yh.tokTypes.parenR),e.body=this.parseStatement(),this.finishNode(e,"ForStatement")},ip.parseForIn=function(e,t){var n=this.tok.type===Yh.tokTypes._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=t,e.right=this.parseExpression(),this.popCx(),this.expect(Yh.tokTypes.parenR),e.body=this.parseStatement(),this.finishNode(e,n)},ip.parseVar=function(e,t,n){e.kind=n,this.next(),e.declarations=[];do{var i=this.startNode();i.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),i.init=this.eat(Yh.tokTypes.eq)?this.parseMaybeAssign(t):null,e.declarations.push(this.finishNode(i,"VariableDeclarator"))}while(this.eat(Yh.tokTypes.comma));if(!e.declarations.length){var r=this.startNode();r.id=this.dummyIdent(),e.declarations.push(this.finishNode(r,"VariableDeclarator"))}return t||this.semicolon(),this.finishNode(e,"VariableDeclaration")},ip.parseClass=function(e){var t=this.startNode();this.next(),this.tok.type===Yh.tokTypes.name?t.id=this.parseIdent():t.id=!0===e?this.dummyIdent():null,t.superClass=this.eat(Yh.tokTypes._extends)?this.parseExpression():null,t.body=this.startNode(),t.body.body=[],this.pushCx();var n=this.curIndent+1,i=this.curLineStart;for(this.eat(Yh.tokTypes.braceL),this.curIndent+1<n&&(n=this.curIndent,i=this.curLineStart);!this.closes(Yh.tokTypes.braceR,n,i);){var r=this.parseClassElement();r&&t.body.body.push(r)}return this.popCx(),this.eat(Yh.tokTypes.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.semicolon(),this.finishNode(t.body,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},ip.parseClassElement=function(){if(this.eat(Yh.tokTypes.semi))return null;var e=this.options,t=e.ecmaVersion,n=e.locations,i=this.curIndent,r=this.curLineStart,s=this.startNode(),o="",a=!1,l=!1,u="method";if(s.static=!1,this.eatContextual("static")&&(this.isClassElementNameStart()||this.toks.type===Yh.tokTypes.star?s.static=!0:o="static"),!o&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.toks.type!==Yh.tokTypes.star||this.canInsertSemicolon()?o="async":l=!0),!o){a=this.eat(Yh.tokTypes.star);var c=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?u=c:o=c)}if(o)s.computed=!1,s.key=this.startNodeAt(n?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),s.key.name=o,this.finishNode(s.key,"Identifier");else if(this.parseClassElementName(s),Qh(s.key))return Qh(this.parseMaybeAssign())&&this.next(),this.eat(Yh.tokTypes.comma),null;if(t<13||this.toks.type===Yh.tokTypes.parenL||"method"!==u||a||l){var h=!s.computed&&!s.static&&!a&&!l&&"method"===u&&("Identifier"===s.key.type&&"constructor"===s.key.name||"Literal"===s.key.type&&"constructor"===s.key.value);s.kind=h?"constructor":u,s.value=this.parseMethod(a,l),this.finishNode(s,"MethodDefinition")}else{if(this.eat(Yh.tokTypes.eq))if(this.curLineStart!==r&&this.curIndent<=i&&this.tokenStartsLine())s.value=null;else{var p=this.inAsync,d=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,s.value=this.parseMaybeAssign(),this.inAsync=p,this.inGenerator=d}else s.value=null;this.semicolon(),this.finishNode(s,"PropertyDefinition")}return s},ip.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()},ip.parseClassElementName=function(e){this.toks.type===Yh.tokTypes.privateId?(e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},ip.parseFunction=function(e,t,n){var i=this.inAsync,r=this.inGenerator,s=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=6&&(e.generator=this.eat(Yh.tokTypes.star)),this.options.ecmaVersion>=8&&(e.async=!!n),this.tok.type===Yh.tokTypes.name?e.id=this.parseIdent():!0===t&&(e.id=this.dummyIdent()),this.inAsync=e.async,this.inGenerator=e.generator,this.inFunction=!0,e.params=this.parseFunctionParams(),e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body),this.inAsync=i,this.inGenerator=r,this.inFunction=s,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},ip.parseExport=function(){var e=this.startNode();if(this.next(),this.eat(Yh.tokTypes.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?e.exported=this.parseExprAtom():e.exported=null),e.source=this.eatContextual("from")?this.parseExprAtom():this.dummyString(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(Yh.tokTypes._default)){var t;if(this.tok.type===Yh.tokTypes._function||(t=this.toks.isAsyncFunction())){var n=this.startNode();this.next(),t&&this.next(),e.declaration=this.parseFunction(n,"nullableID",t)}else this.tok.type===Yh.tokTypes._class?e.declaration=this.parseClass("nullableID"):(e.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(e,"ExportDefaultDeclaration")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(e.declaration=this.parseStatement(),e.specifiers=[],e.source=null):(e.declaration=null,e.specifiers=this.parseExportSpecifierList(),e.source=this.eatContextual("from")?this.parseExprAtom():null,this.semicolon()),this.finishNode(e,"ExportNamedDeclaration")},ip.parseImport=function(){var e,t=this.startNode();(this.next(),this.tok.type===Yh.tokTypes.string)?(t.specifiers=[],t.source=this.parseExprAtom()):(this.tok.type===Yh.tokTypes.name&&"from"!==this.tok.value&&((e=this.startNode()).local=this.parseIdent(),this.finishNode(e,"ImportDefaultSpecifier"),this.eat(Yh.tokTypes.comma)),t.specifiers=this.parseImportSpecifiers(),t.source=this.eatContextual("from")&&this.tok.type===Yh.tokTypes.string?this.parseExprAtom():this.dummyString(),e&&t.specifiers.unshift(e));return this.semicolon(),this.finishNode(t,"ImportDeclaration")},ip.parseImportSpecifiers=function(){var e=[];if(this.tok.type===Yh.tokTypes.star){var t=this.startNode();this.next(),t.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),e.push(this.finishNode(t,"ImportNamespaceSpecifier"))}else{var n=this.curIndent,i=this.curLineStart,r=this.nextLineStart;for(this.pushCx(),this.eat(Yh.tokTypes.braceL),this.curLineStart>r&&(r=this.curLineStart);!this.closes(Yh.tokTypes.braceR,n+(this.curLineStart<=r?1:0),i);){var s=this.startNode();if(this.eat(Yh.tokTypes.star))s.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),this.finishNode(s,"ImportNamespaceSpecifier");else{if(this.isContextual("from"))break;if(s.imported=this.parseIdent(),Qh(s.imported))break;s.local=this.eatContextual("as")?this.parseIdent():s.imported,this.finishNode(s,"ImportSpecifier")}e.push(s),this.eat(Yh.tokTypes.comma)}this.eat(Yh.tokTypes.braceR),this.popCx()}return e},ip.parseExportSpecifierList=function(){var e=[],t=this.curIndent,n=this.curLineStart,i=this.nextLineStart;for(this.pushCx(),this.eat(Yh.tokTypes.braceL),this.curLineStart>i&&(i=this.curLineStart);!this.closes(Yh.tokTypes.braceR,t+(this.curLineStart<=i?1:0),n)&&!this.isContextual("from");){var r=this.startNode();if(r.local=this.parseIdent(),Qh(r.local))break;r.exported=this.eatContextual("as")?this.parseIdent():r.local,this.finishNode(r,"ExportSpecifier"),e.push(r),this.eat(Yh.tokTypes.comma)}return this.eat(Yh.tokTypes.braceR),this.popCx(),e};var rp=ep.prototype;rp.checkLVal=function(e){if(!e)return e;switch(e.type){case"Identifier":case"MemberExpression":return e;case"ParenthesizedExpression":return e.expression=this.checkLVal(e.expression),e;default:return this.dummyIdent()}},rp.parseExpression=function(e){var t=this.storeCurrentPos(),n=this.parseMaybeAssign(e);if(this.tok.type===Yh.tokTypes.comma){var i=this.startNodeAt(t);for(i.expressions=[n];this.eat(Yh.tokTypes.comma);)i.expressions.push(this.parseMaybeAssign(e));return this.finishNode(i,"SequenceExpression")}return n},rp.parseParenExpression=function(){this.pushCx(),this.expect(Yh.tokTypes.parenL);var e=this.parseExpression();return this.popCx(),this.expect(Yh.tokTypes.parenR),e},rp.parseMaybeAssign=function(e){if(this.inGenerator&&this.toks.isContextual("yield")){var t=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==Yh.tokTypes.star&&!this.tok.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(Yh.tokTypes.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")}var n=this.storeCurrentPos(),i=this.parseMaybeConditional(e);if(this.tok.type.isAssign){var r=this.startNodeAt(n);return r.operator=this.tok.value,r.left=this.tok.type===Yh.tokTypes.eq?this.toAssignable(i):this.checkLVal(i),this.next(),r.right=this.parseMaybeAssign(e),this.finishNode(r,"AssignmentExpression")}return i},rp.parseMaybeConditional=function(e){var t=this.storeCurrentPos(),n=this.parseExprOps(e);if(this.eat(Yh.tokTypes.question)){var i=this.startNodeAt(t);return i.test=n,i.consequent=this.parseMaybeAssign(),i.alternate=this.expect(Yh.tokTypes.colon)?this.parseMaybeAssign(e):this.dummyIdent(),this.finishNode(i,"ConditionalExpression")}return n},rp.parseExprOps=function(e){var t=this.storeCurrentPos(),n=this.curIndent,i=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),t,-1,e,n,i)},rp.parseExprOp=function(e,t,n,i,r,s){if(this.curLineStart!==s&&this.curIndent<r&&this.tokenStartsLine())return e;var o=this.tok.type.binop;if(null!=o&&(!i||this.tok.type!==Yh.tokTypes._in)&&o>n){var a=this.startNodeAt(t);if(a.left=e,a.operator=this.tok.value,this.next(),this.curLineStart!==s&&this.curIndent<r&&this.tokenStartsLine())a.right=this.dummyIdent();else{var l=this.storeCurrentPos();a.right=this.parseExprOp(this.parseMaybeUnary(!1),l,o,i,r,s)}return this.finishNode(a,/&&|\|\||\?\?/.test(a.operator)?"LogicalExpression":"BinaryExpression"),this.parseExprOp(a,t,n,i,r,s)}return e},rp.parseMaybeUnary=function(e){var t,n=this.storeCurrentPos();if(this.options.ecmaVersion>=8&&this.toks.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))t=this.parseAwait(),e=!0;else if(this.tok.type.prefix){var i=this.startNode(),r=this.tok.type===Yh.tokTypes.incDec;r||(e=!0),i.operator=this.tok.value,i.prefix=!0,this.next(),i.argument=this.parseMaybeUnary(!0),r&&(i.argument=this.checkLVal(i.argument)),t=this.finishNode(i,r?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===Yh.tokTypes.ellipsis){var s=this.startNode();this.next(),s.argument=this.parseMaybeUnary(e),t=this.finishNode(s,"SpreadElement")}else for(t=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(n);o.operator=this.tok.value,o.prefix=!1,o.argument=this.checkLVal(t),this.next(),t=this.finishNode(o,"UpdateExpression")}if(!e&&this.eat(Yh.tokTypes.starstar)){var a=this.startNodeAt(n);return a.operator="**",a.left=t,a.right=this.parseMaybeUnary(!1),this.finishNode(a,"BinaryExpression")}return t},rp.parseExprSubscripts=function(){var e=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),e,!1,this.curIndent,this.curLineStart)},rp.parseSubscripts=function(e,t,n,i,r){for(var s=this.options.ecmaVersion>=11,o=!1;;){if(this.curLineStart!==r&&this.curIndent<=i&&this.tokenStartsLine()){if(this.tok.type!==Yh.tokTypes.dot||this.curIndent!==i)break;--i}var a="Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon(),l=s&&this.eat(Yh.tokTypes.questionDot);if(l&&(o=!0),l&&this.tok.type!==Yh.tokTypes.parenL&&this.tok.type!==Yh.tokTypes.bracketL&&this.tok.type!==Yh.tokTypes.backQuote||this.eat(Yh.tokTypes.dot)){var u=this.startNodeAt(t);u.object=e,this.curLineStart!==r&&this.curIndent<=i&&this.tokenStartsLine()?u.property=this.dummyIdent():u.property=this.parsePropertyAccessor()||this.dummyIdent(),u.computed=!1,s&&(u.optional=l),e=this.finishNode(u,"MemberExpression")}else if(this.tok.type===Yh.tokTypes.bracketL){this.pushCx(),this.next();var c=this.startNodeAt(t);c.object=e,c.property=this.parseExpression(),c.computed=!0,s&&(c.optional=l),this.popCx(),this.expect(Yh.tokTypes.bracketR),e=this.finishNode(c,"MemberExpression")}else if(n||this.tok.type!==Yh.tokTypes.parenL){if(this.tok.type!==Yh.tokTypes.backQuote)break;var h=this.startNodeAt(t);h.tag=e,h.quasi=this.parseTemplate(),e=this.finishNode(h,"TaggedTemplateExpression")}else{var p=this.parseExprList(Yh.tokTypes.parenR);if(a&&this.eat(Yh.tokTypes.arrow))return this.parseArrowExpression(this.startNodeAt(t),p,!0);var d=this.startNodeAt(t);d.callee=e,d.arguments=p,s&&(d.optional=l),e=this.finishNode(d,"CallExpression")}}if(o){var f=this.startNodeAt(t);f.expression=e,e=this.finishNode(f,"ChainExpression")}return e},rp.parseExprAtom=function(){var e;switch(this.tok.type){case Yh.tokTypes._this:case Yh.tokTypes._super:var t=this.tok.type===Yh.tokTypes._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,t);case Yh.tokTypes.name:var n=this.storeCurrentPos(),i=this.parseIdent(),r=!1;if("async"===i.name&&!this.canInsertSemicolon()){if(this.eat(Yh.tokTypes._function))return this.parseFunction(this.startNodeAt(n),!1,!0);this.tok.type===Yh.tokTypes.name&&(i=this.parseIdent(),r=!0)}return this.eat(Yh.tokTypes.arrow)?this.parseArrowExpression(this.startNodeAt(n),[i],r):i;case Yh.tokTypes.regexp:e=this.startNode();var s=this.tok.value;return e.regex={pattern:s.pattern,flags:s.flags},e.value=s.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(e,"Literal");case Yh.tokTypes.num:case Yh.tokTypes.string:return(e=this.startNode()).value=this.tok.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===Yh.tokTypes.num&&110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal");case Yh.tokTypes._null:case Yh.tokTypes._true:case Yh.tokTypes._false:return(e=this.startNode()).value=this.tok.type===Yh.tokTypes._null?null:this.tok.type===Yh.tokTypes._true,e.raw=this.tok.type.keyword,this.next(),this.finishNode(e,"Literal");case Yh.tokTypes.parenL:var o=this.storeCurrentPos();this.next();var a=this.parseExpression();if(this.expect(Yh.tokTypes.parenR),this.eat(Yh.tokTypes.arrow)){var l=a.expressions||[a];return l.length&&Qh(l[l.length-1])&&l.pop(),this.parseArrowExpression(this.startNodeAt(o),l)}if(this.options.preserveParens){var u=this.startNodeAt(o);u.expression=a,a=this.finishNode(u,"ParenthesizedExpression")}return a;case Yh.tokTypes.bracketL:return(e=this.startNode()).elements=this.parseExprList(Yh.tokTypes.bracketR,!0),this.finishNode(e,"ArrayExpression");case Yh.tokTypes.braceL:return this.parseObj();case Yh.tokTypes._class:return this.parseClass(!1);case Yh.tokTypes._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case Yh.tokTypes._new:return this.parseNew();case Yh.tokTypes.backQuote:return this.parseTemplate();case Yh.tokTypes._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}},rp.parseExprImport=function(){var e=this.startNode(),t=this.parseIdent(!0);switch(this.tok.type){case Yh.tokTypes.parenL:return this.parseDynamicImport(e);case Yh.tokTypes.dot:return e.meta=t,this.parseImportMeta(e);default:return e.name="import",this.finishNode(e,"Identifier")}},rp.parseDynamicImport=function(e){return e.source=this.parseExprList(Yh.tokTypes.parenR)[0]||this.dummyString(),this.finishNode(e,"ImportExpression")},rp.parseImportMeta=function(e){return this.next(),e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty")},rp.parseNew=function(){var e=this.startNode(),t=this.curIndent,n=this.curLineStart,i=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Yh.tokTypes.dot))return e.meta=i,e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty");var r=this.storeCurrentPos();return e.callee=this.parseSubscripts(this.parseExprAtom(),r,!0,t,n),this.tok.type===Yh.tokTypes.parenL?e.arguments=this.parseExprList(Yh.tokTypes.parenR):e.arguments=[],this.finishNode(e,"NewExpression")},rp.parseTemplateElement=function(){var e=this.startNode();return this.tok.type===Yh.tokTypes.invalidTemplate?e.value={raw:this.tok.value,cooked:null}:e.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\r\n?/g,"\n"),cooked:this.tok.value},this.next(),e.tail=this.tok.type===Yh.tokTypes.backQuote,this.finishNode(e,"TemplateElement")},rp.parseTemplate=function(){var e=this.startNode();this.next(),e.expressions=[];var t=this.parseTemplateElement();for(e.quasis=[t];!t.tail;)this.next(),e.expressions.push(this.parseExpression()),this.expect(Yh.tokTypes.braceR)?t=this.parseTemplateElement():((t=this.startNode()).value={cooked:"",raw:""},t.tail=!0,this.finishNode(t,"TemplateElement")),e.quasis.push(t);return this.expect(Yh.tokTypes.backQuote),this.finishNode(e,"TemplateLiteral")},rp.parseObj=function(){var e=this.startNode();e.properties=[],this.pushCx();var t=this.curIndent+1,n=this.curLineStart;for(this.eat(Yh.tokTypes.braceL),this.curIndent+1<t&&(t=this.curIndent,n=this.curLineStart);!this.closes(Yh.tokTypes.braceR,t,n);){var i=this.startNode(),r=void 0,s=void 0,o=void 0;if(this.options.ecmaVersion>=9&&this.eat(Yh.tokTypes.ellipsis))i.argument=this.parseMaybeAssign(),e.properties.push(this.finishNode(i,"SpreadElement")),this.eat(Yh.tokTypes.comma);else if(this.options.ecmaVersion>=6&&(o=this.storeCurrentPos(),i.method=!1,i.shorthand=!1,r=this.eat(Yh.tokTypes.star)),this.parsePropertyName(i),this.toks.isAsyncProp(i)?(s=!0,r=this.options.ecmaVersion>=9&&this.eat(Yh.tokTypes.star),this.parsePropertyName(i)):s=!1,Qh(i.key))Qh(this.parseMaybeAssign())&&this.next(),this.eat(Yh.tokTypes.comma);else{if(this.eat(Yh.tokTypes.colon))i.kind="init",i.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===Yh.tokTypes.parenL||this.tok.type===Yh.tokTypes.braceL))i.kind="init",i.method=!0,i.value=this.parseMethod(r,s);else if(this.options.ecmaVersion>=5&&"Identifier"===i.key.type&&!i.computed&&("get"===i.key.name||"set"===i.key.name)&&this.tok.type!==Yh.tokTypes.comma&&this.tok.type!==Yh.tokTypes.braceR&&this.tok.type!==Yh.tokTypes.eq)i.kind=i.key.name,this.parsePropertyName(i),i.value=this.parseMethod(!1);else{if(i.kind="init",this.options.ecmaVersion>=6)if(this.eat(Yh.tokTypes.eq)){var a=this.startNodeAt(o);a.operator="=",a.left=i.key,a.right=this.parseMaybeAssign(),i.value=this.finishNode(a,"AssignmentExpression")}else i.value=i.key;else i.value=this.dummyIdent();i.shorthand=!0}e.properties.push(this.finishNode(i,"Property")),this.eat(Yh.tokTypes.comma)}}return this.popCx(),this.eat(Yh.tokTypes.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(e,"ObjectExpression")},rp.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(Yh.tokTypes.bracketL))return e.computed=!0,e.key=this.parseExpression(),void this.expect(Yh.tokTypes.bracketR);e.computed=!1}var t=this.tok.type===Yh.tokTypes.num||this.tok.type===Yh.tokTypes.string?this.parseExprAtom():this.parseIdent();e.key=t||this.dummyIdent()},rp.parsePropertyAccessor=function(){return this.tok.type===Yh.tokTypes.name||this.tok.type.keyword?this.parseIdent():this.tok.type===Yh.tokTypes.privateId?this.parsePrivateIdent():void 0},rp.parseIdent=function(){var e=this.tok.type===Yh.tokTypes.name?this.tok.value:this.tok.type.keyword;if(!e)return this.dummyIdent();var t=this.startNode();return this.next(),t.name=e,this.finishNode(t,"Identifier")},rp.parsePrivateIdent=function(){var e=this.startNode();return e.name=this.tok.value,this.next(),this.finishNode(e,"PrivateIdentifier")},rp.initFunction=function(e){e.id=null,e.params=[],this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},rp.toAssignable=function(e,t){if(!e||"Identifier"===e.type||"MemberExpression"===e.type&&!t);else if("ParenthesizedExpression"===e.type)this.toAssignable(e.expression,t);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if("ObjectExpression"===e.type){e.type="ObjectPattern";for(var n=0,i=e.properties;n<i.length;n+=1){var r=i[n];this.toAssignable(r,t)}}else if("ArrayExpression"===e.type)e.type="ArrayPattern",this.toAssignableList(e.elements,t);else if("Property"===e.type)this.toAssignable(e.value,t);else if("SpreadElement"===e.type)e.type="RestElement",this.toAssignable(e.argument,t);else{if("AssignmentExpression"!==e.type)return this.dummyIdent();e.type="AssignmentPattern",delete e.operator}}return e},rp.toAssignableList=function(e,t){for(var n=0,i=e;n<i.length;n+=1){var r=i[n];this.toAssignable(r,t)}return e},rp.parseFunctionParams=function(e){return e=this.parseExprList(Yh.tokTypes.parenR),this.toAssignableList(e,!0)},rp.parseMethod=function(e,t){var n=this.startNode(),i=this.inAsync,r=this.inGenerator,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=!!e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inAsync=n.async,this.inGenerator=n.generator,this.inFunction=!0,n.params=this.parseFunctionParams(),n.body=this.parseBlock(),this.toks.adaptDirectivePrologue(n.body.body),this.inAsync=i,this.inGenerator=r,this.inFunction=s,this.finishNode(n,"FunctionExpression")},rp.parseArrowExpression=function(e,t,n){var i=this.inAsync,r=this.inGenerator,s=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inAsync=e.async,this.inGenerator=!1,this.inFunction=!0,e.params=this.toAssignableList(t,!0),e.expression=this.tok.type!==Yh.tokTypes.braceL,e.expression?e.body=this.parseMaybeAssign():(e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body)),this.inAsync=i,this.inGenerator=r,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},rp.parseExprList=function(e,t){this.pushCx();var n=this.curIndent,i=this.curLineStart,r=[];for(this.next();!this.closes(e,n+1,i);)if(this.eat(Yh.tokTypes.comma))r.push(t?null:this.dummyIdent());else{var s=this.parseMaybeAssign();if(Qh(s)){if(this.closes(e,n,i))break;this.next()}else r.push(s);this.eat(Yh.tokTypes.comma)}return this.popCx(),this.eat(e)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),r},rp.parseAwait=function(){var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")},Yh.defaultOptions.tabSize=4;const{stringify:sp}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const op={"||":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},ap={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function lp(e,t){const{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);const{length:i}=t;for(let r=1;r<i;r++){const i=t[r];e.write(", "),n[i.type](i,e)}}e.write(")")}function up(e,t,n,i){const r=e.expressionsPrecedence[t.type];if(17===r)return!0;const s=e.expressionsPrecedence[n.type];return r!==s?!i&&15===r&&14===s&&"**"===n.operator||r<s:(13===r||14===r)&&("**"===t.operator&&"**"===n.operator?!i:i?op[t.operator]<=op[n.operator]:op[t.operator]<op[n.operator])}function cp(e,t,n,i){const{generator:r}=e;up(e,t,n,i)?(e.write("("),r[t.type](t,e),e.write(")")):r[t.type](t,e)}function hp(e,t,n,i){const r=t.split("\n"),s=r.length-1;if(e.write(r[0].trim()),s>0){e.write(i);for(let t=1;t<s;t++)e.write(n+r[t].trim()+i);e.write(n+r[s].trim())}}function pp(e,t,n,i){const{length:r}=t;for(let s=0;s<r;s++){const r=t[s];e.write(n),"L"===r.type[0]?e.write("// "+r.value.trim()+"\n",r):(e.write("/*"),hp(e,r.value,n,i),e.write("*/"+i))}}function dp(e,t){const{generator:n}=e,{declarations:i}=t;e.write(t.kind+" ");const{length:r}=i;if(r>0){n.VariableDeclarator(i[0],e);for(let t=1;t<r;t++)e.write(", "),n.VariableDeclarator(i[t],e)}}let fp,gp,mp,vp,yp,bp;const wp={Program(e,t){const n=t.indent.repeat(t.indentLevel),{lineEnd:i,writeComments:r}=t;r&&null!=e.comments&&pp(t,e.comments,n,i);const s=e.body,{length:o}=s;for(let e=0;e<o;e++){const o=s[e];r&&null!=o.comments&&pp(t,o.comments,n,i),t.write(n),this[o.type](o,t),t.write(i)}r&&null!=e.trailingComments&&pp(t,e.trailingComments,n,i)},BlockStatement:bp=function(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:i,writeComments:r}=t,s=n+t.indent;t.write("{");const o=e.body;if(null!=o&&o.length>0){t.write(i),r&&null!=e.comments&&pp(t,e.comments,s,i);const{length:a}=o;for(let e=0;e<a;e++){const n=o[e];r&&null!=n.comments&&pp(t,n.comments,s,i),t.write(s),this[n.type](n,t),t.write(i)}t.write(n)}else r&&null!=e.comments&&(t.write(i),pp(t,e.comments,s,i),t.write(n));r&&null!=e.trailingComments&&pp(t,e.trailingComments,s,i),t.write("}"),t.indentLevel--},ClassBody:bp,EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){const n=t.expressionsPrecedence[e.expression.type];17===n||3===n&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:i,writeComments:r}=t;t.indentLevel++;const s=n+t.indent,o=s+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+i);const{cases:a}=e,{length:l}=a;for(let e=0;e<l;e++){const n=a[e];r&&null!=n.comments&&pp(t,n.comments,s,i),n.test?(t.write(s+"case "),this[n.test.type](n.test,t),t.write(":"+i)):t.write(s+"default:"+i);const{consequent:l}=n,{length:u}=l;for(let e=0;e<u;e++){const n=l[e];r&&null!=n.comments&&pp(t,n.comments,o,i),t.write(o),this[n.type](n,t),t.write(i)}}t.indentLevel-=2,t.write(n+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){const{handler:n}=e;null==n.param?t.write(" catch "):(t.write(" catch ("),this[n.param.type](n.param,t),t.write(") ")),this[n.body.type](n.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){const{init:n}=e;"V"===n.type[0]?dp(t,n):this[n.type](n,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:fp=function(e,t){t.write(`for ${e.await?"await ":""}(`);const{left:n}=e;"V"===n.type[0]?dp(t,n):this[n.type](n,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:fp,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:gp=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),lp(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:gp,VariableDeclaration(e,t){dp(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?e.id.name+" ":""),e),e.superClass){t.write("extends ");const{superClass:n}=e,{type:i}=n,r=t.expressionsPrecedence[i];"C"===i[0]&&"l"===i[1]&&"E"===i[5]||!(17===r||r<t.expressionsPrecedence.ClassExpression)?this[n.type](n,t):(t.write("("),this[e.superClass.type](n,t),t.write(")")),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");const{specifiers:n}=e,{length:i}=n;let r=0;if(i>0){for(;r<i;){r>0&&t.write(", ");const e=n[r],i=e.type[6];if("D"===i)t.write(e.local.name,e),r++;else{if("N"!==i)break;t.write("* as "+e.local.name,e),r++}}if(r<i){for(t.write("{");;){const e=n[r],{name:s}=e.imported;if(t.write(s,e),s!==e.local.name&&t.write(" as "+e.local.name),!(++r<i))break;t.write(", ")}t.write("}")}t.write(" from ")}this.Literal(e.source,t),t.write(";")},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");const{specifiers:n}=e,{length:i}=n;if(i>0)for(let e=0;;){const r=n[e],{name:s}=r.local;if(t.write(s,r),s!==r.exported.name&&t.write(" as "+r.exported.name),!(++e<i))break;t.write(", ")}t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),t.write(";")}},ExportAllDeclaration(e,t){null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");const n=e.kind[0];"g"!==n&&"s"!==n||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),lp(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);const{params:n}=e;null!=n&&(1===n.length&&"I"===n[0].type[0]?t.write(n[0].name,n[0]):lp(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:mp=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:mp,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),cp(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:n,expressions:i}=e;t.write("`");const{length:r}=i;for(let e=0;e<r;e++){const r=i[e],s=n[e];t.write(s.value.raw,s),t.write("${"),this[r.type](r,t),t.write("}")}const s=n[n.length-1];t.write(s.value.raw,s),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){this[e.tag.type](e.tag,t),this[e.quasi.type](e.quasi,t)},ArrayExpression:yp=function(e,t){if(t.write("["),e.elements.length>0){const{elements:n}=e,{length:i}=n;for(let e=0;;){const r=n[e];if(null!=r&&this[r.type](r,t),!(++e<i)){null==r&&t.write(", ");break}t.write(", ")}}t.write("]")},ArrayPattern:yp,ObjectExpression(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:i,writeComments:r}=t,s=n+t.indent;if(t.write("{"),e.properties.length>0){t.write(i),r&&null!=e.comments&&pp(t,e.comments,s,i);const o=","+i,{properties:a}=e,{length:l}=a;for(let e=0;;){const n=a[e];if(r&&null!=n.comments&&pp(t,n.comments,s,i),t.write(s),this[n.type](n,t),!(++e<l))break;t.write(o)}t.write(i),r&&null!=e.trailingComments&&pp(t,e.trailingComments,s,i),t.write(n+"}")}else r?null!=e.comments?(t.write(i),pp(t,e.comments,s,i),null!=e.trailingComments&&pp(t,e.trailingComments,s,i),t.write(n+"}")):null!=e.trailingComments?(t.write(i),pp(t,e.trailingComments,s,i),t.write(n+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){const{properties:n}=e,{length:i}=n;for(let e=0;this[n[e].type](n[e],t),++e<i;)t.write(", ")}t.write("}")},SequenceExpression(e,t){lp(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){const{operator:n,argument:i,argument:{type:r}}=e;t.write(n);const s=up(t,i,e);s||!(n.length>1)&&("U"!==r[0]||"n"!==r[1]&&"p"!==r[1]||!i.prefix||i.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),s?(t.write(n.length>1?" (":"("),this[r](i,t),t.write(")")):this[r](i,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:vp=function(e,t){const n="in"===e.operator;n&&t.write("("),cp(t,e.left,e,!1),t.write(" "+e.operator+" "),cp(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:vp,ConditionalExpression(e,t){const{test:n}=e,i=t.expressionsPrecedence[n.type];17===i||i<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const n=t.expressionsPrecedence[e.callee.type];17===n||n<t.expressionsPrecedence.CallExpression||function(e){let t=e;for(;null!=t;){const{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),lp(t,e.arguments)},CallExpression(e,t){const n=t.expressionsPrecedence[e.callee.type];17===n||n<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),lp(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){const n=t.expressionsPrecedence[e.object.type];17===n||n<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(sp(e.value),e)},RegExpLiteral(e,t){const{regex:n}=e;t.write(`/${n.pattern}/${n.flags}`,e)}},xp={};class Cp{constructor(e){const t=null==e?xp:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:wp,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:ap,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){const{type:n}=t;if("L"===n[0]&&"n"===n[2])return this.column=0,void this.line++;if(null!=t.loc){const{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===n[0]&&"E"===n[8]||"L"===n[0]&&"i"===n[1]&&"string"==typeof t.value){const{length:t}=e;let{column:n,line:i}=this;for(let r=0;r<t;r++)"\n"===e[r]?(n=0,i++):n++;return this.column=n,void(this.line=i)}}const{length:n}=e,{lineEnd:i}=this;n>0&&(this.lineEndSize>0&&(1===i.length?e[n-1]===i:e.endsWith(i))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}function Ep(e,t){const n=new Cp(t);return n.generator[e.type](e,n),n.output}function Ap(e){const t=function(e){if(!e.body||1!==e.body.length)return;const t=e.body[0];if("ExpressionStatement"!==t.type)return;const{type:n,elements:i}=t.expression||{};if("ArrayExpression"!==n)return;if(i.find(e=>!function(e){return"ObjectExpression"===e.type&&e.properties&&1===e.properties.length}(e)))return;return i.map(e=>function(e){const{key:t,value:n}=e.properties[0];return{operator:t.name||t.value,source:Ep(n,{comments:!0,indent:" "})}}(e))}(function(e){try{return function(e,t){return ep.parse(e,t)}(e,{ecmaVersion:6})}catch(e){const t=new Error("Unable to parse the pipeline source: "+e.message);throw t.stack=e.stack,t}}(e));if(!t)throw new Error("Unable to extract pipeline stages: the provided input is not an array of objects.");return t}const Sp=n(25)("mongodb-aggregations:modules:import-pipeline"),Dp="aggregations/import-pipeline/CLOSE_IMPORT",kp="aggregations/import-pipeline/CHANGE_TEXT",Fp="aggregations/import-pipeline/CREATE_NEW",_p="aggregations/import-pipeline/CONFIRM_NEW",Tp={isOpen:!1,text:"",isConfirmationNeeded:!1,syntaxError:null},Op={"aggregations/import-pipeline/NEW_PIPELINE_FROM_TEXT":e=>({...e,isOpen:!0,text:""}),[Dp]:e=>({...e,isOpen:!1,isConfirmationNeeded:!1,syntaxError:null}),[kp]:(e,t)=>({...e,text:t.text}),[Fp]:e=>({...e,isOpen:!1,isConfirmationNeeded:!0})};const Pp=e=>{try{return Ap(e).map(e=>Rp(e.operator,e.source,null))}catch(e){return Sp(e),[Rp(null,"",e.message)]}},Rp=(e,t,n)=>({...Mn(),stageOperator:e,stage:t,isValid:!n,syntaxError:n}),Bp="aggregations/settings",Lp=Bp+"/SET_LIMIT",Mp=Bp+"/APPLY_SETTINGS",Ip={isExpanded:!1,isCommentMode:!0,isDirty:!1,sampleSize:20,maxTimeMS:6e4,limit:1e5};const Np={isOpen:!1,name:"",isSaveAs:!1};const $p=[];const jp=n(25)("mongodb-aggregations:modules:update-view");const Vp=e=>({type:"aggregations/update-view/ERROR_UPDATING_VIEW",error:""+e}),zp=()=>({type:"aggregations/update-view/DISMISS_VIEW_UPDATE_ERROR"}),Wp=n(25)("mongodb-aggregations:modules:index"),Up={appRegistry:Dn.INITIAL_STATE,allowWrites:!0,dataService:Nh,fields:Vh,inputDocuments:Ah,namespace:"",env:zh,serverVersion:"4.0.0",pipeline:In,savedPipeline:Hh,restorePipeline:Jh,name:"",collation:null,collationString:"",isCollationExpanded:!1,isAtlasDeployed:!1,isReadonly:!1,isOverviewOn:!1,comments:!0,sample:!0,autoPreview:!0,id:"",isModified:!1,importPipeline:Tp,settings:Ip,limit:20,largeLimit:1e5,maxTimeMS:6e4,isFullscreenOn:!1,savingPipeline:Np,projections:$p,outResultsFn:null,editViewName:null,sourceName:null,isNewPipelineConfirm:!1,updateViewError:null},Hp="aggregations/reset",qp=Lh({appRegistry:kn.a,allowWrites:function(e=!0,t){return t.type===Uh?t.allowWrites:e},comments:function(e=!0,t){return"aggregations/comments/TOGGLE_COMMENTS"===t.type?!e:e},sample:function(e=!0,t){return"aggregations/sample/TOGGLE_SAMPLE"===t.type?!e:e},autoPreview:function(e=!0,t){return"aggregations/autoPreview/TOGGLE_AUTO_PREVIEW"===t.type?!e:e},dataService:$h,fields:function(e=Vh,t){return"aggregations/fields/FIELDS_CHANGED"===t.type?t.fields:e},inputDocuments:Sh,namespace:function(e="",t){return t.type===xh?t.namespace:e},env:function(e=zh,t){return"aggregations/env/ENV_CHANGED"===t.type?t.env:e},serverVersion:function(e="4.0.0",t){return"aggregations/server-version/SERVER_VERSION_CHANGED"===t.type&&t.version||e},savedPipeline:function(e=Hh,t){const n=qh[t.type];return n?n(e,t):e},restorePipeline:function(e=Jh,t){return"agreggations/restore-pipeline/MODAL_TOGGLE"===t.type?{...e,isModalVisible:!!t.index}:"agreggations/restore-pipeline/OBJECT_ID"===t.type?{...e,pipelineObjectID:t.objectID}:e},pipeline:function(e,t){const n=e||[Mn()],i=$n[t.type];return i?i(n,t):n},name:function(e="",t){return"aggregations/name/NAME_CHANGED"===t.type?t.name:e},collation:function(e=null,t){return"aggregations/collation/COLLATION_CHANGED"===t.type?t.collation:e},collationString:function(e="",t){return"aggregations/collation/COLLATION_STRING_CHANGED"===t.type?t.collationString:e},isCollationExpanded:function(e=!1,t){return"aggregations/collation/COLLATION_COLLAPSE_TOGGLED"===t.type?!e:e},id:function(e="",t){return"aggregations/id/CREATE_ID"===t.type?(new Fn.ObjectId).toHexString():e},isModified:function(e=!1,t){return"aggregations/is-modified/SET_IS_MODIFIED"===t.type?t.isModified:e},isAtlasDeployed:function(e=!1,t){return"aggregations/is-atlas-deployed/SET_IS_ATLAS_DEPLOYED"===t.type?t.isAtlasDeployed:e},isReadonly:function(e=!1,t){return"aggregations/is-readonly/SET_IS_READONLY"===t.type?t.isReadonly:e},importPipeline:function(e=Tp,t){const n=Op[t.type];return n?n(e,t):e},isOverviewOn:function(e=!1){return e},settings:function(e=Ip,t){if("aggregations/settings/TOGGLE_IS_EXPANDED"===t.type){return!1==!e.isExpanded&&!0===e.isDirty?{...e,...Ip}:{...e,isExpanded:!e.isExpanded}}return"aggregations/settings/TOGGLE_COMMENT_MODE"===t.type?{...e,isCommentMode:!e.isCommentMode,isDirty:!0}:"aggregations/settings/SET_SAMPLE_SIZE"===t.type?{...e,sampleSize:t.value,isDirty:!0}:"aggregations/settings/SET_MAX_TIME_MS"===t.type?{...e,maxTimeMS:t.value,isDirty:!0}:t.type===Lp?{...e,limit:t.value,isDirty:!0}:(t.type,e)},limit:function(e=20,t){return"aggregations/limit/LIMIT_CHANGED"===t.type?t.limit:e},largeLimit:function(e=1e5,t){return"aggregations/large-limit/LARGE_LIMIT_CHANGED"===t.type?t.largeLimit:e},maxTimeMS:function(e=6e4,t){return"aggregations/max-time-ms/MAX_TIME_MS_CHANGED"===t.type?t.maxTimeMS:e},isFullscreenOn:function(e=!1,t){return"aggregations/is-fullscreen-on/TOGGLE_FULLSCREEN"===t.type?!e:e},savingPipeline:function(e=Np,t){return"aggregations/saving-pipeline/NAME_CHANGED"===t.type?{...e,name:t.name}:"aggregations/saving-pipeline/OPEN"===t.type?{...e,isOpen:!0,isSaveAs:t.isSaveAs,name:t.name}:"aggregations/saving-pipeline/CANCEL"===t.type?{...e,name:"",isOpen:!1}:e},projections:function(e=$p){return e},editViewName:function(e=null){return e},sourceName:function(e=null,t){return"aggregations/source-name/SOURCE_NAME_CHANGED"===t.type?t.sourceName:e},outResultsFn:function(e=null,t){return"aggregations/out-results-fn/OUT_RESULTS_FN_CHANGED"===t.type?t.outResultsFn:e},isNewPipelineConfirm:function(e=!1,t){return"aggregations/is-new-pipeline-confirm/SET_IS_NEW_PIPELINE_CONFIRM"===t.type?t.isNewPipelineConfirm:e},updateViewError:function(e=null,t){return"aggregations/update-view/ERROR_UPDATING_VIEW"===t.type?t.error:"aggregations/update-view/DISMISS_VIEW_UPDATE_ERROR"===t.type?null:e}}),Kp={[xh]:(e,t)=>{const n={...Up,env:e.env,sourceName:e.sourceName,isAtlasDeployed:e.isAtlasDeployed,outResultsFn:e.outResultsFn,allowWrites:e.allowWrites,serverVersion:e.serverVersion,dataService:e.dataService,appRegistry:e.appRegistry};return qp(n,t)},[Hp]:()=>({...Up}),"aggregations/RESTORE_PIPELINE":(e,t)=>{const n=t.restoreState,i=null===n.comments||void 0===n.comments||n.comments,r=null===n.sample||void 0===n.sample||n.sample,s=null===n.autoPreview||void 0===n.autoPreview||n.autoPreview;return{...Up,appRegistry:e.appRegistry,namespace:n.namespace,env:n.env,pipeline:n.pipeline,name:n.name,collation:n.collation,collationString:n.collationString,isCollationExpanded:!!n.collationString,id:n.id,comments:i,limit:n.limit,largeLimit:n.largeLimit,maxTimeMS:n.maxTimeMS,projections:n.projections,sample:r,autoPreview:s,fields:e.fields,serverVersion:e.serverVersion,dataService:e.dataService,inputDocuments:e.inputDocuments,isAtlasDeployed:e.isAtlasDeployed,allowWrites:e.allowWrites,outResultsFn:e.outResultsFn,savedPipeline:{...e.savedPipeline,isListVisible:!1},restorePipeline:{isModalVisible:!1,pipelineObjectID:""}}},"aggregations/CLEAR_PIPELINE":e=>({...e,pipeline:[],limit:20,largeLimit:1e5,maxTimeMS:6e4,isAtlasDeployed:e.isAtlasDeployed,allowWrites:e.allowWrites,outResultsFn:e.outResultsFn,savedPipeline:{...e.savedPipeline,isListVisible:!0}}),"aggregations/NEW_PIPELINE":e=>({...Up,appRegistry:e.appRegistry,namespace:e.namespace,env:e.env,fields:e.fields,serverVersion:e.serverVersion,dataService:e.dataService,isAtlasDeployed:e.isAtlasDeployed,allowWrites:e.allowWrites,outResultsFn:e.outResultsFn,inputDocuments:e.inputDocuments}),"aggregations/CLONE_PIPELINE":e=>({...e,id:(new Fn.ObjectId).toHexString(),name:e.name+" (copy)",isModified:!0}),[_p]:e=>{const t=Pp(e.importPipeline.text),n=t.length>0?t[0].syntaxError:null;return{...e,name:"",collation:{},collationString:"",isCollationExpanded:!1,id:(new Fn.ObjectId).toHexString(),pipeline:n?[]:t,importPipeline:{isOpen:!!n,isConfirmationNeeded:!1,text:n?e.importPipeline.text:"",syntaxError:n}}},"aggregations/is-overview-on/TOGGLE_OVERVIEW":e=>{const t={...e,isOverviewOn:!e.isOverviewOn};return t.pipeline&&t.pipeline.forEach(e=>{e.isExpanded=!t.isOverviewOn}),t.inputDocuments&&(t.inputDocuments.isExpanded=!t.isOverviewOn),t},[Mp]:e=>{const t={...e,limit:e.settings.sampleSize,largeLimit:e.settings.limit,comments:e.settings.isCommentMode,maxTimeMS:e.settings.maxTimeMS};return t.settings.isDirty=!1,t},"aggregations/saving-pipeline/APPLY":e=>{const t={...e,name:e.savingPipeline.name};return t.savingPipeline.isOpen=!1,t},"aggregations/projections/PROJECTIONS_CHANGED":e=>{const t={...e,projections:[]};return t.pipeline.map((e,n)=>{e.projections=En(e),e.projections.map(e=>{e.index=n,t.projections.push(e)})}),t},"aggregations/NEW_FROM_PASTE":(e,t)=>{const n=Pp(t.text),i=n.length>0?n[0].syntaxError:null;return i||e.pipeline.length>1?e:{...e,name:"",collation:{},collationString:"",isCollationExpanded:!1,id:(new Fn.ObjectId).toHexString(),pipeline:n,importPipeline:{isOpen:!1,isConfirmationNeeded:!1,text:t.text,syntaxError:i}}},"aggregations/MODIFY_VIEW":(e,t)=>{const n=t.pipeline.map(e=>Rp(Object.keys(e)[0],Object(vn.toJSString)(Object.values(e)[0]," "),null));return{...e,editViewName:t.name,isReadonly:t.isReadonly,sourceName:t.sourceName,collation:{},collationString:"",isCollationExpanded:!1,id:(new Fn.ObjectId).toHexString(),pipeline:n,importPipeline:{isOpen:!1,isConfirmationNeeded:!1,text:"",syntaxError:null}}}};var Gp=(e,t)=>{const n=Kp[t.type];return n?n(e,t):qp(e,t)};const Xp=e=>({type:"aggregations/RESTORE_PIPELINE",restoreState:e}),Jp=(e,t,n,i)=>({type:"aggregations/MODIFY_VIEW",name:e,pipeline:t,isReadonly:n,sourceName:i});var Yp=n(105),Qp={insert:"head",singleton:!1},Zp=(Ne()(Yp.a,Qp),Yp.a.locals||{});class ed extends r.Component{render(){return s.a.createElement("div",{className:Zp.aggregations},s.a.createElement(wh,this.props))}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(ed,"displayName","AggregationsComponent");var td=pe(e=>({allowWrites:e.allowWrites,fields:e.fields,inputDocuments:e.inputDocuments,namespace:e.namespace,env:e.env,serverVersion:e.serverVersion,pipeline:e.pipeline,savedPipeline:e.savedPipeline,restorePipeline:e.restorePipeline,name:e.name,isCollationExpanded:e.isCollationExpanded,collation:e.collation,collationString:e.collationString,isModified:e.isModified,isCommenting:e.comments,isSampling:e.sample,isAtlasDeployed:e.isAtlasDeployed,isAutoPreviewing:e.autoPreview,isImportPipelineOpen:e.importPipeline.isOpen,isImportConfirmationNeeded:e.importPipeline.isConfirmationNeeded,importPipelineText:e.importPipeline.text,importPipelineError:e.importPipeline.syntaxError,settings:e.settings,isOverviewOn:e.isOverviewOn,limit:e.limit,largeLimit:e.largeLimit,maxTimeMS:e.maxTimeMS,isFullscreenOn:e.isFullscreenOn,savingPipeline:e.savingPipeline,projections:e.projections,editViewName:e.editViewName,isNewPipelineConfirm:e.isNewPipelineConfirm,setIsNewPipelineConfirm:e.setIsNewPipelineConfirm,updateViewError:e.updateViewError}),{namespaceChanged:Ch,nameChanged:e=>({type:"aggregations/name/NAME_CHANGED",name:e}),collationChanged:e=>({type:"aggregations/collation/COLLATION_CHANGED",collation:yn.a.isCollationValid(e)}),collationStringChanged:e=>({type:"aggregations/collation/COLLATION_STRING_CHANGED",collationString:e}),toggleInputDocumentsCollapsed:()=>({type:"aggregations/input-documents/TOGGLE_INPUT_COLLAPSED"}),refreshInputDocuments:kh,toggleOverview:()=>({type:"aggregations/is-overview-on/TOGGLE_OVERVIEW"}),toggleComments:()=>({type:"aggregations/comments/TOGGLE_COMMENTS"}),toggleSample:()=>({type:"aggregations/sample/TOGGLE_SAMPLE"}),toggleAutoPreview:()=>({type:"aggregations/autoPreview/TOGGLE_AUTO_PREVIEW"}),deletePipeline:e=>(t,i)=>{const r=n(40),s=n(29).join(Gh(),e+".json");r.unlink(s,()=>{t(Xh()),t({type:"aggregations/CLEAR_PIPELINE"}),t(Object(Dn.globalAppRegistryEmit)("agg-pipeline-deleted",{name:i().name}))})},runStage:Kn,runOutStage:e=>(t,n)=>{const i=n();((e,t,n,i,r)=>{n(Vn(r));const s=zn(i,r);Hn(s,e,t,n,i,r)})(i.dataService.dataService,i.namespace,t,i,e),t(Object(Dn.globalAppRegistryEmit)("agg-pipeline-out-executed",{id:i.id}))},gotoOutResults:e=>(t,n)=>{const i=n(),r=`${Tn()(i.namespace).database}.${e.replace(/\"/g,"")}`;i.outResultsFn?i.outResultsFn(r):t(Object(Dn.globalAppRegistryEmit)("open-namespace-in-new-tab",{namespace:r,isReadonly:!1}))},gotoMergeResults:e=>(t,n)=>{const i=n(),r=Tn()(i.namespace).database,s=Gn(r,i.pipeline[e]);i.outResultsFn?i.outResultsFn(s):t(Object(Dn.globalAppRegistryEmit)("open-namespace-in-new-tab",{namespace:s,isReadonly:!1}))},stageAdded:()=>({type:"aggregations/pipeline/STAGE_ADDED"}),stageAddedAfter:e=>({index:e,type:"aggregations/pipeline/STAGE_ADDED_AFTER"}),stageChanged:(e,t)=>({type:"aggregations/pipeline/STAGE_CHANGED",index:t,stage:e}),stageCollapseToggled:e=>({type:"aggregations/pipeline/STAGE_COLLAPSE_TOGGLED",index:e}),stageDeleted:e=>({type:"aggregations/pipeline/STAGE_DELETED",index:e}),stageMoved:(e,t)=>({type:"aggregations/pipeline/STAGE_MOVED",fromIndex:e,toIndex:t}),stageOperatorSelected:(e,t,n,i)=>({type:"aggregations/pipeline/STAGE_OPERATOR_SELECTED",index:e,stageOperator:t,isCommenting:n,env:i}),stageToggled:e=>({type:"aggregations/pipeline/STAGE_TOGGLED",index:e}),collationCollapseToggled:()=>({type:"aggregations/collation/COLLATION_COLLAPSE_TOGGLED"}),toggleSettingsIsExpanded:()=>({type:"aggregations/settings/TOGGLE_IS_EXPANDED"}),toggleSettingsIsCommentMode:()=>({type:"aggregations/settings/TOGGLE_COMMENT_MODE"}),setSettingsSampleSize:e=>({type:"aggregations/settings/SET_SAMPLE_SIZE",value:e}),setSettingsMaxTimeMS:e=>({type:"aggregations/settings/SET_MAX_TIME_MS",value:e}),setSettingsLimit:e=>({type:Lp,value:e}),exportToLanguage:()=>(e,t)=>{const n=t();e(Object(Dn.localAppRegistryEmit)("open-aggregation-export-to-language",Wn(n,n.pipeline.length))),e(Object(Dn.globalAppRegistryEmit)("compass:export-to-language:opened",{source:"Aggregations"}))},savedPipelinesListToggle:e=>({type:"aggregations/saved-pipeline/LIST_TOGGLED",index:e}),saveCurrentPipeline:()=>(e,t)=>{const i=n(138),r=n(40),s=n(29),o=t();""===o.id&&e({type:"aggregations/id/CREATE_ID"});const a=t().id,l=o.pipeline.map(e=>({...e,previewDocuments:[]})),u=Object.assign({},{namespace:o.namespace},{env:o.env},{pipeline:l},{name:o.name},{id:a},{comments:o.comments},{sample:o.sample},{autoPreview:o.autoPreview},{collation:o.collation},{collationString:o.collationString}),c=Gh();i.series([e=>{r.mkdir(c,{recursive:!0},()=>{e()})},e=>{const t=s.join(c,u.id+".json");r.writeFile(t,JSON.stringify(u),{encoding:"utf8",flag:"w"},()=>{e(null)})}],()=>{e(Xh())})},savedPipelineAdd:Kh,getSavedPipelines:()=>(e,t)=>{t().savedPipeline.isLoaded||e(Xh())},restorePipelineModalToggle:e=>({type:"agreggations/restore-pipeline/MODAL_TOGGLE",index:e}),restorePipelineFrom:e=>({type:"agreggations/restore-pipeline/OBJECT_ID",objectID:e}),restoreSavedPipeline:Xp,newPipeline:()=>({type:"aggregations/NEW_PIPELINE"}),newPipelineFromText:()=>({type:"aggregations/import-pipeline/NEW_PIPELINE_FROM_TEXT"}),closeImport:()=>({type:Dp}),clonePipeline:()=>({type:"aggregations/CLONE_PIPELINE"}),changeText:e=>({type:kp,text:e}),createNew:()=>({type:Fp}),confirmNew:()=>({type:_p}),openLink:e=>()=>{Fh?n(137).shell.openExternal(e):window.open(e,"_new")},getPipelineFromIndexedDB:e=>t=>{const i=n(40),r=n(29).join(Gh(),e+".json");i.readFile(r,"utf8",(e,n)=>{if(!e){const e=JSON.parse(n);t({type:"aggregations/CLEAR_PIPELINE"}),t(Xp(e)),t(Object(Dn.globalAppRegistryEmit)("compass:aggregations:pipeline-opened")),t(Kn(0))}})},applySettings:e=>(t,n)=>{t((e=>({type:Mp,settings:e}))(e)),t(Object(Dn.globalAppRegistryEmit)("compass:aggregations:settings-applied",{settings:n().settings}))},setIsModified:Wh,limitChanged:e=>({type:"aggregations/limit/LIMIT_CHANGED",limit:e}),largeLimitChanged:e=>({type:"aggregations/large-limit/LARGE_LIMIT_CHANGED",largeLimit:e}),maxTimeMSChanged:e=>({type:"aggregations/max-time-ms/MAX_TIME_MS_CHANGED",maxTimeMS:e}),toggleFullscreen:()=>({type:"aggregations/is-fullscreen-on/TOGGLE_FULLSCREEN"}),savingPipelineNameChanged:e=>({type:"aggregations/saving-pipeline/NAME_CHANGED",name:e}),savingPipelineApply:()=>({type:"aggregations/saving-pipeline/APPLY"}),savingPipelineCancel:()=>({type:"aggregations/saving-pipeline/CANCEL"}),savingPipelineOpen:({name:e="",isSaveAs:t=!1}={})=>({type:"aggregations/saving-pipeline/OPEN",isSaveAs:t,name:e}),projectionsChanged:()=>({type:"aggregations/projections/PROJECTIONS_CHANGED"}),newPipelineFromPaste:e=>t=>{t((e=>({type:"aggregations/NEW_FROM_PASTE",text:e}))(e)),t(Object(Dn.globalAppRegistryEmit)("compass:aggregations:pipeline-imported"))},updateView:()=>(e,t)=>{e({type:"aggregations/update-view/DISMISS_VIEW_UPDATE_ERROR"});const n=t(),i=n.dataService.dataService,r=n.editViewName,s=n.pipeline.map(e=>e.executor||An(e)),o={viewOn:Tn()(n.namespace).collection,pipeline:s};try{jp("calling data-service.updateCollection",r),i.updateCollection(r,o,t=>{if(t)return jp("error updating view",t),void e(Vp(t));e(Object(Dn.globalAppRegistryEmit)("refresh-data")),e(Object(Dn.globalAppRegistryEmit)("compass:aggregations:update-view",{numStages:s.length}));const i={namespace:r,isReadonly:!0,sourceName:n.namespace,editViewName:null,sourceReadonly:n.isReadonly,sourceViewOn:n.sourceName,sourcePipeline:s};jp("selecting namespace",i),e(Object(Dn.globalAppRegistryEmit)("select-namespace",i))})}catch(t){jp("Unexpected error updating view",t),e(Vp(t))}},openCreateView:()=>(e,t)=>{const n=t();const i={source:n.namespace,pipeline:n.pipeline.map(e=>e.executor||An(e)).filter(e=>!Pn()(e))};Wp("emitting","open-create-view",i),e(Object(Dn.localAppRegistryEmit)("open-create-view",i))},setIsNewPipelineConfirm:e=>({type:"aggregations/is-new-pipeline-confirm/SET_IS_NEW_PIPELINE_CONFIRM",isNewPipelineConfirm:e}),dismissViewError:zp})(ed);function nd(e){return function(t){var n=t.dispatch,i=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,i,e):t(r)}}}}var id=nd();id.withExtraArgument=nd;var rd=id;const sd=e=>{e.dispatch(kh())},od=(e,t)=>{e.dispatch((e=>({type:Uh,allowWrites:e}))(t))},ad=(e,t)=>{e.dispatch((e=>({type:"aggregations/fields/FIELDS_CHANGED",fields:e}))(t))},ld=(e,t,n,i,r)=>{var s,o,a,l;e.dispatch((s=t,o=n,a=i,l=r,e=>{e(Jp(s,o,a,l)),e(Kn(0))}))},ud=(e,t)=>{e.dispatch((e=>({type:"aggregations/env/ENV_CHANGED",env:e}))(t))};var cd=(e={})=>{const t=Bh(Gp,Ih(rd));if(e.localAppRegistry){const n=e.localAppRegistry;((e,t)=>{e.dispatch(Object(Dn.localAppRegistryActivated)(t))})(t,n),n.on("import-finished",()=>{sd(t)}),n.on("refresh-data",()=>{sd(t)}),n.on("fields-changed",e=>{ad(t,e.aceFields)})}if(e.globalAppRegistry){const n=e.globalAppRegistry;((e,t)=>{e.dispatch(Object(Dn.globalAppRegistryActivated)(t))})(t,n),n.on("refresh-data",()=>{sd(t)}),n.on("compass:deployment-awareness:topology-changed",e=>{ud(t,e.env)})}if(e.dataProvider&&((e,t,n)=>{e.dispatch(jh(t,n))})(t,e.dataProvider.error,e.dataProvider.dataProvider),null!==e.isAtlasDeployed&&void 0!==e.isAtlasDeployed&&((e,t)=>{e.dispatch({type:"aggregations/is-atlas-deployed/SET_IS_ATLAS_DEPLOYED",isAtlasDeployed:t})})(t,e.isAtlasDeployed),null!==e.allowWrites&&void 0!==e.allowWrites&&od(t,e.allowWrites),e.namespace&&((e,t)=>{Tn()(t).collection&&(e.dispatch(Ch(t)),sd(e))})(t,e.namespace),e.serverVersion&&((e,t)=>{e.dispatch((e=>({type:"aggregations/server-version/SERVER_VERSION_CHANGED",version:e}))(t))})(t,e.serverVersion),e.fields&&ad(t,e.fields),e.outResultsFn&&((e,t)=>{e.dispatch((e=>({type:"aggregations/out-results-fn/OUT_RESULTS_FN_CHANGED",outResultsFn:e}))(t))})(t,e.outResultsFn),e.editViewName&&ld(t,e.editViewName,e.sourcePipeline,e.isReadonly,e.sourceName),e.env)ud(t,e.env);else if(global&&global.hadronApp&&global.hadronApp.appRegistry){const e=global.hadronApp.appRegistry.getStore("DeploymentAwareness.Store");e&&ud(t,e.state.env)}return t};function hd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class pd extends r.Component{render(){return s.a.createElement(p,{store:this.props.store},s.a.createElement(td,null))}}hd(pd,"displayName","AggregationsPlugin"),hd(pd,"propTypes",{store:a.a.object.isRequired});var dd=pd;const fd=[];const gd="aggregations/create-view/is-running/TOGGLE_IS_RUNNING";const md=e=>({type:gd,isRunning:e}),vd="aggregations/create-view/is-visible/TOGGLE_IS_VISIBLE";const yd=e=>({type:vd,isVisible:e});const bd=e=>({type:"aggregations/create-view/name/CHANGE_NAME",name:e}),wd="aggregations/create-view/error/HANDLE_ERROR",xd="aggregations/create-view/error/CLEAR_ERROR";const Cd=n(25)("mongodb-aggregations:modules:create-view:index"),Ed=n(19),Ad="aggregations/create-view/OPEN",Sd={isRunning:!1,isVisible:!1,isDuplicating:!1,name:"",error:null,source:"",pipeline:fd},Dd=Lh({appRegistry:kn.a,isRunning:function(e=!1,t){return t.type===gd?t.isRunning:e},isDuplicating:function(e=!1,t){return"aggregations/create-view/is-duplicating/TOGGLE_IS_DUPLICATING"===t.type?t.isDuplicating:e},isVisible:function(e=!1,t){return t.type===vd?t.isVisible:e},name:function(e="",t){return"aggregations/create-view/name/CHANGE_NAME"===t.type?t.name:e},error:function(e=null,t){return t.type===wd?t.error:t.type===xd?null:e},source:function(e="",t){return"aggregations/create-view/source/SET"===t.type?t.source:e},pipeline:function(e=fd,t){return"aggregations/create-view/pipeline/SET"===t.type?t.pipeline:e},dataService:$h});var kd=(e,t)=>{if("aggregations/create-view/reset"===t.type)return{...e,...Sd};if(t.type===Ad){const n={...e,...Sd,isVisible:!0,isDuplicating:t.duplicate,source:t.source,pipeline:t.pipeline};return Cd("handling open",{newState:n}),n}return Dd(e,t)};const Fd=(e,t)=>(e(md(!1)),e({type:wd,error:t})),_d=(e,t,n)=>({type:Ad,source:e,pipeline:t,duplicate:n}),Td=()=>(e,t)=>{Cd("creating view!");const n=t(),i=n.dataService.dataService,r=n.name,s=n.source,{database:o}=Ed(n.source),a=n.pipeline,l={};e({type:xd});try{e(md(!0)),Cd("calling data-service.createView",r,s,a,l),i.createView(r,s,a,l,t=>{if(t)return Cd("error creating view",t),Fd(e,t);Cd("View created!"),e(Object(Dn.globalAppRegistryEmit)("refresh-data")),e(Object(Dn.globalAppRegistryEmit)("compass:aggregations:create-view",{numStages:a.length})),e(Object(Dn.globalAppRegistryEmit)("open-namespace-in-new-tab",{namespace:`${o}.${r}`,isReadonly:!0,sourceName:s,editViewName:null,sourceReadonly:n.isReadonly,sourceViewOn:n.sourceName,sourcePipeline:a})),e({type:"aggregations/create-view/reset"})})}catch(t){return Cd("Unexpected error creating view",t),Fd(e,t)}};function Od(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Pd extends r.PureComponent{constructor(...e){super(...e),Od(this,"onNameChange",e=>{this.props.changeViewName(e.target.value)}),Od(this,"onFormSubmit",e=>{e.preventDefault(),e.stopPropagation(),this.props.createView()}),Od(this,"onCancel",()=>{this.props.toggleIsVisible(!1)})}render(){return s.a.createElement(Wc.ConfirmationModal,{title:this.props.isDuplicating?"Duplicate View":"Create a View",open:this.props.isVisible,onConfirm:this.props.createView,onCancel:this.onCancel,buttonText:"Create"},s.a.createElement("form",{name:"create-view-modal-form",onSubmit:this.onFormSubmit.bind(this),"data-test-id":"create-view-modal"},s.a.createElement(Xe.ModalInput,{id:"create-view-name",name:"Enter a View Name",value:this.props.name||"",onChangeHandler:this.onNameChange}),this.props.error?s.a.createElement(Xe.ModalStatusMessage,{icon:"times",message:this.props.error.message,type:"error"}):null,this.props.isRunning?s.a.createElement(Xe.ModalStatusMessage,{icon:"spinner",message:"Create in Progress",type:"in-progress"}):null))}}Od(Pd,"displayName","CreateViewModalComponent"),Od(Pd,"propTypes",{createView:a.a.func.isRequired,isVisible:a.a.bool.isRequired,toggleIsVisible:a.a.func.isRequired,name:a.a.string,changeViewName:a.a.func.isRequired,isDuplicating:a.a.bool.isRequired,source:a.a.string.isRequired,pipeline:a.a.array.isRequired,isRunning:a.a.bool.isRequired,error:a.a.object}),Od(Pd,"defaultProps",{name:"",source:"",pipeline:[],isRunning:!1,isVisible:!1,isDuplicating:!1});var Rd=pe(e=>({isRunning:e.isRunning,isVisible:e.isVisible,isDuplicating:e.isDuplicating,name:e.name,error:e.error,source:e.source,pipeline:e.pipeline}),{createView:Td,changeViewName:bd,toggleIsVisible:yd})(Pd);function Bd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ld extends r.Component{render(){return s.a.createElement(p,{store:this.props.store},s.a.createElement(Rd,null))}}Bd(Ld,"displayName","CreateViewPlugin"),Bd(Ld,"propTypes",{store:a.a.object.isRequired});var Md=Ld;function Id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nd extends r.PureComponent{constructor(...e){super(...e),Id(this,"onNameChange",e=>{this.props.changeViewName(e.target.value)}),Id(this,"onFormSubmit",e=>{e.preventDefault(),e.stopPropagation(),this.props.createView()}),Id(this,"onCancel",()=>{this.props.toggleIsVisible(!1)})}render(){return s.a.createElement(Wc.ConfirmationModal,{title:"Duplicate a View",open:this.props.isVisible,onConfirm:this.props.createView,onCancel:this.onCancel,buttonText:"Duplicate"},s.a.createElement("form",{name:"create-view-modal-form",onSubmit:this.onFormSubmit.bind(this),"data-test-id":"create-view-modal"},s.a.createElement(Xe.ModalInput,{autoFocus:!0,id:"create-view-name",name:"Enter a View Name",value:this.props.name||"",onChangeHandler:this.onNameChange}),this.props.error?s.a.createElement(Xe.ModalStatusMessage,{icon:"times",message:this.props.error.message,type:"error"}):null,this.props.isRunning?s.a.createElement(Xe.ModalStatusMessage,{icon:"spinner",message:"Duplicate in Progress",type:"in-progress"}):null))}}Id(Nd,"displayName","DuplicateViewModalComponent"),Id(Nd,"propTypes",{createView:a.a.func.isRequired,isVisible:a.a.bool.isRequired,toggleIsVisible:a.a.func.isRequired,name:a.a.string,changeViewName:a.a.func.isRequired,source:a.a.string.isRequired,pipeline:a.a.array.isRequired,isRunning:a.a.bool.isRequired,error:a.a.object}),Id(Nd,"defaultProps",{name:"",source:"",pipeline:[],isRunning:!1,isVisible:!1});var $d=pe(e=>({isRunning:e.isRunning,isVisible:e.isVisible,name:e.name,error:e.error,source:e.source,pipeline:e.pipeline}),{createView:Td,changeViewName:bd,toggleIsVisible:yd})(Nd);const jd=Bh(kd,Ih(rd));jd.onActivated=e=>{jd.dispatch(Object(Dn.globalAppRegistryActivated)(e)),e.on("data-service-connected",(e,t)=>{jd.dispatch(jh(e,t))}),e.on("open-create-view",e=>{jd.dispatch(_d(e.source,e.pipeline,e.duplicate))})};var Vd=jd;class zd extends r.Component{render(){return s.a.createElement(p,{store:Vd},s.a.createElement($d,null))}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(zd,"displayName","DuplicateViewPlugin");var Wd=zd;const Ud=n(25)("mongodb-aggregations:stores:create-view");var Hd=(e={})=>{const t=Bh(kd,Ih(rd));if(e.localAppRegistry){const n=e.localAppRegistry;t.dispatch(Object(Dn.localAppRegistryActivated)(n)),n.on("open-create-view",e=>{Ud("open-create-view",e.source,e.pipeline),t.dispatch(_d(e.source,e.pipeline,!1))})}if(e.globalAppRegistry){const n=e.globalAppRegistry;t.dispatch(Object(Dn.globalAppRegistryActivated)(n))}return e.dataProvider&&((e,t,n)=>{e.dispatch(jh(t,n))})(t,e.dataProvider.error,e.dataProvider.dataProvider),t};const qd={name:"Aggregations",component:dd,order:2,configureStore:cd,configureActions:()=>{},storeName:"Aggregations.Store",actionName:"Aggregations.Actions"},Kd={name:"Create View",component:Md,configureStore:Hd,storeName:"Aggregations.CreateViewStore",configureActions:()=>{},actionName:"Aggregations.Actions"},Gd={name:"Duplicate View",component:Wd},Xd=e=>{e.registerRole("Collection.Tab",qd),e.registerRole("Collection.ScopedModal",Kd),e.registerRole("Global.Modal",Gd),e.registerStore("Aggregations.DuplicateViewStore",Vd)},Jd=e=>{e.deregisterRole("Collection.Tab",qd),e.deregisterRole("Collection.ScopedModal",Kd),e.deregisterRole("Global.Modal",Gd),e.deregisterStore("Aggregations.DuplicateViewStore")};t.default=dd},function(e,t,n){"use strict";n.r(t),n.d(t,"v1",(function(){return d})),n.d(t,"v3",(function(){return x})),n.d(t,"v4",(function(){return C})),n.d(t,"v5",(function(){return S}));var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),r=new Uint8Array(16);function s(){if(!i)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(r)}for(var o=[],a=0;a<256;++a)o[a]=(a+256).toString(16).substr(1);var l,u,c=function(e,t){var n=t||0,i=o;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")},h=0,p=0;var d=function(e,t,n){var i=t&&n||0,r=t||[],o=(e=e||{}).node||l,a=void 0!==e.clockseq?e.clockseq:u;if(null==o||null==a){var d=e.random||(e.rng||s)();null==o&&(o=l=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==a&&(a=u=16383&(d[6]<<8|d[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:p+1,m=f-h+(g-p)/1e4;if(m<0&&void 0===e.clockseq&&(a=a+1&16383),(m<0||f>h)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=f,p=g,u=a;var v=(1e4*(268435455&(f+=122192928e5))+g)%4294967296;r[i++]=v>>>24&255,r[i++]=v>>>16&255,r[i++]=v>>>8&255,r[i++]=255&v;var y=f/4294967296*1e4&268435455;r[i++]=y>>>8&255,r[i++]=255&y,r[i++]=y>>>24&15|16,r[i++]=y>>>16&255,r[i++]=a>>>8|128,r[i++]=255&a;for(var b=0;b<6;++b)r[i+b]=o[b];return t||c(r)};var f=function(e,t,n){var i=function(e,i,r,s){var o=r&&s||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e)),"string"==typeof i&&(i=function(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,(function(e){t.push(parseInt(e,16))})),t}(i)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(i)||16!==i.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var a=n(i.concat(e));if(a[6]=15&a[6]|t,a[8]=63&a[8]|128,r)for(var l=0;l<16;++l)r[o+l]=a[l];return r||c(a)};try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i};function g(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,i,r,s){return g((o=g(g(t,e),g(i,s)))<<(a=r)|o>>>32-a,n);var o,a}function v(e,t,n,i,r,s,o){return m(t&n|~t&i,e,t,r,s,o)}function y(e,t,n,i,r,s,o){return m(t&i|n&~i,e,t,r,s,o)}function b(e,t,n,i,r,s,o){return m(t^n^i,e,t,r,s,o)}function w(e,t,n,i,r,s,o){return m(n^(t|~i),e,t,r,s,o)}var x=f("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var n=0;n<t.length;n++)e[n]=t.charCodeAt(n)}return function(e){var t,n,i,r=[],s=32*e.length;for(t=0;t<s;t+=8)n=e[t>>5]>>>t%32&255,i=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16),r.push(i);return r}(function(e,t){var n,i,r,s,o;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var a=1732584193,l=-271733879,u=-1732584194,c=271733878;for(n=0;n<e.length;n+=16)i=a,r=l,s=u,o=c,a=v(a,l,u,c,e[n],7,-680876936),c=v(c,a,l,u,e[n+1],12,-389564586),u=v(u,c,a,l,e[n+2],17,606105819),l=v(l,u,c,a,e[n+3],22,-1044525330),a=v(a,l,u,c,e[n+4],7,-176418897),c=v(c,a,l,u,e[n+5],12,1200080426),u=v(u,c,a,l,e[n+6],17,-1473231341),l=v(l,u,c,a,e[n+7],22,-45705983),a=v(a,l,u,c,e[n+8],7,1770035416),c=v(c,a,l,u,e[n+9],12,-1958414417),u=v(u,c,a,l,e[n+10],17,-42063),l=v(l,u,c,a,e[n+11],22,-1990404162),a=v(a,l,u,c,e[n+12],7,1804603682),c=v(c,a,l,u,e[n+13],12,-40341101),u=v(u,c,a,l,e[n+14],17,-1502002290),l=v(l,u,c,a,e[n+15],22,1236535329),a=y(a,l,u,c,e[n+1],5,-165796510),c=y(c,a,l,u,e[n+6],9,-1069501632),u=y(u,c,a,l,e[n+11],14,643717713),l=y(l,u,c,a,e[n],20,-373897302),a=y(a,l,u,c,e[n+5],5,-701558691),c=y(c,a,l,u,e[n+10],9,38016083),u=y(u,c,a,l,e[n+15],14,-660478335),l=y(l,u,c,a,e[n+4],20,-405537848),a=y(a,l,u,c,e[n+9],5,568446438),c=y(c,a,l,u,e[n+14],9,-1019803690),u=y(u,c,a,l,e[n+3],14,-187363961),l=y(l,u,c,a,e[n+8],20,1163531501),a=y(a,l,u,c,e[n+13],5,-1444681467),c=y(c,a,l,u,e[n+2],9,-51403784),u=y(u,c,a,l,e[n+7],14,1735328473),l=y(l,u,c,a,e[n+12],20,-1926607734),a=b(a,l,u,c,e[n+5],4,-378558),c=b(c,a,l,u,e[n+8],11,-2022574463),u=b(u,c,a,l,e[n+11],16,1839030562),l=b(l,u,c,a,e[n+14],23,-35309556),a=b(a,l,u,c,e[n+1],4,-1530992060),c=b(c,a,l,u,e[n+4],11,1272893353),u=b(u,c,a,l,e[n+7],16,-155497632),l=b(l,u,c,a,e[n+10],23,-1094730640),a=b(a,l,u,c,e[n+13],4,681279174),c=b(c,a,l,u,e[n],11,-358537222),u=b(u,c,a,l,e[n+3],16,-722521979),l=b(l,u,c,a,e[n+6],23,76029189),a=b(a,l,u,c,e[n+9],4,-640364487),c=b(c,a,l,u,e[n+12],11,-421815835),u=b(u,c,a,l,e[n+15],16,530742520),l=b(l,u,c,a,e[n+2],23,-995338651),a=w(a,l,u,c,e[n],6,-198630844),c=w(c,a,l,u,e[n+7],10,1126891415),u=w(u,c,a,l,e[n+14],15,-1416354905),l=w(l,u,c,a,e[n+5],21,-57434055),a=w(a,l,u,c,e[n+12],6,1700485571),c=w(c,a,l,u,e[n+3],10,-1894986606),u=w(u,c,a,l,e[n+10],15,-1051523),l=w(l,u,c,a,e[n+1],21,-2054922799),a=w(a,l,u,c,e[n+8],6,1873313359),c=w(c,a,l,u,e[n+15],10,-30611744),u=w(u,c,a,l,e[n+6],15,-1560198380),l=w(l,u,c,a,e[n+13],21,1309151649),a=w(a,l,u,c,e[n+4],6,-145523070),c=w(c,a,l,u,e[n+11],10,-1120210379),u=w(u,c,a,l,e[n+2],15,718787259),l=w(l,u,c,a,e[n+9],21,-343485551),a=g(a,i),l=g(l,r),u=g(u,s),c=g(c,o);return[a,l,u,c]}(function(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)n[t>>5]|=(255&e[t/8])<<t%32;return n}(e),8*e.length))}));var C=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var o=0;o<16;++o)t[i+o]=r[o];return t||c(r)};function E(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function A(e,t){return e<<t|e>>>32-t}var S=f("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=new Array(i.length);for(var r=0;r<i.length;r++)e[r]=i.charCodeAt(r)}e.push(128);var s=e.length/4+2,o=Math.ceil(s/16),a=new Array(o);for(r=0;r<o;r++){a[r]=new Array(16);for(var l=0;l<16;l++)a[r][l]=e[64*r+4*l]<<24|e[64*r+4*l+1]<<16|e[64*r+4*l+2]<<8|e[64*r+4*l+3]}for(a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295,r=0;r<o;r++){for(var u=new Array(80),c=0;c<16;c++)u[c]=a[r][c];for(c=16;c<80;c++)u[c]=A(u[c-3]^u[c-8]^u[c-14]^u[c-16],1);var h=n[0],p=n[1],d=n[2],f=n[3],g=n[4];for(c=0;c<80;c++){var m=Math.floor(c/20),v=A(h,5)+E(m,p,d,f)+g+t[m]+u[c]>>>0;g=f,f=d,d=A(p,30)>>>0,p=h,h=v}n[0]=n[0]+h>>>0,n[1]=n[1]+p>>>0,n[2]=n[2]+d>>>0,n[3]=n[3]+f>>>0,n[4]=n[4]+g>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))}])}));
package/package.json ADDED
@@ -0,0 +1,191 @@
1
+ {
2
+ "name": "@mongodb-js/compass-aggregations",
3
+ "productName": "Aggregations plugin",
4
+ "version": "8.14.0",
5
+ "apiVersion": "3.0.0",
6
+ "description": "Compass Aggregation Pipeline Builder",
7
+ "main": "lib/index.js",
8
+ "scripts": {
9
+ "clean": "rimraf lib",
10
+ "precompile": "npm run clean",
11
+ "compile": "cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js",
12
+ "prestart": "electron-rebuild --force --only keytar",
13
+ "start": "cross-env NODE_ENV=development webpack-dev-server --config ./config/webpack.dev.config.js",
14
+ "start:watch": "npm run clean && webpack --config ./config/webpack.watch.config.js",
15
+ "test": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\"",
16
+ "test:dev": "cross-env NODE_ENV=test mocha-webpack",
17
+ "test:watch": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\" --watch",
18
+ "test:karma": "cross-env NODE_ENV=test karma start",
19
+ "cover": "nyc npm run test",
20
+ "check": "npm run lint && npm run depcheck",
21
+ "preanalyze": "mkdir -p .ghpages && cross-env NODE_ENV=production webpack --profile --json --config ./config/webpack.prod.config.js > .ghpages/stats.json",
22
+ "analyze": "webpack-bundle-analyzer .ghpages/stats.json --no-open --report .ghpages/report.html --mode static --bundleDir lib",
23
+ "prepublishOnly": "npm run compile",
24
+ "lint": "eslint \"./src/**/*.{js,jsx}\" \"./test/**/*.js\" \"./electron/**/*.js\" \"./config/**/*.{js,jsx}\"",
25
+ "depcheck": "depcheck",
26
+ "test-ci": "npm run test",
27
+ "bootstrap": "npm run compile"
28
+ },
29
+ "license": "SSPL",
30
+ "peerDependencies": {
31
+ "@leafygreen-ui/badge": "^4.0.4",
32
+ "@leafygreen-ui/banner": "^3.0.8",
33
+ "@leafygreen-ui/logo": "^5.0.0",
34
+ "@mongodb-js/compass-components": "*",
35
+ "@mongodb-js/compass-crud": "*",
36
+ "@mongodb-js/compass-export-to-language": "*",
37
+ "@mongodb-js/compass-field-store": "*",
38
+ "async": "^1.5.2",
39
+ "bson": "*",
40
+ "electron": "^6.1.12",
41
+ "hadron-react-bson": "*",
42
+ "hadron-react-buttons": "*",
43
+ "hadron-react-components": "*",
44
+ "mongodb-ace-autocompleter": "*",
45
+ "mongodb-ace-mode": "*",
46
+ "mongodb-ace-theme": "*",
47
+ "mongodb-data-service": "*",
48
+ "mongodb-js-metrics": "*",
49
+ "mongodb-query-parser": "^2.4.3",
50
+ "prop-types": "^15.7.2",
51
+ "react": "^16.14.0",
52
+ "react-ace": "^6.6.0",
53
+ "react-bootstrap": "^0.32.4",
54
+ "react-dom": "^16.14.0"
55
+ },
56
+ "devDependencies": {
57
+ "@babel/cli": "^7.14.3",
58
+ "@babel/core": "^7.14.3",
59
+ "@babel/plugin-proposal-decorators": "^7.14.2",
60
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
61
+ "@babel/preset-env": "^7.14.2",
62
+ "@babel/preset-react": "^7.13.13",
63
+ "@babel/register": "^7.13.16",
64
+ "@hot-loader/react-dom": "^16.9.0",
65
+ "@mongodb-js/compass-components": "^0.5.0",
66
+ "@mongodb-js/compass-crud": "^12.14.0",
67
+ "@mongodb-js/compass-export-to-language": "^7.13.0",
68
+ "@mongodb-js/compass-field-store": "^7.13.0",
69
+ "async": "^1.5.2",
70
+ "autoprefixer": "^9.4.10",
71
+ "babel-loader": "^8.2.2",
72
+ "brace": "^0.11.1",
73
+ "bson-transpilers": "^1.2.0",
74
+ "chai": "^4.2.0",
75
+ "chai-as-promised": "^7.1.1",
76
+ "chai-enzyme": "1.0.0-beta.1",
77
+ "classnames": "^2.2.6",
78
+ "core-js": "^3.12.1",
79
+ "cross-env": "^7.0.0",
80
+ "css-loader": "^4.3.0",
81
+ "debug": "^4.1.1",
82
+ "depcheck": "^1.4.1",
83
+ "electron": "^6.1.12",
84
+ "electron-rebuild": "^2.3.5",
85
+ "enzyme": "^3.11.0",
86
+ "enzyme-adapter-react-16": "^1.15.2",
87
+ "eslint": "^7.25.0",
88
+ "eslint-config-mongodb-js": "^5.0.3",
89
+ "eslint-plugin-react": "^7.24.0",
90
+ "extract-text-webpack-plugin": "^4.0.0-beta.0",
91
+ "file-loader": "^5.1.0",
92
+ "font-awesome": "^4.7.0",
93
+ "hadron-app": "^4.13.0",
94
+ "hadron-app-registry": "^8.4.0",
95
+ "hadron-document": "^7.5.0",
96
+ "hadron-react-bson": "^5.5.0",
97
+ "hadron-react-buttons": "^5.4.0",
98
+ "hadron-react-components": "^5.6.0",
99
+ "html-webpack-plugin": "^3.2.0",
100
+ "ignore-loader": "^0.1.2",
101
+ "istanbul-instrumenter-loader": "^3.0.1",
102
+ "jquery": "^3.3.1",
103
+ "jsdom": "^16.6.0",
104
+ "jsdom-global": "^3.0.2",
105
+ "karma": "^4.4.1",
106
+ "karma-chai": "^0.1.0",
107
+ "karma-chai-sinon": "^0.1.5",
108
+ "karma-electron": "^6.3.4",
109
+ "karma-mocha": "^1.3.0",
110
+ "karma-mocha-reporter": "^2.2.5",
111
+ "karma-sinon": "^1.0.5",
112
+ "karma-sourcemap-loader": "^0.3.8",
113
+ "karma-webpack": "^4.0.2",
114
+ "less": "^3.11.1",
115
+ "less-loader": "^7.3.0",
116
+ "mocha": "^7.0.1",
117
+ "mocha-webpack": "^2.0.0-beta.0",
118
+ "mongodb-ace-autocompleter": "^0.6.0",
119
+ "mongodb-ace-mode": "^1.3.0",
120
+ "mongodb-ace-theme": "^1.3.0",
121
+ "mongodb-connection-model": "^21.8.0",
122
+ "mongodb-data-service": "^21.11.0",
123
+ "mongodb-js-metrics": "^7.4.0",
124
+ "mongodb-query-parser": "^2.4.3",
125
+ "mongodb-reflux-store": "^0.0.1",
126
+ "mongodb-schema": "^8.2.5",
127
+ "mongodb-stitch-browser-sdk": "^4.8.0",
128
+ "nise": "4.0.2",
129
+ "node-loader": "^0.6.0",
130
+ "nyc": "^15.0.0",
131
+ "peer-deps-externals-webpack-plugin": "^1.0.4",
132
+ "postcss-loader": "^2.1.6",
133
+ "prop-types": "^15.7.2",
134
+ "react": "^16.14.0",
135
+ "react-ace": "^6.6.0",
136
+ "react-dom": "^16.14.0",
137
+ "react-hot-loader": "^4.13.0",
138
+ "reflux": "^0.4.1",
139
+ "reflux-state-mixin": "github:mongodb-js/reflux-state-mixin",
140
+ "resolve": "^1.15.1",
141
+ "rimraf": "^3.0.0",
142
+ "shebang-loader": "^0.0.1",
143
+ "sinon": "^9.0.0",
144
+ "sinon-chai": "^3.3.0",
145
+ "style-loader": "^2.0.0",
146
+ "url-loader": "^3.0.0",
147
+ "webpack": "^4.46.0",
148
+ "webpack-bundle-analyzer": "^3.1.0",
149
+ "webpack-cli": "^3.3.12",
150
+ "webpack-dev-server": "^3.11.2",
151
+ "webpack-merge": "^4.2.2",
152
+ "webpack-node-externals": "^3.0.0"
153
+ },
154
+ "dependencies": {
155
+ "@leafygreen-ui/badge": "^4.0.4",
156
+ "@leafygreen-ui/banner": "^3.0.8",
157
+ "@leafygreen-ui/logo": "^5.0.0",
158
+ "@mongodb-js/mongodb-redux-common": "^1.4.0",
159
+ "acorn-loose": "^8.0.2",
160
+ "astring": "^1.7.0",
161
+ "bson": "*",
162
+ "decomment": "^0.9.2",
163
+ "is-electron-renderer": "^2.0.1",
164
+ "lodash.debounce": "^4.0.8",
165
+ "lodash.isempty": "^4.4.0",
166
+ "lodash.isstring": "^4.0.1",
167
+ "mongodb-extended-json": "^1.11.1",
168
+ "mongodb-ns": "^2.2.0",
169
+ "re-resizable": "^6.9.0",
170
+ "react-bootstrap": "^0.32.4",
171
+ "react-dnd": "^10.0.2",
172
+ "react-dnd-html5-backend": "^10.0.2",
173
+ "react-ios-switch": "^0.1.19",
174
+ "react-redux": "^5.0.6",
175
+ "react-select-plus": "^1.2.0",
176
+ "redux": "^4.0.1",
177
+ "redux-thunk": "^2.3.0",
178
+ "semver": "^5.7.1",
179
+ "storage-mixin": "^4.7.0"
180
+ },
181
+ "homepage": "https://github.com/mongodb-js/compass",
182
+ "bugs": {
183
+ "url": "https://jira.mongodb.org/projects/COMPASS/issues",
184
+ "email": "compass@mongodb.com"
185
+ },
186
+ "repository": {
187
+ "type": "git",
188
+ "url": "https://github.com/mongodb-js/compass.git"
189
+ },
190
+ "gitHead": "455c6523f99a08c6796480d59727b53bdfa441f0"
191
+ }