diff --git a/dist/jsonSchemaLibrary.js b/dist/jsonSchemaLibrary.js index b5a02bc..422c490 100644 --- a/dist/jsonSchemaLibrary.js +++ b/dist/jsonSchemaLibrary.js @@ -1 +1 @@ -!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("jlib",[],r):"object"==typeof exports?exports.jlib=r():e.jlib=r()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={546:function(e){"undefined"!=typeof self&&self,e.exports=(()=>{"use strict";var e={d:(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};function t(e){return"#"===e||""===e||Array.isArray(e)&&0===e.length||!1}e.r(r),e.d(r,{default:()=>P,get:()=>c,isRoot:()=>t,join:()=>x,remove:()=>$,removeUndefinedItems:()=>v,set:()=>d,split:()=>l,splitLast:()=>E});const n=/~1/g,o=/~0/g,a=/(^#?\/?)/g;function s(e){return e.replace(n,"/").replace(o,"~")}function i(e){return s(decodeURIComponent(e))}function l(e){if(null==e||"string"!=typeof e||t(e))return Array.isArray(e)?e:[];const r=e.indexOf("#")>=0?i:s,n=(e=e.replace(a,"")).split("/");for(let e=0,t=n.length;e0&&"prototype"==r[0]}function d(e,r,t){if(null==r)return e;const n=l(r);if(0===n.length)return e;null==e&&(e=m.test(n[0])?[]:{});let o,a,s=e;for(;n.length>1;)o=n.shift(),a=m.test(n[0]),p(o,n)||(s=y(s,o,a));return o=n.pop(),h(s,o,t),e}function h(e,r,t){let n;const o=r.match(f);"[]"===r&&Array.isArray(e)?e.push(t):o?(n=o.pop(),e[n]=t):e[r]=t}function y(e,r,t){if(null!=e[r])return e[r];const n=t?[]:{};return h(e,r,n),n}function v(e){let r=0,t=0;for(;r+t{"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===t}(e)}(e)};var t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,r){return!1!==r.clone&&r.isMergeableObject(e)?l((t=e,Array.isArray(t)?[]:{}),e,r):e;var t}function o(e,r,t){return e.concat(r).map((function(e){return n(e,t)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return Object.propertyIsEnumerable.call(e,r)})):[]}(e))}function s(e,r){try{return r in e}catch(e){return!1}}function i(e,r,t){var o={};return t.isMergeableObject(e)&&a(e).forEach((function(r){o[r]=n(e[r],t)})),a(r).forEach((function(a){(function(e,r){return s(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(s(e,a)&&t.isMergeableObject(r[a])?o[a]=function(e,r){if(!r.customMerge)return l;var t=r.customMerge(e);return"function"==typeof t?t:l}(a,t)(e[a],r[a],t):o[a]=n(r[a],t))})),o}function l(e,t,a){(a=a||{}).arrayMerge=a.arrayMerge||o,a.isMergeableObject=a.isMergeableObject||r,a.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(t);return s===Array.isArray(e)?s?a.arrayMerge(e,t,a):i(e,t,a):n(t,a)}l.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,t){return l(e,t,r)}),{})};var c=l;e.exports=c},17:e=>{"use strict";e.exports=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==typeof r&&"object"==typeof t){if(r.constructor!==t.constructor)return!1;var n,o,a;if(Array.isArray(r)){if((n=r.length)!=t.length)return!1;for(o=n;0!=o--;)if(!e(r[o],t[o]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if((n=(a=Object.keys(r)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,a[o]))return!1;for(o=n;0!=o--;){var s=a[o];if(!e(r[s],t[s]))return!1}return!0}return r!=r&&t!=t}},515:function(e){var r,t;r=this,t=function(){function e(r,t,n){return this.id=++e.highestId,this.name=r,this.symbols=t,this.postprocess=n,this}function r(e,r,t,n){this.rule=e,this.dot=r,this.reference=t,this.data=[],this.wantedBy=n,this.isComplete=this.dot===e.symbols.length}function t(e,r){this.grammar=e,this.index=r,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(e,r){this.rules=e,this.start=r||this.rules[0].name;var t=this.byName={};this.rules.forEach((function(e){t.hasOwnProperty(e.name)||(t[e.name]=[]),t[e.name].push(e)}))}function o(){this.reset("")}function a(e,r,a){if(e instanceof n){var s=e;a=r}else s=n.fromCompiled(e,r);for(var i in this.grammar=s,this.options={keepHistory:!1,lexer:s.lexer||new o},a||{})this.options[i]=a[i];this.lexer=this.options.lexer,this.lexerState=void 0;var l=new t(s,0);this.table=[l],l.wants[s.start]=[],l.predict(s.start),l.process(),this.current=0}function s(e){var r=typeof e;if("string"===r)return e;if("object"===r){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return e.toString();if(e.type)return"%"+e.type;if(e.test)return"<"+String(e.test)+">";throw new Error("Unknown symbol type: "+e)}}return e.highestId=0,e.prototype.toString=function(e){var r=void 0===e?this.symbols.map(s).join(" "):this.symbols.slice(0,e).map(s).join(" ")+" ● "+this.symbols.slice(e).map(s).join(" ");return this.name+" → "+r},r.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},r.prototype.nextState=function(e){var t=new r(this.rule,this.dot+1,this.reference,this.wantedBy);return t.left=this,t.right=e,t.isComplete&&(t.data=t.build(),t.right=void 0),t},r.prototype.build=function(){var e=[],r=this;do{e.push(r.right.data),r=r.left}while(r.left);return e.reverse(),e},r.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,a.fail))},t.prototype.process=function(e){for(var r=this.states,t=this.wants,n=this.completed,o=0;o0&&r.push(" ^ "+n+" more lines identical to this"),n=0,r.push(" "+s)),t=s}},a.prototype.getSymbolDisplay=function(e){return function(e){var r=typeof e;if("string"===r)return e;if("object"===r){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return"character matching "+e;if(e.type)return e.type+" token";if(e.test)return"token matching "+String(e.test);throw new Error("Unknown symbol type: "+e)}}(e)},a.prototype.buildFirstStateStack=function(e,r){if(-1!==r.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var t=e.wantedBy[0],n=[e].concat(r),o=this.buildFirstStateStack(t,n);return null===o?null:[e].concat(o)},a.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},a.prototype.restore=function(e){var r=e.index;this.current=r,this.table[r]=e,this.table.splice(r+1),this.lexerState=e.lexerState,this.results=this.finish()},a.prototype.rewind=function(e){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},a.prototype.finish=function(){var e=[],r=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(t){t.rule.name===r&&t.dot===t.rule.symbols.length&&0===t.reference&&t.data!==a.fail&&e.push(t)})),e.map((function(e){return e.data}))},{Parser:a,Grammar:n,Rule:e}},e.exports?e.exports=t():r.nearley=t()},84:(e,r)=>{"use strict";function t(e){return e[0]}Object.defineProperty(r,"__esModule",{value:!0});const n=e=>[].concat(...e.map((e=>Array.isArray(e)?n(e):e)));function o(e){return e?Array.isArray(e)?n(e).join(""):e:""}const a={Lexer:void 0,ParserRules:[{name:"Reverse_path",symbols:["Path"]},{name:"Reverse_path$string$1",symbols:[{literal:"<"},{literal:">"}],postprocess:e=>e.join("")},{name:"Reverse_path",symbols:["Reverse_path$string$1"]},{name:"Forward_path$subexpression$1$subexpression$1",symbols:[{literal:"<"},/[pP]/,/[oO]/,/[sS]/,/[tT]/,/[mM]/,/[aA]/,/[sS]/,/[tT]/,/[eE]/,/[rR]/,{literal:"@"}],postprocess:function(e){return e.join("")}},{name:"Forward_path$subexpression$1",symbols:["Forward_path$subexpression$1$subexpression$1","Domain",{literal:">"}]},{name:"Forward_path",symbols:["Forward_path$subexpression$1"]},{name:"Forward_path$subexpression$2",symbols:[{literal:"<"},/[pP]/,/[oO]/,/[sS]/,/[tT]/,/[mM]/,/[aA]/,/[sS]/,/[tT]/,/[eE]/,/[rR]/,{literal:">"}],postprocess:function(e){return e.join("")}},{name:"Forward_path",symbols:["Forward_path$subexpression$2"]},{name:"Forward_path",symbols:["Path"]},{name:"Path$ebnf$1$subexpression$1",symbols:["A_d_l",{literal:":"}]},{name:"Path$ebnf$1",symbols:["Path$ebnf$1$subexpression$1"],postprocess:t},{name:"Path$ebnf$1",symbols:[],postprocess:()=>null},{name:"Path",symbols:[{literal:"<"},"Path$ebnf$1","Mailbox",{literal:">"}]},{name:"A_d_l$ebnf$1",symbols:[]},{name:"A_d_l$ebnf$1$subexpression$1",symbols:[{literal:","},"At_domain"]},{name:"A_d_l$ebnf$1",symbols:["A_d_l$ebnf$1","A_d_l$ebnf$1$subexpression$1"],postprocess:e=>e[0].concat([e[1]])},{name:"A_d_l",symbols:["At_domain","A_d_l$ebnf$1"]},{name:"At_domain",symbols:[{literal:"@"},"Domain"]},{name:"Domain$ebnf$1",symbols:[]},{name:"Domain$ebnf$1$subexpression$1",symbols:[{literal:"."},"sub_domain"]},{name:"Domain$ebnf$1",symbols:["Domain$ebnf$1","Domain$ebnf$1$subexpression$1"],postprocess:e=>e[0].concat([e[1]])},{name:"Domain",symbols:["sub_domain","Domain$ebnf$1"]},{name:"sub_domain",symbols:["U_label"]},{name:"Let_dig",symbols:["ALPHA_DIGIT"],postprocess:t},{name:"Ldh_str$ebnf$1",symbols:[]},{name:"Ldh_str$ebnf$1",symbols:["Ldh_str$ebnf$1","ALPHA_DIG_DASH"],postprocess:e=>e[0].concat([e[1]])},{name:"Ldh_str",symbols:["Ldh_str$ebnf$1","Let_dig"]},{name:"U_Let_dig",symbols:["ALPHA_DIGIT_U"],postprocess:t},{name:"U_Ldh_str$ebnf$1",symbols:[]},{name:"U_Ldh_str$ebnf$1",symbols:["U_Ldh_str$ebnf$1","ALPHA_DIG_DASH_U"],postprocess:e=>e[0].concat([e[1]])},{name:"U_Ldh_str",symbols:["U_Ldh_str$ebnf$1","U_Let_dig"]},{name:"U_label$ebnf$1$subexpression$1",symbols:["U_Ldh_str"]},{name:"U_label$ebnf$1",symbols:["U_label$ebnf$1$subexpression$1"],postprocess:t},{name:"U_label$ebnf$1",symbols:[],postprocess:()=>null},{name:"U_label",symbols:["U_Let_dig","U_label$ebnf$1"]},{name:"address_literal$subexpression$1",symbols:["IPv4_address_literal"]},{name:"address_literal$subexpression$1",symbols:["IPv6_address_literal"]},{name:"address_literal$subexpression$1",symbols:["General_address_literal"]},{name:"address_literal",symbols:[{literal:"["},"address_literal$subexpression$1",{literal:"]"}]},{name:"non_local_part",symbols:["Domain"],postprocess:function(e){return{DomainName:o(e[0])}}},{name:"non_local_part",symbols:["address_literal"],postprocess:function(e){return{AddressLiteral:o(e[0])}}},{name:"Mailbox",symbols:["Local_part",{literal:"@"},"non_local_part"],postprocess:function(e){return{localPart:o(e[0]),domainPart:o(e[2])}}},{name:"Local_part",symbols:["Dot_string"],postprocess:function(e){return{DotString:o(e[0])}}},{name:"Local_part",symbols:["Quoted_string"],postprocess:function(e){return{QuotedString:o(e[0])}}},{name:"Dot_string$ebnf$1",symbols:[]},{name:"Dot_string$ebnf$1$subexpression$1",symbols:[{literal:"."},"Atom"]},{name:"Dot_string$ebnf$1",symbols:["Dot_string$ebnf$1","Dot_string$ebnf$1$subexpression$1"],postprocess:e=>e[0].concat([e[1]])},{name:"Dot_string",symbols:["Atom","Dot_string$ebnf$1"]},{name:"Atom$ebnf$1",symbols:[/[0-9A-Za-z!#$%&'*+\-/=?^_`{|}~\u0080-\uFFFF/]/]},{name:"Atom$ebnf$1",symbols:["Atom$ebnf$1",/[0-9A-Za-z!#$%&'*+\-/=?^_`{|}~\u0080-\uFFFF/]/],postprocess:e=>e[0].concat([e[1]])},{name:"Atom",symbols:["Atom$ebnf$1"]},{name:"Quoted_string$ebnf$1",symbols:[]},{name:"Quoted_string$ebnf$1",symbols:["Quoted_string$ebnf$1","QcontentSMTP"],postprocess:e=>e[0].concat([e[1]])},{name:"Quoted_string",symbols:["DQUOTE","Quoted_string$ebnf$1","DQUOTE"]},{name:"QcontentSMTP",symbols:["qtextSMTP"]},{name:"QcontentSMTP",symbols:["quoted_pairSMTP"]},{name:"quoted_pairSMTP",symbols:[{literal:"\\"},/[\x20-\x7e]/]},{name:"qtextSMTP",symbols:[/[\x20-\x21\x23-\x5b\x5d-\x7e\u0080-\uFFFF]/],postprocess:t},{name:"IPv4_address_literal$macrocall$2",symbols:[{literal:"."},"Snum"]},{name:"IPv4_address_literal$macrocall$1",symbols:["IPv4_address_literal$macrocall$2","IPv4_address_literal$macrocall$2","IPv4_address_literal$macrocall$2"]},{name:"IPv4_address_literal",symbols:["Snum","IPv4_address_literal$macrocall$1"]},{name:"IPv6_address_literal$subexpression$1",symbols:[/[iI]/,/[pP]/,/[vV]/,{literal:"6"},{literal:":"}],postprocess:function(e){return e.join("")}},{name:"IPv6_address_literal",symbols:["IPv6_address_literal$subexpression$1","IPv6_addr"]},{name:"General_address_literal$ebnf$1",symbols:["dcontent"]},{name:"General_address_literal$ebnf$1",symbols:["General_address_literal$ebnf$1","dcontent"],postprocess:e=>e[0].concat([e[1]])},{name:"General_address_literal",symbols:["Standardized_tag",{literal:":"},"General_address_literal$ebnf$1"]},{name:"Standardized_tag",symbols:["Ldh_str"]},{name:"dcontent",symbols:[/[\x21-\x5a\x5e-\x7e]/],postprocess:t},{name:"Snum",symbols:["DIGIT"]},{name:"Snum$subexpression$1",symbols:[/[1-9]/,"DIGIT"]},{name:"Snum",symbols:["Snum$subexpression$1"]},{name:"Snum$subexpression$2",symbols:[{literal:"1"},"DIGIT","DIGIT"]},{name:"Snum",symbols:["Snum$subexpression$2"]},{name:"Snum$subexpression$3",symbols:[{literal:"2"},/[0-4]/,"DIGIT"]},{name:"Snum",symbols:["Snum$subexpression$3"]},{name:"Snum$subexpression$4",symbols:[{literal:"2"},{literal:"5"},/[0-5]/]},{name:"Snum",symbols:["Snum$subexpression$4"]},{name:"IPv6_addr",symbols:["IPv6_full"]},{name:"IPv6_addr",symbols:["IPv6_comp"]},{name:"IPv6_addr",symbols:["IPv6v4_full"]},{name:"IPv6_addr",symbols:["IPv6v4_comp"]},{name:"IPv6_hex",symbols:["HEXDIG"]},{name:"IPv6_hex$subexpression$1",symbols:["HEXDIG","HEXDIG"]},{name:"IPv6_hex",symbols:["IPv6_hex$subexpression$1"]},{name:"IPv6_hex$subexpression$2",symbols:["HEXDIG","HEXDIG","HEXDIG"]},{name:"IPv6_hex",symbols:["IPv6_hex$subexpression$2"]},{name:"IPv6_hex$subexpression$3",symbols:["HEXDIG","HEXDIG","HEXDIG","HEXDIG"]},{name:"IPv6_hex",symbols:["IPv6_hex$subexpression$3"]},{name:"IPv6_full$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6_full$macrocall$1",symbols:["IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2"]},{name:"IPv6_full",symbols:["IPv6_hex","IPv6_full$macrocall$1"]},{name:"IPv6_comp$ebnf$1$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6_comp$ebnf$1$subexpression$1$macrocall$1",symbols:["IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2"]},{name:"IPv6_comp$ebnf$1$subexpression$1",symbols:["IPv6_hex","IPv6_comp$ebnf$1$subexpression$1$macrocall$1"]},{name:"IPv6_comp$ebnf$1",symbols:["IPv6_comp$ebnf$1$subexpression$1"],postprocess:t},{name:"IPv6_comp$ebnf$1",symbols:[],postprocess:()=>null},{name:"IPv6_comp$string$1",symbols:[{literal:":"},{literal:":"}],postprocess:e=>e.join("")},{name:"IPv6_comp$ebnf$2$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6_comp$ebnf$2$subexpression$1$macrocall$1",symbols:["IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2"]},{name:"IPv6_comp$ebnf$2$subexpression$1",symbols:["IPv6_hex","IPv6_comp$ebnf$2$subexpression$1$macrocall$1"]},{name:"IPv6_comp$ebnf$2",symbols:["IPv6_comp$ebnf$2$subexpression$1"],postprocess:t},{name:"IPv6_comp$ebnf$2",symbols:[],postprocess:()=>null},{name:"IPv6_comp",symbols:["IPv6_comp$ebnf$1","IPv6_comp$string$1","IPv6_comp$ebnf$2"]},{name:"IPv6v4_full$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6v4_full$macrocall$1",symbols:["IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2"]},{name:"IPv6v4_full",symbols:["IPv6_hex","IPv6v4_full$macrocall$1",{literal:":"},"IPv4_address_literal"]},{name:"IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6v4_comp$ebnf$1$subexpression$1$macrocall$1",symbols:["IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2"]},{name:"IPv6v4_comp$ebnf$1$subexpression$1",symbols:["IPv6_hex","IPv6v4_comp$ebnf$1$subexpression$1$macrocall$1"]},{name:"IPv6v4_comp$ebnf$1",symbols:["IPv6v4_comp$ebnf$1$subexpression$1"],postprocess:t},{name:"IPv6v4_comp$ebnf$1",symbols:[],postprocess:()=>null},{name:"IPv6v4_comp$string$1",symbols:[{literal:":"},{literal:":"}],postprocess:e=>e.join("")},{name:"IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6v4_comp$ebnf$2$subexpression$1$macrocall$1",symbols:["IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2"]},{name:"IPv6v4_comp$ebnf$2$subexpression$1",symbols:["IPv6_hex","IPv6v4_comp$ebnf$2$subexpression$1$macrocall$1",{literal:":"}]},{name:"IPv6v4_comp$ebnf$2",symbols:["IPv6v4_comp$ebnf$2$subexpression$1"],postprocess:t},{name:"IPv6v4_comp$ebnf$2",symbols:[],postprocess:()=>null},{name:"IPv6v4_comp",symbols:["IPv6v4_comp$ebnf$1","IPv6v4_comp$string$1","IPv6v4_comp$ebnf$2","IPv4_address_literal"]},{name:"DIGIT",symbols:[/[0-9]/],postprocess:t},{name:"ALPHA_DIGIT_U",symbols:[/[0-9A-Za-z\u0080-\uFFFF]/],postprocess:t},{name:"ALPHA_DIGIT",symbols:[/[0-9A-Za-z]/],postprocess:t},{name:"ALPHA_DIG_DASH",symbols:[/[-0-9A-Za-z]/],postprocess:t},{name:"ALPHA_DIG_DASH_U",symbols:[/[-0-9A-Za-z\u0080-\uFFFF]/],postprocess:t},{name:"HEXDIG",symbols:[/[0-9A-Fa-f]/],postprocess:t},{name:"DQUOTE",symbols:[{literal:'"'}],postprocess:t}],ParserStart:"Reverse_path"};r.default=a},125:function(e,r,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.canonicalize=r.canonicalize_quoted_string=r.normalize=r.normalize_dot_string=r.parse=void 0;const o=t(515),a=n(t(84));a.default.ParserStart="Mailbox";const s=o.Grammar.fromCompiled(a.default);function i(e){const r=new o.Parser(s);if(r.feed(e),1!==r.results.length)throw new Error("address parsing failed: ambiguous grammar");return r.results[0]}function l(e){return function(){const r=e.indexOf("+");return-1===r?e:e.substr(0,r)}().replace(/\./g,"").toLowerCase()}function c(e){return`"${e.substr(1).substr(0,e.length-2).replace(/(?:\\(.))/g,"$1").replace(/(?:(["\\]))/g,"\\$1")}"`}r.parse=i,r.normalize_dot_string=l,r.normalize=function(e){var r,t;const n=i(e),o=null!==(r=n.domainPart.AddressLiteral)&&void 0!==r?r:n.domainPart.DomainName.toLowerCase();return`${null!==(t=n.localPart.QuotedString)&&void 0!==t?t:l(n.localPart.DotString)}@${o}`},r.canonicalize_quoted_string=c,r.canonicalize=function(e){var r;const t=i(e),n=null!==(r=t.domainPart.AddressLiteral)&&void 0!==r?r:t.domainPart.DomainName.toLowerCase();return`${t.localPart.QuotedString?c(t.localPart.QuotedString):t.localPart.DotString}@${n}`}},853:(e,r,t)=>{!function(e){"use strict";e.exports.is_uri=t,e.exports.is_http_uri=n,e.exports.is_https_uri=o,e.exports.is_web_uri=a,e.exports.isUri=t,e.exports.isHttpUri=n,e.exports.isHttpsUri=o,e.exports.isWebUri=a;var r=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function t(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var t,n,o,a,s,i="",l="";if(i=(t=r(e))[1],n=t[2],o=t[3],a=t[4],s=t[5],i&&i.length&&o.length>=0){if(n&&n.length){if(0!==o.length&&!/^\//.test(o))return}else if(/^\/\//.test(o))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(i.toLowerCase()))return l+=i+":",n&&n.length&&(l+="//"+n),l+=o,a&&a.length&&(l+="?"+a),s&&s.length&&(l+="#"+s),l}}}function n(e,n){if(t(e)){var o,a,s,i,l="",c="",u="",m="";if(l=(o=r(e))[1],c=o[2],a=o[3],s=o[4],i=o[5],l){if(n){if("https"!=l.toLowerCase())return}else if("http"!=l.toLowerCase())return;if(c)return/:(\d+)$/.test(c)&&(u=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),m+=l+":",m+="//"+c,u&&(m+=u),m+=a,s&&s.length&&(m+="?"+s),i&&i.length&&(m+="#"+i),m}}}function o(e){return n(e,!0)}function a(e){return n(e)||o(e)}}(e=t.nmd(e))}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";t.r(n),t.d(n,{Draft:()=>Pe,Draft04:()=>qr,Draft06:()=>Xr,Draft07:()=>et,Draft2019:()=>ot,JsonEditor:()=>st,config:()=>it,createCustomError:()=>u,createError:()=>c,createNode:()=>N,draft04Config:()=>zr,draft06Config:()=>Qr,draft07Config:()=>Yr,draft2019Config:()=>nt,draftJsonEditorConfig:()=>at,getTypeOf:()=>o,isDynamicSchema:()=>z,isJsonError:()=>p,isSchemaNode:()=>R,mergeSchema:()=>O,reduceSchema:()=>G,render:()=>i,resolveAllOf:()=>A,resolveDynamicSchema:()=>q,resolveOneOf:()=>$,resolveOneOfFuzzy:()=>g,resolveRef:()=>L,resolveRefStrict:()=>M,settings:()=>f,validateAsync:()=>k});const e={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",ContainsMinError:"The array at `{{pointer}}` contains {{delta}} too few items matching `{{schema}}`",ContainsMaxError:"The array at `{{pointer}}` contains {{delta}} too many items matching `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",ForbiddenPropertyError:"Property name `{{property}}` at `{{pointer}}` is not allowed",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatDurationError:"Value `{{value}}` at `{{pointer}}` is not a valid duration",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJsonPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minItems}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",SchemaWarning:"Failed retrieving a schema from '{{pointer}}' to key '{{key}}'",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UnevaluatedPropertyError:"Invalid unevaluated property `{{pointer}}`",UnevaluatedItemsError:"Invalid unevaluated item `{{pointer}}`",UniqueItemsError:"Items in array must be unique. Value `{{value}}` in `{{pointer}}` is a duplicate of {{duplicatePointer}}.",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"},r=Object.prototype.toString;function o(e){const t=r.call(e).match(/\s([^\]]+)\]/).pop().toLowerCase();return"file"===t?"object":t}const a="object",s="array";function i(e,r={}){return e.replace(/\{\{\w+\}\}/g,(e=>{const t=e.replace(/[{}]/g,""),n=r[t],i=o(n);return i===a||i===s?JSON.stringify(n):n}))}function l(r,t,n=r){var o;return i(null!==(o=e[r])&&void 0!==o?o:n,t)}function c(e,r){return{type:"error",name:e,code:(t=e,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),message:l(e,r),data:r};var t}function u(e){return c.bind(null,e)}function m(e,r=[]){for(let t=0;t0))return c.next(l.schema);a.push(...u)}return n.errors.oneOfPropertyError({property:s,value:i,pointer:o,schema:t,errors:a})}const a=[],s=[];for(let o=0;o0?s.push(...l):a.push({index:o,schema:i.schema})}return 1===a.length?e.next(a[0].schema):a.length>1?n.errors.multipleOneOfError({value:r,pointer:o,schema:t,matches:a}):n.errors.oneOfError({value:JSON.stringify(r),pointer:o,schema:t,oneOf:t.oneOf,errors:s})}function b(e,r){const{draft:t,schema:n,pointer:o}=e;if(null==r||null==n.properties)return-1;let a=0;const s=Object.keys(n.properties);for(let e=0;e0))return c.next(l.schema);a.push(...u)}return o.errors.oneOfPropertyError({property:s,value:i,pointer:n,schema:t,errors:a})}const a=[];for(let s=0;s1?o.errors.multipleOneOfError({matches:a,pointer:n,schema:t,value:r}):o.errors.oneOfError({value:JSON.stringify(r),pointer:n,schema:t,oneOf:t.oneOf})}function O(e,r,...t){if("error"===(null==r?void 0:r.type))return r;if("error"===(null==e?void 0:e.type))return e;if(o(e)!==o(r))return e;const n=x(e,r);for(let e=0;et.indexOf(e)===r)).forEach((n=>t[n]=x(e[n],r[n],n))),t}if(Array.isArray(e)&&Array.isArray(r)){if("required"===t)return e.concat(r).filter(((e,r,t)=>t.indexOf(e)===r));if("items"===t){const t=[];for(let o=0;ot.indexOf(e)===r))}return Array.isArray(r)?r:Array.isArray(e)?e:void 0!==r?r:e}function E(e,...r){const t={};return Object.keys(e).forEach((n=>{r.includes(n)||(t[n]=e[n])})),t}function P(e,r){if(null!=e.schema.if){if(!1===e.schema.if)return e.next(e.schema.else);if(e.schema.if&&(e.schema.then||e.schema.else)){const t=e.draft.resolveRef(e.next(e.schema.if)),n=e.draft.validate(t,r);if(0===n.length&&e.schema.then){const r=e.next(e.schema.then);return e.draft.resolveRef(r)}if(0!==n.length&&e.schema.else){const r=e.next(e.schema.else);return e.draft.resolveRef(r)}}}}function _(e){return Object.assign({},e)}function I(e,r){const t=P(e,r);if(t)return t;const n=_(e.schema);return e.next(E(n,"if","then","else"))}function A(e,r){const{schema:t}=e;let n=_(t);for(let o=0;o{if(null==r)return;const t=e.createNode(r).resolveRef();n=O(n,t.schema)})),n}function j(e,...r){if(null==e)throw new Error("undefined schema");const t=this,n=O(t.schema,e,...r);return Object.assign(Object.assign({},t),{schema:n,path:[...t.path,t.schema]})}function w(){return this.draft.resolveRef(this)}function D(e,r){if(p(e))return e;if(null==e)throw new Error("undefined schema");if(!y(e)&&"boolean"!==o(e))throw new Error(`bad schema type ${o(e)}`);const t=this;return Object.assign(Object.assign({},t),{pointer:r?`${t.pointer}/${r}`:t.pointer,schema:e,path:[...t.path,t.schema]})}function R(e){return y(e)&&e.next&&e.path&&e.draft}function N(e,r,t="#"){return{draft:e,pointer:t,schema:r,path:[],next:D,merge:j,resolveRef:w}}function M(e){if(!R(e))throw new Error("schema node expected");if(null==e.schema||null==e.schema.$ref)return e;if(e.schema.getRoot){const r=e.schema.getRoot().getRef(e.schema);return e.next(r)}const r=e.draft.rootSchema.getRef(e.schema);return e.next(r)}function L(e){if(!R(e))throw new Error("expected node");if(null==e.schema)return e;if(e.schema.$recursiveRef)return L(function(e){const r=e.path;let t=0;for(let e=r.length-1;e>=0;e--)if(r[e].$id&&/^https?:\/\//.test(r[e].$id)&&!0!==r[e].$recursiveAnchor){t=e;break}const n=r.find(((e,r)=>r>=t&&!0===e.$recursiveAnchor));if(n)return e.next(n);for(let t=r.length-1;t>=0;t--)if(r[t].$id)return e.next(r[t]);return e.next(e.draft.rootSchema)}(e));if(null==e.schema.$ref)return e;const r=e.draft.rootSchema.getRef(e.schema);return!1===r?e.next(r):e.merge(r,"$ref")}function k(e,r,t){const{schema:n,pointer:o,onError:a}=Object.assign({schema:e.rootSchema,pointer:"#"},t);let s=e.validate(e.createNode(n,o),r);if(a){s=m(s);const e=function(e){return function r(t){return Array.isArray(t)?((t=m(t)).forEach(r),t):(p(t)&&e(t),t)}}(a);for(let r=0;re.filter(h))).catch((e=>{throw console.log("Failed resolving promises",e.message),console.log(e.stack),e}))}function T(e,r){var t;const{schema:n}=e,o=null!==(t=n.dependencies)&&void 0!==t?t:n.dependentSchemas;if(!y(o)||!y(r))return;let a=!1,s={required:[]};return Object.keys(o).forEach((t=>{var i,l;if(null==r[t]&&!(null===(i=n.required)||void 0===i?void 0:i.includes(t))&&!(null===(l=s.required)||void 0===l?void 0:l.includes(t)))return;const c=o[t];if(Array.isArray(c))return a=!0,void s.required.push(...c);if(y(c)){a=!0;const r=e.next(c).resolveRef();s=O(s,r.schema)}else;})),a?(s.required=(i=s.required).filter(((e,r)=>i.indexOf(e)===r)),s):void 0;var i}function F(e,r){const{draft:t,schema:n}=e;if(!Array.isArray(n.anyOf)||0===n.anyOf.length)return;let o;return n.anyOf.forEach((n=>{const a=t.resolveRef(e.next(n));0===t.validate(a,r).length&&(o=o?O(o,a.schema):a.schema)})),o?e.next(o):void 0}function U(e,r){const{anyOf:t}=e.schema;if(!Array.isArray(t)||0===t.length)return e;const n=F(e,r);if(n){const{pointer:n,schema:o}=e;return e.draft.errors.anyOfError({pointer:n,schema:o,value:r,anyOf:JSON.stringify(t)})}return e.merge(n.schema,"anyOf")}const C=["allOf","anyOf","oneOf","dependencies","if","then","else"],V=["allOf","anyOf","oneOf","dependencies","if"];function z(e){const r=Object.keys(e);return-1!==V.findIndex((e=>r.includes(e)))}function q(e,r){let t,n;const o=e.draft.resolveRef(e),{draft:a}=o,s=R(o)?o.schema:o;if(s.oneOf){const e=g(o,r);p(e)?n=e:e&&(t=O(null!=t?t:{},e.schema))}if(Array.isArray(s.allOf)){const e=s.allOf.map((e=>{if(z(e)){const t=q(o.next(e),r);if(null==t||p(t))return t;return E(O(e,t.schema),...C)}return e}));if(e.length>0){t=O(null!=t?t:{},S(a,{allOf:e}))}}const i=F(o,r);i&&i.schema&&(t=O(null!=t?t:{},i.schema));const l=T(o,r);l&&(t=O(null!=t?t:{},l));const c=P(o,r);if(R(c)&&(t=O(null!=t?t:{},c.schema)),null==t)return n;if(p(t))return t;const u=q(o.next(t),r);R(u)&&(t=O(t,u.schema));const m=E(t,...C);return o.next(m)}const H=["allOf","anyOf","oneOf","dependencies","if","then","else"];function G(e,r){const t=q(e,r);return R(t)?e.merge(t.schema,...H):t||e}var J=Function.prototype.toString,K=Object.create,B=Object.prototype.toString,Z=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,r){this._keys.push(e),this._values.push(r)},e}();var W="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new Z};function Q(e){if(!e)return K(null);var r=e.constructor;if(r===Object)return e===Object.prototype?{}:K(e);if(r&&~J.call(r).indexOf("[native code]"))try{return new r}catch(e){}return K(e)}var X="g"===/test/g.flags?function(e){return e.flags}:function(e){var r="";return e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.unicode&&(r+="u"),e.sticky&&(r+="y"),r};function Y(e){var r=B.call(e);return r.substring(8,r.length-1)}var ee="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||Y(e)}:Y,re=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ne=Object.getOwnPropertyNames,oe=Object.getOwnPropertySymbols,ae=Object.prototype,se=ae.hasOwnProperty,ie=ae.propertyIsEnumerable,le="function"==typeof oe;var ce=le?function(e){return ne(e).concat(oe(e))}:ne;function ue(e,r,t){for(var n=ce(e),o=0,a=n.length,s=void 0,i=void 0;o{Array.isArray(o[r])||("$defs"===r?_e("$defs",o[r],t,`${n}/${e}/$defs`):Ae(o[r],t,`${n}/${e}/${r}`))}))}function Ie(e,r,t,n){const o=r[e];Array.isArray(o)&&o.forEach(((r,o)=>Ae(r,t,`${n}/${e}/${o}`)))}function Ae(e,r,t=""){void 0!==e&&!0!==r(e,t)&&y(e)&&(_e("properties",e,r,t),_e("patternProperties",e,r,t),Ae(e.not,r,`${t}/not`),Ae(e.additionalProperties,r,`${t}/additionalProperties`),_e("dependencies",e,r,t),y(e.items)&&Ae(e.items,r,`${t}/items`),Ie("items",e,r,t),Ae(e.additionalItems,r,`${t}/additionalItems`),Ie("allOf",e,r,t),Ie("anyOf",e,r,t),Ie("oneOf",e,r,t),Ae(e.if,r,`${t}/if`),Ae(e.then,r,`${t}/then`),Ae(e.else,r,`${t}/else`),_e("definitions",e,r,t),_e("$defs",e,r,t))}const Se=/(#)+$/,je=/#$/,we=/^[#/]+/,De=/^[^:]+:\/\/[^/]+\//,Re=/\/[^/]*$/,Ne=/#.*$/,Me=/^urn:uuid:[0-9A-Fa-f]/;function Le(e,r){return null==e&&null==r?"#":null==r?e.replace(je,""):Me.test(r)?r:null==e||""===e||"#"===e?r.replace(je,""):"#"===r[0]?`${e.replace(Ne,"")}${r.replace(Se,"")}`:De.test(r)?r.replace(je,""):De.test(e)&&r.startsWith("/")?`${e.replace(/(^[^:]+:\/\/[^/]+)(.*)/,"$1")}/${r.replace(we,"")}`:`${e.replace(Re,"")}/${r.replace(we,"")}`}var ke=t(546),Te=t.n(ke);const Fe=/(#)+$/g,Ue=["",null,"#"];const Ce=/(#)+$/g,Ve=e=>"object"===o(e);function ze(e,r,t){var n,o,a,s,i;let l,c;if(l=Ve(t)?t.__ref||t.$ref:t,null==l)return r;const u=l.replace(Ce,"");if(null!=e.remotes[u])return c=e.remotes[u],c&&c.$ref?ze(e,c,c):c;const m=null===(n=e.anchors)||void 0===n?void 0:n[l];if(m)return(0,ke.get)(r,m);if(null!=e.ids[l])return c=(0,ke.get)(r,e.ids[l]),c&&c.$ref?ze(e,r,c):c;const f=l,p=function(e){if(Ue.includes(e))return[];if(-1===(e=e.replace(Fe,"")).indexOf("#"))return[e.replace(/(#|\/)+$/g,"")];if(0===e.indexOf("#"))return[e.replace(Fe,"")];const r=e.split("#");return r[0]=r[0].replace(/(#|\/)+$/g,""),r[1]=`#${r[1].replace(Fe,"")}`,r}(l);if(0===p.length)return r;if(1===p.length){if(l=p[0],e.remotes[l]&&(c=e.remotes[l],c&&c.$ref))return ze(e,r,c);if(e.ids[l])return c=(0,ke.get)(r,e.ids[l]),c&&c.$ref?ze(e,r,c):c;const t=null===(o=r.getContext)||void 0===o?void 0:o.call(r).ids[l];if(t)return ze(e,r,t)}if(2===p.length){const t=p[0];l=p[1];const n=null!==(a=e.remotes[t])&&void 0!==a?a:e.remotes[`${t}/`];if(n)return n.getContext&&null!=n.getContext().anchors[f]?n.getRef(f):n.getRef?n.getRef(l):ze(e,n,l);const o=null!==(s=e.ids[t])&&void 0!==s?s:e.ids[`${t}/`];if(o)return ze(e,(0,ke.get)(r,o),l)}return c=(0,ke.get)(r,null!==(i=e.ids[l])&&void 0!==i?i:l),c&&c.$ref?ze(e,r,c):c}const qe="__compiled",He="__ref",Ge=/(#|\/)+$/g;function Je(e){if(void 0===e)return;const r={type:o(e)};return"object"===r.type&&y(e)&&(r.properties={},Object.keys(e).forEach((t=>r.properties[t]=Je(e[t])))),"array"===r.type&&Array.isArray(e)&&(1===e.length?r.items=Je(e[0]):r.items=e.map(Je)),r}const Ke={additionalItemsError:u("AdditionalItemsError"),additionalPropertiesError:u("AdditionalPropertiesError"),anyOfError:u("AnyOfError"),allOfError:u("AllOfError"),constError:u("ConstError"),containsError:u("ContainsError"),containsMaxError:u("ContainsMaxError"),containsMinError:u("ContainsMinError"),containsArrayError:u("ContainsArrayError"),containsAnyError:u("ContainsAnyError"),enumError:u("EnumError"),forbiddenPropertyError:u("ForbiddenPropertyError"),formatURLError:u("FormatURLError"),formatURIError:u("FormatURIError"),formatURIReferenceError:u("FormatURIReferenceError"),formatURITemplateError:u("FormatURITemplateError"),formatDateError:u("FormatDateError"),formatDateTimeError:u("FormatDateTimeError"),formatDurationError:u("FormatDurationError"),formatEmailError:u("FormatEmailError"),formatHostnameError:u("FormatHostnameError"),formatIPV4Error:u("FormatIPV4Error"),formatIPV4LeadingZeroError:u("FormatIPV4LeadingZeroError"),formatIPV6Error:u("FormatIPV6Error"),formatIPV6LeadingZeroError:u("FormatIPV6LeadingZeroError"),formatJsonPointerError:u("FormatJsonPointerError"),formatRegExError:u("FormatRegExError"),formatTimeError:u("FormatTimeError"),invalidSchemaError:u("InvalidSchemaError"),invalidDataError:u("InvalidDataError"),invalidTypeError:u("InvalidTypeError"),invalidPropertyNameError:u("InvalidPropertyNameError"),maximumError:u("MaximumError"),maxItemsError:u("MaxItemsError"),maxLengthError:u("MaxLengthError"),maxPropertiesError:u("MaxPropertiesError"),minimumError:u("MinimumError"),minItemsError:u("MinItemsError"),minItemsOneError:u("MinItemsOneError"),minLengthError:u("MinLengthError"),minLengthOneError:u("MinLengthOneError"),minPropertiesError:u("MinPropertiesError"),missingDependencyError:u("MissingDependencyError"),missingOneOfPropertyError:u("MissingOneOfPropertyError"),multipleOfError:u("MultipleOfError"),multipleOneOfError:u("MultipleOneOfError"),noAdditionalPropertiesError:u("NoAdditionalPropertiesError"),notError:u("NotError"),oneOfError:u("OneOfError"),oneOfPropertyError:u("OneOfPropertyError"),patternError:u("PatternError"),patternPropertiesError:u("PatternPropertiesError"),requiredPropertyError:u("RequiredPropertyError"),schemaWarning:u("SchemaWarning"),typeError:u("TypeError"),undefinedValueError:u("UndefinedValueError"),unevaluatedPropertyError:u("UnevaluatedPropertyError"),unevaluatedItemsError:u("UnevaluatedItemsError"),uniqueItemsError:u("UniqueItemsError"),unknownPropertyError:u("UnknownPropertyError"),valueNotEmptyError:u("ValueNotEmptyError")};var Be=t(853),Ze=t.n(Be),We=t(125);const Qe=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),Xe=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Ye=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,er=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,rr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,tr=/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,nr=[0,31,28,31,30,31,30,31,31,30,31,30,31],or=/^(?:\/(?:[^~/]|~0|~1)*)*$/,ar=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,sr=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,ir=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,lr=/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,cr={date:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"!=typeof r||""===r)return;const a=r.match(rr);if(!a)return t.errors.formatDateTimeError({value:r,pointer:o,schema:n});const s=+a[1],i=+a[2],l=+a[3];return i>=1&&i<=12&&l>=1&&l<=(2==i&&(s%4==0&&(s%100!=0||s%400==0))?29:nr[i])?void 0:t.errors.formatDateError({value:r,pointer:o,schema:n})},"date-time":(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&""!==r)return""===r||Qe.test(r)?"Invalid Date"===new Date(r).toString()?t.errors.formatDateTimeError({value:r,pointer:o,schema:n}):void 0:t.errors.formatDateTimeError({value:r,pointer:o,schema:n})},duration:(e,r)=>{if("string"!==o(r))return;return!lr.test(r)||/(\d+M)(\d+W)|(\d+Y)(\d+W)/.test(r)?e.draft.errors.formatDurationError({value:r,pointer:e.pointer,schema:e.schema}):void 0},email:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"!=typeof r||""===r)return;if('"'===r[0])return t.errors.formatEmailError({value:r,pointer:o,schema:n});const[a,s,...i]=r.split("@");return!a||!s||0!==i.length||a.length>64||s.length>253||"."===a[0]||a.endsWith(".")||a.includes("..")?t.errors.formatEmailError({value:r,pointer:o,schema:n}):/^[a-z0-9.-]+$/i.test(s)&&/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(a)&&s.split(".").every((e=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(e)))?void 0:t.errors.formatEmailError({value:r,pointer:o,schema:n})},"idn-email":(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&""!==r)try{return void(0,We.parse)(r)}catch(e){return t.errors.formatEmailError({value:r,pointer:o,schema:n})}},hostname:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&""!==r&&!er.test(r))return t.errors.formatHostnameError({value:r,pointer:o,schema:n})},ipv4:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&""!==r){if(r&&"0"===r[0])return t.errors.formatIPV4LeadingZeroError({value:r,pointer:o,schema:n});if(!(r.length<=15&&Xe.test(r)))return t.errors.formatIPV4Error({value:r,pointer:o,schema:n})}},ipv6:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&""!==r){if(r&&"0"===r[0])return t.errors.formatIPV6LeadingZeroError({value:r,pointer:o,schema:n});if(!(r.length<=45&&Ye.test(r)))return t.errors.formatIPV6Error({value:r,pointer:o,schema:n})}},"json-pointer":(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&""!==r&&!or.test(r))return t.errors.formatJsonPointerError({value:r,pointer:o,schema:n})},"relative-json-pointer":(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&!ar.test(r))return t.errors.formatJsonPointerError({value:r,pointer:o,schema:n})},regex:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&!1===/\\Z$/.test(r)){try{return void new RegExp(r)}catch(e){}return t.errors.formatRegExError({value:r,pointer:o,schema:n})}if("object"!=typeof r&&"number"!=typeof r&&!Array.isArray(r))return t.errors.formatRegExError({value:r,pointer:o,schema:n})},time:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"!=typeof r||""===r)return;return r.match(tr)?void 0:t.errors.formatDateTimeError({value:r,pointer:o,schema:n})},uri:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&""!==r&&!Ze().isUri(r))return t.errors.formatURIError({value:r,pointer:o,schema:n})},"uri-reference":(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&""!==r&&!sr.test(r))return t.errors.formatURIReferenceError({value:r,pointer:o,schema:n})},"uri-template":(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if("string"==typeof r&&""!==r&&!ir.test(r))return t.errors.formatURITemplateError({value:r,pointer:o,schema:n})},url:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(""!==r&&!Ze().isWebUri(r))return t.errors.formatURLError({value:r,pointer:o,schema:n})}};function ur(e,r,t=e.rootSchema){var n;if(t.oneOf)return t.oneOf.map((r=>e.createNode(r).resolveRef().schema));if(null===(n=t.items)||void 0===n?void 0:n.oneOf)return t.items.oneOf.map((r=>e.createNode(r).resolveRef().schema));const o=e.step(e.createNode(t),r,{});return p(o)?o:[o.schema]}const mr={};function fr(e,r=mr){const{pointer:t="#",data:n,schema:o=e.rootSchema,withSchemaWarning:a=!1}=r,s=Te().split(t),i=pr(e.createNode(o).resolveRef(),s,n);if(a||!p(i)||"schema-warning"!==i.code)return i}function pr(e,r,t=mr){if(0===r.length)return e.resolveRef();const n=r.shift(),o=e.draft.step(e,n,t);return p(o)?o:pr(o,r,t=t[n])}var dr=t(744),hr=t.n(dr);const yr=(e,r)=>r,vr=(e,r)=>hr()(e,r,{arrayMerge:yr});const $r=f.templateDefaultOptions;let br;function gr(e,r){const{$ref:t}=e;if(null==t)return!0;return(null==br[r]||null==br[r][t]?0:br[r][t])0){if(gr(r.anyOf[0],`${n}/anyOf/0`)){const t=Or(e,r.anyOf[0],`${n}/anyOf/0`);s=vr(s,t),s.pointer=r.anyOf[0].$ref||s.pointer}delete s.anyOf}if(Array.isArray(r.allOf)){const o=r.allOf.map(((e,r)=>gr(e,`${n}/allOf/${r}`))).reduceRight(((e,r)=>e&&r),!0);if(o){const o=[];let i=Ee(t);for(let t=0;te&&"object"==typeof e;function Pr(e,r,t,n,a){var s;if(null==t)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(r)}`);if(null==n)throw new Error("Missing pointer");let i=xr(e,t,r,n,a);if(!Er(i))return;if(n=i.pointer,null==i?void 0:i.const)return i.const;if(Array.isArray(i.oneOf))if(function(e){switch(o(e)){case"string":case"array":return 0===(null==e?void 0:e.length);case"null":case"undefined":return!0;case"object":return 0===Object.keys(e).length;default:return!1}}(r)){const e=i.oneOf[0].type||i.type||i.const&&typeof i.const||o(r);i=Object.assign(Object.assign({},i.oneOf[0]),{type:e})}else{const t=g(e.createNode(i,n),r);if(p(t)){if(null!=r&&!0!==a.removeInvalidData)return r;i=i.oneOf[0],r=void 0}else{const e=t.schema;e.type=null!==(s=e.type)&&void 0!==s?s:i.type,i=e}}if(!Er(i)||null==i.type)return;if(r instanceof File)return r;const l=Array.isArray(i.type)?function(e,r,t){if(null==r){if(null!=t){const r=o(t);if(e.includes(r))return r}return e[0]}const n=o(r);if(e.includes(n))return n;return e[0]}(i.type,r,i.default):i.type,c=o(r);if(null==r||c===l||"number"===c&&"integer"===l||(r=function(e,r){if("string"===e)return JSON.stringify(r);if("string"!=typeof r)return null;try{if(typeof(r=JSON.parse(r))===e)return r}catch(e){}return null}(l,r)),null==_r[l]){if(a.removeInvalidData)return;return r}return _r[l](e,i,r,n,a)}const _r={null:(e,r,t)=>Ir(r,t,null),string:(e,r,t)=>Ir(r,t,""),number:(e,r,t)=>Ir(r,t,0),integer:(e,r,t)=>Ir(r,t,0),boolean:(e,r,t)=>Ir(r,t,!1),object:(e,r,t,n,a)=>{var s;const i=void 0===r.default?{}:r.default,l={},c=!1===a.extendDefaults&&void 0!==r.default?[]:null!==(s=r.required)&&void 0!==s?s:[];r.properties&&Object.keys(r.properties).forEach((o=>{const s=null==t||null==t[o]?i[o]:t[o],u=c.includes(o);(null!=s||u||a.addOptionalProps)&&(l[o]=Pr(e,s,r.properties[o],`${n}/properties/${o}`,a))}));let u=T(e.createNode(r,n),l);if(u){u=O(r,u),delete u.dependencies;const o=Pr(e,t,u,`${n}/dependencies`,a);Object.assign(l,o)}t&&(!0!==a.removeInvalidData||!1!==r.additionalProperties&&"object"!==o(r.additionalProperties)?Object.keys(t).forEach((e=>null==l[e]&&(l[e]=t[e]))):"object"===o(r.additionalProperties)&&Object.keys(t).forEach((n=>{null==l[n]&&e.isValid(t[n],r.additionalProperties)&&(l[n]=t[n])})));const m=P(e.createNode(r,n),l);if(R(m)){const r=Pr(e,l,Object.assign({type:"object"},m.schema),n,a);Object.assign(l,r)}return l},array:(e,r,t,n,a)=>{var s,i;if(null==r.items)return t||[];const l=void 0===r.default?[]:r.default,c=t||l,u=!1===a.extendDefaults&&void 0!==r.default?0:r.minItems||0;if(Array.isArray(r.items)){for(let t=0,o=Math.max(null!=u?u:0,null!==(i=null===(s=r.items)||void 0===s?void 0:s.length)&&void 0!==i?i:0);t0){const r=Math.max(u,c.length);for(let t=0;t(br={},Pr(e,r,t,"#",n?Object.assign(Object.assign({},$r),n):$r));function Sr(e,r,t=e.rootSchema,n="#"){const o=e.createNode(t,n);return 0===e.validate(o,r).length}function jr(e){const r=[];let t=0;const n=e.length;for(;t=55296&&o<=56319&&t!(void 0===e[r]||!Nr.call(e,r)),Lr={additionalProperties:(e,r)=>{const{draft:t,schema:n,pointer:a}=e;if(!0===n.additionalProperties||null==n.additionalProperties)return;if("object"===o(n.patternProperties)&&!1===n.additionalProperties)return;const s=[];let i=Object.keys(r).filter((e=>!1===f.propertyBlacklist.includes(e)));const l=Object.keys(n.properties||{});if("object"===o(n.patternProperties)){const e=Object.keys(n.patternProperties).map((e=>new RegExp(e)));i=i.filter((r=>{for(let t=0;t{const{draft:t,schema:n}=e,{allOf:o}=n;if(!Array.isArray(o)||0===o.length)return;const a=[];return n.allOf.forEach((n=>{a.push(...t.validate(e.next(n),r))})),a},anyOf:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(Array.isArray(n.anyOf)&&0!==n.anyOf.length){for(let o=0;o{const{draft:t,schema:n,pointer:a}=e,s=n.dependencies;if(!y(s))return;const i=[];return Object.keys(r).forEach((l=>{if(void 0===s[l])return;if(!0===s[l])return;if(!1===s[l])return void i.push(t.errors.missingDependencyError({pointer:a,schema:n,value:r}));let c;const u=o(s[l]),m=s[l];if(Array.isArray(m))c=m.filter((e=>void 0===r[e])).map((e=>t.errors.missingDependencyError({missingProperty:e,pointer:a,schema:n,value:r})));else{if("object"!==u)throw new Error(`Invalid dependency definition for ${a}/${l}. Must be string[] or schema`);c=t.validate(e.next(s[l]),r)}i.push(...c)})),i.length>0?i:void 0},enum:(e,r)=>{const{draft:t,schema:n,pointer:a}=e,s=o(r);if("object"===s||"array"===s){const e=JSON.stringify(r);for(let r=0;r{const{draft:t,schema:n}=e;if(t.validateFormat[n.format]){return t.validateFormat[n.format](e,r)}},items:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(!1===n.items){if(Array.isArray(r)&&0===r.length)return;return t.errors.invalidDataError({pointer:o,value:r,schema:n})}const a=[];for(let o=0;o{const{draft:t,schema:n,pointer:o}=e;if(!isNaN(n.maximum))return n.maximum&&n.maximum{const{draft:t,schema:n,pointer:o}=e;if(!isNaN(n.maxItems))return n.maxItems{const{draft:t,schema:n,pointer:o}=e;if(isNaN(n.maxLength))return;const a=jr(r).length;return n.maxLength{const{draft:t,schema:n,pointer:o}=e,a=Object.keys(r).length;if(!1===isNaN(n.maxProperties)&&n.maxProperties{const{draft:t,schema:n,pointer:o}=e;if(isNaN(n.minLength))return;const a=jr(r).length;return n.minLength>a?1===n.minLength?t.errors.minLengthOneError({minLength:n.minLength,length:a,pointer:o,schema:n,value:r}):t.errors.minLengthError({minLength:n.minLength,length:a,pointer:o,schema:n,value:r}):void 0},minimum:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(!isNaN(n.minimum))return n.minimum>r||!0===n.exclusiveMinimum&&n.minimum===r?t.errors.minimumError({minimum:n.minimum,length:r,pointer:o,schema:n,value:r}):void 0},minItems:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(!isNaN(n.minItems))return n.minItems>r.length?1===n.minItems?t.errors.minItemsOneError({minItems:n.minItems,length:r.length,pointer:o,schema:n,value:r}):t.errors.minItemsError({minItems:n.minItems,length:r.length,pointer:o,schema:n,value:r}):void 0},minProperties:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(isNaN(n.minProperties))return;const a=Object.keys(r).length;return n.minProperties>a?t.errors.minPropertiesError({minProperties:n.minProperties,length:a,pointer:o,schema:n,value:r}):void 0},multipleOf:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(isNaN(n.multipleOf)||"number"!=typeof r)return;const a=wr(r),s=wr(n.multipleOf);if(a>s)return t.errors.multipleOfError({multipleOf:n.multipleOf,value:r,pointer:o,schema:n});const i=Math.pow(10,s);return Math.round(r*i)%Math.round(n.multipleOf*i)/i!=0?t.errors.multipleOfError({multipleOf:n.multipleOf,value:r,pointer:o,schema:n}):void 0},not:(e,r)=>{const{draft:t,schema:n,pointer:o}=e,a=[];return 0===t.validate(e.next(n.not),r).length&&a.push(t.errors.notError({value:r,not:n.not,pointer:o,schema:n})),a},oneOf:(e,r)=>{if(Array.isArray(e.schema.oneOf)){const t=e.draft.resolveOneOf(e,r);if(p(t))return t}},pattern:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(!1===new RegExp(n.pattern,"u").test(r))return t.errors.patternError({pattern:n.pattern,description:n.patternExample||n.pattern,received:r,schema:n,value:r,pointer:o})},patternProperties:(e,r)=>{const{draft:t,schema:n,pointer:a}=e,s=n.properties||{},i=n.patternProperties;if("object"!==o(i))return;const l=[],c=Object.keys(r),u=Object.keys(i).map((e=>({regex:new RegExp(e),patternSchema:i[e]})));return c.forEach((o=>{let c=!1;for(let n=0,a=u.length;n0&&l.push(...a)}s[o]||!1===c&&!1===n.additionalProperties&&l.push(t.errors.patternPropertiesError({key:o,pointer:a,schema:n,value:r,patterns:Object.keys(i).join(",")}))})),l},properties:(e,r)=>{const{draft:t,schema:n}=e,o=[],a=Object.keys(n.properties||{});for(let n=0;n{const{draft:t,schema:n,pointer:o}=e,a=[],s=Object.keys(n.properties||{});for(let i=0;i{const{draft:t,schema:n,pointer:o}=e;if(!1!==Array.isArray(n.required))return n.required.map((e=>{if(!Mr(r,e))return t.errors.requiredPropertyError({key:e,pointer:o,schema:n,value:r})}))},requiredNotEmpty:(e,r)=>{const{schema:t}=e;if(!1!==Array.isArray(t.required))return t.required.map((t=>{const{draft:n,schema:o,pointer:a}=e;if(null==r[t]||""===r[t])return n.errors.valueNotEmptyError({property:t,pointer:`${a}/${t}`,schema:o,value:r})}))},uniqueItems:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(!1===(Array.isArray(r)&&n.uniqueItems))return;const a=[],s=[];return r.forEach(((e,i)=>{for(let l=i+1;l{const{draft:n,schema:a,pointer:s}=e,i=null==t?void 0:t[r],l=o(a.items);if("object"===l)return G(e.next(a.items,r),i);if("array"===l){if(!0===a.items[r])return e.next(Je(i),r);if(!1===a.items[r])return n.errors.invalidDataError({key:r,value:i,pointer:s,schema:a});if(a.items[r])return n.resolveRef(e.next(a.items[r],r));if(!1===a.additionalItems)return n.errors.additionalItemsError({key:r,value:i,pointer:s,schema:a});if(!0===a.additionalItems||void 0===a.additionalItems)return e.next(Je(i),r);if("object"===o(a.additionalItems))return e.next(a.additionalItems,r);throw new Error(`Invalid schema ${JSON.stringify(a,null,2)} for ${JSON.stringify(t,null,2)}`)}return!1!==a.additionalItems&&i?e.next(Je(i),r):new Error(`Invalid array schema for ${r} at ${s}`)},object:(e,r,t)=>{var n,a;const{draft:s,pointer:i}=e,l=G(e,t),c=null!==(n=l.schema)&&void 0!==n?n:l,u=null===(a=null==c?void 0:c.properties)||void 0===a?void 0:a[r];if(void 0!==u){if(!1===u)return s.errors.forbiddenPropertyError({property:r,value:t,pointer:i,schema:c});if(!0===u)return e.next(Je(null==t?void 0:t[r]),r);const n=s.resolveRef(e.next(u,r));if(p(n))return n;if(n&&Array.isArray(n.schema.oneOf)){const o=e.next(n.schema,r),a=s.resolveOneOf(o,t[r]);return p(a)?a:o.merge(a.schema,"oneOf")}if(n)return n}const{patternProperties:m}=c;if("object"===o(m)){let t;const n=Object.keys(m);for(let o=0,a=n.length;oe.draft.typeKeywords.array.filter((r=>e.schema&&null!=e.schema[r])).map((t=>e.draft.validateKeyword[t](e,r))),object:(e,r)=>e.draft.typeKeywords.object.filter((r=>e.schema&&null!=e.schema[r])).map((t=>e.draft.validateKeyword[t](e,r))),string:(e,r)=>e.draft.typeKeywords.string.filter((r=>e.schema&&null!=e.schema[r])).map((t=>e.draft.validateKeyword[t](e,r))),integer:(e,r)=>e.draft.typeKeywords.number.filter((r=>e.schema&&null!=e.schema[r])).map((t=>e.draft.validateKeyword[t](e,r))),number:(e,r)=>e.draft.typeKeywords.number.filter((r=>e.schema&&null!=e.schema[r])).map((t=>e.draft.validateKeyword[t](e,r))),boolean:(e,r)=>e.draft.typeKeywords.boolean.filter((r=>e.schema&&null!=e.schema[r])).map((t=>e.draft.validateKeyword[t](e,r))),null:(e,r)=>e.draft.typeKeywords.null.filter((r=>e.schema&&null!=e.schema[r])).map((t=>e.draft.validateKeyword[t](e,r)))};function Cr(e,r){if(!R(e))throw new Error("node expected");const{draft:t,pointer:n}=e,a=(e=e.resolveRef()).schema;if(null==a)throw new Error("missing schema");if("boolean"===o(a))return a?[]:[t.errors.invalidDataError({pointer:n,schema:a,value:r})];if(p(a))return[a];if(void 0!==a.const)return Rr()(a.const,r)?[]:[t.errors.constError({pointer:n,schema:a,value:r,expected:a.const})];const s=function(e,r){const t=o(e);return"number"===t&&("integer"===r||Array.isArray(r)&&r.includes("integer"))?Number.isInteger(e)||isNaN(e)?"integer":"number":t}(r,a.type),i=a.type||s;if(!(s===i||Array.isArray(i)&&i.includes(s)))return[t.errors.typeError({pointer:n,schema:a,value:r,received:s,expected:i})];if(null==t.validateType[s])return[t.errors.invalidTypeError({pointer:n,schema:a,value:r,receivedType:s})];return m(t.validateType[s](e,r)).filter(d)}function Vr(e,r,t){const n=e.resolveRef(),{draft:a,schema:s,pointer:i}=n;t(s,r,i);const l=o(r);"object"===l?Object.keys(r).forEach((e=>{const o=a.step(n,e,r);R(o)&&Vr(o,r[e],t)})):"array"===l&&r.forEach(((e,o)=>{const s=a.step(n,o,r);R(s)&&Vr(s,r[o],t)}))}const zr={typeKeywords:{array:["allOf","anyOf","enum","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["enum","not","allOf","anyOf","oneOf"],object:["additionalProperties","dependencies","enum","format","minProperties","maxProperties","patternProperties","properties","required","not","oneOf","allOf","anyOf"],string:["allOf","anyOf","enum","format","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","format","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},createNode:N,validateKeyword:kr,validateType:Ur,validateFormat:cr,errors:Ke,addRemoteSchema:function(e,r,t){t.id=t.id||r,e.remotes[r]=e.compileSchema(t)},compileSchema:function(e,r,t=r,n=!1){if(!r||void 0!==r[qe])return r;const o={ids:{},remotes:e.remotes},a=JSON.stringify(r),s=JSON.parse(a);if(Object.defineProperties(s,{[qe]:{enumerable:!1,value:!0},getRef:{enumerable:!1,value:ze.bind(null,o,s)}}),!1===n&&!1===a.includes("$ref"))return s;r!==t&&Object.defineProperty(s,"definitions",{enumerable:!1,value:Object.assign({},t.definitions,t.$defs,r.definitions,r.$defs)});const i={},l=()=>s;return Ae(s,((e,r)=>{var t;if(e.id){if(e.id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(r)){const n=r.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),o=(0,ke.get)(s,n);e.id=null!==(t=o.id)&&void 0!==t?t:e.id}o.ids[e.id.replace(Ge,"")]=r}const n=(r=`#${r}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),a=r.replace(/\/[^/]+\/[^/]+$/,""),c=Le(i[n]||i[a],e.id);i[r]=c,null==o.ids[c]&&(o.ids[c]=r),e.$ref&&!e[He]&&(Object.defineProperty(e,He,{enumerable:!1,value:Le(c,e.$ref)}),Object.defineProperty(e,"getRoot",{enumerable:!1,value:l}))})),s},createSchemaOf:Je,each:Vr,eachSchema:Ae,getChildSchemaSelection:ur,getSchema:fr,getTemplate:Ar,isValid:Sr,resolveAllOf:A,resolveAnyOf:U,resolveOneOf:$,resolveRef:M,step:Fr,validate:Cr,templateDefaultOptions:f.templateDefaultOptions};class qr extends Pe{constructor(e,r={}){super(vr(zr,r),e)}}function Hr(e,r,t){t.$id=t.$id||r,e.remotes[r]=e.compileSchema(t)}const Gr="__compiled",Jr="__ref",Kr=/(#|\/)+$/g;function Br(e,r,t=r,n=!1){if(!0===r||!1===r||void 0===r)return r;if(void 0!==r[Gr])return r;const o={ids:{},anchors:{},remotes:e.remotes},a=JSON.stringify(r),s=JSON.parse(a);if(Object.defineProperties(s,{[Gr]:{enumerable:!1,value:!0},getContext:{enumerable:!1,value:()=>o},getRef:{enumerable:!1,value:ze.bind(null,o,s)}}),!1===n&&!1===a.includes("$ref"))return s;s!==t&&Object.defineProperty(s,"$defs",{enumerable:!0,value:Object.assign({},t.definitions,t.$defs,s.definitions,s.$defs)});const i={},l=()=>s;return Ae(s,((e,r)=>{var t;if(e.$id){if(e.$id.startsWith("http")&&/(allOf|anyOf|oneOf|if)\/\d+$/.test(r)){const n=r.replace(/\/(allOf|anyOf|oneOf|if)\/\d+$/,""),o=(0,ke.get)(s,n);e.$id=null!==(t=o.$id)&&void 0!==t?t:e.$id}o.ids[e.$id.replace(Kr,"")]=r}const n=(r=`#${r}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),a=r.replace(/\/[^/]+\/[^/]+$/,""),c=Le(i[n]||i[a],e.$id);i[r]=c,null==o.ids[c]&&(o.ids[c]=r),e.$anchor&&(o.anchors[`${c}#${e.$anchor}`]=r),e.$ref&&!e[Jr]&&(Object.defineProperty(e,Jr,{enumerable:!1,value:Le(c,e.$ref)}),Object.defineProperty(e,"getRoot",{enumerable:!1,value:l}))})),s}const Zr=Object.assign(Object.assign({},kr),{contains:(e,r)=>{var t,n;const{draft:a,schema:s,pointer:i}=e;if(!1===s.contains)return a.errors.containsArrayError({pointer:i,value:r,schema:s});if(!0===s.contains)return Array.isArray(r)&&0===r.length?a.errors.containsAnyError({pointer:i,value:r,schema:s}):void 0;if("object"!==o(s.contains))return;let l=0;for(let t=0;t=l&&u<=l?void 0:cl?a.errors.containsMinError({pointer:i,schema:s,delta:u-l,value:r}):a.errors.containsError({pointer:i,schema:s,value:r})},exclusiveMaximum:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(!isNaN(n.exclusiveMaximum))return n.exclusiveMaximum<=r?t.errors.maximumError({maximum:n.exclusiveMaximum,length:r,pointer:o,schema:n,value:r}):void 0},exclusiveMinimum:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(!isNaN(n.exclusiveMinimum))return n.exclusiveMinimum>=r?t.errors.minimumError({minimum:n.exclusiveMinimum,length:r,pointer:o,schema:n,value:r}):void 0},if:(e,r)=>{const t=P(e,r);if(t)return e.draft.validate(t,r)},maximum:(e,r)=>{const{draft:t,schema:n,pointer:o}=e;if(!isNaN(n.maximum))return n.maximum&&n.maximum{const{draft:t,schema:n,pointer:o}=e;if(!isNaN(n.minimum))return n.minimum>r?t.errors.minimumError({minimum:n.minimum,length:r,pointer:o,schema:n,value:r}):void 0},patternProperties:(e,r)=>{const{draft:t,schema:n,pointer:a}=e,s=n.properties||{},i=n.patternProperties;if("object"!==o(i))return;const l=[],c=Object.keys(r),u=Object.keys(i).map((e=>({regex:new RegExp(e),patternSchema:i[e]})));return c.forEach((o=>{let c=!1;for(let s=0,m=u.length;s0&&l.push(...m)}s[o]||!1===c&&!1===n.additionalProperties&&l.push(t.errors.patternPropertiesError({key:o,pointer:a,patterns:Object.keys(i).join(","),schema:n,value:r}))})),l},propertyNames:(e,r)=>{const{draft:t,schema:n,pointer:a}=e;if(!1===n.propertyNames){if(0===Object.keys(r).length)return;return t.errors.invalidPropertyNameError({property:Object.keys(r),pointer:a,value:r,schema:n})}if(!0===n.propertyNames)return;if("object"!==o(n.propertyNames))return;const s=[],i=Object.keys(r),l=Object.assign(Object.assign({},n.propertyNames),{type:"string"});return i.forEach((o=>{const i=e.next(l,o),c=t.validate(i,o);c.length>0&&s.push(t.errors.invalidPropertyNameError({property:o,pointer:a,validationError:c[0],value:r[o],schema:n}))})),s}}),Wr=Zr,Qr={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["enum","exclusiveMaximum","exclusiveMinimum","format","maximum","minimum","multipleOf","not","oneOf","allOf","anyOf","if"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Wr,validateType:Ur,validateFormat:cr,errors:Ke,createNode:N,addRemoteSchema:Hr,compileSchema:Br,createSchemaOf:Je,each:Vr,eachSchema:Ae,getChildSchemaSelection:ur,getSchema:fr,getTemplate:Ar,isValid:Sr,resolveAllOf:A,resolveAnyOf:U,resolveOneOf:$,resolveRef:M,step:Fr,validate:Cr,templateDefaultOptions:f.templateDefaultOptions};class Xr extends Pe{constructor(e,r={}){super(vr(Qr,r),e)}}const Yr={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Wr,validateType:Ur,validateFormat:cr,errors:Ke,createNode:N,addRemoteSchema:Hr,compileSchema:Br,createSchemaOf:Je,each:Vr,eachSchema:Ae,getChildSchemaSelection:ur,getSchema:fr,getTemplate:Ar,isValid:Sr,resolveAllOf:A,resolveAnyOf:U,resolveOneOf:$,resolveRef:M,step:Fr,validate:Cr,templateDefaultOptions:f.templateDefaultOptions};class et extends Pe{constructor(e,r={}){super(vr(Yr,r),e)}}const rt=e=>y(e)?Object.keys(e).map((e=>new RegExp(e))):[];const tt=Object.assign(Object.assign({},Wr),{dependencies:void 0,dependentSchemas:(e,r)=>{const{draft:t,schema:n,pointer:o}=e,a=n.dependentSchemas;if(!y(a))return;const s=[];return Object.keys(r).forEach((i=>{const l=a[i];!0!==l&&(!1!==l?y(l)&&t.validate(e.next(l),r).map((e=>s.push(e))):s.push(t.errors.missingDependencyError({pointer:o,schema:n,value:r})))})),s},dependentRequired:(e,r)=>{const{draft:t,schema:n,pointer:o}=e,a=n.dependentRequired;if(!y(a))return;const s=[];return Object.keys(r).forEach((e=>{const i=a[e];if(!0!==i)if(!1!==i){if(Array.isArray(i))for(let e=0,a=i.length;e{var t;const{draft:n,schema:o,pointer:a}=e;if(!y(r)||null==o.unevaluatedProperties)return;let s=Object.keys(r);if(0===s.length)return;const i=G(e,r),l=null!==(t=i.schema)&&void 0!==t?t:i;if(!0===l.unevaluatedProperties)return;const c=rt(l.patternProperties);if(s=s.filter((t=>{var n;return!(null===(n=l.properties)||void 0===n?void 0:n[t])&&((!y(o.if)||!function(e,r,t){var n,o;const a=e.draft.resolveRef(e),{schema:s}=a;if(!0===s.additionalProperties)return!0;if(null===(n=s.properties)||void 0===n?void 0:n[r]){const e=null===(o=s.properties)||void 0===o?void 0:o[r];if(a.draft.isValid(t,e))return!0}if(rt(s.patternProperties).find((e=>e.test(r))))return!0;if(y(s.additionalProperties)){const e=s.additionalProperties;return a.draft.validate(a.next(e),t)}return!1}(e.next(Object.assign({type:"object"},o.if)),t,r[t]))&&(!c.find((e=>e.test(t)))&&!l.additionalProperties))})),0===s.length)return;const u=[];return!1===l.unevaluatedProperties?(s.forEach((e=>{u.push(n.errors.unevaluatedPropertyError({pointer:`${a}/${e}`,value:JSON.stringify(r[e]),schema:o}))})),u):(s.forEach((t=>{if(y(l.unevaluatedProperties)){const o=n.validate(e.next(l.unevaluatedProperties,t),r[t]);u.push(...o)}})),u)},unevaluatedItems:(e,r)=>{var t;const{draft:n,schema:o,pointer:a}=e;if(!Array.isArray(r)||0===r.length||null==o.unevaluatedItems||!0===o.unevaluatedItems)return;const s=G(n.resolveRef(e),r),i=null!==(t=s.schema)&&void 0!==t?t:s;if(!0===i.unevaluatedItems||!0===i.additionalItems)return;if(y(o.if)){const e=Object.assign({type:"array"},o.if);if(n.isValid(r,e)&&Array.isArray(e.items)&&e.items.length===r.length)return}if(y(i.items)){const t=Object.assign(Object.assign({},i),{unevaluatedItems:void 0});return n.validate(e.next(t),r).map((e=>n.errors.unevaluatedItemsError(Object.assign({},e.data))))}if(Array.isArray(i.items)){const t=[];for(let o=i.items.length;o0&&t.push({index:o,value:r[o]}):t.push({index:o,value:r[o]});return t.map((e=>n.errors.unevaluatedItemsError({pointer:`${a}/${e.index}`,value:JSON.stringify(e.value),schema:i.unevaluatedItems})))}if(y(i.unevaluatedItems))return r.map(((e,r)=>{if(!n.isValid(e,i.unevaluatedItems))return n.errors.unevaluatedItemsError({pointer:`${a}/${r}`,value:JSON.stringify(e),schema:i.unevaluatedItems})}));const l=[];return r.forEach(((e,r)=>{l.push(n.errors.unevaluatedItemsError({pointer:`${a}/${r}`,value:JSON.stringify(e),schema:o}))})),l}}),nt={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","unevaluatedItems","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","dependentSchemas","dependentRequired","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required","unevaluatedProperties"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:tt,validateType:Ur,validateFormat:cr,errors:Ke,createNode:N,addRemoteSchema:Hr,compileSchema:Br,createSchemaOf:Je,each:Vr,eachSchema:Ae,getChildSchemaSelection:ur,getSchema:fr,getTemplate:Ar,isValid:Sr,resolveAllOf:A,resolveAnyOf:U,resolveOneOf:$,resolveRef:L,step:Fr,validate:Cr,templateDefaultOptions:f.templateDefaultOptions};class ot extends Pe{constructor(e,r={}){super(vr(nt,r),e)}}const at=Object.assign(Object.assign({},Yr),{resolveOneOf:g,resolveRef:L});class st extends Pe{constructor(e,r={}){super(vr(at,r),e)}}const it={strings:e}})(),n})())); \ No newline at end of file +!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("jlib",[],r):"object"==typeof exports?exports.jlib=r():e.jlib=r()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={546:function(e){"undefined"!=typeof self&&self,e.exports=(()=>{"use strict";var e={d:(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};function t(e){return"#"===e||""===e||Array.isArray(e)&&0===e.length||!1}e.r(r),e.d(r,{default:()=>P,get:()=>c,isRoot:()=>t,join:()=>x,remove:()=>$,removeUndefinedItems:()=>v,set:()=>d,split:()=>l,splitLast:()=>E});const n=/~1/g,o=/~0/g,a=/(^#?\/?)/g;function s(e){return e.replace(n,"/").replace(o,"~")}function i(e){return s(decodeURIComponent(e))}function l(e){if(null==e||"string"!=typeof e||t(e))return Array.isArray(e)?e:[];const r=e.indexOf("#")>=0?i:s,n=(e=e.replace(a,"")).split("/");for(let e=0,t=n.length;e0&&"prototype"==r[0]}function d(e,r,t){if(null==r)return e;const n=l(r);if(0===n.length)return e;null==e&&(e=f.test(n[0])?[]:{});let o,a,s=e;for(;n.length>1;)o=n.shift(),a=f.test(n[0]),p(o,n)||(s=y(s,o,a));return o=n.pop(),h(s,o,t),e}function h(e,r,t){let n;const o=r.match(m);"[]"===r&&Array.isArray(e)?e.push(t):o?(n=o.pop(),e[n]=t):e[r]=t}function y(e,r,t){if(null!=e[r])return e[r];const n=t?[]:{};return h(e,r,n),n}function v(e){let r=0,t=0;for(;r+t{"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===t}(e)}(e)};var t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,r){return!1!==r.clone&&r.isMergeableObject(e)?l((t=e,Array.isArray(t)?[]:{}),e,r):e;var t}function o(e,r,t){return e.concat(r).map((function(e){return n(e,t)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return Object.propertyIsEnumerable.call(e,r)})):[]}(e))}function s(e,r){try{return r in e}catch(e){return!1}}function i(e,r,t){var o={};return t.isMergeableObject(e)&&a(e).forEach((function(r){o[r]=n(e[r],t)})),a(r).forEach((function(a){(function(e,r){return s(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(s(e,a)&&t.isMergeableObject(r[a])?o[a]=function(e,r){if(!r.customMerge)return l;var t=r.customMerge(e);return"function"==typeof t?t:l}(a,t)(e[a],r[a],t):o[a]=n(r[a],t))})),o}function l(e,t,a){(a=a||{}).arrayMerge=a.arrayMerge||o,a.isMergeableObject=a.isMergeableObject||r,a.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(t);return s===Array.isArray(e)?s?a.arrayMerge(e,t,a):i(e,t,a):n(t,a)}l.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,t){return l(e,t,r)}),{})};var c=l;e.exports=c},17:e=>{"use strict";e.exports=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==typeof r&&"object"==typeof t){if(r.constructor!==t.constructor)return!1;var n,o,a;if(Array.isArray(r)){if((n=r.length)!=t.length)return!1;for(o=n;0!=o--;)if(!e(r[o],t[o]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if((n=(a=Object.keys(r)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,a[o]))return!1;for(o=n;0!=o--;){var s=a[o];if(!e(r[s],t[s]))return!1}return!0}return r!=r&&t!=t}},515:function(e){var r,t;r=this,t=function(){function e(r,t,n){return this.id=++e.highestId,this.name=r,this.symbols=t,this.postprocess=n,this}function r(e,r,t,n){this.rule=e,this.dot=r,this.reference=t,this.data=[],this.wantedBy=n,this.isComplete=this.dot===e.symbols.length}function t(e,r){this.grammar=e,this.index=r,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(e,r){this.rules=e,this.start=r||this.rules[0].name;var t=this.byName={};this.rules.forEach((function(e){t.hasOwnProperty(e.name)||(t[e.name]=[]),t[e.name].push(e)}))}function o(){this.reset("")}function a(e,r,a){if(e instanceof n){var s=e;a=r}else s=n.fromCompiled(e,r);for(var i in this.grammar=s,this.options={keepHistory:!1,lexer:s.lexer||new o},a||{})this.options[i]=a[i];this.lexer=this.options.lexer,this.lexerState=void 0;var l=new t(s,0);this.table=[l],l.wants[s.start]=[],l.predict(s.start),l.process(),this.current=0}function s(e){var r=typeof e;if("string"===r)return e;if("object"===r){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return e.toString();if(e.type)return"%"+e.type;if(e.test)return"<"+String(e.test)+">";throw new Error("Unknown symbol type: "+e)}}return e.highestId=0,e.prototype.toString=function(e){var r=void 0===e?this.symbols.map(s).join(" "):this.symbols.slice(0,e).map(s).join(" ")+" ● "+this.symbols.slice(e).map(s).join(" ");return this.name+" → "+r},r.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},r.prototype.nextState=function(e){var t=new r(this.rule,this.dot+1,this.reference,this.wantedBy);return t.left=this,t.right=e,t.isComplete&&(t.data=t.build(),t.right=void 0),t},r.prototype.build=function(){var e=[],r=this;do{e.push(r.right.data),r=r.left}while(r.left);return e.reverse(),e},r.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,a.fail))},t.prototype.process=function(e){for(var r=this.states,t=this.wants,n=this.completed,o=0;o0&&r.push(" ^ "+n+" more lines identical to this"),n=0,r.push(" "+s)),t=s}},a.prototype.getSymbolDisplay=function(e){return function(e){var r=typeof e;if("string"===r)return e;if("object"===r){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return"character matching "+e;if(e.type)return e.type+" token";if(e.test)return"token matching "+String(e.test);throw new Error("Unknown symbol type: "+e)}}(e)},a.prototype.buildFirstStateStack=function(e,r){if(-1!==r.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var t=e.wantedBy[0],n=[e].concat(r),o=this.buildFirstStateStack(t,n);return null===o?null:[e].concat(o)},a.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},a.prototype.restore=function(e){var r=e.index;this.current=r,this.table[r]=e,this.table.splice(r+1),this.lexerState=e.lexerState,this.results=this.finish()},a.prototype.rewind=function(e){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},a.prototype.finish=function(){var e=[],r=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(t){t.rule.name===r&&t.dot===t.rule.symbols.length&&0===t.reference&&t.data!==a.fail&&e.push(t)})),e.map((function(e){return e.data}))},{Parser:a,Grammar:n,Rule:e}},e.exports?e.exports=t():r.nearley=t()},84:(e,r)=>{"use strict";function t(e){return e[0]}Object.defineProperty(r,"__esModule",{value:!0});const n=e=>[].concat(...e.map((e=>Array.isArray(e)?n(e):e)));function o(e){return e?Array.isArray(e)?n(e).join(""):e:""}const a={Lexer:void 0,ParserRules:[{name:"Reverse_path",symbols:["Path"]},{name:"Reverse_path$string$1",symbols:[{literal:"<"},{literal:">"}],postprocess:e=>e.join("")},{name:"Reverse_path",symbols:["Reverse_path$string$1"]},{name:"Forward_path$subexpression$1$subexpression$1",symbols:[{literal:"<"},/[pP]/,/[oO]/,/[sS]/,/[tT]/,/[mM]/,/[aA]/,/[sS]/,/[tT]/,/[eE]/,/[rR]/,{literal:"@"}],postprocess:function(e){return e.join("")}},{name:"Forward_path$subexpression$1",symbols:["Forward_path$subexpression$1$subexpression$1","Domain",{literal:">"}]},{name:"Forward_path",symbols:["Forward_path$subexpression$1"]},{name:"Forward_path$subexpression$2",symbols:[{literal:"<"},/[pP]/,/[oO]/,/[sS]/,/[tT]/,/[mM]/,/[aA]/,/[sS]/,/[tT]/,/[eE]/,/[rR]/,{literal:">"}],postprocess:function(e){return e.join("")}},{name:"Forward_path",symbols:["Forward_path$subexpression$2"]},{name:"Forward_path",symbols:["Path"]},{name:"Path$ebnf$1$subexpression$1",symbols:["A_d_l",{literal:":"}]},{name:"Path$ebnf$1",symbols:["Path$ebnf$1$subexpression$1"],postprocess:t},{name:"Path$ebnf$1",symbols:[],postprocess:()=>null},{name:"Path",symbols:[{literal:"<"},"Path$ebnf$1","Mailbox",{literal:">"}]},{name:"A_d_l$ebnf$1",symbols:[]},{name:"A_d_l$ebnf$1$subexpression$1",symbols:[{literal:","},"At_domain"]},{name:"A_d_l$ebnf$1",symbols:["A_d_l$ebnf$1","A_d_l$ebnf$1$subexpression$1"],postprocess:e=>e[0].concat([e[1]])},{name:"A_d_l",symbols:["At_domain","A_d_l$ebnf$1"]},{name:"At_domain",symbols:[{literal:"@"},"Domain"]},{name:"Domain$ebnf$1",symbols:[]},{name:"Domain$ebnf$1$subexpression$1",symbols:[{literal:"."},"sub_domain"]},{name:"Domain$ebnf$1",symbols:["Domain$ebnf$1","Domain$ebnf$1$subexpression$1"],postprocess:e=>e[0].concat([e[1]])},{name:"Domain",symbols:["sub_domain","Domain$ebnf$1"]},{name:"sub_domain",symbols:["U_label"]},{name:"Let_dig",symbols:["ALPHA_DIGIT"],postprocess:t},{name:"Ldh_str$ebnf$1",symbols:[]},{name:"Ldh_str$ebnf$1",symbols:["Ldh_str$ebnf$1","ALPHA_DIG_DASH"],postprocess:e=>e[0].concat([e[1]])},{name:"Ldh_str",symbols:["Ldh_str$ebnf$1","Let_dig"]},{name:"U_Let_dig",symbols:["ALPHA_DIGIT_U"],postprocess:t},{name:"U_Ldh_str$ebnf$1",symbols:[]},{name:"U_Ldh_str$ebnf$1",symbols:["U_Ldh_str$ebnf$1","ALPHA_DIG_DASH_U"],postprocess:e=>e[0].concat([e[1]])},{name:"U_Ldh_str",symbols:["U_Ldh_str$ebnf$1","U_Let_dig"]},{name:"U_label$ebnf$1$subexpression$1",symbols:["U_Ldh_str"]},{name:"U_label$ebnf$1",symbols:["U_label$ebnf$1$subexpression$1"],postprocess:t},{name:"U_label$ebnf$1",symbols:[],postprocess:()=>null},{name:"U_label",symbols:["U_Let_dig","U_label$ebnf$1"]},{name:"address_literal$subexpression$1",symbols:["IPv4_address_literal"]},{name:"address_literal$subexpression$1",symbols:["IPv6_address_literal"]},{name:"address_literal$subexpression$1",symbols:["General_address_literal"]},{name:"address_literal",symbols:[{literal:"["},"address_literal$subexpression$1",{literal:"]"}]},{name:"non_local_part",symbols:["Domain"],postprocess:function(e){return{DomainName:o(e[0])}}},{name:"non_local_part",symbols:["address_literal"],postprocess:function(e){return{AddressLiteral:o(e[0])}}},{name:"Mailbox",symbols:["Local_part",{literal:"@"},"non_local_part"],postprocess:function(e){return{localPart:o(e[0]),domainPart:o(e[2])}}},{name:"Local_part",symbols:["Dot_string"],postprocess:function(e){return{DotString:o(e[0])}}},{name:"Local_part",symbols:["Quoted_string"],postprocess:function(e){return{QuotedString:o(e[0])}}},{name:"Dot_string$ebnf$1",symbols:[]},{name:"Dot_string$ebnf$1$subexpression$1",symbols:[{literal:"."},"Atom"]},{name:"Dot_string$ebnf$1",symbols:["Dot_string$ebnf$1","Dot_string$ebnf$1$subexpression$1"],postprocess:e=>e[0].concat([e[1]])},{name:"Dot_string",symbols:["Atom","Dot_string$ebnf$1"]},{name:"Atom$ebnf$1",symbols:[/[0-9A-Za-z!#$%&'*+\-/=?^_`{|}~\u0080-\uFFFF/]/]},{name:"Atom$ebnf$1",symbols:["Atom$ebnf$1",/[0-9A-Za-z!#$%&'*+\-/=?^_`{|}~\u0080-\uFFFF/]/],postprocess:e=>e[0].concat([e[1]])},{name:"Atom",symbols:["Atom$ebnf$1"]},{name:"Quoted_string$ebnf$1",symbols:[]},{name:"Quoted_string$ebnf$1",symbols:["Quoted_string$ebnf$1","QcontentSMTP"],postprocess:e=>e[0].concat([e[1]])},{name:"Quoted_string",symbols:["DQUOTE","Quoted_string$ebnf$1","DQUOTE"]},{name:"QcontentSMTP",symbols:["qtextSMTP"]},{name:"QcontentSMTP",symbols:["quoted_pairSMTP"]},{name:"quoted_pairSMTP",symbols:[{literal:"\\"},/[\x20-\x7e]/]},{name:"qtextSMTP",symbols:[/[\x20-\x21\x23-\x5b\x5d-\x7e\u0080-\uFFFF]/],postprocess:t},{name:"IPv4_address_literal$macrocall$2",symbols:[{literal:"."},"Snum"]},{name:"IPv4_address_literal$macrocall$1",symbols:["IPv4_address_literal$macrocall$2","IPv4_address_literal$macrocall$2","IPv4_address_literal$macrocall$2"]},{name:"IPv4_address_literal",symbols:["Snum","IPv4_address_literal$macrocall$1"]},{name:"IPv6_address_literal$subexpression$1",symbols:[/[iI]/,/[pP]/,/[vV]/,{literal:"6"},{literal:":"}],postprocess:function(e){return e.join("")}},{name:"IPv6_address_literal",symbols:["IPv6_address_literal$subexpression$1","IPv6_addr"]},{name:"General_address_literal$ebnf$1",symbols:["dcontent"]},{name:"General_address_literal$ebnf$1",symbols:["General_address_literal$ebnf$1","dcontent"],postprocess:e=>e[0].concat([e[1]])},{name:"General_address_literal",symbols:["Standardized_tag",{literal:":"},"General_address_literal$ebnf$1"]},{name:"Standardized_tag",symbols:["Ldh_str"]},{name:"dcontent",symbols:[/[\x21-\x5a\x5e-\x7e]/],postprocess:t},{name:"Snum",symbols:["DIGIT"]},{name:"Snum$subexpression$1",symbols:[/[1-9]/,"DIGIT"]},{name:"Snum",symbols:["Snum$subexpression$1"]},{name:"Snum$subexpression$2",symbols:[{literal:"1"},"DIGIT","DIGIT"]},{name:"Snum",symbols:["Snum$subexpression$2"]},{name:"Snum$subexpression$3",symbols:[{literal:"2"},/[0-4]/,"DIGIT"]},{name:"Snum",symbols:["Snum$subexpression$3"]},{name:"Snum$subexpression$4",symbols:[{literal:"2"},{literal:"5"},/[0-5]/]},{name:"Snum",symbols:["Snum$subexpression$4"]},{name:"IPv6_addr",symbols:["IPv6_full"]},{name:"IPv6_addr",symbols:["IPv6_comp"]},{name:"IPv6_addr",symbols:["IPv6v4_full"]},{name:"IPv6_addr",symbols:["IPv6v4_comp"]},{name:"IPv6_hex",symbols:["HEXDIG"]},{name:"IPv6_hex$subexpression$1",symbols:["HEXDIG","HEXDIG"]},{name:"IPv6_hex",symbols:["IPv6_hex$subexpression$1"]},{name:"IPv6_hex$subexpression$2",symbols:["HEXDIG","HEXDIG","HEXDIG"]},{name:"IPv6_hex",symbols:["IPv6_hex$subexpression$2"]},{name:"IPv6_hex$subexpression$3",symbols:["HEXDIG","HEXDIG","HEXDIG","HEXDIG"]},{name:"IPv6_hex",symbols:["IPv6_hex$subexpression$3"]},{name:"IPv6_full$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6_full$macrocall$1",symbols:["IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2"]},{name:"IPv6_full",symbols:["IPv6_hex","IPv6_full$macrocall$1"]},{name:"IPv6_comp$ebnf$1$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6_comp$ebnf$1$subexpression$1$macrocall$1",symbols:["IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2"]},{name:"IPv6_comp$ebnf$1$subexpression$1",symbols:["IPv6_hex","IPv6_comp$ebnf$1$subexpression$1$macrocall$1"]},{name:"IPv6_comp$ebnf$1",symbols:["IPv6_comp$ebnf$1$subexpression$1"],postprocess:t},{name:"IPv6_comp$ebnf$1",symbols:[],postprocess:()=>null},{name:"IPv6_comp$string$1",symbols:[{literal:":"},{literal:":"}],postprocess:e=>e.join("")},{name:"IPv6_comp$ebnf$2$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6_comp$ebnf$2$subexpression$1$macrocall$1",symbols:["IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2"]},{name:"IPv6_comp$ebnf$2$subexpression$1",symbols:["IPv6_hex","IPv6_comp$ebnf$2$subexpression$1$macrocall$1"]},{name:"IPv6_comp$ebnf$2",symbols:["IPv6_comp$ebnf$2$subexpression$1"],postprocess:t},{name:"IPv6_comp$ebnf$2",symbols:[],postprocess:()=>null},{name:"IPv6_comp",symbols:["IPv6_comp$ebnf$1","IPv6_comp$string$1","IPv6_comp$ebnf$2"]},{name:"IPv6v4_full$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6v4_full$macrocall$1",symbols:["IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2"]},{name:"IPv6v4_full",symbols:["IPv6_hex","IPv6v4_full$macrocall$1",{literal:":"},"IPv4_address_literal"]},{name:"IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6v4_comp$ebnf$1$subexpression$1$macrocall$1",symbols:["IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2"]},{name:"IPv6v4_comp$ebnf$1$subexpression$1",symbols:["IPv6_hex","IPv6v4_comp$ebnf$1$subexpression$1$macrocall$1"]},{name:"IPv6v4_comp$ebnf$1",symbols:["IPv6v4_comp$ebnf$1$subexpression$1"],postprocess:t},{name:"IPv6v4_comp$ebnf$1",symbols:[],postprocess:()=>null},{name:"IPv6v4_comp$string$1",symbols:[{literal:":"},{literal:":"}],postprocess:e=>e.join("")},{name:"IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6v4_comp$ebnf$2$subexpression$1$macrocall$1",symbols:["IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2"]},{name:"IPv6v4_comp$ebnf$2$subexpression$1",symbols:["IPv6_hex","IPv6v4_comp$ebnf$2$subexpression$1$macrocall$1",{literal:":"}]},{name:"IPv6v4_comp$ebnf$2",symbols:["IPv6v4_comp$ebnf$2$subexpression$1"],postprocess:t},{name:"IPv6v4_comp$ebnf$2",symbols:[],postprocess:()=>null},{name:"IPv6v4_comp",symbols:["IPv6v4_comp$ebnf$1","IPv6v4_comp$string$1","IPv6v4_comp$ebnf$2","IPv4_address_literal"]},{name:"DIGIT",symbols:[/[0-9]/],postprocess:t},{name:"ALPHA_DIGIT_U",symbols:[/[0-9A-Za-z\u0080-\uFFFF]/],postprocess:t},{name:"ALPHA_DIGIT",symbols:[/[0-9A-Za-z]/],postprocess:t},{name:"ALPHA_DIG_DASH",symbols:[/[-0-9A-Za-z]/],postprocess:t},{name:"ALPHA_DIG_DASH_U",symbols:[/[-0-9A-Za-z\u0080-\uFFFF]/],postprocess:t},{name:"HEXDIG",symbols:[/[0-9A-Fa-f]/],postprocess:t},{name:"DQUOTE",symbols:[{literal:'"'}],postprocess:t}],ParserStart:"Reverse_path"};r.default=a},125:function(e,r,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.canonicalize=r.canonicalize_quoted_string=r.normalize=r.normalize_dot_string=r.parse=void 0;const o=t(515),a=n(t(84));a.default.ParserStart="Mailbox";const s=o.Grammar.fromCompiled(a.default);function i(e){const r=new o.Parser(s);if(r.feed(e),1!==r.results.length)throw new Error("address parsing failed: ambiguous grammar");return r.results[0]}function l(e){return function(){const r=e.indexOf("+");return-1===r?e:e.substr(0,r)}().replace(/\./g,"").toLowerCase()}function c(e){return`"${e.substr(1).substr(0,e.length-2).replace(/(?:\\(.))/g,"$1").replace(/(?:(["\\]))/g,"\\$1")}"`}r.parse=i,r.normalize_dot_string=l,r.normalize=function(e){var r,t;const n=i(e),o=null!==(r=n.domainPart.AddressLiteral)&&void 0!==r?r:n.domainPart.DomainName.toLowerCase();return`${null!==(t=n.localPart.QuotedString)&&void 0!==t?t:l(n.localPart.DotString)}@${o}`},r.canonicalize_quoted_string=c,r.canonicalize=function(e){var r;const t=i(e),n=null!==(r=t.domainPart.AddressLiteral)&&void 0!==r?r:t.domainPart.DomainName.toLowerCase();return`${t.localPart.QuotedString?c(t.localPart.QuotedString):t.localPart.DotString}@${n}`}},853:(e,r,t)=>{!function(e){"use strict";e.exports.is_uri=t,e.exports.is_http_uri=n,e.exports.is_https_uri=o,e.exports.is_web_uri=a,e.exports.isUri=t,e.exports.isHttpUri=n,e.exports.isHttpsUri=o,e.exports.isWebUri=a;var r=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function t(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var t,n,o,a,s,i="",l="";if(i=(t=r(e))[1],n=t[2],o=t[3],a=t[4],s=t[5],i&&i.length&&o.length>=0){if(n&&n.length){if(0!==o.length&&!/^\//.test(o))return}else if(/^\/\//.test(o))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(i.toLowerCase()))return l+=i+":",n&&n.length&&(l+="//"+n),l+=o,a&&a.length&&(l+="?"+a),s&&s.length&&(l+="#"+s),l}}}function n(e,n){if(t(e)){var o,a,s,i,l="",c="",u="",f="";if(l=(o=r(e))[1],c=o[2],a=o[3],s=o[4],i=o[5],l){if(n){if("https"!=l.toLowerCase())return}else if("http"!=l.toLowerCase())return;if(c)return/:(\d+)$/.test(c)&&(u=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),f+=l+":",f+="//"+c,u&&(f+=u),f+=a,s&&s.length&&(f+="?"+s),i&&i.length&&(f+="#"+i),f}}}function o(e){return n(e,!0)}function a(e){return n(e)||o(e)}}(e=t.nmd(e))}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";t.r(n),t.d(n,{Draft:()=>Pe,Draft04:()=>qr,Draft06:()=>Xr,Draft07:()=>et,Draft2019:()=>ot,JsonEditor:()=>st,config:()=>it,createCustomError:()=>u,createError:()=>c,createNode:()=>N,draft04Config:()=>zr,draft06Config:()=>Qr,draft07Config:()=>Yr,draft2019Config:()=>nt,draftJsonEditorConfig:()=>at,getTypeOf:()=>o,isDynamicSchema:()=>z,isJsonError:()=>p,isSchemaNode:()=>R,mergeSchema:()=>O,reduceSchema:()=>G,render:()=>i,resolveAllOf:()=>A,resolveDynamicSchema:()=>q,resolveOneOf:()=>$,resolveOneOfFuzzy:()=>g,resolveRef:()=>L,resolveRefStrict:()=>M,settings:()=>m,validateAsync:()=>k});const e={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",ContainsMinError:"The array at `{{pointer}}` contains {{delta}} too few items matching `{{schema}}`",ContainsMaxError:"The array at `{{pointer}}` contains {{delta}} too many items matching `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",ForbiddenPropertyError:"Property name `{{property}}` at `{{pointer}}` is not allowed",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatDurationError:"Value `{{value}}` at `{{pointer}}` is not a valid duration",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJsonPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minItems}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",SchemaWarning:"Failed retrieving a schema from '{{pointer}}' to key '{{key}}'",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UnevaluatedPropertyError:"Invalid unevaluated property `{{pointer}}`",UnevaluatedItemsError:"Invalid unevaluated item `{{pointer}}`",UniqueItemsError:"Items in array must be unique. Value `{{value}}` in `{{pointer}}` is a duplicate of {{duplicatePointer}}.",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"},r=Object.prototype.toString;function o(e){const t=r.call(e).match(/\s([^\]]+)\]/).pop().toLowerCase();return"file"===t?"object":t}const a="object",s="array";function i(e,r={}){return e.replace(/\{\{\w+\}\}/g,(e=>{const t=e.replace(/[{}]/g,""),n=r[t],i=o(n);return i===a||i===s?JSON.stringify(n):n}))}function l(r,t,n=r){var o;return i(null!==(o=e[r])&&void 0!==o?o:n,t)}function c(e,r){return{type:"error",name:e,code:(t=e,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),message:l(e,r),data:r};var t}function u(e){return c.bind(null,e)}function f(e,r=[]){for(let t=0;t0))return c.next(l.schema);a.push(...u)}return n.errors.oneOfPropertyError({property:s,value:i,pointer:o,schema:t,errors:a})}const a=[],s=[];for(let o=0;o0?s.push(...l):a.push({index:o,schema:i.schema})}return 1===a.length?e.next(a[0].schema):a.length>1?n.errors.multipleOneOfError({value:r,pointer:o,schema:t,matches:a}):n.errors.oneOfError({value:JSON.stringify(r),pointer:o,schema:t,oneOf:t.oneOf,errors:s})}function b(e,r){const{draft:t,schema:n,pointer:o}=e;if(null==r||null==n.properties)return-1;let a=0;const s=Object.keys(n.properties);for(let e=0;e0))return c.next(l.schema);a.push(...u)}return o.errors.oneOfPropertyError({property:s,value:i,pointer:n,schema:t,errors:a})}const a=[];for(let s=0;s1?o.errors.multipleOneOfError({matches:a,pointer:n,schema:t,value:r}):o.errors.oneOfError({value:JSON.stringify(r),pointer:n,schema:t,oneOf:t.oneOf})}function O(e,r,...t){if("error"===(null==r?void 0:r.type))return r;if("error"===(null==e?void 0:e.type))return e;if(o(e)!==o(r))return e;const n=x(e,r);for(let e=0;et.indexOf(e)===r)).forEach((n=>t[n]=x(e[n],r[n],n))),t}if(Array.isArray(e)&&Array.isArray(r)){if("required"===t)return e.concat(r).filter(((e,r,t)=>t.indexOf(e)===r));if("items"===t){const t=[];for(let o=0;ot.indexOf(e)===r))}return Array.isArray(r)?r:Array.isArray(e)?e:void 0!==r?r:e}function E(e,...r){const t={};return Object.keys(e).forEach((n=>{r.includes(n)||(t[n]=e[n])})),t}function P(e,r){if(null!=e.schema.if){if(!1===e.schema.if)return e.next(e.schema.else);if(e.schema.if&&(e.schema.then||e.schema.else)){const t=e.draft.resolveRef(e.next(e.schema.if)),n=e.draft.validate(t,r);if(0===n.length&&e.schema.then){const r=e.next(e.schema.then);return e.draft.resolveRef(r)}if(0!==n.length&&e.schema.else){const r=e.next(e.schema.else);return e.draft.resolveRef(r)}}}}function _(e){return Object.assign({},e)}function I(e,r){const t=P(e,r);if(t)return t;const n=_(e.schema);return e.next(E(n,"if","then","else"))}function A(e,r){const{schema:t}=e;let n=_(t);for(let o=0;o{if(null==r)return;const t=e.createNode(r).resolveRef();n=O(n,t.schema)})),n}function j(e,...r){if(null==e)throw new Error("undefined schema");const t=this,n=O(t.schema,e,...r);return Object.assign(Object.assign({},t),{schema:n,path:[...t.path,t.schema]})}function w(){return this.draft.resolveRef(this)}function D(e,r){if(p(e))return e;if(null==e)throw new Error("undefined schema");if(!y(e)&&"boolean"!==o(e))throw new Error(`bad schema type ${o(e)}`);const t=this;return Object.assign(Object.assign({},t),{pointer:r?`${t.pointer}/${r}`:t.pointer,schema:e,path:[...t.path,t.schema]})}function R(e){return y(e)&&e.next&&e.path&&e.draft}function N(e,r,t="#"){return{draft:e,pointer:t,schema:r,path:[],next:D,merge:j,resolveRef:w}}function M(e){if(!R(e))throw new Error("schema node expected");if(null==e.schema||null==e.schema.$ref)return e;if(e.schema.getRoot){const r=e.schema.getRoot().getRef(e.schema);return e.next(r)}const r=e.draft.rootSchema.getRef(e.schema);return e.next(r)}function L(e){if(!R(e))throw new Error("expected node");if(null==e.schema)return e;if(e.schema.$recursiveRef)return L(function(e){const r=e.path;let t=0;for(let e=r.length-1;e>=0;e--)if(r[e].$id&&/^https?:\/\//.test(r[e].$id)&&!0!==r[e].$recursiveAnchor){t=e;break}const n=r.find(((e,r)=>r>=t&&!0===e.$recursiveAnchor));if(n)return e.next(n);for(let t=r.length-1;t>=0;t--)if(r[t].$id)return e.next(r[t]);return e.next(e.draft.rootSchema)}(e));if(null==e.schema.$ref)return e;const r=e.draft.rootSchema.getRef(e.schema);return!1===r?e.next(r):e.merge(r,"$ref")}function k(e,r,t){const{schema:n,pointer:o,onError:a}=Object.assign({schema:e.rootSchema,pointer:"#"},t);let s=e.validate(e.createNode(n,o),r);if(a){s=f(s);const e=function(e){return function r(t){return Array.isArray(t)?((t=f(t)).forEach(r),t):(p(t)&&e(t),t)}}(a);for(let r=0;re.filter(h))).catch((e=>{throw console.log("Failed resolving promises",e.message),console.log(e.stack),e}))}function T(e,r){var t;const{schema:n}=e,o=null!==(t=n.dependencies)&&void 0!==t?t:n.dependentSchemas;if(!y(o)||!y(r))return;let a=!1,s={required:[]};return Object.keys(o).forEach((t=>{var i,l;if(null==r[t]&&!(null===(i=n.required)||void 0===i?void 0:i.includes(t))&&!(null===(l=s.required)||void 0===l?void 0:l.includes(t)))return;const c=o[t];if(Array.isArray(c))return a=!0,void s.required.push(...c);if(y(c)){a=!0;const r=e.next(c).resolveRef();s=O(s,r.schema)}else;})),a?(s.required=(i=s.required).filter(((e,r)=>i.indexOf(e)===r)),s):void 0;var i}function F(e,r){const{draft:t,schema:n}=e;if(!Array.isArray(n.anyOf)||0===n.anyOf.length)return;let o;return n.anyOf.forEach((n=>{const a=t.resolveRef(e.next(n));0===t.validate(a,r).length&&(o=o?O(o,a.schema):a.schema)})),o?e.next(o):void 0}function U(e,r){const{anyOf:t}=e.schema;if(!Array.isArray(t)||0===t.length)return e;const n=F(e,r);if(n){const{pointer:n,schema:o}=e;return e.draft.errors.anyOfError({pointer:n,schema:o,value:r,anyOf:JSON.stringify(t)})}return e.merge(n.schema,"anyOf")}const C=["allOf","anyOf","oneOf","dependencies","if","then","else"],V=["allOf","anyOf","oneOf","dependencies","if"];function z(e){const r=Object.keys(e);return-1!==V.findIndex((e=>r.includes(e)))}function q(e,r){let t,n;const o=e.draft.resolveRef(e),{draft:a}=o,s=R(o)?o.schema:o;if(s.oneOf){const e=g(o,r);p(e)?n=e:e&&(t=O(null!=t?t:{},e.schema))}if(Array.isArray(s.allOf)){const e=s.allOf.map((e=>{if(z(e)){const t=q(o.next(e),r);if(null==t||p(t))return t;return E(O(e,t.schema),...C)}return e}));if(e.length>0){t=O(null!=t?t:{},S(a,{allOf:e}))}}const i=F(o,r);i&&i.schema&&(t=O(null!=t?t:{},i.schema));const l=T(o,r);l&&(t=O(null!=t?t:{},l));const c=P(o,r);if(R(c)&&(t=O(null!=t?t:{},c.schema)),null==t)return n;if(p(t))return t;const u=q(o.next(t),r);R(u)&&(t=O(t,u.schema));const f=E(t,...C);return o.next(f)}const H=["allOf","anyOf","oneOf","dependencies","if","then","else"];function G(e,r){const t=q(e,r);return R(t)?e.merge(t.schema,...H):t||e}var J=Function.prototype.toString,K=Object.create,B=Object.prototype.toString,Z=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,r){this._keys.push(e),this._values.push(r)},e}();var W="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new Z};function Q(e){if(!e)return K(null);var r=e.constructor;if(r===Object)return e===Object.prototype?{}:K(e);if(r&&~J.call(r).indexOf("[native code]"))try{return new r}catch(e){}return K(e)}var X="g"===/test/g.flags?function(e){return e.flags}:function(e){var r="";return e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.unicode&&(r+="u"),e.sticky&&(r+="y"),r};function Y(e){var r=B.call(e);return r.substring(8,r.length-1)}var ee="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||Y(e)}:Y,re=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ne=Object.getOwnPropertyNames,oe=Object.getOwnPropertySymbols,ae=Object.prototype,se=ae.hasOwnProperty,ie=ae.propertyIsEnumerable,le="function"==typeof oe;var ce=le?function(e){return ne(e).concat(oe(e))}:ne;function ue(e,r,t){for(var n=ce(e),o=0,a=n.length,s=void 0,i=void 0;o{Array.isArray(o[r])||("$defs"===r?_e("$defs",o[r],t,`${n}/${e}/$defs`):Ae(o[r],t,`${n}/${e}/${r}`))}))}function Ie(e,r,t,n){const o=r[e];Array.isArray(o)&&o.forEach(((r,o)=>Ae(r,t,`${n}/${e}/${o}`)))}function Ae(e,r,t=""){void 0!==e&&!0!==r(e,t)&&y(e)&&(_e("properties",e,r,t),_e("patternProperties",e,r,t),Ae(e.not,r,`${t}/not`),Ae(e.additionalProperties,r,`${t}/additionalProperties`),_e("dependencies",e,r,t),y(e.items)&&Ae(e.items,r,`${t}/items`),Ie("items",e,r,t),Ae(e.additionalItems,r,`${t}/additionalItems`),Ie("allOf",e,r,t),Ie("anyOf",e,r,t),Ie("oneOf",e,r,t),Ae(e.if,r,`${t}/if`),Ae(e.then,r,`${t}/then`),Ae(e.else,r,`${t}/else`),_e("definitions",e,r,t),_e("$defs",e,r,t))}const Se=/(#)+$/,je=/#$/,we=/^[#/]+/,De=/^[^:]+:\/\/[^/]+\//,Re=/\/[^/]*$/,Ne=/#.*$/,Me=/^urn:uuid:[0-9A-Fa-f]/;function Le(e,r){return null==e&&null==r?"#":null==r?e.replace(je,""):Me.test(r)?r:null==e||""===e||"#"===e?r.replace(je,""):"#"===r[0]?`${e.replace(Ne,"")}${r.replace(Se,"")}`:De.test(r)?r.replace(je,""):De.test(e)&&r.startsWith("/")?`${e.replace(/(^[^:]+:\/\/[^/]+)(.*)/,"$1")}/${r.replace(we,"")}`:`${e.replace(Re,"")}/${r.replace(we,"")}`}var ke=t(546),Te=t.n(ke);const Fe=/(#)+$/g,Ue=["",null,"#"];const Ce=/(#)+$/g,Ve=e=>"object"===o(e);function ze(e,r,t){var n,o,a,s,i;let l,c;if(l=Ve(t)?t.__ref||t.$ref:t,null==l)return r;const u=l.replace(Ce,"");if(null!=e.remotes[u])return c=e.remotes[u],c&&c.$ref?ze(e,c,c):c;const f=null===(n=e.anchors)||void 0===n?void 0:n[l];if(f)return(0,ke.get)(r,f);if(null!=e.ids[l])return c=(0,ke.get)(r,e.ids[l]),c&&c.$ref?ze(e,r,c):c;const m=l,p=function(e){if(Ue.includes(e))return[];if(-1===(e=e.replace(Fe,"")).indexOf("#"))return[e.replace(/(#|\/)+$/g,"")];if(0===e.indexOf("#"))return[e.replace(Fe,"")];const r=e.split("#");return r[0]=r[0].replace(/(#|\/)+$/g,""),r[1]=`#${r[1].replace(Fe,"")}`,r}(l);if(0===p.length)return r;if(1===p.length){if(l=p[0],e.remotes[l]&&(c=e.remotes[l],c&&c.$ref))return ze(e,r,c);if(e.ids[l])return c=(0,ke.get)(r,e.ids[l]),c&&c.$ref?ze(e,r,c):c;const t=null===(o=r.getContext)||void 0===o?void 0:o.call(r).ids[l];if(t)return ze(e,r,t)}if(2===p.length){const t=p[0];l=p[1];const n=null!==(a=e.remotes[t])&&void 0!==a?a:e.remotes[`${t}/`];if(n)return n.getContext&&null!=n.getContext().anchors[m]?n.getRef(m):n.getRef?n.getRef(l):ze(e,n,l);const o=null!==(s=e.ids[t])&&void 0!==s?s:e.ids[`${t}/`];if(o)return ze(e,(0,ke.get)(r,o),l)}return c=(0,ke.get)(r,null!==(i=e.ids[l])&&void 0!==i?i:l),c&&c.$ref?ze(e,r,c):c}const qe="__compiled",He="__ref",Ge=/(#|\/)+$/g;function Je(e){if(void 0===e)return;const r={type:o(e)};return"object"===r.type&&y(e)&&(r.properties={},Object.keys(e).forEach((t=>r.properties[t]=Je(e[t])))),"array"===r.type&&Array.isArray(e)&&(1===e.length?r.items=Je(e[0]):r.items=e.map(Je)),r}const Ke={additionalItemsError:u("AdditionalItemsError"),additionalPropertiesError:u("AdditionalPropertiesError"),anyOfError:u("AnyOfError"),allOfError:u("AllOfError"),constError:u("ConstError"),containsError:u("ContainsError"),containsMaxError:u("ContainsMaxError"),containsMinError:u("ContainsMinError"),containsArrayError:u("ContainsArrayError"),containsAnyError:u("ContainsAnyError"),enumError:u("EnumError"),forbiddenPropertyError:u("ForbiddenPropertyError"),formatURLError:u("FormatURLError"),formatURIError:u("FormatURIError"),formatURIReferenceError:u("FormatURIReferenceError"),formatURITemplateError:u("FormatURITemplateError"),formatDateError:u("FormatDateError"),formatDateTimeError:u("FormatDateTimeError"),formatDurationError:u("FormatDurationError"),formatEmailError:u("FormatEmailError"),formatHostnameError:u("FormatHostnameError"),formatIPV4Error:u("FormatIPV4Error"),formatIPV4LeadingZeroError:u("FormatIPV4LeadingZeroError"),formatIPV6Error:u("FormatIPV6Error"),formatIPV6LeadingZeroError:u("FormatIPV6LeadingZeroError"),formatJsonPointerError:u("FormatJsonPointerError"),formatRegExError:u("FormatRegExError"),formatTimeError:u("FormatTimeError"),invalidSchemaError:u("InvalidSchemaError"),invalidDataError:u("InvalidDataError"),invalidTypeError:u("InvalidTypeError"),invalidPropertyNameError:u("InvalidPropertyNameError"),maximumError:u("MaximumError"),maxItemsError:u("MaxItemsError"),maxLengthError:u("MaxLengthError"),maxPropertiesError:u("MaxPropertiesError"),minimumError:u("MinimumError"),minItemsError:u("MinItemsError"),minItemsOneError:u("MinItemsOneError"),minLengthError:u("MinLengthError"),minLengthOneError:u("MinLengthOneError"),minPropertiesError:u("MinPropertiesError"),missingDependencyError:u("MissingDependencyError"),missingOneOfPropertyError:u("MissingOneOfPropertyError"),multipleOfError:u("MultipleOfError"),multipleOneOfError:u("MultipleOneOfError"),noAdditionalPropertiesError:u("NoAdditionalPropertiesError"),notError:u("NotError"),oneOfError:u("OneOfError"),oneOfPropertyError:u("OneOfPropertyError"),patternError:u("PatternError"),patternPropertiesError:u("PatternPropertiesError"),requiredPropertyError:u("RequiredPropertyError"),schemaWarning:u("SchemaWarning"),typeError:u("TypeError"),undefinedValueError:u("UndefinedValueError"),unevaluatedPropertyError:u("UnevaluatedPropertyError"),unevaluatedItemsError:u("UnevaluatedItemsError"),uniqueItemsError:u("UniqueItemsError"),unknownPropertyError:u("UnknownPropertyError"),valueNotEmptyError:u("ValueNotEmptyError")};var Be=t(853),Ze=t.n(Be),We=t(125);const Qe=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Xe=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,Ye=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,er=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,rr=/^(?