django-json-widget 2.0.0__tar.gz → 2.0.2__tar.gz
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.
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/AUTHORS.rst +2 -0
- django_json_widget-2.0.2/CHANGELOG.rst +57 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/MANIFEST.in +1 -1
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/PKG-INFO +64 -7
- django_json_widget-2.0.2/django_json_widget/__init__.py +1 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget/static/dist/jsoneditor.min.js +0 -1
- django_json_widget-2.0.2/django_json_widget/widgets.py +88 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget.egg-info/PKG-INFO +64 -7
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget.egg-info/SOURCES.txt +1 -1
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/setup.cfg +1 -1
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/setup.py +2 -2
- django-json-widget-2.0.0/HISTORY.rst +0 -9
- django-json-widget-2.0.0/django_json_widget/__init__.py +0 -1
- django-json-widget-2.0.0/django_json_widget/widgets.py +0 -45
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/CONTRIBUTING.rst +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/LICENSE +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/README.rst +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget/apps.py +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget/models.py +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget/static/css/django_json_widget.css +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget/static/dist/img/jsoneditor-icons.svg +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget/static/dist/jsoneditor.min.css +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget/templates/django_json_widget.html +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget/urls.py +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget/views.py +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget.egg-info/dependency_links.txt +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget.egg-info/not-zip-safe +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget.egg-info/top_level.txt +0 -0
- {django-json-widget-2.0.0 → django_json_widget-2.0.2}/tests/test_models.py +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
=========
|
|
2
|
+
Changelog
|
|
3
|
+
=========
|
|
4
|
+
|
|
5
|
+
2.0.2 (2025-07-28)
|
|
6
|
+
------------------
|
|
7
|
+
|
|
8
|
+
* Fix Version 2.0.1 causes rendering HTML scripts issue #80
|
|
9
|
+
|
|
10
|
+
2.0.1 (2024-03-02)
|
|
11
|
+
------------------=
|
|
12
|
+
|
|
13
|
+
* Fixed Version 2.0.0 causes issues with Django 4.x due to missing sourcemaps issue #83
|
|
14
|
+
|
|
15
|
+
2.0.0 (2024-03-24)
|
|
16
|
+
------------------
|
|
17
|
+
|
|
18
|
+
* Fix default paths for static files #53
|
|
19
|
+
* Stop declaring support for Django versions before 3.2 #65
|
|
20
|
+
* Avoid HTML injection via unsafe JSON injection #64
|
|
21
|
+
* Remove source map reference from JS bundle #70
|
|
22
|
+
* Add dark mode CSS support #82
|
|
23
|
+
* Updated documentation
|
|
24
|
+
|
|
25
|
+
1.1.1 (2021-02-17)
|
|
26
|
+
------------------
|
|
27
|
+
|
|
28
|
+
* Fix for issue #51, updates the bundled libs to 9.1.9 and additional notes for Django 3.1 changes
|
|
29
|
+
|
|
30
|
+
1.1.0 (2021-02-05)
|
|
31
|
+
------------------
|
|
32
|
+
|
|
33
|
+
* Added functionality to override version of JSONEditor to use
|
|
34
|
+
* update readme for django 3.1
|
|
35
|
+
|
|
36
|
+
1.0.1 (2020-04-17)
|
|
37
|
+
------------------
|
|
38
|
+
|
|
39
|
+
* Stop resolving paths to the static files
|
|
40
|
+
|
|
41
|
+
1.0.0 (2020-01-16)
|
|
42
|
+
------------------
|
|
43
|
+
|
|
44
|
+
* Update Makefile
|
|
45
|
+
* Make Stable the project
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
0.3.0 (2020-01-16)
|
|
49
|
+
------------------
|
|
50
|
+
|
|
51
|
+
* Update requirements.txt
|
|
52
|
+
* Fixed static to work with CDN tools like django-storages
|
|
53
|
+
* Make widget more configurable
|
|
54
|
+
* Fixed an incompatibility with Python 2.7
|
|
55
|
+
* update jsoneditor to latest version
|
|
56
|
+
|
|
57
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: django-json-widget
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Django json widget is an alternative widget that makes it easy to edit the jsonfield field of django.
|
|
5
5
|
Home-page: https://github.com/jmrivas86/django-json-widget
|
|
6
6
|
Author: José Manuel Rivas
|
|
@@ -25,6 +25,15 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
25
25
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
26
|
License-File: LICENSE
|
|
27
27
|
License-File: AUTHORS.rst
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: home-page
|
|
33
|
+
Dynamic: keywords
|
|
34
|
+
Dynamic: license
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
Dynamic: summary
|
|
28
37
|
|
|
29
38
|
=============================
|
|
30
39
|
django-json-widget
|
|
@@ -133,12 +142,60 @@ Tools used in rendering this package:
|
|
|
133
142
|
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
|
|
134
143
|
|
|
135
144
|
|
|
145
|
+
=========
|
|
146
|
+
Changelog
|
|
147
|
+
=========
|
|
136
148
|
|
|
149
|
+
2.0.2 (2025-07-28)
|
|
150
|
+
------------------
|
|
137
151
|
|
|
138
|
-
|
|
139
|
-
|
|
152
|
+
* Fix Version 2.0.1 causes rendering HTML scripts issue #80
|
|
153
|
+
|
|
154
|
+
2.0.1 (2024-03-02)
|
|
155
|
+
------------------=
|
|
156
|
+
|
|
157
|
+
* Fixed Version 2.0.0 causes issues with Django 4.x due to missing sourcemaps issue #83
|
|
158
|
+
|
|
159
|
+
2.0.0 (2024-03-24)
|
|
160
|
+
------------------
|
|
161
|
+
|
|
162
|
+
* Fix default paths for static files #53
|
|
163
|
+
* Stop declaring support for Django versions before 3.2 #65
|
|
164
|
+
* Avoid HTML injection via unsafe JSON injection #64
|
|
165
|
+
* Remove source map reference from JS bundle #70
|
|
166
|
+
* Add dark mode CSS support #82
|
|
167
|
+
* Updated documentation
|
|
168
|
+
|
|
169
|
+
1.1.1 (2021-02-17)
|
|
170
|
+
------------------
|
|
171
|
+
|
|
172
|
+
* Fix for issue #51, updates the bundled libs to 9.1.9 and additional notes for Django 3.1 changes
|
|
173
|
+
|
|
174
|
+
1.1.0 (2021-02-05)
|
|
175
|
+
------------------
|
|
176
|
+
|
|
177
|
+
* Added functionality to override version of JSONEditor to use
|
|
178
|
+
* update readme for django 3.1
|
|
179
|
+
|
|
180
|
+
1.0.1 (2020-04-17)
|
|
181
|
+
------------------
|
|
182
|
+
|
|
183
|
+
* Stop resolving paths to the static files
|
|
184
|
+
|
|
185
|
+
1.0.0 (2020-01-16)
|
|
186
|
+
------------------
|
|
187
|
+
|
|
188
|
+
* Update Makefile
|
|
189
|
+
* Make Stable the project
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
0.3.0 (2020-01-16)
|
|
193
|
+
------------------
|
|
194
|
+
|
|
195
|
+
* Update requirements.txt
|
|
196
|
+
* Fixed static to work with CDN tools like django-storages
|
|
197
|
+
* Make widget more configurable
|
|
198
|
+
* Fixed an incompatibility with Python 2.7
|
|
199
|
+
* update jsoneditor to latest version
|
|
140
200
|
|
|
141
|
-
0.1.0 (2017-05-10)
|
|
142
|
-
++++++++++++++++++
|
|
143
201
|
|
|
144
|
-
* First release on PyPI.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.0.2'
|
|
@@ -83,4 +83,3 @@ this.inlineRenderer.show(this.editor,e,t)?this.$seen(e):this.inlineRenderer.hide
|
|
|
83
83
|
!i.compositeRule&&g?i.async?t+=" throw new ValidationError(["+T+"]); ":t+=" validate.errors = ["+T+"]; return false; ":t+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c?"data"+(c-1||""):"parentData");t=t+(" } if ("+w+" !== undefined) { ")+(" "+h+" = "+w+"; "),c||(t+="if ("+s+" !== undefined)"),t+=" "+s+"["+(c?i.dataPathArr[c]:"parentDataProperty")+"] = "+w+"; } "}else{T=((M=M||[]).push(t),t="",!1!==i.createErrors?(t=(t+=" { keyword: 'type' , dataPath: (dataPath || '') + "+i.errorPath+" , schemaPath: "+i.util.toQuotedString(b)+" , params: { type: '")+(C?""+f.join(","):""+f)+"' } ",!1!==i.opts.messages&&(t=(t+=" , message: 'should be ")+(C?""+f.join(","):""+f)+"' "),i.opts.verbose&&(t+=" , schema: validate.schema"+I+" , parentSchema: validate.schema"+i.schemaPath+" , data: "+h+" "),t+=" } "):t+=" {} ",t);t=M.pop(),!i.compositeRule&&g?i.async?t+=" throw new ValidationError(["+T+"]); ":t+=" validate.errors = ["+T+"]; return false; ":t+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } "}}if(i.schema.$ref&&!o)t+=" "+i.RULES.all.$ref.code(i,"$ref")+" ",g&&(t=(t+=" } if (errors === ")+(a?"0":"errs_"+l)+") { ",m+="}");else{var E=i.RULES;if(E)for(var H=-1,G=E.length-1;H<G;)if(z(v=E[H+=1])){if(v.type&&(t+=" if ("+i.util.checkDataType(v.type,h,i.opts.strictNumbers)+") { "),i.opts.useDefaults)if("object"==v.type&&i.schema.properties){var R=i.schema.properties,$=Object.keys(R);if($)for(var F,O=-1,V=$.length-1;O<V;)if(void 0!==(N=R[F=$[O+=1]]).default){var _=h+i.util.getProperty(F);if(i.compositeRule){if(i.opts.strictDefaults){d="default is ignored for: "+_;if("log"!==i.opts.strictDefaults)throw new Error(d);i.logger.warn(d)}}else t+=" if ("+_+" === undefined ","empty"==i.opts.useDefaults&&(t+=" || "+_+" === null || "+_+" === '' "),t+=" ) "+_+" = ","shared"==i.opts.useDefaults?t+=" "+i.useDefault(N.default)+" ":t+=" "+JSON.stringify(N.default)+" ",t+="; "}}else if("array"==v.type&&Array.isArray(i.schema.items)){var L=i.schema.items;if(L)for(var N,k=-1,Z=L.length-1;k<Z;)if(void 0!==(N=L[k+=1]).default){_=h+"["+k+"]";if(i.compositeRule){if(i.opts.strictDefaults){d="default is ignored for: "+_;if("log"!==i.opts.strictDefaults)throw new Error(d);i.logger.warn(d)}}else t+=" if ("+_+" === undefined ","empty"==i.opts.useDefaults&&(t+=" || "+_+" === null || "+_+" === '' "),t+=" ) "+_+" = ","shared"==i.opts.useDefaults?t+=" "+i.useDefault(N.default)+" ":t+=" "+JSON.stringify(N.default)+" ",t+="; "}}var M,D=v.rules;if(D)for(var B,j=-1,K=D.length-1;j<K;)X(B=D[j+=1])&&(B=B.code(i,B.keyword,v.type))&&(t+=" "+B+" ",g)&&(p+="}");g&&(t+=" "+p+" ",p=""),v.type&&(t+=" } ",f)&&f===v.type&&!y&&(t+=" else { ",I=i.schemaPath+".type",b=i.errSchemaPath+"/type",(M=M||[]).push(t),t="",!1!==i.createErrors?(t=(t+=" { keyword: 'type' , dataPath: (dataPath || '') + "+i.errorPath+" , schemaPath: "+i.util.toQuotedString(b)+" , params: { type: '")+(C?""+f.join(","):""+f)+"' } ",!1!==i.opts.messages&&(t=(t+=" , message: 'should be ")+(C?""+f.join(","):""+f)+"' "),i.opts.verbose&&(t+=" , schema: validate.schema"+I+" , parentSchema: validate.schema"+i.schemaPath+" , data: "+h+" "),t+=" } "):t+=" {} ",T=t,t=M.pop(),!i.compositeRule&&g?i.async?t+=" throw new ValidationError(["+T+"]); ":t+=" validate.errors = ["+T+"]; return false; ":t+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "),g&&(t=(t+=" if (errors === ")+(a?"0":"errs_"+l)+") { ",m+="}")}}g&&(t+=" "+m+" "),a?t=t+(n?" if (errors === 0) return data; else throw new ValidationError(vErrors); ":" validate.errors = vErrors; return errors === 0; ")+" }; return validate;":t+=" var "+u+" = errors === errs_"+l+";"}return t;function z(e){for(var t=e.rules,n=0;n<t.length;n++)if(X(t[n]))return 1}function X(e){return void 0!==i.schema[e.keyword]||e.implements&&function(e){for(var t=e.implements,n=0;n<t.length;n++)if(void 0!==i.schema[t[n]])return 1}(e)}}},413:function(e,t,n){"use strict";var a=/^[a-z_$][a-z0-9_$-]*$/i,l=n(8050),i=n(9407);function o(e,t){o.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(n(e))return!0;if(o.errors=n.errors,t)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}e.exports={add:function(e,t){var s=this.RULES;if(s.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!a.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var n=t.type;if(Array.isArray(n))for(var i=0;i<n.length;i++)r(e,n[i],t);else r(e,n,t);var o=t.metaSchema;o&&(t.$data&&this._opts.$data&&(o={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(o,!0))}function r(e,t,n){for(var i,o=0;o<s.length;o++){var r=s[o];if(r.type==t){i=r;break}}i||s.push(i={type:t,rules:[]});n={keyword:e,definition:n,custom:!0,code:l,implements:n.implements};i.rules.push(n),s.custom[e]=n}return s.keywords[e]=s.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var n=0;n<t.length;n++)for(var i=t[n].rules,o=0;o<i.length;o++)if(i[o].keyword==e){i.splice(o,1);break}return this},validate:o}},5215:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(o=i;0!=o--;)if(!e(t[o],n[o]))return!1}else{if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,r[o]))return!1;for(o=i;0!=o--;){var s=r[o];if(!e(t[s],n[s]))return!1}}return!0}return t!=t&&n!=n}},9306:function(e){"use strict";e.exports=function(e,t){var i,l="boolean"==typeof(t="function"==typeof(t=t||{})?{cmp:t}:t).cycles&&t.cycles,c=t.cmp&&(i=t.cmp,function(n){return function(e,t){e={key:e,value:n[e]},t={key:t,value:n[t]};return i(e,t)}}),h=[];return function e(t){if(void 0!==(t=t&&t.toJSON&&"function"==typeof t.toJSON?t.toJSON():t)){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t)){for(o="[",r=0;r<t.length;r++)r&&(o+=","),o+=e(t[r])||"null";return o+"]"}if(null===t)return"null";if(-1!==h.indexOf(t)){if(l)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}for(var n=h.push(t)-1,i=Object.keys(t).sort(c&&c(t)),o="",r=0;r<i.length;r++){var s=i[r],a=e(t[s]);a&&(o&&(o+=","),o+=JSON.stringify(s)+":"+a)}return h.splice(n,1),"{"+o+"}"}}(e)}},1342:function(e){e.exports=function t(e,n){"use strict";function i(e){return t.insensitive&&(""+e).toLowerCase()||""+e}var o,r,s=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,a=/(^[ ]*|[ ]*$)/g,l=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,c=/^0x[0-9a-f]+$/i,h=/^0/,e=i(e).replace(a,"")||"",n=i(n).replace(a,"")||"",d=e.replace(s,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),u=n.replace(s,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),a=parseInt(e.match(c),16)||1!==d.length&&e.match(l)&&Date.parse(e),s=parseInt(n.match(c),16)||a&&n.match(l)&&Date.parse(n)||null;if(s){if(a<s)return-1;if(s<a)return 1}for(var g=0,p=Math.max(d.length,u.length);g<p;g++){if(o=!(d[g]||"").match(h)&&parseFloat(d[g])||d[g]||0,r=!(u[g]||"").match(h)&&parseFloat(u[g])||u[g]||0,isNaN(o)!==isNaN(r))return isNaN(o)?1:-1;if(typeof o!=typeof r&&(o+="",r+=""),o<r)return-1;if(r<o)return 1}return 0}},9151:function(e,t){!function(e){"use strict";function w(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function S(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function x(e,t){if(e!==t){if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(t))return!1;if(!0===w(e)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!1===x(e[n],t[n]))return!1}else{if(!0!==S(e))return!1;var i,o,r={};for(i in e)if(hasOwnProperty.call(e,i)){if(!1===x(e[i],t[i]))return!1;r[i]=!0}for(o in t)if(hasOwnProperty.call(t,o)&&!0!==r[o])return!1}}return!0}function k(e){if(""===e||!1===e||null===e)return!0;if(w(e)&&0===e.length)return!0;if(S(e)){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}return!1}var o="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]},h={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},s="UnquotedIdentifier",a="QuotedIdentifier",l="Rbracket",c="Rparen",d="Comma",u="Colon",r="Rbrace",g="Number",T="Current",E="Expref",R="Pipe",$="Flatten",p="Star",m="Filter",f="Lbrace",C="Lbracket",y="Lparen",v="Literal",I={".":"Dot","*":p,",":d,":":u,"{":f,"}":r,"]":l,"(":y,")":c,"@":T},b={"<":!0,">":!0,"=":!0,"!":!0},A={" ":!0,"\t":!0,"\n":!0};function _(e){return"0"<=e&&e<="9"||"-"===e}function n(){}n.prototype={tokenize:function(e){var t,n,i=[];for(this._current=0;this._current<e.length;)if("a"<=(r=e[this._current])&&r<="z"||"A"<=r&&r<="Z"||"_"===r)o=this._current,t=this._consumeUnquotedIdentifier(e),i.push({type:s,value:t,start:o});else if(void 0!==I[e[this._current]])i.push({type:I[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(_(e[this._current]))n=this._consumeNumber(e),i.push(n);else if("["===e[this._current])n=this._consumeLBracket(e),i.push(n);else if('"'===e[this._current])o=this._current,t=this._consumeQuotedIdentifier(e),i.push({type:a,value:t,start:o});else if("'"===e[this._current])o=this._current,t=this._consumeRawStringLiteral(e),i.push({type:v,value:t,start:o});else if("`"===e[this._current]){var o=this._current,r=this._consumeLiteral(e);i.push({type:v,value:r,start:o})}else if(void 0!==b[e[this._current]])i.push(this._consumeOperator(e));else if(void 0!==A[e[this._current]])this._current++;else if("&"===e[this._current])o=this._current,this._current++,"&"===e[this._current]?(this._current++,i.push({type:"And",value:"&&",start:o})):i.push({type:E,value:"&",start:o});else{if("|"!==e[this._current])throw(r=new Error("Unknown character:"+e[this._current])).name="LexerError",r;o=this._current,this._current++,"|"===e[this._current]?(this._current++,i.push({type:"Or",value:"||",start:o})):i.push({type:R,value:"|",start:o})}return i},_consumeUnquotedIdentifier:function(e){var t,n=this._current;for(this._current++;this._current<e.length&&("a"<=(t=e[this._current])&&t<="z"||"A"<=t&&t<="Z"||"0"<=t&&t<="9"||"_"===t);)this._current++;return e.slice(n,this._current)},_consumeQuotedIdentifier:function(e){for(var t=this._current,n=(this._current++,e.length);'"'!==e[this._current]&&this._current<n;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&'"'!==e[i+1]?i++:i+=2,this._current=i}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){for(var t=this._current,n=(this._current++,e.length);"'"!==e[this._current]&&this._current<n;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&"'"!==e[i+1]?i++:i+=2,this._current=i}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){for(var t=this._current,n=(this._current++,e.length);_(e[this._current])&&this._current<n;)this._current++;var i=parseInt(e.slice(t,this._current));return{type:g,value:i,start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:m,value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:$,value:"[]",start:t}):{type:C,value:"[",start:t}},_consumeOperator:function(e){var t=this._current,n=e[t];return this._current++,"!"===n?"="===e[this._current]?(this._current++,{type:"NE",value:"!=",start:t}):{type:"Not",value:"!",start:t}:"<"===n?"="===e[this._current]?(this._current++,{type:"LTE",value:"<=",start:t}):{type:"LT",value:"<",start:t}:">"===n?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===n&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t=this._current,n=e.length;"`"!==e[this._current]&&this._current<n;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&"`"!==e[i+1]?i++:i+=2,this._current=i}t=(t=o(e.slice(t,this._current))).replace("\\`","`"),t=this._looksLikeJSON(t)?JSON.parse(t):JSON.parse('"'+t+'"');return this._current++,t},_looksLikeJSON:function(e){if(""===e)return!1;if(0<='[{"'.indexOf(e[0]))return!0;if(0<=["true","false","null"].indexOf(e))return!0;if(!(0<="-0123456789".indexOf(e[0])))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var L={};function N(){}function M(e){this.runtime=e}function B(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[0]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[0]}]},contains:{_func:this._functionContains,_signature:[{types:[2,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[2]},{types:[2]}]},floor:{_func:this._functionFloor,_signature:[{types:[0]}]},length:{_func:this._functionLength,_signature:[{types:[2,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[2]},{types:[2]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[2]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[2,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}L.EOF=0,L[s]=0,L[a]=0,L[l]=0,L[c]=0,L[d]=0,L[r]=0,L[g]=0,L[T]=0,L[E]=0,L.Pipe=1,L.Or=2,L.And=3,L.EQ=5,L.GT=5,L.LT=5,L.GTE=5,L.LTE=5,L.NE=5,L[$]=9,L.Star=20,L[m]=21,L.Dot=40,L.Not=45,L[f]=50,L[C]=55,L[y]=60,N.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t,e=this.expression(0);if("EOF"!==this._lookahead(0))throw t=this._lookaheadToken(0),(t=new Error("Unexpected token type: "+t.type+", value: "+t.value)).name="ParserError",t;return e},_loadTokens:function(e){var t=(new n).tokenize(e);t.push({type:"EOF",value:"",start:e.length}),this.tokens=t},expression:function(e){for(var t=this._lookaheadToken(0),n=(this._advance(),this.nud(t)),i=this._lookahead(0);e<L[i];)this._advance(),n=this.led(i,n),i=this._lookahead(0);return n},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,n;switch(e.type){case v:return{type:"Literal",value:e.value};case s:return{type:"Field",name:e.value};case a:var i={type:"Field",name:e.value};if(this._lookahead(0)===y)throw new Error("Quoted identifier not allowed for function names.");return i;case"Not":return{type:"NotExpression",children:[t=this.expression(L.Not)]};case p:return t=null,{type:"ValueProjection",children:[{type:"Identity"},t=this._lookahead(0)===l?{type:"Identity"}:this._parseProjectionRHS(L.Star)]};case m:return this.led(e.type,{type:"Identity"});case f:return this._parseMultiselectHash();case $:return{type:"Projection",children:[{type:$,children:[{type:"Identity"}]},t=this._parseProjectionRHS(L.Flatten)]};case C:return this._lookahead(0)===g||this._lookahead(0)===u?(t=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},t)):this._lookahead(0)===p&&this._lookahead(1)===l?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},t=this._parseProjectionRHS(L.Star)]}):this._parseMultiselectList();case T:return{type:T};case E:return{type:"ExpressionReference",children:[n=this.expression(L.Expref)]};case y:for(var o=[];this._lookahead(0)!==c;)this._lookahead(0)===T?(n={type:T},this._advance()):n=this.expression(0),o.push(n);return this._match(c),o[0];default:this._errorToken(e)}},led:function(e,t){var n;switch(e){case"Dot":var i=L.Dot;return this._lookahead(0)!==p?{type:"Subexpression",children:[t,n=this._parseDotRHS(i)]}:(this._advance(),{type:"ValueProjection",children:[t,n=this._parseProjectionRHS(i)]});case R:return n=this.expression(L.Pipe),{type:R,children:[t,n]};case"Or":return{type:"OrExpression",children:[t,n=this.expression(L.Or)]};case"And":return{type:"AndExpression",children:[t,n=this.expression(L.And)]};case y:for(var o,i=t.name,r=[];this._lookahead(0)!==c;)this._lookahead(0)===T?(o={type:T},this._advance()):o=this.expression(0),this._lookahead(0)===d&&this._match(d),r.push(o);return this._match(c),{type:"Function",name:i,children:r};case m:i=this.expression(0);return this._match(l),{type:"FilterProjection",children:[t,n=this._lookahead(0)===$?{type:"Identity"}:this._parseProjectionRHS(L.Filter),i]};case $:return{type:"Projection",children:[{type:$,children:[t]},this._parseProjectionRHS(L.Flatten)]};case"EQ":case"NE":case"GT":case"GTE":case"LT":case"LTE":return this._parseComparator(t,e);case C:i=this._lookaheadToken(0);return i.type===g||i.type===u?(n=this._parseIndexExpression(),this._projectIfSlice(t,n)):(this._match(p),this._match(l),{type:"Projection",children:[t,n=this._parseProjectionRHS(L.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){var t;if(this._lookahead(0)!==e)throw t=this._lookaheadToken(0),(e=new Error("Expected "+e+", got: "+t.type)).name="ParserError",e;this._advance()},_errorToken:function(e){e=new Error("Invalid token ("+e.type+'): "'+e.value+'"');throw e.name="ParserError",e},_parseIndexExpression:function(){var e;return this._lookahead(0)===u||this._lookahead(1)===u?this._parseSliceExpression():(e={type:"Index",value:this._lookaheadToken(0).value},this._advance(),this._match(l),e)},_projectIfSlice:function(e,t){e={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[e,this._parseProjectionRHS(L.Star)]}:e},_parseSliceExpression:function(){for(var e,t=[null,null,null],n=0,i=this._lookahead(0);i!==l&&n<3;){if(i===u)n++;else{if(i!==g)throw e=this._lookahead(0),(e=new Error("Syntax error, unexpected token: "+e.value+"("+e.type+")")).name="Parsererror",e;t[n]=this._lookaheadToken(0).value}this._advance(),i=this._lookahead(0)}return this._match(l),{type:"Slice",children:t}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(L[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return 0<=[s,a,p].indexOf(t)?this.expression(e):t===C?(this._match(C),this._parseMultiselectList()):t===f?(this._match(f),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t,n;if(L[this._lookahead(0)]<10)t={type:"Identity"};else if(this._lookahead(0)===C)t=this.expression(e);else if(this._lookahead(0)===m)t=this.expression(e);else{if("Dot"!==this._lookahead(0))throw n=this._lookaheadToken(0),(n=new Error("Sytanx error, unexpected token: "+n.value+"("+n.type+")")).name="ParserError",n;this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];this._lookahead(0)!==l;){var t=this.expression(0);if(e.push(t),this._lookahead(0)===d&&(this._match(d),this._lookahead(0)===l))throw new Error("Unexpected token Rbracket")}return this._match(l),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,n=[],i=[s,a];;){if(e=this._lookaheadToken(0),i.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(e=e.value,this._advance(),this._match(u),t=this.expression(0),n.push({type:"KeyValuePair",name:e,value:t}),this._lookahead(0)===d)this._match(d);else if(this._lookahead(0)===r){this._match(r);break}}return{type:"MultiSelectHash",children:n}}},M.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var n,i,o,r,s,a;switch(e.type){case"Field":return null!==t&&S(t)?void 0===(l=t[e.name])?null:l:null;case"Subexpression":for(u=this.visit(e.children[0],t),f=1;f<e.children.length;f++)if(null===(u=this.visit(e.children[1],u)))return null;return u;case"IndexExpression":return s=this.visit(e.children[0],t),this.visit(e.children[1],s);case"Index":return w(t)?void 0===(u=t[l=(l=e.value)<0?t.length+l:l])?null:u:null;case"Slice":if(!w(t))return null;var l=e.children.slice(0),l=this.computeSliceParams(t.length,l),c=l[0],h=l[1],d=l[2],u=[];if(0<d)for(f=c;f<h;f+=d)u.push(t[f]);else for(f=c;h<f;f+=d)u.push(t[f]);return u;case"Projection":var g=this.visit(e.children[0],t);if(!w(g))return null;for(p=[],f=0;f<g.length;f++)null!==(i=this.visit(e.children[1],g[f]))&&p.push(i);return p;case"ValueProjection":if(!S(g=this.visit(e.children[0],t)))return null;for(var p=[],m=function(e){for(var t=Object.keys(e),n=[],i=0;i<t.length;i++)n.push(e[t[i]]);return n}(g),f=0;f<m.length;f++)null!==(i=this.visit(e.children[1],m[f]))&&p.push(i);return p;case"FilterProjection":if(!w(g=this.visit(e.children[0],t)))return null;var C=[],y=[];for(f=0;f<g.length;f++)k(n=this.visit(e.children[2],g[f]))||C.push(g[f]);for(var v=0;v<C.length;v++)null!==(i=this.visit(e.children[1],C[v]))&&y.push(i);return y;case"Comparator":switch(o=this.visit(e.children[0],t),r=this.visit(e.children[1],t),e.name){case"EQ":u=x(o,r);break;case"NE":u=!x(o,r);break;case"GT":u=r<o;break;case"GTE":u=r<=o;break;case"LT":u=o<r;break;case"LTE":u=o<=r;break;default:throw new Error("Unknown comparator: "+e.name)}return u;case $:var I=this.visit(e.children[0],t);if(!w(I))return null;var b=[];for(f=0;f<I.length;f++)w(i=I[f])?b.push.apply(b,i):b.push(i);return b;case"Identity":return t;case"MultiSelectList":if(null===t)return null;for(p=[],f=0;f<e.children.length;f++)p.push(this.visit(e.children[f],t));return p;case"MultiSelectHash":if(null===t)return null;for(p={},f=0;f<e.children.length;f++)p[(a=e.children[f]).name]=this.visit(a.value,t);return p;case"OrExpression":return n=k(n=this.visit(e.children[0],t))?this.visit(e.children[1],t):n;case"AndExpression":return!0===k(o=this.visit(e.children[0],t))?o:this.visit(e.children[1],t);case"NotExpression":return k(o=this.visit(e.children[0],t));case"Literal":return e.value;case R:return s=this.visit(e.children[0],t),this.visit(e.children[1],s);case T:return t;case"Function":var A=[];for(f=0;f<e.children.length;f++)A.push(this.visit(e.children[f],t));return this.runtime.callFunction(e.name,A);case"ExpressionReference":l=e.children[0];return l.jmespathType=E,l;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var n=t[0],i=t[1],t=t[2],o=[null,null,null];if(null===t)t=1;else if(0===t)throw(r=new Error("Invalid slice, step cannot be 0")).name="RuntimeError",r;var r=t<0,n=null===n?r?e-1:0:this.capSliceRange(e,n,t),i=null===i?r?-1:e:this.capSliceRange(e,i,t);return o[0]=n,o[1]=i,o[2]=t,o},capSliceRange:function(e,t,n){return t<0?(t+=e)<0&&(t=n<0?-1:0):e<=t&&(t=n<0?e-1:e),t}},B.prototype={callFunction:function(e,t){var n=this.functionTable[e];if(void 0===n)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,n._signature),n._func.call(this,t)},_validateArgs:function(e,t,n){var i;if(n[n.length-1].variadic){if(t.length<n.length)throw i=1===n.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+n.length+i+" but received "+t.length)}else if(t.length!==n.length)throw i=1===n.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+n.length+i+" but received "+t.length);for(var o=0;o<n.length;o++){for(var r,s=!1,a=n[o].types,l=this._getTypeName(t[o]),c=0;c<a.length;c++)if(this._typeMatches(l,a[c],t[o])){s=!0;break}if(!s)throw r=a.map(function(e){return h[e]}).join(","),new Error("TypeError: "+e+"() expected argument "+(o+1)+" to be type "+r+" but received type "+h[l]+" instead.")}},_typeMatches:function(e,t,n){if(1===t)return!0;if(9!==t&&8!==t&&3!==t)return e===t;if(3===t)return 3===e;if(3===e){var i;8===t?i=0:9===t&&(i=2);for(var o=0;o<n.length;o++)if(!this._typeMatches(this._getTypeName(n[o]),i,n[o]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return 2;case"[object Number]":return 0;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return e.jmespathType===E?6:4}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0],e=e[1];return-1!==t.indexOf(e,t.length-e.length)},_functionReverse:function(e){var t;if(2!==this._getTypeName(e[0]))return(t=e[0].slice(0)).reverse(),t;for(var n=e[0],i="",o=n.length-1;0<=o;o--)i+=n[o];return i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,n=e[0],i=0;i<n.length;i++)t+=n[i];return t/n.length},_functionContains:function(e){return 0<=e[0].indexOf(e[1])},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return(S(e[0])?Object.keys(e[0]):e[0]).length},_functionMap:function(e){for(var t=[],n=this._interpreter,i=e[0],o=e[1],r=0;r<o.length;r++)t.push(n.visit(i,o[r]));return t},_functionMerge:function(e){for(var t={},n=0;n<e.length;n++){var i,o=e[n];for(i in o)t[i]=o[i]}return t},_functionMax:function(e){if(0<e[0].length){if(0===this._getTypeName(e[0][0]))return Math.max.apply(Math,e[0]);for(var t=e[0],n=t[0],i=1;i<t.length;i++)n.localeCompare(t[i])<0&&(n=t[i]);return n}return null},_functionMin:function(e){if(0<e[0].length){if(0===this._getTypeName(e[0][0]))return Math.min.apply(Math,e[0]);for(var t=e[0],n=t[0],i=1;i<t.length;i++)t[i].localeCompare(n)<0&&(n=t[i]);return n}return null},_functionSum:function(e){for(var t=0,n=e[0],i=0;i<n.length;i++)t+=n[i];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case 0:return"number";case 2:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],n=Object.keys(t),i=[],o=0;o<n.length;o++)i.push(t[n[o]]);return i},_functionJoin:function(e){var t=e[0];return e[1].join(t)},_functionToArray:function(e){return 3===this._getTypeName(e[0])?e[0]:[e[0]]},_functionToString:function(e){return 2===this._getTypeName(e[0])?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t=this._getTypeName(e[0]);return 0===t?e[0]:2!==t||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){e=e[0].slice(0);return e.sort(),e},_functionSortBy:function(e){var t=e[0].slice(0);if(0!==t.length){var o=this._interpreter,r=e[1],s=this._getTypeName(o.visit(r,t[0]));if([0,2].indexOf(s)<0)throw new Error("TypeError");for(var a=this,n=[],i=0;i<t.length;i++)n.push([i,t[i]]);n.sort(function(e,t){var n=o.visit(r,e[1]),i=o.visit(r,t[1]);if(a._getTypeName(n)!==s)throw new Error("TypeError: expected "+s+", received "+a._getTypeName(n));if(a._getTypeName(i)!==s)throw new Error("TypeError: expected "+s+", received "+a._getTypeName(i));return i<n?1:n<i?-1:e[0]-t[0]});for(var l=0;l<n.length;l++)t[l]=n[l][1]}return t},_functionMaxBy:function(e){for(var t,n,i=e[1],o=e[0],r=this.createKeyFunction(i,[0,2]),s=-1/0,a=0;a<o.length;a++)s<(n=r(o[a]))&&(s=n,t=o[a]);return t},_functionMinBy:function(e){for(var t,n,i=e[1],o=e[0],r=this.createKeyFunction(i,[0,2]),s=1/0,a=0;a<o.length;a++)(n=r(o[a]))<s&&(s=n,t=o[a]);return t},createKeyFunction:function(n,i){var o=this,r=this._interpreter;return function(e){var t,e=r.visit(n,e);if(i.indexOf(o._getTypeName(e))<0)throw t="TypeError: expected one of "+i+", received "+o._getTypeName(e),new Error(t);return e}}},e.tokenize=function(e){return(new n).tokenize(e)},e.compile=function(e){return(new N).parse(e)},e.search=function(e,t){var n=new N,i=new M(o=new B),o=(o._interpreter=i,n.parse(t));return i.search(o,e)},e.strictDeepEqual=x}(t)},4316:function(e){"use strict";var m=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),function e(t,n,i,o,r,s,a,l,c,h){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in n(o,r,s,a,l,c,h),o){var u=o[d];if(Array.isArray(u)){if(d in m.arrayKeywords)for(var g=0;g<u.length;g++)e(t,n,i,u[g],r+"/"+d+"/"+g,s,r,d,o,g)}else if(d in m.propsKeywords){if(u&&"object"==typeof u)for(var p in u)e(t,n,i,u[p],r+"/"+d+"/"+f(p),s,r,d,o,p)}else(d in m.keywords||t.allKeys&&!(d in m.skipKeywords))&&e(t,n,i,u,r+"/"+d,s,r,d,o)}i(o,r,s,a,l,c,h)}}(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function f(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}m.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},m.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},m.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},m.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},3094:function(e,t){"use strict";var b={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},A="a".charCodeAt(),n=(t.parse=function(o,e,t){var i={},n=0,r=0,s=0,a=t&&t.bigint&&"undefined"!=typeof BigInt;return{data:l("",!0),pointers:i};function l(e,t){c(),m(e,"value");var n,i=u();switch(i){case"t":d("rue"),n=!0;break;case"f":d("alse"),n=!1;break;case"n":d("ull"),n=null;break;case'"':n=h();break;case"[":n=function(e){c();var t=[],n=0;if("]"!=u())for(g();;){t.push(l(e+"/"+n)),c();var i=u();if("]"==i)break;","!=i&&v(),c(),n++}return t}(e);break;case"{":n=function(e){c();var t={};if("}"!=u())for(g();;){var n=C(),i=('"'!=u()&&v(),h()),o=e+"/"+w(i),n=(f(o,"key",n),m(o,"keyEnd"),c(),":"!=u()&&v(),c(),t[i]=l(o),c(),u());if("}"==n)break;","!=n&&v(),c()}return t}(e);break;default:g(),0<="-0123456789".indexOf(i)?n=function(){var e="",t=!0;"-"==o[s]&&(e+=u());e+=("0"==o[s]?u:p)(),"."==o[s]&&(e+=u()+p(),t=!1);"e"!=o[s]&&"E"!=o[s]||(e+=u(),"+"!=o[s]&&"-"!=o[s]||(e+=u()),e+=p(),t=!1);var n=+e;return a&&t&&(n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)?BigInt(e):n}():y()}return m(e,"valueEnd"),c(),t&&s<o.length&&y(),n}function c(){e:for(;s<o.length;){switch(o[s]){case" ":r++;break;case"\t":r+=4;break;case"\r":r=0;break;case"\n":r=0,n++;break;default:break e}s++}}function h(){for(var e,t="";'"'!=(e=u());)"\\"==e?(e=u())in b?t+=b[e]:"u"==e?t+=function(){var e=4,t=0;for(;e--;){t<<=4;var n=u().toLowerCase();"a"<=n&&n<="f"?t+=n.charCodeAt()-A+10:"0"<=n&&n<="9"?t+=+n:v()}return String.fromCharCode(t)}():v():t+=e;return t}function d(e){for(var t=0;t<e.length;t++)u()!==e[t]&&v()}function u(){I();var e=o[s];return s++,r++,e}function g(){s--,r--}function p(){for(var e="";"0"<=o[s]&&o[s]<="9";)e+=u();if(e.length)return e;I(),y()}function m(e,t){f(e,t,C())}function f(e,t,n){i[e]=i[e]||{},i[e][t]=n}function C(){return{line:n,column:r,pos:s}}function y(){throw new SyntaxError("Unexpected token "+o[s]+" in JSON at position "+s)}function v(){g(),y()}function I(){if(s>=o.length)throw new SyntaxError("Unexpected end of JSON input")}},t.stringify=function(e,t,n){if(v(e)){var i=0;switch(typeof(u="object"==typeof n?n.space:n)){case"number":var o=10<u?10:u<0?0:Math.floor(u),u=o&&y(o," "),r=o,s=o;break;case"string":u=u.slice(0,10);for(var a=s=r=0;a<u.length;a++){switch(u[a]){case" ":s++;break;case"\t":s+=4;break;case"\r":s=0;break;case"\n":s=0,i++;break;default:throw new Error("whitespace characters not allowed in JSON")}r++}break;default:u=void 0}var l="",c={},h=0,d=0,g=0,p=n&&n.es6&&"function"==typeof Map;return function l(c,h,d){C(d,"value");switch(typeof c){case"number":case"bigint":case"boolean":m(""+c);break;case"string":m(I(c));break;case"object":null===c?m("null"):"function"==typeof c.toJSON?m(I(c.toJSON())):Array.isArray(c)?e():p?c.constructor.BYTES_PER_ELEMENT?e():c instanceof Map?n():c instanceof Set?n(!0):t():t()}C(d,"valueEnd");function e(){if(c.length){m("[");for(var e=h+1,t=0;t<c.length;t++){t&&m(","),f(e);var n=v(c[t])?c[t]:null,i=d+"/"+t;l(n,e,i)}f(h),m("]")}else m("[]")}function t(){var e=Object.keys(c);if(e.length){m("{");for(var t=h+1,n=0;n<e.length;n++){var i,o=e[n],r=c[o];v(r)&&(n&&m(","),i=d+"/"+w(o),f(t),C(i,"key"),m(I(o)),C(i,"keyEnd"),m(":"),u&&m(" "),l(r,t,i))}f(h),m("}")}else m("{}")}function n(e){if(c.size){m("{");for(var t=h+1,n=!0,i=c.entries(),o=i.next();!o.done;){var r,s=o.value,a=s[0],s=!!e||s[1];v(s)&&(n||m(","),n=!1,r=d+"/"+w(a),f(t),C(r,"key"),m(I(a)),C(r,"keyEnd"),m(":"),u&&m(" "),l(s,t,r)),o=i.next()}f(h),m("}")}else m("{}")}}(e,0,""),{json:l,pointers:c}}function m(e){d+=e.length,g+=e.length,l+=e}function f(e){if(u){for(l+="\n"+y(e,u),h++,d=0;e--;)i?(h+=i,d=s):d+=s,g+=r;g+=1}}function C(e,t){c[e]=c[e]||{},c[e][t]={line:h,column:d,pos:g}}function y(e,t){return Array(e+1).join(t)}},["number","bigint","boolean","string","object"]);function v(e){return 0<=n.indexOf(typeof e)}var i=/"|\\/g,o=/[\b]/g,r=/\f/g,s=/\n/g,a=/\r/g,l=/\t/g;function I(e){return'"'+(e=e.replace(i,"\\$&").replace(r,"\\f").replace(o,"\\b").replace(s,"\\n").replace(a,"\\r").replace(l,"\\t"))+'"'}var c=/~/g,h=/\//g;function w(e){return e.replace(c,"~0").replace(h,"~1")}},8340:function(e,t){var n,i;!function(){"use strict";i=[],void 0!==(i="function"==typeof(n=function(){"use strict";function C(e){if(typeof Node==="object")return e instanceof Node;else return e&&typeof e==="object"&&typeof e.nodeType==="number"}function y(e){return typeof e==="string"}function v(){var r=[];return{watch:r.push.bind(r),trigger:function(e,t){var n=true;var i={detail:t,preventDefault:function e(){n=false}};for(var o=0;o<r.length;o++)r[o](e,i);return n}}}function o(e){return window.getComputedStyle(e).display==="none"}function r(e){this.elem=e}function I(e,t){return r.make(e("parent")).clazz("pico-overlay").clazz(e("overlayClass","")).stylize({display:"none",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(e("overlayStyles",{opacity:.5,background:"#000"})).onClick(function(){if(e("overlayClose",true))t()})}r.make=function(e,t){if(typeof e==="string")e=document.querySelector(e);var n=document.createElement(t||"div");(e||document.body).appendChild(n);return new r(n)},r.prototype={child:function(e){return r.make(this.elem,e)},stylize:function(e){e=e||{};if(typeof e.opacity!=="undefined")e.filter="alpha(opacity="+e.opacity*100+")";for(var t in e)if(e.hasOwnProperty(t))this.elem.style[t]=e[t];return this},clazz:function(e){this.elem.className+=" "+e;return this},html:function(e){if(C(e))this.elem.appendChild(e);else this.elem.innerHTML=e;return this},onClick:function(e){this.elem.addEventListener("click",e);return this},destroy:function(){this.elem.parentNode.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(e,t){if(t!==undefined)this.elem.setAttribute(e,t);return this},anyAncestor:function(e){var t=this.elem;while(t)if(e(new r(t)))return true;else t=t.parentNode;return false},isVisible:function(){return!o(this.elem)}};var s=1;function b(e,n){var t=e("width","auto");if(typeof t==="number")t=""+t+"px";var i=e("modalId","pico-"+s++);var o=r.make(e("parent")).clazz("pico-content").clazz(e("modalClass","")).stylize({display:"none",position:"fixed",zIndex:10001,left:"50%",top:"38.1966%",maxHeight:"90%",boxSizing:"border-box",width:t,"-ms-transform":"translate(-50%,-38.1966%)","-moz-transform":"translate(-50%,-38.1966%)","-webkit-transform":"translate(-50%,-38.1966%)","-o-transform":"translate(-50%,-38.1966%)",transform:"translate(-50%,-38.1966%)"}).stylize(e("modalStyles",{overflow:"auto",backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(e("content")).attr("id",i).attr("role","dialog").attr("aria-labelledby",e("ariaLabelledBy")).attr("aria-describedby",e("ariaDescribedBy",i)).onClick(function(e){var t=new r(e.target).anyAncestor(function(e){return/\bpico-close\b/.test(e.elem.className)});if(t)n()});return o}function A(e,t){if(t("closeButton",true))return e.child("button").html(t("closeHtml","×")).clazz("pico-close").clazz(t("closeClass","")).stylize(t("closeStyles",{borderRadius:"2px",border:0,padding:0,cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).attr("aria-label",t("close-label","Close"))}function w(e){return function(){return e().elem}}var S=v(),c=v();function x(r,s){function t(e,t){var n=e.msMatchesSelector||e.webkitMatchesSelector||e.matches;return n.call(e,t)}function i(e){if(o(e)||t(e,":disabled")||e.hasAttribute("contenteditable"))return false;else return e.hasAttribute("tabindex")||t(e,"input,select,textarea,button,a[href],area[href],iframe")}function a(e){var t=e.getElementsByTagName("*");for(var n=0;n<t.length;n++)if(i(t[n]))return t[n]}function l(e){var t=e.getElementsByTagName("*");for(var n=t.length;n--;)if(i(t[n]))return t[n]}var n;r.beforeShow(function e(){n=document.activeElement});r.afterShow(function e(){if(s()){var t=a(r.modalElem());if(t)t.focus()}});r.afterClose(function e(){if(s()&&n)n.focus();n=null});c.watch(function e(t){if(s()&&r.isVisible()){var n=a(r.modalElem());var i=l(r.modalElem());var o=t.shiftKey?n:i;if(o===document.activeElement){(t.shiftKey?i:n).focus();t.preventDefault()}}})}function k(e,t){var n;var i=new r(document.body);e.beforeShow(function(){n=i.elem.style.overflow;if(t())i.stylize({overflow:"hidden"})});e.afterClose(function(){i.stylize({overflow:n})})}return document.documentElement.addEventListener("keydown",function e(t){var n=t.which||t.keyCode;if(n===27)S.trigger();else if(n===9)c.trigger(t)}),function e(i){if(y(i)||C(i))i={content:i};var o=v();var t=v();var n=v();var r=v();var s=v();function a(e,t){var n=i[e];if(typeof n==="function")n=n(t);return n===undefined?t:n}var l=f.bind(window,"modal");var c=f.bind(window,"overlay");var h=f.bind(window,"close");var d;function u(e){c().hide();l().hide();s.trigger(d,e)}function g(e){if(r.trigger(d,e))u(e)}function p(e){return function(){e.apply(this,arguments);return d}}var m;function f(e,t){if(!m){var n=b(a,g);m={modal:n,overlay:I(a,g),close:A(n,a)};o.trigger(d,t)}return m[e]}d={modalElem:w(l),closeElem:w(h),overlayElem:w(c),buildDom:p(f.bind(null,null)),isVisible:function(){return!!(m&&l&&l().isVisible())},show:function(e){if(t.trigger(d,e)){c().show();h();l().show();n.trigger(d,e)}return this},close:p(g),forceClose:p(u),destroy:function(){l().destroy();c().destroy();c=l=h=undefined},options:function(t){Object.keys(t).map(function(e){i[e]=t[e]})},afterCreate:p(o.watch),beforeShow:p(t.watch),afterShow:p(n.watch),beforeClose:p(r.watch),afterClose:p(s.watch)};x(d,a.bind(null,"focus",true));k(d,a.bind(null,"bodyOverflow",true));S.watch(function e(){if(a("escCloses",true)&&d.isVisible())d.close()});return d}})?n.apply(t,i):n)&&(e.exports=i)}()},6777:function(e,t){
|
|
84
84
|
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
85
85
|
!function(e){"use strict";function he(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);var i=t.length-1;for(var o=1;o<i;++o)t[o]=t[o].slice(1,-1);t[i]=t[i].slice(1);return t.join("")}else return t[0]}function de(e){return"(?:"+e+")"}function i(e){return e===undefined?"undefined":e===null?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function p(e){return e.toUpperCase()}function b(e){return e!==undefined&&e!==null?e instanceof Array?e:typeof e.length!=="number"||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function x(e,t){var n=e;if(t)for(var i in t)n[i]=t[i];return n}function t(e){var t="[A-Za-z]",W="[\\x0D]",n="[0-9]",P="[\\x22]",i=he(n,"[A-Fa-f]"),H="[\\x0A]",G="[\\x20]",o=de(de("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+de("%[89A-Fa-f]"+i+"%"+i+i)+"|"+de("%"+i+i)),r="[\\:\\/\\?\\#\\[\\]\\@]",s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",a=he(r,s),l=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",c=e?"[\\uE000-\\uF8FF]":"[]",h=he(t,n,"[\\-\\.\\_\\~]",l),d=de(t+he(t,n,"[\\+\\-\\.]")+"*"),u=de(de(o+"|"+he(h,s,"[\\:]"))+"*"),F=de(de("25[0-5]")+"|"+de("2[0-4]"+n)+"|"+de("1"+n+n)+"|"+de("[1-9]"+n)+"|"+n),g=de(de("25[0-5]")+"|"+de("2[0-4]"+n)+"|"+de("1"+n+n)+"|"+de("0?[1-9]"+n)+"|0?0?"+n),p=de(g+"\\."+g+"\\."+g+"\\."+g),m=de(i+"{1,4}"),f=de(de(m+"\\:"+m)+"|"+p),C=de(de(m+"\\:")+"{6}"+f),y=de("\\:\\:"+de(m+"\\:")+"{5}"+f),v=de(de(m)+"?\\:\\:"+de(m+"\\:")+"{4}"+f),O=de(de(de(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+de(m+"\\:")+"{3}"+f),V=de(de(de(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+de(m+"\\:")+"{2}"+f),Z=de(de(de(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+f),D=de(de(de(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+f),j=de(de(de(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),K=de(de(de(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),I=de([C,y,v,O,V,Z,D,j,K].join("|")),b=de(de(h+"|"+o)+"+"),z=de(I+"\\%25"+b),X=de(I+de("\\%25|\\%(?!"+i+"{2})")+b),Y=de("[vV]"+i+"+\\."+he(h,s,"[\\:]")+"+"),J=de("\\["+de(X+"|"+I+"|"+Y)+"\\]"),A=de(de(o+"|"+he(h,s))+"*"),w=de(J+"|"+p+"(?!"+A+")"+"|"+A),S=de(n+"*"),x=de(de(u+"@")+"?"+w+de("\\:"+S)+"?"),k=de(o+"|"+he(h,s,"[\\:\\@]")),U=de(k+"*"),T=de(k+"+"),Q=de(de(o+"|"+he(h,s,"[\\@]"))+"+"),E=de(de("\\/"+U)+"*"),R=de("\\/"+de(T+E)+"?"),$=de(Q+E),_=de(T+E),L="(?!"+k+")",q=de(E+"|"+R+"|"+$+"|"+_+"|"+L),N=de(de(k+"|"+he("[\\/\\?]",c))+"*"),M=de(de(k+"|[\\/\\?]")+"*"),B=de(de("\\/\\/"+x+E)+"|"+R+"|"+_+"|"+L),ee=de(d+"\\:"+B+de("\\?"+N)+"?"+de("\\#"+M)+"?"),te=de(de("\\/\\/"+x+E)+"|"+R+"|"+$+"|"+L),ne=de(te+de("\\?"+N)+"?"+de("\\#"+M)+"?"),ie=de(ee+"|"+ne),oe=de(d+"\\:"+B+de("\\?"+N)+"?"),re="^("+d+")\\:"+de(de("\\/\\/("+de("("+u+")@")+"?("+w+")"+de("\\:("+S+")")+"?)")+"?("+E+"|"+R+"|"+_+"|"+L+")")+de("\\?("+N+")")+"?"+de("\\#("+M+")")+"?$",se="^(){0}"+de(de("\\/\\/("+de("("+u+")@")+"?("+w+")"+de("\\:("+S+")")+"?)")+"?("+E+"|"+R+"|"+$+"|"+L+")")+de("\\?("+N+")")+"?"+de("\\#("+M+")")+"?$",ae="^("+d+")\\:"+de(de("\\/\\/("+de("("+u+")@")+"?("+w+")"+de("\\:("+S+")")+"?)")+"?("+E+"|"+R+"|"+_+"|"+L+")")+de("\\?("+N+")")+"?$",le="^"+de("\\#("+M+")")+"?$",ce="^"+de("("+u+")@")+"?("+w+")"+de("\\:("+S+")")+"?$";return{NOT_SCHEME:new RegExp(he("[^]",t,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(he("[^\\%\\:]",h,s),"g"),NOT_HOST:new RegExp(he("[^\\%\\[\\]\\:]",h,s),"g"),NOT_PATH:new RegExp(he("[^\\%\\/\\:\\@]",h,s),"g"),NOT_PATH_NOSCHEME:new RegExp(he("[^\\%\\/\\@]",h,s),"g"),NOT_QUERY:new RegExp(he("[^\\%]",h,s,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(he("[^\\%]",h,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(he("[^]",h,s),"g"),UNRESERVED:new RegExp(h,"g"),OTHER_CHARS:new RegExp(he("[^\\%]",h,a),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+I+")"+de(de("\\%25|\\%(?!"+i+"{2})")+"("+b+")")+"?\\]?$")}}var a=t(false),l=t(true),A=function(){function n(e,t){var n=[];var i=true;var o=false;var r=undefined;try{for(var s=e[Symbol.iterator](),a;!(i=(a=s.next()).done);i=true){n.push(a.value);if(t&&n.length===t)break}}catch(e){o=true;r=e}finally{try{if(!i&&s["return"])s["return"]()}finally{if(o)throw r}}return n}return function(e,t){if(Array.isArray(e))return e;else if(Symbol.iterator in Object(e))return n(e,t);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)},M=2147483647,B=36,W=1,P=26,T=38,E=700,H=72,G=128,F="-",R=/^xn--/,$=/[^\0-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},r=B-W,O=Math.floor,V=String.fromCharCode;function Z(e){throw new RangeError(L[e])}function N(e,t){var n=[];var i=e.length;while(i--)n[i]=t(e[i]);return n}function D(e,t){var n=e.split("@");var i="";if(n.length>1){i=n[0]+"@";e=n[1]}e=e.replace(_,".");var o=e.split(".");var r=N(o,t).join(".");return i+r}function j(e){var t=[];var n=0;var i=e.length;while(n<i){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<i){var r=e.charCodeAt(n++);if((r&64512)==56320)t.push(((o&1023)<<10)+(r&1023)+65536);else{t.push(o);n--}}else t.push(o)}return t}var K,z=function e(t){if(t-48<10)return t-22;if(t-65<26)return t-65;if(t-97<26)return t-97;return B},X=function e(t,n){return t+22+75*(t<26)-((n!=0)<<5)},Y=function e(t,n,i){var o=0;t=i?O(t/E):t>>1;t+=O(t/n);for(;t>r*P>>1;o+=B)t=O(t/r);return O(o+(r+1)*t/(t+T))},J=function e(t){var n=[];var i=t.length;var o=0;var r=G;var s=H;var a=t.lastIndexOf(F);if(a<0)a=0;for(var l=0;l<a;++l){if(t.charCodeAt(l)>=128)Z("not-basic");n.push(t.charCodeAt(l))}for(var c=a>0?a+1:0;c<i;){var h=o;for(var d=1,u=B;;u+=B){if(c>=i)Z("invalid-input");var g=z(t.charCodeAt(c++));if(g>=B||g>O((M-o)/d))Z("overflow");o+=g*d;var p=u<=s?W:u>=s+P?P:u-s;if(g<p)break;var m=B-p;if(d>O(M/m))Z("overflow");d*=m}var f=n.length+1;s=Y(o-h,f,h==0);if(O(o/f)>M-r)Z("overflow");r+=O(o/f);o%=f;n.splice(o++,0,r)}return String.fromCodePoint.apply(String,n)},U=function e(t){var n=[];t=j(t);var i=t.length;var o=G;var r=0;var s=H;var a=true;var l=false;var c=undefined;try{for(var h=t[Symbol.iterator](),d;!(a=(d=h.next()).done);a=true){var u=d.value;if(u<128)n.push(V(u))}}catch(e){l=true;c=e}finally{try{if(!a&&h.return)h.return()}finally{if(l)throw c}}var g=n.length;var p=g;if(g)n.push(F);while(p<i){var m=M;var f=true;var C=false;var y=undefined;try{for(var v=t[Symbol.iterator](),I;!(f=(I=v.next()).done);f=true){var b=I.value;if(b>=o&&b<m)m=b}}catch(e){C=true;y=e}finally{try{if(!f&&v.return)v.return()}finally{if(C)throw y}}var A=p+1;if(m-o>O((M-r)/A))Z("overflow");r+=(m-o)*A;o=m;var w=true;var S=false;var x=undefined;try{for(var k=t[Symbol.iterator](),T;!(w=(T=k.next()).done);w=true){var E=T.value;if(E<o&&++r>M)Z("overflow");if(E==o){var R=r;for(var $=B;;$+=B){var _=$<=s?W:$>=s+P?P:$-s;if(R<_)break;var L=R-_;var N=B-_;n.push(V(X(_+L%N,0)));R=O(L/N)}n.push(V(X(R,0)));s=Y(r,A,p==g);r=0;++p}}}catch(e){S=true;x=e}finally{try{if(!w&&k.return)k.return()}finally{if(S)throw x}}++r;++o}return n.join("")},Q,q,C={version:"2.1.0",ucs2:{decode:j,encode:function e(t){return String.fromCodePoint.apply(String,k(t))}},decode:J,encode:U,toASCII:function e(t){return D(t,function(e){return $.test(e)?"xn--"+U(e):e})},toUnicode:function e(t){return D(t,function(e){return R.test(e)?J(e.slice(4).toLowerCase()):e})}},h={};function m(e){var t=e.charCodeAt(0);var n=void 0;if(t<16)n="%0"+t.toString(16).toUpperCase();else if(t<128)n="%"+t.toString(16).toUpperCase();else if(t<2048)n="%"+(t>>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else n="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return n}function c(e){var t="";var n=0;var i=e.length;while(n<i){var o=parseInt(e.substr(n+1,2),16);if(o<128){t+=String.fromCharCode(o);n+=3}else if(o>=194&&o<224){if(i-n>=6){var r=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((o&31)<<6|r&63)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(i-n>=9){var s=parseInt(e.substr(n+4,2),16);var a=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((o&15)<<12|(s&63)<<6|a&63)}else t+=e.substr(n,9);n+=9}else{t+=e.substr(n,3);n+=3}}return t}function d(e,n){function t(e){var t=c(e);return!t.match(n.UNRESERVED)?e:t}if(e.scheme)e.scheme=String(e.scheme).replace(n.PCT_ENCODED,t).toLowerCase().replace(n.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(n.PCT_ENCODED,t).replace(n.NOT_USERINFO,m).replace(n.PCT_ENCODED,p);if(e.host!==undefined)e.host=String(e.host).replace(n.PCT_ENCODED,t).toLowerCase().replace(n.NOT_HOST,m).replace(n.PCT_ENCODED,p);if(e.path!==undefined)e.path=String(e.path).replace(n.PCT_ENCODED,t).replace(e.scheme?n.NOT_PATH:n.NOT_PATH_NOSCHEME,m).replace(n.PCT_ENCODED,p);if(e.query!==undefined)e.query=String(e.query).replace(n.PCT_ENCODED,t).replace(n.NOT_QUERY,m).replace(n.PCT_ENCODED,p);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(n.PCT_ENCODED,t).replace(n.NOT_FRAGMENT,m).replace(n.PCT_ENCODED,p);return e}function w(e){return e.replace(/^0*(.*)/,"$1")||"0"}function S(e,t){var n=e.match(t.IPV4ADDRESS)||[];var i=A(n,2),o=i[1];if(o)return o.split(".").map(w).join(".");else return e}function ee(e,t){var n=e.match(t.IPV6ADDRESS)||[];var i=A(n,3),o=i[1],r=i[2];if(o){var s=o.toLowerCase().split("::").reverse(),a=A(s,2),l=a[0],c=a[1];var h=c?c.split(":").map(w):[];var d=l.split(":").map(w);var u=t.IPV4ADDRESS.test(d[d.length-1]);var g=u?7:8;var p=d.length-g;var m=Array(g);for(var f=0;f<g;++f)m[f]=h[f]||d[p+f]||"";if(u)m[g-1]=S(m[g-1],t);var C=m.reduce(function(e,t,n){if(!t||t==="0"){var i=e[e.length-1];if(i&&i.index+i.length===n)i.length++;else e.push({index:n,length:1})}return e},[]);var y=C.sort(function(e,t){return t.length-e.length})[0];var v=void 0;if(y&&y.length>1){var I=m.slice(0,y.index);var b=m.slice(y.index+y.length);v=I.join(":")+"::"+b.join(":")}else v=m.join(":");if(r)v+="%"+r;return v}else return e}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ne="".match(/(){0}/)[1]===undefined;function s(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n={};var i=t.iri!==false?l:a;if(t.reference==="suffix")e=(t.scheme?t.scheme+":":"")+"//"+e;var o=e.match(te);if(o){if(ne){n.scheme=o[1];n.userinfo=o[3];n.host=o[4];n.port=parseInt(o[5],10);n.path=o[6]||"";n.query=o[7];n.fragment=o[8];if(isNaN(n.port))n.port=o[5]}else{n.scheme=o[1]||undefined;n.userinfo=e.indexOf("@")!==-1?o[3]:undefined;n.host=e.indexOf("//")!==-1?o[4]:undefined;n.port=parseInt(o[5],10);n.path=o[6]||"";n.query=e.indexOf("?")!==-1?o[7]:undefined;n.fragment=e.indexOf("#")!==-1?o[8]:undefined;if(isNaN(n.port))n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined}if(n.host)n.host=ee(S(n.host,i),i);if(n.scheme===undefined&&n.userinfo===undefined&&n.host===undefined&&n.port===undefined&&!n.path&&n.query===undefined)n.reference="same-document";else if(n.scheme===undefined)n.reference="relative";else if(n.fragment===undefined)n.reference="absolute";else n.reference="uri";if(t.reference&&t.reference!=="suffix"&&t.reference!==n.reference)n.error=n.error||"URI is not a "+t.reference+" reference.";var r=h[(t.scheme||n.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!r||!r.unicodeSupport)){if(n.host&&(t.domainHost||r&&r.domainHost))try{n.host=C.toASCII(n.host.replace(i.PCT_ENCODED,c).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}d(n,a)}else d(n,i);if(r&&r.parse)r.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function ie(e,t){var n=t.iri!==false?l:a;var i=[];if(e.userinfo!==undefined){i.push(e.userinfo);i.push("@")}if(e.host!==undefined)i.push(ee(S(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}));if(typeof e.port==="number"||typeof e.port==="string"){i.push(":");i.push(String(e.port))}return i.length?i.join(""):undefined}var oe=/^\.\.?\//,re=/^\/\.(\/|$)/,se=/^\/\.\.(\/|$)/,ae=/^\/?(?:.|\n)*?(?=\/|$)/;function u(e){var t=[];while(e.length)if(e.match(oe))e=e.replace(oe,"");else if(e.match(re))e=e.replace(re,"/");else if(e.match(se)){e=e.replace(se,"/");t.pop()}else if(e==="."||e==="..")e="";else{var n=e.match(ae);if(n){var i=n[0];e=e.slice(i.length);t.push(i)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function g(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var e=n.iri?l:a;var i=[];var o=h[(n.scheme||t.scheme||"").toLowerCase()];if(o&&o.serialize)o.serialize(t,n);if(t.host)if(e.IPV6ADDRESS.test(t.host));else if(n.domainHost||o&&o.domainHost)try{t.host=!n.iri?C.toASCII(t.host.replace(e.PCT_ENCODED,c).toLowerCase()):C.toUnicode(t.host)}catch(e){t.error=t.error||"Host's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+e}d(t,e);if(n.reference!=="suffix"&&t.scheme){i.push(t.scheme);i.push(":")}var r=ie(t,n);if(r!==undefined){if(n.reference!=="suffix")i.push("//");i.push(r);if(t.path&&t.path.charAt(0)!=="/")i.push("/")}if(t.path!==undefined){var s=t.path;if(!n.absolutePath&&(!o||!o.absolutePath))s=u(s);if(r===undefined)s=s.replace(/^\/\//,"/%2F");i.push(s)}if(t.query!==undefined){i.push("?");i.push(t.query)}if(t.fragment!==undefined){i.push("#");i.push(t.fragment)}return i.join("")}function le(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i=arguments[3];var o={};if(!i){e=s(g(e,n),n);t=s(g(t,n),n)}n=n||{};if(!n.tolerant&&t.scheme){o.scheme=t.scheme;o.userinfo=t.userinfo;o.host=t.host;o.port=t.port;o.path=u(t.path||"");o.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){o.userinfo=t.userinfo;o.host=t.host;o.port=t.port;o.path=u(t.path||"");o.query=t.query}else{if(!t.path){o.path=e.path;if(t.query!==undefined)o.query=t.query;else o.query=e.query}else{if(t.path.charAt(0)==="/")o.path=u(t.path);else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path)o.path="/"+t.path;else if(!e.path)o.path=t.path;else o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path;o.path=u(o.path)}o.query=t.query}o.userinfo=e.userinfo;o.host=e.host;o.port=e.port}o.scheme=e.scheme}o.fragment=t.fragment;return o}function ce(e,t,n){var i=x({scheme:"null"},n);return g(le(s(e,i),s(t,i),i,true),i)}function ue(e,t){if(typeof e==="string")e=g(s(e,t),t);else if(i(e)==="object")e=s(g(e,t),t);return e}function ge(e,t,n){if(typeof e==="string")e=g(s(e,n),n);else if(i(e)==="object")e=g(e,n);if(typeof t==="string")t=g(s(t,n),n);else if(i(t)==="object")t=g(t,n);return e===t}function pe(e,t){return e&&e.toString().replace(!t||!t.iri?a.ESCAPE:l.ESCAPE,m)}function y(e,t){return e&&e.toString().replace(!t||!t.iri?a.PCT_ENCODED:l.PCT_ENCODED,c)}var n={scheme:"http",domainHost:true,parse:function e(t,n){if(!t.host)t.error=t.error||"HTTP URIs must have a host.";return t},serialize:function e(t,n){var i=String(t.scheme).toLowerCase()==="https";if(t.port===(i?443:80)||t.port==="")t.port=undefined;if(!t.path)t.path="/";return t}},me={scheme:"https",domainHost:n.domainHost,parse:n.parse,serialize:n.serialize};function fe(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}var o={scheme:"ws",domainHost:true,parse:function e(t,n){var i=t;i.secure=fe(i);i.resourceName=(i.path||"/")+(i.query?"?"+i.query:"");i.path=undefined;i.query=undefined;return i},serialize:function e(t,n){if(t.port===(fe(t)?443:80)||t.port==="")t.port=undefined;if(typeof t.secure==="boolean"){t.scheme=t.secure?"wss":"ws";t.secure=undefined}if(t.resourceName){var i=t.resourceName.split("?"),o=A(i,2),r=o[0],s=o[1];t.path=r&&r!=="/"?r:undefined;t.query=s;t.resourceName=undefined}t.fragment=undefined;return t}},Ce={scheme:"wss",domainHost:o.domainHost,parse:o.parse,serialize:o.serialize},ye={},ve,Ie="[A-Za-z0-9\\-\\.\\_\\~"+(true?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",f="[0-9A-Fa-f]",be=de(de("%[EFef]"+f+"%"+f+f+"%"+f+f)+"|"+de("%[89A-Fa-f]"+f+"%"+f+f)+"|"+de("%"+f+f)),Ae="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",we,Se=he("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),xe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ke=new RegExp(Ie,"g"),v=new RegExp(be,"g"),Te=new RegExp(he("[^]",Ae,"[\\.]",'[\\"]',Se),"g"),Ee=new RegExp(he("[^]",Ie,xe),"g"),Re=Ee;function I(e){var t=c(e);return!t.match(ke)?e:t}var $e={scheme:"mailto",parse:function e(t,n){var i=t;var o=i.to=i.path?i.path.split(","):[];i.path=undefined;if(i.query){var r=false;var s={};var a=i.query.split("&");for(var l=0,c=a.length;l<c;++l){var h=a[l].split("=");switch(h[0]){case"to":var d=h[1].split(",");for(var u=0,g=d.length;u<g;++u)o.push(d[u]);break;case"subject":i.subject=y(h[1],n);break;case"body":i.body=y(h[1],n);break;default:r=true;s[y(h[0],n)]=y(h[1],n);break}}if(r)i.headers=s}i.query=undefined;for(var p=0,m=o.length;p<m;++p){var f=o[p].split("@");f[0]=y(f[0]);if(!n.unicodeSupport)try{f[1]=C.toASCII(y(f[1],n).toLowerCase())}catch(e){i.error=i.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}else f[1]=y(f[1],n).toLowerCase();o[p]=f.join("@")}return i},serialize:function e(t,n){var i=t;var o=b(t.to);if(o){for(var r=0,s=o.length;r<s;++r){var a=String(o[r]);var l=a.lastIndexOf("@");var c=a.slice(0,l).replace(v,I).replace(v,p).replace(Te,m);var h=a.slice(l+1);try{h=!n.iri?C.toASCII(y(h,n).toLowerCase()):C.toUnicode(h)}catch(e){i.error=i.error||"Email address's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+e}o[r]=c+"@"+h}i.path=o.join(",")}var d=t.headers=t.headers||{};if(t.subject)d["subject"]=t.subject;if(t.body)d["body"]=t.body;var u=[];for(var g in d)if(d[g]!==ye[g])u.push(g.replace(v,I).replace(v,p).replace(Ee,m)+"="+d[g].replace(v,I).replace(v,p).replace(Re,m));if(u.length)i.query=u.join("&");return i}},_e=/^([^\:]+)\:(.*)/,Le={scheme:"urn",parse:function e(t,n){var i=t.path&&t.path.match(_e);var o=t;if(i){var r=n.scheme||o.scheme||"urn";var s=i[1].toLowerCase();var a=i[2];var l=r+":"+(n.nid||s);var c=h[l];o.nid=s;o.nss=a;o.path=undefined;if(c)o=c.parse(o,n)}else o.error=o.error||"URN can not be parsed.";return o},serialize:function e(t,n){var i=n.scheme||t.scheme||"urn";var o=t.nid;var r=i+":"+(n.nid||o);var s=h[r];if(s)t=s.serialize(t,n);var a=t;var l=t.nss;a.path=(o||n.nid)+":"+l;return a}},Ne=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Me={scheme:"urn:uuid",parse:function e(t,n){var i=t;i.uuid=i.nss;i.nss=undefined;if(!n.tolerant&&(!i.uuid||!i.uuid.match(Ne)))i.error=i.error||"UUID is not valid.";return i},serialize:function e(t,n){var i=t;i.nss=(t.uuid||"").toLowerCase();return i}};h[n.scheme]=n,h[me.scheme]=me,h[o.scheme]=o,h[Ce.scheme]=Ce,h[$e.scheme]=$e,h[Le.scheme]=Le,h[Me.scheme]=Me,e.SCHEMES=h,e.pctEncChar=m,e.pctDecChars=c,e.parse=s,e.removeDotSegments=u,e.serialize=g,e.resolveComponents=le,e.resolve=ce,e.normalize=ue,e.equal=ge,e.escapeComponent=pe,e.unescapeComponent=y,Object.defineProperty(e,"__esModule",{value:true})}(t)},7598:function(e){e.exports=function(){"use strict";var s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}}(),m=function(){function n(e,t){var n=[];var i=true;var o=false;var r=undefined;try{for(var s=e[Symbol.iterator](),a;!(i=(a=s.next()).done);i=true){n.push(a.value);if(t&&n.length===t)break}}catch(e){o=true;r=e}finally{try{if(!i&&s["return"])s["return"]()}finally{if(o)throw r}}return n}return function(e,t){if(Array.isArray(e))return e;else if(Symbol.iterator in Object(e))return n(e,t);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=(String.prototype.startsWith=String.prototype.startsWith||function(e){return this.indexOf(e)===0},String.prototype.padStart=String.prototype.padStart||function(e,t){var n=this;while(n.length<e)n=t+n;return n},{cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"});function a(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=t>0?e.toFixed(t).replace(/0+$/,"").replace(/\.$/,""):e.toString();return n||"0"}var r=function(){function p(e,t,n,i){s(this,p);var g=this;function o(e){if(e.startsWith("hsl")){var t=e.match(/([\-\d\.e]+)/g).map(Number),n=m(t,4),i=n[0],o=n[1],r=n[2],s=n[3];if(s===undefined)s=1;i/=360;o/=100;r/=100;g.hsla=[i,o,r,s]}else if(e.startsWith("rgb")){var a=e.match(/([\-\d\.e]+)/g).map(Number),l=m(a,4),c=l[0],h=l[1],d=l[2],u=l[3];if(u===undefined)u=1;g.rgba=[c,h,d,u]}else if(e.startsWith("#"))g.rgba=p.hexToRgb(e);else g.rgba=p.nameToRgb(e)||p.hexToRgb(e)}if(e===undefined);else if(Array.isArray(e))this.rgba=e;else if(n===undefined){var r=e&&""+e;if(r)o(r.toLowerCase())}else this.rgba=[e,t,n,i===undefined?1:i]}e(p,[{key:"printRGB",value:function e(t){var n=t?this.rgba:this.rgba.slice(0,3),i=n.map(function(e,t){return a(e,t===3?3:0)});return t?"rgba("+i+")":"rgb("+i+")"}},{key:"printHSL",value:function e(t){var n=[360,100,100,1],i=["","%","%",""];var o=t?this.hsla:this.hsla.slice(0,3),r=o.map(function(e,t){return a(e*n[t],t===3?3:1)+i[t]});return t?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function e(t){var n=this.hex;return t?n:n.substring(0,7)}},{key:"rgba",get:function e(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=p.hslToRgb(this._hsla)},set:function e(t){if(t.length===3)t[3]=1;this._rgba=t;this._hsla=null}},{key:"rgbString",get:function e(){return this.printRGB()}},{key:"rgbaString",get:function e(){return this.printRGB(true)}},{key:"hsla",get:function e(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=p.rgbToHsl(this._rgba)},set:function e(t){if(t.length===3)t[3]=1;this._hsla=t;this._rgba=null}},{key:"hslString",get:function e(){return this.printHSL()}},{key:"hslaString",get:function e(){return this.printHSL(true)}},{key:"hex",get:function e(){var t=this.rgba,n=t.map(function(e,t){return t<3?e.toString(16):Math.round(e*255).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function e(t){this.rgba=p.hexToRgb(t)}}],[{key:"hexToRgb",value:function e(t){var n=(t.startsWith("#")?t.slice(1):t).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!n.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+t);var i=n.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(e){return parseInt(e,16)});i[3]=i[3]/255;return i}},{key:"nameToRgb",value:function e(t){var n=t.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=o[n];return i===undefined?i:p.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function e(t){var n=m(t,4),i=n[0],o=n[1],r=n[2],s=n[3];i/=255;o/=255;r/=255;var a=Math.max(i,o,r),l=Math.min(i,o,r);var c=void 0,h=void 0,d=(a+l)/2;if(a===l)c=h=0;else{var u=a-l;h=d>.5?u/(2-a-l):u/(a+l);switch(a){case i:c=(o-r)/u+(o<r?6:0);break;case o:c=(r-i)/u+2;break;case r:c=(i-o)/u+4;break}c/=6}return[c,h,d,s]}},{key:"hslToRgb",value:function e(t){var n=m(t,4),i=n[0],o=n[1],r=n[2],s=n[3];var a=void 0,l=void 0,c=void 0;if(o===0)a=l=c=r;else{var h=function e(t,n,i){if(i<0)i+=1;if(i>1)i-=1;if(i<1/6)return t+(n-t)*6*i;if(i<1/2)return n;if(i<2/3)return t+(n-t)*(2/3-i)*6;return t};var d=r<.5?r*(1+o):r+o-r*o,u=2*r-d;a=h(u,d,i+1/3);l=h(u,d,i);c=h(u,d,i-1/3)}var g=[a*255,l*255,c*255].map(Math.round);g[3]=s;return g}}]);return p}(),n=function(){function r(){s(this,r);this._events=[]}e(r,[{key:"add",value:function e(t,n,i){t.addEventListener(n,i,false);this._events.push({target:t,type:n,handler:i})}},{key:"remove",value:function e(n,i,o){this._events=this._events.filter(function(e){var t=true;if(n&&n!==e.target)t=false;if(i&&i!==e.type)t=false;if(o&&o!==e.handler)t=false;if(t)r._doRemove(e.target,e.type,e.handler);return!t})}},{key:"destroy",value:function e(){this._events.forEach(function(e){return r._doRemove(e.target,e.type,e.handler)});this._events=[]}}],[{key:"_doRemove",value:function e(t,n,i){t.removeEventListener(n,i,false)}}]);return r}();function l(e){var t=document.createElement("div");t.innerHTML=e;return t.firstElementChild}function c(e,h,d){var u=false;function g(e,t,n){return Math.max(t,Math.min(e,n))}function i(e,t,n){if(n)u=true;if(!u)return;e.preventDefault();var i=h.getBoundingClientRect(),o=i.width,r=i.height,s=t.clientX,a=t.clientY;var l=g(s-i.left,0,o),c=g(a-i.top,0,r);d(l/o,c/r)}function t(e,t){var n=e.buttons===undefined?e.which:e.buttons;if(n===1)i(e,e,t);else u=false}function n(e,t){if(e.touches.length===1)i(e,e.touches[0],t);else u=false}e.add(h,"mousedown",function(e){t(e,true)});e.add(h,"touchstart",function(e){n(e,true)});e.add(window,"mousemove",t);e.add(h,"touchmove",n);e.add(window,"mouseup",function(e){u=false});e.add(h,"touchend",function(e){u=false});e.add(h,"touchcancel",function(e){u=false})}var b="linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",A=360,h="keydown",d="mousedown",u="focusin";function w(e,t){return(t||document).querySelector(e)}function g(e){e.preventDefault();e.stopPropagation()}function p(e,t,n,i,o){e.add(t,h,function(e){if(n.indexOf(e.key)>=0){if(o)g(e);i(e)}})}var t=function(){function t(e){s(this,t);this.settings={popup:"right",layout:"default",alpha:true,editor:true,editorFormat:"hex",cancelButton:false,defaultColor:"#0cf"};this._events=new n;this.onChange=null;this.onDone=null;this.onOpen=null;this.onClose=null;this.setOptions(e)}e(t,[{key:"setOptions",value:function e(t){var n=this;if(!t)return;var i=this.settings;function o(e,t,n){for(var i in e){if(n&&n.indexOf(i)>=0)continue;t[i]=e[i]}}if(t instanceof HTMLElement)i.parent=t;else{if(i.parent&&t.parent&&i.parent!==t.parent){this._events.remove(i.parent);this._popupInited=false}o(t,i);if(t.onChange)this.onChange=t.onChange;if(t.onDone)this.onDone=t.onDone;if(t.onOpen)this.onOpen=t.onOpen;if(t.onClose)this.onClose=t.onClose;var r=t.color||t.colour;if(r)this._setColor(r)}var s=i.parent;if(s&&i.popup&&!this._popupInited){var a=function e(t){return n.openHandler(t)};this._events.add(s,"click",a);p(this._events,s,[" ","Spacebar","Enter"],a);this._popupInited=true}else if(t.parent&&!i.popup)this.show()}},{key:"openHandler",value:function e(t){if(this.show()){t&&t.preventDefault();this.settings.parent.style.pointerEvents="none";var n=t&&t.type===h?this._domEdit:this.domElement;setTimeout(function(){return n.focus()},100);if(this.onOpen)this.onOpen(this.colour)}}},{key:"closeHandler",value:function e(t){var n=t&&t.type;var i=false;if(!t)i=true;else if(n===d||n===u){var o=(this.__containedEvent||0)+100;if(t.timeStamp>o)i=true}else{g(t);i=true}if(i&&this.hide()){this.settings.parent.style.pointerEvents="";if(n!==d)this.settings.parent.focus();if(this.onClose)this.onClose(this.colour)}}},{key:"movePopup",value:function e(t,n){this.closeHandler();this.setOptions(t);if(n)this.openHandler()}},{key:"setColor",value:function e(t,n){this._setColor(t,{silent:n})}},{key:"_setColor",value:function e(t,n){if(typeof t==="string")t=t.trim();if(!t)return;n=n||{};var i=void 0;try{i=new r(t)}catch(e){if(n.failSilently)return;throw e}if(!this.settings.alpha){var o=i.hsla;o[3]=1;i.hsla=o}this.colour=this.color=i;this._setHSLA(null,null,null,null,n)}},{key:"setColour",value:function e(t,n){this.setColor(t,n)}},{key:"show",value:function e(){var t=this.settings.parent;if(!t)return false;if(this.domElement){var n=this._toggleDOM(true);this._setPosition();return n}var i=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>';var o=l(i);this.domElement=o;this._domH=w(".picker_hue",o);this._domSL=w(".picker_sl",o);this._domA=w(".picker_alpha",o);this._domEdit=w(".picker_editor input",o);this._domSample=w(".picker_sample",o);this._domOkay=w(".picker_done button",o);this._domCancel=w(".picker_cancel button",o);o.classList.add("layout_"+this.settings.layout);if(!this.settings.alpha)o.classList.add("no_alpha");if(!this.settings.editor)o.classList.add("no_editor");if(!this.settings.cancelButton)o.classList.add("no_cancel");this._ifPopup(function(){return o.classList.add("popup")});this._setPosition();if(this.colour)this._updateUI();else this._setColor(this.settings.defaultColor);this._bindEvents();return true}},{key:"hide",value:function e(){return this._toggleDOM(false)}},{key:"destroy",value:function e(){this._events.destroy();if(this.domElement)this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function e(){var n=this;var i=this,o=this.domElement,r=this._events;function s(e,t,n){r.add(e,t,n)}s(o,"click",function(e){return e.preventDefault()});c(r,this._domH,function(e,t){return i._setHSLA(e)});c(r,this._domSL,function(e,t){return i._setHSLA(null,e,1-t)});if(this.settings.alpha)c(r,this._domA,function(e,t){return i._setHSLA(null,null,null,1-t)});var t=this._domEdit;{s(t,"input",function(e){i._setColor(this.value,{fromEditor:true,failSilently:true})});s(t,"focus",function(e){var t=this;if(t.selectionStart===t.selectionEnd)t.select()})}this._ifPopup(function(){var e=function e(t){return n.closeHandler(t)};s(window,d,e);s(window,u,e);p(r,o,["Esc","Escape"],e);var t=function e(t){n.__containedEvent=t.timeStamp};s(o,d,t);s(o,u,t);s(n._domCancel,"click",e)});var a=function e(t){n._ifPopup(function(){return n.closeHandler(t)});if(n.onDone)n.onDone(n.colour)};s(this._domOkay,"click",a);p(r,o,["Enter"],a)}},{key:"_setPosition",value:function e(){var n=this.settings.parent,i=this.domElement;if(n!==i.parentNode)n.appendChild(i);this._ifPopup(function(e){if(getComputedStyle(n).position==="static")n.style.position="relative";var t=e===true?"popup_right":"popup_"+e;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(e){if(e===t)i.classList.add(e);else i.classList.remove(e)});i.classList.add(t)})}},{key:"_setHSLA",value:function e(t,n,i,o,r){r=r||{};var s=this.colour,a=s.hsla;[t,n,i,o].forEach(function(e,t){if(e||e===0)a[t]=e});s.hsla=a;this._updateUI(r);if(this.onChange&&!r.silent)this.onChange(s)}},{key:"_updateUI",value:function e(t){if(!this.domElement)return;t=t||{};var n=this.colour,i=n.hsla,o="hsl("+i[0]*A+", 100%, 50%)",r=n.hslString,s=n.hslaString;var a=this._domH,l=this._domSL,c=this._domA,h=w(".picker_selector",a),d=w(".picker_selector",l),u=w(".picker_selector",c);function g(e,t,n){t.style.left=n*100+"%"}function p(e,t,n){t.style.top=n*100+"%"}g(a,h,i[0]);this._domSL.style.backgroundColor=this._domH.style.color=o;g(l,d,i[1]);p(l,d,1-i[2]);l.style.color=r;p(c,u,1-i[3]);var m=r,f=m.replace("hsl","hsla").replace(")",", 0)"),C="linear-gradient("+[m,f]+")";this._domA.style.background=C+", "+b;if(!t.fromEditor){var y=this.settings.editorFormat,v=this.settings.alpha;var I=void 0;switch(y){case"rgb":I=n.printRGB(v);break;case"hsl":I=n.printHSL(v);break;default:I=n.printHex(v)}this._domEdit.value=I}this._domSample.style.color=s}},{key:"_ifPopup",value:function e(t,n){if(this.settings.parent&&this.settings.popup)t&&t(this.settings.popup);else n&&n()}},{key:"_toggleDOM",value:function e(t){var n=this.domElement;if(!n)return false;var i=t?"":"none",o=n.style.display!==i;if(o)n.style.display=i;return o}}]);return t}(),i=document.createElement("style");return i.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(i),t.StyleElement=i,t}()},9857:function(o,e,t){"use strict";t.d(e,{m:function(){return C}});class I extends Error{constructor(e,t){super(e+" at position "+t),this.position=t}}const b=92,c=47,h=42,d=123,u=125,A=91,w=93,S=40,x=41,n=32,k=10,T=9,E=13,R=8,$=12,_=34,L=43,N=45,i=39,M=48,B=57,W=44,X=46,Y=58,J=59,U=65,Q=97,q=69,ee=101,te=70,ne=102,ie=160,oe=8192,re=8202,se=8239,ae=8287,le=12288,r=8220,s=8221,a=8216,l=8217,g=96,p=180;function P(e){return e>=M&&e<=B}function H(e){return m.test(e)}const m=/^[,:[\]/{}()\n+]$/;function G(e){return f.test(e)||e&&O(e.charCodeAt(0))}const f=/^[[{\w-]$/;function F(e){return e===n||e===k||e===T||e===E}function O(e){return V(e)||D(e)}function V(e){return e===_||e===r||e===s}function Z(e){return e===_}function D(e){return e===i||e===a||e===l||e===g||e===p}function j(e){return e===i}function K(e,t,n){n=2<arguments.length&&void 0!==n&&n,t=e.lastIndexOf(t);return-1!==t?e.substring(0,t)+(n?"":e.substring(t+1)):e}function z(e,t){let n=e.length;if(!F(e.charCodeAt(n-1)))return e+t;for(;F(e.charCodeAt(n-1));)n--;return e.substring(0,n)+t+e.substring(n)}const ce={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},he={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function C(g){let p=0,m="";if(!r())throw new I("Unexpected end of json string",g.length);var e=s(W);if(e&&f(),G(g[p])&&/[,\n][ \t\r]*$/.test(m)){e||(m=z(m,","));{let e=!0,t=!0;for(;t;)e?e=!1:s(W)||(m=z(m,",")),t=r();t||(m=K(m,","));m="[\n".concat(m,"\n]")}}else e&&(m=K(m,","));for(;g.charCodeAt(p)===u||g.charCodeAt(p)===w;)p++,f();if(p>=g.length)return m;throw new I("Unexpected character "+JSON.stringify(g[p]),p);function r(){f();var e=function(){if(g.charCodeAt(p)!==d)return!1;{m+="{",p++,f();let t=!0;for(;p<g.length&&g.charCodeAt(p)!==u;){let e;if(t?(e=!0,t=!1):((e=s(W))||(m=z(m,",")),f()),!(y()||a())){g.charCodeAt(p)===u||g.charCodeAt(p)===d||g.charCodeAt(p)===w||g.charCodeAt(p)===A||void 0===g[p]?m=K(m,","):function(){throw new I("Object key expected",p)}();break}f();var n=s(Y),i=p>=g.length,o=(n||(G(g[p])||i?m=z(m,":"):l()),r());o||(n||i?m+="null":l())}return g.charCodeAt(p)===u?(m+="}",p++):m=z(m,"}"),!0}}()||function(){if(g.charCodeAt(p)!==A)return!1;{m+="[",p++,f();let e=!0;for(;p<g.length&&g.charCodeAt(p)!==w;){e?e=!1:s(W)||(m=z(m,","));var t=r();if(!t){m=K(m,",");break}}return g.charCodeAt(p)===w?(m+="]",p++):m=z(m,"]"),!0}}()||y()||function(){var e=p;if(g.charCodeAt(p)===N&&(p++,o(e)))return!0;for(;P(g.charCodeAt(p));)p++;if(g.charCodeAt(p)===X){if(p++,o(e))return!0;for(;P(g.charCodeAt(p));)p++}if(g.charCodeAt(p)===ee||g.charCodeAt(p)===q){if(p++,g.charCodeAt(p)!==N&&g.charCodeAt(p)!==L||p++,o(e))return!0;for(;P(g.charCodeAt(p));)p++}{var t;if(p>e)return e=g.slice(e,p),t=/^0\d/.test(e),m+=t?'"'.concat(e,'"'):e,!0}return!1}()||n("true","true")||n("false","false")||n("null","null")||n("True","true")||n("False","false")||n("None","null")||a();return f(),e}function f(){p;let e=t();for(;e=(e=function(){if(g.charCodeAt(p)===c&&g.charCodeAt(p+1)===h){for(;p<g.length&&!function(e,t){return"*"===e[t]&&"/"===e[t+1]}(g,p);)p++;p+=2}else{if(g.charCodeAt(p)!==c||g.charCodeAt(p+1)!==c)return!1;for(;p<g.length&&g.charCodeAt(p)!==k;)p++}return!0}())&&t(););p}function t(){let e="";for(var t,n;(t=F(g.charCodeAt(p)))||(n=g.charCodeAt(p))===ie||n>=oe&&n<=re||n===se||n===ae||n===le;)e+=t?g[p]:" ",p++;return 0<e.length&&(m+=e,!0)}function s(e){return g.charCodeAt(p)===e&&(m+=g[p],p++,!0)}function C(){var e;e=b,g.charCodeAt(p)===e&&p++}function y(e){var n,i,o=0<arguments.length&&void 0!==e&&e;let r=g.charCodeAt(p)===b;if(r&&(p++,r=!0),O(g.charCodeAt(p))){var s=Z(g.charCodeAt(p))?Z:j(g.charCodeAt(p))?j:D(g.charCodeAt(p))?D:V,a=p,l=m.length;let t='"';for(p++;;){if(p>=g.length)return o?(t=z(t,'"'),m+=t,!0):(p=a,m=m.substring(0,l),y(!0));if(s(g.charCodeAt(p))){var c=p,h=t.length;if(t+='"',p++,m+=t,f(),o||p>=g.length||H(g.charAt(p))||O(g.charCodeAt(p)))return v(),!0;if(H(g.charAt(function(e){let t=e;for(;0<t&&F(g.charCodeAt(t));)t--;return t}(c-1))))return p=a,m=m.substring(0,l),y(!0);m=m.substring(0,l),p=c+1,t=t.substring(0,h)+"\\"+t.substring(h)}else{if(o&&H(g[p]))return t=z(t,'"'),m+=t,v(),!0;if(g.charCodeAt(p)===b){c=g.charAt(p+1);if(void 0!==he[c])t+=g.slice(p,p+2),p+=2;else if("u"===c){let e=2;for(;e<6&&((i=g.charCodeAt(p+e))>=M&&i<=B||i>=U&&i<=te||i>=Q&&i<=ne);)e++;if(6===e)t+=g.slice(p,p+6),p+=6;else{if(!(p+e>=g.length))throw h=void 0,h=g.slice(p,p+6),new I('Invalid unicode character "'.concat(h,'"'),p);p=g.length}}else t+=c,p+=2}else{var d=g.charAt(p),u=g.charCodeAt(p);if(u===_&&g.charCodeAt(p-1)!==b)t+="\\"+d;else if((n=u)===k||n===E||n===T||n===R||n===$)t+=ce[d];else{if(!(32<=(n=u)&&n<=1114111))throw u=void 0,u=d,new I("Invalid character "+JSON.stringify(u),p);t+=d}p++}}r&&C()}}return!1}function v(){let e=!1;for(f();g.charCodeAt(p)===L;){e=!0,p++,f();var t=(m=K(m,'"',!0)).length,n=y();m=n?(n=m,t=t,i=1,n.substring(0,t)+n.substring(t+i)):z(m,'"')}var i;e}function n(e,t){return g.slice(p,p+e.length)===e&&(m+=t,p+=e.length,!0)}function a(){for(var e=p;p<g.length&&!H(g[p])&&!O(g.charCodeAt(p));)p++;if(p>e){if(g.charCodeAt(p)===S)p++,r(),g.charCodeAt(p)===x&&(p++,g.charCodeAt(p)===J)&&p++;else{for(;F(g.charCodeAt(p-1))&&0<p;)p--;e=g.slice(e,p);m+="undefined"===e?"null":JSON.stringify(e),g.charCodeAt(p)===_&&p++}return!0}}function i(e){if(!P(g.charCodeAt(p)))throw e=g.slice(e,p),new I("Invalid number '".concat(e,"', expecting a digit ").concat(g[p]?"but got '".concat(g[p],"'"):"but reached end of input"),p)}function o(e){if(p>=g.length)return m+=g.slice(e,p)+"0",1;i(e)}function l(){throw new I("Colon expected",p)}}},3420:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},5207:function(e){"use strict";e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},6801:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},8198:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},o={},i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},i(1346);function i(e){var t=o[e];return void 0!==t||(t=o[e]={id:e,loaded:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.loaded=!0),t.exports}var n,o});
|
|
86
|
-
//# sourceMappingURL=jsoneditor.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import html
|
|
2
|
+
import json
|
|
3
|
+
from builtins import super
|
|
4
|
+
|
|
5
|
+
from django import forms
|
|
6
|
+
from django.conf import settings
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class JSONEditorWidget(forms.Widget):
|
|
10
|
+
class Media:
|
|
11
|
+
js = (
|
|
12
|
+
getattr(settings, "JSON_EDITOR_JS", 'dist/jsoneditor.min.js'),
|
|
13
|
+
)
|
|
14
|
+
css = {
|
|
15
|
+
'all': (
|
|
16
|
+
getattr(settings, "JSON_EDITOR_CSS", 'dist/jsoneditor.min.css'),
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
template_name = 'django_json_widget.html'
|
|
21
|
+
|
|
22
|
+
def __init__(self, attrs=None, mode='code', options=None, width=None, height=None):
|
|
23
|
+
default_options = {
|
|
24
|
+
'modes': ['text', 'code', 'tree', 'form', 'view'],
|
|
25
|
+
'mode': mode,
|
|
26
|
+
'search': True,
|
|
27
|
+
}
|
|
28
|
+
if options:
|
|
29
|
+
default_options.update(options)
|
|
30
|
+
|
|
31
|
+
self.options = default_options
|
|
32
|
+
self.width = width
|
|
33
|
+
self.height = height
|
|
34
|
+
|
|
35
|
+
super(JSONEditorWidget, self).__init__(attrs=attrs)
|
|
36
|
+
|
|
37
|
+
def get_context(self, name, value, attrs):
|
|
38
|
+
context = super().get_context(name, value, attrs)
|
|
39
|
+
context['widget']['options'] = json.dumps(self.options)
|
|
40
|
+
context['widget']['width'] = self.width
|
|
41
|
+
context['widget']['height'] = self.height
|
|
42
|
+
|
|
43
|
+
if value:
|
|
44
|
+
if isinstance(value, str):
|
|
45
|
+
try:
|
|
46
|
+
value = json.loads(value)
|
|
47
|
+
except json.JSONDecodeError:
|
|
48
|
+
pass
|
|
49
|
+
|
|
50
|
+
def escape_html_in_json(obj):
|
|
51
|
+
if isinstance(obj, str):
|
|
52
|
+
return html.escape(obj)
|
|
53
|
+
elif isinstance(obj, dict):
|
|
54
|
+
return {k: escape_html_in_json(v) for k, v in obj.items()}
|
|
55
|
+
elif isinstance(obj, (list, tuple)):
|
|
56
|
+
return [escape_html_in_json(item) for item in obj]
|
|
57
|
+
return obj
|
|
58
|
+
|
|
59
|
+
# Escape HTML in the value
|
|
60
|
+
safe_value = escape_html_in_json(value)
|
|
61
|
+
# Convert back to JSON string
|
|
62
|
+
context["widget"]["value"] = json.dumps(safe_value)
|
|
63
|
+
|
|
64
|
+
return context
|
|
65
|
+
|
|
66
|
+
def format_value(self, value):
|
|
67
|
+
"""
|
|
68
|
+
When form is submitted, unescape the HTML entities in the JSON data
|
|
69
|
+
"""
|
|
70
|
+
value = json.loads(value)
|
|
71
|
+
if value:
|
|
72
|
+
try:
|
|
73
|
+
json_value = json.loads(value)
|
|
74
|
+
|
|
75
|
+
def unescape_html_in_json(obj):
|
|
76
|
+
if isinstance(obj, str):
|
|
77
|
+
return html.unescape(obj)
|
|
78
|
+
elif isinstance(obj, dict):
|
|
79
|
+
return {k: unescape_html_in_json(v) for k, v in obj.items()}
|
|
80
|
+
elif isinstance(obj, (list, tuple)):
|
|
81
|
+
return [unescape_html_in_json(item) for item in obj]
|
|
82
|
+
return obj
|
|
83
|
+
|
|
84
|
+
unescaped_value = unescape_html_in_json(json_value)
|
|
85
|
+
return json.dumps(unescaped_value)
|
|
86
|
+
except json.JSONDecodeError:
|
|
87
|
+
return value
|
|
88
|
+
return value
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: django-json-widget
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Django json widget is an alternative widget that makes it easy to edit the jsonfield field of django.
|
|
5
5
|
Home-page: https://github.com/jmrivas86/django-json-widget
|
|
6
6
|
Author: José Manuel Rivas
|
|
@@ -25,6 +25,15 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
25
25
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
26
|
License-File: LICENSE
|
|
27
27
|
License-File: AUTHORS.rst
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: home-page
|
|
33
|
+
Dynamic: keywords
|
|
34
|
+
Dynamic: license
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
Dynamic: summary
|
|
28
37
|
|
|
29
38
|
=============================
|
|
30
39
|
django-json-widget
|
|
@@ -133,12 +142,60 @@ Tools used in rendering this package:
|
|
|
133
142
|
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
|
|
134
143
|
|
|
135
144
|
|
|
145
|
+
=========
|
|
146
|
+
Changelog
|
|
147
|
+
=========
|
|
136
148
|
|
|
149
|
+
2.0.2 (2025-07-28)
|
|
150
|
+
------------------
|
|
137
151
|
|
|
138
|
-
|
|
139
|
-
|
|
152
|
+
* Fix Version 2.0.1 causes rendering HTML scripts issue #80
|
|
153
|
+
|
|
154
|
+
2.0.1 (2024-03-02)
|
|
155
|
+
------------------=
|
|
156
|
+
|
|
157
|
+
* Fixed Version 2.0.0 causes issues with Django 4.x due to missing sourcemaps issue #83
|
|
158
|
+
|
|
159
|
+
2.0.0 (2024-03-24)
|
|
160
|
+
------------------
|
|
161
|
+
|
|
162
|
+
* Fix default paths for static files #53
|
|
163
|
+
* Stop declaring support for Django versions before 3.2 #65
|
|
164
|
+
* Avoid HTML injection via unsafe JSON injection #64
|
|
165
|
+
* Remove source map reference from JS bundle #70
|
|
166
|
+
* Add dark mode CSS support #82
|
|
167
|
+
* Updated documentation
|
|
168
|
+
|
|
169
|
+
1.1.1 (2021-02-17)
|
|
170
|
+
------------------
|
|
171
|
+
|
|
172
|
+
* Fix for issue #51, updates the bundled libs to 9.1.9 and additional notes for Django 3.1 changes
|
|
173
|
+
|
|
174
|
+
1.1.0 (2021-02-05)
|
|
175
|
+
------------------
|
|
176
|
+
|
|
177
|
+
* Added functionality to override version of JSONEditor to use
|
|
178
|
+
* update readme for django 3.1
|
|
179
|
+
|
|
180
|
+
1.0.1 (2020-04-17)
|
|
181
|
+
------------------
|
|
182
|
+
|
|
183
|
+
* Stop resolving paths to the static files
|
|
184
|
+
|
|
185
|
+
1.0.0 (2020-01-16)
|
|
186
|
+
------------------
|
|
187
|
+
|
|
188
|
+
* Update Makefile
|
|
189
|
+
* Make Stable the project
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
0.3.0 (2020-01-16)
|
|
193
|
+
------------------
|
|
194
|
+
|
|
195
|
+
* Update requirements.txt
|
|
196
|
+
* Fixed static to work with CDN tools like django-storages
|
|
197
|
+
* Make widget more configurable
|
|
198
|
+
* Fixed an incompatibility with Python 2.7
|
|
199
|
+
* update jsoneditor to latest version
|
|
140
200
|
|
|
141
|
-
0.1.0 (2017-05-10)
|
|
142
|
-
++++++++++++++++++
|
|
143
201
|
|
|
144
|
-
* First release on PyPI.
|
|
@@ -42,11 +42,11 @@ if sys.argv[-1] == 'tag':
|
|
|
42
42
|
sys.exit()
|
|
43
43
|
|
|
44
44
|
readme = open('README.rst').read()
|
|
45
|
-
history = open('
|
|
45
|
+
history = open('CHANGELOG.rst').read().replace('.. :changelog:', '')
|
|
46
46
|
|
|
47
47
|
setup(
|
|
48
48
|
name='django-json-widget',
|
|
49
|
-
version='2.0.
|
|
49
|
+
version='2.0.2',
|
|
50
50
|
description="""Django json widget is an alternative widget that makes it easy to edit the jsonfield field of django.""",
|
|
51
51
|
long_description=readme + '\n\n' + history,
|
|
52
52
|
author='José Manuel Rivas',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.0.0'
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from builtins import super
|
|
3
|
-
|
|
4
|
-
from django import forms
|
|
5
|
-
from django.conf import settings
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class JSONEditorWidget(forms.Widget):
|
|
9
|
-
class Media:
|
|
10
|
-
js = (
|
|
11
|
-
getattr(settings, "JSON_EDITOR_JS", 'dist/jsoneditor.min.js'),
|
|
12
|
-
)
|
|
13
|
-
css = {
|
|
14
|
-
'all': (
|
|
15
|
-
getattr(settings, "JSON_EDITOR_CSS", 'dist/jsoneditor.min.css'),
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
template_name = 'django_json_widget.html'
|
|
20
|
-
|
|
21
|
-
def __init__(self, attrs=None, mode='code', options=None, width=None, height=None):
|
|
22
|
-
default_options = {
|
|
23
|
-
'modes': ['text', 'code', 'tree', 'form', 'view'],
|
|
24
|
-
'mode': mode,
|
|
25
|
-
'search': True,
|
|
26
|
-
}
|
|
27
|
-
if options:
|
|
28
|
-
default_options.update(options)
|
|
29
|
-
|
|
30
|
-
self.options = default_options
|
|
31
|
-
self.width = width
|
|
32
|
-
self.height = height
|
|
33
|
-
|
|
34
|
-
super(JSONEditorWidget, self).__init__(attrs=attrs)
|
|
35
|
-
|
|
36
|
-
def get_context(self, name, value, attrs):
|
|
37
|
-
context = super().get_context(name, value, attrs)
|
|
38
|
-
context['widget']['options'] = json.dumps(self.options)
|
|
39
|
-
context['widget']['width'] = self.width
|
|
40
|
-
context['widget']['height'] = self.height
|
|
41
|
-
|
|
42
|
-
return context
|
|
43
|
-
|
|
44
|
-
def format_value(self, value):
|
|
45
|
-
return json.loads(value)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{django-json-widget-2.0.0 → django_json_widget-2.0.2}/django_json_widget.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|