@nsshunt/stsoauth2plugin 0.1.6 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "@nsshunt/stsoauth2plugin",
3
- "version": "0.1.6",
3
+ "version": "0.1.9",
4
4
  "description": "STS OAuth2 VUE Plugin",
5
- "main": "dist/index.js",
5
+ "main": "./dist/stsoauth2plugin.umd.js",
6
+ "module": "./dist/stsoauth2plugin.es.js",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/stsoauth2plugin.es.js",
10
+ "require": "./dist/stsoauth2plugin.umd.js"
11
+ }
12
+ },
6
13
  "types": "./types/index.d.ts",
7
14
  "scripts": {
8
15
  "lint": "eslint . --ext js,jsx,ts,tsx --fix",
9
16
  "test": "jest --detectOpenHandles --no-cache",
10
17
  "testwatch": "jest --watchAll --detectOpenHandles --no-cache",
11
- "build": "webpack --mode=production --node-env=production",
12
- "build:dev": "webpack --mode=development",
13
- "build:prod": "webpack --mode=production --node-env=production",
14
- "watch": "webpack --watch"
18
+ "build": "vue-tsc --noEmit && vite build"
15
19
  },
16
20
  "repository": {
17
21
  "type": "git",
@@ -30,15 +34,12 @@
30
34
  "@types/jest": "^27.5.1",
31
35
  "@typescript-eslint/eslint-plugin": "^5.27.0",
32
36
  "@typescript-eslint/parser": "^5.27.0",
33
- "@webpack-cli/generators": "^1.1.0",
34
37
  "eslint": "^8.16.0",
35
38
  "jest": "^28.0.2",
36
39
  "prettier": "^2.6.2",
37
40
  "supertest": "^6.2.2",
38
41
  "ts-loader": "^9.3.0",
39
- "typescript": "^4.7.3",
40
- "webpack": "^5.73.0",
41
- "webpack-cli": "^4.9.2"
42
+ "typescript": "^4.7.3"
42
43
  },
43
44
  "homepage": "https://github.com/nsshunt/stsoauth2plugin#readme",
44
45
  "dependencies": {
@@ -46,6 +47,8 @@
46
47
  "es-cookie": "^1.3.2",
47
48
  "http-status-codes": "^2.2.0",
48
49
  "jwt-decode": "^3.1.2",
49
- "vue-router": "^4.0.16"
50
+ "vite": "^2.9.12",
51
+ "vue-router": "^4.0.16",
52
+ "vue-tsc": "^0.37.3"
50
53
  }
51
54
  }
package/src/index.ts CHANGED
@@ -3,11 +3,10 @@ import { STSOAuth2Manager } from './stsoauth2manager'
3
3
  export * from './stsoauth2types'
4
4
  export * from './stsoauth2manager'
5
5
 
