@goodhood-web/nebenan-core 3.4.0-development.10 → 3.4.0-development.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +9 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
|| ${i} === "boolean" || ${a} === null`).assign(o,(0,ee._)`[${a}]`)}}}function _v({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ee._)`${t} !== undefined`,()=>e.assign((0,ee._)`${t}[${r}]`,n))}function Na(e,t,r,n=ir.Correct){const a=n===ir.Correct?ee.operators.EQ:ee.operators.NEQ;let s;switch(e){case"null":return(0,ee._)`${t} ${a} null`;case"array":s=(0,ee._)`Array.isArray(${t})`;break;case"object":s=(0,ee._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i((0,ee._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return(0,ee._)`typeof ${t} ${a} ${e}`}return n===ir.Correct?s:(0,ee.not)(s);function i(o=ee.nil){return(0,ee.and)((0,ee._)`typeof ${t} == "number"`,o,r?(0,ee._)`isFinite(${t})`:ee.nil)}}be.checkDataType=Na;function Ja(e,t,r,n){if(e.length===1)return Na(e[0],t,r,n);let a;const s=(0,pc.toHash)(e);if(s.array&&s.object){const i=(0,ee._)`typeof ${t} != "object"`;a=s.null?i:(0,ee._)`!${t} || ${i}`,delete s.null,delete s.array,delete s.object}else a=ee.nil;s.number&&delete s.integer;for(const i in s)a=(0,ee.and)(a,Na(i,t,r,n));return a}be.checkDataTypes=Ja;const vv={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ee._)`{type: ${e}}`:(0,ee._)`{type: ${t}}`};function Xa(e){const t=gv(e);(0,fv.reportError)(t,vv)}be.reportTypeError=Xa;function gv(e){const{gen:t,data:r,schema:n}=e,a=(0,pc.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:e}}var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});Wn.assignDefaults=void 0;const Qt=ne,$v=D;function bv(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const a in r)Ii(e,a,r[a].default);else t==="array"&&Array.isArray(n)&&n.forEach((a,s)=>Ii(e,s,a.default))}Wn.assignDefaults=bv;function Ii(e,t,r){const{gen:n,compositeRule:a,data:s,opts:i}=e;if(r===void 0)return;const o=(0,Qt._)`${s}${(0,Qt.getProperty)(t)}`;if(a){(0,$v.checkStrictMode)(e,`default is ignored for: ${o}`);return}let u=(0,Qt._)`${o} === undefined`;i.useDefaults==="empty"&&(u=(0,Qt._)`${u} || ${o} === null || ${o} === ""`),n.if(u,(0,Qt._)`${o} = ${(0,Qt.stringify)(r)}`)}var tt={},re={};Object.defineProperty(re,"__esModule",{value:!0});re.validateUnion=re.validateArray=re.usePattern=re.callValidateCode=re.schemaProperties=re.allSchemaProperties=re.noPropertyInData=re.propertyInData=re.isOwnProperty=re.hasPropFunc=re.reportMissingProp=re.checkMissingProp=re.checkReportMissingProp=void 0;const pe=ne,Qa=D,wt=ct,wv=D;function Sv(e,t){const{gen:r,data:n,it:a}=e;r.if(ts(r,n,t,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,pe._)`${t}`},!0),e.error()})}re.checkReportMissingProp=Sv;function Ev({gen:e,data:t,it:{opts:r}},n,a){return(0,pe.or)(...n.map(s=>(0,pe.and)(ts(e,t,s,r.ownProperties),(0,pe._)`${a} = ${s}`)))}re.checkMissingProp=Ev;function Tv(e,t){e.setParams({missingProperty:t},!0),e.error()}re.reportMissingProp=Tv;function _c(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,pe._)`Object.prototype.hasOwnProperty`})}re.hasPropFunc=_c;function es(e,t,r){return(0,pe._)`${_c(e)}.call(${t}, ${r})`}re.isOwnProperty=es;function jv(e,t,r,n){const a=(0,pe._)`${t}${(0,pe.getProperty)(r)} !== undefined`;return n?(0,pe._)`${a} && ${es(e,t,r)}`:a}re.propertyInData=jv;function ts(e,t,r,n){const a=(0,pe._)`${t}${(0,pe.getProperty)(r)} === undefined`;return n?(0,pe.or)(a,(0,pe.not)(es(e,t,r))):a}re.noPropertyInData=ts;function vc(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}re.allSchemaProperties=vc;function Pv(e,t){return vc(t).filter(r=>!(0,Qa.alwaysValidSchema)(e,t[r]))}re.schemaProperties=Pv;function Ov({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:a,errorPath:s},it:i},o,u,c){const d=c?(0,pe._)`${e}, ${t}, ${n}${a}`:t,p=[[wt.default.instancePath,(0,pe.strConcat)(wt.default.instancePath,s)],[wt.default.parentData,i.parentData],[wt.default.parentDataProperty,i.parentDataProperty],[wt.default.rootData,wt.default.rootData]];i.opts.dynamicRef&&p.push([wt.default.dynamicAnchors,wt.default.dynamicAnchors]);const $=(0,pe._)`${d}, ${r.object(...p)}`;return u!==pe.nil?(0,pe._)`${o}.call(${u}, ${$})`:(0,pe._)`${o}(${$})`}re.callValidateCode=Ov;const Cv=(0,pe._)`new RegExp`;function xv({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:a}=t.code,s=a(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,pe._)`${a.code==="new RegExp"?Cv:(0,wv.useFunc)(e,a)}(${r}, ${n})`})}re.usePattern=xv;function kv(e){const{gen:t,data:r,keyword:n,it:a}=e,s=t.name("valid");if(a.allErrors){const o=t.let("valid",!0);return i(()=>t.assign(o,!1)),o}return t.var(s,!0),i(()=>t.break()),s;function i(o){const u=t.const("len",(0,pe._)`${r}.length`);t.forRange("i",0,u,c=>{e.subschema({keyword:n,dataProp:c,dataPropType:Qa.Type.Num},s),t.if((0,pe.not)(s),o)})}}re.validateArray=kv;function Nv(e){const{gen:t,schema:r,keyword:n,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Qa.alwaysValidSchema)(a,u))&&!a.opts.unevaluated)return;const i=t.let("valid",!1),o=t.name("_valid");t.block(()=>r.forEach((u,c)=>{const d=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},o);t.assign(i,(0,pe._)`${i} || ${o}`),e.mergeValidEvaluated(d,o)||t.if((0,pe.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}re.validateUnion=Nv;Object.defineProperty(tt,"__esModule",{value:!0});tt.validateKeywordUsage=tt.validSchemaType=tt.funcKeywordCode=tt.macroKeywordCode=void 0;const xe=ne,Mt=ct,Iv=re,Av=on;function Rv(e,t){const{gen:r,keyword:n,schema:a,parentSchema:s,it:i}=e,o=t.macro.call(i.self,a,s,i),u=gc(r,n,o);i.opts.validateSchema!==!1&&i.self.validateSchema(o,!0);const c=r.name("valid");e.subschema({schema:o,schemaPath:xe.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}tt.macroKeywordCode=Rv;function Mv(e,t){var r;const{gen:n,keyword:a,schema:s,parentSchema:i,$data:o,it:u}=e;Fv(u,t);const c=!o&&t.compile?t.compile.call(u.self,s,i,u):t.validate,d=gc(n,a,c),p=n.let("valid");e.block$data(p,$),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function $(){if(t.errors===!1)j(),t.modifying&&Ai(e),m(()=>e.error());else{const f=t.async?E():b();t.modifying&&Ai(e),m(()=>Dv(e,f))}}function E(){const f=n.let("ruleErrs",null);return n.try(()=>j((0,xe._)`await `),w=>n.assign(p,!1).if((0,xe._)`${w} instanceof ${u.ValidationError}`,()=>n.assign(f,(0,xe._)`${w}.errors`),()=>n.throw(w))),f}function b(){const f=(0,xe._)`${d}.errors`;return n.assign(f,null),j(xe.nil),f}function j(f=t.async?(0,xe._)`await `:xe.nil){const w=u.opts.passContext?Mt.default.this:Mt.default.self,g=!("compile"in t&&!o||t.schema===!1);n.assign(p,(0,xe._)`${f}${(0,Iv.callValidateCode)(e,d,w,g)}`,t.modifying)}function m(f){var w;n.if((0,xe.not)((w=t.valid)!==null&&w!==void 0?w:p),f)}}tt.funcKeywordCode=Mv;function Ai(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,xe._)`${n.parentData}[${n.parentDataProperty}]`))}function Dv(e,t){const{gen:r}=e;r.if((0,xe._)`Array.isArray(${t})`,()=>{r.assign(Mt.default.vErrors,(0,xe._)`${Mt.default.vErrors} === null ? ${t} : ${Mt.default.vErrors}.concat(${t})`).assign(Mt.default.errors,(0,xe._)`${Mt.default.vErrors}.length`),(0,Av.extendErrors)(e)},()=>e.error())}function Fv({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function gc(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,xe.stringify)(r)})}function Vv(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}tt.validSchemaType=Vv;function Lv({schema:e,opts:t,self:r,errSchemaPath:n},a,s){if(Array.isArray(a.keyword)?!a.keyword.includes(s):a.keyword!==s)throw new Error("ajv implementation error");const i=a.dependencies;if(i!=null&&i.some(o=>!Object.prototype.hasOwnProperty.call(e,o)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(a.validateSchema&&!a.validateSchema(e[s])){const u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(a.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}tt.validateKeywordUsage=Lv;var Tt={};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.extendSubschemaMode=Tt.extendSubschemaData=Tt.getSubschema=void 0;const Qe=ne,$c=D;function zv(e,{keyword:t,schemaProp:r,schema:n,schemaPath:a,errSchemaPath:s,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const o=e.schema[t];return r===void 0?{schema:o,schemaPath:(0,Qe._)`${e.schemaPath}${(0,Qe.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,Qe._)`${e.schemaPath}${(0,Qe.getProperty)(t)}${(0,Qe.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,$c.escapeFragment)(r)}`}}if(n!==void 0){if(a===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:a,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Tt.getSubschema=zv;function Uv(e,t,{dataProp:r,dataPropType:n,data:a,dataTypes:s,propertyName:i}){if(a!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:o}=t;if(r!==void 0){const{errorPath:c,dataPathArr:d,opts:p}=t,$=o.let("data",(0,Qe._)`${t.data}${(0,Qe.getProperty)(r)}`,!0);u($),e.errorPath=(0,Qe.str)`${c}${(0,$c.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Qe._)`${r}`,e.dataPathArr=[...d,e.parentDataProperty]}if(a!==void 0){const c=a instanceof Qe.Name?a:o.let("data",a,!0);u(c),i!==void 0&&(e.propertyName=i)}s&&(e.dataTypes=s);function u(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Tt.extendSubschemaData=Uv;function Zv(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:a,allErrors:s}){n!==void 0&&(e.compositeRule=n),a!==void 0&&(e.createErrors=a),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}Tt.extendSubschemaMode=Zv;var je={},bc=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=n;a--!==0;){var i=s[a];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r},wc={exports:{}},Et=wc.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},a=r.post||function(){};Sn(t,n,a,e,"",e)};Et.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Et.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Et.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Et.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Sn(e,t,r,n,a,s,i,o,u,c){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,a,s,i,o,u,c);for(var d in n){var p=n[d];if(Array.isArray(p)){if(d in Et.arrayKeywords)for(var $=0;$<p.length;$++)Sn(e,t,r,p[$],a+"/"+d+"/"+$,s,a,d,n,$)}else if(d in Et.propsKeywords){if(p&&typeof p=="object")for(var E in p)Sn(e,t,r,p[E],a+"/"+d+"/"+Bv(E),s,a,d,n,E)}else(d in Et.keywords||e.allKeys&&!(d in Et.skipKeywords))&&Sn(e,t,r,p,a+"/"+d,s,a,d,n)}r(n,a,s,i,o,u,c)}}function Bv(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var qv=wc.exports;Object.defineProperty(je,"__esModule",{value:!0});je.getSchemaRefs=je.resolveUrl=je.normalizeId=je._getFullPath=je.getFullPath=je.inlineRef=void 0;const Kv=D,Hv=bc,Gv=qv,Wv=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Yv(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Ia(e):t?Sc(e)<=t:!1}je.inlineRef=Yv;const Jv=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ia(e){for(const t in e){if(Jv.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Ia)||typeof r=="object"&&Ia(r))return!0}return!1}function Sc(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!Wv.has(r)&&(typeof e[r]=="object"&&(0,Kv.eachItem)(e[r],n=>t+=Sc(n)),t===1/0))return 1/0}return t}function Ec(e,t="",r){r!==!1&&(t=or(t));const n=e.parse(t);return Tc(e,n)}je.getFullPath=Ec;function Tc(e,t){return e.serialize(t).split("#")[0]+"#"}je._getFullPath=Tc;const Xv=/#\/?$/;function or(e){return e?e.replace(Xv,""):""}je.normalizeId=or;function Qv(e,t,r){return r=or(r),e.resolve(t,r)}je.resolveUrl=Qv;const eg=/^[a-z_][-a-z0-9._]*$/i;function tg(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,a=or(e[r]||t),s={"":a},i=Ec(n,a,!1),o={},u=new Set;return Gv(e,{allKeys:!0},(p,$,E,b)=>{if(b===void 0)return;const j=i+$;let m=s[b];typeof p[r]=="string"&&(m=f.call(this,p[r])),w.call(this,p.$anchor),w.call(this,p.$dynamicAnchor),s[$]=m;function f(g){const P=this.opts.uriResolver.resolve;if(g=or(m?P(m,g):g),u.has(g))throw d(g);u.add(g);let _=this.refs[g];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(p,_.schema,g):g!==or(j)&&(g[0]==="#"?(c(p,o[g],g),o[g]=p):this.refs[g]=j),g}function w(g){if(typeof g=="string"){if(!eg.test(g))throw new Error(`invalid anchor "${g}"`);f.call(this,`#${g}`)}}}),o;function c(p,$,E){if($!==void 0&&!Hv(p,$))throw d(E)}function d(p){return new Error(`reference "${p}" resolves to more than one schema`)}}je.getSchemaRefs=tg;Object.defineProperty(He,"__esModule",{value:!0});He.getData=He.KeywordCxt=He.validateFunctionCode=void 0;const jc=fr,Ri=be,rs=ht,Dn=be,rg=Wn,Ar=tt,fa=Tt,K=ne,J=ct,ng=je,pt=D,jr=on;function ag(e){if(Cc(e)&&(xc(e),Oc(e))){og(e);return}Pc(e,()=>(0,jc.topBoolOrEmptySchema)(e))}He.validateFunctionCode=ag;function Pc({gen:e,validateName:t,schema:r,schemaEnv:n,opts:a},s){a.code.es5?e.func(t,(0,K._)`${J.default.data}, ${J.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${Mi(r,a)}`),ig(e,a),e.code(s)}):e.func(t,(0,K._)`${J.default.data}, ${sg(a)}`,n.$async,()=>e.code(Mi(r,a)).code(s))}function sg(e){return(0,K._)`{${J.default.instancePath}="", ${J.default.parentData}, ${J.default.parentDataProperty}, ${J.default.rootData}=${J.default.data}${e.dynamicRef?(0,K._)`, ${J.default.dynamicAnchors}={}`:K.nil}}={}`}function ig(e,t){e.if(J.default.valCxt,()=>{e.var(J.default.instancePath,(0,K._)`${J.default.valCxt}.${J.default.instancePath}`),e.var(J.default.parentData,(0,K._)`${J.default.valCxt}.${J.default.parentData}`),e.var(J.default.parentDataProperty,(0,K._)`${J.default.valCxt}.${J.default.parentDataProperty}`),e.var(J.default.rootData,(0,K._)`${J.default.valCxt}.${J.default.rootData}`),t.dynamicRef&&e.var(J.default.dynamicAnchors,(0,K._)`${J.default.valCxt}.${J.default.dynamicAnchors}`)},()=>{e.var(J.default.instancePath,(0,K._)`""`),e.var(J.default.parentData,(0,K._)`undefined`),e.var(J.default.parentDataProperty,(0,K._)`undefined`),e.var(J.default.rootData,J.default.data),t.dynamicRef&&e.var(J.default.dynamicAnchors,(0,K._)`{}`)})}function og(e){const{schema:t,opts:r,gen:n}=e;Pc(e,()=>{r.$comment&&t.$comment&&Nc(e),fg(e),n.let(J.default.vErrors,null),n.let(J.default.errors,0),r.unevaluated&&cg(e),kc(e),mg(e)})}function cg(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,K._)`${r}.evaluated`),t.if((0,K._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,K._)`${e.evaluated}.props`,(0,K._)`undefined`)),t.if((0,K._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,K._)`${e.evaluated}.items`,(0,K._)`undefined`))}function Mi(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}function ug(e,t){if(Cc(e)&&(xc(e),Oc(e))){lg(e,t);return}(0,jc.boolOrEmptySchema)(e,t)}function Oc({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function Cc(e){return typeof e.schema!="boolean"}function lg(e,t){const{schema:r,gen:n,opts:a}=e;a.$comment&&r.$comment&&Nc(e),hg(e),pg(e);const s=n.const("_errs",J.default.errors);kc(e,s),n.var(t,(0,K._)`${s} === ${J.default.errors}`)}function xc(e){(0,pt.checkUnknownRules)(e),dg(e)}function kc(e,t){if(e.opts.jtd)return Di(e,[],!1,t);const r=(0,Ri.getSchemaTypes)(e.schema),n=(0,Ri.coerceAndCheckDataType)(e,r);Di(e,r,!n,t)}function dg(e){const{schema:t,errSchemaPath:r,opts:n,self:a}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,pt.schemaHasRulesButRef)(t,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function fg(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,pt.checkStrictMode)(e,"default is ignored in the schema root")}function hg(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,ng.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function pg(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Nc({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:a}){const s=r.$comment;if(a.$comment===!0)e.code((0,K._)`${J.default.self}.logger.log(${s})`);else if(typeof a.$comment=="function"){const i=(0,K.str)`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${J.default.self}.opts.$comment(${s}, ${i}, ${o}.schema)`)}}function mg(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:a,opts:s}=e;r.$async?t.if((0,K._)`${J.default.errors} === 0`,()=>t.return(J.default.data),()=>t.throw((0,K._)`new ${a}(${J.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,J.default.vErrors),s.unevaluated&&yg(e),t.return((0,K._)`${J.default.errors} === 0`))}function yg({gen:e,evaluated:t,props:r,items:n}){r instanceof K.Name&&e.assign((0,K._)`${t}.props`,r),n instanceof K.Name&&e.assign((0,K._)`${t}.items`,n)}function Di(e,t,r,n){const{gen:a,schema:s,data:i,allErrors:o,opts:u,self:c}=e,{RULES:d}=c;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,pt.schemaHasRulesButRef)(s,d))){a.block(()=>Rc(e,"$ref",d.all.$ref.definition));return}u.jtd||_g(e,t),a.block(()=>{for(const $ of d.rules)p($);p(d.post)});function p($){(0,rs.shouldUseGroup)(s,$)&&($.type?(a.if((0,Dn.checkDataType)($.type,i,u.strictNumbers)),Fi(e,$),t.length===1&&t[0]===$.type&&r&&(a.else(),(0,Dn.reportTypeError)(e)),a.endIf()):Fi(e,$),o||a.if((0,K._)`${J.default.errors} === ${n||0}`))}}function Fi(e,t){const{gen:r,schema:n,opts:{useDefaults:a}}=e;a&&(0,rg.assignDefaults)(e,t.type),r.block(()=>{for(const s of t.rules)(0,rs.shouldUseRule)(n,s)&&Rc(e,s.keyword,s.definition,t.type)})}function _g(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(vg(e,t),e.opts.allowUnionTypes||gg(e,t),$g(e,e.dataTypes))}function vg(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Ic(e.dataTypes,r)||ns(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),wg(e,t)}}function gg(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&ns(e,"use allowUnionTypes to allow union type keyword")}function $g(e,t){const r=e.self.RULES.all;for(const n in r){const a=r[n];if(typeof a=="object"&&(0,rs.shouldUseRule)(e.schema,a)){const{type:s}=a.definition;s.length&&!s.some(i=>bg(t,i))&&ns(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function bg(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Ic(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function wg(e,t){const r=[];for(const n of e.dataTypes)Ic(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function ns(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,pt.checkStrictMode)(e,t,e.opts.strictTypes)}class Ac{constructor(t,r,n){if((0,Ar.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,pt.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Mc(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ar.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",J.default.errors))}result(t,r,n){this.failResult((0,K.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,K.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,K._)`${r} !== undefined && (${(0,K.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?jr.reportExtraError:jr.reportError)(this,this.def.error,r)}$dataError(){(0,jr.reportError)(this,this.def.$dataError||jr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,jr.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=K.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=K.nil,r=K.nil){if(!this.$data)return;const{gen:n,schemaCode:a,schemaType:s,def:i}=this;n.if((0,K.or)((0,K._)`${a} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==K.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:a,it:s}=this;return(0,K.or)(i(),o());function i(){if(n.length){if(!(r instanceof K.Name))throw new Error("ajv implementation error");const u=Array.isArray(n)?n:[n];return(0,K._)`${(0,Dn.checkDataTypes)(u,r,s.opts.strictNumbers,Dn.DataType.Wrong)}`}return K.nil}function o(){if(a.validateSchema){const u=t.scopeValue("validate$data",{ref:a.validateSchema});return(0,K._)`!${u}(${r})`}return K.nil}}subschema(t,r){const n=(0,fa.getSubschema)(this.it,t);(0,fa.extendSubschemaData)(n,this.it,t),(0,fa.extendSubschemaMode)(n,t);const a={...this.it,...n,items:void 0,props:void 0};return ug(a,r),a}mergeEvaluated(t,r){const{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=pt.mergeEvaluated.props(a,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=pt.mergeEvaluated.items(a,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(r,()=>this.mergeEvaluated(t,K.Name)),!0}}He.KeywordCxt=Ac;function Rc(e,t,r,n){const a=new Ac(e,r,t);"code"in r?r.code(a,n):a.$data&&r.validate?(0,Ar.funcKeywordCode)(a,r):"macro"in r?(0,Ar.macroKeywordCode)(a,r):(r.compile||r.validate)&&(0,Ar.funcKeywordCode)(a,r)}const Sg=/^\/(?:[^~]|~0|~1)*$/,Eg=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Mc(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let a,s;if(e==="")return J.default.rootData;if(e[0]==="/"){if(!Sg.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);a=e,s=J.default.rootData}else{const c=Eg.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const d=+c[1];if(a=c[2],a==="#"){if(d>=t)throw new Error(u("property/index",d));return n[t-d]}if(d>t)throw new Error(u("data",d));if(s=r[t-d],!a)return s}let i=s;const o=a.split("/");for(const c of o)c&&(s=(0,K._)`${s}${(0,K.getProperty)((0,pt.unescapeJsonPointer)(c))}`,i=(0,K._)`${i} && ${s}`);return i;function u(c,d){return`Cannot access ${c} ${d} levels up, current level is ${t}`}}He.getData=Mc;var cn={};Object.defineProperty(cn,"__esModule",{value:!0});class Tg extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}cn.default=Tg;var mr={};Object.defineProperty(mr,"__esModule",{value:!0});const ha=je;class jg extends Error{constructor(t,r,n,a){super(a||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ha.resolveUrl)(t,r,n),this.missingSchema=(0,ha.normalizeId)((0,ha.getFullPath)(t,this.missingRef))}}mr.default=jg;var Ie={};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.resolveSchema=Ie.getCompilingSchema=Ie.resolveRef=Ie.compileSchema=Ie.SchemaEnv=void 0;const ze=ne,Pg=cn,At=ct,Be=je,Vi=D,Og=He;class Yn{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Be.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}Ie.SchemaEnv=Yn;function as(e){const t=Dc.call(this,e);if(t)return t;const r=(0,Be.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:s}=this.opts,i=new ze.CodeGen(this.scope,{es5:n,lines:a,ownProperties:s});let o;e.$async&&(o=i.scopeValue("Error",{ref:Pg.default,code:(0,ze._)`require("ajv/dist/runtime/validation_error").default`}));const u=i.scopeName("validate");e.validateName=u;const c={gen:i,allErrors:this.opts.allErrors,data:At.default.data,parentData:At.default.parentData,parentDataProperty:At.default.parentDataProperty,dataNames:[At.default.data],dataPathArr:[ze.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ze.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:o,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ze.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ze._)`""`,opts:this.opts,self:this};let d;try{this._compilations.add(e),(0,Og.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const p=i.toString();d=`${i.scopeRefs(At.default.scope)}return ${p}`,this.opts.code.process&&(d=this.opts.code.process(d,e));const E=new Function(`${At.default.self}`,`${At.default.scope}`,d)(this,this.scope.get());if(this.scope.value(u,{ref:E}),E.errors=null,E.schema=e.schema,E.schemaEnv=e,e.$async&&(E.$async=!0),this.opts.code.source===!0&&(E.source={validateName:u,validateCode:p,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:j}=c;E.evaluated={props:b instanceof ze.Name?void 0:b,items:j instanceof ze.Name?void 0:j,dynamicProps:b instanceof ze.Name,dynamicItems:j instanceof ze.Name},E.source&&(E.source.evaluated=(0,ze.stringify)(E.evaluated))}return e.validate=E,e}catch(p){throw delete e.validate,delete e.validateName,d&&this.logger.error("Error compiling schema, function code:",d),p}finally{this._compilations.delete(e)}}Ie.compileSchema=as;function Cg(e,t,r){var n;r=(0,Be.resolveUrl)(this.opts.uriResolver,t,r);const a=e.refs[r];if(a)return a;let s=Ng.call(this,e,r);if(s===void 0){const i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:o}=this.opts;i&&(s=new Yn({schema:i,schemaId:o,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=xg.call(this,s)}Ie.resolveRef=Cg;function xg(e){return(0,Be.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:as.call(this,e)}function Dc(e){for(const t of this._compilations)if(kg(t,e))return t}Ie.getCompilingSchema=Dc;function kg(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Ng(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Jn.call(this,e,t)}function Jn(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Be._getFullPath)(this.opts.uriResolver,r);let a=(0,Be.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===a)return pa.call(this,r,e);const s=(0,Be.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){const o=Jn.call(this,e,i);return typeof(o==null?void 0:o.schema)!="object"?void 0:pa.call(this,r,o)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||as.call(this,i),s===(0,Be.normalizeId)(t)){const{schema:o}=i,{schemaId:u}=this.opts,c=o[u];return c&&(a=(0,Be.resolveUrl)(this.opts.uriResolver,a,c)),new Yn({schema:o,schemaId:u,root:e,baseId:a})}return pa.call(this,r,i)}}Ie.resolveSchema=Jn;const Ig=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function pa(e,{baseId:t,schema:r,root:n}){var a;if(((a=e.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const o of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,Vi.unescapeFragment)(o)];if(u===void 0)return;r=u;const c=typeof r=="object"&&r[this.opts.schemaId];!Ig.has(o)&&c&&(t=(0,Be.resolveUrl)(this.opts.uriResolver,t,c))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Vi.schemaHasRulesButRef)(r,this.RULES)){const o=(0,Be.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Jn.call(this,n,o)}const{schemaId:i}=this.opts;if(s=s||new Yn({schema:r,schemaId:i,root:n,baseId:t}),s.schema!==s.root.schema)return s}const Ag="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Rg="Meta-schema for $data reference (JSON AnySchema extension proposal)",Mg="object",Dg=["$data"],Fg={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Vg=!1,Lg={$id:Ag,description:Rg,type:Mg,required:Dg,properties:Fg,additionalProperties:Vg};var ss={},Xn={exports:{}};const zg={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var Ug={HEX:zg};const{HEX:Zg}=Ug,Bg=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function Fc(e){if(Lc(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(Bg)||[],[r]=t;return r?{host:Kg(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function Li(e,t=!1){let r="",n=!0;for(const a of e){if(Zg[a]===void 0)return;a!=="0"&&n===!0&&(n=!1),n||(r+=a)}return t&&r.length===0&&(r="0"),r}function qg(e){let t=0;const r={error:!1,address:"",zone:""},n=[],a=[];let s=!1,i=!1,o=!1;function u(){if(a.length){if(s===!1){const c=Li(a);if(c!==void 0)n.push(c);else return r.error=!0,!1}a.length=0}return!0}for(let c=0;c<e.length;c++){const d=e[c];if(!(d==="["||d==="]"))if(d===":"){if(i===!0&&(o=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}c-1>=0&&e[c-1]===":"&&(i=!0);continue}else if(d==="%"){if(!u())break;s=!0}else{a.push(d);continue}}return a.length&&(s?r.zone=a.join(""):o?n.push(a.join("")):n.push(Li(a))),r.address=n.join(""),r}function Vc(e){if(Lc(e,":")<2)return{host:e,isIPV6:!1};const t=qg(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,escapedHost:n,isIPV6:!0}}}function Kg(e,t){let r="",n=!0;const a=e.length;for(let s=0;s<a;s++){const i=e[s];i==="0"&&n?(s+1<=a&&e[s+1]===t||s+1===a)&&(r+=i,n=!1):(i===t?n=!0:n=!1,r+=i)}return r}function Lc(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}const zi=/^\.\.?\//u,Ui=/^\/\.(?:\/|$)/u,Zi=/^\/\.\.(?:\/|$)/u,Hg=/^\/?(?:.|\n)*?(?=\/|$)/u;function Gg(e){const t=[];for(;e.length;)if(e.match(zi))e=e.replace(zi,"");else if(e.match(Ui))e=e.replace(Ui,"/");else if(e.match(Zi))e=e.replace(Zi,"/"),t.pop();else if(e==="."||e==="..")e="";else{const r=e.match(Hg);if(r){const n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function Wg(e,t){const r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function Yg(e){const t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);const n=Fc(r);if(n.isIPV4)r=n.host;else{const a=Vc(n.host);a.isIPV6===!0?r=`[${a.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}var Jg={recomposeAuthority:Yg,normalizeComponentEncoding:Wg,removeDotSegments:Gg,normalizeIPv4:Fc,normalizeIPv6:Vc};const Xg=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,Qg=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function zc(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function Uc(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Zc(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function e$(e){return e.secure=zc(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function t$(e){if((e.port===(zc(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function r$(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(Qg);if(r){const n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const a=`${n}:${t.nid||e.nid}`,s=is[a];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function n$(e,t){const r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),a=`${r}:${t.nid||n}`,s=is[a];s&&(e=s.serialize(e,t));const i=e,o=e.nss;return i.path=`${n||t.nid}:${o}`,t.skipEscape=!0,i}function a$(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Xg.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function s$(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const Bc={scheme:"http",domainHost:!0,parse:Uc,serialize:Zc},i$={scheme:"https",domainHost:Bc.domainHost,parse:Uc,serialize:Zc},En={scheme:"ws",domainHost:!0,parse:e$,serialize:t$},o$={scheme:"wss",domainHost:En.domainHost,parse:En.parse,serialize:En.serialize},c$={scheme:"urn",parse:r$,serialize:n$,skipNormalize:!0},u$={scheme:"urn:uuid",parse:a$,serialize:s$,skipNormalize:!0},is={http:Bc,https:i$,ws:En,wss:o$,urn:c$,"urn:uuid":u$};var l$=is;const{normalizeIPv6:d$,normalizeIPv4:f$,removeDotSegments:xr,recomposeAuthority:h$,normalizeComponentEncoding:_n}=Jg,os=l$;function p$(e,t){return typeof e=="string"?e=rt(yt(e,t),t):typeof e=="object"&&(e=yt(rt(e,t),t)),e}function m$(e,t,r){const n=Object.assign({scheme:"null"},r),a=qc(yt(e,n),yt(t,n),n,!0);return rt(a,{...n,skipEscape:!0})}function qc(e,t,r,n){const a={};return n||(e=yt(rt(e,r),r),t=yt(rt(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=xr(t.path||""),a.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=xr(t.path||""),a.query=t.query):(t.path?(t.path.charAt(0)==="/"?a.path=xr(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?a.path="/"+t.path:e.path?a.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:a.path=t.path,a.path=xr(a.path)),a.query=t.query):(a.path=e.path,t.query!==void 0?a.query=t.query:a.query=e.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}function y$(e,t,r){return typeof e=="string"?(e=unescape(e),e=rt(_n(yt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=rt(_n(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=rt(_n(yt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=rt(_n(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function rt(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),a=[],s=os[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&a.push(r.scheme,":");const i=h$(r);if(i!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(i),r.path&&r.path.charAt(0)!=="/"&&a.push("/")),r.path!==void 0){let o=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(o=xr(o)),i===void 0&&(o=o.replace(/^\/\//u,"/%2F")),a.push(o)}return r.query!==void 0&&a.push("?",r.query),r.fragment!==void 0&&a.push("#",r.fragment),a.join("")}const _$=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function v$(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||_$[t])return!0;return!1}const g$=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function yt(e,t){const r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=e.indexOf("%")!==-1;let s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);const i=e.match(g$);if(i){if(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]),n.host){const u=f$(n.host);if(u.isIPV4===!1){const c=d$(u.host);n.host=c.host.toLowerCase(),s=c.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");const o=os[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&n.host&&(r.domainHost||o&&o.domainHost)&&s===!1&&v$(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!o||o&&!o.skipNormalize)&&(a&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),a&&n.host!==void 0&&(n.host=unescape(n.host)),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),o&&o.parse&&o.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}const cs={SCHEMES:os,normalize:p$,resolve:m$,resolveComponents:qc,equal:y$,serialize:rt,parse:yt};Xn.exports=cs;Xn.exports.default=cs;Xn.exports.fastUri=cs;var $$=Xn.exports;Object.defineProperty(ss,"__esModule",{value:!0});const Kc=$$;Kc.code='require("ajv/dist/runtime/uri").default';ss.default=Kc;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=He;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ne;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=cn,a=mr,s=Kt,i=Ie,o=ne,u=je,c=be,d=D,p=Lg,$=ss,E=(I,y)=>new RegExp(I,y);E.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],j=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},f={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},w=200;function g(I){var y,C,S,l,h,O,z,q,ie,ae,me,Z,Ye,Je,vt,vr,gr,$r,Nt,br,wr,T,M,U,H;const X=I.strict,se=(y=I.code)===null||y===void 0?void 0:y.optimize,ge=se===!0||se===void 0?1:se||0,Re=(S=(C=I.code)===null||C===void 0?void 0:C.regExp)!==null&&S!==void 0?S:E,Sr=(l=I.uriResolver)!==null&&l!==void 0?l:$.default;return{strictSchema:(O=(h=I.strictSchema)!==null&&h!==void 0?h:X)!==null&&O!==void 0?O:!0,strictNumbers:(q=(z=I.strictNumbers)!==null&&z!==void 0?z:X)!==null&&q!==void 0?q:!0,strictTypes:(ae=(ie=I.strictTypes)!==null&&ie!==void 0?ie:X)!==null&&ae!==void 0?ae:"log",strictTuples:(Z=(me=I.strictTuples)!==null&&me!==void 0?me:X)!==null&&Z!==void 0?Z:"log",strictRequired:(Je=(Ye=I.strictRequired)!==null&&Ye!==void 0?Ye:X)!==null&&Je!==void 0?Je:!1,code:I.code?{...I.code,optimize:ge,regExp:Re}:{optimize:ge,regExp:Re},loopRequired:(vt=I.loopRequired)!==null&&vt!==void 0?vt:w,loopEnum:(vr=I.loopEnum)!==null&&vr!==void 0?vr:w,meta:(gr=I.meta)!==null&&gr!==void 0?gr:!0,messages:($r=I.messages)!==null&&$r!==void 0?$r:!0,inlineRefs:(Nt=I.inlineRefs)!==null&&Nt!==void 0?Nt:!0,schemaId:(br=I.schemaId)!==null&&br!==void 0?br:"$id",addUsedSchema:(wr=I.addUsedSchema)!==null&&wr!==void 0?wr:!0,validateSchema:(T=I.validateSchema)!==null&&T!==void 0?T:!0,validateFormats:(M=I.validateFormats)!==null&&M!==void 0?M:!0,unicodeRegExp:(U=I.unicodeRegExp)!==null&&U!==void 0?U:!0,int32range:(H=I.int32range)!==null&&H!==void 0?H:!0,uriResolver:Sr}}class P{constructor(y={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,y=this.opts={...y,...g(y)};const{es5:C,lines:S}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:j,es5:C,lines:S}),this.logger=Ce(y.logger);const l=y.validateFormats;y.validateFormats=!1,this.RULES=(0,s.getRules)(),_.call(this,m,y,"NOT SUPPORTED"),_.call(this,f,y,"DEPRECATED","warn"),this._metaOpts=Ee.call(this),y.formats&&G.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),y.keywords&&_e.call(this,y.keywords),typeof y.meta=="object"&&this.addMetaSchema(y.meta),N.call(this),y.validateFormats=l}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:y,meta:C,schemaId:S}=this.opts;let l=p;S==="id"&&(l={...p},l.id=l.$id,delete l.$id),C&&y&&this.addMetaSchema(l,l[S],!1)}defaultMeta(){const{meta:y,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof y=="object"?y[C]||y:void 0}validate(y,C){let S;if(typeof y=="string"){if(S=this.getSchema(y),!S)throw new Error(`no schema with key or ref "${y}"`)}else S=this.compile(y);const l=S(C);return"$async"in S||(this.errors=S.errors),l}compile(y,C){const S=this._addSchema(y,C);return S.validate||this._compileSchemaEnv(S)}compileAsync(y,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:S}=this.opts;return l.call(this,y,C);async function l(ae,me){await h.call(this,ae.$schema);const Z=this._addSchema(ae,me);return Z.validate||O.call(this,Z)}async function h(ae){ae&&!this.getSchema(ae)&&await l.call(this,{$ref:ae},!0)}async function O(ae){try{return this._compileSchemaEnv(ae)}catch(me){if(!(me instanceof a.default))throw me;return z.call(this,me),await q.call(this,me.missingSchema),O.call(this,ae)}}function z({missingSchema:ae,missingRef:me}){if(this.refs[ae])throw new Error(`AnySchema ${ae} is loaded but ${me} cannot be resolved`)}async function q(ae){const me=await ie.call(this,ae);this.refs[ae]||await h.call(this,me.$schema),this.refs[ae]||this.addSchema(me,ae,C)}async function ie(ae){const me=this._loading[ae];if(me)return me;try{return await(this._loading[ae]=S(ae))}finally{delete this._loading[ae]}}}addSchema(y,C,S,l=this.opts.validateSchema){if(Array.isArray(y)){for(const O of y)this.addSchema(O,void 0,S,l);return this}let h;if(typeof y=="object"){const{schemaId:O}=this.opts;if(h=y[O],h!==void 0&&typeof h!="string")throw new Error(`schema ${O} must be string`)}return C=(0,u.normalizeId)(C||h),this._checkUnique(C),this.schemas[C]=this._addSchema(y,S,C,l,!0),this}addMetaSchema(y,C,S=this.opts.validateSchema){return this.addSchema(y,C,!0,S),this}validateSchema(y,C){if(typeof y=="boolean")return!0;let S;if(S=y.$schema,S!==void 0&&typeof S!="string")throw new Error("$schema must be a string");if(S=S||this.opts.defaultMeta||this.defaultMeta(),!S)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const l=this.validate(S,y);if(!l&&C){const h="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(h);else throw new Error(h)}return l}getSchema(y){let C;for(;typeof(C=x.call(this,y))=="string";)y=C;if(C===void 0){const{schemaId:S}=this.opts,l=new i.SchemaEnv({schema:{},schemaId:S});if(C=i.resolveSchema.call(this,l,y),!C)return;this.refs[y]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(y){if(y instanceof RegExp)return this._removeAllSchemas(this.schemas,y),this._removeAllSchemas(this.refs,y),this;switch(typeof y){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=x.call(this,y);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[y],delete this.refs[y],this}case"object":{const C=y;this._cache.delete(C);let S=y[this.opts.schemaId];return S&&(S=(0,u.normalizeId)(S),delete this.schemas[S],delete this.refs[S]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(y){for(const C of y)this.addKeyword(C);return this}addKeyword(y,C){let S;if(typeof y=="string")S=y,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=S);else if(typeof y=="object"&&C===void 0){if(C=y,S=C.keyword,Array.isArray(S)&&!S.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(we.call(this,S,C),!C)return(0,d.eachItem)(S,h=>Ae.call(this,h)),this;ut.call(this,C);const l={...C,type:(0,c.getJSONTypes)(C.type),schemaType:(0,c.getJSONTypes)(C.schemaType)};return(0,d.eachItem)(S,l.type.length===0?h=>Ae.call(this,h,l):h=>l.type.forEach(O=>Ae.call(this,h,l,O))),this}getKeyword(y){const C=this.RULES.all[y];return typeof C=="object"?C.definition:!!C}removeKeyword(y){const{RULES:C}=this;delete C.keywords[y],delete C.all[y];for(const S of C.rules){const l=S.rules.findIndex(h=>h.keyword===y);l>=0&&S.rules.splice(l,1)}return this}addFormat(y,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[y]=C,this}errorsText(y=this.errors,{separator:C=", ",dataVar:S="data"}={}){return!y||y.length===0?"No errors":y.map(l=>`${S}${l.instancePath} ${l.message}`).reduce((l,h)=>l+C+h)}$dataMetaSchema(y,C){const S=this.RULES.all;y=JSON.parse(JSON.stringify(y));for(const l of C){const h=l.split("/").slice(1);let O=y;for(const z of h)O=O[z];for(const z in S){const q=S[z];if(typeof q!="object")continue;const{$data:ie}=q.definition,ae=O[z];ie&&ae&&(O[z]=ce(ae))}}return y}_removeAllSchemas(y,C){for(const S in y){const l=y[S];(!C||C.test(S))&&(typeof l=="string"?delete y[S]:l&&!l.meta&&(this._cache.delete(l.schema),delete y[S]))}}_addSchema(y,C,S,l=this.opts.validateSchema,h=this.opts.addUsedSchema){let O;const{schemaId:z}=this.opts;if(typeof y=="object")O=y[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof y!="boolean")throw new Error("schema must be object or boolean")}let q=this._cache.get(y);if(q!==void 0)return q;S=(0,u.normalizeId)(O||S);const ie=u.getSchemaRefs.call(this,y,S);return q=new i.SchemaEnv({schema:y,schemaId:z,meta:C,baseId:S,localRefs:ie}),this._cache.set(q.schema,q),h&&!S.startsWith("#")&&(S&&this._checkUnique(S),this.refs[S]=q),l&&this.validateSchema(y,!0),q}_checkUnique(y){if(this.schemas[y]||this.refs[y])throw new Error(`schema with key or id "${y}" already exists`)}_compileSchemaEnv(y){if(y.meta?this._compileMetaSchema(y):i.compileSchema.call(this,y),!y.validate)throw new Error("ajv implementation error");return y.validate}_compileMetaSchema(y){const C=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,y)}finally{this.opts=C}}}P.ValidationError=n.default,P.MissingRefError=a.default,e.default=P;function _(I,y,C,S="error"){for(const l in I){const h=l;h in y&&this.logger[S](`${C}: option ${l}. ${I[h]}`)}}function x(I){return I=(0,u.normalizeId)(I),this.schemas[I]||this.refs[I]}function N(){const I=this.opts.schemas;if(I)if(Array.isArray(I))this.addSchema(I);else for(const y in I)this.addSchema(I[y],y)}function G(){for(const I in this.opts.formats){const y=this.opts.formats[I];y&&this.addFormat(I,y)}}function _e(I){if(Array.isArray(I)){this.addVocabulary(I);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const y in I){const C=I[y];C.keyword||(C.keyword=y),this.addKeyword(C)}}function Ee(){const I={...this.opts};for(const y of b)delete I[y];return I}const Fe={log(){},warn(){},error(){}};function Ce(I){if(I===!1)return Fe;if(I===void 0)return console;if(I.log&&I.warn&&I.error)return I;throw new Error("logger must implement log, warn and error methods")}const ve=/^[a-z_$][a-z0-9_$:-]*$/i;function we(I,y){const{RULES:C}=this;if((0,d.eachItem)(I,S=>{if(C.keywords[S])throw new Error(`Keyword ${S} is already defined`);if(!ve.test(S))throw new Error(`Keyword ${S} has invalid name`)}),!!y&&y.$data&&!("code"in y||"validate"in y))throw new Error('$data keyword must have "code" or "validate" function')}function Ae(I,y,C){var S;const l=y==null?void 0:y.post;if(C&&l)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:h}=this;let O=l?h.post:h.rules.find(({type:q})=>q===C);if(O||(O={type:C,rules:[]},h.rules.push(O)),h.keywords[I]=!0,!y)return;const z={keyword:I,definition:{...y,type:(0,c.getJSONTypes)(y.type),schemaType:(0,c.getJSONTypes)(y.schemaType)}};y.before?We.call(this,O,z,y.before):O.rules.push(z),h.all[I]=z,(S=y.implements)===null||S===void 0||S.forEach(q=>this.addKeyword(q))}function We(I,y,C){const S=I.rules.findIndex(l=>l.keyword===C);S>=0?I.rules.splice(S,0,y):(I.rules.push(y),this.logger.warn(`rule ${C} is not defined`))}function ut(I){let{metaSchema:y}=I;y!==void 0&&(I.$data&&this.opts.$data&&(y=ce(y)),I.validateSchema=this.compile(y,!0))}const L={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ce(I){return{anyOf:[I,L]}}})(sc);var us={},ls={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});const b$={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ds.default=b$;var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.callRef=Ht.getValidate=void 0;const w$=mr,Bi=re,Ne=ne,er=ct,qi=Ie,vn=D,S$={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:a,schemaEnv:s,validateName:i,opts:o,self:u}=n,{root:c}=s;if((r==="#"||r==="#/")&&a===c.baseId)return p();const d=qi.resolveRef.call(u,c,a,r);if(d===void 0)throw new w$.default(n.opts.uriResolver,a,r);if(d instanceof qi.SchemaEnv)return $(d);return E(d);function p(){if(s===c)return Tn(e,i,s,s.$async);const b=t.scopeValue("root",{ref:c});return Tn(e,(0,Ne._)`${b}.validate`,c,c.$async)}function $(b){const j=Hc(e,b);Tn(e,j,b,b.$async)}function E(b){const j=t.scopeValue("schema",o.code.source===!0?{ref:b,code:(0,Ne.stringify)(b)}:{ref:b}),m=t.name("valid"),f=e.subschema({schema:b,dataTypes:[],schemaPath:Ne.nil,topSchemaRef:j,errSchemaPath:r},m);e.mergeEvaluated(f),e.ok(m)}}};function Hc(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ne._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Ht.getValidate=Hc;function Tn(e,t,r,n){const{gen:a,it:s}=e,{allErrors:i,schemaEnv:o,opts:u}=s,c=u.passContext?er.default.this:Ne.nil;n?d():p();function d(){if(!o.$async)throw new Error("async schema referenced by sync schema");const b=a.let("valid");a.try(()=>{a.code((0,Ne._)`await ${(0,Bi.callValidateCode)(e,t,c)}`),E(t),i||a.assign(b,!0)},j=>{a.if((0,Ne._)`!(${j} instanceof ${s.ValidationError})`,()=>a.throw(j)),$(j),i||a.assign(b,!1)}),e.ok(b)}function p(){e.result((0,Bi.callValidateCode)(e,t,c),()=>E(t),()=>$(t))}function $(b){const j=(0,Ne._)`${b}.errors`;a.assign(er.default.vErrors,(0,Ne._)`${er.default.vErrors} === null ? ${j} : ${er.default.vErrors}.concat(${j})`),a.assign(er.default.errors,(0,Ne._)`${er.default.vErrors}.length`)}function E(b){var j;if(!s.opts.unevaluated)return;const m=(j=r==null?void 0:r.validate)===null||j===void 0?void 0:j.evaluated;if(s.props!==!0)if(m&&!m.dynamicProps)m.props!==void 0&&(s.props=vn.mergeEvaluated.props(a,m.props,s.props));else{const f=a.var("props",(0,Ne._)`${b}.evaluated.props`);s.props=vn.mergeEvaluated.props(a,f,s.props,Ne.Name)}if(s.items!==!0)if(m&&!m.dynamicItems)m.items!==void 0&&(s.items=vn.mergeEvaluated.items(a,m.items,s.items));else{const f=a.var("items",(0,Ne._)`${b}.evaluated.items`);s.items=vn.mergeEvaluated.items(a,f,s.items,Ne.Name)}}}Ht.callRef=Tn;Ht.default=S$;Object.defineProperty(ls,"__esModule",{value:!0});const E$=ds,T$=Ht,j$=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",E$.default,T$.default];ls.default=j$;var fs={},hs={};Object.defineProperty(hs,"__esModule",{value:!0});const Fn=ne,St=Fn.operators,Vn={maximum:{okStr:"<=",ok:St.LTE,fail:St.GT},minimum:{okStr:">=",ok:St.GTE,fail:St.LT},exclusiveMaximum:{okStr:"<",ok:St.LT,fail:St.GTE},exclusiveMinimum:{okStr:">",ok:St.GT,fail:St.LTE}},P$={message:({keyword:e,schemaCode:t})=>(0,Fn.str)`must be ${Vn[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Fn._)`{comparison: ${Vn[e].okStr}, limit: ${t}}`},O$={keyword:Object.keys(Vn),type:"number",schemaType:"number",$data:!0,error:P$,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Fn._)`${r} ${Vn[t].fail} ${n} || isNaN(${r})`)}};hs.default=O$;var ps={};Object.defineProperty(ps,"__esModule",{value:!0});const Rr=ne,C$={message:({schemaCode:e})=>(0,Rr.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Rr._)`{multipleOf: ${e}}`},x$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:C$,code(e){const{gen:t,data:r,schemaCode:n,it:a}=e,s=a.opts.multipleOfPrecision,i=t.let("res"),o=s?(0,Rr._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,Rr._)`${i} !== parseInt(${i})`;e.fail$data((0,Rr._)`(${n} === 0 || (${i} = ${r}/${n}, ${o}))`)}};ps.default=x$;var ms={},ys={};Object.defineProperty(ys,"__esModule",{value:!0});function Gc(e){const t=e.length;let r=0,n=0,a;for(;n<t;)r++,a=e.charCodeAt(n++),a>=55296&&a<=56319&&n<t&&(a=e.charCodeAt(n),(a&64512)===56320&&n++);return r}ys.default=Gc;Gc.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(ms,"__esModule",{value:!0});const Dt=ne,k$=D,N$=ys,I$={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,Dt.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Dt._)`{limit: ${e}}`},A$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:I$,code(e){const{keyword:t,data:r,schemaCode:n,it:a}=e,s=t==="maxLength"?Dt.operators.GT:Dt.operators.LT,i=a.opts.unicode===!1?(0,Dt._)`${r}.length`:(0,Dt._)`${(0,k$.useFunc)(e.gen,N$.default)}(${r})`;e.fail$data((0,Dt._)`${i} ${s} ${n}`)}};ms.default=A$;var _s={};Object.defineProperty(_s,"__esModule",{value:!0});const R$=re,Ln=ne,M$={message:({schemaCode:e})=>(0,Ln.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Ln._)`{pattern: ${e}}`},D$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:M$,code(e){const{data:t,$data:r,schema:n,schemaCode:a,it:s}=e,i=s.opts.unicodeRegExp?"u":"",o=r?(0,Ln._)`(new RegExp(${a}, ${i}))`:(0,R$.usePattern)(e,n);e.fail$data((0,Ln._)`!${o}.test(${t})`)}};_s.default=D$;var vs={};Object.defineProperty(vs,"__esModule",{value:!0});const Mr=ne,F$={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Mr.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Mr._)`{limit: ${e}}`},V$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:F$,code(e){const{keyword:t,data:r,schemaCode:n}=e,a=t==="maxProperties"?Mr.operators.GT:Mr.operators.LT;e.fail$data((0,Mr._)`Object.keys(${r}).length ${a} ${n}`)}};vs.default=V$;var gs={};Object.defineProperty(gs,"__esModule",{value:!0});const Pr=re,Dr=ne,L$=D,z$={message:({params:{missingProperty:e}})=>(0,Dr.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Dr._)`{missingProperty: ${e}}`},U$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:z$,code(e){const{gen:t,schema:r,schemaCode:n,data:a,$data:s,it:i}=e,{opts:o}=i;if(!s&&r.length===0)return;const u=r.length>=o.loopRequired;if(i.allErrors?c():d(),o.strictRequired){const E=e.parentSchema.properties,{definedProperties:b}=e.it;for(const j of r)if((E==null?void 0:E[j])===void 0&&!b.has(j)){const m=i.schemaEnv.baseId+i.errSchemaPath,f=`required property "${j}" is not defined at "${m}" (strictRequired)`;(0,L$.checkStrictMode)(i,f,i.opts.strictRequired)}}function c(){if(u||s)e.block$data(Dr.nil,p);else for(const E of r)(0,Pr.checkReportMissingProp)(e,E)}function d(){const E=t.let("missing");if(u||s){const b=t.let("valid",!0);e.block$data(b,()=>$(E,b)),e.ok(b)}else t.if((0,Pr.checkMissingProp)(e,r,E)),(0,Pr.reportMissingProp)(e,E),t.else()}function p(){t.forOf("prop",n,E=>{e.setParams({missingProperty:E}),t.if((0,Pr.noPropertyInData)(t,a,E,o.ownProperties),()=>e.error())})}function $(E,b){e.setParams({missingProperty:E}),t.forOf(E,n,()=>{t.assign(b,(0,Pr.propertyInData)(t,a,E,o.ownProperties)),t.if((0,Dr.not)(b),()=>{e.error(),t.break()})},Dr.nil)}}};gs.default=U$;var $s={};Object.defineProperty($s,"__esModule",{value:!0});const Fr=ne,Z$={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,Fr.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Fr._)`{limit: ${e}}`},B$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Z$,code(e){const{keyword:t,data:r,schemaCode:n}=e,a=t==="maxItems"?Fr.operators.GT:Fr.operators.LT;e.fail$data((0,Fr._)`${r}.length ${a} ${n}`)}};$s.default=B$;var bs={},un={};Object.defineProperty(un,"__esModule",{value:!0});const Wc=bc;Wc.code='require("ajv/dist/runtime/equal").default';un.default=Wc;Object.defineProperty(bs,"__esModule",{value:!0});const ma=be,Te=ne,q$=D,K$=un,H$={message:({params:{i:e,j:t}})=>(0,Te.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Te._)`{i: ${e}, j: ${t}}`},G$={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:H$,code(e){const{gen:t,data:r,$data:n,schema:a,parentSchema:s,schemaCode:i,it:o}=e;if(!n&&!a)return;const u=t.let("valid"),c=s.items?(0,ma.getSchemaTypes)(s.items):[];e.block$data(u,d,(0,Te._)`${i} === false`),e.ok(u);function d(){const b=t.let("i",(0,Te._)`${r}.length`),j=t.let("j");e.setParams({i:b,j}),t.assign(u,!0),t.if((0,Te._)`${b} > 1`,()=>(p()?$:E)(b,j))}function p(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function $(b,j){const m=t.name("item"),f=(0,ma.checkDataTypes)(c,m,o.opts.strictNumbers,ma.DataType.Wrong),w=t.const("indices",(0,Te._)`{}`);t.for((0,Te._)`;${b}--;`,()=>{t.let(m,(0,Te._)`${r}[${b}]`),t.if(f,(0,Te._)`continue`),c.length>1&&t.if((0,Te._)`typeof ${m} == "string"`,(0,Te._)`${m} += "_"`),t.if((0,Te._)`typeof ${w}[${m}] == "number"`,()=>{t.assign(j,(0,Te._)`${w}[${m}]`),e.error(),t.assign(u,!1).break()}).code((0,Te._)`${w}[${m}] = ${b}`)})}function E(b,j){const m=(0,q$.useFunc)(t,K$.default),f=t.name("outer");t.label(f).for((0,Te._)`;${b}--;`,()=>t.for((0,Te._)`${j} = ${b}; ${j}--;`,()=>t.if((0,Te._)`${m}(${r}[${b}], ${r}[${j}])`,()=>{e.error(),t.assign(u,!1).break(f)})))}}};bs.default=G$;var ws={};Object.defineProperty(ws,"__esModule",{value:!0});const Aa=ne,W$=D,Y$=un,J$={message:"must be equal to constant",params:({schemaCode:e})=>(0,Aa._)`{allowedValue: ${e}}`},X$={keyword:"const",$data:!0,error:J$,code(e){const{gen:t,data:r,$data:n,schemaCode:a,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Aa._)`!${(0,W$.useFunc)(t,Y$.default)}(${r}, ${a})`):e.fail((0,Aa._)`${s} !== ${r}`)}};ws.default=X$;var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});const kr=ne,Q$=D,e0=un,t0={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,kr._)`{allowedValues: ${e}}`},r0={keyword:"enum",schemaType:"array",$data:!0,error:t0,code(e){const{gen:t,data:r,$data:n,schema:a,schemaCode:s,it:i}=e;if(!n&&a.length===0)throw new Error("enum must have non-empty array");const o=a.length>=i.opts.loopEnum;let u;const c=()=>u??(u=(0,Q$.useFunc)(t,e0.default));let d;if(o||n)d=t.let("valid"),e.block$data(d,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const E=t.const("vSchema",s);d=(0,kr.or)(...a.map((b,j)=>$(E,j)))}e.pass(d);function p(){t.assign(d,!1),t.forOf("v",s,E=>t.if((0,kr._)`${c()}(${r}, ${E})`,()=>t.assign(d,!0).break()))}function $(E,b){const j=a[b];return typeof j=="object"&&j!==null?(0,kr._)`${c()}(${r}, ${E}[${b}])`:(0,kr._)`${r} === ${j}`}}};Ss.default=r0;Object.defineProperty(fs,"__esModule",{value:!0});const n0=hs,a0=ps,s0=ms,i0=_s,o0=vs,c0=gs,u0=$s,l0=bs,d0=ws,f0=Ss,h0=[n0.default,a0.default,s0.default,i0.default,o0.default,c0.default,u0.default,l0.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d0.default,f0.default];fs.default=h0;var Es={},yr={};Object.defineProperty(yr,"__esModule",{value:!0});yr.validateAdditionalItems=void 0;const Ft=ne,Ra=D,p0={message:({params:{len:e}})=>(0,Ft.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ft._)`{limit: ${e}}`},m0={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:p0,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ra.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Yc(e,n)}};function Yc(e,t){const{gen:r,schema:n,data:a,keyword:s,it:i}=e;i.items=!0;const o=r.const("len",(0,Ft._)`${a}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ft._)`${o} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ra.alwaysValidSchema)(i,n)){const c=r.var("valid",(0,Ft._)`${o} <= ${t.length}`);r.if((0,Ft.not)(c),()=>u(c)),e.ok(c)}function u(c){r.forRange("i",t.length,o,d=>{e.subschema({keyword:s,dataProp:d,dataPropType:Ra.Type.Num},c),i.allErrors||r.if((0,Ft.not)(c),()=>r.break())})}}yr.validateAdditionalItems=Yc;yr.default=m0;var Ts={},_r={};Object.defineProperty(_r,"__esModule",{value:!0});_r.validateTuple=void 0;const Ki=ne,jn=D,y0=re,_0={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Jc(e,"additionalItems",t);r.items=!0,!(0,jn.alwaysValidSchema)(r,t)&&e.ok((0,y0.validateArray)(e))}};function Jc(e,t,r=e.schema){const{gen:n,parentSchema:a,data:s,keyword:i,it:o}=e;d(a),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=jn.mergeEvaluated.items(n,r.length,o.items));const u=n.name("valid"),c=n.const("len",(0,Ki._)`${s}.length`);r.forEach((p,$)=>{(0,jn.alwaysValidSchema)(o,p)||(n.if((0,Ki._)`${c} > ${$}`,()=>e.subschema({keyword:i,schemaProp:$,dataProp:$},u)),e.ok(u))});function d(p){const{opts:$,errSchemaPath:E}=o,b=r.length,j=b===p.minItems&&(b===p.maxItems||p[t]===!1);if($.strictTuples&&!j){const m=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${E}"`;(0,jn.checkStrictMode)(o,m,$.strictTuples)}}}_r.validateTuple=Jc;_r.default=_0;Object.defineProperty(Ts,"__esModule",{value:!0});const v0=_r,g0={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,v0.validateTuple)(e,"items")};Ts.default=g0;var js={};Object.defineProperty(js,"__esModule",{value:!0});const Hi=ne,$0=D,b0=re,w0=yr,S0={message:({params:{len:e}})=>(0,Hi.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Hi._)`{limit: ${e}}`},E0={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:S0,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,!(0,$0.alwaysValidSchema)(n,t)&&(a?(0,w0.validateAdditionalItems)(e,a):e.ok((0,b0.validateArray)(e)))}};js.default=E0;var Ps={};Object.defineProperty(Ps,"__esModule",{value:!0});const Le=ne,gn=D,T0={message:({params:{min:e,max:t}})=>t===void 0?(0,Le.str)`must contain at least ${e} valid item(s)`:(0,Le.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Le._)`{minContains: ${e}}`:(0,Le._)`{minContains: ${e}, maxContains: ${t}}`},j0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:T0,code(e){const{gen:t,schema:r,parentSchema:n,data:a,it:s}=e;let i,o;const{minContains:u,maxContains:c}=n;s.opts.next?(i=u===void 0?1:u,o=c):i=1;const d=t.const("len",(0,Le._)`${a}.length`);if(e.setParams({min:i,max:o}),o===void 0&&i===0){(0,gn.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&i>o){(0,gn.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,gn.alwaysValidSchema)(s,r)){let j=(0,Le._)`${d} >= ${i}`;o!==void 0&&(j=(0,Le._)`${j} && ${d} <= ${o}`),e.pass(j);return}s.items=!0;const p=t.name("valid");o===void 0&&i===1?E(p,()=>t.if(p,()=>t.break())):i===0?(t.let(p,!0),o!==void 0&&t.if((0,Le._)`${a}.length > 0`,$)):(t.let(p,!1),$()),e.result(p,()=>e.reset());function $(){const j=t.name("_valid"),m=t.let("count",0);E(j,()=>t.if(j,()=>b(m)))}function E(j,m){t.forRange("i",0,d,f=>{e.subschema({keyword:"contains",dataProp:f,dataPropType:gn.Type.Num,compositeRule:!0},j),m()})}function b(j){t.code((0,Le._)`${j}++`),o===void 0?t.if((0,Le._)`${j} >= ${i}`,()=>t.assign(p,!0).break()):(t.if((0,Le._)`${j} > ${o}`,()=>t.assign(p,!1).break()),i===1?t.assign(p,!0):t.if((0,Le._)`${j} >= ${i}`,()=>t.assign(p,!0)))}}};Ps.default=j0;var Xc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ne,r=D,n=re;e.error={message:({params:{property:u,depsCount:c,deps:d}})=>{const p=c===1?"property":"properties";return(0,t.str)`must have ${p} ${d} when property ${u} is present`},params:({params:{property:u,depsCount:c,deps:d,missingProperty:p}})=>(0,t._)`{property: ${u},
|
|
22
22
|
missingProperty: ${p},
|
|
23
23
|
depsCount: ${c},
|
|
24
|
-
deps: ${d}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[c,d]=s(u);i(u,c),o(u,d)}};function s({schema:u}){const c={},d={};for(const p in u){if(p==="__proto__")continue;const $=Array.isArray(u[p])?c:d;$[p]=u[p]}return[c,d]}function i(u,c=u.schema){const{gen:d,data:p,it:$}=u;if(Object.keys(c).length===0)return;const E=d.let("missing");for(const b in c){const j=c[b];if(j.length===0)continue;const m=(0,n.propertyInData)(d,p,b,$.opts.ownProperties);u.setParams({property:b,depsCount:j.length,deps:j.join(", ")}),$.allErrors?d.if(m,()=>{for(const f of j)(0,n.checkReportMissingProp)(u,f)}):(d.if((0,t._)`${m} && (${(0,n.checkMissingProp)(u,j,E)})`),(0,n.reportMissingProp)(u,E),d.else())}}e.validatePropertyDeps=i;function o(u,c=u.schema){const{gen:d,data:p,keyword:$,it:E}=u,b=d.name("valid");for(const j in c)(0,r.alwaysValidSchema)(E,c[j])||(d.if((0,n.propertyInData)(d,p,j,E.opts.ownProperties),()=>{const m=u.subschema({keyword:$,schemaProp:j},b);u.mergeValidEvaluated(m,b)},()=>d.var(b,!0)),u.ok(b))}e.validateSchemaDeps=o,e.default=a})(Xc);var Os={};Object.defineProperty(Os,"__esModule",{value:!0});const Qc=ne,P0=D,O0={message:"property name must be valid",params:({params:e})=>(0,Qc._)`{propertyName: ${e.propertyName}}`},C0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:O0,code(e){const{gen:t,schema:r,data:n,it:a}=e;if((0,P0.alwaysValidSchema)(a,r))return;const s=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),t.if((0,Qc.not)(s),()=>{e.error(!0),a.allErrors||t.break()})}),e.ok(s)}};Os.default=C0;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});const $n=re,Ze=ne,x0=ct,bn=D,k0={message:"must NOT have additional properties",params:({params:e})=>(0,Ze._)`{additionalProperty: ${e.additionalProperty}}`},N0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:k0,code(e){const{gen:t,schema:r,parentSchema:n,data:a,errsCount:s,it:i}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:o,opts:u}=i;if(i.props=!0,u.removeAdditional!=="all"&&(0,bn.alwaysValidSchema)(i,r))return;const c=(0,$n.allSchemaProperties)(n.properties),d=(0,$n.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Ze._)`${s} === ${x0.default.errors}`);function p(){t.forIn("key",a,m=>{!c.length&&!d.length?b(m):t.if($(m),()=>b(m))})}function $(m){let f;if(c.length>8){const w=(0,bn.schemaRefOrVal)(i,n.properties,"properties");f=(0,$n.isOwnProperty)(t,w,m)}else c.length?f=(0,Ze.or)(...c.map(w=>(0,Ze._)`${m} === ${w}`)):f=Ze.nil;return d.length&&(f=(0,Ze.or)(f,...d.map(w=>(0,Ze._)`${(0,$n.usePattern)(e,w)}.test(${m})`))),(0,Ze.not)(f)}function E(m){t.code((0,Ze._)`delete ${a}[${m}]`)}function b(m){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){E(m);return}if(r===!1){e.setParams({additionalProperty:m}),e.error(),o||t.break();return}if(typeof r=="object"&&!(0,bn.alwaysValidSchema)(i,r)){const f=t.name("valid");u.removeAdditional==="failing"?(j(m,f,!1),t.if((0,Ze.not)(f),()=>{e.reset(),E(m)})):(j(m,f),o||t.if((0,Ze.not)(f),()=>t.break()))}}function j(m,f,w){const g={keyword:"additionalProperties",dataProp:m,dataPropType:bn.Type.Str};w===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(g,f)}}};Qn.default=N0;var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});const I0=He,Gi=re,ya=D,Wi=Qn,A0={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:a,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Wi.default.code(new I0.KeywordCxt(s,Wi.default,"additionalProperties"));const i=(0,Gi.allSchemaProperties)(r);for(const p of i)s.definedProperties.add(p);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=ya.mergeEvaluated.props(t,(0,ya.toHash)(i),s.props));const o=i.filter(p=>!(0,ya.alwaysValidSchema)(s,r[p]));if(o.length===0)return;const u=t.name("valid");for(const p of o)c(p)?d(p):(t.if((0,Gi.propertyInData)(t,a,p,s.opts.ownProperties)),d(p),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function c(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}function d(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}}};Cs.default=A0;var xs={};Object.defineProperty(xs,"__esModule",{value:!0});const Yi=re,wn=ne,Ji=D,Xi=D,R0={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:a,it:s}=e,{opts:i}=s,o=(0,Yi.allSchemaProperties)(r),u=o.filter(j=>(0,Ji.alwaysValidSchema)(s,r[j]));if(o.length===0||u.length===o.length&&(!s.opts.unevaluated||s.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&a.properties,d=t.name("valid");s.props!==!0&&!(s.props instanceof wn.Name)&&(s.props=(0,Xi.evaluatedPropsToName)(t,s.props));const{props:p}=s;$();function $(){for(const j of o)c&&E(j),s.allErrors?b(j):(t.var(d,!0),b(j),t.if(d))}function E(j){for(const m in c)new RegExp(j).test(m)&&(0,Ji.checkStrictMode)(s,`property ${m} matches pattern ${j} (use allowMatchingProperties)`)}function b(j){t.forIn("key",n,m=>{t.if((0,wn._)`${(0,Yi.usePattern)(e,j)}.test(${m})`,()=>{const f=u.includes(j);f||e.subschema({keyword:"patternProperties",schemaProp:j,dataProp:m,dataPropType:Xi.Type.Str},d),s.opts.unevaluated&&p!==!0?t.assign((0,wn._)`${p}[${m}]`,!0):!f&&!s.allErrors&&t.if((0,wn.not)(d),()=>t.break())})})}}};xs.default=R0;var ks={};Object.defineProperty(ks,"__esModule",{value:!0});const M0=D,D0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,M0.alwaysValidSchema)(n,r)){e.fail();return}const a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};ks.default=D0;var Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});const F0=re,V0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:F0.validateUnion,error:{message:"must match a schema in anyOf"}};Ns.default=V0;var Is={};Object.defineProperty(Is,"__esModule",{value:!0});const Pn=ne,L0=D,z0={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Pn._)`{passingSchemas: ${e.passing}}`},U0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:z0,code(e){const{gen:t,schema:r,parentSchema:n,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;const s=r,i=t.let("valid",!1),o=t.let("passing",null),u=t.name("_valid");e.setParams({passing:o}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((d,p)=>{let $;(0,L0.alwaysValidSchema)(a,d)?t.var(u,!0):$=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Pn._)`${u} && ${i}`).assign(i,!1).assign(o,(0,Pn._)`[${o}, ${p}]`).else(),t.if(u,()=>{t.assign(i,!0),t.assign(o,p),$&&e.mergeEvaluated($,Pn.Name)})})}}};Is.default=U0;var As={};Object.defineProperty(As,"__esModule",{value:!0});const Z0=D,B0={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach((s,i)=>{if((0,Z0.alwaysValidSchema)(n,s))return;const o=e.subschema({keyword:"allOf",schemaProp:i},a);e.ok(a),e.mergeEvaluated(o)})}};As.default=B0;var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});const zn=ne,eu=D,q0={message:({params:e})=>(0,zn.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,zn._)`{failingKeyword: ${e.ifClause}}`},K0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:q0,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,eu.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const a=Qi(n,"then"),s=Qi(n,"else");if(!a&&!s)return;const i=t.let("valid",!0),o=t.name("_valid");if(u(),e.reset(),a&&s){const d=t.let("ifClause");e.setParams({ifClause:d}),t.if(o,c("then",d),c("else",d))}else a?t.if(o,c("then")):t.if((0,zn.not)(o),c("else"));e.pass(i,()=>e.error(!0));function u(){const d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(d)}function c(d,p){return()=>{const $=e.subschema({keyword:d},o);t.assign(i,o),e.mergeValidEvaluated($,i),p?t.assign(p,(0,zn._)`${d}`):e.setParams({ifClause:d})}}}};function Qi(e,t){const r=e.schema[t];return r!==void 0&&!(0,eu.alwaysValidSchema)(e,r)}Rs.default=K0;var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});const H0=D,G0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,H0.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ms.default=G0;Object.defineProperty(Es,"__esModule",{value:!0});const W0=yr,Y0=Ts,J0=_r,X0=js,Q0=Ps,eb=Xc,tb=Os,rb=Qn,nb=Cs,ab=xs,sb=ks,ib=Ns,ob=Is,cb=As,ub=Rs,lb=Ms;function db(e=!1){const t=[sb.default,ib.default,ob.default,cb.default,ub.default,lb.default,tb.default,rb.default,eb.default,nb.default,ab.default];return e?t.push(Y0.default,X0.default):t.push(W0.default,J0.default),t.push(Q0.default),t}Es.default=db;var Ds={},Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});const $e=ne,fb={message:({schemaCode:e})=>(0,$e.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,$e._)`{format: ${e}}`},hb={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:fb,code(e,t){const{gen:r,data:n,$data:a,schema:s,schemaCode:i,it:o}=e,{opts:u,errSchemaPath:c,schemaEnv:d,self:p}=o;if(!u.validateFormats)return;a?$():E();function $(){const b=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),j=r.const("fDef",(0,$e._)`${b}[${i}]`),m=r.let("fType"),f=r.let("format");r.if((0,$e._)`typeof ${j} == "object" && !(${j} instanceof RegExp)`,()=>r.assign(m,(0,$e._)`${j}.type || "string"`).assign(f,(0,$e._)`${j}.validate`),()=>r.assign(m,(0,$e._)`"string"`).assign(f,j)),e.fail$data((0,$e.or)(w(),g()));function w(){return u.strictSchema===!1?$e.nil:(0,$e._)`${i} && !${f}`}function g(){const P=d.$async?(0,$e._)`(${j}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,$e._)`${f}(${n})`,_=(0,$e._)`(typeof ${f} == "function" ? ${P} : ${f}.test(${n}))`;return(0,$e._)`${f} && ${f} !== true && ${m} === ${t} && !${_}`}}function E(){const b=p.formats[s];if(!b){w();return}if(b===!0)return;const[j,m,f]=g(b);j===t&&e.pass(P());function w(){if(u.strictSchema===!1){p.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function g(_){const x=_ instanceof RegExp?(0,$e.regexpCode)(_):u.code.formats?(0,$e._)`${u.code.formats}${(0,$e.getProperty)(s)}`:void 0,N=r.scopeValue("formats",{key:s,ref:_,code:x});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,$e._)`${N}.validate`]:["string",_,N]}function P(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!d.$async)throw new Error("async format in sync schema");return(0,$e._)`await ${f}(${n})`}return typeof m=="function"?(0,$e._)`${f}(${n})`:(0,$e._)`${f}.test(${n})`}}}};Fs.default=hb;Object.defineProperty(Ds,"__esModule",{value:!0});const pb=Fs,mb=[pb.default];Ds.default=mb;var hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.contentVocabulary=hr.metadataVocabulary=void 0;hr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];hr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(us,"__esModule",{value:!0});const yb=ls,_b=fs,vb=Es,gb=Ds,eo=hr,$b=[yb.default,_b.default,(0,vb.default)(),gb.default,eo.metadataVocabulary,eo.contentVocabulary];us.default=$b;var Vs={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.DiscrError=void 0;var to;(function(e){e.Tag="tag",e.Mapping="mapping"})(to||(ea.DiscrError=to={}));Object.defineProperty(Vs,"__esModule",{value:!0});const rr=ne,Ma=ea,ro=Ie,bb=mr,wb=D,Sb={message:({params:{discrError:e,tagName:t}})=>e===Ma.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,rr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},Eb={keyword:"discriminator",type:"object",schemaType:"object",error:Sb,code(e){const{gen:t,data:r,schema:n,parentSchema:a,it:s}=e,{oneOf:i}=a;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),c=t.const("tag",(0,rr._)`${r}${(0,rr.getProperty)(o)}`);t.if((0,rr._)`typeof ${c} == "string"`,()=>d(),()=>e.error(!1,{discrError:Ma.DiscrError.Tag,tag:c,tagName:o})),e.ok(u);function d(){const E=$();t.if(!1);for(const b in E)t.elseIf((0,rr._)`${c} === ${b}`),t.assign(u,p(E[b]));t.else(),e.error(!1,{discrError:Ma.DiscrError.Mapping,tag:c,tagName:o}),t.endIf()}function p(E){const b=t.name("valid"),j=e.subschema({keyword:"oneOf",schemaProp:E},b);return e.mergeEvaluated(j,rr.Name),b}function $(){var E;const b={},j=f(a);let m=!0;for(let P=0;P<i.length;P++){let _=i[P];if(_!=null&&_.$ref&&!(0,wb.schemaHasRulesButRef)(_,s.self.RULES)){const N=_.$ref;if(_=ro.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,N),_ instanceof ro.SchemaEnv&&(_=_.schema),_===void 0)throw new bb.default(s.opts.uriResolver,s.baseId,N)}const x=(E=_==null?void 0:_.properties)===null||E===void 0?void 0:E[o];if(typeof x!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);m=m&&(j||f(_)),w(x,P)}if(!m)throw new Error(`discriminator: "${o}" must be required`);return b;function f({required:P}){return Array.isArray(P)&&P.includes(o)}function w(P,_){if(P.const)g(P.const,_);else if(P.enum)for(const x of P.enum)g(x,_);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function g(P,_){if(typeof P!="string"||P in b)throw new Error(`discriminator: "${o}" values must be unique strings`);b[P]=_}}}};Vs.default=Eb;const Tb="http://json-schema.org/draft-07/schema#",jb="http://json-schema.org/draft-07/schema#",Pb="Core schema meta-schema",Ob={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Cb=["object","boolean"],xb={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},kb={$schema:Tb,$id:jb,title:Pb,definitions:Ob,type:Cb,properties:xb,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=sc,n=us,a=Vs,s=kb,i=["/properties"],o="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(b,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=He;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=ne;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var p=cn;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var $=mr;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return $.default}})})(Ca,Ca.exports);var Nb=Ca.exports;const Ib=Un(Nb);new Ib({strict:!1});const Ab=(e,t,r)=>{const n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3),document.cookie=`${e}=${t};expires=${n.toUTCString()};path=/`},Rb=e=>{var n;const r=`; ${document.cookie}`.split(`; ${e}=`);if(r.length===2)return(n=r.pop())==null?void 0:n.split(";").shift()},Mb=e=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`},Db=()=>{const e=A.useCallback(()=>!!Rb("_sp_optout"),[]),t=A.useCallback(()=>{Mb("_sp_optout")},[]),r=A.useCallback(()=>{Ab("_sp_optout","1",724)},[]);return{isOptedOut:e,optIn:t,optOut:r}},Fb="_root_1ufzl_141",Vb={root:Fb},Lb=()=>{const[e,t]=A.useState(null),[r,n]=A.useState(!1),{isOptedOut:a,optIn:s,optOut:i}=Db();A.useEffect(()=>{On.getProfile().then(c=>{t(c),n(c.allow_analytics)}).catch(c=>{console.error(c)})},[]);const o=()=>{On.updateProfile({allow_analytics:!(e!=null&&e.allow_analytics)}).then(()=>{n(!r)}).catch(c=>{console.error(c)})},u=c=>{c.target.checked?s():i()};return v.jsxs("div",{className:Vb.root,children:[v.jsx(V.Typography,{type:"h4",children:"Profil-Tracking deaktivieren"}),v.jsxs("div",{children:[v.jsx(V.Typography,{type:"body-regular",children:"Möchtest du das Profil-Tracking deaktivieren?"}),v.jsx(V.ToggleInput,{onChange:o,label:"Profil-Tracking",checked:r})]}),v.jsxs("div",{children:[v.jsx(V.Typography,{type:"body-regular",children:"Sie können der Verarbeitung Ihrer personenbezogenen Daten durch Snowplow Analytics jederzeit mittels des nachfolgenden Toggles widersprechen:"}),v.jsx(V.ToggleInput,{onChange:u,label:"Profil-Tracking",defaultChecked:!a()})]})]})},zb=({cta:e,portabilityBody:t,portabilityCta:r,portabilityTitle:n,title:a})=>{const{showConsentManager:s}=ou.useConsent(),[i,o]=A.useState(!1),u=()=>{On.exportArchivedData().then(()=>{o(!0)}).catch(c=>{console.error(c)})};return v.jsxs("div",{className:yn.root,children:[v.jsx(V.Typography,{type:"h2",children:a}),v.jsx(V.Divider,{}),v.jsx(V.ButtonPrimary,{text:e,className:yn.button,onClick:s}),v.jsx(V.Divider,{}),v.jsx(Lb,{}),v.jsx(V.Divider,{}),v.jsx(V.Typography,{type:"h4",children:n}),v.jsx(V.Typography,{type:"body-regular",children:t}),i?v.jsx(V.Typography,{type:"body-semibold",className:yn.success,children:"Du erhältst in Kürze eine E-Mail mit dem Link zu deinem Archiv."}):v.jsx(V.TextButton,{onClick:u,className:yn.textButton,color:"blue",size:"medium",text:r})]})},Ub="_root_19zmr_141",Zb="_markdown_19zmr_145",no={root:Ub,markdown:Zb},Bb=({body:e,title:t})=>v.jsxs("div",{className:no.root,children:[v.jsx(V.Typography,{type:"h2",children:t}),v.jsx(Gt.MarkdownRichText,{className:no.markdown,text:e})]}),tu=({body:e,contactFooter:t,privacyOptions:r,protection:n})=>{const[a,s]=A.useState("");return A.useEffect(()=>{s(e)},[e]),v.jsxs("div",{className:xi.root,children:[v.jsx(Gt.HtmlContent,{className:xi.staticHtml,html:a}),v.jsx(V.Divider,{}),v.jsx(Bb,{body:n.body,title:n.title}),v.jsx(V.Divider,{}),v.jsx(zb,{cta:r.cta,portabilityBody:r.portabilityBody,portabilityCta:r.portabilityCta,portabilityTitle:r.portabilityTitle,title:r.title}),v.jsx(V.Divider,{}),v.jsx(nc,{body:t.body,cta:t.cta})]})},qb=({block:e})=>{const t=()=>{var o,u,c,d,p;return{cta:((o=e.privacyOptions)==null?void 0:o.cta)??"",portabilityBody:((u=e.privacyOptions)==null?void 0:u.portabilityBody)??"",portabilityCta:((c=e.privacyOptions)==null?void 0:c.portabilityCta)??"",portabilityTitle:((d=e.privacyOptions)==null?void 0:d.portabilityTitle)??"",title:((p=e.privacyOptions)==null?void 0:p.title)??""}},r=()=>{var o,u;return{body:((o=e.protection)==null?void 0:o.body)??"",title:((u=e.protection)==null?void 0:u.title)??""}},n=(e==null?void 0:e.body)??"",a=rc(e==null?void 0:e.contactFooter),s=t(),i=r();return v.jsx(tu,{body:n,contactFooter:a,privacyOptions:s,protection:i})},Kb="_root_issck_141",Hb={root:Kb},ao=({title:e})=>e?v.jsxs(v.Fragment,{children:[v.jsx(V.CardHeader,{className:Hb.root,as:"h2",headline:e}),v.jsx(V.Divider,{})]}):null,Gb="_root_1k7gy_141",Wb={root:Gb},Yb=({dynamicContent:e,onError:t,onSubmit:r})=>{var a;const n=pl(800);return v.jsxs(V.Card,{borderRadius:n,withoutPadding:!0,allowedElement:ao,className:Wb.root,children:[v.jsx(ao,{title:(a=e==null?void 0:e.cardHeader)==null?void 0:a.title}),v.jsx(V.CardBody,{withoutPadding:!0,children:e&&e.blocks.map((s,i)=>{switch(s.__component){case"core-components.sponsor-card":return v.jsx(T_,{block:s,isDesktop:n,onError:t??(()=>console.log("Error in SponsorCardForm")),onSubmit:r??(()=>console.log("Submit in SponsorCardForm"))},`${s.__component}_${i}`);case"core-components.persuasion-image-set":return v.jsx(ql,{block:s},`${s.__component}_${i}`);case"core-components.persuasion-content":return v.jsx(Fl,{block:s},`${s.__component}_${i}`);case"core-components.legal":return v.jsx(k_,{block:s},`${s.__component}_${i}`);case"core-components.privacy":return v.jsx(qb,{block:s},`${s.__component}_${i}`);case"core-components.accordion":return v.jsx(vl,{block:s},`${s.__component}_${i}`);case"landing-components.quote":return v.jsx(Yl,{block:s},`${s.__component}_${i}`)}})})]})};exports.DynamicRenderer=Yb;exports.LAYOUT_BLOCK=Xe;exports.Layout=Ga;exports.Legal=ac;exports.Privacy=tu;exports.SponsorCardForm=tc;
|
|
24
|
+
deps: ${d}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[c,d]=s(u);i(u,c),o(u,d)}};function s({schema:u}){const c={},d={};for(const p in u){if(p==="__proto__")continue;const $=Array.isArray(u[p])?c:d;$[p]=u[p]}return[c,d]}function i(u,c=u.schema){const{gen:d,data:p,it:$}=u;if(Object.keys(c).length===0)return;const E=d.let("missing");for(const b in c){const j=c[b];if(j.length===0)continue;const m=(0,n.propertyInData)(d,p,b,$.opts.ownProperties);u.setParams({property:b,depsCount:j.length,deps:j.join(", ")}),$.allErrors?d.if(m,()=>{for(const f of j)(0,n.checkReportMissingProp)(u,f)}):(d.if((0,t._)`${m} && (${(0,n.checkMissingProp)(u,j,E)})`),(0,n.reportMissingProp)(u,E),d.else())}}e.validatePropertyDeps=i;function o(u,c=u.schema){const{gen:d,data:p,keyword:$,it:E}=u,b=d.name("valid");for(const j in c)(0,r.alwaysValidSchema)(E,c[j])||(d.if((0,n.propertyInData)(d,p,j,E.opts.ownProperties),()=>{const m=u.subschema({keyword:$,schemaProp:j},b);u.mergeValidEvaluated(m,b)},()=>d.var(b,!0)),u.ok(b))}e.validateSchemaDeps=o,e.default=a})(Xc);var Os={};Object.defineProperty(Os,"__esModule",{value:!0});const Qc=ne,P0=D,O0={message:"property name must be valid",params:({params:e})=>(0,Qc._)`{propertyName: ${e.propertyName}}`},C0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:O0,code(e){const{gen:t,schema:r,data:n,it:a}=e;if((0,P0.alwaysValidSchema)(a,r))return;const s=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),t.if((0,Qc.not)(s),()=>{e.error(!0),a.allErrors||t.break()})}),e.ok(s)}};Os.default=C0;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});const $n=re,Ze=ne,x0=ct,bn=D,k0={message:"must NOT have additional properties",params:({params:e})=>(0,Ze._)`{additionalProperty: ${e.additionalProperty}}`},N0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:k0,code(e){const{gen:t,schema:r,parentSchema:n,data:a,errsCount:s,it:i}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:o,opts:u}=i;if(i.props=!0,u.removeAdditional!=="all"&&(0,bn.alwaysValidSchema)(i,r))return;const c=(0,$n.allSchemaProperties)(n.properties),d=(0,$n.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Ze._)`${s} === ${x0.default.errors}`);function p(){t.forIn("key",a,m=>{!c.length&&!d.length?b(m):t.if($(m),()=>b(m))})}function $(m){let f;if(c.length>8){const w=(0,bn.schemaRefOrVal)(i,n.properties,"properties");f=(0,$n.isOwnProperty)(t,w,m)}else c.length?f=(0,Ze.or)(...c.map(w=>(0,Ze._)`${m} === ${w}`)):f=Ze.nil;return d.length&&(f=(0,Ze.or)(f,...d.map(w=>(0,Ze._)`${(0,$n.usePattern)(e,w)}.test(${m})`))),(0,Ze.not)(f)}function E(m){t.code((0,Ze._)`delete ${a}[${m}]`)}function b(m){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){E(m);return}if(r===!1){e.setParams({additionalProperty:m}),e.error(),o||t.break();return}if(typeof r=="object"&&!(0,bn.alwaysValidSchema)(i,r)){const f=t.name("valid");u.removeAdditional==="failing"?(j(m,f,!1),t.if((0,Ze.not)(f),()=>{e.reset(),E(m)})):(j(m,f),o||t.if((0,Ze.not)(f),()=>t.break()))}}function j(m,f,w){const g={keyword:"additionalProperties",dataProp:m,dataPropType:bn.Type.Str};w===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(g,f)}}};Qn.default=N0;var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});const I0=He,Gi=re,ya=D,Wi=Qn,A0={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:a,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Wi.default.code(new I0.KeywordCxt(s,Wi.default,"additionalProperties"));const i=(0,Gi.allSchemaProperties)(r);for(const p of i)s.definedProperties.add(p);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=ya.mergeEvaluated.props(t,(0,ya.toHash)(i),s.props));const o=i.filter(p=>!(0,ya.alwaysValidSchema)(s,r[p]));if(o.length===0)return;const u=t.name("valid");for(const p of o)c(p)?d(p):(t.if((0,Gi.propertyInData)(t,a,p,s.opts.ownProperties)),d(p),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function c(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}function d(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}}};Cs.default=A0;var xs={};Object.defineProperty(xs,"__esModule",{value:!0});const Yi=re,wn=ne,Ji=D,Xi=D,R0={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:a,it:s}=e,{opts:i}=s,o=(0,Yi.allSchemaProperties)(r),u=o.filter(j=>(0,Ji.alwaysValidSchema)(s,r[j]));if(o.length===0||u.length===o.length&&(!s.opts.unevaluated||s.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&a.properties,d=t.name("valid");s.props!==!0&&!(s.props instanceof wn.Name)&&(s.props=(0,Xi.evaluatedPropsToName)(t,s.props));const{props:p}=s;$();function $(){for(const j of o)c&&E(j),s.allErrors?b(j):(t.var(d,!0),b(j),t.if(d))}function E(j){for(const m in c)new RegExp(j).test(m)&&(0,Ji.checkStrictMode)(s,`property ${m} matches pattern ${j} (use allowMatchingProperties)`)}function b(j){t.forIn("key",n,m=>{t.if((0,wn._)`${(0,Yi.usePattern)(e,j)}.test(${m})`,()=>{const f=u.includes(j);f||e.subschema({keyword:"patternProperties",schemaProp:j,dataProp:m,dataPropType:Xi.Type.Str},d),s.opts.unevaluated&&p!==!0?t.assign((0,wn._)`${p}[${m}]`,!0):!f&&!s.allErrors&&t.if((0,wn.not)(d),()=>t.break())})})}}};xs.default=R0;var ks={};Object.defineProperty(ks,"__esModule",{value:!0});const M0=D,D0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,M0.alwaysValidSchema)(n,r)){e.fail();return}const a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};ks.default=D0;var Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});const F0=re,V0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:F0.validateUnion,error:{message:"must match a schema in anyOf"}};Ns.default=V0;var Is={};Object.defineProperty(Is,"__esModule",{value:!0});const Pn=ne,L0=D,z0={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Pn._)`{passingSchemas: ${e.passing}}`},U0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:z0,code(e){const{gen:t,schema:r,parentSchema:n,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;const s=r,i=t.let("valid",!1),o=t.let("passing",null),u=t.name("_valid");e.setParams({passing:o}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((d,p)=>{let $;(0,L0.alwaysValidSchema)(a,d)?t.var(u,!0):$=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Pn._)`${u} && ${i}`).assign(i,!1).assign(o,(0,Pn._)`[${o}, ${p}]`).else(),t.if(u,()=>{t.assign(i,!0),t.assign(o,p),$&&e.mergeEvaluated($,Pn.Name)})})}}};Is.default=U0;var As={};Object.defineProperty(As,"__esModule",{value:!0});const Z0=D,B0={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach((s,i)=>{if((0,Z0.alwaysValidSchema)(n,s))return;const o=e.subschema({keyword:"allOf",schemaProp:i},a);e.ok(a),e.mergeEvaluated(o)})}};As.default=B0;var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});const zn=ne,eu=D,q0={message:({params:e})=>(0,zn.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,zn._)`{failingKeyword: ${e.ifClause}}`},K0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:q0,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,eu.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const a=Qi(n,"then"),s=Qi(n,"else");if(!a&&!s)return;const i=t.let("valid",!0),o=t.name("_valid");if(u(),e.reset(),a&&s){const d=t.let("ifClause");e.setParams({ifClause:d}),t.if(o,c("then",d),c("else",d))}else a?t.if(o,c("then")):t.if((0,zn.not)(o),c("else"));e.pass(i,()=>e.error(!0));function u(){const d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(d)}function c(d,p){return()=>{const $=e.subschema({keyword:d},o);t.assign(i,o),e.mergeValidEvaluated($,i),p?t.assign(p,(0,zn._)`${d}`):e.setParams({ifClause:d})}}}};function Qi(e,t){const r=e.schema[t];return r!==void 0&&!(0,eu.alwaysValidSchema)(e,r)}Rs.default=K0;var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});const H0=D,G0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,H0.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ms.default=G0;Object.defineProperty(Es,"__esModule",{value:!0});const W0=yr,Y0=Ts,J0=_r,X0=js,Q0=Ps,eb=Xc,tb=Os,rb=Qn,nb=Cs,ab=xs,sb=ks,ib=Ns,ob=Is,cb=As,ub=Rs,lb=Ms;function db(e=!1){const t=[sb.default,ib.default,ob.default,cb.default,ub.default,lb.default,tb.default,rb.default,eb.default,nb.default,ab.default];return e?t.push(Y0.default,X0.default):t.push(W0.default,J0.default),t.push(Q0.default),t}Es.default=db;var Ds={},Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});const $e=ne,fb={message:({schemaCode:e})=>(0,$e.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,$e._)`{format: ${e}}`},hb={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:fb,code(e,t){const{gen:r,data:n,$data:a,schema:s,schemaCode:i,it:o}=e,{opts:u,errSchemaPath:c,schemaEnv:d,self:p}=o;if(!u.validateFormats)return;a?$():E();function $(){const b=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),j=r.const("fDef",(0,$e._)`${b}[${i}]`),m=r.let("fType"),f=r.let("format");r.if((0,$e._)`typeof ${j} == "object" && !(${j} instanceof RegExp)`,()=>r.assign(m,(0,$e._)`${j}.type || "string"`).assign(f,(0,$e._)`${j}.validate`),()=>r.assign(m,(0,$e._)`"string"`).assign(f,j)),e.fail$data((0,$e.or)(w(),g()));function w(){return u.strictSchema===!1?$e.nil:(0,$e._)`${i} && !${f}`}function g(){const P=d.$async?(0,$e._)`(${j}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,$e._)`${f}(${n})`,_=(0,$e._)`(typeof ${f} == "function" ? ${P} : ${f}.test(${n}))`;return(0,$e._)`${f} && ${f} !== true && ${m} === ${t} && !${_}`}}function E(){const b=p.formats[s];if(!b){w();return}if(b===!0)return;const[j,m,f]=g(b);j===t&&e.pass(P());function w(){if(u.strictSchema===!1){p.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function g(_){const x=_ instanceof RegExp?(0,$e.regexpCode)(_):u.code.formats?(0,$e._)`${u.code.formats}${(0,$e.getProperty)(s)}`:void 0,N=r.scopeValue("formats",{key:s,ref:_,code:x});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,$e._)`${N}.validate`]:["string",_,N]}function P(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!d.$async)throw new Error("async format in sync schema");return(0,$e._)`await ${f}(${n})`}return typeof m=="function"?(0,$e._)`${f}(${n})`:(0,$e._)`${f}.test(${n})`}}}};Fs.default=hb;Object.defineProperty(Ds,"__esModule",{value:!0});const pb=Fs,mb=[pb.default];Ds.default=mb;var hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.contentVocabulary=hr.metadataVocabulary=void 0;hr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];hr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(us,"__esModule",{value:!0});const yb=ls,_b=fs,vb=Es,gb=Ds,eo=hr,$b=[yb.default,_b.default,(0,vb.default)(),gb.default,eo.metadataVocabulary,eo.contentVocabulary];us.default=$b;var Vs={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.DiscrError=void 0;var to;(function(e){e.Tag="tag",e.Mapping="mapping"})(to||(ea.DiscrError=to={}));Object.defineProperty(Vs,"__esModule",{value:!0});const rr=ne,Ma=ea,ro=Ie,bb=mr,wb=D,Sb={message:({params:{discrError:e,tagName:t}})=>e===Ma.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,rr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},Eb={keyword:"discriminator",type:"object",schemaType:"object",error:Sb,code(e){const{gen:t,data:r,schema:n,parentSchema:a,it:s}=e,{oneOf:i}=a;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),c=t.const("tag",(0,rr._)`${r}${(0,rr.getProperty)(o)}`);t.if((0,rr._)`typeof ${c} == "string"`,()=>d(),()=>e.error(!1,{discrError:Ma.DiscrError.Tag,tag:c,tagName:o})),e.ok(u);function d(){const E=$();t.if(!1);for(const b in E)t.elseIf((0,rr._)`${c} === ${b}`),t.assign(u,p(E[b]));t.else(),e.error(!1,{discrError:Ma.DiscrError.Mapping,tag:c,tagName:o}),t.endIf()}function p(E){const b=t.name("valid"),j=e.subschema({keyword:"oneOf",schemaProp:E},b);return e.mergeEvaluated(j,rr.Name),b}function $(){var E;const b={},j=f(a);let m=!0;for(let P=0;P<i.length;P++){let _=i[P];if(_!=null&&_.$ref&&!(0,wb.schemaHasRulesButRef)(_,s.self.RULES)){const N=_.$ref;if(_=ro.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,N),_ instanceof ro.SchemaEnv&&(_=_.schema),_===void 0)throw new bb.default(s.opts.uriResolver,s.baseId,N)}const x=(E=_==null?void 0:_.properties)===null||E===void 0?void 0:E[o];if(typeof x!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);m=m&&(j||f(_)),w(x,P)}if(!m)throw new Error(`discriminator: "${o}" must be required`);return b;function f({required:P}){return Array.isArray(P)&&P.includes(o)}function w(P,_){if(P.const)g(P.const,_);else if(P.enum)for(const x of P.enum)g(x,_);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function g(P,_){if(typeof P!="string"||P in b)throw new Error(`discriminator: "${o}" values must be unique strings`);b[P]=_}}}};Vs.default=Eb;const Tb="http://json-schema.org/draft-07/schema#",jb="http://json-schema.org/draft-07/schema#",Pb="Core schema meta-schema",Ob={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Cb=["object","boolean"],xb={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},kb={$schema:Tb,$id:jb,title:Pb,definitions:Ob,type:Cb,properties:xb,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=sc,n=us,a=Vs,s=kb,i=["/properties"],o="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(b,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=He;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=ne;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var p=cn;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var $=mr;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return $.default}})})(Ca,Ca.exports);var Nb=Ca.exports;const Ib=Un(Nb);new Ib({strict:!1});const Ab=(e,t,r)=>{const n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3),document.cookie=`${e}=${encodeURIComponent(t)};expires=${n.toUTCString()};path=/;SameSite=Lax;Secure`},Rb=e=>{try{const t=document.cookie.match(new RegExp(`(^|;\\s*)(${e})=([^;]*)`));return t?decodeURIComponent(t[3]):void 0}catch(t){console.warn("Error reading cookie:",t);return}},Mb=e=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;SameSite=Lax;Secure`},Db=()=>{const e=A.useCallback(()=>!!Rb("_sp_optout"),[]),t=A.useCallback(()=>{Mb("_sp_optout")},[]),r=A.useCallback(()=>{Ab("_sp_optout","1",724)},[]);return{isOptedOut:e,optIn:t,optOut:r}},Fb="_root_1ufzl_141",Vb={root:Fb},Lb=()=>{const[e,t]=A.useState(null),[r,n]=A.useState(!1),{isOptedOut:a,optIn:s,optOut:i}=Db();A.useEffect(()=>{On.getProfile().then(c=>{t(c),n(c.allow_analytics)}).catch(c=>{console.error(c)})},[]);const o=()=>{On.updateProfile({allow_analytics:!(e!=null&&e.allow_analytics)}).then(()=>{n(!r)}).catch(c=>{console.error(c)})},u=c=>{c.target.checked?s():i()};return v.jsxs("div",{className:Vb.root,children:[v.jsx(V.Typography,{type:"h4",children:"Profil-Tracking deaktivieren"}),v.jsxs("div",{children:[v.jsx(V.Typography,{type:"body-regular",children:"Möchtest du das Profil-Tracking deaktivieren?"}),v.jsx(V.ToggleInput,{onChange:o,label:"Profil-Tracking",checked:r})]}),v.jsxs("div",{children:[v.jsx(V.Typography,{type:"body-regular",children:"Sie können der Verarbeitung Ihrer personenbezogenen Daten durch Snowplow Analytics jederzeit mittels des nachfolgenden Toggles widersprechen:"}),v.jsx(V.ToggleInput,{onChange:u,label:"Profil-Tracking",defaultChecked:!a()})]})]})},zb=({cta:e,portabilityBody:t,portabilityCta:r,portabilityTitle:n,title:a})=>{const{showConsentManager:s}=ou.useConsent(),[i,o]=A.useState(!1),u=()=>{On.exportArchivedData().then(()=>{o(!0)}).catch(c=>{console.error(c)})};return v.jsxs("div",{className:yn.root,children:[v.jsx(V.Typography,{type:"h2",children:a}),v.jsx(V.Divider,{}),v.jsx(V.ButtonPrimary,{text:e,className:yn.button,onClick:s}),v.jsx(V.Divider,{}),v.jsx(Lb,{}),v.jsx(V.Divider,{}),v.jsx(V.Typography,{type:"h4",children:n}),v.jsx(V.Typography,{type:"body-regular",children:t}),i?v.jsx(V.Typography,{type:"body-semibold",className:yn.success,children:"Du erhältst in Kürze eine E-Mail mit dem Link zu deinem Archiv."}):v.jsx(V.TextButton,{onClick:u,className:yn.textButton,color:"blue",size:"medium",text:r})]})},Ub="_root_19zmr_141",Zb="_markdown_19zmr_145",no={root:Ub,markdown:Zb},Bb=({body:e,title:t})=>v.jsxs("div",{className:no.root,children:[v.jsx(V.Typography,{type:"h2",children:t}),v.jsx(Gt.MarkdownRichText,{className:no.markdown,text:e})]}),tu=({body:e,contactFooter:t,privacyOptions:r,protection:n})=>{const[a,s]=A.useState("");return A.useEffect(()=>{s(e)},[e]),v.jsxs("div",{className:xi.root,children:[v.jsx(Gt.HtmlContent,{className:xi.staticHtml,html:a}),v.jsx(V.Divider,{}),v.jsx(Bb,{body:n.body,title:n.title}),v.jsx(V.Divider,{}),v.jsx(zb,{cta:r.cta,portabilityBody:r.portabilityBody,portabilityCta:r.portabilityCta,portabilityTitle:r.portabilityTitle,title:r.title}),v.jsx(V.Divider,{}),v.jsx(nc,{body:t.body,cta:t.cta})]})},qb=({block:e})=>{const t=()=>{var o,u,c,d,p;return{cta:((o=e.privacyOptions)==null?void 0:o.cta)??"",portabilityBody:((u=e.privacyOptions)==null?void 0:u.portabilityBody)??"",portabilityCta:((c=e.privacyOptions)==null?void 0:c.portabilityCta)??"",portabilityTitle:((d=e.privacyOptions)==null?void 0:d.portabilityTitle)??"",title:((p=e.privacyOptions)==null?void 0:p.title)??""}},r=()=>{var o,u;return{body:((o=e.protection)==null?void 0:o.body)??"",title:((u=e.protection)==null?void 0:u.title)??""}},n=(e==null?void 0:e.body)??"",a=rc(e==null?void 0:e.contactFooter),s=t(),i=r();return v.jsx(tu,{body:n,contactFooter:a,privacyOptions:s,protection:i})},Kb="_root_issck_141",Hb={root:Kb},ao=({title:e})=>e?v.jsxs(v.Fragment,{children:[v.jsx(V.CardHeader,{className:Hb.root,as:"h2",headline:e}),v.jsx(V.Divider,{})]}):null,Gb="_root_1k7gy_141",Wb={root:Gb},Yb=({dynamicContent:e,onError:t,onSubmit:r})=>{var a;const n=pl(800);return v.jsxs(V.Card,{borderRadius:n,withoutPadding:!0,allowedElement:ao,className:Wb.root,children:[v.jsx(ao,{title:(a=e==null?void 0:e.cardHeader)==null?void 0:a.title}),v.jsx(V.CardBody,{withoutPadding:!0,children:e&&e.blocks.map((s,i)=>{switch(s.__component){case"core-components.sponsor-card":return v.jsx(T_,{block:s,isDesktop:n,onError:t??(()=>console.log("Error in SponsorCardForm")),onSubmit:r??(()=>console.log("Submit in SponsorCardForm"))},`${s.__component}_${i}`);case"core-components.persuasion-image-set":return v.jsx(ql,{block:s},`${s.__component}_${i}`);case"core-components.persuasion-content":return v.jsx(Fl,{block:s},`${s.__component}_${i}`);case"core-components.legal":return v.jsx(k_,{block:s},`${s.__component}_${i}`);case"core-components.privacy":return v.jsx(qb,{block:s},`${s.__component}_${i}`);case"core-components.accordion":return v.jsx(vl,{block:s},`${s.__component}_${i}`);case"landing-components.quote":return v.jsx(Yl,{block:s},`${s.__component}_${i}`)}})})]})};exports.DynamicRenderer=Yb;exports.LAYOUT_BLOCK=Xe;exports.Layout=Ga;exports.Legal=ac;exports.Privacy=tu;exports.SponsorCardForm=tc;
|
package/index.mjs
CHANGED
|
@@ -10165,14 +10165,17 @@ const hw = /* @__PURE__ */ Wn(fw);
|
|
|
10165
10165
|
new hw({ strict: !1 });
|
|
10166
10166
|
const pw = (e, t, r) => {
|
|
10167
10167
|
const n = /* @__PURE__ */ new Date();
|
|
10168
|
-
n.setTime(n.getTime() + r * 24 * 60 * 60 * 1e3), document.cookie = `${e}=${t};expires=${n.toUTCString()};path
|
|
10168
|
+
n.setTime(n.getTime() + r * 24 * 60 * 60 * 1e3), document.cookie = `${e}=${encodeURIComponent(t)};expires=${n.toUTCString()};path=/;SameSite=Lax;Secure`;
|
|
10169
10169
|
}, mw = (e) => {
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10170
|
+
try {
|
|
10171
|
+
const t = document.cookie.match(new RegExp(`(^|;\\s*)(${e})=([^;]*)`));
|
|
10172
|
+
return t ? decodeURIComponent(t[3]) : void 0;
|
|
10173
|
+
} catch (t) {
|
|
10174
|
+
console.warn("Error reading cookie:", t);
|
|
10175
|
+
return;
|
|
10176
|
+
}
|
|
10174
10177
|
}, yw = (e) => {
|
|
10175
|
-
document.cookie = `${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path
|
|
10178
|
+
document.cookie = `${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;SameSite=Lax;Secure`;
|
|
10176
10179
|
}, _w = () => {
|
|
10177
10180
|
const e = le(() => !!mw("_sp_optout"), []), t = le(() => {
|
|
10178
10181
|
yw("_sp_optout");
|