@oursprivacy/react-json-view 1.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Mac Gainor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,173 @@
1
+
2
+ <h1 align="center">
3
+ <a href="https://react-json-view.microlink.io/">
4
+ <img src="https://raw.githubusercontent.com/microlinkhq/react-json-view/master/docs/assets/rjv-icon-alt.png" alt="react-json-view" width="200"></a>
5
+ <br>
6
+ react-json-view
7
+ <br>
8
+ <a href="https://www.npmjs.com/package/@microlink/react-json-view"><img src="https://img.shields.io/npm/v/%40microlink%2Freact-json-view.svg" alt="npm version"></a>
9
+ <a href="https://github.com/microlinkhq/react-json-view/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/%40microlink%2Freact-json-view.svg" alt="npm license"></a>
10
+ <a href="https://github.com/microlinkhq/react-json-view/actions/workflows/main.yml?query=branch%3Amaster"><img src="https://github.com/microlinkhq/react-json-view/workflows/test/badge.svg" alt="Build Status"></a>
11
+ <br>
12
+ </h1>
13
+
14
+ **react-json-view** (rjv) is a React component for displaying and editing javascript **arrays** and **JSON objects**.
15
+
16
+ ![](https://raw.githubusercontent.com/microlinkhq/react-json-view/docs/docs/assets/banner.png)
17
+
18
+ ### Highlights
19
+
20
+ * `onEdit`, `onAdd` and `onDelete` props allow users to edit the `src` variable.
21
+ * Object, array, string and function values can be collapsed and expanded.
22
+ * Object and array nodes display length.
23
+ * Object and array nodes support a "Copy to Clipboard" feature.
24
+ * String values can be truncated after a specified length.
25
+ * Arrays can be subgrouped after a specified length.
26
+ * Base-16 Theme Support.
27
+ * When `onEdit` is enabled:
28
+ * `Ctrl/Cmd+Click` Edit Mode
29
+ * `Ctrl/Cmd+Enter` Submit
30
+
31
+ ### Installation
32
+
33
+ ```shell
34
+ npm install @microlink/react-json-view --save
35
+ ```
36
+
37
+ ### Usage
38
+
39
+ ```js
40
+ import ReactJsonView from '@microlink/react-json-view'
41
+
42
+ <ReactJsonView
43
+ src={{
44
+ string: 'this is a test string',
45
+ integer: 42,
46
+ array: [1, 2, 3, 'test', NaN],
47
+ float: 3.14159,
48
+ undefined: undefined,
49
+ object: {
50
+ 'first-child': true,
51
+ 'second-child': false,
52
+ 'last-child': null
53
+ },
54
+ string_number: '1234',
55
+ date: new Date(),
56
+ bigNumber: new BigNumber('0.0060254656709730629123')
57
+ }}
58
+ showComma
59
+ />
60
+ ```
61
+
62
+ ### API
63
+
64
+ | Name | Type | Default | Description |
65
+ |:-----------------------------|:-------------------------------------------------|:-------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
66
+ | `src` | `JSON Object` | None | This property contains your input JSON. |
67
+ | `name` | `string` or `JSX.Element` | `false` | "root" - Contains the name of your root node. Use `null` or `false` for no name. |
68
+ | `theme` | `string` | `'rjv-default'` | RJV supports base-16 themes. Check out the list of supported themes [in the demo](https://react-json-view.microlink.io/). A custom "rjv-default" theme applies by default. |
69
+ | `style` | `object` | `{}` | Style attributes for react-json-view container. Explicit style attributes will override attributes provided by a theme. |
70
+ | `iconStyle` | `string` | `'circle'` | Style of expand/collapse icons. Accepted values are "circle", "triangle" or "square". |
71
+ | `indentWidth` | `integer` | 4 | Set the indent-width for nested objects. |
72
+ | `collapsed` | `boolean` or `integer` | `false` | When set to `true`, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth. |
73
+ | `collapseStringsAfterLength` | `integer` | `false` | When an integer value is assigned, strings will be cut off at that length. Collapsed strings are followed by an ellipsis. String content can be expanded and collapsed by clicking on the string value. |
74
+ | `shouldCollapse` | `(field)=>{}` | `false` | Callback function to provide control over what objects and arrays should be collapsed by default. An object is passed to the callback containing `name`, `src`, `type` ("array" or "object") and `namespace`. |
75
+ | `groupArraysAfterLength` | `integer` | 100 | When an integer value is assigned, arrays will be displayed in groups by count of the value. Groups are displayed with bracket notation and can be expanded and collapsed by clicking on the brackets. |
76
+ | `enableClipboard` | `boolean` or `(copy)=>{}` | `true` | When prop is not `false`, the user can copy objects and arrays to clipboard by clicking on the clipboard icon. Copy callbacks are supported. |
77
+ | `displayObjectSize` | `boolean` | `true` | When set to `true`, objects and arrays are labeled with size. |
78
+ | `displayDataTypes` | `boolean` | `true` | When set to `true`, data type labels prefix values. |
79
+ | `onEdit` | `(edit)=>{}` | `false` | When a callback function is passed in, `edit` functionality is enabled. The callback is invoked before edits are completed. Returning `false` from `onEdit` will prevent the change from being made. [see: onEdit docs](#onedit-onadd-and-ondelete-interaction) |
80
+ | `onAdd` | `(add)=>{}` | `false` | When a callback function is passed in, `add` functionality is enabled. The callback is invoked before additions are completed. Returning `false` from `onAdd` will prevent the change from being made. [see: onAdd docs](#onedit-onadd-and-ondelete-interaction) |
81
+ | `defaultValue` | `string \| number \| boolean \| array \| object` | `null` | Sets the default value to be used when adding an item to JSON. |
82
+ | `onDelete` | `(delete)=>{}` | `false` | When a callback function is passed in, `delete` functionality is enabled. The callback is invoked before deletions are completed. Returning `false` from `onDelete` will prevent the change from being made. [see: onDelete docs](#onedit-onadd-and-ondelete-interaction) |
83
+ | `onSelect` | `(select)=>{}` | `false` | When a function is passed in, clicking a value triggers the `onSelect` method to be called. |
84
+ | `sortKeys` | `boolean` | `false` | Set to `true` to sort object keys. |
85
+ | `quotesOnKeys` | `boolean` | `true` | Set to `false` to remove quotes from keys (e.g., `"name":` vs. `name:`). |
86
+ | `validationMessage` | `string` | "Validation Error" | Custom message for validation failures to `onEdit`, `onAdd`, or `onDelete` callbacks. |
87
+ | `displayArrayKey` | `boolean` | `true` | When set to `true`, the index of the elements prefix values. |
88
+ | `escapeStrings` | `boolean` | `true` | When set to `true`, strings sequences such as \n, \t, \r, \f will be escaped. |
89
+ | `bigNumber` | `Class` | `null` | A custom class for handling large numbers. The class should have a constructor that accepts a numeric string/value and a `name` property for display purposes. You can use existing libraries like `bignumber.js`, `decimal.js`, `big.js`, or provide your own implementation. |
90
+ | `showComma` | `boolean` | `true` | When set to `true`, commas are displayed between object properties and array elements for better readability. Interactive tools (clipboard, edit, delete icons) appear after the comma when hovering over JSON elements. |
91
+
92
+ #### Callbacks
93
+
94
+ You can pass callback methods to `onEdit`, `onAdd` and `onDelete` props.
95
+
96
+ Your method will be invoked when a user attempts to update your `src` object.
97
+
98
+ The following object will be passed to your method:
99
+ ```js
100
+ {
101
+ updated_src: src, //new src value
102
+ name: name, //new var name
103
+ namespace: namespace, //list, namespace indicating var location
104
+ new_value: new_value, //new variable value
105
+ existing_value: existing_value, //existing variable value
106
+ }
107
+ ```
108
+
109
+ Returning `false` from a callback method will prevent the src from being affected.
110
+
111
+ ### Theming
112
+
113
+ #### Builtin theme
114
+
115
+ You can specify a `theme` name or object when you instantiate your rjv component.
116
+
117
+ ```jsx
118
+ <ReactJsonView src={my_important_json} theme="monokai" />
119
+ ```
120
+
121
+ The following themes are builtin with the library:
122
+
123
+ - `'apathy'`
124
+ - `'ashes'`
125
+ - `'atelierDune'`
126
+ - `'atelierForest'`
127
+ - `'atelierHeath'`
128
+ - `'atelierLakeside'`
129
+ - `'atelierSeaside'`
130
+ - `'bespin'`
131
+ - `'brewer'`
132
+ - `'bright'`
133
+ - `'chalk'`
134
+ - `'codeschool'`
135
+ - `'colors'`
136
+ - `'eighties'`
137
+ - `'embers'`
138
+ - `'flat'`
139
+ - `'google'`
140
+ - `'grayscale'`
141
+ - `'greenscreen'`
142
+ - `'harmonic'`
143
+ - `'hopscotch'`
144
+ - `'isotope'`
145
+ - `'marrakesh'`
146
+ - `'mocha'`
147
+ - `'monokai'`
148
+ - `'ocean'`
149
+ - `'paraiso'`
150
+ - `'pop'`
151
+ - `'railscasts'`
152
+ - `'shapeshifter'`
153
+ - `'solarized'`
154
+ - `'summerfruit'`
155
+ - `'threezerotwofour'`
156
+ - `'tomorrow'`
157
+ - `'tube'`
158
+ - `'twilight'`
159
+
160
+ Check [react-json-view.microlink.io](https://react-json-view.microlink.io/) to see how they look like.
161
+
162
+ #### Custom theme
163
+
164
+ **rjv** supports any base-16 theme. You can supply your own base-16 theme object.
165
+
166
+ To better understand custom themes, take a look at [my example implementation](https://github.com/microlinkhq/react-json-view/blob/7c154b9a7d83ea89dce2c171ebdf4d163ff49233/dev-server/src/index.js#L135) and the [base-16 theme styling guidelines](https://github.com/chriskempson/base16/blob/master/styling.md).
167
+
168
+ ## License
169
+
170
+ **react-json-view** © [microlink.io](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/cards/blob/master/LICENSE.md) License.<br>
171
+ Authored by [Mac Gainor](https://github.com/mac-s-g) and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/microlinkhq/cards/contributors).
172
+
173
+ > [microlink.io](https://microlink.io) · GitHub [microlink.io](https://github.com/microlinkhq) · X [@microlinkhq](https://x.com/microlinkhq)
package/dist/main.js ADDED
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.reactJsonView=t(require("react")):e.reactJsonView=t(e.React)}(this,e=>(()=>{var t={300:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},427:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},758:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},817:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},288:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},640:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},698:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},590:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},16:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},299:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},684:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},82:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},811:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},926:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},393:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},359:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},836:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},940:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},204:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},36:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},68:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},782:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},579:(e,t,a)=>{"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var n=a(323);t.threezerotwofour=r(n);var o=a(300);t.apathy=r(o);var s=a(427);t.ashes=r(s);var i=a(758);t.atelierDune=r(i);var c=a(817);t.atelierForest=r(c);var l=a(288);t.atelierHeath=r(l);var u=a(640);t.atelierLakeside=r(u);var d=a(698);t.atelierSeaside=r(d);var b=a(590);t.bespin=r(b);var p=a(16);t.brewer=r(p);var f=a(299);t.bright=r(f);var h=a(684);t.chalk=r(h);var m=a(82);t.codeschool=r(m);var v=a(811);t.colors=r(v);var g=a(926);t.default=r(g);var y=a(393);t.eighties=r(y);var E=a(359);t.embers=r(E);var k=a(836);t.flat=r(k);var j=a(940);t.google=r(j);var w=a(204);t.grayscale=r(w);var x=a(36);t.greenscreen=r(x);var C=a(68);t.harmonic=r(C);var O=a(782);t.hopscotch=r(O);var M=a(464);t.isotope=r(M);var S=a(769);t.marrakesh=r(S);var _=a(961);t.mocha=r(_);var A=a(789);t.monokai=r(A);var F=a(761);t.ocean=r(F);var P=a(332);t.paraiso=r(P);var R=a(828);t.pop=r(R);var D=a(872);t.railscasts=r(D);var I=a(275);t.shapeshifter=r(I);var z=a(28);t.solarized=r(z);var B=a(474);t.summerfruit=r(B);var N=a(244);t.tomorrow=r(N);var L=a(765);t.tube=r(L);var q=a(475);t.twilight=r(q)},464:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},769:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},961:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},789:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},761:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},332:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},828:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},872:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},275:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},28:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},474:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},323:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},244:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},765:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},475:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},659:(e,t,a)=>{var r=a(156),n={};for(var o in r)r.hasOwnProperty(o)&&(n[r[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in s)if(s.hasOwnProperty(i)){if(!("channels"in s[i]))throw new Error("missing channels property: "+i);if(!("labels"in s[i]))throw new Error("missing channel labels property: "+i);if(s[i].labels.length!==s[i].channels)throw new Error("channel and label counts mismatch: "+i);var c=s[i].channels,l=s[i].labels;delete s[i].channels,delete s[i].labels,Object.defineProperty(s[i],"channels",{value:c}),Object.defineProperty(s[i],"labels",{value:l})}function u(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}s.rgb.hsl=function(e){var t,a,r=e[0]/255,n=e[1]/255,o=e[2]/255,s=Math.min(r,n,o),i=Math.max(r,n,o),c=i-s;return i===s?t=0:r===i?t=(n-o)/c:n===i?t=2+(o-r)/c:o===i&&(t=4+(r-n)/c),(t=Math.min(60*t,360))<0&&(t+=360),a=(s+i)/2,[t,100*(i===s?0:a<=.5?c/(i+s):c/(2-i-s)),100*a]},s.rgb.hsv=function(e){var t,a,r,n,o,s=e[0]/255,i=e[1]/255,c=e[2]/255,l=Math.max(s,i,c),u=l-Math.min(s,i,c),d=function(e){return(l-e)/6/u+.5};return 0===u?n=o=0:(o=u/l,t=d(s),a=d(i),r=d(c),s===l?n=r-a:i===l?n=1/3+t-r:c===l&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*o,100*l]},s.rgb.hwb=function(e){var t=e[0],a=e[1],r=e[2];return[s.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(a,r))),100*(r=1-1/255*Math.max(t,Math.max(a,r)))]},s.rgb.cmyk=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*((1-a-(t=Math.min(1-a,1-r,1-n)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=n[e];if(t)return t;var a,o=1/0;for(var s in r)if(r.hasOwnProperty(s)){var i=u(e,r[s]);i<o&&(o=i,a=s)}return a},s.keyword.rgb=function(e){return r[e]},s.rgb.xyz=function(e){var t=e[0]/255,a=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*a+.0722*r),100*(.0193*t+.1192*a+.9505*r)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),a=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,a=(a/=95.047)>.008856?Math.pow(a,1/3):7.787*a+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(a-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.hsl.rgb=function(e){var t,a,r,n,o,s=e[0]/360,i=e[1]/100,c=e[2]/100;if(0===i)return[o=255*c,o,o];t=2*c-(a=c<.5?c*(1+i):c+i-c*i),n=[0,0,0];for(var l=0;l<3;l++)(r=s+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(a-t)*r:2*r<1?a:3*r<2?t+(a-t)*(2/3-r)*6:t,n[l]=255*o;return n},s.hsl.hsv=function(e){var t=e[0],a=e[1]/100,r=e[2]/100,n=a,o=Math.max(r,.01);return a*=(r*=2)<=1?r:2-r,n*=o<=1?o:2-o,[t,100*(0===r?2*n/(o+n):2*a/(r+a)),100*((r+a)/2)]},s.hsv.rgb=function(e){var t=e[0]/60,a=e[1]/100,r=e[2]/100,n=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-a),i=255*r*(1-a*o),c=255*r*(1-a*(1-o));switch(r*=255,n){case 0:return[r,c,s];case 1:return[i,r,s];case 2:return[s,r,c];case 3:return[s,i,r];case 4:return[c,s,r];case 5:return[r,s,i]}},s.hsv.hsl=function(e){var t,a,r,n=e[0],o=e[1]/100,s=e[2]/100,i=Math.max(s,.01);return r=(2-o)*s,a=o*i,[n,100*(a=(a/=(t=(2-o)*i)<=1?t:2-t)||0),100*(r/=2)]},s.hwb.rgb=function(e){var t,a,r,n,o,s,i,c=e[0]/360,l=e[1]/100,u=e[2]/100,d=l+u;switch(d>1&&(l/=d,u/=d),r=6*c-(t=Math.floor(6*c)),1&t&&(r=1-r),n=l+r*((a=1-u)-l),t){default:case 6:case 0:o=a,s=n,i=l;break;case 1:o=n,s=a,i=l;break;case 2:o=l,s=a,i=n;break;case 3:o=l,s=n,i=a;break;case 4:o=n,s=l,i=a;break;case 5:o=a,s=l,i=n}return[255*o,255*s,255*i]},s.cmyk.rgb=function(e){var t=e[0]/100,a=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},s.xyz.rgb=function(e){var t,a,r,n=e[0]/100,o=e[1]/100,s=e[2]/100;return a=-.9689*n+1.8758*o+.0415*s,r=.0557*n+-.204*o+1.057*s,t=(t=3.2406*n+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(a=Math.min(Math.max(0,a),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(e){var t=e[0],a=e[1],r=e[2];return a/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(t-a),200*(a-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(e){var t,a,r,n=e[0];t=e[1]/500+(a=(n+16)/116),r=a-e[2]/200;var o=Math.pow(a,3),s=Math.pow(t,3),i=Math.pow(r,3);return a=o>.008856?o:(a-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,[t*=95.047,a*=100,r*=108.883]},s.lab.lch=function(e){var t,a=e[0],r=e[1],n=e[2];return(t=360*Math.atan2(n,r)/2/Math.PI)<0&&(t+=360),[a,Math.sqrt(r*r+n*n),t]},s.lch.lab=function(e){var t,a=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[a,r*Math.cos(t),r*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],a=e[1],r=e[2],n=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(t/255));return 2===n&&(o+=60),o},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],a=e[1],r=e[2];return t===a&&a===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var a=.5*(1+~~(e>50));return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var a;return e-=16,[Math.floor(e/36)/5*255,Math.floor((a=e%36)/6)/5*255,a%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var a=t[0];3===t[0].length&&(a=a.split("").map(function(e){return e+e}).join(""));var r=parseInt(a,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(a,r),n),s=Math.min(Math.min(a,r),n),i=o-s;return t=i<=0?0:o===a?(r-n)/i%6:o===r?2+(n-a)/i:4+(a-r)/i+4,t/=6,[360*(t%=1),100*i,100*(i<1?s/(1-i):0)]},s.hsl.hcg=function(e){var t=e[1]/100,a=e[2]/100,r=1,n=0;return(r=a<.5?2*t*a:2*t*(1-a))<1&&(n=(a-.5*r)/(1-r)),[e[0],100*r,100*n]},s.hsv.hcg=function(e){var t=e[1]/100,a=e[2]/100,r=t*a,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.hcg.rgb=function(e){var t=e[0]/360,a=e[1]/100,r=e[2]/100;if(0===a)return[255*r,255*r,255*r];var n,o=[0,0,0],s=t%1*6,i=s%1,c=1-i;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=c,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=c,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=c}return n=(1-a)*r,[255*(a*o[0]+n),255*(a*o[1]+n),255*(a*o[2]+n)]},s.hcg.hsv=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t),r=0;return a>0&&(r=t/a),[e[0],100*r,100*a]},s.hcg.hsl=function(e){var t=e[1]/100,a=e[2]/100*(1-t)+.5*t,r=0;return a>0&&a<.5?r=t/(2*a):a>=.5&&a<1&&(r=t/(2*(1-a))),[e[0],100*r,100*a]},s.hcg.hwb=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},s.hwb.hcg=function(e){var t=e[1]/100,a=1-e[2]/100,r=a-t,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:(e,t,a)=>{var r=a(659),n=a(507),o={};Object.keys(r).forEach(function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=n(e);Object.keys(t).forEach(function(a){var r=t[a];o[e][a]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var a=e(t);if("object"==typeof a)for(var r=a.length,n=0;n<r;n++)a[n]=Math.round(a[n]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][a].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=o},507:(e,t,a)=>{var r=a(659);function n(e){var t=function(){for(var e={},t=Object.keys(r),a=t.length,n=0;n<a;n++)e[t[n]]={distance:-1,parent:null};return e}(),a=[e];for(t[e].distance=0;a.length;)for(var n=a.pop(),o=Object.keys(r[n]),s=o.length,i=0;i<s;i++){var c=o[i],l=t[c];-1===l.distance&&(l.distance=t[n].distance+1,l.parent=n,a.unshift(c))}return t}function o(e,t){return function(a){return t(e(a))}}function s(e,t){for(var a=[t[e].parent,e],n=r[t[e].parent][e],s=t[e].parent;t[s].parent;)a.unshift(t[s].parent),n=o(r[t[s].parent][s],n),s=t[s].parent;return n.conversion=a,n}e.exports=function(e){for(var t=n(e),a={},r=Object.keys(t),o=r.length,i=0;i<o;i++){var c=r[i];null!==t[c].parent&&(a[c]=s(c,t))}return a}},156:e=>{"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]}},854:(e,t,a)=>{var r=a(156),n=a(491),o=Object.hasOwnProperty,s=Object.create(null);for(var i in r)o.call(r,i)&&(s[r[i]]=i);var c=e.exports={to:{},get:{}};function l(e,t,a){return Math.min(Math.max(t,e),a)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}c.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=c.get.hsl(e),a="hsl";break;case"hwb":t=c.get.hwb(e),a="hwb";break;default:t=c.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},c.get.rgb=function(e){if(!e)return null;var t,a,n,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],a=0;a<3;a++){var i=2*a;s[a]=parseInt(t.slice(i,i+2),16)}n&&(s[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],a=0;a<3;a++)s[a]=parseInt(t[a]+t[a],16);n&&(s[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)s[a]=parseInt(t[a+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((s=r[t[1]])[3]=1,s):null:null;for(a=0;a<3;a++)s[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}for(a=0;a<3;a++)s[a]=l(s[a],0,255);return s[3]=l(s[3],0,1),s},c.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(a)?1:a,0,1)]}return null},c.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(a)?1:a,0,1)]}return null},c.to.hex=function(){var e=n(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},c.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},c.to.rgb.percent=function(){var e=n(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+r+"%)":"rgba("+t+"%, "+a+"%, "+r+"%, "+e[3]+")"},c.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},c.to.hwb=function(){var e=n(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return s[e.slice(0,3)]}},520:(e,t,a)=>{"use strict";var r=a(854),n=a(734),o=[].slice,s=["keyword","gray","hex"],i={};Object.keys(n).forEach(function(e){i[o.call(n[e].labels).sort().join("")]=e});var c={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in s&&(t=null),t&&!(t in n))throw new Error("Unknown model: "+t);var a,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=r.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=n[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=n[this.model].channels;var p=o.call(e,0,u);this.color=b(p,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var f=Object.keys(e);"alpha"in e&&(f.splice(f.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var h=f.sort().join("");if(!(h in i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[h];var m=n[this.model].labels,v=[];for(a=0;a<m.length;a++)v.push(e[m[a]]);this.color=b(v)}if(c[this.model])for(u=n[this.model].channels,a=0;a<u;a++){var g=c[this.model][a];g&&(this.color[a]=g(this.color[a]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function u(e,t,a){return(e=Array.isArray(e)?e:[e]).forEach(function(e){(c[e]||(c[e]=[]))[t]=a}),e=e[0],function(r){var n;return arguments.length?(a&&(r=a(r)),(n=this[e]()).color[t]=r,n):(n=this[e]().color[t],a&&(n=a(n)),n)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function b(e,t){for(var a=0;a<t;a++)"number"!=typeof e[a]&&(e[a]=0);return e}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb(),a=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return r.to[t.model](a)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),a=1===t.valpha?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(a)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=n[this.model].channels,a=n[this.model].labels,r=0;r<t;r++)e[a[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,function(e){return(e%360+360)%360}),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(100)),y:u("xyz",1,d(100)),z:u("xyz",2,d(100)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword:function(e){return arguments.length?new l(e):n[this.model].keyword(this.color)},hex:function(e){return arguments.length?new l(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],a=0;a<e.length;a++){var r=e[a]/255;t[a]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),a=e.luminosity();return t>a?(t+.05)/(a+.05):(a+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),a=t.color[0];return a=(a=(a+e)%360)<0?360+a:a,t.color[0]=a,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var a=e.rgb(),r=this.rgb(),n=void 0===t?.5:t,o=2*n-1,s=a.alpha()-r.alpha(),i=((o*s===-1?o:(o+s)/(1+o*s))+1)/2,c=1-i;return l.rgb(i*a.red()+c*r.red(),i*a.green()+c*r.green(),i*a.blue()+c*r.blue(),a.alpha()*n+r.alpha()*(1-n))}},Object.keys(n).forEach(function(e){if(-1===s.indexOf(e)){var t=n[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var a,r="number"==typeof arguments[t]?t:this.valpha;return new l((a=n[this.model][e].raw(this.color),Array.isArray(a)?a:[a]).concat(r),e)},l[e]=function(a){return"number"==typeof a&&(a=b(o.call(arguments),t)),new l(a,e)}}}),e.exports=l},7:e=>{"use strict";var t,a="object"==typeof Reflect?Reflect:null,r=a&&"function"==typeof a.apply?a.apply:function(e,t,a){return Function.prototype.apply.call(e,t,a)};t=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(a,r){function n(a){e.removeListener(t,o),r(a)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",n),a([].slice.call(arguments))}h(e,t,o,{once:!0}),"error"!==t&&function(e,t,a){"function"==typeof e.on&&h(e,"error",t,a)}(e,n,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,a,r){var n,o,s,l;if(i(a),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),o=e._events),s=o[t]),void 0===s)s=o[t]=a,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[a,s]:[s,a]:r?s.unshift(a):s.push(a),(n=c(e))>0&&s.length>n&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,a){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=u.bind(r);return n.listener=a,r.wrapFn=n,n}function b(e,t,a){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"==typeof n?a?[n.listener||n]:[n]:a?function(e){for(var t=new Array(e.length),a=0;a<t.length;++a)t[a]=e[a].listener||e[a];return t}(n):f(n,n.length)}function p(e){var t=this._events;if(void 0!==t){var a=t[e];if("function"==typeof a)return 1;if(void 0!==a)return a.length}return 0}function f(e,t){for(var a=new Array(t),r=0;r<t;++r)a[r]=e[r];return a}function h(e,t,a,r){if("function"==typeof e.on)r.once?e.once(t,a):e.on(t,a);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function n(o){r.once&&e.removeEventListener(t,n),a(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],a=1;a<arguments.length;a++)t.push(arguments[a]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var i=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw i.context=s,i}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,u=f(c,l);for(a=0;a<l;++a)r(u[a],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return i(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return i(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var a,r,n,o,s;if(i(t),void 0===(r=this._events))return this;if(void 0===(a=r[e]))return this;if(a===t||a.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,a.listener||t));else if("function"!=typeof a){for(n=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){s=a[o].listener,n=o;break}if(n<0)return this;0===n?a.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(a,n),1===a.length&&(r[e]=a[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,a,r;if(void 0===(a=this._events))return this;if(void 0===a.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==a[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete a[e]),this;if(0===arguments.length){var n,o=Object.keys(a);for(r=0;r<o.length;++r)"removeListener"!==(n=o[r])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=a[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return b(this,e,!0)},o.prototype.rawListeners=function(e){return b(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},357:e=>{var t="__lodash_placeholder__",a=32,r=1/0,n=NaN,o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],s="[object Function]",i="[object GeneratorFunction]",c=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,u=/\{\n\/\* \[wrapped with (.+)\] \*/,d=/,? & /,b=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^\[object .+?Constructor\]$/,h=/^0o[0-7]+$/i,m=/^(?:0|[1-9]\d*)$/,v=parseInt,g="object"==typeof global&&global&&global.Object===Object&&global,y="object"==typeof self&&self&&self.Object===Object&&self,E=g||y||Function("return this")();function k(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function j(e,t){return!!(e?e.length:0)&&function(e,t,a){if(t!=t)return function(e,t,a,r){var n=e.length,o=a+(r?1:-1);for(;r?o--:++o<n;)if(t(e[o],o,e))return o;return-1}(e,w,a);var r=a-1,n=e.length;for(;++r<n;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function w(e){return e!=e}function x(e,a){for(var r=-1,n=e.length,o=0,s=[];++r<n;){var i=e[r];i!==a&&i!==t||(e[r]=t,s[o++]=r)}return s}var C,O,M,S=Function.prototype,_=Object.prototype,A=E["__core-js_shared__"],F=(C=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",P=S.toString,R=_.hasOwnProperty,D=_.toString,I=RegExp("^"+P.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=Object.create,B=Math.max,N=Math.min,L=(O=H(Object,"defineProperty"),(M=H.name)&&M.length>2?O:void 0);function q(e){if(!X(e)||function(e){return!!F&&F in e}(e))return!1;var t=function(e){var t=X(e)?D.call(e):"";return t==s||t==i}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?I:f;return t.test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function V(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 a,r=X(a=e.prototype)?z(a):{},n=e.apply(r,t);return X(n)?n:r}}function T(e,t,a,r,n,o,s,i,c,l){var u=128&t,d=1&t,b=2&t,p=24&t,f=512&t,h=b?void 0:V(e);return function m(){for(var v=arguments.length,g=Array(v),y=v;y--;)g[y]=arguments[y];if(p)var k=U(m),j=function(e,t){for(var a=e.length,r=0;a--;)e[a]===t&&r++;return r}(g,k);if(r&&(g=function(e,t,a,r){for(var n=-1,o=e.length,s=a.length,i=-1,c=t.length,l=B(o-s,0),u=Array(c+l),d=!r;++i<c;)u[i]=t[i];for(;++n<s;)(d||n<o)&&(u[a[n]]=e[n]);for(;l--;)u[i++]=e[n++];return u}(g,r,n,p)),o&&(g=function(e,t,a,r){for(var n=-1,o=e.length,s=-1,i=a.length,c=-1,l=t.length,u=B(o-i,0),d=Array(u+l),b=!r;++n<u;)d[n]=e[n];for(var p=n;++c<l;)d[p+c]=t[c];for(;++s<i;)(b||n<o)&&(d[p+a[s]]=e[n++]);return d}(g,o,s,p)),v-=j,p&&v<l){var w=x(g,k);return K(e,t,T,m.placeholder,a,g,w,i,c,l-v)}var C=d?a:this,O=b?C[e]:e;return v=g.length,i?g=function(e,t){var a=e.length,r=N(t.length,a),n=function(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a<r;)t[a]=e[a];return t}(e);for(;r--;){var o=t[r];e[r]=J(o,a)?n[o]:void 0}return e}(g,i):f&&v>1&&g.reverse(),u&&c<v&&(g.length=c),this&&this!==E&&this instanceof m&&(O=h||V(O)),O.apply(C,g)}}function K(e,t,r,n,o,s,i,c,l,u){var d=8&t;t|=d?a:64,4&(t&=~(d?64:a))||(t&=-4);var b=r(e,t,o,d?s:void 0,d?i:void 0,d?void 0:s,d?void 0:i,c,l,u);return b.placeholder=n,G(b,e,t)}function W(e,t,r,n,o,s,i,c){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var u=n?n.length:0;if(u||(t&=-97,n=o=void 0),i=void 0===i?i:B(te(i),0),c=void 0===c?c:te(c),u-=o?o.length:0,64&t){var d=n,b=o;n=o=void 0}var p=[e,t,r,n,o,d,b,s,i,c];if(e=p[0],t=p[1],r=p[2],n=p[3],o=p[4],!(c=p[9]=null==p[9]?l?0:e.length:B(p[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)f=8==t||16==t?function(e,t,a){var r=V(e);return function n(){for(var o=arguments.length,s=Array(o),i=o,c=U(n);i--;)s[i]=arguments[i];var l=o<3&&s[0]!==c&&s[o-1]!==c?[]:x(s,c);return(o-=l.length)<a?K(e,t,T,n.placeholder,void 0,s,l,void 0,void 0,a-o):k(this&&this!==E&&this instanceof n?r:e,this,s)}}(e,t,c):t!=a&&33!=t||o.length?T.apply(void 0,p):function(e,t,a,r){var n=1&t,o=V(e);return function t(){for(var s=-1,i=arguments.length,c=-1,l=r.length,u=Array(l+i),d=this&&this!==E&&this instanceof t?o:e;++c<l;)u[c]=r[c];for(;i--;)u[c++]=arguments[++s];return k(d,n?a:this,u)}}(e,t,r,n);else var f=function(e,t,a){var r=1&t,n=V(e);return function t(){return(this&&this!==E&&this instanceof t?n:e).apply(r?a:this,arguments)}}(e,t,r);return G(f,e,t)}function U(e){return e.placeholder}function H(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return q(a)?a:void 0}function $(e){var t=e.match(u);return t?t[1].split(d):[]}function Y(e,t){var a=t.length,r=a-1;return t[r]=(a>1?"& ":"")+t[r],t=t.join(a>2?", ":" "),e.replace(l,"{\n/* [wrapped with "+t+"] */\n")}function J(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||m.test(e))&&e>-1&&e%1==0&&e<t}var G=L?function(e,t,a){var r,n=t+"";return L(e,"toString",{configurable:!0,enumerable:!1,value:(r=Y(n,Q($(n),a)),function(){return r})})}:function(e){return e};function Q(e,t){return function(e,t){for(var a=-1,r=e?e.length:0;++a<r&&!1!==t(e[a],a,e););}(o,function(a){var r="_."+a[0];t&a[1]&&!j(e,r)&&e.push(r)}),e.sort()}function Z(e,t,a){var r=W(e,8,void 0,void 0,void 0,void 0,void 0,t=a?void 0:t);return r.placeholder=Z.placeholder,r}function X(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ee(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==D.call(e)}(e))return n;if(X(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=X(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var a=p.test(e);return a||h.test(e)?v(e.slice(2),a?2:8):b.test(e)?n:+e}(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function te(e){var t=ee(e),a=t%1;return t==t?a?t-a:t:0}Z.placeholder={},e.exports=Z},491:(e,t,a)=>{"use strict";var r=a(496),n=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(e){for(var t=[],a=0,s=e.length;a<s;a++){var i=e[a];r(i)?t=n.call(t,o.call(i)):t.push(i)}return t};s.wrap=function(e){return function(){return e(s(arguments))}}},496:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},119:t=>{"use strict";t.exports=e}},a={};function r(e){var n=a[e];if(void 0!==n)return n.exports;var o=a[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function e(t){return e="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(t)}function t(t){var a=function(t,a){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,a||"default");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(t)}(t,"string");return"symbol"==e(a)?a:a+""}function a(e,a,r){return(a=t(a))in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t(n.key),n)}}function l(e,t,a){return t&&c(e.prototype,t),a&&c(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function b(t,a){if(a&&("object"==e(a)||"function"==typeof a))return a;if(void 0!==a)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function p(e,t,a){return t=u(t),b(e,d()?Reflect.construct(t,a||[],u(e).constructor):t.apply(e,a))}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}r.r(n),r.d(n,{default:()=>Et});var m=r(119),v=r.n(m);function g(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function y(e){this.setState(function(t){var a=this.constructor.getDerivedStateFromProps(e,t);return null!=a?a:null}.bind(this))}function E(e,t){try{var a=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,r)}finally{this.props=a,this.state=r}}function k(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var a=null,r=null,n=null;if("function"==typeof t.componentWillMount?a="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(a="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?n="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(n="UNSAFE_componentWillUpdate"),null!==a||null!==r||null!==n){var o=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==a?"\n "+a:"")+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=g,t.componentWillReceiveProps=y),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=E;var i=t.componentDidUpdate;t.componentDidUpdate=function(e,t,a){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:a;i.call(this,e,t,r)}}return e}function j(e,t){if(null==e)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;a[r]=e[r]}return a}function w(e,t){if(null==e)return{};var a,r,n=j(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],-1===t.indexOf(a)&&{}.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function x(e,t){if(t&&(null==e?void 0:e.constructor)===t)return"bigNumber";var a=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e);return"number"===a&&(a=isNaN(e)?"nan":(0|e)!=e?"float":"integer"),a}function C(e){return e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\f/g,"\\f")}g.__suppressDeprecationWarning=!0,y.__suppressDeprecationWarning=!0,E.__suppressDeprecationWarning=!0;var O={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},M={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"};const S={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px",commaColor:"#666",commaFontSize:"12px",commaMarginRight:"4px"};function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function A(e,t){if(e){if("string"==typeof e)return _(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_(e,t):void 0}}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,s,i=[],c=!0,l=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(r=o.call(a)).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){l=!0,n=e}finally{try{if(!c&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(l)throw n}}return i}}(e,t)||A(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var P=r(579),R=r(520),D=r.n(R),I=r(357),z=r.n(I);function B(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var L=P.default,q=Object.keys(L),V=function(e){var t,a=function(e){var t=e[0]/255,a=e[1]/255,r=e[2]/255;return[.299*t+.587*a+.114*r,-.14713*t+-.28886*a+.436*r,.615*t+-.51499*a+-.10001*r]}(D()(e).array()),r=F(a,3),n=r[0],o=r[1],s=r[2],i=function(e){var t,a,r,n=e[0],o=e[1],s=e[2];return t=1*n+0*o+1.13983*s,a=1*n+-.39465*o+-.5806*s,r=1*n+2.02311*o+0*s,[255*(t=Math.min(Math.max(0,t),1)),255*(a=Math.min(Math.max(0,a),1)),255*(r=Math.min(Math.max(0,r),1))]}([(t=n,t<.25?1:t<.5?.9-t:1.1-t),o,s]);return D().rgb(i).hex()},T=function(e){return function(t){return{className:[t.className,e.className].filter(Boolean).join(" "),style:N(N({},t.style||{}),e.style||{})}}},K=function(t,a){var r=Object.keys(a);for(var n in t)-1===r.indexOf(n)&&r.push(n);return r.reduce(function(r,n){return r[n]=function(t,a){if(void 0===t)return a;if(void 0===a)return t;var r=e(t),n=e(a);switch(r){case"string":switch(n){case"string":return[a,t].filter(Boolean).join(" ");case"object":return T({className:t,style:a});case"function":return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return T({className:t})(a.apply(void 0,[e].concat(n)))}}break;case"object":switch(n){case"string":return T({className:a,style:t});case"object":return N(N({},a),t);case"function":return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return T({style:t})(a.apply(void 0,[e].concat(n)))}}break;case"function":switch(n){case"string":return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.apply(void 0,[T(e)({className:a})].concat(n))};case"object":return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.apply(void 0,[T(e)({style:a})].concat(n))};case"function":return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.apply(void 0,[a.apply(void 0,[e].concat(n))].concat(n))}}}}(t[n],a[n]),r},{})},W=function(t,a){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(null===a)return t;Array.isArray(a)||(a=[a]);var s=a.map(function(e){return t[e]}).filter(Boolean).reduce(function(t,a){return"string"==typeof a?t.className=[t.className,a].filter(Boolean).join(" "):"object"===e(a)?t.style=N(N({},t.style),a):"function"==typeof a&&(t=N(N({},t),a.apply(void 0,[t].concat(n)))),t},{className:"",style:{}});return s.className||delete s.className,0===Object.keys(s.style).length&&delete s.style,s},U=function(e){return Object.keys(e).reduce(function(t,a){return t[a]=/^base/.test(a)?V(e[a]):"scheme"===a?e[a]+":inverted":e[a],t},{})},H=z()(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.defaultBase16,n=void 0===r?L:r,o=t.base16Themes,s=Y(a,void 0===o?null:o);s&&(a=N(N({},s),a));for(var i=q.reduce(function(e,t){return e[t]=a[t]||n[t],e},{}),c=Object.keys(a).reduce(function(e,t){return-1===q.indexOf(t)?(e[t]=a[t],e):e},{}),l=e(i),u=K(c,l),d=arguments.length,b=new Array(d>3?d-3:0),p=3;p<d;p++)b[p-3]=arguments[p];return z()(W,2).apply(void 0,[u].concat(b))},3),$=function(e){return!!e.extend},Y=function(e,t){if(e&&$(e)&&e.extend&&(e=e.extend),"string"==typeof e){var a=F(e.split(":"),2),r=a[0],n=a[1];e=t?t[r]:P[r],"inverted"===n&&(e=U(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},J=function(e){var t=function(e){return{backgroundColor:e.base00,ellipsisColor:e.base09,braceColor:e.base07,expandedIcon:e.base0D,collapsedIcon:e.base0E,keyColor:e.base07,arrayKeyColor:e.base0C,objectSize:e.base04,copyToClipboard:e.base0F,copyToClipboardCheck:e.base0D,objectBorder:e.base02,dataTypes:{boolean:e.base0E,date:e.base0D,float:e.base0B,function:e.base0D,integer:e.base0F,string:e.base09,nan:e.base08,null:e.base0A,undefined:e.base05,regexp:e.base0A,background:e.base02,bigNumber:e.base09},editVariable:{editIcon:e.base0E,cancelIcon:e.base09,removeIcon:e.base09,addIcon:e.base0E,checkIcon:e.base0E,background:e.base01,color:e.base0A,border:e.base07},addKeyModal:{background:e.base05,border:e.base04,color:e.base0A,labelColor:e.base01},validationFailure:{background:e.base09,iconColor:e.base01,fontColor:e.base01}}}(e);return{"app-container":{fontFamily:S.globalFontFamily,cursor:S.globalCursor,backgroundColor:t.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:t.ellipsisColor,fontSize:S.ellipsisFontSize,lineHeight:S.ellipsisLineHeight,cursor:S.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:S.braceCursor,fontWeight:S.braceFontWeight,color:t.braceColor},"expanded-icon":{color:t.expandedIcon},"collapsed-icon":{color:t.collapsedIcon},colon:{display:"inline-block",margin:S.keyMargin,color:t.keyColor,verticalAlign:"top"},objectKeyVal:function(e,a){return{style:s({paddingTop:S.keyValPaddingTop,paddingRight:S.keyValPaddingRight,paddingBottom:S.keyValPaddingBottom,borderLeft:S.keyValBorderLeft+" "+t.objectBorder,":hover":{paddingLeft:a.paddingLeft-1+"px",borderLeft:S.keyValBorderHover+" "+t.objectBorder}},a)}},"object-key-val-no-border":{padding:S.keyValPadding},"pushed-content":{marginLeft:S.pushedContentMarginLeft},variableValue:function(e,t){return{style:s({display:"inline-block",paddingRight:S.variableValuePaddingRight,position:"relative"},t)}},"object-name":{display:"inline-block",color:t.keyColor,letterSpacing:S.keyLetterSpacing,fontStyle:S.keyFontStyle,verticalAlign:S.keyVerticalAlign,opacity:S.keyOpacity,":hover":{opacity:S.keyOpacityHover}},"array-key":{display:"inline-block",color:t.arrayKeyColor,letterSpacing:S.keyLetterSpacing,fontStyle:S.keyFontStyle,verticalAlign:S.keyVerticalAlign,opacity:S.keyOpacity,":hover":{opacity:S.keyOpacityHover}},"object-size":{color:t.objectSize,borderRadius:S.objectSizeBorderRadius,fontStyle:S.objectSizeFontStyle,margin:S.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:S.dataTypeFontSize,marginRight:S.dataTypeMarginRight,opacity:S.datatypeOpacity},boolean:{display:"inline-block",color:t.dataTypes.boolean},date:{display:"inline-block",color:t.dataTypes.date},"date-value":{marginLeft:S.dateValueMarginLeft},float:{display:"inline-block",color:t.dataTypes.float},function:{display:"inline-block",color:t.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:t.dataTypes.integer},bigNumber:{display:"inline-block",color:t.dataTypes.bigNumber},string:{display:"inline-block",color:t.dataTypes.string},nan:{display:"inline-block",color:t.dataTypes.nan,fontSize:S.nanFontSize,fontWeight:S.nanFontWeight,backgroundColor:t.dataTypes.background,padding:S.nanPadding,borderRadius:S.nanBorderRadius},null:{display:"inline-block",color:t.dataTypes.null,fontSize:S.nullFontSize,fontWeight:S.nullFontWeight,backgroundColor:t.dataTypes.background,padding:S.nullPadding,borderRadius:S.nullBorderRadius},undefined:{display:"inline-block",color:t.dataTypes.undefined,fontSize:S.undefinedFontSize,padding:S.undefinedPadding,borderRadius:S.undefinedBorderRadius,backgroundColor:t.dataTypes.background},regexp:{display:"inline-block",color:t.dataTypes.regexp},"copy-to-clipboard":{cursor:S.clipboardCursor},"copy-icon":{color:t.copyToClipboard,fontSize:S.iconFontSize,marginRight:S.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:t.copyToClipboardCheck,marginLeft:S.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:S.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:S.metaDataPadding},"icon-container":{display:"inline-block",width:S.iconContainerWidth},tooltip:{padding:S.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.removeIcon,cursor:S.iconCursor,fontSize:S.iconFontSize,marginRight:S.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.addIcon,cursor:S.iconCursor,fontSize:S.iconFontSize,marginRight:S.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.editIcon,cursor:S.iconCursor,fontSize:S.iconFontSize,marginRight:S.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:S.iconCursor,color:t.editVariable.checkIcon,fontSize:S.iconFontSize,paddingRight:S.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:S.iconCursor,color:t.editVariable.cancelIcon,fontSize:S.iconFontSize,paddingRight:S.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:S.editInputMinWidth,borderRadius:S.editInputBorderRadius,backgroundColor:t.editVariable.background,color:t.editVariable.color,padding:S.editInputPadding,marginRight:S.editInputMarginRight,fontFamily:S.editInputFontFamily},"detected-row":{paddingTop:S.detectedRowPaddingTop},"key-modal-request":{position:S.addKeyCoverPosition,top:S.addKeyCoverPositionPx,left:S.addKeyCoverPositionPx,right:S.addKeyCoverPositionPx,bottom:S.addKeyCoverPositionPx,backgroundColor:S.addKeyCoverBackground},"key-modal":{width:S.addKeyModalWidth,backgroundColor:t.addKeyModal.background,marginLeft:S.addKeyModalMargin,marginRight:S.addKeyModalMargin,padding:S.addKeyModalPadding,borderRadius:S.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:t.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:t.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:t.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:t.addKeyModal.labelColor,fontSize:S.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:t.editVariable.addIcon,fontSize:S.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:t.ellipsisColor,fontSize:S.ellipsisFontSize,lineHeight:S.ellipsisLineHeight,cursor:S.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:t.validationFailure.fontColor,backgroundColor:t.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:t.validationFailure.iconColor,fontSize:S.iconFontSize,transform:"rotate(45deg)"},comma:{display:"inline-block",color:S.commaColor,fontSize:S.commaFontSize,marginRight:S.commaMarginRight,cursor:"default"}}};function G(e,t,a){return e||console.error("theme has not been set"),function(e){var t=O;return!1!==e&&"none"!==e||(t=M),H(J,{defaultBase16:t})(e)}(e)(t,a)}var Q=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=(e.rjvId,e.type_name),a=e.displayDataTypes,r=e.theme;return a?v().createElement("span",Object.assign({className:"data-type-label"},G(r,"data-type-label")),t):null}}])}(v().PureComponent),Z=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"boolean"),v().createElement(Q,Object.assign({type_name:"bool"},e)),e.value?"true":"false")}}])}(v().PureComponent),X=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"date"),v().createElement(Q,Object.assign({type_name:"date"},e)),v().createElement("span",Object.assign({className:"date-value"},G(e.theme,"date-value")),e.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}])}(v().PureComponent),ee=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"float"),v().createElement(Q,Object.assign({type_name:"float"},e)),this.props.value)}}])}(v().PureComponent);function te(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ae=r(7),re=function(){return l(function e(){i(this,e),this.handler=function(){}},[{key:"register",value:function(e){this.handler=e}},{key:"dispatch",value:function(e){var t;null===(t=this.handler)||void 0===t||t.call(this,e)}}])}();globalThis.__globalDispatcherInstance||(globalThis.__globalDispatcherInstance=new re);const ne=globalThis.__globalDispatcherInstance;var oe=new(function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];return(e=p(this,t,[].concat(r))).objects={},e.set=function(t,a,r,n){void 0===e.objects[t]&&(e.objects[t]={}),void 0===e.objects[t][a]&&(e.objects[t][a]={}),e.objects[t][a][r]=n},e.get=function(t,a,r,n){return void 0===e.objects[t]||void 0===e.objects[t][a]||null==e.objects[t][a][r]?n:e.objects[t][a][r]},e.handleAction=function(t){var a=t.rjvId,r=t.data;switch(t.name){case"RESET":e.emit("reset-"+a);break;case"VARIABLE_UPDATED":t.data.updated_src=e.updateSrc(a,r),e.set(a,"action","variable-update",s(s({},r),{},{type:"variable-edited"})),e.emit("variable-update-"+a);break;case"VARIABLE_REMOVED":t.data.updated_src=e.updateSrc(a,r),e.set(a,"action","variable-update",s(s({},r),{},{type:"variable-removed"})),e.emit("variable-update-"+a);break;case"VARIABLE_ADDED":t.data.updated_src=e.updateSrc(a,r),e.set(a,"action","variable-update",s(s({},r),{},{type:"variable-added"})),e.emit("variable-update-"+a);break;case"ADD_VARIABLE_KEY_REQUEST":e.set(a,"action","new-key-request",r),e.emit("add-key-request-"+a)}},e.updateSrc=function(t,a){var r=a.name,n=a.namespace,o=a.new_value,s=(a.existing_value,a.variable_removed);n.shift();var i,c=e.get(t,"global","src"),l=e.deepCopy(c,te(n)),u=l,d=function(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=A(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}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,s=!0,i=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){i=!0,o=e},f:function(){try{s||null==a.return||a.return()}finally{if(i)throw o}}}}(n);try{for(d.s();!(i=d.n()).done;){u=u[i.value]}}catch(e){d.e(e)}finally{d.f()}return s?"array"==x(u)?u.splice(r,1):delete u[r]:null!==r?u[r]=o:l=o,e.set(t,"global","src",l),l},e.deepCopy=function(t,a){var r,n=x(t),o=a.shift();return"array"==n?r=te(t):"object"==n&&(r=s({},t)),void 0!==o&&(r[o]=e.deepCopy(t[o],a)),r},e}return h(t,e),l(t)}(ae.EventEmitter));ne.register(oe.handleAction.bind(oe));const se=oe;var ie=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},function(){se.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)})},a.getFunctionDisplay=function(e){var t=a.props;return e?v().createElement("span",null,a.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),v().createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},v().createElement("span",null,"{"),v().createElement("span",G(t.theme,"ellipsis"),"..."),v().createElement("span",null,"}"))):a.props.value.toString().slice(9,-1)},a.state={collapsed:se.get(e.rjvId,e.namespace,"collapsed",!0)},a}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return v().createElement("div",G(e.theme,"function"),v().createElement(Q,Object.assign({type_name:"function"},e)),v().createElement("span",Object.assign({},G(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}])}(v().PureComponent),ce=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){return v().createElement("div",G(this.props.theme,"nan"),"NaN")}}])}(v().PureComponent),le=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){return v().createElement("div",G(this.props.theme,"null"),"NULL")}}])}(v().PureComponent),ue=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"integer"),v().createElement(Q,Object.assign({type_name:"int"},e)),this.props.value)}}])}(v().PureComponent),de=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"regexp"),v().createElement(Q,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}])}(v().PureComponent),be=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},function(){se.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)})},a.state={collapsed:se.get(e.rjvId,e.namespace,"collapsed",!0)},a}return h(t,e),l(t,[{key:"render",value:function(){var e=this.state.collapsed,t=this.props,a=t.collapseStringsAfterLength,r=t.theme,n=t.escapeStrings,o=t.value,s="integer"===x(a),i={style:{cursor:"default",wordBreak:"break-all"}};return n&&(o=C(o)),s&&o.length>a&&(i.style.cursor="pointer",e&&(o=v().createElement("span",null,o.substring(0,a),v().createElement("span",G(r,"ellipsis")," ...")))),v().createElement("div",G(r,"string"),v().createElement(Q,Object.assign({type_name:"string"},t)),v().createElement("span",Object.assign({className:"string-value"},i,{onClick:this.toggleCollapsed}),'"',o,'"'))}}])}(v().PureComponent),pe=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){return v().createElement("div",G(this.props.theme,"undefined"),"undefined")}}])}(v().PureComponent),fe=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"bigNumber"),v().createElement(Q,Object.assign({type_name:"bigNumber"},e)),this.props.value.toString())}}])}(v().PureComponent);function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},he.apply(null,arguments)}var me=m.useLayoutEffect,ve=function(e,t){"function"!=typeof e?e.current=t:e(t)},ge={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},ye=function(e){Object.keys(ge).forEach(function(t){e.style.setProperty(t,ge[t],"important")})},Ee=null,ke=function(e,t){var a=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?a+t.borderSize:a-t.paddingSize};var je=function(){},we=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],xe=!!document.documentElement.currentStyle,Ce=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var a,r=(a=t,we.reduce(function(e,t){return e[t]=a[t],e},{})),n=r.boxSizing;return""===n?null:(xe&&"border-box"===n&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function Oe(e,t,a){var r,n,o=(r=a,n=v().useRef(r),me(function(){n.current=r}),n);m.useLayoutEffect(function(){var a=function(e){return o.current(e)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var Me=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Se=function(e,t){var a=e.cacheMeasurements,r=e.maxRows,n=e.minRows,o=e.onChange,s=void 0===o?je:o,i=e.onHeightChange,c=void 0===i?je:i,l=j(e,Me),u=void 0!==l.value,d=m.useRef(null),b=function(e,t){var a=v().useRef();return v().useCallback(function(r){e.current=r,a.current&&ve(a.current,null),a.current=t,t&&ve(t,r)},[t])}(d,t),p=m.useRef(0),f=m.useRef(),h=function(){var e=d.current,t=a&&f.current?f.current:Ce(e);if(t){f.current=t;var o=function(e,t,a,r){void 0===a&&(a=1),void 0===r&&(r=1/0),Ee||((Ee=document.createElement("textarea")).setAttribute("tabindex","-1"),Ee.setAttribute("aria-hidden","true"),ye(Ee)),null===Ee.parentNode&&document.body.appendChild(Ee);var n=e.paddingSize,o=e.borderSize,s=e.sizingStyle,i=s.boxSizing;Object.keys(s).forEach(function(e){var t=e;Ee.style[t]=s[t]}),ye(Ee),Ee.value=t;var c=ke(Ee,e);Ee.value=t,c=ke(Ee,e),Ee.value="x";var l=Ee.scrollHeight-n,u=l*a;"border-box"===i&&(u=u+n+o),c=Math.max(u,c);var d=l*r;return"border-box"===i&&(d=d+n+o),[c=Math.min(d,c),l]}(t,e.value||e.placeholder||"x",n,r),s=o[0],i=o[1];p.current!==s&&(p.current=s,e.style.setProperty("height",s+"px","important"),c(s,{rowHeight:i}))}};return m.useLayoutEffect(h),function(e,t){Oe(document.body,"reset",function(a){e.current.form===a.target&&t(a)})}(d,function(){if(!u){var e=d.current.value;requestAnimationFrame(function(){var t=d.current;t&&e!==t.value&&h()})}}),Oe(window,"resize",h),function(e){Oe(document.fonts,"loadingdone",e)}(h),m.createElement("textarea",he({},l,{onChange:function(e){u||h(),s(e)},ref:b}))},_e=m.forwardRef(Se);function Ae(e,t){e=e.trim();try{if("["===(e=structuredClone(e))[0])return Fe("array",JSON.parse(e));if("{"===e[0])return Fe("object",JSON.parse(e));if(e.match(/\-?\d+\.\d+/)&&e.match(/\-?\d+\.\d+/)[0]===e)return t&&parseFloat(e).toString()!==e?Fe("bigNumber",e):Fe("float",parseFloat(e));if(e.match(/\-?\d+e-\d+/)&&e.match(/\-?\d+e-\d+/)[0]===e)return Fe("float",Number(e));if(e.match(/\-?\d+/)&&e.match(/\-?\d+/)[0]===e)return t&&parseInt(e).toString()!==e?Fe("bigNumber",e):Fe("integer",parseInt(e));if(e.match(/\-?\d+e\+\d+/)&&e.match(/\-?\d+e\+\d+/)[0]===e)return Fe("integer",Number(e))}catch(e){}switch(e=e.toLowerCase()){case"undefined":return Fe("undefined",void 0);case"nan":return Fe("nan",NaN);case"null":return Fe("null",null);case"true":return Fe("boolean",!0);case"false":return Fe("boolean",!1);default:if(e=Date.parse(e))return Fe("date",new Date(e))}return Fe(!1,null)}function Fe(e,t){return{type:e,value:t}}var Pe=["style"],Re=["style"],De=["style"],Ie=["style"],ze=["style"],Be=["style"],Ne=["style"],Le=["style"],qe=["style"],Ve=["style"],Te=["style"],Ke=["style"],We=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,Pe);return v().createElement("span",a,v().createElement("svg",Object.assign({},at(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),v().createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}])}(v().PureComponent),Ue=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,Re);return v().createElement("span",a,v().createElement("svg",Object.assign({},at(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),v().createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}])}(v().PureComponent),He=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,De),r=at(t).style;return v().createElement("span",a,v().createElement("svg",{fill:r.color,width:r.height,height:r.width,style:r,viewBox:"0 0 1792 1792"},v().createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}])}(v().PureComponent),$e=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,Ie),r=at(t).style;return v().createElement("span",a,v().createElement("svg",{fill:r.color,width:r.height,height:r.width,style:r,viewBox:"0 0 1792 1792"},v().createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}])}(v().PureComponent),Ye=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,ze);return v().createElement("span",a,v().createElement("svg",{style:s(s({},at(t).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},v().createElement("path",{d:"M0 14l6-6-6-6z"})))}}])}(v().PureComponent),Je=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,Be);return v().createElement("span",a,v().createElement("svg",{style:s(s({},at(t).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},v().createElement("path",{d:"M0 5l6 6 6-6z"})))}}])}(v().PureComponent),Ge=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,Ne);return v().createElement("span",a,v().createElement("svg",Object.assign({},at(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),v().createElement("g",null,v().createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}])}(v().PureComponent),Qe=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,Le);return v().createElement("span",a,v().createElement("svg",Object.assign({},at(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),v().createElement("g",null,v().createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}])}(v().PureComponent),Ze=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,qe);return v().createElement("span",a,v().createElement("svg",Object.assign({},at(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),v().createElement("g",null,v().createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}])}(v().PureComponent),Xe=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,Ve);return v().createElement("span",a,v().createElement("svg",Object.assign({},at(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),v().createElement("g",null,v().createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}])}(v().PureComponent),et=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,Te);return v().createElement("span",a,v().createElement("svg",Object.assign({},at(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),v().createElement("g",null,v().createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}])}(v().PureComponent),tt=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.style,a=w(e,Ke);return v().createElement("span",a,v().createElement("svg",Object.assign({},at(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),v().createElement("g",null,v().createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}])}(v().PureComponent);function at(e){return e||(e={}),{style:s(s({verticalAlign:"middle"},e),{},{color:e.color?e.color:"#000000",height:"1em",width:"1em"})}}var rt=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).copiedTimer=null,a.copyToClipboardFallback=function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},a.handleCopy=function(){var e=a.props,t=e.clickCallback,r=e.src,n=e.namespace,o=JSON.stringify(a.clipboardValue(r),null," ");navigator.clipboard?navigator.clipboard.writeText(o).catch(function(){a.copyToClipboardFallback(o)}):a.copyToClipboardFallback(o),a.copiedTimer=setTimeout(function(){a.setState({copied:!1})},5500),a.setState({copied:!0},function(){"function"==typeof t&&t({src:r,namespace:n,name:n[n.length-1]})})},a.getClippyIcon=function(){var e=a.props.theme;return a.state.copied?v().createElement("span",null,v().createElement(Ge,Object.assign({className:"copy-icon"},G(e,"copy-icon"))),v().createElement("span",G(e,"copy-icon-copied"),"✔")):v().createElement(Ge,Object.assign({className:"copy-icon"},G(e,"copy-icon")))},a.clipboardValue=function(e){switch(x(e)){case"function":case"regexp":return e.toString();default:return e}},a.state={copied:!1},a}return h(t,e),l(t,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var e=this.props,t=(e.src,e.theme),a=e.hidden,r=e.rowHovered,n=G(t,"copy-to-clipboard").style,o="inline";return a&&(o="none"),v().createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:r?"inline-block":"none"}},v().createElement("span",{style:s(s({},n),{},{display:o}),onClick:this.handleCopy},this.getClippyIcon()))}}])}(v().PureComponent);const nt=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).getEditIcon=function(){var e=a.props,t=e.variable,r=e.theme;return v().createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:a.state.hovered?"inline-block":"none"}},v().createElement(et,Object.assign({className:"click-to-edit-icon"},G(r,"editVarIcon"),{onClick:function(){a.prepopInput(t)}})))},a.prepopInput=function(e){if(!1!==a.props.onEdit){var t=function(e,t){var a;switch(x(e,t)){case"undefined":a="undefined";break;case"nan":a="NaN";break;case"string":a=e;break;case"bigNumber":case"date":case"function":case"regexp":a=e.toString();break;default:try{a=JSON.stringify(e,null," ")}catch(e){a=""}}return a}(e.value,a.props.bigNumber),r=Ae(t,a.props.bigNumber);a.setState({editMode:!0,editValue:t,parsedInput:{type:r.type,value:r.value}})}},a.getRemoveIcon=function(){var e=a.props,t=e.variable,r=e.namespace,n=e.theme,o=e.rjvId;return v().createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:a.state.hovered?"inline-block":"none"}},v().createElement(Qe,Object.assign({className:"click-to-remove-icon"},G(n,"removeVarIcon"),{onClick:function(){ne.dispatch({name:"VARIABLE_REMOVED",rjvId:o,data:{name:t.name,namespace:r,existing_value:t.value,variable_removed:!0}})}})))},a.getValue=function(e,t){var r=!t&&e.type,n=a.props;switch(r){case!1:return a.getEditInput();case"string":return v().createElement(be,Object.assign({value:e.value},n));case"integer":return v().createElement(ue,Object.assign({value:e.value},n));case"float":return v().createElement(ee,Object.assign({value:e.value},n));case"boolean":return v().createElement(Z,Object.assign({value:e.value},n));case"function":return v().createElement(ie,Object.assign({value:e.value},n));case"null":return v().createElement(le,n);case"nan":return v().createElement(ce,n);case"undefined":return v().createElement(pe,n);case"date":return v().createElement(X,Object.assign({value:e.value},n));case"regexp":return v().createElement(de,Object.assign({value:e.value},n));case"bigNumber":return v().createElement(fe,Object.assign({value:e.value},n));default:return v().createElement("div",{className:"object-value"},JSON.stringify(e.value))}},a.getEditInput=function(){var e=a.props,t=e.keyModifier,r=e.selectOnFocus,n=e.theme,o=a.state.editValue;return v().createElement("div",null,v().createElement(_e,Object.assign({type:"text",ref:function(e){e&&e[r?"select":"focus"]()},value:o,className:"variable-editor",onChange:function(e){var t=e.target.value,r=Ae(t,a.props.bigNumber);a.setState({editValue:t,parsedInput:{type:r.type,value:r.value}})},onKeyDown:function(e){switch(e.key){case"Escape":a.setState({editMode:!1,editValue:""});break;case"Enter":t(e,"submit")&&a.submitEdit(!0)}e.stopPropagation()},placeholder:"update this value",minRows:2},G(n,"edit-input"))),v().createElement("div",G(n,"edit-icon-container"),v().createElement(Qe,Object.assign({className:"edit-cancel"},G(n,"cancel-icon"),{onClick:function(e){e&&e.stopPropagation(),a.setState({editMode:!1,editValue:""})}})),v().createElement(tt,Object.assign({className:"edit-check string-value"},G(n,"check-icon"),{onClick:function(e){e&&e.stopPropagation(),a.submitEdit()}})),v().createElement("div",null,a.showDetected())))},a.submitEdit=function(e){var t=a.props,r=t.variable,n=t.namespace,o=t.rjvId,s=t.bigNumber,i=a.state,c=i.editValue,l=i.parsedInput,u=c;e&&l.type&&(u=l.value,s&&"bigNumber"===l.type&&(u=new s(u))),a.setState({editMode:!1}),ne.dispatch({name:"VARIABLE_UPDATED",rjvId:o,data:{name:r.name,namespace:n,existing_value:r.value,new_value:u,variable_removed:!1}})},a.showDetected=function(){var e=a.props,t=e.theme,r=(e.variable,e.namespace,e.rjvId,a.state.parsedInput),n=(r.type,r.value,a.getDetectedInput());if(n)return v().createElement("div",null,v().createElement("div",G(t,"detected-row"),n,v().createElement(tt,{className:"edit-check detected",style:s({verticalAlign:"top",paddingLeft:"3px"},G(t,"check-icon").style),onClick:function(e){e&&e.stopPropagation(),a.submitEdit(!0)}})))},a.getDetectedInput=function(){var e=a.state.parsedInput,t=e.type,r=e.value,n=a.props,o=n.theme;if(!1!==t)switch(t.toLowerCase()){case"object":return v().createElement("span",null,v().createElement("span",{style:s(s({},G(o,"brace").style),{},{cursor:"default"})},"{"),v().createElement("span",{style:s(s({},G(o,"ellipsis").style),{},{cursor:"default"})},"..."),v().createElement("span",{style:s(s({},G(o,"brace").style),{},{cursor:"default"})},"}"));case"array":return v().createElement("span",null,v().createElement("span",{style:s(s({},G(o,"brace").style),{},{cursor:"default"})},"["),v().createElement("span",{style:s(s({},G(o,"ellipsis").style),{},{cursor:"default"})},"..."),v().createElement("span",{style:s(s({},G(o,"brace").style),{},{cursor:"default"})},"]"));case"string":return v().createElement(be,Object.assign({value:r},n));case"integer":return v().createElement(ue,Object.assign({value:r},n));case"float":return v().createElement(ee,Object.assign({value:r},n));case"boolean":return v().createElement(Z,Object.assign({value:r},n));case"function":return v().createElement(ie,Object.assign({value:r},n));case"null":return v().createElement(le,n);case"nan":return v().createElement(ce,n);case"undefined":return v().createElement(pe,n);case"date":return v().createElement(X,Object.assign({value:new Date(r)},n));case"bignumber":return v().createElement(fe,Object.assign({value:r},n))}},a.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},a}return h(t,e),l(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.variable,r=t.singleIndent,n=t.type,o=t.theme,i=t.namespace,c=t.indentWidth,l=t.enableClipboard,u=t.onEdit,d=t.onDelete,b=t.onSelect,p=t.displayArrayKey,f=t.quotesOnKeys,h=t.keyModifier,m=t.showComma,g=t.isLast,y=this.state.editMode;return v().createElement("div",Object.assign({},G(o,"objectKeyVal",{paddingLeft:c*r}),{onMouseEnter:function(){return e.setState(s(s({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(s(s({},e.state),{},{hovered:!1}))},className:"variable-row",key:a.name}),"array"==n?p?v().createElement("span",Object.assign({},G(o,"array-key"),{key:a.name+"_"+i}),a.name,v().createElement("div",G(o,"colon"),":")):null:v().createElement("span",null,v().createElement("span",Object.assign({},G(o,"object-name"),{className:"object-key",key:a.name+"_"+i}),!!f&&v().createElement("span",{style:{verticalAlign:"top"}},'"'),v().createElement("span",{style:{display:"inline-block"}},C(a.name)),!!f&&v().createElement("span",{style:{verticalAlign:"top"}},'"')),v().createElement("span",G(o,"colon"),":")),v().createElement("div",Object.assign({className:"variable-value",onClick:!1===b&&!1===u?null:function(t){var r=te(i);h(t,"edit")&&!1!==u?e.prepopInput(a):!1!==b&&(r.shift(),b(s(s({},a),{},{namespace:r})))}},G(o,"variableValue",{cursor:!1===b?"default":"pointer"})),this.getValue(a,y)),m&&!g&&v().createElement("span",G(o,"comma"),","),l?v().createElement(rt,{rowHovered:this.state.hovered,hidden:y,src:a.value,clickCallback:l,theme:o,namespace:[].concat(te(i),[a.name])}):null,!1!==u&&0==y?this.getEditIcon():null,!1!==d&&0==y?this.getRemoveIcon():null)}}])}(v().PureComponent);var ot=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];return(e=p(this,t,[].concat(r))).getObjectSize=function(){var t=e.props,a=t.size,r=t.theme;if(t.displayObjectSize)return v().createElement("span",Object.assign({className:"object-size"},G(r,"object-size")),a," item",1===a?"":"s")},e.getAddAttribute=function(t){var a=e.props,r=a.theme,n=a.namespace,o=a.name,i=a.src,c=a.rjvId,l=a.depth;return v().createElement("span",{className:"click-to-add",style:{verticalAlign:"top",display:t?"inline-block":"none"}},v().createElement(Ze,Object.assign({className:"click-to-add-icon"},G(r,"addVarIcon"),{onClick:function(){var e={name:l>0?o:null,namespace:n.splice(0,n.length-1),existing_value:i,variable_removed:!1,key_name:null};"object"===x(i)?ne.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:c,data:e}):ne.dispatch({name:"VARIABLE_ADDED",rjvId:c,data:s(s({},e),{},{new_value:[].concat(te(i),[null])})})}})))},e.getRemoveObject=function(t){var a=e.props,r=a.theme,n=(a.hover,a.namespace),o=a.name,s=a.src,i=a.rjvId;if(1!==n.length)return v().createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},v().createElement(Qe,Object.assign({className:"click-to-remove-icon"},G(r,"removeVarIcon"),{onClick:function(){ne.dispatch({name:"VARIABLE_REMOVED",rjvId:i,data:{name:o,namespace:n.splice(0,n.length-1),existing_value:s,variable_removed:!0}})}})))},e.render=function(){var t=e.props,a=t.theme,r=t.onDelete,n=t.onAdd,o=t.enableClipboard,s=t.src,i=t.namespace,c=t.rowHovered;return v().createElement("div",Object.assign({},G(a,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),o?v().createElement(rt,{rowHovered:c,clickCallback:o,src:s,theme:a,namespace:i}):null,!1!==n?e.getAddAttribute(c):null,!1!==r?e.getRemoveObject(c):null)},e}return h(t,e),l(t)}(v().PureComponent);function st(e){var t=e.parent_type,a=e.namespace,r=e.quotesOnKeys,n=e.theme,o=e.jsvRoot,s=e.name,i=e.displayArrayKey,c=e.keyDecorators,l=e.name?e.name:"";if(!o||!1!==s&&null!==s){if("array"==t){if(!i)return v().createElement("span",null);var u=v().createElement("span",{className:"array-key"},l),d=c&&c[l]?c[l](u):u;return v().createElement("span",Object.assign({},G(n,"array-key"),{key:a}),d,v().createElement("span",G(n,"colon"),":"))}var b=v().createElement("span",{className:"object-key"},r&&v().createElement("span",{style:{verticalAlign:"top"}},'"'),v().createElement("span",null,l),r&&v().createElement("span",{style:{verticalAlign:"top"}},'"')),p=c&&c[l]?c[l](b):b;return v().createElement("span",Object.assign({},G(n,"object-name"),{key:a}),p,v().createElement("span",G(n,"colon"),":"))}return v().createElement("span",null)}function it(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(Je,Object.assign({},G(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return v().createElement(He,Object.assign({},G(t,"expanded-icon"),{className:"expanded-icon"}));default:return v().createElement(We,Object.assign({},G(t,"expanded-icon"),{className:"expanded-icon"}))}}function ct(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(Ye,Object.assign({},G(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return v().createElement($e,Object.assign({},G(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return v().createElement(Ue,Object.assign({},G(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var lt=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],ut=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(e){var t=[];for(var r in a.state.expanded)t.push(a.state.expanded[r]);t[e]=!t[e],a.setState({expanded:t})},a.state={expanded:[]},a}return h(t,e),l(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,a=t.theme,r=t.iconStyle;return this.state.expanded[e]?v().createElement(it,{theme:a,iconStyle:r}):v().createElement(ct,{theme:a,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,a=t.src,r=t.groupArraysAfterLength,n=(t.depth,t.name),o=t.theme,s=t.jsvRoot,i=t.namespace,c=(t.parent_type,w(t,lt)),l=0,u=5*this.props.indentWidth;s||(l=5*this.props.indentWidth);var d=r,b=Math.ceil(a.length/d);return v().createElement("div",Object.assign({className:"object-key-val"},G(o,s?"jsv-root":"objectKeyVal",{paddingLeft:l})),v().createElement(st,this.props),v().createElement("span",null,v().createElement(ot,Object.assign({size:a.length},this.props))),te(Array(b)).map(function(t,r){return v().createElement("div",Object.assign({key:r,className:"object-key-val array-group"},G(o,"objectKeyVal",{marginLeft:6,paddingLeft:u})),v().createElement("span",G(o,"brace-row"),v().createElement("div",Object.assign({className:"icon-container"},G(o,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?v().createElement(ft,Object.assign({key:n+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:r*d,src:a.slice(r*d,r*d+d),namespace:i,type:"array",parent_type:"array_group",theme:o,showComma:e.props.showComma,isLast:r===b-1},c)):v().createElement("span",Object.assign({},G(o,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",v().createElement("div",Object.assign({},G(o,"array-group-meta-data"),{className:"array-group-meta-data"}),v().createElement("span",Object.assign({className:"object-size"},G(o,"object-size")),r*d," - ",r*d+d>a.length?a.length:r*d+d)),"]")))}))}}])}(v().PureComponent),dt=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle","showComma","isLast"],bt=function(e){function t(e){var a;i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({expanded:!a.state.expanded},function(){se.set(a.props.rjvId,a.props.namespace,"expanded",a.state.expanded)})},a.getObjectContent=function(e,t,r){return v().createElement("div",{className:"pushed-content object-container"},v().createElement("div",Object.assign({className:"object-content"},G(a.props.theme,"pushed-content")),a.renderObjectContents(t,r)))},a.getEllipsis=function(){return 0===a.state.size?null:v().createElement("div",Object.assign({},G(a.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:a.toggleCollapsed}),"...")},a.getObjectMetaData=function(e){var t=a.props,r=(t.rjvId,t.theme,a.state),n=r.size,o=r.hovered;return v().createElement(ot,Object.assign({rowHovered:o,size:n},a.props))},a.renderObjectContents=function(e,t){var r,n=a.props,o=n.depth,s=n.parent_type,i=n.index_offset,c=n.groupArraysAfterLength,l=n.namespace,u=n.showComma,d=a.state.object_type,b=[],p=Object.keys(e||{});return a.props.sortKeys&&"array"!==d&&(p=p.sort()),p.forEach(function(n,f){r=new pt(n,e[n],t.bigNumber);var h=f===p.length-1;if("array_group"===s&&i&&(r.name=parseInt(r.name)+i),Object.prototype.hasOwnProperty.call(e,n))if("object"===r.type)b.push(v().createElement(ft,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:l.concat(r.name),parent_type:d,isLast:h,showComma:u},t)));else if("array"===r.type){var m=ft;c&&r.value.length>c&&(m=ut),b.push(v().createElement(m,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:l.concat(r.name),type:"array",parent_type:d,isLast:h,showComma:u},t)))}else b.push(v().createElement(nt,Object.assign({key:r.name+"_"+l,variable:r,singleIndent:5,namespace:l,type:a.props.type,isLast:h,showComma:u},t)));else;}),b};var r=t.getState(e);return a.state=s(s({},r),{},{prevProps:{}}),a}return h(t,e),l(t,[{key:"getBraceStart",value:function(e,t){var a=this,r=this.props,n=(r.src,r.theme),o=r.iconStyle;if("array_group"===r.parent_type)return v().createElement("span",null,v().createElement("span",G(n,"brace"),"array"===e?"[":"{"));var s=t?it:ct;return v().createElement("span",null,v().createElement("span",Object.assign({onClick:function(e){a.toggleCollapsed()}},G(n,"brace-row")),v().createElement("div",Object.assign({className:"icon-container"},G(n,"icon-container")),v().createElement(s,{theme:n,iconStyle:o})),v().createElement(st,this.props),v().createElement("span",G(n,"brace"),"array"===e?"[":"{")))}},{key:"render",value:function(){var e=this,t=this.props,a=t.depth,r=t.src,n=(t.namespace,t.name,t.type,t.parent_type),o=t.theme,i=t.jsvRoot,c=t.iconStyle,l=t.showComma,u=t.isLast,d=w(t,dt),b=this.state,p=b.object_type,f=b.expanded,h={};return i||"array_group"===n?"array_group"===n&&(h.borderLeft=0,h.display="inline"):h.paddingLeft=5*this.props.indentWidth,v().createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(s(s({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(s(s({},e.state),{},{hovered:!1}))}},G(o,i?"jsv-root":"objectKeyVal",h)),this.getBraceStart(p,f),f?this.getObjectContent(a,r,s({theme:o,iconStyle:c},d)):this.getEllipsis(),v().createElement("span",{className:"brace-row"},v().createElement("span",{style:s(s({},G(o,"brace").style),{},{paddingLeft:f?"3px":"0px"})},"array"===p?"]":"}")),l&&!u&&!i&&v().createElement("span",G(o,"comma"),","),this.getObjectMetaData(r))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var r=a.prevProps;return e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId?s(s({},t.getState(e)),{},{prevProps:e}):null}}])}(v().PureComponent);bt.getState=function(e){var t=Object.keys(e.src).length,a=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:x(e.src),namespace:e.namespace}))&&0!==t;return{expanded:se.get(e.rjvId,e.namespace,"expanded",a),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var pt=l(function e(t,a,r){i(this,e),this.name=t,this.value=a,this.type=x(a,r)});k(bt);const ft=bt;var ht=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];return(e=p(this,t,[].concat(r))).render=function(){var t,a,r,n,o=e.props,s=[o.name],i=ft;"object"!=typeof o.name||Array.isArray(o.name)||(s=[(null===(t=o.name)||void 0===t?void 0:t.displayName)||(null===(a=o.name)||void 0===a?void 0:a.name)||(null===(r=o.name)||void 0===r||null===(n=r.type)||void 0===n?void 0:n.name)||"Anonymous"]);return Array.isArray(o.src)&&o.groupArraysAfterLength&&o.src.length>o.groupArraysAfterLength&&(i=ut),v().createElement("div",{className:"pretty-json-container object-container"},v().createElement("div",{className:"object-content"},v().createElement(i,Object.assign({namespace:s,depth:0,jsvRoot:!0},o))))},e}return h(t,e),l(t)}(v().PureComponent),mt=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).closeModal=function(){ne.dispatch({rjvId:a.props.rjvId,name:"RESET"})},a.submit=function(){a.props.submit(a.state.input)},a.state={input:e.input?e.input:""},a}return h(t,e),l(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.theme,r=t.rjvId,n=t.isValid,o=this.state.input,s=n(o);return v().createElement("div",Object.assign({className:"key-modal-request"},G(a,"key-modal-request"),{onClick:this.closeModal}),v().createElement("div",Object.assign({},G(a,"key-modal"),{onClick:function(e){e.stopPropagation()}}),v().createElement("div",G(a,"key-modal-label"),"Key Name:"),v().createElement("div",{style:{position:"relative"}},v().createElement("input",Object.assign({},G(a,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:o,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){s&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),s?v().createElement(tt,Object.assign({},G(a,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),v().createElement("span",G(a,"key-modal-cancel"),v().createElement(Xe,Object.assign({},G(a,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ne.dispatch({rjvId:r,name:"RESET"})}})))))}}])}(v().PureComponent),vt=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];return(e=p(this,t,[].concat(r))).isValid=function(t){var a=e.props.rjvId,r=se.get(a,"action","new-key-request");return""!=t&&-1===Object.keys(r.existing_value).indexOf(t)},e.submit=function(t){var a=e.props.rjvId,r=se.get(a,"action","new-key-request");r.new_value=s({},r.existing_value),r.new_value[t]=e.props.defaultValue,ne.dispatch({name:"VARIABLE_ADDED",rjvId:a,data:r})},e}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.active,a=e.theme,r=e.rjvId;return t?v().createElement(mt,{rjvId:r,theme:a,isValid:this.isValid,submit:this.submit}):null}}])}(v().PureComponent),gt=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.message,a=e.active,r=e.theme,n=e.rjvId;return a?v().createElement("div",Object.assign({className:"validation-failure"},G(r,"validation-failure"),{onClick:function(){ne.dispatch({rjvId:n,name:"RESET"})}}),v().createElement("span",G(r,"validation-failure-label"),t),v().createElement(Xe,G(r,"validation-failure-clear"))):null}}])}(v().PureComponent),yt=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).rjvId=Date.now().toString()+Math.random().toString(36).slice(2),a.getListeners=function(){return{reset:a.resetState,"variable-update":a.updateSrc,"add-key-request":a.addKeyRequest}},a.updateSrc=function(){var e,t=se.get(a.rjvId,"action","variable-update"),r=t.name,n=t.namespace,o=t.new_value,s=t.existing_value,i=t.updated_src,c=t.type,l=a.props,u=l.onEdit,d=l.onDelete,b=l.onAdd,p={existing_src:a.state.src,new_value:o,updated_src:i,name:r,namespace:n,existing_value:s};switch(c){case"variable-added":e=b(p);break;case"variable-edited":e=u(p);break;case"variable-removed":e=d(p)}!1!==e?(se.set(a.rjvId,"global","src",i),a.setState({src:i})):a.setState({validationFailure:!0})},a.addKeyRequest=function(){a.setState({addKeyRequest:!0})},a.resetState=function(){a.setState({validationFailure:!1,addKeyRequest:!1})},a.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:t.defaultProps.src,name:t.defaultProps.name,theme:t.defaultProps.theme,validationMessage:t.defaultProps.validationMessage,prevSrc:t.defaultProps.src,prevName:t.defaultProps.name,prevTheme:t.defaultProps.theme},a}return h(t,e),l(t,[{key:"componentDidMount",value:function(){se.set(this.rjvId,"global","src",this.state.src);var e=this.getListeners();for(var t in e)se.on(t+"-"+this.rjvId,e[t]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}},{key:"componentDidUpdate",value:function(e,t){!1!==t.addKeyRequest&&this.setState({addKeyRequest:!1}),!1!==t.editKeyRequest&&this.setState({editKeyRequest:!1}),e.src!==this.state.src&&se.set(this.rjvId,"global","src",this.state.src)}},{key:"componentWillUnmount",value:function(){var e=this.getListeners();for(var t in e)se.removeListener(t+"-"+this.rjvId,e[t])}},{key:"render",value:function(){var e=this.state,t=e.validationFailure,a=e.validationMessage,r=e.addKeyRequest,n=e.theme,o=e.src,i=e.name,c=this.props,l=c.style,u=c.defaultValue;return v().createElement("div",{className:"react-json-view",style:s(s({},G(n,"app-container").style),l)},v().createElement(gt,{message:a,active:t,theme:n,rjvId:this.rjvId}),v().createElement(ht,Object.assign({},this.props,{src:o,name:i,theme:n,type:x(o),rjvId:this.rjvId})),v().createElement(vt,{active:r,theme:n,rjvId:this.rjvId,defaultValue:u}))}}],[{key:"getDerivedStateFromProps",value:function(e,a){if(e.src!==a.prevSrc||e.name!==a.prevName||e.theme!==a.prevTheme){var r={src:e.src,name:e.name,theme:e.theme,validationMessage:e.validationMessage,prevSrc:e.src,prevName:e.name,prevTheme:e.theme};return t.validateState(r)}return null}}])}(v().PureComponent);yt.defaultProps={src:{},name:"root",theme:"rjv-default",collapsed:!1,collapseStringsAfterLength:!1,shouldCollapse:!1,sortKeys:!1,quotesOnKeys:!0,groupArraysAfterLength:100,indentWidth:4,enableClipboard:!0,escapeStrings:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onDelete:!1,onAdd:!1,onSelect:!1,iconStyle:"triangle",style:{},validationMessage:"Validation Error",defaultValue:null,displayArrayKey:!0,selectOnFocus:!1,keyModifier:function(e){return e.metaKey||e.ctrlKey},bigNumber:null,showComma:!0},yt.validateState=function(e){var t={};return"object"!==x(e.theme)||function(e){var t=["base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F"];if("object"===x(e)){for(var a=0;a<t.length;a++)if(!(t[a]in e))return!1;return!0}return!1}(e.theme)||(console.error("react-json-view error:","theme prop must be a theme name or valid base-16 theme object.",'defaulting to "rjv-default" theme'),t.theme="rjv-default"),"object"!==x(e.src)&&"array"!==x(e.src)&&(console.error("react-json-view error:","src property must be a valid json object"),t.name="ERROR",t.src={message:"src property must be a valid json object"}),s(s({},e),t)},k(yt);const Et=yt})(),n})());
package/index.d.ts ADDED
@@ -0,0 +1,320 @@
1
+ import * as React from 'react'
2
+
3
+ export interface ReactJsonViewProps {
4
+ /**
5
+ * This property contains your input JSON.
6
+ *
7
+ * Required.
8
+ */
9
+ src: object
10
+ /**
11
+ * Contains the name of your root node. Use null or false for no name.
12
+ *
13
+ * Default: "root"
14
+ */
15
+ name?: React.JSX.Element | string | null | false
16
+ /**
17
+ * RJV supports base-16 themes. Check out the list of supported themes in the demo.
18
+ * A custom "rjv-default" theme applies by default.
19
+ *
20
+ * Default: "rjv-default"
21
+ */
22
+ theme?: ThemeKeys | ThemeObject
23
+ /**
24
+ * Style attributes for react-json-view container.
25
+ * Explicit style attributes will override attributes provided by a theme.
26
+ *
27
+ * Default: "rjv-default"
28
+ */
29
+ style?: React.CSSProperties
30
+ /**
31
+ * Style of expand/collapse icons. Accepted values are "circle", triangle" or "square".
32
+ *
33
+ * Default: {}
34
+ */
35
+ iconStyle?: 'circle' | 'triangle' | 'square'
36
+ /**
37
+ * Set the indent-width for nested objects.
38
+ *
39
+ * Default: 4
40
+ */
41
+ indentWidth?: number
42
+ /**
43
+ * When set to true, all nodes will be collapsed by default.
44
+ * Use an integer value to collapse at a particular depth.
45
+ *
46
+ * Default: false
47
+ */
48
+ collapsed?: boolean | number
49
+ /**
50
+ * When an integer value is assigned, strings will be cut off at that length.
51
+ * Collapsed strings are followed by an ellipsis.
52
+ * String content can be expanded and collapsed by clicking on the string value.
53
+ *
54
+ * Default: false
55
+ */
56
+ collapseStringsAfterLength?: number | false
57
+ /**
58
+ * Callback function to provide control over what objects and arrays should be collapsed by default.
59
+ * An object is passed to the callback containing name, src, type ("array" or "object") and namespace.
60
+ *
61
+ * Default: false
62
+ */
63
+ shouldCollapse?: false | ((field: CollapsedFieldProps) => boolean)
64
+ /**
65
+ * When an integer value is assigned, arrays will be displayed in groups by count of the value.
66
+ * Groups are displayed with brakcet notation and can be expanded and collapsed by clickong on the brackets.
67
+ *
68
+ * Default: 100
69
+ */
70
+ groupArraysAfterLength?: number
71
+ /**
72
+ * When prop is not false, the user can copy objects and arrays to clipboard by clicking on the clipboard icon.
73
+ * Copy callbacks are supported.
74
+ *
75
+ * Default: true
76
+ */
77
+ enableClipboard?: boolean | ((copy: OnCopyProps) => void)
78
+ /**
79
+ * When set to true, objects and arrays are labeled with size.
80
+ *
81
+ * Default: true
82
+ */
83
+ displayObjectSize?: boolean
84
+ /**
85
+ * When set to true, data type labels prefix values.
86
+ *
87
+ * Default: true
88
+ */
89
+ displayDataTypes?: boolean
90
+ /**
91
+ * When set to true, the index of the elements prefix values
92
+ *
93
+ * Default: true
94
+ */
95
+ displayArrayKey?: boolean
96
+ /**
97
+ * set to false to remove quotes from keys (eg. "name": vs. name:)
98
+ *
99
+ * Default: true
100
+ */
101
+ quotesOnKeys?: boolean
102
+ /**
103
+ * When a callback function is passed in, edit functionality is enabled.
104
+ * The callback is invoked before edits are completed. Returning false
105
+ * from onEdit will prevent the change from being made. see: onEdit docs.
106
+ *
107
+ * Default: false
108
+ */
109
+ onEdit?: ((edit: InteractionProps) => false | any) | false
110
+ /**
111
+ * When a callback function is passed in, add functionality is enabled.
112
+ * The callback is invoked before additions are completed.
113
+ * Returning false from onAdd will prevent the change from being made. see: onAdd docs
114
+ *
115
+ * Default: false
116
+ */
117
+ onAdd?: ((add: InteractionProps) => false | any) | false
118
+ /**
119
+ * When a callback function is passed in, delete functionality is enabled.
120
+ * The callback is invoked before deletions are completed.
121
+ * Returning false from onDelete will prevent the change from being made. see: onDelete docs
122
+ *
123
+ * Default: false
124
+ */
125
+ onDelete?: ((del: InteractionProps) => false | any) | false
126
+ /**
127
+ * When a function is passed in, clicking a value triggers the onSelect method to be called.
128
+ *
129
+ * Default: false
130
+ */
131
+ onSelect?: ((select: OnSelectProps) => void) | false
132
+ /**
133
+ * Custom message for validation failures to onEdit, onAdd, or onDelete callbacks.
134
+ *
135
+ * Default: "Validation Error"
136
+ */
137
+ validationMessage?: string
138
+ /**
139
+ * Set to true to sort object keys.
140
+ *
141
+ * Default: false
142
+ */
143
+ sortKeys?: boolean
144
+ /**
145
+ * Set to a value to be used as defaultValue when adding new key to json
146
+ *
147
+ * Default: null
148
+ */
149
+ defaultValue?: TypeDefaultValue | TypeDefaultValue[] | null
150
+ /**
151
+ * Whether to select the textarea contents on edit
152
+ *
153
+ * Default: false
154
+ */
155
+ selectOnFocus?: boolean
156
+ /**
157
+ * The key modifier to be combined with a click on JSON values to edit them
158
+ *
159
+ * Default: (e) => e.metaKey || e.ctrlKey
160
+ */
161
+ keyModifier?: (event: Event, type: 'edit' | 'submit') => boolean
162
+ /**
163
+ * Set to true to escape strings sequences such as \n, \t, \r, \f
164
+ *
165
+ * Default: true
166
+ */
167
+ escapeStrings?: boolean
168
+ /**
169
+ * An object mapping key names to decorator functions. Each decorator function
170
+ * receives the key content as children and returns a React element that wraps it.
171
+ * Allows custom rendering of specific object keys.
172
+ *
173
+ * Default: undefined
174
+ */
175
+ keyDecorators?: Record<string, (children: React.ReactNode) => React.ReactNode>
176
+ }
177
+
178
+ export interface OnCopyProps {
179
+ /**
180
+ * The JSON tree source object
181
+ */
182
+ src: object
183
+ /**
184
+ * List of keys.
185
+ */
186
+ namespace: Array<string | null>
187
+ /**
188
+ * The last key in the namespace array.
189
+ */
190
+ name: string | null
191
+ }
192
+
193
+ export interface CollapsedFieldProps {
194
+ /**
195
+ * The name of the entry.
196
+ */
197
+ name: string | null
198
+ /**
199
+ * The corresponding JSON subtree.
200
+ */
201
+ src: object
202
+ /**
203
+ * The type of src. Can only be "array" or "object".
204
+ */
205
+ type: 'array' | 'object'
206
+ /**
207
+ * The scopes above the current entry.
208
+ */
209
+ namespace: Array<string | null>
210
+ }
211
+
212
+ export interface InteractionProps {
213
+ /**
214
+ * The updated subtree of the JSON tree.
215
+ */
216
+ updated_src: object
217
+ /**
218
+ * The existing subtree of the JSON tree.
219
+ */
220
+ existing_src: object
221
+ /**
222
+ * The key of the entry that is interacted with.
223
+ */
224
+ name: string | null
225
+ /**
226
+ * List of keys.
227
+ */
228
+ namespace: Array<string | null>
229
+ /**
230
+ * The original value of the entry that is interacted with.
231
+ */
232
+ existing_value: object | string | number | boolean | null
233
+ /**
234
+ * The updated value of the entry that is interacted with.
235
+ */
236
+ new_value?: object | string | number | boolean | null
237
+ }
238
+
239
+ export interface OnSelectProps {
240
+ /**
241
+ * The name of the currently selected entry.
242
+ */
243
+ name: string | null
244
+ /**
245
+ * The value of the currently selected entry.
246
+ */
247
+ value: object | string | number | boolean | null
248
+ /**
249
+ * The type of the value. For "number" type, it will be replaced with the more
250
+ * accurate types: "float", "integer", or "nan".
251
+ */
252
+ type: string
253
+ /**
254
+ * List of keys representing the scopes above the selected entry.
255
+ */
256
+ namespace: Array<string | null>
257
+ }
258
+
259
+ export type TypeDefaultValue = string | number | boolean | object
260
+
261
+ export interface ThemeObject {
262
+ base00: string
263
+ base01: string
264
+ base02: string
265
+ base03: string
266
+ base04: string
267
+ base05: string
268
+ base06: string
269
+ base07: string
270
+ base08: string
271
+ base09: string
272
+ base0A: string
273
+ base0B: string
274
+ base0C: string
275
+ base0D: string
276
+ base0E: string
277
+ base0F: string
278
+ }
279
+
280
+ export type ThemeKeys =
281
+ | 'apathy'
282
+ | 'apathy:inverted'
283
+ | 'ashes'
284
+ | 'bespin'
285
+ | 'brewer'
286
+ | 'bright:inverted'
287
+ | 'bright'
288
+ | 'chalk'
289
+ | 'codeschool'
290
+ | 'colors'
291
+ | 'eighties'
292
+ | 'embers'
293
+ | 'flat'
294
+ | 'google'
295
+ | 'grayscale'
296
+ | 'grayscale:inverted'
297
+ | 'greenscreen'
298
+ | 'harmonic'
299
+ | 'hopscotch'
300
+ | 'isotope'
301
+ | 'marrakesh'
302
+ | 'mocha'
303
+ | 'monokai'
304
+ | 'ocean'
305
+ | 'paraiso'
306
+ | 'pop'
307
+ | 'railscasts'
308
+ | 'rjv-default'
309
+ | 'shapeshifter'
310
+ | 'shapeshifter:inverted'
311
+ | 'solarized'
312
+ | 'summerfruit'
313
+ | 'summerfruit:inverted'
314
+ | 'threezerotwofour'
315
+ | 'tomorrow'
316
+ | 'tube'
317
+ | 'twilight'
318
+
319
+ declare const ReactJson: React.ComponentType<ReactJsonViewProps>
320
+ export default ReactJson
package/package.json ADDED
@@ -0,0 +1,333 @@
1
+ {
2
+ "name": "@oursprivacy/react-json-view",
3
+ "description": "Interactive react component for displaying javascript arrays and JSON objects.",
4
+ "homepage": "https://github.com/microlinkhq/react-json-view",
5
+ "version": "1.27.1",
6
+ "main": "dist/main.js",
7
+ "author": {
8
+ "name": "Mac Gainor"
9
+ },
10
+ "contributors": [
11
+ {
12
+ "name": "mac",
13
+ "email": "mac.gainor@gmail.com"
14
+ },
15
+ {
16
+ "name": "Kiko Beats",
17
+ "email": "josefrancisco.verdu@gmail.com"
18
+ },
19
+ {
20
+ "name": "Brad Adams",
21
+ "email": "hi@breadadams.com"
22
+ },
23
+ {
24
+ "name": "Xuefei Li",
25
+ "email": "frankvsense@gmail.com"
26
+ },
27
+ {
28
+ "name": "Caina Leao",
29
+ "email": "caina.leao@endemolshine.com"
30
+ },
31
+ {
32
+ "name": "Mikolaj",
33
+ "email": "mikolaj@grid.gg"
34
+ },
35
+ {
36
+ "name": "Tom McLaughlin",
37
+ "email": "tom@codedown.io"
38
+ },
39
+ {
40
+ "name": "Vadim Zainetdinov",
41
+ "email": "vadim.zvf@gmail.com"
42
+ },
43
+ {
44
+ "name": "Nicolas DUBIEN",
45
+ "email": "github@dubien.org"
46
+ },
47
+ {
48
+ "name": "Andy Baird",
49
+ "email": "andy@threadsculture.com"
50
+ },
51
+ {
52
+ "name": "Marc Bernard",
53
+ "email": "59966492+mbtools@users.noreply.github.com"
54
+ },
55
+ {
56
+ "name": "Daniel Santos",
57
+ "email": "dsantosp12@gmail.com"
58
+ },
59
+ {
60
+ "name": "mac-s-g",
61
+ "email": "mac@conversica.com"
62
+ },
63
+ {
64
+ "name": "jorgejar",
65
+ "email": "jorge.jaramillo@docker.com"
66
+ },
67
+ {
68
+ "name": "Pravdomil",
69
+ "email": "pravdomil.toman@gmail.com"
70
+ },
71
+ {
72
+ "name": "superfaz",
73
+ "email": "16510828+superfaz@users.noreply.github.com"
74
+ },
75
+ {
76
+ "name": "Orta Therox",
77
+ "email": "git@orta.io"
78
+ },
79
+ {
80
+ "name": "Varad Chemburkar",
81
+ "email": "vhc1992@gmail.com"
82
+ },
83
+ {
84
+ "name": "Ashwin Menkudle",
85
+ "email": "ashwinmenkudle@gmail.com"
86
+ },
87
+ {
88
+ "name": "Aaron Cunnington",
89
+ "email": "azcn2503@gmail.com"
90
+ },
91
+ {
92
+ "name": "Bob Thomas",
93
+ "email": "BThomas@tripwire.com"
94
+ },
95
+ {
96
+ "name": "Cai Leao",
97
+ "email": "cainaleaouk@users.noreply.github.com"
98
+ },
99
+ {
100
+ "name": "Craig Kochis",
101
+ "email": "cjkochis@gmail.com"
102
+ },
103
+ {
104
+ "name": "casey langen",
105
+ "email": "clangen@nerdwallet.com"
106
+ },
107
+ {
108
+ "name": "Dheeraj Yennam",
109
+ "email": "dyennam@gmail.com"
110
+ },
111
+ {
112
+ "name": "Dylan Dirlam",
113
+ "email": "dylan@dirlam.dev"
114
+ },
115
+ {
116
+ "name": "shybyte",
117
+ "email": "ein@volloeko.de"
118
+ },
119
+ {
120
+ "name": "EvertE",
121
+ "email": "evert.etienne@sitemark.com"
122
+ },
123
+ {
124
+ "name": "Guillaume FORTAINE",
125
+ "email": "guillaume.fortaine@ingenico.com"
126
+ },
127
+ {
128
+ "name": "Jack",
129
+ "email": "jackdh@users.noreply.github.com"
130
+ },
131
+ {
132
+ "name": "Jason Etcovitch",
133
+ "email": "jasonetco@gmail.com"
134
+ },
135
+ {
136
+ "name": "Michael Reynolds",
137
+ "email": "michael.reynolds@paybase.io"
138
+ },
139
+ {
140
+ "name": "Jeremy Liberman",
141
+ "email": "mrleebo@msn.com"
142
+ },
143
+ {
144
+ "name": "Oleg Proskurin",
145
+ "email": "regx@usul.su"
146
+ },
147
+ {
148
+ "name": "Rubens Mariuzzo",
149
+ "email": "rubens@mariuzzo.com"
150
+ },
151
+ {
152
+ "name": "Ryan Haywood",
153
+ "email": "ryan@ryanhaywood.com"
154
+ },
155
+ {
156
+ "name": "Taylor Birkeland",
157
+ "email": "tabirkeland@gmail.com"
158
+ },
159
+ {
160
+ "name": "John Arthur",
161
+ "email": "thorjarhun@users.noreply.github.com"
162
+ },
163
+ {
164
+ "name": "Uzi Kilon",
165
+ "email": "uzikilon@users.noreply.github.com"
166
+ },
167
+ {
168
+ "name": "DELORD Vincent",
169
+ "email": "vincent.delord@renault.com"
170
+ },
171
+ {
172
+ "name": "REDMOND\\xuefl",
173
+ "email": "xuefl@microsoft.com"
174
+ },
175
+ {
176
+ "name": "Mert Donmezyurek",
177
+ "email": "info@mertdy.com"
178
+ },
179
+ {
180
+ "name": "n1c0de",
181
+ "email": "n1c0de@protonmail.com"
182
+ }
183
+ ],
184
+ "repository": {
185
+ "type": "git",
186
+ "url": "git+https://github.com/microlinkhq/react-json-view.git"
187
+ },
188
+ "bugs": {
189
+ "url": "https://github.com/microlinkhq/react-json-view/issues"
190
+ },
191
+ "keywords": [
192
+ "array-viewer",
193
+ "base-16",
194
+ "component",
195
+ "interactive",
196
+ "interactive-json",
197
+ "json",
198
+ "json-component",
199
+ "json-display",
200
+ "json-inspector",
201
+ "json-tree",
202
+ "json-tree",
203
+ "json-view",
204
+ "json-viewer",
205
+ "react",
206
+ "react-component",
207
+ "react-json",
208
+ "theme",
209
+ "tree",
210
+ "tree-view",
211
+ "treeview"
212
+ ],
213
+ "dependencies": {
214
+ "react-base16-styling": "~0.9.0",
215
+ "react-lifecycles-compat": "~3.0.4",
216
+ "react-textarea-autosize": "~8.5.7"
217
+ },
218
+ "devDependencies": {
219
+ "@babel/core": "^7.13.0",
220
+ "@babel/eslint-parser": "~7.12.1",
221
+ "@babel/plugin-proposal-private-property-in-object": "~7.21.11",
222
+ "@babel/plugin-syntax-class-properties": "~7.12.1",
223
+ "@babel/plugin-syntax-jsx": "~7.12.1",
224
+ "@babel/register": "7.12.10",
225
+ "@commitlint/cli": "latest",
226
+ "@commitlint/config-conventional": "latest",
227
+ "@ksmithut/prettier-standard": "latest",
228
+ "@types/react": "^18.2.20",
229
+ "babel-loader": "8.4.1",
230
+ "babel-plugin-istanbul": "6.1.1",
231
+ "babel-plugin-react-html-attrs": "~2.1.0",
232
+ "babel-preset-react-app": "10.0.1",
233
+ "browser-sync": "~3.0.3",
234
+ "chai": "~4.2.0",
235
+ "cheerio": "1.0.0-rc.3",
236
+ "css-loader": "~4.3.0",
237
+ "enzyme": "~3.11.0",
238
+ "enzyme-adapter-react-16": "~1.15.5",
239
+ "finepack": "latest",
240
+ "github-generate-release": "latest",
241
+ "html-webpack-plugin": "^4.5.2",
242
+ "ignore-styles": "~5.0.1",
243
+ "jsdom": "~16.4.0",
244
+ "mocha": "~8.2.1",
245
+ "moment": "~2.29.1",
246
+ "nano-staged": "latest",
247
+ "nyc": "~15.1.0",
248
+ "prettier": "~2.2.1",
249
+ "react": "~16.14.0",
250
+ "react-dom": "~16.14.0",
251
+ "react-select": "~1.1.0",
252
+ "react-test-renderer": "~16.14.0",
253
+ "sass": "~1.47.0",
254
+ "sass-loader": "~10.1.1",
255
+ "simple-git-hooks": "latest",
256
+ "sinon": "~9.2.3",
257
+ "standard": "latest",
258
+ "standard-version": "latest",
259
+ "style-loader": "~1.3.0",
260
+ "tinyrun": "~1.0.2",
261
+ "typescript": "^4.5.4",
262
+ "webpack": "~5.93.0",
263
+ "webpack-bundle-analyzer": "~4.10.2",
264
+ "webpack-bundle-size-analyzer": "~3.1.0",
265
+ "webpack-cli": "~5.1.4",
266
+ "webpack-dev-server": "~5.0.4"
267
+ },
268
+ "engines": {
269
+ "node": ">=17"
270
+ },
271
+ "files": [
272
+ "dist",
273
+ "index.d.ts"
274
+ ],
275
+ "scripts": {
276
+ "build": "NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production webpack --config webpack/webpack.config.js --progress",
277
+ "dev": "NODE_ENV=development webpack serve --config webpack/webpack.config-dev.js --open",
278
+ "docs:build": "NODE_ENV=production webpack --node-env production --config webpack/webpack.config-docs.js --progress",
279
+ "docs:dev": "tinyrun 'npm run docs:dev:watch' 'npm run docs:dev:browserync'",
280
+ "docs:dev:browserync": "browser-sync start --serveStatic docs/ --server --files 'index.html, **/*.(css|js|md)'",
281
+ "docs:dev:watch": "npm run docs:build -- --watch",
282
+ "lint": "standard",
283
+ "modules:size-analyzer": "webpack --config webpack/webpack.config.js --json | webpack-bundle-size-analyzer",
284
+ "modules:tree": "webpack --config webpack/webpack.config.js --json ",
285
+ "postrelease": "npm run release:tags && npm run release:github && npm publish --access public",
286
+ "prerelease": "npm run build",
287
+ "release": "standard-version -a",
288
+ "release:github": "github-generate-release",
289
+ "release:tags": "git push --follow-tags origin HEAD:master",
290
+ "test": "npm run test:coverage",
291
+ "test:coverage": "NODE_ENV=test nyc --reporter=text-lcov mocha test/**/*-test.js",
292
+ "test:unit": "NODE_ENV=test nyc mocha test/**/*-test.js",
293
+ "test:watch": "NODE_ENV=test nyc mocha -w test/**/*-test.js"
294
+ },
295
+ "license": "MIT",
296
+ "commitlint": {
297
+ "extends": [
298
+ "@commitlint/config-conventional"
299
+ ],
300
+ "rules": {
301
+ "body-max-line-length": [
302
+ 0
303
+ ]
304
+ }
305
+ },
306
+ "nano-staged": {
307
+ "*.js": [
308
+ "prettier-standard",
309
+ "standard --fix"
310
+ ],
311
+ "package.json": [
312
+ "finepack"
313
+ ]
314
+ },
315
+ "peerDependencies": {
316
+ "react": ">= 15",
317
+ "react-dom": ">= 15"
318
+ },
319
+ "simple-git-hooks": {
320
+ "commit-msg": "npx commitlint --edit",
321
+ "pre-commit": "npx nano-staged"
322
+ },
323
+ "standard": {
324
+ "globals": [
325
+ "describe",
326
+ "it"
327
+ ],
328
+ "ignore": [
329
+ "demo/dist",
330
+ "dev-server"
331
+ ]
332
+ }
333
+ }