6
- const STSOAuth2ManagerPlugin = {
6
+ export const STSOAuth2ManagerPlugin = {
7
7
  install: (app, router) => {
8
8
  const om = new STSOAuth2Manager(app, router);
9
9
  app.config.globalProperties.$sts.om = om;
10
10
  }
11
11
  }
12
-
13
- export default STSOAuth2ManagerPlugin
12
+ //export default STSOAuth2ManagerPlugin
package/vite.config.ts ADDED
@@ -0,0 +1,92 @@
1
+ //import { fileURLToPath, URL } from 'url'
2
+
3
+ import { defineConfig } from 'vite'
4
+ //import vue from '@vitejs/plugin-vue'
5
+ import path from 'path'
6
+ //import fs from 'fs';
7
+
8
+ // https://vitejs.dev/config/
9
+ export default ({ mode }) => {
10
+ //export default defineConfig({
11
+ //process.env = {...process.env, ...loadEnv(mode, process.cwd())};
12
+ // https://github.com/vitejs/vite/issues/1930
13
+
14
+ /*
15
+ let envpath = `./.env.${mode}`;
16
+ require('dotenv').config({ path: envpath });
17
+
18
+ console.log(process.env);
19
+ console.log(mode);
20
+ */
21
+
22
+ return defineConfig({
23
+
24
+ build: {
25
+ lib: {
26
+ entry: path.resolve(__dirname, 'src/index.ts'),
27
+ name: 'stsoauth2plugin',
28
+ fileName: (format) => `stsoauth2plugin.${format}.js`
29
+ },
30
+ rollupOptions: {
31
+ // make sure to externalize deps that shouldn't be bundled
32
+ // into your library
33
+ external: [
34
+ 'vue',
35
+ 'vue-router'
36
+ ],
37
+ output: {
38
+ // Provide global variables to use in the UMD build
39
+ // for externalized deps
40
+ globals: {
41
+ vue: 'Vue'
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ /*
48
+ plugins: [vue()],
49
+ define: {
50
+ 'process.argv': [ process.cwd() ], //@@ only required because of colors - delete ...
51
+ 'process.env': { ...process.env },
52
+ // Define process properties used by various imports
53
+ 'process.pid': 0,
54
+ 'process.stdout': null,
55
+ 'process.stderr': null,
56
+ 'process.platform': null
57
+ },
58
+ resolve: {
59
+ alias: {
60
+ //'@': path.resolve(__dirname, 'src'),
61
+ '@': fileURLToPath(new URL('./src', import.meta.url))
62
+ },
63
+ },
64
+
65
+ base: '/',
66
+
67
+ // serve --ssl-cert "/etc/letsencrypt/live/stsmda.org/fullchain.pem" --ssl-key "/etc/letsencrypt/live/stsmda.org/privkey.pem" -p 3010 dist
68
+
69
+ server: {
70
+ host: 'stsauth01.stsmda.org'
71
+ ,https: {
72
+ key: fs.readFileSync('/etc/letsencrypt/live/stsmda.org/privkey.pem'),
73
+ cert: fs.readFileSync('/etc/letsencrypt/live/stsmda.org/fullchain.pem'),
74
+ passphrase: ''
75
+ }
76
+ ,port: 3010 // was working using 3007
77
+ ,hmr: {
78
+ protocol: 'wss',
79
+ //host: '192.168.14.1',
80
+ host: 'stsauth01.stsmda.org',
81
+ port: 3010
82
+ }
83
+ },
84
+
85
+ worker: {
86
+ format: 'es'
87
+ }
88
+ */
89
+
90
+ });
91
+ }
92
+
package/dist/311.index.js DELETED
@@ -1,5 +0,0 @@
1
- /*! For license information please see 311.index.js.LICENSE.txt */
2
- (self.webpackChunkstsoauth2plugin=self.webpackChunkstsoauth2plugin||[]).push([[311],{2266:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetErrorPayload=void 0,t.GetErrorPayload=function(e,t=null){return{error:e.code,error_description:e.description,timestamp:Date.now(),details:t}}},7557:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.$stsgdf=t.$stsgd=void 0,s(r(2266),t),s(r(2226),t),s(r(5514),t),s(r(6322),t),s(r(8415),t),t.$stsgd={},t.$stsgdf=function(){return t.$stsgd}},8415:(e,t)=>{"use strict";var r,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.compareParameterTypes=t.OAuth2ParameterErrorType=t.OIDCAddressClaim=t.OIDCStandardClaim=t.OAuth2ParameterType=void 0,(s=t.OAuth2ParameterType||(t.OAuth2ParameterType={})).AUDIENCE="AUDIENCE",s.CLIENT_ID="client_id",s.CLIENT_SECRET="client_secret",s.RESPONSE_TYPE="response_type",s.SCOPE="scope",s.STATE="state",s.REDIRECT_URI="redirect_uri",s.ERROR="error",s.ERROR_DESCRIPTION="error_description",s.ERROR_CODES="error_codes",s.ERROR_URI="error_uri",s.GRANT_TYPE="grant_type",s.CODE="code",s.ACCESS_TOKEN="access_token",s.TOKEN_TYPE="token_type",s.EXPIRES_IN="expires_in",s.USERNAME="username",s.PASSWORD="password",s.REFRESH_TOKEN="refresh_token",s.RESPONSE_MODE="response_mode",s.TIMESTAMP="timestamp",s.TRACE_ID="trace_id",s.CORRELATION_ID="correlation_id",(n=t.OIDCStandardClaim||(t.OIDCStandardClaim={})).SUB="sub",n.NAME="name",n.GIVEN_NAME="given_name",n.FAMILY_NAME="family_name",n.MIDDLE_NAME="middle_name",n.NICKNAME="nickname",n.PREFERRED_USERNAME="preferred_username",n.PROFILE="profile",n.PICTURE="picture",n.WEBSITE="website",n.EMAIL="email",n.EMAIL_VERIFIED="email_verified",n.GENDER="gender",n.BIRTHDATE="birthdate",n.ZONEINFO="zoneinfo",n.LOCALE="locale",n.PHONE_NUMBER="phone_number",n.PHONE_NUMBER_VERIFIED="phone_number_verified",n.ADDRESS="address",n.CLIENT_SECRET="client_secret",n.NONCE="nonce",(r=t.OIDCAddressClaim||(t.OIDCAddressClaim={})).FORMATTED="formatted",r.STREET_ADDRESS="street_address",r.LOCALITY="locality",r.REGION="region",r.COUNTRY="country";class o{static NOT_EQUAL={code:"STS_OAUTH2_ERR_0001",description:"Parameter values not equal."};static NOT_PRESENT={code:"STS_OAUTH2_ERR_0002",description:"Parameter not provided."};static INVALID_FORMAT={code:"STS_OAUTH2_ERR_0003",description:"Parameter value format invalid."};static EXPIRED={code:"STS_OAUTH2_ERR_0004",description:"Parameter value expired."}}t.OAuth2ParameterErrorType=o,t.compareParameterTypes=function(e,t,r){const n=[];for(let s=0;s<r.length;s++){const a=r[s];if(0!==e[s].localeCompare(t[s])){const e={error:o.NOT_EQUAL.code,error_description:o.NOT_EQUAL.description,timestamp:Date.now(),details:`${o.NOT_EQUAL.description}: Parameter: [${a}]`};n.push(e)}}return n}},5514:(e,t)=>{"use strict";async function r(e=1e3){return new Promise((t=>setTimeout(t,e)))}Object.defineProperty(t,"__esModule",{value:!0}),t.JestSleep=t.Sleep=void 0,t.Sleep=r,t.JestSleep=async function(){return r(100)}},2226:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STSOptionsBase=void 0;const n=r(6322);t.STSOptionsBase=class{_options;constructor(e=null){this._options=e,null!==e&&(void 0===e.validator||(0,n.Validate)(e.validator,e))}get options(){return this._options}}},6322:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Validate=t.AddSchema=void 0;const s=new(n(r(4179)).default);t.AddSchema=function(e,t){s.addSchema(t,e)},t.Validate=function(e,t){const r=s.getSchema(e);if(r)return((e,t)=>e(t)?null:e.errors)(r,t)}},6114:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class s extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let n=0;for(;n<t.length;)c(r,t[n]),r.push(e[++n]);return new s(r)}t._Code=s,t.nil=new s(""),t._=o;const a=new s("+");function i(e,...t){const r=[l(e[0])];let n=0;for(;n<t.length;)r.push(a),c(r,t[n]),r.push(a,l(e[++n]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=u(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new s(r)}function c(e,t){var r;t instanceof s?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:l(Array.isArray(r)?r.join(","):r))}function u(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function l(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=i,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},t.stringify=function(e){return new s(l(e))},t.safeStringify=l,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new s(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new s(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new s(e.toString())}},9411:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(6114),s=r(941);var o=r(6114);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=r(941);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends i{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?s.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=A(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class u extends i{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=A(this.rhs,e,t),this}get names(){return T(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class l extends u{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class p extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=A(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class m extends i{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const s=r[n];s.optimizeNames(e,t)||(I(e,s.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>R(e,t.names)),{})}}class v extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class y extends v{}y.kind="else";class _ extends v{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof _?t:t.nodes:this.nodes.length?this:new _(j(e),t instanceof _?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=A(this.condition,e,t),this}get names(){const e=super.names;return T(e,this.condition),this.else&&R(e,this.else.names),e}}_.kind="if";class E extends v{}E.kind="for";class w extends E{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=A(this.iteration,e,t),this}get names(){return R(super.names,this.iteration.names)}}class $ extends E{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?s.varKinds.var:this.varKind,{name:r,from:n,to:o}=this;return`for(${t} ${r}=${n}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=T(super.names,this.from);return T(e,this.to)}}class b extends E{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=A(this.iterable,e,t),this}get names(){return R(super.names,this.iterable.names)}}class S extends v{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}S.kind="func";class N extends m{render(e){return"return "+super.render(e)}}N.kind="return";class C extends v{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&R(e,this.catch.names),this.finally&&R(e,this.finally.names),e}}class P extends v{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}P.kind="catch";class O extends v{render(e){return"finally"+super.render(e)}}function R(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function T(e,t){return t instanceof n._CodeOrName?R(e,t.names):e}function A(e,t,r){return e instanceof n.Name?o(e):(s=e)instanceof n._Code&&s._items.some((e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str]))?new n._Code(e._items.reduce(((e,t)=>(t instanceof n.Name&&(t=o(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var s;function o(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function I(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function j(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${F(e)}`}O.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new s.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const s=this._scope.toName(t);return void 0!==r&&n&&(this._constants[s.str]=r),this._leafNode(new c(e,s,r)),s}const(e,t,r){return this._def(s.varKinds.const,e,t,r)}let(e,t,r){return this._def(s.varKinds.let,e,t,r)}var(e,t,r){return this._def(s.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new l(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[r,s]of e)t.length>1&&t.push(","),t.push(r),(r!==s||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,s));return t.push("}"),new n._Code(t)}if(e,t,r){if(this._blockNode(new _(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(_,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,r,n,o=(this.opts.es5?s.varKinds.var:s.varKinds.let)){const a=this._scope.toName(e);return this._for(new $(o,a,t,r),(()=>n(a)))}forOf(e,t,r,o=s.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,(t=>{this.var(a,n._`${e}[${t}]`),r(a)}))}return this._for(new b("of",o,a,t),(()=>r(a)))}forIn(e,t,r,o=(this.opts.es5?s.varKinds.var:s.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const a=this._scope.toName(e);return this._for(new b("in",o,a,t),(()=>r(a)))}endFor(){return this._endBlockNode(E)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new N;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new C;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new P(e),t(e)}return r&&(this._currNode=n.finally=new O,this.code(r)),this._endBlockNode(P,O)}throw(e){return this._leafNode(new p(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,s){return this._blockNode(new S(e,t,r)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=j;const D=k(t.operators.AND);t.and=function(...e){return e.reduce(D)};const x=k(t.operators.OR);function k(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${F(t)} ${e} ${F(r)}`}function F(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(x)}},941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(6114);class s extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class i extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=i;const c=n._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:n.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:s}=n,o=null!==(r=t.key)&&void 0!==r?r:t.ref;let a=this._values[s];if(a){const e=a.get(o);if(e)return e}else a=this._values[s]=new Map;a.set(o,n);const i=this._scope[s]||(this._scope[s]=[]),c=i.length;return i[c]=t.ref,n.setValue(t,{property:s,itemIndex:c}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,a={},i){let c=n.nil;for(const u in e){const l=e[u];if(!l)continue;const d=a[u]=a[u]||new Map;l.forEach((e=>{if(d.has(e))return;d.set(e,o.Started);let a=r(e);if(a){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${r} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==i?void 0:i(e)))throw new s(e);c=n._`${c}${a}${this.opts._n}`}d.set(e,o.Completed)}))}return c}}},6782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(9411),s=r(2390),o=r(6579);function a(e,t){const r=e.const("err",t);e.if(n._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,n._`[${r}]`)),n._`${o.default.vErrors}.push(${r})`),e.code(n._`${o.default.errors}++`)}function i(e,t){const{gen:r,validateName:s,schemaEnv:o}=e;o.$async?r.throw(n._`new ${e.ValidationError}(${t})`):(r.assign(n._`${s}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,s,o){const{it:c}=e,{gen:l,compositeRule:d,allErrors:f}=c,p=u(e,r,s);(null!=o?o:d||f)?a(l,p):i(c,n._`[${p}]`)},t.reportExtraError=function(e,r=t.keywordError,n){const{it:s}=e,{gen:c,compositeRule:l,allErrors:d}=s;a(c,u(e,r,n)),l||d||i(s,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(n._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(n._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:s,errsCount:a,it:i}){if(void 0===a)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(c,n._`${o.default.vErrors}[${a}]`),e.if(n._`${c}.instancePath === undefined`,(()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(o.default.instancePath,i.errorPath)))),e.assign(n._`${c}.schemaPath`,n.str`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign(n._`${c}.schema`,r),e.assign(n._`${c}.data`,s))}))};const c={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function u(e,t,r){const{createErrors:s}=e.it;return!1===s?n._`{}`:function(e,t,r={}){const{gen:s,it:a}=e,i=[l(a,r),d(e,r)];return function(e,{params:t,message:r},s){const{keyword:a,data:i,schemaValue:u,it:l}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=l;s.push([c.keyword,a],[c.params,"function"==typeof t?t(e):t||n._`{}`]),d.messages&&s.push([c.message,"function"==typeof r?r(e):r]),d.verbose&&s.push([c.schema,u],[c.parentSchema,n._`${p}${h}`],[o.default.data,i]),f&&s.push([c.propertyName,f])}(e,t,i),s.object(...i)}(e,t,r)}function l({errorPath:e},{instancePath:t}){const r=t?n.str`${e}${(0,s.getErrorPath)(t,s.Type.Str)}`:e;return[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,r)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let a=o?t:n.str`${t}/${e}`;return r&&(a=n.str`${a}${(0,s.getErrorPath)(r,s.Type.Str)}`),[c.schemaPath,a]}},3584:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(9411),s=r(1205),o=r(6579),a=r(4209),i=r(2390),c=r(9509);class u{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function l(e){const t=f.call(this,e);if(t)return t;const r=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:u}=this.opts.code,{ownProperties:l}=this.opts,d=new n.CodeGen(this.scope,{es5:i,lines:u,ownProperties:l});let p;e.$async&&(p=d.scopeValue("Error",{ref:s.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const h=d.scopeName("validate");e.validateName=h;const m={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let v;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),d.optimize(this.opts.code.optimize);const t=d.toString();v=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(v=this.opts.code.process(v,e));const r=new Function(`${o.default.self}`,`${o.default.scope}`,v)(this,this.scope.get());if(this.scope.value(h,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:h,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=m;r.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},r.source&&(r.source.evaluated=(0,n.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,v&&this.logger.error("Error compiling schema, function code:",v),t}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function f(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function p(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||h.call(this,e,t)}function h(e,t){const r=this.opts.uriResolver.parse(t),n=(0,a._getFullPath)(this.opts.uriResolver,r);let s=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===s)return v.call(this,r,e);const o=(0,a.normalizeId)(n),i=this.refs[o]||this.schemas[o];if("string"==typeof i){const t=h.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return v.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||l.call(this,i),o===(0,a.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(s=(0,a.resolveUrl)(this.opts.uriResolver,s,n)),new u({schema:t,schemaId:r,root:e,baseId:s})}return v.call(this,r,i)}}t.SchemaEnv=u,t.compileSchema=l,t.resolveRef=function(e,t,r){var n;r=(0,a.resolveUrl)(this.opts.uriResolver,t,r);const s=e.refs[r];if(s)return s;let o=p.call(this,e,r);if(void 0===o){const s=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new u({schema:s,schemaId:a,root:e,baseId:t}))}return void 0!==o?e.refs[r]=d.call(this,o):void 0},t.getCompilingSchema=f,t.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function v(e,{baseId:t,schema:r,root:n}){var s;if("/"!==(null===(s=e.fragment)||void 0===s?void 0:s[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,i.unescapeFragment)(n)];if(void 0===e)return;const s="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(n)&&s&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,s))}let o;if("boolean"!=typeof r&&r.$ref&&!(0,i.schemaHasRulesButRef)(r,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=h.call(this,n,e)}const{schemaId:c}=this.opts;return o=o||new u({schema:r,schemaId:c,root:n,baseId:t}),o.schema!==o.root.schema?o:void 0}},9378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2105),s=r(3584),o=r(9411),a=r(3003),i=r(6579),c=r(2309),u=r(1837),l=r(4394),d=r(3561),f=r(2390),p=r(6596),h={elements:function(e){const{gen:t,schema:r,data:n}=e;A(e,"[");const s=t.let("i",0);t.assign(n,o._`[]`),_(e,"]",(()=>{const a=t.let("el");g({...e,schema:r.elements,data:a}),t.assign(o._`${n}[${s}++]`,a)}))},values:function(e){const{gen:t,schema:r,data:n}=e;A(e,"{"),t.assign(n,o._`{}`),_(e,"}",(()=>function(e,t){const{gen:r}=e,n=r.let("key");N({...e,data:n}),A(e,":"),S(e,n,t)}(e,r.values)))},discriminator:function(e){const{gen:t,data:r,schema:n}=e,{discriminator:s,mapping:a}=n;A(e,"{"),t.assign(r,o._`{}`);const c=t.const("pos",i.default.jsonPos),u=t.let("value"),l=t.let("tag");E(e,"}",(()=>{const n=t.let("key");N({...e,data:n}),A(e,":"),t.if(o._`${n} === ${s}`,(()=>{N({...e,data:l}),t.assign(o._`${r}[${n}]`,l),t.break()}),(()=>O({...e,data:u})))})),t.assign(i.default.jsonPos,c),t.if(o._`${l} === undefined`),k(e,o.str`discriminator tag not found`);for(const r in a)t.elseIf(o._`${l} === ${r}`),$({...e,schema:a[r]},s);t.else(),k(e,o.str`discriminator value not in schema`),t.endIf()},properties:w,optionalProperties:w,enum:function(e){const{gen:t,data:r,schema:n}=e,s=n.enum;A(e,'"'),t.if(!1);for(const e of s){const n=JSON.stringify(e).slice(1);t.elseIf(o._`${D(n.length)} === ${n}`),t.assign(r,o.str`${e}`),t.add(i.default.jsonPos,n.length)}t.else(),x(e),t.endIf()},type:function(e){const{gen:t,schema:r,data:n,self:s}=e;switch(r.type){case"boolean":y(e);break;case"string":N(e);break;case"timestamp":{N(e);const r=(0,f.useFunc)(t,p.default),{allowDate:a,parseDate:i}=s.opts,c=a?o._`!${r}(${n}, true)`:o._`!${r}(${n})`,u=i?(0,o.or)(c,o._`(${n} = new Date(${n}), false)`,o._`isNaN(${n}.valueOf())`):c;t.if(u,(()=>k(e,o.str`invalid timestamp`)));break}case"float32":case"float64":C(e);break;default:{const a=r.type;if(s.opts.int32range||"int32"!==a&&"uint32"!==a){const[r,s,i]=l.intRange[a];C(e,i),t.if(o._`${n} < ${r} || ${n} > ${s}`,(()=>k(e,o.str`integer out of range`)))}else C(e,16),"uint32"===a&&t.if(o._`${n} < 0`,(()=>k(e,o.str`integer out of range`)))}}},ref:function(e){const{gen:t,self:r,definitions:n,schema:i,schemaEnv:c}=e,{ref:l}=i,d=n[l];if(!d)throw new a.default(r.opts.uriResolver,"",l,`No definition ${l}`);if(!(0,u.hasRef)(d))return g({...e,schema:d});const{root:f}=c;T(e,function(e,t){return t.parse?e.scopeValue("parse",{ref:t.parse}):o._`${e.scopeValue("wrapper",{ref:t})}.parse`}(t,m.call(r,new s.SchemaEnv({schema:d,root:f}),n)),!0)}};function m(e,t){const r=s.getCompilingSchema.call(this,e);if(r)return r;const{es5:n,lines:a}=this.opts.code,{ownProperties:c}=this.opts,u=new o.CodeGen(this.scope,{es5:n,lines:a,ownProperties:c}),l=u.scopeName("parse"),d={self:this,gen:u,schema:e.schema,schemaEnv:e,definitions:t,data:i.default.data,parseName:l,char:u.name("c")};let f;try{this._compilations.add(e),e.parseName=l,function(e){const{gen:t,parseName:r,char:n}=e;t.func(r,o._`${i.default.json}, ${i.default.jsonPos}, ${i.default.jsonPart}`,!1,(()=>{t.let(i.default.data),t.let(n),t.assign(o._`${r}.message`,v),t.assign(o._`${r}.position`,v),t.assign(i.default.jsonPos,o._`${i.default.jsonPos} || 0`),t.const(i.default.jsonLen,o._`${i.default.json}.length`),g(e),j(e),t.if(i.default.jsonPart,(()=>{t.assign(o._`${r}.position`,i.default.jsonPos),t.return(i.default.data)})),t.if(o._`${i.default.jsonPos} === ${i.default.jsonLen}`,(()=>t.return(i.default.data))),x(e)}))}(d),u.optimize(this.opts.code.optimize);const t=u.toString();f=`${u.scopeRefs(i.default.scope)}return ${t}`;const r=new Function(`${i.default.scope}`,f)(this.scope.get());this.scope.value(l,{ref:r}),e.parse=r}catch(t){throw f&&this.logger.error("Error compiling parser, function code:",f),delete e.parse,delete e.parseName,t}finally{this._compilations.delete(e)}return e}t.default=m;const v=o._`undefined`;function g(e){let t;for(const r of n.jtdForms)if(r in e.schema){t=r;break}t?function(e,t){const{gen:r,schema:n,data:s}=e;if(!n.nullable)return t(e);I(e,"null",t,(()=>r.assign(s,null)))}(e,h[t]):O(e)}const y=P(!0,P(!1,x));function _(e,t,r){E(e,t,r),A(e,t)}function E(e,t,r){const{gen:n}=e;function s(){I(e,t,(()=>{}),x)}n.for(o._`;${i.default.jsonPos}<${i.default.jsonLen} && ${D(1)}!==${t};`,(()=>{r(),I(e,",",(()=>n.break()),s)}))}function w(e){const{gen:t,data:r}=e;A(e,"{"),t.assign(r,o._`{}`),$(e)}function $(e,t){const{gen:r,schema:n,data:s}=e,{properties:a,optionalProperties:i,additionalProperties:u}=n;if(_(e,"}",(()=>{const n=r.let("key");if(N({...e,data:n}),A(e,":"),r.if(!1),b(e,n,a),b(e,n,i),t){r.elseIf(o._`${n} === ${t}`);const s=r.let("tag");N({...e,data:s})}r.else(),u?O({...e,data:o._`${s}[${n}]`}):k(e,o.str`property ${n} not allowed`),r.endIf()})),a){const t=(0,c.hasPropFunc)(r),n=(0,o.and)(...Object.keys(a).map((e=>o._`${t}.call(${s}, ${e})`)));r.if((0,o.not)(n),(()=>k(e,o.str`missing required properties`)))}}function b(e,t,r={}){const{gen:n}=e;for(const s in r)n.elseIf(o._`${t} === ${s}`),S(e,t,r[s])}function S(e,t,r){g({...e,schema:r,data:o._`${e.data}[${t}]`})}function N(e){A(e,'"'),R(e,d.parseJsonString)}function C(e,t){const{gen:r}=e;j(e),r.if(o._`"-0123456789".indexOf(${D(1)}) < 0`,(()=>x(e)),(()=>R(e,d.parseJsonNumber,t)))}function P(e,t){return r=>{const{gen:n,data:s}=r;I(r,`${e}`,(()=>t(r)),(()=>n.assign(s,e)))}}function O(e){R(e,d.parseJson)}function R(e,t,r){T(e,(0,f.useFunc)(e.gen,t),r)}function T(e,t,r){const{gen:n,data:s}=e;n.assign(s,o._`${t}(${i.default.json}, ${i.default.jsonPos}${r?o._`, ${r}`:o.nil})`),n.assign(i.default.jsonPos,o._`${t}.position`),n.if(o._`${s} === undefined`,(()=>k(e,o._`${t}.message`)))}function A(e,t){I(e,t,x)}function I(e,t,r,n){const{gen:s}=e,a=t.length;j(e),s.if(o._`${D(a)} === ${t}`,(()=>{s.add(i.default.jsonPos,a),null==n||n(e)}),(()=>r(e)))}function j({gen:e,char:t}){e.code(o._`while((${t}=${i.default.json}[${i.default.jsonPos}],${t}===" "||${t}==="\\n"||${t}==="\\r"||${t}==="\\t"))${i.default.jsonPos}++;`)}function D(e){return 1===e?o._`${i.default.json}[${i.default.jsonPos}]`:o._`${i.default.json}.slice(${i.default.jsonPos}, ${i.default.jsonPos}+${e})`}function x(e){k(e,o._`"unexpected token " + ${i.default.json}[${i.default.jsonPos}]`)}function k({gen:e,parseName:t},r){e.assign(o._`${t}.message`,r),e.assign(o._`${t}.position`,i.default.jsonPos),e.return(v)}},1509:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2105),s=r(3584),o=r(9411),a=r(3003),i=r(6579),c=r(2309),u=r(1837),l=r(2390),d=r(3456),f={elements:function(e){const{gen:t,schema:r,data:n}=e;t.add(i.default.json,o.str`[`);const s=t.let("first",!0);t.forOf("el",n,(t=>{E(e,s),h({...e,schema:r.elements,data:t})})),t.add(i.default.json,o.str`]`)},values:function(e){const{gen:t,schema:r,data:n}=e;t.add(i.default.json,o.str`{`);const s=t.let("first",!0);t.forIn("key",n,(t=>m(e,t,r.values,s))),t.add(i.default.json,o.str`}`)},discriminator:function(e){const{gen:t,schema:r,data:n}=e,{discriminator:s}=r;t.add(i.default.json,o.str`{${JSON.stringify(s)}:`);const a=t.const("tag",o._`${n}${(0,o.getProperty)(s)}`);y({...e,data:a}),t.if(!1);for(const n in r.mapping){t.elseIf(o._`${a} === ${n}`);const i=r.mapping[n];g({...e,schema:i},s)}t.endIf(),t.add(i.default.json,o.str`}`)},properties:v,optionalProperties:v,enum:y,type:function(e){const{gen:t,schema:r,data:n}=e;switch(r.type){case"boolean":t.add(i.default.json,o._`${n} ? "true" : "false"`);break;case"string":y(e);break;case"timestamp":t.if(o._`${n} instanceof Date`,(()=>t.add(i.default.json,o._`'"' + ${n}.toISOString() + '"'`)),(()=>y(e)));break;default:!function({gen:e,data:t}){e.add(i.default.json,o._`"" + ${t}`)}(e)}},ref:function(e){const{gen:t,self:r,data:n,definitions:c,schema:l,schemaEnv:d}=e,{ref:f}=l,m=c[f];if(!m)throw new a.default(r.opts.uriResolver,"",f,`No definition ${f}`);if(!(0,u.hasRef)(m))return h({...e,schema:m});const{root:v}=d,g=p.call(r,new s.SchemaEnv({schema:m,root:v}),c);t.add(i.default.json,o._`${function(e,t){return t.serialize?e.scopeValue("serialize",{ref:t.serialize}):o._`${e.scopeValue("wrapper",{ref:t})}.serialize`}(t,g)}(${n})`)}};function p(e,t){const r=s.getCompilingSchema.call(this,e);if(r)return r;const{es5:n,lines:a}=this.opts.code,{ownProperties:c}=this.opts,u=new o.CodeGen(this.scope,{es5:n,lines:a,ownProperties:c}),l=u.scopeName("serialize"),d={self:this,gen:u,schema:e.schema,schemaEnv:e,definitions:t,data:i.default.data};let f;try{this._compilations.add(e),e.serializeName=l,u.func(l,i.default.data,!1,(()=>{u.let(i.default.json,o.str``),h(d),u.return(i.default.json)})),u.optimize(this.opts.code.optimize);const t=u.toString();f=`${u.scopeRefs(i.default.scope)}return ${t}`;const r=new Function(`${i.default.scope}`,f)(this.scope.get());this.scope.value(l,{ref:r}),e.serialize=r}catch(t){throw f&&this.logger.error("Error compiling serializer, function code:",f),delete e.serialize,delete e.serializeName,t}finally{this._compilations.delete(e)}return e}function h(e){let t;for(const r of n.jtdForms)if(r in e.schema){t=r;break}!function(e,t){const{gen:r,schema:n,data:s}=e;if(!n.nullable)return t(e);r.if(o._`${s} === undefined || ${s} === null`,(()=>r.add(i.default.json,o._`"null"`)),(()=>t(e)))}(e,t?f[t]:_)}function m(e,t,r,n){const{gen:s,data:a}=e;E(e,n),y({...e,data:t}),s.add(i.default.json,o.str`:`);const c=s.const("value",o._`${a}${(0,o.getProperty)(t)}`);h({...e,schema:r,data:c})}function v(e){const{gen:t}=e;t.add(i.default.json,o.str`{`),g(e),t.add(i.default.json,o.str`}`)}function g(e,t){const{gen:r,schema:n,data:s}=e,{properties:a,optionalProperties:u}=n,l=v(a),d=v(u),f=function(e){if(t&&e.push(t),new Set(e).size!==e.length)throw new Error("JTD: properties/optionalProperties/disciminator overlap");return e}(l.concat(d));let p=!t;for(const e of l)y(e,a[e],g(e));for(const e of d){const t=g(e);r.if((0,o.and)(o._`${t} !== undefined`,(0,c.isOwnProperty)(r,s,e)),(()=>y(e,u[e],t)))}function v(e){return e?Object.keys(e):[]}function g(e){return r.const("value",o._`${s}${(0,o.getProperty)(e)}`)}function y(t,n,s){p?p=!1:r.add(i.default.json,o.str`,`),r.add(i.default.json,o.str`${JSON.stringify(t)}:`),h({...e,schema:n,data:s})}n.additionalProperties&&r.forIn("key",s,(t=>r.if(function(e,t){return!t.length||(0,o.and)(...t.map((t=>o._`${e} !== ${t}`)))}(t,f),(()=>m(e,t,{},r.let("first",p))))))}function y({gen:e,data:t}){e.add(i.default.json,o._`${(0,l.useFunc)(e,d.default)}(${t})`)}function _({gen:e,data:t}){e.add(i.default.json,o._`JSON.stringify(${t})`)}function E({gen:e},t){e.if(t,(()=>e.assign(t,!1)),(()=>e.add(i.default.json,o.str`,`)))}t.default=p},2105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jtdForms=void 0,t.jtdForms=["elements","values","discriminator","properties","optionalProperties","enum","type","ref"]},6579:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9411),s={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=s},3003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4209);class s extends Error{constructor(e,t,r,s){super(s||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=s},4209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(2390),s=r(4063),o=r(2125),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&u(e)<=t)};const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(i.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(c))return!0;if("object"==typeof r&&c(r))return!0}return!1}function u(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!a.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=u(e))),t===1/0))return 1/0}return t}function l(e,t="",r){!1!==r&&(t=p(t));const n=e.parse(t);return d(e,n)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=d;const f=/#\/?$/;function p(e){return e?e.replace(f,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,r){return r=p(r),e.resolve(t,r)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,a=p(e[r]||t),i={"":a},c=l(n,a,!1),u={},d=new Set;return o(e,{allKeys:!0},((e,t,n,s)=>{if(void 0===s)return;const o=c+t;let a=i[s];function l(t){const r=this.opts.uriResolver.resolve;if(t=p(a?r(a,t):t),d.has(t))throw m(t);d.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?f(e,n.schema,t):t!==p(o)&&("#"===t[0]?(f(e,u[t],t),u[t]=e):this.refs[t]=o),t}function v(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[r]&&(a=l.call(this,e[r])),v.call(this,e.$anchor),v.call(this,e.$dynamicAnchor),i[t]=a})),u;function f(e,t,r){if(void 0!==t&&!s(e,t))throw m(r)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},1819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},2390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(9411),s=r(6114);function o(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const s=n.RULES.keywords;for(const r in t)s[r]||h(e,`unknown keyword: "${r}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function i(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function u({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:s}){return(o,a,i,c)=>{const u=void 0===i?a:i instanceof n.Name?(a instanceof n.Name?e(o,a,i):t(o,a,i),i):a instanceof n.Name?(t(o,i,a),a):r(a,i);return c!==n.Name||u instanceof n.Name?u:s(o,u)}}function l(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&d(e,r,t),r}function d(e,t,r){Object.keys(r).forEach((r=>e.assign(n._`${t}${(0,n.getProperty)(r)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,s,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return n._`${r}`}return n._`${e}${t}${(0,n.getProperty)(s)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(i(e))},t.escapeJsonPointer=i,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:u({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>{e.if(n._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,n._`${r} || {}`).code(n._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,n._`${r} || {}`),d(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:u({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,n._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>e.assign(r,!0===t||n._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l,t.setEvaluated=d;const f={};var p;function h(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:f[t.code]||(f[t.code]=new s._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(p=t.Type||(t.Type={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const s=t===p.Num;return r?s?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:s?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+i(e)},t.checkStrictMode=h},2411:(e,t)=>{"use strict";function r(e,t){return t.rules.some((t=>n(e,t)))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){const s=t.RULES.types[n];return s&&!0!==s&&r(e,s)},t.shouldUseGroup=r,t.shouldUseRule=n},3343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(6782),s=r(9411),o=r(6579),a={message:"boolean schema is false"};function i(e,t){const{gen:r,data:s}=e,o={gen:r,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(o,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:n}=e;!1===r?i(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign(s._`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),i(e)):r.var(t,!0)}},1312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(1819),s=r(2411),o=r(6782),a=r(9411),i=r(2390);var c;function u(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=u(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=u,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:n,opts:o}=e,i=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),u=t.length>0&&!(0===i.length&&1===t.length&&(0,s.schemaHasRulesForType)(e,t[0]));if(u){const s=f(t,n,o.strictNumbers,c.Wrong);r.if(s,(()=>{i.length?function(e,t,r){const{gen:n,data:s,opts:o}=e,i=n.let("dataType",a._`typeof ${s}`),c=n.let("coerced",a._`undefined`);"array"===o.coerceTypes&&n.if(a._`${i} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,(()=>n.assign(s,a._`${s}[0]`).assign(i,a._`typeof ${s}`).if(f(t,s,o.strictNumbers),(()=>n.assign(c,s))))),n.if(a._`${c} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===o.coerceTypes)&&u(e);function u(e){switch(e){case"string":return void n.elseIf(a._`${i} == "number" || ${i} == "boolean"`).assign(c,a._`"" + ${s}`).elseIf(a._`${s} === null`).assign(c,a._`""`);case"number":return void n.elseIf(a._`${i} == "boolean" || ${s} === null
3
- || (${i} == "string" && ${s} && ${s} == +${s})`).assign(c,a._`+${s}`);case"integer":return void n.elseIf(a._`${i} === "boolean" || ${s} === null
4
- || (${i} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(c,a._`+${s}`);case"boolean":return void n.elseIf(a._`${s} === "false" || ${s} === 0 || ${s} === null`).assign(c,!1).elseIf(a._`${s} === "true" || ${s} === 1`).assign(c,!0);case"null":return n.elseIf(a._`${s} === "" || ${s} === 0 || ${s} === false`),void n.assign(c,null);case"array":n.elseIf(a._`${i} === "string" || ${i} === "number"
5
- || ${i} === "boolean" || ${s} === null`).assign(c,a._`[${s}]`)}}n.else(),h(e),n.endIf(),n.if(a._`${c} !== undefined`,(()=>{n.assign(s,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${r}]`,n)))}(e,c)}))}(e,t,i):h(e)}))}return u};const l=new Set(["string","number","integer","boolean","null"]);function d(e,t,r,n=c.Correct){const s=n===c.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${s} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=i(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=i();break;default:return a._`typeof ${t} ${s} ${e}`}return n===c.Correct?o:(0,a.not)(o);function i(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,r?a._`isFinite(${t})`:a.nil)}}function f(e,t,r,n){if(1===e.length)return d(e[0],t,r,n);let s;const o=(0,i.toHash)(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;s=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else s=a.nil;o.number&&delete o.integer;for(const e in o)s=(0,a.and)(s,d(e,t,r,n));return s}t.checkDataType=d,t.checkDataTypes=f;const p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:r,schema:n}=e,s=(0,i.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:e}}(e);(0,o.reportError)(t,p)}t.reportTypeError=h},906:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(9411),s=r(2390);function o(e,t,r){const{gen:o,compositeRule:a,data:i,opts:c}=e;if(void 0===r)return;const u=n._`${i}${(0,n.getProperty)(t)}`;if(a)return void(0,s.checkStrictMode)(e,`default is ignored for: ${u}`);let l=n._`${u} === undefined`;"empty"===c.useDefaults&&(l=n._`${l} || ${u} === null || ${u} === ""`),o.if(l,n._`${u} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const t in r)o(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>o(e,r,t.default)))}},9509:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(3343),s=r(1312),o=r(2411),a=r(1312),i=r(906),c=r(125),u=r(5379),l=r(9411),d=r(6579),f=r(4209),p=r(2390),h=r(6782);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:s},o){s.code.es5?e.func(t,l._`${d.default.data}, ${d.default.valCxt}`,n.$async,(()=>{e.code(l._`"use strict"; ${v(r,s)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,l._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,l._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,l._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,l._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,l._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,l._`""`),e.var(d.default.parentData,l._`undefined`),e.var(d.default.parentDataProperty,l._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,l._`{}`)}))}(e,s),e.code(o)})):e.func(t,l._`${d.default.data}, ${function(e){return l._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?l._`, ${d.default.dynamicAnchors}={}`:l.nil}}={}`}(s)}`,n.$async,(()=>e.code(v(r,s)).code(o)))}function v(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?l._`/*# sourceURL=${r} */`:l.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function y(e){return"boolean"!=typeof e.schema}function _(e){(0,p.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:s}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(t,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function E(e,t){if(e.opts.jtd)return $(e,[],!1,t);const r=(0,s.getSchemaTypes)(e.schema);$(e,r,!(0,s.coerceAndCheckDataType)(e,r),t)}function w({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:s}){const o=r.$comment;if(!0===s.$comment)e.code(l._`${d.default.self}.logger.log(${o})`);else if("function"==typeof s.$comment){const r=l.str`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code(l._`${d.default.self}.opts.$comment(${o}, ${r}, ${s}.schema)`)}}function $(e,t,r,n){const{gen:s,schema:i,data:c,allErrors:u,opts:f,self:h}=e,{RULES:m}=h;function v(p){(0,o.shouldUseGroup)(i,p)&&(p.type?(s.if((0,a.checkDataType)(p.type,c,f.strictNumbers)),b(e,p),1===t.length&&t[0]===p.type&&r&&(s.else(),(0,a.reportTypeError)(e)),s.endIf()):b(e,p),u||s.if(l._`${d.default.errors} === ${n||0}`))}!i.$ref||!f.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(i,m)?(f.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{S(e.dataTypes,t)||N(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),e.dataTypes=e.dataTypes.filter((e=>S(t,e)))):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&N(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const r=e.self.RULES.all;for(const n in r){const s=r[n];if("object"==typeof s&&(0,o.shouldUseRule)(e.schema,s)){const{type:r}=s.definition;r.length&&!r.some((e=>{return n=e,(r=t).includes(n)||"number"===n&&r.includes("integer");var r,n}))&&N(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes))}(e,t),s.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):s.block((()=>P(e,"$ref",m.all.$ref.definition)))}function b(e,t){const{gen:r,schema:n,opts:{useDefaults:s}}=e;s&&(0,i.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,o.shouldUseRule)(n,r)&&P(e,r.keyword,r.definition,t.type)}))}function S(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function N(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,p.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){y(e)&&(_(e),g(e))?function(e){const{schema:t,opts:r,gen:n}=e;m(e,(()=>{r.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,p.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(d.default.vErrors,null),n.let(d.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",l._`${r}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,(()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`))),t.if(l._`${e.evaluated}.dynamicItems`,(()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),E(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:s,opts:o}=e;r.$async?t.if(l._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(l._`new ${s}(${d.default.vErrors})`))):(t.assign(l._`${n}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof l.Name&&e.assign(l._`${t}.props`,r),n instanceof l.Name&&e.assign(l._`${t}.items`,n)}(e),t.return(l._`${d.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,n.topBoolOrEmptySchema)(e)))};class C{constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",T(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=l.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:s,def:o}=this;r.if((0,l.or)(l._`${n} === undefined`,t)),e!==l.nil&&r.assign(e,!0),(s.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:s}=this;return(0,l.or)(function(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return l._`${(0,a.checkDataTypes)(e,t,s.opts.strictNumbers,a.DataType.Wrong)}`}return l.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return l._`!${r}(${t})`}return l.nil}())}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e),(0,u.extendSubschemaMode)(r,e);const s={...this.it,...r,items:void 0,props:void 0};return function(e,t){y(e)&&(_(e),g(e))?function(e,t){const{schema:r,gen:n,opts:s}=e;s.$comment&&r.$comment&&w(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=n.const("_errs",d.default.errors);E(e,o),n.var(t,l._`${o} === ${d.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}(s,t),s}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=p.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=p.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,l.Name))),!0}}function P(e,t,r,n){const s=new C(e,r,t);"code"in r?r.code(s,n):s.$data&&r.validate?(0,c.funcKeywordCode)(s,r):"macro"in r?(0,c.macroKeywordCode)(s,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(s,r)}t.KeywordCxt=C;const O=/^\/(?:[^~]|~0|~1)*$/,R=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function T(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let s,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);s=e,o=d.default.rootData}else{const a=R.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+a[1];if(s=a[2],"#"===s){if(i>=t)throw new Error(c("property/index",i));return n[t-i]}if(i>t)throw new Error(c("data",i));if(o=r[t-i],!s)return o}let a=o;const i=s.split("/");for(const e of i)e&&(o=l._`${o}${(0,l.getProperty)((0,p.unescapeJsonPointer)(e))}`,a=l._`${a} && ${o}`);return a;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=T},125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(9411),s=r(6579),o=r(2309),a=r(6782);function i(e){const{gen:t,data:r,it:s}=e;t.if(s.parentData,(()=>t.assign(r,n._`${s.parentData}[${s.parentDataProperty}]`)))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:s,schema:o,parentSchema:a,it:i}=e,u=t.macro.call(i.self,o,a,i),l=c(r,s,u);!1!==i.opts.validateSchema&&i.self.validateSchema(u,!0);const d=r.name("valid");e.subschema({schema:u,schemaPath:n.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:l,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:u,keyword:l,schema:d,parentSchema:f,$data:p,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!p&&t.compile?t.compile.call(h.self,d,f,h):t.validate,v=c(u,l,m),g=u.let("valid");function y(r=(t.async?n._`await `:n.nil)){const a=h.opts.passContext?s.default.this:s.default.self,i=!("compile"in t&&!p||!1===t.schema);u.assign(g,n._`${r}${(0,o.callValidateCode)(e,v,a,i)}`,t.modifying)}function _(e){var r;u.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:g),e)}e.block$data(g,(function(){if(!1===t.errors)y(),t.modifying&&i(e),_((()=>e.error()));else{const r=t.async?function(){const e=u.let("ruleErrs",null);return u.try((()=>y(n._`await `)),(t=>u.assign(g,!1).if(n._`${t} instanceof ${h.ValidationError}`,(()=>u.assign(e,n._`${t}.errors`)),(()=>u.throw(t))))),e}():function(){const e=n._`${v}.errors`;return u.assign(e,null),y(n.nil),e}();t.modifying&&i(e),_((()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,(()=>{r.assign(s.default.vErrors,n._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`).assign(s.default.errors,n._`${s.default.vErrors}.length`),(0,a.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:g)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},s,o){if(Array.isArray(s.keyword)?!s.keyword.includes(o):s.keyword!==o)throw new Error("ajv implementation error");const a=s.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(s.validateSchema&&!s.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(s.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},5379:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(9411),s=r(2390);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:o,schemaPath:a,errSchemaPath:i,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===r?{schema:o,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,s.escapeFragment)(r)}`}}if(void 0!==o){if(void 0===a||void 0===i||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:o,data:a,dataTypes:i,propertyName:c}){if(void 0!==a&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==r){const{errorPath:a,dataPathArr:i,opts:c}=t;l(u.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${a}${(0,s.getErrorPath)(r,o,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...i,e.parentDataProperty]}function l(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==a&&(l(a instanceof n.Name?a:u.let("data",a,!0)),void 0!==c&&(e.propertyName=c)),i&&(e.dataTypes=i)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:s,allErrors:o}){void 0!==n&&(e.compositeRule=n),void 0!==s&&(e.createErrors=s),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}},1030:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(9509);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var s=r(9411);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return s.CodeGen}});const o=r(1205),a=r(3003),i=r(1819),c=r(3584),u=r(9411),l=r(4209),d=r(1312),f=r(2390),p=r(9863),h=r(1603),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const v=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function E(e){var t,r,n,s,o,a,i,c,u,l,d,f,p,v,g,y,_,E,w,$,b,S,N,C,P;const O=e.strict,R=null===(t=e.code)||void 0===t?void 0:t.optimize,T=!0===R||void 0===R?1:R||0,A=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:m,I=null!==(s=e.uriResolver)&&void 0!==s?s:h.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:O)||void 0===a||a,strictNumbers:null===(c=null!==(i=e.strictNumbers)&&void 0!==i?i:O)||void 0===c||c,strictTypes:null!==(l=null!==(u=e.strictTypes)&&void 0!==u?u:O)&&void 0!==l?l:"log",strictTuples:null!==(f=null!==(d=e.strictTuples)&&void 0!==d?d:O)&&void 0!==f?f:"log",strictRequired:null!==(v=null!==(p=e.strictRequired)&&void 0!==p?p:O)&&void 0!==v&&v,code:e.code?{...e.code,optimize:T,regExp:A}:{optimize:T,regExp:A},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(_=e.meta)||void 0===_||_,messages:null===(E=e.messages)||void 0===E||E,inlineRefs:null===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==($=e.schemaId)&&void 0!==$?$:"$id",addUsedSchema:null===(b=e.addUsedSchema)||void 0===b||b,validateSchema:null===(S=e.validateSchema)||void 0===S||S,validateFormats:null===(N=e.validateFormats)||void 0===N||N,unicodeRegExp:null===(C=e.unicodeRegExp)||void 0===C||C,int32range:null===(P=e.int32range)||void 0===P||P,uriResolver:I}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...E(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function(e){if(!1===e)return O;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,i.getRules)(),$.call(this,y,e,"NOT SUPPORTED"),$.call(this,_,e,"DEPRECATED","warn"),this._metaOpts=P.call(this),e.formats&&N.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&C.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=p;"id"===r&&(n={...p},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await s.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function s(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return i.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await u.call(this,e);this.refs[e]||await s.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let s;if("object"==typeof e){const{schemaId:t}=this.opts;if(s=e[t],void 0!==s&&"string"!=typeof s)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||s),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=b.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=b.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(T.call(this,r,t),!t)return(0,f.eachItem)(r,(e=>A.call(this,e))),this;j.call(this,t);const n={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(r,0===n.type.length?e=>A.call(this,e,n):e=>n.type.forEach((t=>A.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let s=e;for(const e of t)s=s[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,o=s[e];n&&o&&(s[e]=x(o))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,s=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if("object"==typeof e)o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(void 0!==i)return i;r=(0,l.normalizeId)(o||r);const u=l.getSchemaRefs.call(this,e,r);return i=new c.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:r,localRefs:u}),this._cache.set(i.schema,i),s&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=i),n&&this.validateSchema(e,!0),i}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function $(e,t,r,n="error"){for(const s in e){const o=s;o in t&&this.logger[n](`${r}: option ${s}. ${e[o]}`)}}function b(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function N(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function C(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function P(){const e={...this.opts};for(const t of v)delete e[t];return e}t.default=w,w.ValidationError=o.default,w.MissingRefError=a.default;const O={log(){},warn(){},error(){}},R=/^[a-z_$][a-z0-9_$:-]*$/i;function T(e,t){const{RULES:r}=this;if((0,f.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!R.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function A(e,t,r){var n;const s=null==t?void 0:t.post;if(r&&s)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=s?o.post:o.rules.find((({type:e})=>e===r));if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?I.call(this,a,i,t.before):a.rules.push(i),o.all[e]=i,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function I(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function j(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=x(t)),e.validateSchema=this.compile(t,!0))}const D={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function x(e){return{anyOf:[e,D]}}},4179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(1030),s=r(5735),o=r(1361),a=r(1509),i=r(9378),c="JTD-meta-schema";class u extends n.default{constructor(e={}){super({...e,jtd:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema(),this.opts.meta&&this.addMetaSchema(o.default,c,!1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}compileSerializer(e){const t=this._addSchema(e);return t.serialize||this._compileSerializer(t)}compileParser(e){const t=this._addSchema(e);return t.parse||this._compileParser(t)}_compileSerializer(e){if(a.default.call(this,e,e.schema.definitions||{}),!e.serialize)throw new Error("ajv implementation error");return e.serialize}_compileParser(e){if(i.default.call(this,e,e.schema.definitions||{}),!e.parse)throw new Error("ajv implementation error");return e.parse}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var l=r(9509);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=r(9411);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}})},1361:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=e=>{const t={nullable:{type:"boolean"},metadata:{optionalProperties:{union:{elements:{ref:"schema"}}},additionalProperties:!0}};return e&&(t.definitions={values:{ref:"schema"}}),t},n=e=>({optionalProperties:r(e)}),s=e=>({properties:{ref:{type:"string"}},optionalProperties:r(e)}),o=e=>({properties:{type:{enum:["boolean","timestamp","string","float32","float64","int8","uint8","int16","uint16","int32","uint32"]}},optionalProperties:r(e)}),a=e=>({properties:{enum:{elements:{type:"string"}}},optionalProperties:r(e)}),i=e=>({properties:{elements:{ref:"schema"}},optionalProperties:r(e)}),c=e=>({properties:{properties:{values:{ref:"schema"}}},optionalProperties:{optionalProperties:{values:{ref:"schema"}},additionalProperties:{type:"boolean"},...r(e)}}),u=e=>({properties:{optionalProperties:{values:{ref:"schema"}}},optionalProperties:{additionalProperties:{type:"boolean"},...r(e)}}),l=e=>({properties:{discriminator:{type:"string"},mapping:{values:{metadata:{union:[c(!1),u(!1)]}}}},optionalProperties:r(e)}),d=e=>({properties:{values:{ref:"schema"}},optionalProperties:r(e)}),f=e=>({metadata:{union:[n,s,o,a,i,c,u,l,d].map((t=>t(e)))}}),p={definitions:{schema:f(!1)},...f(!0)};t.default=p},3561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJsonString=t.parseJsonNumber=t.parseJson=void 0;const r=/position\s(\d+)$/;function n(e,t){let s,o;n.message=void 0,t&&(e=e.slice(t));try{return n.position=t+e.length,JSON.parse(e)}catch(a){if(o=r.exec(a.message),!o)return void(n.message="unexpected end");s=+o[1];const i=e[s];e=e.slice(0,s),n.position=t+s;try{return JSON.parse(e)}catch(e){return void(n.message=`unexpected token ${i}`)}}}function s(e,t,r){let n,o="";if(s.message=void 0,"-"===e[t]&&(o+="-",t++),"0"===e[t])o+="0",t++;else if(!a(r))return void i();if(r)return s.position=t,+o;if("."!==e[t]||(o+=".",t++,a())){if(n=e[t],"e"!==n&&"E"!==n||(o+="e",t++,n=e[t],("+"===n||"-"===n)&&(o+=n,t++),a()))return s.position=t,+o;i()}else i();function a(r){let s=!1;for(;n=e[t],n>="0"&&n<="9"&&(void 0===r||r-- >0);)s=!0,o+=n,t++;return s}function i(){s.position=t,s.message=t<e.length?`unexpected token ${e[t]}`:"unexpected end"}}t.parseJson=n,n.message=void 0,n.position=0,n.code='require("ajv/dist/runtime/parseJson").parseJson',t.parseJsonNumber=s,s.message=void 0,s.position=0,s.code='require("ajv/dist/runtime/parseJson").parseJsonNumber';const o={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},a="a".charCodeAt(0),i="0".charCodeAt(0);function c(e,t){let r,n="";for(c.message=void 0;r=e[t++],'"'!==r;)if("\\"===r)if(r=e[t],r in o)n+=o[r],t++;else{if("u"!==r)return void s(`unexpected token ${r}`);{t++;let o=4,c=0;for(;o--;){if(c<<=4,r=e[t],void 0===r)return void s("unexpected end");if(r=r.toLowerCase(),r>="a"&&r<="f")c+=r.charCodeAt(0)-a+10;else{if(!(r>="0"&&r<="9"))return void s(`unexpected token ${r}`);c+=r.charCodeAt(0)-i}t++}n+=String.fromCharCode(c)}}else{if(void 0===r)return void s("unexpected end");if(!(r.charCodeAt(0)>=32))return void s(`unexpected token ${r}`);n+=r}return c.position=t,n;function s(e){c.position=t,c.message=e}}t.parseJsonString=c,c.message=void 0,c.position=0,c.code='require("ajv/dist/runtime/parseJson").parseJsonString'},3456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return r.lastIndex=0,'"'+(r.test(e)?e.replace(r,(e=>{const t=n[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})):e)+'"'}t.default=s,s.code='require("ajv/dist/runtime/quote").default'},6596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=/t|\s/i,n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(e,t){const n=e.split(r);return 2===n.length&&i(n[0])&&function(e){const t=s.exec(e);if(!t)return!1;const r=+t[1],n=+t[2],o=+t[3],a=+(t[4]||0),i=+(t[5]||0);return r<=23&&n<=59&&o<=59||r-a==23&&n-i==59&&60===o}(n[1])||t&&1===n.length&&i(n[0])}function i(e){const t=n.exec(e);if(!t)return!1;const r=+t[1],s=+t[2],a=+t[3];return s>=1&&s<=12&&a>=1&&(a<=o[s]||2===s&&29===a&&(r%100==0?r%400==0:r%4==0))}t.default=a,a.code='require("ajv/dist/runtime/timestamp").default'},1603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(540);n.code='require("ajv/dist/runtime/uri").default',t.default=n},1205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},2309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(9411),s=r(2390),o=r(6579),a=r(2390);function i(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return n._`${i(e)}.call(${t}, ${r})`}function u(e,t,r,s){const o=n._`${t}${(0,n.getProperty)(r)} === undefined`;return s?(0,n.or)(o,(0,n.not)(c(e,t,r))):o}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:s,it:o}=e;r.if(u(r,s,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},s,o){return(0,n.or)(...s.map((s=>(0,n.and)(u(e,t,s,r.ownProperties),n._`${o} = ${s}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=i,t.isOwnProperty=c,t.propertyInData=function(e,t,r,s){const o=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return s?n._`${o} && ${c(e,t,r)}`:o},t.noPropertyInData=u,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter((r=>!(0,s.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:s,schemaPath:a,errorPath:i},it:c},u,l,d){const f=d?n._`${e}, ${t}, ${s}${a}`:t,p=[[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,i)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&p.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=n._`${f}, ${r.object(...p)}`;return l!==n.nil?n._`${u}.call(${l}, ${h})`:n._`${u}(${h})`};const d=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const s=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,s);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:n._`${"new RegExp"===o.code?d:(0,a.useFunc)(e,o)}(${r}, ${s})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:o,it:a}=e,i=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(i,!0),c((()=>t.break())),i;function c(a){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:o,dataProp:r,dataPropType:s.Type.Num},i),t.if((0,n.not)(i),a)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:o,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,s.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const i=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,s)=>{const a=e.subschema({keyword:o,schemaProp:s,compositeRule:!0},c);t.assign(i,n._`${i} || ${c}`),e.mergeValidEvaluated(a,c)||t.if((0,n.not)(i))})))),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}},8697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(3003),s=r(2309),o=r(9411),a=r(6579),i=r(3584),c=r(2390),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:s}=e,{baseId:a,schemaEnv:c,validateName:u,opts:f,self:p}=s,{root:h}=c;if(("#"===r||"#/"===r)&&a===h.baseId)return function(){if(c===h)return d(e,u,c,c.$async);const r=t.scopeValue("root",{ref:h});return d(e,o._`${r}.validate`,h,h.$async)}();const m=i.resolveRef.call(p,h,a,r);if(void 0===m)throw new n.default(s.opts.uriResolver,a,r);return m instanceof i.SchemaEnv?function(t){const r=l(e,t);d(e,r,t,t.$async)}(m):function(n){const s=t.scopeValue("schema",!0===f.code.source?{ref:n,code:(0,o.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:o.nil,topSchemaRef:s,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(m)}};function l(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):o._`${r.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,r,n){const{gen:i,it:u}=e,{allErrors:l,schemaEnv:d,opts:f}=u,p=f.passContext?a.default.this:o.nil;function h(e){const t=o._`${e}.errors`;i.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),i.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(n&&!n.dynamicProps)void 0!==n.props&&(u.props=c.mergeEvaluated.props(i,n.props,u.props));else{const t=i.var("props",o._`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(i,t,u.props,o.Name)}if(!0!==u.items)if(n&&!n.dynamicItems)void 0!==n.items&&(u.items=c.mergeEvaluated.items(i,n.items,u.items));else{const t=i.var("items",o._`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(i,t,u.items,o.Name)}}n?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code(o._`await ${(0,s.callValidateCode)(e,t,p)}`),m(t),l||i.assign(r,!0)}),(e=>{i.if(o._`!(${e} instanceof ${u.ValidationError})`,(()=>i.throw(e))),h(e),l||i.assign(r,!1)})),e.ok(r)}():e.result((0,s.callValidateCode)(e,t,p),(()=>m(t)),(()=>h(t)))}t.getValidate=l,t.callRef=d,t.default=u},7218:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(r=t.DiscrError||(t.DiscrError={})).Tag="tag",r.Mapping="mapping"},5838:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9411),s=r(5327),o=r(7741),a=r(6901),i=r(7218),c={keyword:"discriminator",schemaType:"string",implements:["mapping"],error:{message:e=>{const{schema:t,params:r}=e;return r.discrError?r.discrError===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in mapping`:(0,a.typeErrorMessage)(e,"object")},params:e=>{const{schema:t,params:r}=e;return r.discrError?n._`{error: ${r.discrError}, tag: ${t}, tagValue: ${r.tag}}`:(0,a.typeErrorParams)(e,"object")}},code(e){(0,s.checkMetadata)(e);const{gen:t,data:r,schema:a,parentSchema:c}=e,[u,l]=(0,o.checkNullableObject)(e,r);function d(r){const n=t.name("valid");return e.subschema({keyword:"mapping",schemaProp:r,jtdDiscriminator:a},n),n}t.if(l),function(){const s=t.const("tag",n._`${r}${(0,n.getProperty)(a)}`);t.if(n._`${s} === undefined`),e.error(!1,{discrError:i.DiscrError.Tag,tag:s}),t.elseIf(n._`typeof ${s} == "string"`),function(r){t.if(!1);for(const e in c.mapping)t.elseIf(n._`${r} === ${e}`),t.assign(u,d(e));t.else(),e.error(!1,{discrError:i.DiscrError.Mapping,tag:r},{instancePath:a,schemaPath:"mapping",parentSchema:!0}),t.endIf()}(s),t.else(),e.error(!1,{discrError:i.DiscrError.Tag,tag:s},{instancePath:a}),t.endIf()}(),t.elseIf((0,n.not)(u)),e.error(),t.endIf(),e.ok(u)}};t.default=c},5983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2390),s=r(2309),o=r(9411),a=r(5327),i=r(7741),c={keyword:"elements",schemaType:"object",error:(0,r(6901).typeError)("array"),code(e){(0,a.checkMetadata)(e);const{gen:t,data:r,schema:c,it:u}=e;if((0,n.alwaysValidSchema)(u,c))return;const[l]=(0,i.checkNullable)(e);t.if((0,o.not)(l),(()=>t.if(o._`Array.isArray(${r})`,(()=>t.assign(l,(0,s.validateArray)(e))),(()=>e.error())))),e.ok(l)}};t.default=c},6583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9411),s=r(5327),o=r(7741),a={keyword:"enum",schemaType:"array",error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){(0,s.checkMetadata)(e);const{gen:t,data:r,schema:a,schemaValue:i,parentSchema:c,it:u}=e;if(0===a.length)throw new Error("enum must have non-empty array");if(a.length!==new Set(a).size)throw new Error("enum items must be unique");let l;const d=n._`typeof ${r} == "string"`;if(a.length>=u.opts.loopEnum){let s;[l,s]=(0,o.checkNullable)(e,d),t.if(s,(function(){t.forOf("v",i,(e=>t.if(n._`${l} = ${r} === ${e}`,(()=>t.break()))))}))}else{if(!Array.isArray(a))throw new Error("ajv implementation error");l=(0,n.and)(d,(0,n.or)(...a.map((e=>n._`${r} === ${e}`)))),c.nullable&&(l=(0,n.or)(n._`${r} === null`,l))}e.pass(l)}};t.default=a},6901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeErrorParams=t.typeErrorMessage=t.typeError=void 0;const n=r(9411);function s({parentSchema:e},t){return(null==e?void 0:e.nullable)?`must be ${t} or null`:`must be ${t}`}function o({parentSchema:e},t){return n._`{type: ${t}, nullable: ${!!(null==e?void 0:e.nullable)}}`}t.typeError=function(e){return{message:t=>s(t,e),params:t=>o(t,e)}},t.typeErrorMessage=s,t.typeErrorParams=o},5735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1837),s=r(4394),o=r(6583),a=r(5983),i=r(840),c=r(7679),u=r(5838),l=r(9933),d=r(2350),f=r(5327),p=["definitions",n.default,s.default,o.default,a.default,i.default,c.default,u.default,l.default,d.default,f.default,{keyword:"additionalProperties",schemaType:"boolean"},{keyword:"nullable",schemaType:"boolean"}];t.default=p},5327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkMetadata=void 0;const n=r(2390),s={keyword:"metadata",schemaType:"object",code(e){o(e);const{gen:t,schema:r,it:s}=e;if((0,n.alwaysValidSchema)(s,r))return;const a=t.name("valid");e.subschema({keyword:"metadata",jtdMetadata:!0},a),e.ok(a)}};function o({it:e,keyword:t},r){if(e.jtdMetadata!==r)throw new Error(`JTD: "${t}" cannot be used in this schema location`)}t.checkMetadata=o,t.default=s},7741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkNullableObject=t.checkNullable=void 0;const n=r(9411);function s({gen:e,data:t,parentSchema:r},s=n.nil){const o=e.name("valid");return r.nullable?(e.let(o,n._`${t} === null`),s=(0,n.not)(o)):e.let(o,!1),[o,s]}t.checkNullable=s,t.checkNullableObject=function(e,t){const[r,o]=s(e,t);return[r,n._`${o} && typeof ${e.data} == "object" && !Array.isArray(${e.data})`]}},7679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(840),s={keyword:"optionalProperties",schemaType:"object",error:n.error,code(e){e.parentSchema.properties||(0,n.validateProperties)(e)}};t.default=s},840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateProperties=t.error=void 0;const n=r(2309),s=r(2390),o=r(9411),a=r(5327),i=r(7741),c=r(6901);var u;!function(e){e.Additional="additional",e.Missing="missing"}(u||(u={})),t.error={message:e=>{const{params:t}=e;return t.propError?t.propError===u.Additional?"must NOT have additional properties":`must have property '${t.missingProperty}'`:(0,c.typeErrorMessage)(e,"object")},params:e=>{const{params:t}=e;return t.propError?t.propError===u.Additional?o._`{error: ${t.propError}, additionalProperty: ${t.additionalProperty}}`:o._`{error: ${t.propError}, missingProperty: ${t.missingProperty}}`:(0,c.typeErrorParams)(e,"object")}};const l={keyword:"properties",schemaType:"object",error:t.error,code:d};function d(e){(0,a.checkMetadata)(e);const{gen:t,data:r,parentSchema:c,it:l}=e,{additionalProperties:d,nullable:f}=c;if(l.jtdDiscriminator&&f)throw new Error("JTD: nullable inside discriminator mapping");if(function(){const e=c.properties,t=c.optionalProperties;if(!e||!t)return!1;for(const r in e)if(Object.prototype.hasOwnProperty.call(t,r))return!0;return!1}())throw new Error("JTD: properties and optionalProperties have common members");const[p,h]=_("properties"),[m,v]=_("optionalProperties");if(0===h.length&&0===v.length&&d)return;const[g,y]=void 0===l.jtdDiscriminator?(0,i.checkNullableObject)(e,r):[t.let("valid",!1),!0];function _(e){const t=c[e],r=t?(0,n.allSchemaProperties)(t):[];if(l.jtdDiscriminator&&r.some((e=>e===l.jtdDiscriminator)))throw new Error(`JTD: discriminator tag used in ${e}`);const o=r.filter((e=>!(0,s.alwaysValidSchema)(l,t[e])));return[r,o]}function E(s,o,a){const i=t.var("valid");for(const a of s)t.if((0,n.propertyInData)(t,r,a,l.opts.ownProperties),(()=>w(a,o,i)),(()=>c(a))),e.ok(i);function c(r){a?(t.assign(i,!1),e.error(!1,{propError:u.Missing,missingProperty:r},{schemaPath:r})):t.assign(i,!0)}}function w(t,r,n){e.subschema({keyword:r,schemaProp:t,dataProp:t},n)}function $(e,r,a){let i;if(r.length>8){const r=(0,s.schemaRefOrVal)(l,c[a],a);i=(0,o.not)((0,n.isOwnProperty)(t,r,e))}else i=!r.length||(0,o.and)(...r.map((t=>o._`${e} !== ${t}`)));return i}t.if(y,(()=>t.assign(g,!0).block((()=>{E(h,"properties",!0),E(v,"optionalProperties"),d||t.forIn("key",r,(n=>{const s=void 0===l.jtdDiscriminator?p:[l.jtdDiscriminator].concat(p),a=$(n,s,"properties"),i=$(n,m,"optionalProperties"),c=!0===a?i:!0===i?a:(0,o.and)(a,i);t.if(c,(()=>{l.opts.removeAdditional?t.code(o._`delete ${r}[${n}]`):(e.error(!1,{propError:u.Additional,additionalProperty:n},{instancePath:n,parentSchema:!0}),l.opts.allErrors||t.break())}))}))})))),e.pass(g)}t.validateProperties=d,t.default=l},1837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasRef=void 0;const n=r(3584),s=r(9411),o=r(3003),a=r(6579),i=r(8697),c=r(5327),u={keyword:"ref",schemaType:"string",code(e){(0,c.checkMetadata)(e);const{gen:t,data:r,schema:u,parentSchema:d,it:f}=e,{schemaEnv:{root:p}}=f,h=t.name("valid");function m(){var r;const c=null===(r=p.schema.definitions)||void 0===r?void 0:r[u];if(!c)throw new o.default(f.opts.uriResolver,"",u,`No definition ${u}`);l(c)||!f.opts.inlineRefs?function(r){const o=n.compileSchema.call(f.self,new n.SchemaEnv({schema:r,root:p,schemaPath:`/definitions/${u}`})),c=(0,i.getValidate)(e,o),l=t.const("_errs",a.default.errors);(0,i.callRef)(e,c,o,o.$async),t.assign(h,s._`${l} === ${a.default.errors}`)}(c):function(r){const n=t.scopeValue("schema",!0===f.opts.code.source?{ref:r,code:(0,s.stringify)(r)}:{ref:r});e.subschema({schema:r,dataTypes:[],schemaPath:s.nil,topSchemaRef:n,errSchemaPath:`/definitions/${u}`},h)}(c)}d.nullable?(t.var(h,s._`${r} === null`),t.if((0,s.not)(h),m)):(t.var(h,!1),m()),e.ok(h)}};function l(e){for(const t in e){let r;if("ref"===t||"object"==typeof(r=e[t])&&l(r))return!0}return!1}t.hasRef=l,t.default=u},4394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intRange=void 0;const n=r(9411),s=r(6596),o=r(2390),a=r(5327),i=r(6901);t.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};const c={keyword:"type",schemaType:"string",error:{message:e=>(0,i.typeErrorMessage)(e,e.schema),params:e=>(0,i.typeErrorParams)(e,e.schema)},code(e){(0,a.checkMetadata)(e);const{data:r,schema:i,parentSchema:c,it:u}=e;let l;switch(i){case"boolean":case"string":l=n._`typeof ${r} == ${i}`;break;case"timestamp":l=function(e){const{gen:t,data:r,it:a}=e,{timestamp:i,allowDate:c}=a.opts;if("date"===i)return n._`${r} instanceof Date `;const u=(0,o.useFunc)(t,s.default),l=c?n._`, true`:n.nil,d=n._`typeof ${r} == "string" && ${u}(${r}${l})`;return"string"===i?d:(0,n.or)(n._`${r} instanceof Date`,d)}(e);break;case"float32":case"float64":l=n._`typeof ${r} == "number"`;break;default:{const e=i;if(l=n._`typeof ${r} == "number" && isFinite(${r}) && !(${r} % 1)`,u.opts.int32range||"int32"!==e&&"uint32"!==e){const[s,o]=t.intRange[e];l=n._`${l} && ${r} >= ${s} && ${r} <= ${o}`}else"uint32"===e&&(l=n._`${l} && ${r} >= 0`)}}e.pass(c.nullable?(0,n.or)(n._`${r} === null`,l):l)}};t.default=c},2350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"union",schemaType:"array",trackErrors:!0,code:r(2309).validateUnion,error:{message:"must match a schema in union"}};t.default=n},9933:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2390),s=r(9411),o=r(5327),a=r(7741),i={keyword:"values",schemaType:"object",error:(0,r(6901).typeError)("object"),code(e){(0,o.checkMetadata)(e);const{gen:t,data:r,schema:i,it:c}=e;if((0,n.alwaysValidSchema)(c,i))return;const[u,l]=(0,a.checkNullableObject)(e,r);t.if(l),t.assign(u,function(){const o=t.name("valid");if(c.allErrors){const e=t.let("valid",!0);return a((()=>t.assign(e,!1))),e}return t.var(o,!0),a((()=>t.break())),o;function a(a){t.forIn("key",r,(r=>{e.subschema({keyword:"values",dataProp:r,dataPropType:n.Type.Str},o),t.if((0,s.not)(o),a)}))}}()),t.elseIf((0,s.not)(u)),e.error(),t.endIf(),e.ok(u)}};t.default=i},2125:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,s,o,a,i,c,u,l,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in n(o,a,i,c,u,l,d),o){var p=o[f];if(Array.isArray(p)){if(f in t.arrayKeywords)for(var h=0;h<p.length;h++)r(e,n,s,p[h],a+"/"+f+"/"+h,i,a,f,o,h)}else if(f in t.propsKeywords){if(p&&"object"==typeof p)for(var m in p)r(e,n,s,p[m],a+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),i,a,f,o,m)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&r(e,n,s,p,a+"/"+f,i,a,f,o)}s(o,a,i,c,u,l,d)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.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}},9669:(e,t,r)=>{e.exports=r(1609)},5448:(e,t,r)=>{"use strict";var n=r(4867),s=r(6026),o=r(4372),a=r(1246),i=r(4097),c=r(4109),u=r(7985),l=r(7874),d=r(2648),f=r(644),p=r(205);e.exports=function(e){return new Promise((function(t,r){var h,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var _=new XMLHttpRequest;if(e.auth){var E=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(E+":"+w)}var $=i(e.baseURL,e.url);function b(){if(_){var n="getAllResponseHeaders"in _?c(_.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:n,config:e,request:_};s((function(e){t(e),y()}),(function(e){r(e),y()}),o),_=null}}if(_.open(e.method.toUpperCase(),a($,e.params,e.paramsSerializer),!0),_.timeout=e.timeout,"onloadend"in _?_.onloadend=b:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(b)},_.onabort=function(){_&&(r(new d("Request aborted",d.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,_,_)),_=null},_.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,n.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,_)),_=null},n.isStandardBrowserEnv()){var S=(e.withCredentials||u($))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;S&&(v[e.xsrfHeaderName]=S)}"setRequestHeader"in _&&n.forEach(v,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:_.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),g&&"json"!==g&&(_.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&_.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){_&&(r(!e||e&&e.type?new f:e),_.abort(),_=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var N=p($);N&&-1===["http","https","file"].indexOf(N)?r(new d("Unsupported protocol "+N+":",d.ERR_BAD_REQUEST,e)):_.send(m)}))}},1609:(e,t,r)=>{"use strict";var n=r(4867),s=r(1849),o=r(321),a=r(7185),i=function e(t){var r=new o(t),i=s(o.prototype.request,r);return n.extend(i,o.prototype,r),n.extend(i,r),i.create=function(r){return e(a(t,r))},i}(r(5546));i.Axios=o,i.CanceledError=r(644),i.CancelToken=r(4972),i.isCancel=r(6502),i.VERSION=r(7288).version,i.toFormData=r(7675),i.AxiosError=r(2648),i.Cancel=i.CanceledError,i.all=function(e){return Promise.all(e)},i.spread=r(8713),i.isAxiosError=r(6268),e.exports=i,e.exports.default=i},4972:(e,t,r)=>{"use strict";var n=r(644);function s(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},s.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},s.source=function(){var e;return{token:new s((function(t){e=t})),cancel:e}},e.exports=s},644:(e,t,r)=>{"use strict";var n=r(2648);function s(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(4867).inherits(s,n,{__CANCEL__:!0}),e.exports=s},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var n=r(4867),s=r(1246),o=r(782),a=r(3572),i=r(7185),c=r(4097),u=r(4875),l=u.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=i(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&u.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!s){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(c),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var f=t;n.length;){var p=n.shift(),h=n.shift();try{f=p(f)}catch(e){h(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;c.length;)o=o.then(c.shift(),c.shift());return o},d.prototype.getUri=function(e){e=i(this.defaults,e);var t=c(e.baseURL,e.url);return s(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,r){return this.request(i(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,s){return this.request(i(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},2648:(e,t,r)=>{"use strict";var n=r(4867);function s(e,t,r,n,s){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}n.inherits(s,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=s.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(s,a),Object.defineProperty(o,"isAxiosError",{value:!0}),s.from=function(e,t,r,a,i,c){var u=Object.create(o);return n.toFlatObject(e,u,(function(e){return e!==Error.prototype})),s.call(u,e.message,t,r,a,i),u.name=e.name,c&&Object.assign(u,c),u},e.exports=s},782:(e,t,r)=>{"use strict";var n=r(4867);function s(){this.handlers=[]}s.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},s.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},s.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=s},4097:(e,t,r)=>{"use strict";var n=r(1793),s=r(7303);e.exports=function(e,t){return e&&!n(t)?s(e,t):t}},3572:(e,t,r)=>{"use strict";var n=r(4867),s=r(8527),o=r(6502),a=r(5546),i=r(644);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=s.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=s.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=s.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){t=t||{};var r={};function s(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:s(void 0,e[r]):s(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return s(void 0,t[e])}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:s(void 0,e[r]):s(void 0,t[r])}function c(r){return r in t?s(e[r],t[r]):r in e?s(void 0,e[r]):void 0}var u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,s=t(e);n.isUndefined(s)&&t!==c||(r[e]=s)})),r}},6026:(e,t,r)=>{"use strict";var n=r(2648);e.exports=function(e,t,r){var s=r.config.validateStatus;r.status&&s&&!s(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},8527:(e,t,r)=>{"use strict";var n=r(4867),s=r(5546);e.exports=function(e,t,r){var o=this||s;return n.forEach(r,(function(r){e=r.call(o,e,t)})),e}},5546:(e,t,r)=>{"use strict";var n=r(4867),s=r(6016),o=r(2648),a=r(7874),i=r(7675),c={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,d={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=r(5448)),l),transformRequest:[function(e,t){if(s(t,"Accept"),s(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,o=n.isObject(e),a=t&&t["Content-Type"];if((r=n.isFileList(e))||o&&"multipart/form-data"===a){var c=this.env&&this.env.FormData;return i(r?{"files[]":e}:e,c&&new c)}return o||"application/json"===a?(u(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,s=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||s&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){d.headers[e]=n.merge(c)})),e.exports=d},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},1246:(e,t,r)=>{"use strict";var n=r(4867);function s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(s(t)+"="+s(e))})))})),o=a.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{"use strict";var n=r(4867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,s,o,a){var i=[];i.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),n.isString(s)&&i.push("path="+s),n.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,r)=>{"use strict";var n=r(4867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function s(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=s(window.location.href),function(t){var r=n.isString(t)?s(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},1623:e=>{e.exports=null},4109:(e,t,r)=>{"use strict";var n=r(4867),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(a[t]&&s.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){t=t||new FormData;var r=[];function s(e){return null===e?"":n.isDate(e)?e.toISOString():n.isArrayBuffer(e)||n.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,a){if(n.isPlainObject(o)||n.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+a);r.push(o),n.forEach(o,(function(r,o){if(!n.isUndefined(r)){var i,c=a?a+"."+o:o;if(r&&!a&&"object"==typeof r)if(n.endsWith(o,"{}"))r=JSON.stringify(r);else if(n.endsWith(o,"[]")&&(i=n.toArray(r)))return void i.forEach((function(e){!n.isUndefined(e)&&t.append(c,s(e))}));e(r,c)}})),r.pop()}else t.append(a,s(o))}(e),t}},4875:(e,t,r)=>{"use strict";var n=r(7288).version,s=r(2648),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,i){if(!1===e)throw new s(o(n," has been removed"+(t?" in "+t:"")),s.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new s("options must be an object",s.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],i=t[a];if(i){var c=e[a],u=void 0===c||i(c,a,e);if(!0!==u)throw new s("option "+a+" must be "+u,s.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new s("Unknown option "+a,s.ERR_BAD_OPTION)}},validators:o}},4867:(e,t,r)=>{"use strict";var n,s=r(1849),o=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=o.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function i(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var l=i("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function f(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=i("Date"),h=i("File"),m=i("Blob"),v=i("FileList");function g(e){return"[object Function]"===o.call(e)}var y=i("URLSearchParams");function _(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}var E,w=(E="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return E&&e instanceof E});e.exports={isArray:c,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:f,isUndefined:u,isDate:p,isFile:h,isBlob:m,isFunction:g,isStream:function(e){return d(e)&&g(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:_,merge:function e(){var t={};function r(r,n){f(t[n])&&f(r)?t[n]=e(t[n],r):f(r)?t[n]=e({},r):c(r)?t[n]=r.slice():t[n]=r}for(var n=0,s=arguments.length;n<s;n++)_(arguments[n],r);return t},extend:function(e,t,r){return _(t,(function(t,n){e[n]=r&&"function"==typeof t?s(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,s,o,a={};t=t||{};do{for(s=(n=Object.getOwnPropertyNames(e)).length;s-- >0;)a[o=n[s]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:i,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:v}},1227:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))})),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,r)=>{e.exports=function(e){function t(e){let r,s,o,a=null;function i(...e){if(!i.enabled)return;const n=i,s=Number(new Date),o=s-(r||s);n.diff=o,n.prev=r,n.curr=s,r=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,s)=>{if("%%"===r)return"%";a++;const o=t.formatters[s];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(s),...t.skips.map(s).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(r=0;r<s;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(7824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},6378:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)};function n(e,t){if(!t)return"";var r="; "+e;return!0===t?r:r+"="+t}function s(e,t,r){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return n("Expires",e.expires?e.expires.toUTCString():"")+n("Domain",e.domain)+n("Path",e.path)+n("Secure",e.secure)+n("SameSite",e.sameSite)}(r)}function o(e){for(var t={},r=e?e.split("; "):[],n=/(%[\dA-F]{2})+/gi,s=0;s<r.length;s++){var o=r[s].split("="),a=o.slice(1).join("=");'"'===a.charAt(0)&&(a=a.slice(1,-1));try{t[o[0].replace(n,decodeURIComponent)]=a.replace(n,decodeURIComponent)}catch(e){}}return t}function a(){return o(document.cookie)}function i(e,t,n){document.cookie=s(e,t,r({path:"/"},n))}t.__esModule=!0,t.encode=s,t.parse=o,t.getAll=a,t.get=function(e){return a()[e]},t.set=i,t.remove=function(e,t){i(e,"",r(r({},t),{expires:-1}))}},4063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,s,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(s=n;0!=s--;)if(!e(t[s],r[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(s=n;0!=s--;)if(!Object.prototype.hasOwnProperty.call(r,o[s]))return!1;for(s=n;0!=s--;){var a=o[s];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},6647:(e,t,r)=>{"use strict";var n;r.d(t,{W:()=>n}),function(e){e[e.ACCEPTED=202]="ACCEPTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.CONFLICT=409]="CONFLICT",e[e.CONTINUE=100]="CONTINUE",e[e.CREATED=201]="CREATED",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.GONE=410]="GONE",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.LOCKED=423]="LOCKED",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.OK=200]="OK",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.PROCESSING=102]="PROCESSING",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.USE_PROXY=305]="USE_PROXY",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST"}(n||(n={}))},6245:(e,t,r)=>{"use strict";function n(e){this.message=e}r.d(t,{Z:()=>i}),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var s="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,s,o=0,a=0,i="";s=t.charAt(a++);~s&&(r=o%4?64*r+s:s,o++%4)?i+=String.fromCharCode(255&r>>(-2*o&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return i};function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(s(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return s(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const i=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(o(e.split(".")[r]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},7824:e=>{var t=1e3,r=60*t,n=60*r,s=24*n;function o(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}e.exports=function(e,a){a=a||{};var i,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===u&&isFinite(e))return a.long?(i=e,(c=Math.abs(i))>=s?o(i,c,s,"day"):c>=n?o(i,c,n,"hour"):c>=r?o(i,c,r,"minute"):c>=t?o(i,c,t,"second"):i+" ms"):function(e){var o=Math.abs(e);return o>=s?Math.round(e/s)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,s=1;s<n;++s)t[s]=t[s].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function s(e){return e.toUpperCase()}function o(e){var n="[A-Za-z]",s="[0-9]",o=t(s,"[A-Fa-f]"),a=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),i="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",i),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,s,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),d=r(n+t(n,s,"[\\+\\-\\.]")+"*"),f=r(r(a+"|"+t(l,i,"[\\:]"))+"*"),p=(r(r("25[0-5]")+"|"+r("2[0-4][0-9]")+"|"+r("1[0-9][0-9]")+"|"+r("[1-9][0-9]")+"|"+s),r(r("25[0-5]")+"|"+r("2[0-4][0-9]")+"|"+r("1[0-9][0-9]")+"|"+r("0?[1-9][0-9]")+"|0?0?"+s)),h=r(p+"\\."+p+"\\."+p+"\\."+p),m=r(o+"{1,4}"),v=r(r(m+"\\:"+m)+"|"+h),g=r(r(m+"\\:")+"{6}"+v),y=r("\\:\\:"+r(m+"\\:")+"{5}"+v),_=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+v),E=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+v),w=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+v),$=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+v),b=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+v),S=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),N=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),C=r([g,y,_,E,w,$,b,S,N].join("|")),P=r(r(l+"|"+a)+"+"),O=(r(C+"\\%25"+P),r(C+r("\\%25|\\%(?!"+o+"{2})")+P)),R=r("[vV]"+o+"+\\."+t(l,i,"[\\:]")+"+"),T=r("\\["+r(O+"|"+C+"|"+R)+"\\]"),A=r(r(a+"|"+t(l,i))+"*"),I=r(T+"|"+h+"(?!"+A+")|"+A),j=r("[0-9]*"),D=r(r(f+"@")+"?"+I+r("\\:"+j)+"?"),x=r(a+"|"+t(l,i,"[\\:\\@]")),k=r(x+"*"),F=r(x+"+"),U=r(r(a+"|"+t(l,i,"[\\@]"))+"+"),M=r(r("\\/"+k)+"*"),L=r("\\/"+r(F+M)+"?"),V=r(U+M),z=r(F+M),B="(?!"+x+")",H=(r(M+"|"+L+"|"+V+"|"+z+"|"+B),r(r(x+"|"+t("[\\/\\?]",u))+"*")),K=r(r(x+"|[\\/\\?]")+"*"),q=r(r("\\/\\/"+D+M)+"|"+L+"|"+z+"|"+B),J=r(d+"\\:"+q+r("\\?"+H)+"?"+r("\\#"+K)+"?"),G=r(r("\\/\\/"+D+M)+"|"+L+"|"+V+"|"+B),Q=r(G+r("\\?"+H)+"?"+r("\\#"+K)+"?");return r(J+"|"+Q),r(d+"\\:"+q+r("\\?"+H)+"?"),r(r("\\/\\/("+r("("+f+")@")+"?("+I+")"+r("\\:("+j+")")+"?)")+"?("+M+"|"+L+"|"+z+"|"+B+")"),r("\\?("+H+")"),r("\\#("+K+")"),r(r("\\/\\/("+r("("+f+")@")+"?("+I+")"+r("\\:("+j+")")+"?)")+"?("+M+"|"+L+"|"+V+"|"+B+")"),r("\\?("+H+")"),r("\\#("+K+")"),r(r("\\/\\/("+r("("+f+")@")+"?("+I+")"+r("\\:("+j+")")+"?)")+"?("+M+"|"+L+"|"+z+"|"+B+")"),r("\\?("+H+")"),r("\\#("+K+")"),r("("+f+")@"),r("\\:("+j+")"),{NOT_SCHEME:new RegExp(t("[^]",n,s,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,i),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,i),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,i),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,i),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,i,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,i,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,i),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+h+")$"),IPV6ADDRESS:new RegExp("^\\[?("+C+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+P+")")+"?\\]?$")}}var a=o(!1),i=o(!0),c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,s=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){s=!0,o=e}finally{try{!n&&i.return&&i.return()}finally{if(s)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=2147483647,l=36,d=/^xn--/,f=/[^\0-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,v=String.fromCharCode;function g(e){throw new RangeError(h[e])}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(p,".")).split("."),t).join(".")}function _(e){for(var t=[],r=0,n=e.length;r<n;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&s)<<10)+(1023&o)+65536):(t.push(s),r--)}else t.push(s)}return t}var E=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},w=function(e,t,r){var n=0;for(e=r?m(e/700):e>>1,e+=m(e/t);e>455;n+=l)e=m(e/35);return m(n+36*e/(e+38))},$=function(e){var t,r=[],n=e.length,s=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(var c=0;c<i;++c)e.charCodeAt(c)>=128&&g("not-basic"),r.push(e.charCodeAt(c));for(var d=i>0?i+1:0;d<n;){for(var f=s,p=1,h=l;;h+=l){d>=n&&g("invalid-input");var v=(t=e.charCodeAt(d++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:l;(v>=l||v>m((u-s)/p))&&g("overflow"),s+=v*p;var y=h<=a?1:h>=a+26?26:h-a;if(v<y)break;var _=l-y;p>m(u/_)&&g("overflow"),p*=_}var E=r.length+1;a=w(s-f,E,0==f),m(s/E)>u-o&&g("overflow"),o+=m(s/E),s%=E,r.splice(s++,0,o)}return String.fromCodePoint.apply(String,r)},b=function(e){var t=[],r=(e=_(e)).length,n=128,s=0,o=72,a=!0,i=!1,c=void 0;try{for(var d,f=e[Symbol.iterator]();!(a=(d=f.next()).done);a=!0){var p=d.value;p<128&&t.push(v(p))}}catch(e){i=!0,c=e}finally{try{!a&&f.return&&f.return()}finally{if(i)throw c}}var h=t.length,y=h;for(h&&t.push("-");y<r;){var $=u,b=!0,S=!1,N=void 0;try{for(var C,P=e[Symbol.iterator]();!(b=(C=P.next()).done);b=!0){var O=C.value;O>=n&&O<$&&($=O)}}catch(e){S=!0,N=e}finally{try{!b&&P.return&&P.return()}finally{if(S)throw N}}var R=y+1;$-n>m((u-s)/R)&&g("overflow"),s+=($-n)*R,n=$;var T=!0,A=!1,I=void 0;try{for(var j,D=e[Symbol.iterator]();!(T=(j=D.next()).done);T=!0){var x=j.value;if(x<n&&++s>u&&g("overflow"),x==n){for(var k=s,F=l;;F+=l){var U=F<=o?1:F>=o+26?26:F-o;if(k<U)break;var M=k-U,L=l-U;t.push(v(E(U+M%L,0))),k=m(M/L)}t.push(v(E(k,0))),o=w(s,R,y==h),s=0,++y}}}catch(e){A=!0,I=e}finally{try{!T&&D.return&&D.return()}finally{if(A)throw I}}++s,++n}return t.join("")},S=function(e){return y(e,(function(e){return f.test(e)?"xn--"+b(e):e}))},N=function(e){return y(e,(function(e){return d.test(e)?$(e.slice(4).toLowerCase()):e}))},C={};function P(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function O(e){for(var t="",r=0,n=e.length;r<n;){var s=parseInt(e.substr(r+1,2),16);if(s<128)t+=String.fromCharCode(s),r+=3;else if(s>=194&&s<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&s)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(s>=224){if(n-r>=9){var a=parseInt(e.substr(r+4,2),16),i=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&s)<<12|(63&a)<<6|63&i)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function R(e,t){function r(e){var r=O(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,P).replace(t.PCT_ENCODED,s)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,P).replace(t.PCT_ENCODED,s)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,P).replace(t.PCT_ENCODED,s)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,P).replace(t.PCT_ENCODED,s)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,P).replace(t.PCT_ENCODED,s)),e}function T(e){return e.replace(/^0*(.*)/,"$1")||"0"}function A(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(T).join("."):e}function I(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),s=n[1],o=n[2];if(s){for(var a=s.toLowerCase().split("::").reverse(),i=c(a,2),u=i[0],l=i[1],d=l?l.split(":").map(T):[],f=u.split(":").map(T),p=t.IPV4ADDRESS.test(f[f.length-1]),h=p?7:8,m=f.length-h,v=Array(h),g=0;g<h;++g)v[g]=d[g]||f[m+g]||"";p&&(v[h-1]=A(v[h-1],t));var y=v.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],_=void 0;if(y&&y.length>1){var E=v.slice(0,y.index),w=v.slice(y.index+y.length);_=E.join(":")+"::"+w.join(":")}else _=v.join(":");return o&&(_+="%"+o),_}return e}var j=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,D=void 0==="".match(/(){0}/)[1];function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?i:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var s=e.match(j);if(s){D?(r.scheme=s[1],r.userinfo=s[3],r.host=s[4],r.port=parseInt(s[5],10),r.path=s[6]||"",r.query=s[7],r.fragment=s[8],isNaN(r.port)&&(r.port=s[5])):(r.scheme=s[1]||void 0,r.userinfo=-1!==e.indexOf("@")?s[3]:void 0,r.host=-1!==e.indexOf("//")?s[4]:void 0,r.port=parseInt(s[5],10),r.path=s[6]||"",r.query=-1!==e.indexOf("?")?s[7]:void 0,r.fragment=-1!==e.indexOf("#")?s[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:void 0)),r.host&&(r.host=I(A(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=C[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)R(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=S(r.host.replace(n.PCT_ENCODED,O).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}R(r,a)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function k(e,t){var r=!1!==t.iri?i:a,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(I(A(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var F=/^\.\.?\//,U=/^\/\.(\/|$)/,M=/^\/\.\.(\/|$)/,L=/^\/?(?:.|\n)*?(?=\/|$)/;function V(e){for(var t=[];e.length;)if(e.match(F))e=e.replace(F,"");else if(e.match(U))e=e.replace(U,"/");else if(e.match(M))e=e.replace(M,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(L);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?i:a,n=[],s=C[(t.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize&&s.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||s&&s.domainHost)try{e.host=t.iri?N(e.host):S(e.host.replace(r.PCT_ENCODED,O).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}R(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=k(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||s&&s.absolutePath||(c=V(c)),void 0===o&&(c=c.replace(/^\/\//,"/%2F")),n.push(c)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function B(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=x(z(e,r),r),t=x(z(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=V(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=V(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=V(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=V(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function H(e,t){return e&&e.toString().replace(t&&t.iri?i.PCT_ENCODED:a.PCT_ENCODED,O)}var K={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},q={scheme:"https",domainHost:K.domainHost,parse:K.parse,serialize:K.serialize};function J(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var G={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=J(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(J(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=c(r,2),s=n[0],o=n[1];e.path=s&&"/"!==s?s:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},Q={scheme:"wss",domainHost:G.domainHost,parse:G.parse,serialize:G.serialize},Y={},W="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",X="[0-9A-Fa-f]",Z=r(r("%[EFef][0-9A-Fa-f]%"+X+X+"%"+X+X)+"|"+r("%[89A-Fa-f][0-9A-Fa-f]%"+X+X)+"|"+r("%"+X+X)),ee=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),te=new RegExp(W,"g"),re=new RegExp(Z,"g"),ne=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',ee),"g"),se=new RegExp(t("[^]",W,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),oe=se;function ae(e){var t=O(e);return t.match(te)?t:e}var ie={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var s=!1,o={},a=r.query.split("&"),i=0,c=a.length;i<c;++i){var u=a[i].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),d=0,f=l.length;d<f;++d)n.push(l[d]);break;case"subject":r.subject=H(u[1],t);break;case"body":r.body=H(u[1],t);break;default:s=!0,o[H(u[0],t)]=H(u[1],t)}}s&&(r.headers=o)}r.query=void 0;for(var p=0,h=n.length;p<h;++p){var m=n[p].split("@");if(m[0]=H(m[0]),t.unicodeSupport)m[1]=H(m[1],t).toLowerCase();else try{m[1]=S(H(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r,n=e,o=null!=(r=e.to)?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(o){for(var a=0,i=o.length;a<i;++a){var c=String(o[a]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(re,ae).replace(re,s).replace(ne,P),d=c.slice(u+1);try{d=t.iri?N(d):S(H(d,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}o[a]=l+"@"+d}n.path=o.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var h in f)f[h]!==Y[h]&&p.push(h.replace(re,ae).replace(re,s).replace(se,P)+"="+f[h].replace(re,ae).replace(re,s).replace(oe,P));return p.length&&(n.query=p.join("&")),n}},ce=/^([^\:]+)\:(.*)/,ue={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(ce),n=e;if(r){var s=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),a=r[2],i=s+":"+(t.nid||o),c=C[i];n.nid=o,n.nss=a,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,s=r+":"+(t.nid||n),o=C[s];o&&(e=o.serialize(e,t));var a=e,i=e.nss;return a.path=(n||t.nid)+":"+i,a}},le=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,de={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(le)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};C[K.scheme]=K,C[q.scheme]=q,C[G.scheme]=G,C[Q.scheme]=Q,C[ie.scheme]=ie,C[ue.scheme]=ue,C[de.scheme]=de,e.SCHEMES=C,e.pctEncChar=P,e.pctDecChars=O,e.parse=x,e.removeDotSegments=V,e.serialize=z,e.resolveComponents=B,e.resolve=function(e,t,r){var n=function(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}({scheme:"null"},r);return z(B(x(e,n),x(t,n),n,!0),n)},e.normalize=function(e,t){return"string"==typeof e?e=z(x(e,t),t):"object"===n(e)&&(e=x(z(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=z(x(e,r),r):"object"===n(e)&&(e=z(e,r)),"string"==typeof t?t=z(x(t,r),r):"object"===n(t)&&(t=z(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?i.ESCAPE:a.ESCAPE,P)},e.unescapeComponent=H,Object.defineProperty(e,"__esModule",{value:!0})}(t)},9863:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')}}]);
@@ -1 +0,0 @@
1
- /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */