dsh-xiaomi-tts 5.4.0 → 5.5.0

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.
Files changed (52) hide show
  1. package/NOTICE +3 -0
  2. package/assets/ui/provider-deepseek-logo.svg +1 -0
  3. package/assets/ui/provider-deepseek.webp +0 -0
  4. package/lib/atomic-json-Cf3y_D2Y.js +2 -0
  5. package/lib/client.generated-voice-avatar.js +2 -0
  6. package/lib/client.js +57 -21
  7. package/lib/host/qqbot-identity.d.ts +1 -0
  8. package/lib/host/whale-persona.d.ts +2 -0
  9. package/lib/http-DuTRfFW8.js +1 -0
  10. package/lib/index.d.ts +8 -4
  11. package/lib/index.js +1 -1
  12. package/lib/passport/deepseek-asr.d.ts +2 -0
  13. package/lib/passport/recognition.d.ts +2 -1
  14. package/lib/passport.d.ts +2 -2
  15. package/lib/passport.js +3 -3
  16. package/lib/pcm-stream.js +1 -1
  17. package/lib/qqbot-agent.js +2 -2
  18. package/lib/{qqbot-delivery-signal-CQSuRIUH.js → qqbot-delivery-signal-CmYjEz0X.js} +1 -1
  19. package/lib/qqbot-media-DZ1u8_d7.js +1 -0
  20. package/lib/qqbot.js +1 -1
  21. package/lib/recognition-BGCOfwiR.js +1 -0
  22. package/lib/{shared-C2MqEdxx.js → shared-u6Tu2j3z.js} +7 -7
  23. package/lib/shared.js +1 -1
  24. package/lib/speech-agent-C04AoBGH.js +1 -0
  25. package/lib/speech-agent.js +1 -1
  26. package/lib/speech-host.js +1 -1
  27. package/lib/src-uEDOVOnQ.js +13 -0
  28. package/lib/types/passport.d.ts +2 -1
  29. package/lib/types/providers.d.ts +19 -3
  30. package/lib/types/settings.d.ts +12 -4
  31. package/lib/types/whale.d.ts +1 -0
  32. package/lib/{whale-BkV58Yzl.js → whale-CvB619AI.js} +1 -1
  33. package/lib/whale-agent.js +1 -1
  34. package/lib/whale-config-BHnJthPa.js +1 -0
  35. package/lib/whale-girl.js +1 -1
  36. package/locale/en.json +1 -1
  37. package/locale/passport/en.json +2 -2
  38. package/locale/passport/zh.json +2 -2
  39. package/locale/zh.json +1 -1
  40. package/open-api.md +12 -12
  41. package/package.json +1 -1
  42. package/lib/http-DP38Vijg.js +0 -1
  43. package/lib/qqbot-media-CJztFeHA.js +0 -1
  44. package/lib/recognition-BIv21Ob4.js +0 -1
  45. package/lib/session-speech-DmHx4Xmy.js +0 -2
  46. package/lib/speech-agent-BN3Ul_uh.js +0 -1
  47. package/lib/src-X-T6l0Yp.js +0 -11
  48. package/lib/whale-config-CKlhLqI0.js +0 -1
  49. package/locale/fr.json +0 -7
  50. package/locale/ja.json +0 -7
  51. package/locale/whale-girl/fr.json +0 -6
  52. package/locale/whale-girl/ja.json +0 -6
package/NOTICE CHANGED
@@ -14,6 +14,9 @@ and character usage terms. This package's dialogue and voice instructions
14
14
  are independently written; no upstream images or template files are bundled
15
15
  by this preset update.
16
16
 
17
+ DeepSeek logo asset: Simple Icons, https://simpleicons.org/?q=deepseek
18
+ The DeepSeek mark identifies the voice service.
19
+
17
20
  Voice Studio title: Zen Maru Gothic Black (subset embedded in the client stylesheet).
18
21
  Copyright 2021 The Zen Maru Gothic Project Authors.
19
22
  https://github.com/googlefonts/zen-marugothic
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>DeepSeek</title><path fill="#5786FE" d="M23.748 4.651c-.254-.124-.364.113-.512.233-.051.04-.094.09-.137.137-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.155-.708-.311-.955-.65-.172-.24-.219-.509-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.094.172.187.129.323-.082.28-.18.553-.266.833-.055.179-.137.218-.328.14a5.5 5.5 0 0 1-1.737-1.179c-.857-.828-1.631-1.743-2.597-2.46a12 12 0 0 0-.689-.47c-.985-.957.13-1.743.387-1.836.27-.098.094-.433-.778-.428-.872.003-1.67.295-2.687.685a3 3 0 0 1-.465.136 9.6 9.6 0 0 0-2.883-.101c-1.885.21-3.39 1.1-4.497 2.622C.082 8.776-.231 10.854.152 13.02c.403 2.284 1.568 4.175 3.36 5.653 1.857 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.132-.284 4.994-1.86.47.234.962.328 1.78.398.629.058 1.235-.031 1.705-.129.735-.155.684-.836.418-.961-2.155-1.004-1.682-.595-2.112-.926 1.095-1.295 2.768-3.598 3.284-6.733.05-.346.115-.834.108-1.114-.004-.171.035-.238.23-.257a4.2 4.2 0 0 0 1.545-.475c1.397-.763 1.96-2.016 2.093-3.517.02-.23-.004-.467-.247-.588M11.58 18.168c-2.088-1.642-3.101-2.183-3.52-2.16-.39.024-.32.472-.234.763.09.288.207.487.371.74.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.168-1.361-.801-2.5-1.86-3.301-3.306-.775-1.393-1.225-2.888-1.299-4.482-.02-.385.094-.522.477-.592a4.7 4.7 0 0 1 1.53-.038c2.131.311 3.946 1.264 5.467 2.774.868.86 1.525 1.887 2.202 2.89.72 1.066 1.494 2.082 2.48 2.915.348.291.626.513.892.677-.802.09-2.14.109-3.055-.615zm1.001-6.44a.306.306 0 0 1 .415-.287.3.3 0 0 1 .113.074.3.3 0 0 1 .086.214c0 .17-.136.307-.308.307a.303.303 0 0 1-.306-.307m3.11 1.596c-.2.081-.4.151-.591.16a1.25 1.25 0 0 1-.798-.254c-.274-.23-.47-.358-.551-.758a1.7 1.7 0 0 1 .015-.588c.07-.327-.007-.537-.238-.727-.188-.156-.426-.199-.689-.199a.6.6 0 0 1-.254-.078.253.253 0 0 1-.114-.358 1 1 0 0 1 .192-.21c.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.392.451.462.576.685.915.176.264.336.536.446.848.066.194-.02.353-.25.45"/></svg>
Binary file
@@ -0,0 +1,2 @@
1
+ import"./rolldown-runtime-BBpq2li6.js";import{j as e}from"./shared-u6Tu2j3z.js";import{t}from"./provider-error-6deX9eJ1.js";import{randomUUID as n}from"node:crypto";import{mkdir as r,rename as i,rm as a,writeFile as o}from"node:fs/promises";var SessionSpeech=class{service;store;options;delivered;failed;states=new Map;pending=new Set;disposed=!1;constructor(e,t,n,r,i){this.service=e,this.store=t,this.options=n,this.delivered=r,this.failed=i}state(e){if(this.disposed)throw new t(`speech-agent-disposed`);let n=this.states.get(e);if(n)return n;n={agent:e,mode:this.options.defaultMode,ready:Promise.resolve(),turn:-1,seq:-1,ended:!0,text:``,manual:!1,eligible:!1,controller:new AbortController,pending:new Set,writes:Promise.resolve(),modeRevision:0};let r=n;return this.options.sourceControlled||(n.ready=this.store.load(e.id,n.mode).then(e=>{r.mode=e}).catch(()=>{this.failed(`speech-mode-read-failed`,e,!1)})),this.states.set(e,n),n}track(e,t){e.pending.add(t),this.pending.add(t);let done=()=>{e.pending.delete(t),this.pending.delete(t)};return t.then(done,done),t}async mode(e,n){let r=this.state(e);if(await r.ready,this.disposed||this.states.get(e)!==r)throw new t(`speech-agent-disposed`);if(this.options.sourceControlled){if(n!==`status`)throw new t(`speech-mode-source-controlled`,`Automatic speech is controlled by the plugin integration setting.`,409);return{mode:this.service.isAutomaticDeliveryEnabled(this.options.delivery)?`auto`:`manual`,delivery:this.options.delivery,available:this.service.hasDelivery(this.options.delivery)}}if(n!==`status`){if(n===`auto`&&!this.service.hasDelivery(this.options.delivery))throw new t(`speech-delivery-unavailable`);let i=++r.modeRevision;n===`manual`&&(r.mode=`manual`,r.controller.abort(),r.controller=new AbortController,r.manual=!0);let a=r.writes.catch(()=>{}).then(async()=>{await this.store.save(e.id,n),!this.disposed&&this.states.get(e)===r&&r.modeRevision===i&&(r.mode=n)});r.writes=a,await a}return{mode:r.mode,delivery:this.options.delivery,available:this.service.hasDelivery(this.options.delivery)}}async say(e,n){let r=this.state(e);if(this.options.turnScoped&&!this.admitted(e))throw new t(`qqbot-voice-unavailable`,`This turn has no QQ voice delivery route.`,409);r.manual=!0;let i=n.signal?AbortSignal.any([n.signal,r.controller.signal]):r.controller.signal,a=this.options.sourceControlled?{text:n.text,...n.provider===void 0?{}:{provider:n.provider},...n.speechInstruction===void 0?{}:{speechInstruction:n.speechInstruction}}:n;try{let t={agent:e,signal:i,...r.validateRoute?{validateRoute:r.validateRoute}:{}},n=await this.track(r,this.service.deliver({...a,format:`wav`,...this.requestPolicy(),signal:i},this.options.delivery,t));return i.throwIfAborted(),this.delivered(e,n,!1),n}catch(n){throw i.aborted||this.failed(n instanceof t?n.code:`speech-delivery-failed`,e,!1),n}}admit(e,t,n){let r=this.states.get(e);return r?.turn!==t||r.ended?!1:(r.eligible=!0,r.validateRoute=n,!0)}revoke(e,t){let n=this.states.get(e);n?.turn===t&&n.eligible&&(n.eligible=!1,n.controller.abort())}admitted(e,t){let n=this.states.get(e);return n?.eligible===!0&&(t===void 0?!n.ended:n.turn===t)}observe(n,r,i=!1){if(this.disposed||n.session.header.origin===`subagent`)return;let a=r.type===`turn/start`?this.state(n):this.states.get(n);if(a&&!(r.seq<=a.seq)){if(a.seq=r.seq,r.type===`turn/start`){if(r.data.turn<=a.turn)return;a.controller.abort(),a.controller=new AbortController,a.turn=r.data.turn,a.ended=!1,a.text=``,a.manual=!1,a.eligible=!this.options.turnScoped,delete a.validateRoute}else if(r.type===`assistant/message`&&r.data.turn===a.turn&&!a.ended){let t=r.data.message.content;a.text=r.data.interrupted||t.some(e=>e.type===`tool-call`)?``:e(t.filter(e=>e.type===`text`).map(e=>e.text).join(`
2
+ `))}else if(r.type===`turn/end`&&r.data.turn===a.turn&&!a.ended){if(a.ended=!0,r.data.reason.kind!==`completed`){a.controller.abort();return}let{text:e,controller:o,validateRoute:s}=a;if(i||!a.eligible||!e||this.options.maxAutoCharacters>0&&[...e].length>this.options.maxAutoCharacters)return;let run=async()=>{await a.ready;let t=this.options.sourceControlled?this.service.isAutomaticDeliveryEnabled(this.options.delivery):a.mode===`auto`;if(o.signal.aborted||this.disposed||!t||a.manual||!this.service.hasDelivery(this.options.delivery))return;let r=await this.service.deliver({text:e,format:`wav`,...this.requestPolicy(),signal:o.signal},this.options.delivery,{agent:n,signal:o.signal,...this.options.sourceControlled?{automatic:!0}:{},...s?{validateRoute:s}:{}});o.signal.throwIfAborted(),this.delivered(n,r,!0)};this.track(a,run()).catch(e=>{o.signal.aborted||this.failed(e instanceof t?e.code:`speech-delivery-failed`,n,!0)})}}}requestPolicy(){return{...this.options.maxDurationMs>0?{maxDurationMs:this.options.maxDurationMs}:{},...this.options.sourceControlled?{splitLongText:!0}:{}}}release(e){this.states.get(e)?.controller.abort(),this.states.delete(e)}async dispose(){this.disposed=!0;let e=[...this.states.values()];for(let t of e)t.controller.abort();await Promise.allSettled([...this.pending,...e.flatMap(e=>[e.writes,e.ready])]),this.states.clear()}};async function writeAtomicJson(e,t,s){await r(e,{recursive:!0});let c=`${t}.${n()}.tmp`;try{await o(c,JSON.stringify(s),{flag:`wx`,mode:384}),await i(c,t)}finally{await a(c,{force:!0})}}export{SessionSpeech as n,writeAtomicJson as t};
@@ -0,0 +1,2 @@
1
+ window.__ModuleLoader__.load({id:`dsh-xiaomi-tts`,chunk:`client.generated-voice-avatar.js`,factory:e=>{var t={exports:{}},n=t.exports;Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var r=Object.defineProperty,__name=(e,t)=>r(e,`name`,{value:t,configurable:!0});let i=e("react"),a=e("react/jsx-runtime");var ValidationError=class extends Error{constructor(e,t){let n=[];for(let e of t){let t=[];e.instancePath&&t.push(e.instancePath),e.message&&t.push(e.message),n.push(t.join(` `))}super(`${e}: ${n.join(`, `)}`),this.name=`ValidationError`,this.details=t}},StyleValidationError=class extends ValidationError{constructor(e){super(`Invalid style definition`,e),this.name=`StyleValidationError`}};let o=(function(){"use strict";let e=Function.prototype.call.bind(Object.prototype.hasOwnProperty),stringLength=e=>/[\uD800-\uDFFF]/.test(e)?[...e].length:e.length,t=RegExp(`^https?:\\/\\/`,`u`),n=function validate(e){validate.errors=null;let n=0;if(typeof e!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{let r=n;e.length>2048&&stringLength(e)>2048&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),n++),n===r&&(t.test(e)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),n++))}return n===0},errorMerge=({keywordLocation:e,instanceLocation:t},n,r)=>({keywordLocation:`${n}${e.slice(1)}`,instanceLocation:`${r}${t.slice(1)}`}),pointerPart=e=>/~\//.test(e)?`${e}`.replace(/~/g,`~0`).replace(/\//g,`~1`):e,r=RegExp(`[uU][rR][lL][ \\t\\n\\f\\r]*\\([ \\t\\n\\f\\r]*[^#) \\t\\n\\f\\r]`,`u`),i=RegExp(`[eE][xX][pP][rR][eE][sS][sS][iI][oO][nN][ \\t\\n\\f\\r]*\\(`,`u`),a=RegExp(`[bB][eE][hH][aA][vV][iI][oO][rR][ \\t\\n\\f\\r]*:`,`u`),o=RegExp(`-[mM][oO][zZ]-[bB][iI][nN][dD][iI][nN][gG]`,`u`),s=RegExp(`[jJ][aA][vV][aA][sS][cC][rR][iI][pP][tT][ \\t\\n\\f\\r]*:`,`u`),c=RegExp(`[vV][bB][sS][cC][rR][iI][pP][tT][ \\t\\n\\f\\r]*:`,`u`),l=RegExp(`\\\\`,`u`),u=function validate(e){validate.errors=null;let t=0;return typeof e==`string`?(e.length>16384&&stringLength(e)>16384&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),t++),(()=>{let t=0,n=null;return(()=>{let t=0;return t===t&&(r.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/0/pattern`,instanceLocation:`#`}),t++)),t===0})()||(()=>{let t=0;return t===t&&(i.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/1/pattern`,instanceLocation:`#`}),t++)),t===0})()||(()=>{let t=0;return t===t&&(a.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/2/pattern`,instanceLocation:`#`}),t++)),t===0})()||(()=>{let t=0;return t===t&&(o.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/3/pattern`,instanceLocation:`#`}),t++)),t===0})()||(()=>{let t=0;return t===t&&(s.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/4/pattern`,instanceLocation:`#`}),t++)),t===0})()||(()=>{let t=0;return t===t&&(c.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/5/pattern`,instanceLocation:`#`}),t++)),t===0})()||(()=>{let t=0;return t===t&&(l.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/6/pattern`,instanceLocation:`#`}),t++)),t===0})()||t++,t===0})()&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/not`,instanceLocation:`#`}),t++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},d=function validate(e){validate.errors=null;let t=0;if(typeof e!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++;else{e.length>1024&&stringLength(e)>1024&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),t++);let n=validate.errors,r=u(e),i=u.errors;validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/allOf/0/$ref`,`#`))),t++)}return t===0},f=RegExp(`^[a-z][a-zA-Z0-9]*$`,`u`),p=function validate(e){validate.errors=null;let t=0;if(typeof e!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++;else{let n=t;e.length>64&&stringLength(e)>64&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),t++),t===n&&(f.test(e)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),t++))}return t===0},m=function validate(e){validate.errors=null;let t=0,n=validate.errors,r=p(e),i=p.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/allOf/0/$ref`,`#`))),t++),t===0},h=function validate(t){validate.errors=null;let n=0,r=null;return(()=>{let e=0,n=validate.errors,r=d(t),i=d.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/anyOf/0/$ref`,`#`))),e++),e===0})()||(()=>{let n=0;if(typeof t!=`object`||!t||Array.isArray(t))r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/type`,instanceLocation:`#`}),n++;else{if(t.type!==void 0&&e(t,`type`)||(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/required`,instanceLocation:`#/type`}),n++),t.name!==void 0&&e(t,`name`)||(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/required`,instanceLocation:`#/name`}),n++),t.type!==void 0&&e(t,`type`)&&t.type!==`color`&&(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/properties/type/const`,instanceLocation:`#/type`}),n++),t.name!==void 0&&e(t,`name`)){let e=validate.errors,r=m(t.name),i=m.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/anyOf/1/properties/name/$ref`,`#/name`))),n++)}for(let e of Object.keys(t))e!==`type`&&e!==`name`&&(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),r&&validate.errors.push(...r),n++),n===0},g=function validate(e){validate.errors=null;let t=0;if(typeof e!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++;else{e.length>16384&&stringLength(e)>16384&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),t++);let n=validate.errors,r=u(e),i=u.errors;validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/allOf/0/$ref`,`#`))),t++)}return t===0},ee=RegExp(`^#[a-zA-Z_][a-zA-Z0-9_.-]*$`,`u`),_=RegExp(`^data:image\\/(png|gif|jpeg|webp|avif);base64,[a-zA-Z0-9+/=]+$`,`u`),v=RegExp(`@[iI][mM][pP][oO][rR][tT]`,`u`),y=RegExp(`@[fF][oO][nN][tT]-[fF][aA][cC][eE]`,`u`),b=RegExp(`@[dD][oO][cC][uU][mM][eE][nN][tT]`,`u`),x=RegExp(`@[cC][hH][aA][rR][sS][eE][tT]`,`u`),S=function validate(e){validate.errors=null;let t=0;if(typeof e!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++;else{e.length>4096&&stringLength(e)>4096&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),t++),(()=>{let t=0,n=null;return(()=>{let t=0;return t===t&&(v.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/0/pattern`,instanceLocation:`#`}),t++)),t===0})()||(()=>{let t=0;return t===t&&(y.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/1/pattern`,instanceLocation:`#`}),t++)),t===0})()||(()=>{let t=0;return t===t&&(b.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/2/pattern`,instanceLocation:`#`}),t++)),t===0})()||(()=>{let t=0;return t===t&&(x.test(e)||(n===null&&(n=[]),n.push({keywordLocation:`#/not/anyOf/3/pattern`,instanceLocation:`#`}),t++)),t===0})()||t++,t===0})()&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/not`,instanceLocation:`#`}),t++);let n=validate.errors,r=u(e),i=u.errors;validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/allOf/0/$ref`,`#`))),t++)}return t===0},C=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{if(t[`alignment-baseline`]!==void 0&&e(t,`alignment-baseline`)){let e=validate.errors,r=d(t[`alignment-baseline`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/alignment-baseline/$ref`,`#/alignment-baseline`))),n++)}if(t.amplitude!==void 0&&e(t,`amplitude`)){let e=validate.errors,r=d(t.amplitude),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/amplitude/$ref`,`#/amplitude`))),n++)}if(t.azimuth!==void 0&&e(t,`azimuth`)){let e=validate.errors,r=d(t.azimuth),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/azimuth/$ref`,`#/azimuth`))),n++)}if(t.baseFrequency!==void 0&&e(t,`baseFrequency`)){let e=validate.errors,r=d(t.baseFrequency),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/baseFrequency/$ref`,`#/baseFrequency`))),n++)}if(t[`baseline-shift`]!==void 0&&e(t,`baseline-shift`)){let e=validate.errors,r=d(t[`baseline-shift`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/baseline-shift/$ref`,`#/baseline-shift`))),n++)}if(t.bias!==void 0&&e(t,`bias`)){let e=validate.errors,r=d(t.bias),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/bias/$ref`,`#/bias`))),n++)}if(t.class!==void 0&&e(t,`class`)){let e=validate.errors,r=d(t.class),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/class/$ref`,`#/class`))),n++)}if(t.clipPathUnits!==void 0&&e(t,`clipPathUnits`)){let e=validate.errors,r=d(t.clipPathUnits),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/clipPathUnits/$ref`,`#/clipPathUnits`))),n++)}if(t[`clip-path`]!==void 0&&e(t,`clip-path`)){let e=validate.errors,r=d(t[`clip-path`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/clip-path/$ref`,`#/clip-path`))),n++)}if(t[`clip-rule`]!==void 0&&e(t,`clip-rule`)){let e=validate.errors,r=d(t[`clip-rule`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/clip-rule/$ref`,`#/clip-rule`))),n++)}if(t.color!==void 0&&e(t,`color`)){let e=validate.errors,r=h(t.color),i=h.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/color/$ref`,`#/color`))),n++)}if(t[`color-interpolation`]!==void 0&&e(t,`color-interpolation`)){let e=validate.errors,r=d(t[`color-interpolation`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/color-interpolation/$ref`,`#/color-interpolation`))),n++)}if(t[`color-interpolation-filters`]!==void 0&&e(t,`color-interpolation-filters`)){let e=validate.errors,r=d(t[`color-interpolation-filters`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/color-interpolation-filters/$ref`,`#/color-interpolation-filters`))),n++)}if(t.crossorigin!==void 0&&e(t,`crossorigin`)){let e=validate.errors,r=d(t.crossorigin),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/crossorigin/$ref`,`#/crossorigin`))),n++)}if(t.cx!==void 0&&e(t,`cx`)){let e=validate.errors,r=d(t.cx),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/cx/$ref`,`#/cx`))),n++)}if(t.cy!==void 0&&e(t,`cy`)){let e=validate.errors,r=d(t.cy),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/cy/$ref`,`#/cy`))),n++)}if(t.d!==void 0&&e(t,`d`)){let e=validate.errors,r=g(t.d),i=g.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/d/$ref`,`#/d`))),n++)}if(t.decoding!==void 0&&e(t,`decoding`)){let e=validate.errors,r=d(t.decoding),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/decoding/$ref`,`#/decoding`))),n++)}if(t.diffuseConstant!==void 0&&e(t,`diffuseConstant`)){let e=validate.errors,r=d(t.diffuseConstant),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/diffuseConstant/$ref`,`#/diffuseConstant`))),n++)}if(t.direction!==void 0&&e(t,`direction`)){let e=validate.errors,r=d(t.direction),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/direction/$ref`,`#/direction`))),n++)}if(t.display!==void 0&&e(t,`display`)){let e=validate.errors,r=d(t.display),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/display/$ref`,`#/display`))),n++)}if(t.divisor!==void 0&&e(t,`divisor`)){let e=validate.errors,r=d(t.divisor),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/divisor/$ref`,`#/divisor`))),n++)}if(t[`dominant-baseline`]!==void 0&&e(t,`dominant-baseline`)){let e=validate.errors,r=d(t[`dominant-baseline`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/dominant-baseline/$ref`,`#/dominant-baseline`))),n++)}if(t.dx!==void 0&&e(t,`dx`)){let e=validate.errors,r=d(t.dx),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/dx/$ref`,`#/dx`))),n++)}if(t.dy!==void 0&&e(t,`dy`)){let e=validate.errors,r=d(t.dy),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/dy/$ref`,`#/dy`))),n++)}if(t.edgeMode!==void 0&&e(t,`edgeMode`)){let e=validate.errors,r=d(t.edgeMode),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/edgeMode/$ref`,`#/edgeMode`))),n++)}if(t.elevation!==void 0&&e(t,`elevation`)){let e=validate.errors,r=d(t.elevation),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/elevation/$ref`,`#/elevation`))),n++)}if(t.exponent!==void 0&&e(t,`exponent`)){let e=validate.errors,r=d(t.exponent),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/exponent/$ref`,`#/exponent`))),n++)}if(t.fill!==void 0&&e(t,`fill`)){let e=validate.errors,r=h(t.fill),i=h.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/fill/$ref`,`#/fill`))),n++)}if(t[`fill-opacity`]!==void 0&&e(t,`fill-opacity`)){let e=validate.errors,r=d(t[`fill-opacity`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/fill-opacity/$ref`,`#/fill-opacity`))),n++)}if(t[`fill-rule`]!==void 0&&e(t,`fill-rule`)){let e=validate.errors,r=d(t[`fill-rule`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/fill-rule/$ref`,`#/fill-rule`))),n++)}if(t.filter!==void 0&&e(t,`filter`)){let e=validate.errors,r=d(t.filter),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/filter/$ref`,`#/filter`))),n++)}if(t.filterUnits!==void 0&&e(t,`filterUnits`)){let e=validate.errors,r=d(t.filterUnits),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/filterUnits/$ref`,`#/filterUnits`))),n++)}if(t[`flood-color`]!==void 0&&e(t,`flood-color`)){let e=validate.errors,r=h(t[`flood-color`]),i=h.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/flood-color/$ref`,`#/flood-color`))),n++)}if(t[`flood-opacity`]!==void 0&&e(t,`flood-opacity`)){let e=validate.errors,r=d(t[`flood-opacity`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/flood-opacity/$ref`,`#/flood-opacity`))),n++)}if(t[`font-family`]!==void 0&&e(t,`font-family`)){let r=null;(()=>{let e=0,n=validate.errors,r=d(t[`font-family`]),i=d.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/font-family/anyOf/0/$ref`,`#/font-family`))),e++),e===0})()||(()=>{let n=0;if(typeof t[`font-family`]!=`object`||!t[`font-family`]||Array.isArray(t[`font-family`]))r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-family/anyOf/1/type`,instanceLocation:`#/font-family`}),n++;else{t[`font-family`].type!==void 0&&e(t[`font-family`],`type`)||(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-family/anyOf/1/required`,instanceLocation:`#/font-family/type`}),n++),t[`font-family`].name!==void 0&&e(t[`font-family`],`name`)||(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-family/anyOf/1/required`,instanceLocation:`#/font-family/name`}),n++),t[`font-family`].type!==void 0&&e(t[`font-family`],`type`)&&t[`font-family`].type!==`variable`&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-family/anyOf/1/properties/type/const`,instanceLocation:`#/font-family/type`}),n++),t[`font-family`].name!==void 0&&e(t[`font-family`],`name`)&&t[`font-family`].name!==`fontFamily`&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-family/anyOf/1/properties/name/const`,instanceLocation:`#/font-family/name`}),n++);for(let e of Object.keys(t[`font-family`]))e!==`type`&&e!==`name`&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-family/anyOf/1/additionalProperties`,instanceLocation:`#/font-family/`+pointerPart(e)}),n++)}return n===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/font-family/anyOf`,instanceLocation:`#/font-family`}),r&&validate.errors.push(...r),n++)}if(t[`font-size`]!==void 0&&e(t,`font-size`)){let e=validate.errors,r=d(t[`font-size`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/font-size/$ref`,`#/font-size`))),n++)}if(t[`font-size-adjust`]!==void 0&&e(t,`font-size-adjust`)){let e=validate.errors,r=d(t[`font-size-adjust`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/font-size-adjust/$ref`,`#/font-size-adjust`))),n++)}if(t[`font-style`]!==void 0&&e(t,`font-style`)){let e=validate.errors,r=d(t[`font-style`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/font-style/$ref`,`#/font-style`))),n++)}if(t[`font-variant`]!==void 0&&e(t,`font-variant`)){let e=validate.errors,r=d(t[`font-variant`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/font-variant/$ref`,`#/font-variant`))),n++)}if(t[`font-weight`]!==void 0&&e(t,`font-weight`)){let r=null;(()=>{let e=0,n=validate.errors,r=d(t[`font-weight`]),i=d.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/font-weight/anyOf/0/$ref`,`#/font-weight`))),e++),e===0})()||(()=>{let n=0;if(typeof t[`font-weight`]!=`object`||!t[`font-weight`]||Array.isArray(t[`font-weight`]))r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-weight/anyOf/1/type`,instanceLocation:`#/font-weight`}),n++;else{t[`font-weight`].type!==void 0&&e(t[`font-weight`],`type`)||(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-weight/anyOf/1/required`,instanceLocation:`#/font-weight/type`}),n++),t[`font-weight`].name!==void 0&&e(t[`font-weight`],`name`)||(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-weight/anyOf/1/required`,instanceLocation:`#/font-weight/name`}),n++),t[`font-weight`].type!==void 0&&e(t[`font-weight`],`type`)&&t[`font-weight`].type!==`variable`&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-weight/anyOf/1/properties/type/const`,instanceLocation:`#/font-weight/type`}),n++),t[`font-weight`].name!==void 0&&e(t[`font-weight`],`name`)&&t[`font-weight`].name!==`fontWeight`&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-weight/anyOf/1/properties/name/const`,instanceLocation:`#/font-weight/name`}),n++);for(let e of Object.keys(t[`font-weight`]))e!==`type`&&e!==`name`&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/font-weight/anyOf/1/additionalProperties`,instanceLocation:`#/font-weight/`+pointerPart(e)}),n++)}return n===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/font-weight/anyOf`,instanceLocation:`#/font-weight`}),r&&validate.errors.push(...r),n++)}if(t.fx!==void 0&&e(t,`fx`)){let e=validate.errors,r=d(t.fx),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/fx/$ref`,`#/fx`))),n++)}if(t.fy!==void 0&&e(t,`fy`)){let e=validate.errors,r=d(t.fy),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/fy/$ref`,`#/fy`))),n++)}if(t.gradientTransform!==void 0&&e(t,`gradientTransform`)){let e=validate.errors,r=d(t.gradientTransform),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/gradientTransform/$ref`,`#/gradientTransform`))),n++)}if(t.gradientUnits!==void 0&&e(t,`gradientUnits`)){let e=validate.errors,r=d(t.gradientUnits),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/gradientUnits/$ref`,`#/gradientUnits`))),n++)}if(t.height!==void 0&&e(t,`height`)){let e=validate.errors,r=d(t.height),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/height/$ref`,`#/height`))),n++)}if(t.href!==void 0&&e(t,`href`)){let e=null;(()=>{let n=0;if(typeof t.href!=`string`)e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/0/type`,instanceLocation:`#/href`}),n++;else{let r=n;t.href.length>128&&stringLength(t.href)>128&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/0/maxLength`,instanceLocation:`#/href`}),n++),n===r&&(ee.test(t.href)||(e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/0/pattern`,instanceLocation:`#/href`}),n++))}return n===0})()||(()=>{let n=0;if(typeof t.href!=`string`)e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/1/type`,instanceLocation:`#/href`}),n++;else{let r=n;t.href.length>262144&&stringLength(t.href)>262144&&(e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/1/maxLength`,instanceLocation:`#/href`}),n++),n===r&&(_.test(t.href)||(e===null&&(e=[]),e.push({keywordLocation:`#/properties/href/anyOf/1/pattern`,instanceLocation:`#/href`}),n++))}return n===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/href/anyOf`,instanceLocation:`#/href`}),e&&validate.errors.push(...e),n++)}if(t.id!==void 0&&e(t,`id`)){let e=validate.errors,r=d(t.id),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/id/$ref`,`#/id`))),n++)}if(t[`image-rendering`]!==void 0&&e(t,`image-rendering`)){let e=validate.errors,r=d(t[`image-rendering`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/image-rendering/$ref`,`#/image-rendering`))),n++)}if(t.in!==void 0&&e(t,`in`)){let e=validate.errors,r=d(t.in),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/in/$ref`,`#/in`))),n++)}if(t.in2!==void 0&&e(t,`in2`)){let e=validate.errors,r=d(t.in2),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/in2/$ref`,`#/in2`))),n++)}if(t.intercept!==void 0&&e(t,`intercept`)){let e=validate.errors,r=d(t.intercept),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/intercept/$ref`,`#/intercept`))),n++)}if(t.k1!==void 0&&e(t,`k1`)){let e=validate.errors,r=d(t.k1),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/k1/$ref`,`#/k1`))),n++)}if(t.k2!==void 0&&e(t,`k2`)){let e=validate.errors,r=d(t.k2),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/k2/$ref`,`#/k2`))),n++)}if(t.k3!==void 0&&e(t,`k3`)){let e=validate.errors,r=d(t.k3),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/k3/$ref`,`#/k3`))),n++)}if(t.k4!==void 0&&e(t,`k4`)){let e=validate.errors,r=d(t.k4),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/k4/$ref`,`#/k4`))),n++)}if(t.kernelMatrix!==void 0&&e(t,`kernelMatrix`)){let e=validate.errors,r=d(t.kernelMatrix),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/kernelMatrix/$ref`,`#/kernelMatrix`))),n++)}if(t.kernelUnitLength!==void 0&&e(t,`kernelUnitLength`)){let e=validate.errors,r=d(t.kernelUnitLength),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/kernelUnitLength/$ref`,`#/kernelUnitLength`))),n++)}if(t.lang!==void 0&&e(t,`lang`)){let e=validate.errors,r=d(t.lang),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/lang/$ref`,`#/lang`))),n++)}if(t.lengthAdjust!==void 0&&e(t,`lengthAdjust`)){let e=validate.errors,r=d(t.lengthAdjust),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/lengthAdjust/$ref`,`#/lengthAdjust`))),n++)}if(t[`letter-spacing`]!==void 0&&e(t,`letter-spacing`)){let e=validate.errors,r=d(t[`letter-spacing`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/letter-spacing/$ref`,`#/letter-spacing`))),n++)}if(t[`lighting-color`]!==void 0&&e(t,`lighting-color`)){let e=validate.errors,r=h(t[`lighting-color`]),i=h.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/lighting-color/$ref`,`#/lighting-color`))),n++)}if(t[`marker-end`]!==void 0&&e(t,`marker-end`)){let e=validate.errors,r=d(t[`marker-end`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/marker-end/$ref`,`#/marker-end`))),n++)}if(t[`marker-mid`]!==void 0&&e(t,`marker-mid`)){let e=validate.errors,r=d(t[`marker-mid`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/marker-mid/$ref`,`#/marker-mid`))),n++)}if(t[`marker-start`]!==void 0&&e(t,`marker-start`)){let e=validate.errors,r=d(t[`marker-start`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/marker-start/$ref`,`#/marker-start`))),n++)}if(t.markerHeight!==void 0&&e(t,`markerHeight`)){let e=validate.errors,r=d(t.markerHeight),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/markerHeight/$ref`,`#/markerHeight`))),n++)}if(t.markerUnits!==void 0&&e(t,`markerUnits`)){let e=validate.errors,r=d(t.markerUnits),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/markerUnits/$ref`,`#/markerUnits`))),n++)}if(t.markerWidth!==void 0&&e(t,`markerWidth`)){let e=validate.errors,r=d(t.markerWidth),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/markerWidth/$ref`,`#/markerWidth`))),n++)}if(t.mask!==void 0&&e(t,`mask`)){let e=validate.errors,r=d(t.mask),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/mask/$ref`,`#/mask`))),n++)}if(t.maskContentUnits!==void 0&&e(t,`maskContentUnits`)){let e=validate.errors,r=d(t.maskContentUnits),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/maskContentUnits/$ref`,`#/maskContentUnits`))),n++)}if(t.maskUnits!==void 0&&e(t,`maskUnits`)){let e=validate.errors,r=d(t.maskUnits),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/maskUnits/$ref`,`#/maskUnits`))),n++)}if(t.media!==void 0&&e(t,`media`)){let e=validate.errors,r=d(t.media),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/media/$ref`,`#/media`))),n++)}if(t.method!==void 0&&e(t,`method`)){let e=validate.errors,r=d(t.method),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/method/$ref`,`#/method`))),n++)}if(t.mode!==void 0&&e(t,`mode`)){let e=validate.errors,r=d(t.mode),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/mode/$ref`,`#/mode`))),n++)}if(t.numOctaves!==void 0&&e(t,`numOctaves`)){let e=validate.errors,r=d(t.numOctaves),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/numOctaves/$ref`,`#/numOctaves`))),n++)}if(t.offset!==void 0&&e(t,`offset`)){let e=validate.errors,r=d(t.offset),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/offset/$ref`,`#/offset`))),n++)}if(t.opacity!==void 0&&e(t,`opacity`)){let e=validate.errors,r=d(t.opacity),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/opacity/$ref`,`#/opacity`))),n++)}if(t.operator!==void 0&&e(t,`operator`)){let e=validate.errors,r=d(t.operator),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/operator/$ref`,`#/operator`))),n++)}if(t.order!==void 0&&e(t,`order`)){let e=validate.errors,r=d(t.order),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/order/$ref`,`#/order`))),n++)}if(t.orient!==void 0&&e(t,`orient`)){let e=validate.errors,r=d(t.orient),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/orient/$ref`,`#/orient`))),n++)}if(t.overflow!==void 0&&e(t,`overflow`)){let e=validate.errors,r=d(t.overflow),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/overflow/$ref`,`#/overflow`))),n++)}if(t[`paint-order`]!==void 0&&e(t,`paint-order`)){let e=validate.errors,r=d(t[`paint-order`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/paint-order/$ref`,`#/paint-order`))),n++)}if(t.path!==void 0&&e(t,`path`)){let e=validate.errors,r=d(t.path),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/path/$ref`,`#/path`))),n++)}if(t.pathLength!==void 0&&e(t,`pathLength`)){let e=validate.errors,r=d(t.pathLength),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/pathLength/$ref`,`#/pathLength`))),n++)}if(t.patternContentUnits!==void 0&&e(t,`patternContentUnits`)){let e=validate.errors,r=d(t.patternContentUnits),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/patternContentUnits/$ref`,`#/patternContentUnits`))),n++)}if(t.patternTransform!==void 0&&e(t,`patternTransform`)){let e=validate.errors,r=d(t.patternTransform),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/patternTransform/$ref`,`#/patternTransform`))),n++)}if(t.patternUnits!==void 0&&e(t,`patternUnits`)){let e=validate.errors,r=d(t.patternUnits),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/patternUnits/$ref`,`#/patternUnits`))),n++)}if(t.points!==void 0&&e(t,`points`)){let e=validate.errors,r=d(t.points),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/points/$ref`,`#/points`))),n++)}if(t.preserveAlpha!==void 0&&e(t,`preserveAlpha`)){let e=validate.errors,r=d(t.preserveAlpha),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/preserveAlpha/$ref`,`#/preserveAlpha`))),n++)}if(t.preserveAspectRatio!==void 0&&e(t,`preserveAspectRatio`)){let e=validate.errors,r=d(t.preserveAspectRatio),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/preserveAspectRatio/$ref`,`#/preserveAspectRatio`))),n++)}if(t.primitiveUnits!==void 0&&e(t,`primitiveUnits`)){let e=validate.errors,r=d(t.primitiveUnits),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/primitiveUnits/$ref`,`#/primitiveUnits`))),n++)}if(t.r!==void 0&&e(t,`r`)){let e=validate.errors,r=d(t.r),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/r/$ref`,`#/r`))),n++)}if(t.radius!==void 0&&e(t,`radius`)){let e=validate.errors,r=d(t.radius),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/radius/$ref`,`#/radius`))),n++)}if(t.refX!==void 0&&e(t,`refX`)){let e=validate.errors,r=d(t.refX),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/refX/$ref`,`#/refX`))),n++)}if(t.refY!==void 0&&e(t,`refY`)){let e=validate.errors,r=d(t.refY),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/refY/$ref`,`#/refY`))),n++)}if(t.result!==void 0&&e(t,`result`)){let e=validate.errors,r=d(t.result),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/result/$ref`,`#/result`))),n++)}if(t.rx!==void 0&&e(t,`rx`)){let e=validate.errors,r=d(t.rx),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/rx/$ref`,`#/rx`))),n++)}if(t.ry!==void 0&&e(t,`ry`)){let e=validate.errors,r=d(t.ry),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/ry/$ref`,`#/ry`))),n++)}if(t.scale!==void 0&&e(t,`scale`)){let e=validate.errors,r=d(t.scale),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/scale/$ref`,`#/scale`))),n++)}if(t.seed!==void 0&&e(t,`seed`)){let e=validate.errors,r=d(t.seed),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/seed/$ref`,`#/seed`))),n++)}if(t[`shape-rendering`]!==void 0&&e(t,`shape-rendering`)){let e=validate.errors,r=d(t[`shape-rendering`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/shape-rendering/$ref`,`#/shape-rendering`))),n++)}if(t.slope!==void 0&&e(t,`slope`)){let e=validate.errors,r=d(t.slope),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/slope/$ref`,`#/slope`))),n++)}if(t.specularConstant!==void 0&&e(t,`specularConstant`)){let e=validate.errors,r=d(t.specularConstant),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/specularConstant/$ref`,`#/specularConstant`))),n++)}if(t.specularExponent!==void 0&&e(t,`specularExponent`)){let e=validate.errors,r=d(t.specularExponent),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/specularExponent/$ref`,`#/specularExponent`))),n++)}if(t.spreadMethod!==void 0&&e(t,`spreadMethod`)){let e=validate.errors,r=d(t.spreadMethod),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/spreadMethod/$ref`,`#/spreadMethod`))),n++)}if(t.startOffset!==void 0&&e(t,`startOffset`)){let e=validate.errors,r=d(t.startOffset),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/startOffset/$ref`,`#/startOffset`))),n++)}if(t.stdDeviation!==void 0&&e(t,`stdDeviation`)){let e=validate.errors,r=d(t.stdDeviation),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stdDeviation/$ref`,`#/stdDeviation`))),n++)}if(t.stitchTiles!==void 0&&e(t,`stitchTiles`)){let e=validate.errors,r=d(t.stitchTiles),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stitchTiles/$ref`,`#/stitchTiles`))),n++)}if(t[`stop-color`]!==void 0&&e(t,`stop-color`)){let e=validate.errors,r=h(t[`stop-color`]),i=h.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stop-color/$ref`,`#/stop-color`))),n++)}if(t[`stop-opacity`]!==void 0&&e(t,`stop-opacity`)){let e=validate.errors,r=d(t[`stop-opacity`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stop-opacity/$ref`,`#/stop-opacity`))),n++)}if(t.stroke!==void 0&&e(t,`stroke`)){let e=validate.errors,r=h(t.stroke),i=h.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stroke/$ref`,`#/stroke`))),n++)}if(t[`stroke-dasharray`]!==void 0&&e(t,`stroke-dasharray`)){let e=validate.errors,r=d(t[`stroke-dasharray`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stroke-dasharray/$ref`,`#/stroke-dasharray`))),n++)}if(t[`stroke-dashoffset`]!==void 0&&e(t,`stroke-dashoffset`)){let e=validate.errors,r=d(t[`stroke-dashoffset`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stroke-dashoffset/$ref`,`#/stroke-dashoffset`))),n++)}if(t[`stroke-linecap`]!==void 0&&e(t,`stroke-linecap`)){let e=validate.errors,r=d(t[`stroke-linecap`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stroke-linecap/$ref`,`#/stroke-linecap`))),n++)}if(t[`stroke-linejoin`]!==void 0&&e(t,`stroke-linejoin`)){let e=validate.errors,r=d(t[`stroke-linejoin`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stroke-linejoin/$ref`,`#/stroke-linejoin`))),n++)}if(t[`stroke-miterlimit`]!==void 0&&e(t,`stroke-miterlimit`)){let e=validate.errors,r=d(t[`stroke-miterlimit`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stroke-miterlimit/$ref`,`#/stroke-miterlimit`))),n++)}if(t[`stroke-opacity`]!==void 0&&e(t,`stroke-opacity`)){let e=validate.errors,r=d(t[`stroke-opacity`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stroke-opacity/$ref`,`#/stroke-opacity`))),n++)}if(t[`stroke-width`]!==void 0&&e(t,`stroke-width`)){let e=validate.errors,r=d(t[`stroke-width`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/stroke-width/$ref`,`#/stroke-width`))),n++)}if(t.style!==void 0&&e(t,`style`)){let e=validate.errors,r=S(t.style),i=S.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/style/$ref`,`#/style`))),n++)}if(t.surfaceScale!==void 0&&e(t,`surfaceScale`)){let e=validate.errors,r=d(t.surfaceScale),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/surfaceScale/$ref`,`#/surfaceScale`))),n++)}if(t.systemLanguage!==void 0&&e(t,`systemLanguage`)){let e=validate.errors,r=d(t.systemLanguage),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/systemLanguage/$ref`,`#/systemLanguage`))),n++)}if(t.tabindex!==void 0&&e(t,`tabindex`)){let e=validate.errors,r=d(t.tabindex),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/tabindex/$ref`,`#/tabindex`))),n++)}if(t.tableValues!==void 0&&e(t,`tableValues`)){let e=validate.errors,r=d(t.tableValues),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/tableValues/$ref`,`#/tableValues`))),n++)}if(t.targetX!==void 0&&e(t,`targetX`)){let e=validate.errors,r=d(t.targetX),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/targetX/$ref`,`#/targetX`))),n++)}if(t.targetY!==void 0&&e(t,`targetY`)){let e=validate.errors,r=d(t.targetY),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/targetY/$ref`,`#/targetY`))),n++)}if(t[`text-anchor`]!==void 0&&e(t,`text-anchor`)){let e=validate.errors,r=d(t[`text-anchor`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/text-anchor/$ref`,`#/text-anchor`))),n++)}if(t[`text-decoration`]!==void 0&&e(t,`text-decoration`)){let e=validate.errors,r=d(t[`text-decoration`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/text-decoration/$ref`,`#/text-decoration`))),n++)}if(t[`text-rendering`]!==void 0&&e(t,`text-rendering`)){let e=validate.errors,r=d(t[`text-rendering`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/text-rendering/$ref`,`#/text-rendering`))),n++)}if(t.textLength!==void 0&&e(t,`textLength`)){let e=validate.errors,r=d(t.textLength),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/textLength/$ref`,`#/textLength`))),n++)}if(t.transform!==void 0&&e(t,`transform`)){let e=validate.errors,r=d(t.transform),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/transform/$ref`,`#/transform`))),n++)}if(t[`transform-origin`]!==void 0&&e(t,`transform-origin`)){let e=validate.errors,r=d(t[`transform-origin`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/transform-origin/$ref`,`#/transform-origin`))),n++)}if(t.type!==void 0&&e(t,`type`)){let e=validate.errors,r=d(t.type),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/type/$ref`,`#/type`))),n++)}if(t.values!==void 0&&e(t,`values`)){let e=validate.errors,r=d(t.values),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/values/$ref`,`#/values`))),n++)}if(t.viewBox!==void 0&&e(t,`viewBox`)){let e=validate.errors,r=d(t.viewBox),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/viewBox/$ref`,`#/viewBox`))),n++)}if(t.visibility!==void 0&&e(t,`visibility`)){let e=validate.errors,r=d(t.visibility),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/visibility/$ref`,`#/visibility`))),n++)}if(t.width!==void 0&&e(t,`width`)){let e=validate.errors,r=d(t.width),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/width/$ref`,`#/width`))),n++)}if(t[`word-spacing`]!==void 0&&e(t,`word-spacing`)){let e=validate.errors,r=d(t[`word-spacing`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/word-spacing/$ref`,`#/word-spacing`))),n++)}if(t[`writing-mode`]!==void 0&&e(t,`writing-mode`)){let e=validate.errors,r=d(t[`writing-mode`]),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/writing-mode/$ref`,`#/writing-mode`))),n++)}if(t.x!==void 0&&e(t,`x`)){let e=validate.errors,r=d(t.x),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/x/$ref`,`#/x`))),n++)}if(t.x1!==void 0&&e(t,`x1`)){let e=validate.errors,r=d(t.x1),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/x1/$ref`,`#/x1`))),n++)}if(t.x2!==void 0&&e(t,`x2`)){let e=validate.errors,r=d(t.x2),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/x2/$ref`,`#/x2`))),n++)}if(t.xChannelSelector!==void 0&&e(t,`xChannelSelector`)){let e=validate.errors,r=d(t.xChannelSelector),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/xChannelSelector/$ref`,`#/xChannelSelector`))),n++)}if(t.y!==void 0&&e(t,`y`)){let e=validate.errors,r=d(t.y),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/y/$ref`,`#/y`))),n++)}if(t.y1!==void 0&&e(t,`y1`)){let e=validate.errors,r=d(t.y1),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/y1/$ref`,`#/y1`))),n++)}if(t.y2!==void 0&&e(t,`y2`)){let e=validate.errors,r=d(t.y2),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/y2/$ref`,`#/y2`))),n++)}if(t.yChannelSelector!==void 0&&e(t,`yChannelSelector`)){let e=validate.errors,r=d(t.yChannelSelector),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/yChannelSelector/$ref`,`#/yChannelSelector`))),n++)}if(t.z!==void 0&&e(t,`z`)){let e=validate.errors,r=d(t.z),i=d.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/z/$ref`,`#/z`))),n++)}for(let e of Object.keys(t))e!==`alignment-baseline`&&e!==`amplitude`&&e!==`azimuth`&&e!==`baseFrequency`&&e!==`baseline-shift`&&e!==`bias`&&e!==`class`&&e!==`clipPathUnits`&&e!==`clip-path`&&e!==`clip-rule`&&e!==`color`&&e!==`color-interpolation`&&e!==`color-interpolation-filters`&&e!==`crossorigin`&&e!==`cx`&&e!==`cy`&&e!==`d`&&e!==`decoding`&&e!==`diffuseConstant`&&e!==`direction`&&e!==`display`&&e!==`divisor`&&e!==`dominant-baseline`&&e!==`dx`&&e!==`dy`&&e!==`edgeMode`&&e!==`elevation`&&e!==`exponent`&&e!==`fill`&&e!==`fill-opacity`&&e!==`fill-rule`&&e!==`filter`&&e!==`filterUnits`&&e!==`flood-color`&&e!==`flood-opacity`&&e!==`font-family`&&e!==`font-size`&&e!==`font-size-adjust`&&e!==`font-style`&&e!==`font-variant`&&e!==`font-weight`&&e!==`fx`&&e!==`fy`&&e!==`gradientTransform`&&e!==`gradientUnits`&&e!==`height`&&e!==`href`&&e!==`id`&&e!==`image-rendering`&&e!==`in`&&e!==`in2`&&e!==`intercept`&&e!==`k1`&&e!==`k2`&&e!==`k3`&&e!==`k4`&&e!==`kernelMatrix`&&e!==`kernelUnitLength`&&e!==`lang`&&e!==`lengthAdjust`&&e!==`letter-spacing`&&e!==`lighting-color`&&e!==`marker-end`&&e!==`marker-mid`&&e!==`marker-start`&&e!==`markerHeight`&&e!==`markerUnits`&&e!==`markerWidth`&&e!==`mask`&&e!==`maskContentUnits`&&e!==`maskUnits`&&e!==`media`&&e!==`method`&&e!==`mode`&&e!==`numOctaves`&&e!==`offset`&&e!==`opacity`&&e!==`operator`&&e!==`order`&&e!==`orient`&&e!==`overflow`&&e!==`paint-order`&&e!==`path`&&e!==`pathLength`&&e!==`patternContentUnits`&&e!==`patternTransform`&&e!==`patternUnits`&&e!==`points`&&e!==`preserveAlpha`&&e!==`preserveAspectRatio`&&e!==`primitiveUnits`&&e!==`r`&&e!==`radius`&&e!==`refX`&&e!==`refY`&&e!==`result`&&e!==`rx`&&e!==`ry`&&e!==`scale`&&e!==`seed`&&e!==`shape-rendering`&&e!==`slope`&&e!==`specularConstant`&&e!==`specularExponent`&&e!==`spreadMethod`&&e!==`startOffset`&&e!==`stdDeviation`&&e!==`stitchTiles`&&e!==`stop-color`&&e!==`stop-opacity`&&e!==`stroke`&&e!==`stroke-dasharray`&&e!==`stroke-dashoffset`&&e!==`stroke-linecap`&&e!==`stroke-linejoin`&&e!==`stroke-miterlimit`&&e!==`stroke-opacity`&&e!==`stroke-width`&&e!==`style`&&e!==`surfaceScale`&&e!==`systemLanguage`&&e!==`tabindex`&&e!==`tableValues`&&e!==`targetX`&&e!==`targetY`&&e!==`text-anchor`&&e!==`text-decoration`&&e!==`text-rendering`&&e!==`textLength`&&e!==`transform`&&e!==`transform-origin`&&e!==`type`&&e!==`values`&&e!==`viewBox`&&e!==`visibility`&&e!==`width`&&e!==`word-spacing`&&e!==`writing-mode`&&e!==`x`&&e!==`x1`&&e!==`x2`&&e!==`xChannelSelector`&&e!==`y`&&e!==`y1`&&e!==`y2`&&e!==`yChannelSelector`&&e!==`z`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},w=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{if(t.type!==void 0&&e(t,`type`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/type`}),n++),t.value!==void 0&&e(t,`value`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/value`}),n++),t.type!==void 0&&e(t,`type`)&&t.type!==`text`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/type/const`,instanceLocation:`#/type`}),n++),t.value!==void 0&&e(t,`value`)){let r=null;(()=>{let e=0;return typeof t.value==`string`?t.value.length>4096&&stringLength(t.value)>4096&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/value/anyOf/0/maxLength`,instanceLocation:`#/value`}),e++):(r===null&&(r=[]),r.push({keywordLocation:`#/properties/value/anyOf/0/type`,instanceLocation:`#/value`}),e++),e===0})()||(()=>{let n=0;if(typeof t.value!=`object`||!t.value||Array.isArray(t.value))r===null&&(r=[]),r.push({keywordLocation:`#/properties/value/anyOf/1/type`,instanceLocation:`#/value`}),n++;else{t.value.type!==void 0&&e(t.value,`type`)||(r===null&&(r=[]),r.push({keywordLocation:`#/properties/value/anyOf/1/required`,instanceLocation:`#/value/type`}),n++),t.value.name!==void 0&&e(t.value,`name`)||(r===null&&(r=[]),r.push({keywordLocation:`#/properties/value/anyOf/1/required`,instanceLocation:`#/value/name`}),n++),t.value.type!==void 0&&e(t.value,`type`)&&t.value.type!==`variable`&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/value/anyOf/1/properties/type/const`,instanceLocation:`#/value/type`}),n++),t.value.name!==void 0&&e(t.value,`name`)&&t.value.name!==`initial`&&t.value.name!==`initials`&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/value/anyOf/1/properties/name/enum`,instanceLocation:`#/value/name`}),n++);for(let e of Object.keys(t.value))e!==`type`&&e!==`name`&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/value/anyOf/1/additionalProperties`,instanceLocation:`#/value/`+pointerPart(e)}),n++)}return n===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/value/anyOf`,instanceLocation:`#/value`}),r&&validate.errors.push(...r),n++)}for(let e of Object.keys(t))e!==`type`&&e!==`value`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},T=function validate(e){validate.errors=null;let t=0,n=validate.errors,r=p(e),i=p.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/allOf/0/$ref`,`#`))),t++),t===0},E=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{if(t.type!==void 0&&e(t,`type`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/type`}),n++),t.name!==void 0&&e(t,`name`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/name`}),n++),t.type!==void 0&&e(t,`type`)&&t.type!==`component`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/type/const`,instanceLocation:`#/type`}),n++),t.name!==void 0&&e(t,`name`)){let e=validate.errors,r=T(t.name),i=T.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/name/$ref`,`#/name`))),n++)}if(t.attributes!==void 0&&e(t,`attributes`)){let e=validate.errors,r=C(t.attributes),i=C.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/attributes/$ref`,`#/attributes`))),n++)}for(let e of Object.keys(t))e!==`type`&&e!==`name`&&e!==`attributes`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},D=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{if(t.type!==void 0&&e(t,`type`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/type`}),n++),t.name!==void 0&&e(t,`name`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/name`}),n++),t.type!==void 0&&e(t,`type`)&&t.type!==`element`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/type/const`,instanceLocation:`#/type`}),n++),t.name!==void 0&&e(t,`name`)&&t.name!==`style`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/name/const`,instanceLocation:`#/name`}),n++),t.attributes!==void 0&&e(t,`attributes`)){let e=validate.errors,r=C(t.attributes),i=C.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/attributes/$ref`,`#/attributes`))),n++)}if(t.children!==void 0&&e(t,`children`)){if(!Array.isArray(t.children))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/children/type`,instanceLocation:`#/children`}),n++;else{t.children.length>64&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/children/maxItems`,instanceLocation:`#/children`}),n++);for(let r=0;r<t.children.length;r++)if(t.children[r]!==void 0&&e(t.children,r)){if(typeof t.children[r]!=`object`||!t.children[r]||Array.isArray(t.children[r]))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/children/items/type`,instanceLocation:`#/children/`+r}),n++;else{if(t.children[r].type!==void 0&&e(t.children[r],`type`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/children/items/required`,instanceLocation:`#/children/`+r+`/type`}),n++),t.children[r].value!==void 0&&e(t.children[r],`value`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/children/items/required`,instanceLocation:`#/children/`+r+`/value`}),n++),t.children[r].type!==void 0&&e(t.children[r],`type`)&&t.children[r].type!==`text`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/children/items/properties/type/const`,instanceLocation:`#/children/`+r+`/type`}),n++),t.children[r].value!==void 0&&e(t.children[r],`value`)){let e=validate.errors,i=S(t.children[r].value),a=S.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/children/items/properties/value/$ref`,`#/children/`+r+`/value`))),n++)}for(let e of Object.keys(t.children[r]))e!==`type`&&e!==`value`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/children/items/additionalProperties`,instanceLocation:`#/children/`+r+`/`+pointerPart(e)}),n++)}}}}for(let e of Object.keys(t))e!==`type`&&e!==`name`&&e!==`attributes`&&e!==`children`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},O=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{if(t.type!==void 0&&e(t,`type`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/type`}),n++),t.name!==void 0&&e(t,`name`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/name`}),n++),t.type!==void 0&&e(t,`type`)&&t.type!==`element`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/type/const`,instanceLocation:`#/type`}),n++),t.name!==void 0&&e(t,`name`)&&t.name!==`circle`&&t.name!==`clipPath`&&t.name!==`defs`&&t.name!==`desc`&&t.name!==`ellipse`&&t.name!==`feBlend`&&t.name!==`feColorMatrix`&&t.name!==`feComponentTransfer`&&t.name!==`feComposite`&&t.name!==`feConvolveMatrix`&&t.name!==`feDiffuseLighting`&&t.name!==`feDisplacementMap`&&t.name!==`feDistantLight`&&t.name!==`feDropShadow`&&t.name!==`feFlood`&&t.name!==`feFuncA`&&t.name!==`feFuncB`&&t.name!==`feFuncG`&&t.name!==`feFuncR`&&t.name!==`feGaussianBlur`&&t.name!==`feImage`&&t.name!==`feMerge`&&t.name!==`feMergeNode`&&t.name!==`feMorphology`&&t.name!==`feOffset`&&t.name!==`fePointLight`&&t.name!==`feSpecularLighting`&&t.name!==`feSpotLight`&&t.name!==`feTile`&&t.name!==`feTurbulence`&&t.name!==`filter`&&t.name!==`g`&&t.name!==`image`&&t.name!==`line`&&t.name!==`linearGradient`&&t.name!==`marker`&&t.name!==`mask`&&t.name!==`metadata`&&t.name!==`mpath`&&t.name!==`path`&&t.name!==`pattern`&&t.name!==`polygon`&&t.name!==`polyline`&&t.name!==`radialGradient`&&t.name!==`rect`&&t.name!==`stop`&&t.name!==`svg`&&t.name!==`switch`&&t.name!==`symbol`&&t.name!==`text`&&t.name!==`textPath`&&t.name!==`title`&&t.name!==`tspan`&&t.name!==`use`&&t.name!==`view`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/name/enum`,instanceLocation:`#/name`}),n++),t.attributes!==void 0&&e(t,`attributes`)){let e=validate.errors,r=C(t.attributes),i=C.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/attributes/$ref`,`#/attributes`))),n++)}if(t.children!==void 0&&e(t,`children`)){if(!Array.isArray(t.children))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/children/type`,instanceLocation:`#/children`}),n++;else{t.children.length>1024&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/children/maxItems`,instanceLocation:`#/children`}),n++);for(let r=0;r<t.children.length;r++)if(t.children[r]!==void 0&&e(t.children,r)){let e=validate.errors,i=k(t.children[r]),a=k.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/children/items/$ref`,`#/children/`+r))),n++)}}}for(let e of Object.keys(t))e!==`type`&&e!==`name`&&e!==`attributes`&&e!==`children`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},k=function validate(e){validate.errors=null;let t=0;return(()=>{let t=0,n=validate.errors,r=w(e),i=w.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/anyOf/0/$ref`,`#`))),t++),t===0})()||(()=>{let t=0,n=validate.errors,r=E(e),i=E.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/anyOf/1/$ref`,`#`))),t++),t===0})()||(()=>{let t=0,n=validate.errors,r=D(e),i=D.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/anyOf/2/$ref`,`#`))),t++),t===0})()||(()=>{let t=0,n=validate.errors,r=O(e),i=O.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/anyOf/3/$ref`,`#`))),t++),t===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),t++),t===0},te=function validate(e){validate.errors=null;let t=0;return typeof e==`number`?(0<=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),t++),100>=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),t++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},A=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{t.min!==void 0&&e(t,`min`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/min`}),n++),t.max!==void 0&&e(t,`max`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/max`}),n++),t.min!==void 0&&e(t,`min`)&&(typeof t.min==`number`?(-360<=t.min||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/min/minimum`,instanceLocation:`#/min`}),n++),360>=t.min||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/min/maximum`,instanceLocation:`#/min`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/min/type`,instanceLocation:`#/min`}),n++)),t.max!==void 0&&e(t,`max`)&&(typeof t.max==`number`?(-360<=t.max||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/max/minimum`,instanceLocation:`#/max`}),n++),360>=t.max||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/max/maximum`,instanceLocation:`#/max`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/max/type`,instanceLocation:`#/max`}),n++)),t.step!==void 0&&e(t,`step`)&&(typeof t.step==`number`?(0<t.step||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/step/exclusiveMinimum`,instanceLocation:`#/step`}),n++),720>=t.step||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/step/maximum`,instanceLocation:`#/step`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/step/type`,instanceLocation:`#/step`}),n++));for(let e of Object.keys(t))e!==`min`&&e!==`max`&&e!==`step`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},j=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{t.min!==void 0&&e(t,`min`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/min`}),n++),t.max!==void 0&&e(t,`max`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/max`}),n++),t.min!==void 0&&e(t,`min`)&&(typeof t.min==`number`?(0<=t.min||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/min/minimum`,instanceLocation:`#/min`}),n++),10>=t.min||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/min/maximum`,instanceLocation:`#/min`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/min/type`,instanceLocation:`#/min`}),n++)),t.max!==void 0&&e(t,`max`)&&(typeof t.max==`number`?(0<=t.max||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/max/minimum`,instanceLocation:`#/max`}),n++),10>=t.max||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/max/maximum`,instanceLocation:`#/max`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/max/type`,instanceLocation:`#/max`}),n++)),t.step!==void 0&&e(t,`step`)&&(typeof t.step==`number`?(0<t.step||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/step/exclusiveMinimum`,instanceLocation:`#/step`}),n++),10>=t.step||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/step/maximum`,instanceLocation:`#/step`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/step/type`,instanceLocation:`#/step`}),n++));for(let e of Object.keys(t))e!==`min`&&e!==`max`&&e!==`step`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},M=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{t.min!==void 0&&e(t,`min`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/min`}),n++),t.max!==void 0&&e(t,`max`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/max`}),n++),t.min!==void 0&&e(t,`min`)&&(typeof t.min==`number`?(-1e3<=t.min||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/min/minimum`,instanceLocation:`#/min`}),n++),1e3>=t.min||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/min/maximum`,instanceLocation:`#/min`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/min/type`,instanceLocation:`#/min`}),n++)),t.max!==void 0&&e(t,`max`)&&(typeof t.max==`number`?(-1e3<=t.max||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/max/minimum`,instanceLocation:`#/max`}),n++),1e3>=t.max||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/max/maximum`,instanceLocation:`#/max`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/max/type`,instanceLocation:`#/max`}),n++)),t.step!==void 0&&e(t,`step`)&&(typeof t.step==`number`?(0<t.step||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/step/exclusiveMinimum`,instanceLocation:`#/step`}),n++),2e3>=t.step||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/step/maximum`,instanceLocation:`#/step`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/step/type`,instanceLocation:`#/step`}),n++));for(let e of Object.keys(t))e!==`min`&&e!==`max`&&e!==`step`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},N=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{if(t.x!==void 0&&e(t,`x`)){let e=validate.errors,r=M(t.x),i=M.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/x/$ref`,`#/x`))),n++)}if(t.y!==void 0&&e(t,`y`)){let e=validate.errors,r=M(t.y),i=M.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/y/$ref`,`#/y`))),n++)}for(let e of Object.keys(t))e!==`x`&&e!==`y`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},P=RegExp(`^[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$`,`u`),unique=e=>{if(e.length<2)return!0;if(e.length===2)return!deepEqual(e[0],e[1]);let t=[],n=e.length>20?new Set:null,r=0,i=0;for(let a of e){if(typeof a==`object`)t.push(a);else if(n){if(n.add(a),n.size!==++r)return!1}else if(e.indexOf(a,i+1)!==-1)return!1;i++}for(let e=1;e<t.length;e++)for(let n=0;n<e;n++)if(deepEqual(t[e],t[n]))return!1;return!0},deepEqual=(e,t)=>{if(e===t)return!0;if(!e||!t||typeof e!=typeof t||e!==t&&typeof e!=`object`)return!1;let n=Object.getPrototypeOf(e);if(n!==Object.getPrototypeOf(t))return!1;if(n===Array.prototype)return!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length?!1:e.every((e,n)=>deepEqual(e,t[n]));if(n===Object.prototype){let[n,r]=[Object.keys(e),Object.keys(t)];return n.length===r.length&&new Set([...n,...r]).size===n.length&&n.every(n=>deepEqual(e[n],t[n]))}return!1},F=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{if(t.width!==void 0&&e(t,`width`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/width`}),n++),t.height!==void 0&&e(t,`height`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/height`}),n++),t.variants!==void 0&&e(t,`variants`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/variants`}),n++),t.width!==void 0&&e(t,`width`)&&(typeof t.width==`number`?(1<=t.width||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/width/minimum`,instanceLocation:`#/width`}),n++),1e6>=t.width||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/width/maximum`,instanceLocation:`#/width`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/width/type`,instanceLocation:`#/width`}),n++)),t.height!==void 0&&e(t,`height`)&&(typeof t.height==`number`?(1<=t.height||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/height/minimum`,instanceLocation:`#/height`}),n++),1e6>=t.height||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/height/maximum`,instanceLocation:`#/height`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/height/type`,instanceLocation:`#/height`}),n++)),t.probability!==void 0&&e(t,`probability`)){let e=validate.errors,r=te(t.probability),i=te.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/probability/$ref`,`#/probability`))),n++)}if(t.rotate!==void 0&&e(t,`rotate`)){let e=validate.errors,r=A(t.rotate),i=A.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/rotate/$ref`,`#/rotate`))),n++)}if(t.scale!==void 0&&e(t,`scale`)){let e=validate.errors,r=j(t.scale),i=j.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/scale/$ref`,`#/scale`))),n++)}if(t.translate!==void 0&&e(t,`translate`)){let e=validate.errors,r=N(t.translate),i=N.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/translate/$ref`,`#/translate`))),n++)}if(t.variants!==void 0&&e(t,`variants`)){if(typeof t.variants!=`object`||!t.variants||Array.isArray(t.variants))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/type`,instanceLocation:`#/variants`}),n++;else{Object.keys(t.variants).length>512&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/maxProperties`,instanceLocation:`#/variants`}),n++);for(let e of Object.keys(t.variants)){let t=validate.errors,r=p(e),i=p.errors;validate.errors=t,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(t=>errorMerge(t,`#/properties/variants/propertyNames/$ref`,`#/variants/`+pointerPart(e)))),n++)}for(let r of Object.keys(t.variants))if(typeof t.variants[r]!=`object`||!t.variants[r]||Array.isArray(t.variants[r]))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/type`,instanceLocation:`#/variants/`+pointerPart(r)}),n++;else{if(t.variants[r].elements!==void 0&&e(t.variants[r],`elements`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/required`,instanceLocation:`#/variants/`+pointerPart(r)+`/elements`}),n++),t.variants[r].elements!==void 0&&e(t.variants[r],`elements`)){if(!Array.isArray(t.variants[r].elements))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/elements/type`,instanceLocation:`#/variants/`+pointerPart(r)+`/elements`}),n++;else{t.variants[r].elements.length>1024&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/elements/maxItems`,instanceLocation:`#/variants/`+pointerPart(r)+`/elements`}),n++);for(let i=0;i<t.variants[r].elements.length;i++)if(t.variants[r].elements[i]!==void 0&&e(t.variants[r].elements,i)){let e=validate.errors,a=k(t.variants[r].elements[i]),o=k.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/properties/variants/additionalProperties/properties/elements/items/$ref`,`#/variants/`+pointerPart(r)+`elements/`+i))),n++)}}}if(t.variants[r].weight!==void 0&&e(t.variants[r],`weight`)&&(typeof t.variants[r].weight==`number`?(0<=t.variants[r].weight||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/weight/minimum`,instanceLocation:`#/variants/`+pointerPart(r)+`/weight`}),n++),1e6>=t.variants[r].weight||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/weight/maximum`,instanceLocation:`#/variants/`+pointerPart(r)+`/weight`}),n++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/weight/type`,instanceLocation:`#/variants/`+pointerPart(r)+`/weight`}),n++)),t.variants[r].tags!==void 0&&e(t.variants[r],`tags`)){if(!Array.isArray(t.variants[r].tags))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/type`,instanceLocation:`#/variants/`+pointerPart(r)+`/tags`}),n++;else{let i=n;t.variants[r].tags.length>32&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/maxItems`,instanceLocation:`#/variants/`+pointerPart(r)+`/tags`}),n++);for(let i=0;i<t.variants[r].tags.length;i++)if(t.variants[r].tags[i]!==void 0&&e(t.variants[r].tags,i)){if(typeof t.variants[r].tags[i]!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/items/type`,instanceLocation:`#/variants/`+pointerPart(r)+`tags/`+i}),n++;else{let e=n;t.variants[r].tags[i].length>129&&stringLength(t.variants[r].tags[i])>129&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/items/maxLength`,instanceLocation:`#/variants/`+pointerPart(r)+`tags/`+i}),n++),n===e&&(P.test(t.variants[r].tags[i])||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/items/pattern`,instanceLocation:`#/variants/`+pointerPart(r)+`tags/`+i}),n++))}}n===i&&(unique(t.variants[r].tags)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/properties/tags/uniqueItems`,instanceLocation:`#/variants/`+pointerPart(r)+`/tags`}),n++))}}for(let e of Object.keys(t.variants[r]))e!==`elements`&&e!==`weight`&&e!==`tags`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/variants/additionalProperties/additionalProperties`,instanceLocation:`#/variants/`+pointerPart(r)+`/`+pointerPart(e)}),n++)}}}for(let e of Object.keys(t))e!==`width`&&e!==`height`&&e!==`probability`&&e!==`rotate`&&e!==`scale`&&e!==`translate`&&e!==`variants`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},ne=function validate(t){validate.errors=null;let n=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),n++;else{if(t.extends!==void 0&&e(t,`extends`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/extends`}),n++),t.extends!==void 0&&e(t,`extends`)){let e=validate.errors,r=T(t.extends),i=T.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/extends/$ref`,`#/extends`))),n++)}for(let e of Object.keys(t))e!==`extends`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),n++)}return n===0},I=RegExp(`^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$`,`u`),re=function validate(e){validate.errors=null;let t=0;if(typeof e!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++;else{let n=t;e.length>9&&stringLength(e)>9&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),t++),t===n&&(I.test(e)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),t++))}return t===0};return function validate(t){validate.errors=null;let r=0;if(typeof t!=`object`||!t||Array.isArray(t))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),r++;else{if(t.canvas!==void 0&&e(t,`canvas`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/required`,instanceLocation:`#/canvas`}),r++),t.$id!==void 0&&e(t,`$id`)&&(typeof t.$id==`string`?t.$id.length>256&&stringLength(t.$id)>256&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/$id/maxLength`,instanceLocation:`#/$id`}),r++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/$id/type`,instanceLocation:`#/$id`}),r++)),t.$schema!==void 0&&e(t,`$schema`)&&(typeof t.$schema==`string`?t.$schema.length>256&&stringLength(t.$schema)>256&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/$schema/maxLength`,instanceLocation:`#/$schema`}),r++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/$schema/type`,instanceLocation:`#/$schema`}),r++)),t.$comment!==void 0&&e(t,`$comment`)&&(typeof t.$comment==`string`?t.$comment.length>4096&&stringLength(t.$comment)>4096&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/$comment/maxLength`,instanceLocation:`#/$comment`}),r++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/$comment/type`,instanceLocation:`#/$comment`}),r++)),t.meta!==void 0&&e(t,`meta`)){if(typeof t.meta!=`object`||!t.meta||Array.isArray(t.meta))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/type`,instanceLocation:`#/meta`}),r++;else{if(t.meta.license!==void 0&&e(t.meta,`license`)){if(typeof t.meta.license!=`object`||!t.meta.license||Array.isArray(t.meta.license))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/license/type`,instanceLocation:`#/meta/license`}),r++;else{if(t.meta.license.name!==void 0&&e(t.meta.license,`name`)&&(typeof t.meta.license.name==`string`?t.meta.license.name.length>128&&stringLength(t.meta.license.name)>128&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/license/properties/name/maxLength`,instanceLocation:`#/meta/license/name`}),r++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/license/properties/name/type`,instanceLocation:`#/meta/license/name`}),r++)),t.meta.license.url!==void 0&&e(t.meta.license,`url`)){let e=validate.errors,i=n(t.meta.license.url),a=n.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/meta/properties/license/properties/url/$ref`,`#/meta/license/url`))),r++)}t.meta.license.text!==void 0&&e(t.meta.license,`text`)&&(typeof t.meta.license.text==`string`?t.meta.license.text.length>32768&&stringLength(t.meta.license.text)>32768&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/license/properties/text/maxLength`,instanceLocation:`#/meta/license/text`}),r++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/license/properties/text/type`,instanceLocation:`#/meta/license/text`}),r++));for(let e of Object.keys(t.meta.license))e!==`name`&&e!==`url`&&e!==`text`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/license/additionalProperties`,instanceLocation:`#/meta/license/`+pointerPart(e)}),r++)}}if(t.meta.creator!==void 0&&e(t.meta,`creator`)){if(typeof t.meta.creator!=`object`||!t.meta.creator||Array.isArray(t.meta.creator))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/creator/type`,instanceLocation:`#/meta/creator`}),r++;else{if(t.meta.creator.name!==void 0&&e(t.meta.creator,`name`)&&(typeof t.meta.creator.name==`string`?t.meta.creator.name.length>128&&stringLength(t.meta.creator.name)>128&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/creator/properties/name/maxLength`,instanceLocation:`#/meta/creator/name`}),r++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/creator/properties/name/type`,instanceLocation:`#/meta/creator/name`}),r++)),t.meta.creator.url!==void 0&&e(t.meta.creator,`url`)){let e=validate.errors,i=n(t.meta.creator.url),a=n.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/meta/properties/creator/properties/url/$ref`,`#/meta/creator/url`))),r++)}for(let e of Object.keys(t.meta.creator))e!==`name`&&e!==`url`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/creator/additionalProperties`,instanceLocation:`#/meta/creator/`+pointerPart(e)}),r++)}}if(t.meta.source!==void 0&&e(t.meta,`source`)){if(typeof t.meta.source!=`object`||!t.meta.source||Array.isArray(t.meta.source))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/source/type`,instanceLocation:`#/meta/source`}),r++;else{if(t.meta.source.name!==void 0&&e(t.meta.source,`name`)&&(typeof t.meta.source.name==`string`?t.meta.source.name.length>128&&stringLength(t.meta.source.name)>128&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/source/properties/name/maxLength`,instanceLocation:`#/meta/source/name`}),r++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/source/properties/name/type`,instanceLocation:`#/meta/source/name`}),r++)),t.meta.source.url!==void 0&&e(t.meta.source,`url`)){let e=validate.errors,i=n(t.meta.source.url),a=n.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/meta/properties/source/properties/url/$ref`,`#/meta/source/url`))),r++)}for(let e of Object.keys(t.meta.source))e!==`name`&&e!==`url`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/properties/source/additionalProperties`,instanceLocation:`#/meta/source/`+pointerPart(e)}),r++)}}for(let e of Object.keys(t.meta))e!==`license`&&e!==`creator`&&e!==`source`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/meta/additionalProperties`,instanceLocation:`#/meta/`+pointerPart(e)}),r++)}}if(t.attributes!==void 0&&e(t,`attributes`)){let e=validate.errors,n=C(t.attributes),i=C.errors;validate.errors=e,n||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/attributes/$ref`,`#/attributes`))),r++)}if(t.canvas!==void 0&&e(t,`canvas`)){if(typeof t.canvas!=`object`||!t.canvas||Array.isArray(t.canvas))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/type`,instanceLocation:`#/canvas`}),r++;else{if(t.canvas.elements!==void 0&&e(t.canvas,`elements`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/required`,instanceLocation:`#/canvas/elements`}),r++),t.canvas.width!==void 0&&e(t.canvas,`width`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/required`,instanceLocation:`#/canvas/width`}),r++),t.canvas.height!==void 0&&e(t.canvas,`height`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/required`,instanceLocation:`#/canvas/height`}),r++),t.canvas.elements!==void 0&&e(t.canvas,`elements`)){if(!Array.isArray(t.canvas.elements))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/properties/elements/type`,instanceLocation:`#/canvas/elements`}),r++;else{t.canvas.elements.length>1024&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/properties/elements/maxItems`,instanceLocation:`#/canvas/elements`}),r++);for(let n=0;n<t.canvas.elements.length;n++)if(t.canvas.elements[n]!==void 0&&e(t.canvas.elements,n)){let e=validate.errors,i=k(t.canvas.elements[n]),a=k.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/canvas/properties/elements/items/$ref`,`#/canvas/elements/`+n))),r++)}}}t.canvas.width!==void 0&&e(t.canvas,`width`)&&(typeof t.canvas.width==`number`?(1<=t.canvas.width||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/properties/width/minimum`,instanceLocation:`#/canvas/width`}),r++),1e6>=t.canvas.width||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/properties/width/maximum`,instanceLocation:`#/canvas/width`}),r++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/properties/width/type`,instanceLocation:`#/canvas/width`}),r++)),t.canvas.height!==void 0&&e(t.canvas,`height`)&&(typeof t.canvas.height==`number`?(1<=t.canvas.height||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/properties/height/minimum`,instanceLocation:`#/canvas/height`}),r++),1e6>=t.canvas.height||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/properties/height/maximum`,instanceLocation:`#/canvas/height`}),r++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/properties/height/type`,instanceLocation:`#/canvas/height`}),r++));for(let e of Object.keys(t.canvas))e!==`elements`&&e!==`width`&&e!==`height`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/canvas/additionalProperties`,instanceLocation:`#/canvas/`+pointerPart(e)}),r++)}}if(t.components!==void 0&&e(t,`components`)){if(typeof t.components!=`object`||!t.components||Array.isArray(t.components))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/components/type`,instanceLocation:`#/components`}),r++;else{Object.keys(t.components).length>512&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/components/maxProperties`,instanceLocation:`#/components`}),r++);for(let e of Object.keys(t.components)){let t=validate.errors,n=p(e),i=p.errors;validate.errors=t,n||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(t=>errorMerge(t,`#/properties/components/propertyNames/$ref`,`#/components/`+pointerPart(e)))),r++)}for(let e of Object.keys(t.components))(()=>{let n=0,r=validate.errors,i=F(t.components[e]),a=F.errors;return validate.errors=r,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(t=>errorMerge(t,`#/properties/components/additionalProperties/anyOf/0/$ref`,`#/components/`+pointerPart(e)))),n++),n===0})()||(()=>{let n=0,r=validate.errors,i=ne(t.components[e]),a=ne.errors;return validate.errors=r,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(t=>errorMerge(t,`#/properties/components/additionalProperties/anyOf/1/$ref`,`#/components/`+pointerPart(e)))),n++),n===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/components/additionalProperties/anyOf`,instanceLocation:`#/components/`+pointerPart(e)}),r++)}}if(t.colors!==void 0&&e(t,`colors`)){if(typeof t.colors!=`object`||!t.colors||Array.isArray(t.colors))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/type`,instanceLocation:`#/colors`}),r++;else{Object.keys(t.colors).length>512&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/maxProperties`,instanceLocation:`#/colors`}),r++);for(let e of Object.keys(t.colors)){let t=validate.errors,n=p(e),i=p.errors;validate.errors=t,n||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(t=>errorMerge(t,`#/properties/colors/propertyNames/$ref`,`#/colors/`+pointerPart(e)))),r++)}for(let n of Object.keys(t.colors))if(typeof t.colors[n]!=`object`||!t.colors[n]||Array.isArray(t.colors[n]))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/additionalProperties/type`,instanceLocation:`#/colors/`+pointerPart(n)}),r++;else{if(t.colors[n].values!==void 0&&e(t.colors[n],`values`)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/additionalProperties/required`,instanceLocation:`#/colors/`+pointerPart(n)+`/values`}),r++),t.colors[n].values!==void 0&&e(t.colors[n],`values`)){if(!Array.isArray(t.colors[n].values))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/values/type`,instanceLocation:`#/colors/`+pointerPart(n)+`/values`}),r++;else{t.colors[n].values.length>128&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/values/maxItems`,instanceLocation:`#/colors/`+pointerPart(n)+`/values`}),r++),t.colors[n].values.length<1&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/values/minItems`,instanceLocation:`#/colors/`+pointerPart(n)+`/values`}),r++);for(let i=0;i<t.colors[n].values.length;i++)if(t.colors[n].values[i]!==void 0&&e(t.colors[n].values,i)){let e=validate.errors,a=re(t.colors[n].values[i]),o=re.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/properties/colors/additionalProperties/properties/values/items/$ref`,`#/colors/`+pointerPart(n)+`values/`+i))),r++)}}}if(t.colors[n].notEqualTo!==void 0&&e(t.colors[n],`notEqualTo`)){if(!Array.isArray(t.colors[n].notEqualTo))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/notEqualTo/type`,instanceLocation:`#/colors/`+pointerPart(n)+`/notEqualTo`}),r++;else{t.colors[n].notEqualTo.length>64&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/additionalProperties/properties/notEqualTo/maxItems`,instanceLocation:`#/colors/`+pointerPart(n)+`/notEqualTo`}),r++);for(let i=0;i<t.colors[n].notEqualTo.length;i++)if(t.colors[n].notEqualTo[i]!==void 0&&e(t.colors[n].notEqualTo,i)){let e=validate.errors,a=m(t.colors[n].notEqualTo[i]),o=m.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/properties/colors/additionalProperties/properties/notEqualTo/items/$ref`,`#/colors/`+pointerPart(n)+`notEqualTo/`+i))),r++)}}}if(t.colors[n].contrastTo!==void 0&&e(t.colors[n],`contrastTo`)){let e=validate.errors,i=m(t.colors[n].contrastTo),a=m.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/colors/additionalProperties/properties/contrastTo/$ref`,`#/colors/`+pointerPart(n)+`/contrastTo`))),r++)}for(let e of Object.keys(t.colors[n]))e!==`values`&&e!==`notEqualTo`&&e!==`contrastTo`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/colors/additionalProperties/additionalProperties`,instanceLocation:`#/colors/`+pointerPart(n)+`/`+pointerPart(e)}),r++)}}}for(let e of Object.keys(t))e!==`$id`&&e!==`$schema`&&e!==`$comment`&&e!==`meta`&&e!==`attributes`&&e!==`canvas`&&e!==`components`&&e!==`colors`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),r++)}return r===0}})(),s={type:`has an invalid type`,enum:`must be one of the allowed values`,const:`must equal the expected value`,pattern:`does not match the required pattern`,required:`is required but missing`,additionalProperties:`has an unexpected property`,propertyNames:`has an invalid property name`,minimum:`is smaller than allowed`,maximum:`is larger than allowed`,exclusiveMinimum:`is smaller than allowed`,exclusiveMaximum:`is larger than allowed`,minLength:`is too short`,maxLength:`is too long`,minItems:`has too few items`,maxItems:`has too many items`,uniqueItems:`has duplicate items`,minProperties:`has too few properties`,maxProperties:`has too many properties`,anyOf:`does not match any allowed variant`,oneOf:`does not match exactly one allowed variant`,allOf:`does not match all required schemas`,not:`matches a disallowed schema`};function toDetail$1(e){let t=e.keywordLocation.slice(e.keywordLocation.lastIndexOf(`/`)+1);return{instancePath:e.instanceLocation.slice(1),schemaPath:e.keywordLocation,keyword:t,message:s[t]??`must satisfy '${t}'`}}__name(toDetail$1,`toDetail`);var StyleValidator=class{static validate(e){if(!o(e))throw new StyleValidationError((o.errors??[]).map(toDetail$1))}},__classPrivateFieldSet$16=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$18=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},c,MetaLicense=class{constructor(e){c.set(this,void 0),__classPrivateFieldSet$16(this,c,e,`f`)}name(){return __classPrivateFieldGet$18(this,c,`f`).name}url(){return __classPrivateFieldGet$18(this,c,`f`).url}text(){return __classPrivateFieldGet$18(this,c,`f`).text}};c=new WeakMap;var __classPrivateFieldSet$15=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$17=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},l,MetaCreator=class{constructor(e){l.set(this,void 0),__classPrivateFieldSet$15(this,l,e,`f`)}name(){return __classPrivateFieldGet$17(this,l,`f`).name}url(){return __classPrivateFieldGet$17(this,l,`f`).url}};l=new WeakMap;var __classPrivateFieldSet$14=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$16=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},u,MetaSource=class{constructor(e){u.set(this,void 0),__classPrivateFieldSet$14(this,u,e,`f`)}name(){return __classPrivateFieldGet$16(this,u,`f`).name}url(){return __classPrivateFieldGet$16(this,u,`f`).url}};u=new WeakMap;var __classPrivateFieldSet$13=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$15=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},d,f,p,m,Meta=class{constructor(e){d.set(this,void 0),f.set(this,void 0),p.set(this,void 0),m.set(this,void 0),__classPrivateFieldSet$13(this,d,e,`f`)}license(){return __classPrivateFieldSet$13(this,f,__classPrivateFieldGet$15(this,f,`f`)??new MetaLicense(__classPrivateFieldGet$15(this,d,`f`).license??{}),`f`),__classPrivateFieldGet$15(this,f,`f`)}creator(){return __classPrivateFieldSet$13(this,p,__classPrivateFieldGet$15(this,p,`f`)??new MetaCreator(__classPrivateFieldGet$15(this,d,`f`).creator??{}),`f`),__classPrivateFieldGet$15(this,p,`f`)}source(){return __classPrivateFieldSet$13(this,m,__classPrivateFieldGet$15(this,m,`f`)??new MetaSource(__classPrivateFieldGet$15(this,d,`f`).source??{}),`f`),__classPrivateFieldGet$15(this,m,`f`)}};d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap;var __classPrivateFieldSet$12=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$14=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},h,g,ee=class Element{constructor(e){h.set(this,void 0),g.set(this,void 0),__classPrivateFieldSet$12(this,h,e,`f`)}type(){return __classPrivateFieldGet$14(this,h,`f`).type}name(){return __classPrivateFieldGet$14(this,h,`f`).name}value(){return __classPrivateFieldGet$14(this,h,`f`).value}attributes(){return __classPrivateFieldGet$14(this,h,`f`).attributes}children(){return __classPrivateFieldSet$12(this,g,__classPrivateFieldGet$14(this,g,`f`)??(__classPrivateFieldGet$14(this,h,`f`).children??[]).map(e=>new Element(e)),`f`),__classPrivateFieldGet$14(this,g,`f`)}};h=new WeakMap,g=new WeakMap;var __classPrivateFieldSet$11=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$13=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},_,v,Canvas=class{constructor(e){_.set(this,void 0),v.set(this,void 0),__classPrivateFieldSet$11(this,_,e,`f`)}width(){return __classPrivateFieldGet$13(this,_,`f`).width}height(){return __classPrivateFieldGet$13(this,_,`f`).height}elements(){return __classPrivateFieldSet$11(this,v,__classPrivateFieldGet$13(this,v,`f`)??__classPrivateFieldGet$13(this,_,`f`).elements.map(e=>new ee(e)),`f`),__classPrivateFieldGet$13(this,v,`f`)}};_=new WeakMap,v=new WeakMap;var __classPrivateFieldSet$10=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$12=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},y,ComponentTranslate=class{constructor(e){y.set(this,void 0),__classPrivateFieldSet$10(this,y,e,`f`)}x(){return __classPrivateFieldGet$12(this,y,`f`).x}y(){return __classPrivateFieldGet$12(this,y,`f`).y}};y=new WeakMap;var __classPrivateFieldSet$9=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$11=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},b,x,ComponentVariant=class{constructor(e){b.set(this,void 0),x.set(this,void 0),__classPrivateFieldSet$9(this,b,e,`f`)}elements(){return __classPrivateFieldSet$9(this,x,__classPrivateFieldGet$11(this,x,`f`)??__classPrivateFieldGet$11(this,b,`f`).elements.map(e=>new ee(e)),`f`),__classPrivateFieldGet$11(this,x,`f`)}weight(){return __classPrivateFieldGet$11(this,b,`f`).weight??1}tags(){return __classPrivateFieldGet$11(this,b,`f`).tags??[]}hasTag(e,t){return t===void 0?this.tags().some(t=>t===e||t.startsWith(`${e}:`)):this.tags().includes(`${e}:${t}`)}};b=new WeakMap,x=new WeakMap;var __classPrivateFieldSet$8=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$10=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},S,C,w,T,E,D,O,Component=class{constructor(e,t,n){S.add(this),C.set(this,void 0),w.set(this,void 0),T.set(this,void 0),E.set(this,void 0),D.set(this,void 0),__classPrivateFieldSet$8(this,C,t,`f`),__classPrivateFieldSet$8(this,w,e,`f`),__classPrivateFieldSet$8(this,T,n,`f`)}name(){return __classPrivateFieldGet$10(this,w,`f`)}extendsName(){return`extends`in __classPrivateFieldGet$10(this,C,`f`)?__classPrivateFieldGet$10(this,C,`f`).extends:void 0}sourceName(){return this.extendsName()??__classPrivateFieldGet$10(this,w,`f`)}width(){return __classPrivateFieldGet$10(this,T,`f`)?__classPrivateFieldGet$10(this,T,`f`).width():__classPrivateFieldGet$10(this,S,`m`,O).call(this).width}height(){return __classPrivateFieldGet$10(this,T,`f`)?__classPrivateFieldGet$10(this,T,`f`).height():__classPrivateFieldGet$10(this,S,`m`,O).call(this).height}probability(){return __classPrivateFieldGet$10(this,T,`f`)?__classPrivateFieldGet$10(this,T,`f`).probability():__classPrivateFieldGet$10(this,S,`m`,O).call(this).probability??100}rotate(){return __classPrivateFieldGet$10(this,T,`f`)?__classPrivateFieldGet$10(this,T,`f`).rotate():__classPrivateFieldGet$10(this,S,`m`,O).call(this).rotate}scale(){return __classPrivateFieldGet$10(this,T,`f`)?__classPrivateFieldGet$10(this,T,`f`).scale():__classPrivateFieldGet$10(this,S,`m`,O).call(this).scale}translate(){return __classPrivateFieldGet$10(this,T,`f`)?__classPrivateFieldGet$10(this,T,`f`).translate():(__classPrivateFieldSet$8(this,E,__classPrivateFieldGet$10(this,E,`f`)??new ComponentTranslate(__classPrivateFieldGet$10(this,S,`m`,O).call(this).translate??{}),`f`),__classPrivateFieldGet$10(this,E,`f`))}variants(){return __classPrivateFieldGet$10(this,T,`f`)?__classPrivateFieldGet$10(this,T,`f`).variants():(__classPrivateFieldSet$8(this,D,__classPrivateFieldGet$10(this,D,`f`)??new Map(Object.entries(__classPrivateFieldGet$10(this,S,`m`,O).call(this).variants).map(([e,t])=>[e,new ComponentVariant(t)])),`f`),__classPrivateFieldGet$10(this,D,`f`))}};C=new WeakMap,w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,S=new WeakSet,O=function _Component_asBase(){return __classPrivateFieldGet$10(this,C,`f`)};var __classPrivateFieldSet$7=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$9=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},k,Color$1=class{static{__name(this,`Color`)}constructor(e){k.set(this,void 0),__classPrivateFieldSet$7(this,k,e,`f`)}values(){return __classPrivateFieldGet$9(this,k,`f`).values}notEqualTo(){return __classPrivateFieldGet$9(this,k,`f`).notEqualTo??[]}contrastTo(){return __classPrivateFieldGet$9(this,k,`f`).contrastTo}};k=new WeakMap;var __classPrivateFieldSet$6=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$8=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},te,A,j,M,N,P,F,ne,I,Style=class{constructor(e){te.add(this),j.set(this,void 0),M.set(this,void 0),N.set(this,void 0),P.set(this,void 0),F.set(this,void 0),StyleValidator.validate(e),__classPrivateFieldSet$6(this,j,structuredClone(e),`f`),__classPrivateFieldGet$8(this,te,`m`,ne).call(this)}id(){return __classPrivateFieldGet$8(this,j,`f`).$id}schema(){return __classPrivateFieldGet$8(this,j,`f`).$schema}comment(){return __classPrivateFieldGet$8(this,j,`f`).$comment}meta(){return __classPrivateFieldSet$6(this,M,__classPrivateFieldGet$8(this,M,`f`)??new Meta(__classPrivateFieldGet$8(this,j,`f`).meta??{}),`f`),__classPrivateFieldGet$8(this,M,`f`)}attributes(){return structuredClone(__classPrivateFieldGet$8(this,j,`f`).attributes??{})}definition(){return structuredClone(__classPrivateFieldGet$8(this,j,`f`))}canvas(){return __classPrivateFieldSet$6(this,N,__classPrivateFieldGet$8(this,N,`f`)??new Canvas(__classPrivateFieldGet$8(this,j,`f`).canvas),`f`),__classPrivateFieldGet$8(this,N,`f`)}components(){if(__classPrivateFieldGet$8(this,P,`f`))return __classPrivateFieldGet$8(this,P,`f`);let e=Object.entries(__classPrivateFieldGet$8(this,j,`f`).components??{}),t=new Map;for(let[n,r]of e)__classPrivateFieldGet$8(A,A,`m`,I).call(A,r)||t.set(n,new Component(n,r));for(let[n,r]of e)__classPrivateFieldGet$8(A,A,`m`,I).call(A,r)&&t.set(n,new Component(n,r,t.get(r.extends)));return __classPrivateFieldSet$6(this,P,t,`f`),__classPrivateFieldGet$8(this,P,`f`)}colors(){return __classPrivateFieldSet$6(this,F,__classPrivateFieldGet$8(this,F,`f`)??new Map(Object.entries(__classPrivateFieldGet$8(this,j,`f`).colors??{}).map(([e,t])=>[e,new Color$1(t)])),`f`),__classPrivateFieldGet$8(this,F,`f`)}};A=Style,j=new WeakMap,M=new WeakMap,N=new WeakMap,P=new WeakMap,F=new WeakMap,te=new WeakSet,ne=function _Style_validateAliases(){let e=__classPrivateFieldGet$8(this,j,`f`).components;if(!e)return;let t=[];for(let[n,r]of Object.entries(e)){if(!__classPrivateFieldGet$8(A,A,`m`,I).call(A,r))continue;let i=r.extends,a=e[i];if(!a){t.push({instancePath:`/components/${n}/extends`,message:`references unknown component "${i}"`});continue}__classPrivateFieldGet$8(A,A,`m`,I).call(A,a)&&t.push({instancePath:`/components/${n}/extends`,message:`references alias "${i}" — alias chains are not allowed`})}if(t.length>0)throw new StyleValidationError(t)},I=function _Style_isAlias(e){return`extends`in e};var OptionsValidationError=class extends ValidationError{constructor(e){super(`Invalid options`,e),this.name=`OptionsValidationError`}};let re=(function(){"use strict";let stringLength=e=>/[\uD800-\uDFFF]/.test(e)?[...e].length:e.length,pointerPart=e=>/~\//.test(e)?`${e}`.replace(/~/g,`~0`).replace(/\//g,`~1`):e,e=Function.prototype.call.bind(Object.prototype.hasOwnProperty),t=function validate(e){validate.errors=null;let t=0;return typeof e==`string`?e!==`none`&&e!==`horizontal`&&e!==`vertical`&&e!==`both`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/enum`,instanceLocation:`#`}),t++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},errorMerge=({keywordLocation:e,instanceLocation:t},n,r)=>({keywordLocation:`${n}${e.slice(1)}`,instanceLocation:`${r}${t.slice(1)}`}),n=RegExp(`^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$`,`u`),r=function validate(e){validate.errors=null;let t=0;if(typeof e!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++;else{let r=t;e.length>256&&stringLength(e)>256&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),t++),t===r&&(n.test(e)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),t++))}return t===0},i=function validate(e){validate.errors=null;let t=0;return Number.isInteger(e)?(1<=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),t++),1e3>=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),t++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},a=function validate(e){validate.errors=null;let t=0;return typeof e==`number`?(0<=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),t++),10>=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),t++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},o=function validate(t){validate.errors=null;let n=0,r=null;return(()=>{let e=0,n=validate.errors,r=a(t),i=a.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/anyOf/0/$ref`,`#`))),e++),e===0})()||(()=>{let n=0;if(!Array.isArray(t))r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/type`,instanceLocation:`#`}),n++;else{t.length>2&&(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/maxItems`,instanceLocation:`#`}),n++),t.length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/minItems`,instanceLocation:`#`}),n++);for(let r=0;r<t.length;r++)if(t[r]!==void 0&&e(t,r)){let e=validate.errors,i=a(t[r]),o=a.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/anyOf/1/items/$ref`,`#/`+r))),n++)}}return n===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),r&&validate.errors.push(...r),n++),n===0},s=function validate(e){validate.errors=null;let t=0;return typeof e==`number`?(0<=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),t++),50>=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),t++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},c=RegExp(`^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$`,`u`),l=function validate(e){validate.errors=null;let t=0;if(typeof e!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++;else{let n=t;e.length>130&&stringLength(e)>130&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),t++),t===n&&(c.test(e)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),t++))}return t===0},u=RegExp(`^[a-z][a-zA-Z0-9]*Probability$`,`u`),d=RegExp(`^[a-z][a-zA-Z0-9]*Variant$`,`u`),f=RegExp(`^[a-z][a-zA-Z0-9]*$`,`u`),p=function validate(e){validate.errors=null;let t=0;if(typeof e!=`string`)validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++;else{let n=t;e.length>64&&stringLength(e)>64&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxLength`,instanceLocation:`#`}),t++),t===n&&(f.test(e)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),t++))}return t===0},m=RegExp(`^[a-z][a-zA-Z0-9]*Color$`,`u`),h=RegExp(`^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$`,`u`),g=function validate(e){validate.errors=null;let t=0;return typeof e==`string`?t===t&&(h.test(e)||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/pattern`,instanceLocation:`#`}),t++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},ee=RegExp(`^[a-z][a-zA-Z0-9]*ColorFill$`,`u`),_=function validate(e){validate.errors=null;let t=0;return typeof e==`string`?e!==`solid`&&e!==`linear`&&e!==`radial`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/enum`,instanceLocation:`#`}),t++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},v=RegExp(`^[a-z][a-zA-Z0-9]*ColorFillStops$`,`u`),y=function validate(e){validate.errors=null;let t=0;return Number.isInteger(e)?2<=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),t++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},b=RegExp(`^[a-z][a-zA-Z0-9]*ColorAngle$`,`u`),x=function validate(e){validate.errors=null;let t=0;return typeof e==`number`?(-360<=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),t++),360>=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),t++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},S=function validate(t){validate.errors=null;let n=0,r=null;return(()=>{let e=0,n=validate.errors,r=x(t),i=x.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/anyOf/0/$ref`,`#`))),e++),e===0})()||(()=>{let n=0;if(!Array.isArray(t))r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/type`,instanceLocation:`#`}),n++;else{t.length>2&&(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/maxItems`,instanceLocation:`#`}),n++),t.length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/minItems`,instanceLocation:`#`}),n++);for(let r=0;r<t.length;r++)if(t[r]!==void 0&&e(t,r)){let e=validate.errors,i=x(t[r]),a=x.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/anyOf/1/items/$ref`,`#/`+r))),n++)}}return n===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),r&&validate.errors.push(...r),n++),n===0},C=RegExp(`^[a-z][a-zA-Z0-9]*ColorOrder$`,`u`),w=function validate(e){validate.errors=null;let t=0;return typeof e==`number`?(-1e3<=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/minimum`,instanceLocation:`#`}),t++),1e3>=e||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maximum`,instanceLocation:`#`}),t++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),t++),t===0},T=function validate(t){validate.errors=null;let n=0,r=null;return(()=>{let e=0,n=validate.errors,r=w(t),i=w.errors;return validate.errors=n,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/anyOf/0/$ref`,`#`))),e++),e===0})()||(()=>{let n=0;if(!Array.isArray(t))r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/type`,instanceLocation:`#`}),n++;else{t.length>2&&(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/maxItems`,instanceLocation:`#`}),n++),t.length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/anyOf/1/minItems`,instanceLocation:`#`}),n++);for(let r=0;r<t.length;r++)if(t[r]!==void 0&&e(t,r)){let e=validate.errors,i=w(t[r]),a=w.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/anyOf/1/items/$ref`,`#/`+r))),n++)}}return n===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/anyOf`,instanceLocation:`#`}),r&&validate.errors.push(...r),n++),n===0};return function validate(n){validate.errors=null;let a=0;if(typeof n!=`object`||!n||Array.isArray(n))validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/type`,instanceLocation:`#`}),a++;else{let c=a;Object.keys(n).length>512&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/maxProperties`,instanceLocation:`#`}),a++);for(let e of Object.keys(n))e.length>128&&stringLength(e)>128&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/propertyNames/maxLength`,instanceLocation:`#/`+pointerPart(e)}),a++);if(n.seed!==void 0&&e(n,`seed`)&&(typeof n.seed==`string`?n.seed.length>1024&&stringLength(n.seed)>1024&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/seed/maxLength`,instanceLocation:`#/seed`}),a++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/seed/type`,instanceLocation:`#/seed`}),a++)),n.size!==void 0&&e(n,`size`)&&(Number.isInteger(n.size)?(1<=n.size||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/size/minimum`,instanceLocation:`#/size`}),a++),4096>=n.size||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/size/maximum`,instanceLocation:`#/size`}),a++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/size/type`,instanceLocation:`#/size`}),a++)),n.idRandomization!==void 0&&e(n,`idRandomization`)&&typeof n.idRandomization!=`boolean`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/idRandomization/type`,instanceLocation:`#/idRandomization`}),a++),n.title!==void 0&&e(n,`title`)&&(typeof n.title==`string`?n.title.length>256&&stringLength(n.title)>256&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/title/maxLength`,instanceLocation:`#/title`}),a++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/title/type`,instanceLocation:`#/title`}),a++)),n.flip!==void 0&&e(n,`flip`)){let r=null;(()=>{let e=0,r=validate.errors,i=t(n.flip),a=t.errors;return validate.errors=r,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/flip/anyOf/0/$ref`,`#/flip`))),e++),e===0})()||(()=>{let i=0;if(!Array.isArray(n.flip))r===null&&(r=[]),r.push({keywordLocation:`#/properties/flip/anyOf/1/type`,instanceLocation:`#/flip`}),i++;else{n.flip.length>4&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/flip/anyOf/1/maxItems`,instanceLocation:`#/flip`}),i++),n.flip.length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/properties/flip/anyOf/1/minItems`,instanceLocation:`#/flip`}),i++);for(let r=0;r<n.flip.length;r++)if(n.flip[r]!==void 0&&e(n.flip,r)){let e=validate.errors,a=t(n.flip[r]),o=t.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/properties/flip/anyOf/1/items/$ref`,`#/flip/`+r))),i++)}}return i===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/flip/anyOf`,instanceLocation:`#/flip`}),r&&validate.errors.push(...r),a++)}if(n.fontFamily!==void 0&&e(n,`fontFamily`)){let t=null;(()=>{let e=0,t=validate.errors,i=r(n.fontFamily),a=r.errors;return validate.errors=t,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/fontFamily/anyOf/0/$ref`,`#/fontFamily`))),e++),e===0})()||(()=>{let i=0;if(!Array.isArray(n.fontFamily))t===null&&(t=[]),t.push({keywordLocation:`#/properties/fontFamily/anyOf/1/type`,instanceLocation:`#/fontFamily`}),i++;else{n.fontFamily.length>128&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/fontFamily/anyOf/1/maxItems`,instanceLocation:`#/fontFamily`}),i++),n.fontFamily.length<0&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/fontFamily/anyOf/1/minItems`,instanceLocation:`#/fontFamily`}),i++);for(let t=0;t<n.fontFamily.length;t++)if(n.fontFamily[t]!==void 0&&e(n.fontFamily,t)){let e=validate.errors,a=r(n.fontFamily[t]),o=r.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/properties/fontFamily/anyOf/1/items/$ref`,`#/fontFamily/`+t))),i++)}}return i===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/fontFamily/anyOf`,instanceLocation:`#/fontFamily`}),t&&validate.errors.push(...t),a++)}if(n.fontWeight!==void 0&&e(n,`fontWeight`)){let t=null;(()=>{let e=0,t=validate.errors,r=i(n.fontWeight),a=i.errors;return validate.errors=t,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/fontWeight/anyOf/0/$ref`,`#/fontWeight`))),e++),e===0})()||(()=>{let r=0;if(!Array.isArray(n.fontWeight))t===null&&(t=[]),t.push({keywordLocation:`#/properties/fontWeight/anyOf/1/type`,instanceLocation:`#/fontWeight`}),r++;else{n.fontWeight.length>128&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/fontWeight/anyOf/1/maxItems`,instanceLocation:`#/fontWeight`}),r++),n.fontWeight.length<0&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/fontWeight/anyOf/1/minItems`,instanceLocation:`#/fontWeight`}),r++);for(let t=0;t<n.fontWeight.length;t++)if(n.fontWeight[t]!==void 0&&e(n.fontWeight,t)){let e=validate.errors,a=i(n.fontWeight[t]),o=i.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/properties/fontWeight/anyOf/1/items/$ref`,`#/fontWeight/`+t))),r++)}}return r===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/fontWeight/anyOf`,instanceLocation:`#/fontWeight`}),t&&validate.errors.push(...t),a++)}if(n.scale!==void 0&&e(n,`scale`)){let e=validate.errors,t=o(n.scale),r=o.errors;validate.errors=e,t||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...r.map(e=>errorMerge(e,`#/properties/scale/allOf/0/$ref`,`#/scale`))),a++)}if(n.borderRadius!==void 0&&e(n,`borderRadius`)){let t=null;(()=>{let e=0,t=validate.errors,r=s(n.borderRadius),i=s.errors;return validate.errors=t,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/borderRadius/anyOf/0/$ref`,`#/borderRadius`))),e++),e===0})()||(()=>{let r=0;if(!Array.isArray(n.borderRadius))t===null&&(t=[]),t.push({keywordLocation:`#/properties/borderRadius/anyOf/1/type`,instanceLocation:`#/borderRadius`}),r++;else{n.borderRadius.length>2&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/borderRadius/anyOf/1/maxItems`,instanceLocation:`#/borderRadius`}),r++),n.borderRadius.length<0&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/borderRadius/anyOf/1/minItems`,instanceLocation:`#/borderRadius`}),r++);for(let t=0;t<n.borderRadius.length;t++)if(n.borderRadius[t]!==void 0&&e(n.borderRadius,t)){let e=validate.errors,i=s(n.borderRadius[t]),a=s.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/borderRadius/anyOf/1/items/$ref`,`#/borderRadius/`+t))),r++)}}return r===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/borderRadius/anyOf`,instanceLocation:`#/borderRadius`}),t&&validate.errors.push(...t),a++)}if(n.tags!==void 0&&e(n,`tags`)){let t=null;(()=>{let e=0,t=validate.errors,r=l(n.tags),i=l.errors;return validate.errors=t,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/properties/tags/anyOf/0/$ref`,`#/tags`))),e++),e===0})()||(()=>{let r=0;if(!Array.isArray(n.tags))t===null&&(t=[]),t.push({keywordLocation:`#/properties/tags/anyOf/1/type`,instanceLocation:`#/tags`}),r++;else{n.tags.length>128&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/tags/anyOf/1/maxItems`,instanceLocation:`#/tags`}),r++),n.tags.length<0&&(t===null&&(t=[]),t.push({keywordLocation:`#/properties/tags/anyOf/1/minItems`,instanceLocation:`#/tags`}),r++);for(let t=0;t<n.tags.length;t++)if(n.tags[t]!==void 0&&e(n.tags,t)){let e=validate.errors,i=l(n.tags[t]),a=l.errors;validate.errors=e,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/properties/tags/anyOf/1/items/$ref`,`#/tags/`+t))),r++)}}return r===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/properties/tags/anyOf`,instanceLocation:`#/tags`}),t&&validate.errors.push(...t),a++)}if(a===c){for(let t of Object.keys(n)){if(u.test(t)&&(typeof n[t]==`number`?(0<=n[t]||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/minimum`,instanceLocation:`#/`+pointerPart(t)}),a++),100>=n[t]||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/maximum`,instanceLocation:`#/`+pointerPart(t)}),a++)):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Probability$/type`,instanceLocation:`#/`+pointerPart(t)}),a++)),d.test(t)){let r=null;(()=>{let e=0,r=validate.errors,i=p(n[t]),a=p.errors;return validate.errors=r,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/0/$ref`,`#/`+pointerPart(t)))),e++),e===0})()||(()=>{let i=0;if(!Array.isArray(n[t]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/type`,instanceLocation:`#/`+pointerPart(t)}),i++;else{n[t].length>128&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/maxItems`,instanceLocation:`#/`+pointerPart(t)}),i++),n[t].length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/minItems`,instanceLocation:`#/`+pointerPart(t)}),i++);for(let r=0;r<n[t].length;r++)if(n[t][r]!==void 0&&e(n[t],r)){let e=validate.errors,a=p(n[t][r]),o=p.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/1/items/$ref`,`#/`+pointerPart(t)+`/`+r))),i++)}}return i===0})()||(()=>{let e=0;if(typeof n[t]!=`object`||!n[t]||Array.isArray(n[t]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/type`,instanceLocation:`#/`+pointerPart(t)}),e++;else{Object.keys(n[t]).length>512&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/maxProperties`,instanceLocation:`#/`+pointerPart(t)}),e++),Object.keys(n[t]).length<1&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/minProperties`,instanceLocation:`#/`+pointerPart(t)}),e++);for(let r of Object.keys(n[t])){let n=validate.errors,i=p(r),a=p.errors;validate.errors=n,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/propertyNames/$ref`,`#/`+pointerPart(t)+`/`+pointerPart(r)))),e++)}for(let i of Object.keys(n[t]))typeof n[t][i]==`number`?0<=n[t][i]||(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/additionalProperties/minimum`,instanceLocation:`#/`+pointerPart(t)+`/`+pointerPart(i)}),e++):(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf/2/additionalProperties/type`,instanceLocation:`#/`+pointerPart(t)+`/`+pointerPart(i)}),e++)}return e===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Variant$/anyOf`,instanceLocation:`#/`+pointerPart(t)}),r&&validate.errors.push(...r),a++)}if(m.test(t)){let r=null;(()=>{let e=0,r=validate.errors,i=g(n[t]),a=g.errors;return validate.errors=r,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/0/$ref`,`#/`+pointerPart(t)))),e++),e===0})()||(()=>{let i=0;if(!Array.isArray(n[t]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/type`,instanceLocation:`#/`+pointerPart(t)}),i++;else{n[t].length>128&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/maxItems`,instanceLocation:`#/`+pointerPart(t)}),i++),n[t].length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/minItems`,instanceLocation:`#/`+pointerPart(t)}),i++);for(let r=0;r<n[t].length;r++)if(n[t][r]!==void 0&&e(n[t],r)){let e=validate.errors,a=g(n[t][r]),o=g.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf/1/items/$ref`,`#/`+pointerPart(t)+`/`+r))),i++)}}return i===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*Color$/anyOf`,instanceLocation:`#/`+pointerPart(t)}),r&&validate.errors.push(...r),a++)}if(ee.test(t)){let r=null;(()=>{let e=0,r=validate.errors,i=_(n[t]),a=_.errors;return validate.errors=r,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/0/$ref`,`#/`+pointerPart(t)))),e++),e===0})()||(()=>{let i=0;if(!Array.isArray(n[t]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/type`,instanceLocation:`#/`+pointerPart(t)}),i++;else{n[t].length>128&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/maxItems`,instanceLocation:`#/`+pointerPart(t)}),i++),n[t].length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/minItems`,instanceLocation:`#/`+pointerPart(t)}),i++);for(let r=0;r<n[t].length;r++)if(n[t][r]!==void 0&&e(n[t],r)){let e=validate.errors,a=_(n[t][r]),o=_.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf/1/items/$ref`,`#/`+pointerPart(t)+`/`+r))),i++)}}return i===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFill$/anyOf`,instanceLocation:`#/`+pointerPart(t)}),r&&validate.errors.push(...r),a++)}if(v.test(t)){let r=null;(()=>{let e=0,r=validate.errors,i=y(n[t]),a=y.errors;return validate.errors=r,i||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...a.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/0/$ref`,`#/`+pointerPart(t)))),e++),e===0})()||(()=>{let i=0;if(!Array.isArray(n[t]))r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/type`,instanceLocation:`#/`+pointerPart(t)}),i++;else{n[t].length>2&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/maxItems`,instanceLocation:`#/`+pointerPart(t)}),i++),n[t].length<0&&(r===null&&(r=[]),r.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/minItems`,instanceLocation:`#/`+pointerPart(t)}),i++);for(let r=0;r<n[t].length;r++)if(n[t][r]!==void 0&&e(n[t],r)){let e=validate.errors,a=y(n[t][r]),o=y.errors;validate.errors=e,a||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...o.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf/1/items/$ref`,`#/`+pointerPart(t)+`/`+r))),i++)}}return i===0})()||(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorFillStops$/anyOf`,instanceLocation:`#/`+pointerPart(t)}),r&&validate.errors.push(...r),a++)}if(b.test(t)){let e=validate.errors,r=S(n[t]),i=S.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorAngle$/allOf/0/$ref`,`#/`+pointerPart(t)))),a++)}if(C.test(t)&&(typeof n[t]==`string`?n[t]!==`random`&&n[t]!==`fixed`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorOrder$/enum`,instanceLocation:`#/`+pointerPart(t)}),a++):(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/patternProperties/^[a-z][a-zA-Z0-9]*ColorOrder$/type`,instanceLocation:`#/`+pointerPart(t)}),a++)),t===`rotate`){let e=validate.errors,r=S(n[t]),i=S.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/patternProperties/^rotate$/allOf/0/$ref`,`#/`+pointerPart(t)))),a++)}if(t===`translateY`){let e=validate.errors,r=T(n[t]),i=T.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/patternProperties/^translateY$/allOf/0/$ref`,`#/`+pointerPart(t)))),a++)}if(t===`translateX`){let e=validate.errors,r=T(n[t]),i=T.errors;validate.errors=e,r||(validate.errors===null&&(validate.errors=[]),validate.errors.push(...i.map(e=>errorMerge(e,`#/patternProperties/^translateX$/allOf/0/$ref`,`#/`+pointerPart(t)))),a++)}}for(let e of Object.keys(n))e!==`seed`&&e!==`size`&&e!==`idRandomization`&&e!==`title`&&e!==`flip`&&e!==`fontFamily`&&e!==`fontWeight`&&e!==`scale`&&e!==`borderRadius`&&e!==`tags`&&!u.test(e)&&!d.test(e)&&!m.test(e)&&!ee.test(e)&&!v.test(e)&&!b.test(e)&&!C.test(e)&&e!==`rotate`&&e!==`translateY`&&e!==`translateX`&&(validate.errors===null&&(validate.errors=[]),validate.errors.push({keywordLocation:`#/additionalProperties`,instanceLocation:`#/`+pointerPart(e)}),a++)}}return a===0}})(),ie={type:`has an invalid type`,enum:`must be one of the allowed values`,const:`must equal the expected value`,pattern:`does not match the required pattern`,required:`is required but missing`,additionalProperties:`has an unexpected property`,propertyNames:`has an invalid property name`,minimum:`is smaller than allowed`,maximum:`is larger than allowed`,exclusiveMinimum:`is smaller than allowed`,exclusiveMaximum:`is larger than allowed`,minLength:`is too short`,maxLength:`is too long`,minItems:`has too few items`,maxItems:`has too many items`,uniqueItems:`has duplicate items`,minProperties:`has too few properties`,maxProperties:`has too many properties`,anyOf:`does not match any allowed variant`,oneOf:`does not match exactly one allowed variant`,allOf:`does not match all required schemas`,not:`matches a disallowed schema`};function toDetail(e){let t=e.keywordLocation.slice(e.keywordLocation.lastIndexOf(`/`)+1);return{instancePath:e.instanceLocation.slice(1),schemaPath:e.keywordLocation,keyword:t,message:ie[t]??`must satisfy '${t}'`}}var OptionsValidator=class{static validate(e){if(!re(e))throw new OptionsValidationError((re.errors??[]).map(toDetail))}},__classPrivateFieldSet$5=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$7=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},L,R,ae,z,B,V,Options=class{constructor(e={}){L.add(this),R.set(this,void 0),ae.set(this,void 0),OptionsValidator.validate(e),__classPrivateFieldSet$5(this,R,structuredClone(e),`f`)}seed(){return __classPrivateFieldGet$7(this,R,`f`).seed}size(){return __classPrivateFieldGet$7(this,R,`f`).size}idRandomization(){return __classPrivateFieldGet$7(this,R,`f`).idRandomization}title(){return __classPrivateFieldGet$7(this,R,`f`).title}flip(){return __classPrivateFieldGet$7(this,L,`m`,B).call(this,__classPrivateFieldGet$7(this,R,`f`).flip)}fontFamily(){return __classPrivateFieldGet$7(this,L,`m`,B).call(this,__classPrivateFieldGet$7(this,R,`f`).fontFamily)}fontWeight(){return __classPrivateFieldGet$7(this,L,`m`,B).call(this,__classPrivateFieldGet$7(this,R,`f`).fontWeight)}scale(){return __classPrivateFieldGet$7(this,L,`m`,V).call(this,__classPrivateFieldGet$7(this,R,`f`).scale)}borderRadius(){return __classPrivateFieldGet$7(this,L,`m`,V).call(this,__classPrivateFieldGet$7(this,R,`f`).borderRadius)}rotate(){return __classPrivateFieldGet$7(this,L,`m`,V).call(this,__classPrivateFieldGet$7(this,R,`f`).rotate)}translateX(){return __classPrivateFieldGet$7(this,L,`m`,V).call(this,__classPrivateFieldGet$7(this,R,`f`).translateX)}translateY(){return __classPrivateFieldGet$7(this,L,`m`,V).call(this,__classPrivateFieldGet$7(this,R,`f`).translateY)}tags(){return __classPrivateFieldSet$5(this,ae,__classPrivateFieldGet$7(this,ae,`f`)??__classPrivateFieldGet$7(this,L,`m`,B).call(this,__classPrivateFieldGet$7(this,R,`f`).tags).map(e=>{let t=e.startsWith(`!`),n=t?e.slice(1):e,r=n.indexOf(`:`);return r===-1?{category:n,negated:t}:{category:n.slice(0,r),value:n.slice(r+1),negated:t}}),`f`)}componentVariant(e){let t=__classPrivateFieldGet$7(this,L,`m`,z).call(this,`${e}Variant`);if(t!==void 0)return typeof t==`string`?{[t]:1}:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,1])):t}componentProbability(e){return __classPrivateFieldGet$7(this,L,`m`,z).call(this,`${e}Probability`)}color(e){let t=__classPrivateFieldGet$7(this,L,`m`,z).call(this,`${e}Color`);return t===void 0?void 0:__classPrivateFieldGet$7(this,L,`m`,B).call(this,t)}colorFill(e){return __classPrivateFieldGet$7(this,L,`m`,B).call(this,__classPrivateFieldGet$7(this,L,`m`,z).call(this,`${e}ColorFill`))}colorAngle(e){return __classPrivateFieldGet$7(this,L,`m`,V).call(this,__classPrivateFieldGet$7(this,L,`m`,z).call(this,`${e}ColorAngle`))}colorFillStops(e){return __classPrivateFieldGet$7(this,L,`m`,V).call(this,__classPrivateFieldGet$7(this,L,`m`,z).call(this,`${e}ColorFillStops`))}colorOrder(e){return __classPrivateFieldGet$7(this,L,`m`,z).call(this,`${e}ColorOrder`)}};R=new WeakMap,ae=new WeakMap,L=new WeakSet,z=function _Options_dynamic(e){return __classPrivateFieldGet$7(this,R,`f`)[e]},B=function _Options_asArray(e){return e===void 0?[]:Array.isArray(e)?e:[e]},V=function _Options_toRange(e){if(e!==void 0){if(typeof e==`number`)return{min:e,max:e};if(e.length!==0)return{min:Math.min(...e),max:Math.max(...e)}}};var oe=class Fnv1a{static hash(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}static hex(e){return Fnv1a.hash(e).toString(16).padStart(8,`0`)}},__classPrivateFieldSet$4=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$6=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},H;let se=2**32;var Mulberry32=class{constructor(e){H.set(this,void 0),__classPrivateFieldSet$4(this,H,e,`f`)}next(){let e=__classPrivateFieldSet$4(this,H,__classPrivateFieldGet$6(this,H,`f`)+1831565813|0,`f`),t=Math.imul(e^e>>>15,e|1);return t^=t+Math.imul(t^t>>>7,t|61),(t^t>>>14)>>>0}nextFloat(){return this.next()/se}state(){return __classPrivateFieldGet$6(this,H,`f`)}};H=new WeakMap;var __classPrivateFieldSet$3=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$5=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},U,ce,le,ue,Prng=class{constructor(e){U.add(this),ce.set(this,void 0),__classPrivateFieldSet$3(this,ce,e,`f`)}pick(e,t){if(t.length===0)return;if(t.length===1)return t[0];let n=__classPrivateFieldGet$5(this,U,`m`,le).call(this,t);if(n.length===1)return n[0];let r=n.sort(__classPrivateFieldGet$5(this,U,`m`,ue));return r[Math.floor(this.getValue(e)*r.length)]}weightedPick(e,t){let n=Object.keys(t);if(n.length===0)return;if(n.length===1)return n[0];let r=n.sort(__classPrivateFieldGet$5(this,U,`m`,ue)),i=r.reduce((e,n)=>e+t[n],0);if(i===0)return this.pick(e,r);let a=this.getValue(e)*i,o=0;for(let e of r)if(o+=t[e],a<o)return e;return r[r.length-1]}bool(e,t=50){return this.getValue(e)*100<t}float(e,t){let n=Math.min(t.min,t.max),r=Math.max(t.min,t.max),i=t.step??0,a;if(i>0){let t=Math.floor((r-n)/i)+1;a=n+Math.floor(this.getValue(e)*t)*i}else a=n+this.getValue(e)*(r-n);return Math.round(a*1e4)/1e4}integer(e,t){let n=Math.min(t.min,t.max),r=Math.max(t.min,t.max);return Math.floor(this.getValue(e)*(r-n+1))+n}shuffle(e,t){if(t.length<=1)return[...t];let n=__classPrivateFieldGet$5(this,U,`m`,le).call(this,t).sort(__classPrivateFieldGet$5(this,U,`m`,ue)),r=new Mulberry32(oe.hash(__classPrivateFieldGet$5(this,ce,`f`)+`:`+e));for(let e=n.length-1;e>0;e--){let t=Math.floor(r.nextFloat()*(e+1)),i=n[e];n[e]=n[t],n[t]=i}return n}getValue(e){return new Mulberry32(oe.hash(__classPrivateFieldGet$5(this,ce,`f`)+`:`+e)).nextFloat()}};ce=new WeakMap,U=new WeakSet,le=function _Prng_uniqueByCodePoint(e,t=String){let n=new Set,r=[];for(let i of e){let e=t(i);n.has(e)||(n.add(e),r.push(i))}return r},ue=function _Prng_compareByCodePoint(e,t){let n=String(e),r=String(t);return n<r?-1:+(n>r)};var __classPrivateFieldGet$4=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},de,fe,pe,Color=class{static toHex(e){let t=e.replace(/^#/,``).toLowerCase();return t.length===3?`#`+t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t.length===4?`#`+t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]:`#`+t}static toRgbHex(e){let t=this.toHex(e);return t.length>7?t.slice(0,7):t}static parseHex(e){let t=this.toHex(e).slice(1);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}static luminance(e){let t=this.parseHex(e),n=__classPrivateFieldGet$4(this,de,`m`,pe).call(this,t[0]),r=__classPrivateFieldGet$4(this,de,`m`,pe).call(this,t[1]),i=__classPrivateFieldGet$4(this,de,`m`,pe).call(this,t[2]);return .2126*n+.7152*r+.0722*i}static sortByContrast(e,t){let n=this.luminance(t),r=e.map(e=>{let t=this.luminance(e);return{color:e,ratio:(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}});return r.sort((e,t)=>t.ratio-e.ratio),r.map(e=>e.color)}static filterNotEqualTo(e,t){let n=new Set(t.map(e=>this.toRgbHex(e))),r=e.filter(e=>!n.has(this.toRgbHex(e)));return r.length>0?r:Array.from(e)}};de=Color,pe=function _Color_linearize(e){return __classPrivateFieldGet$4(de,de,`f`,fe)[e]},fe={value:[0,.0003035269835488375,.000607053967097675,.0009105809506465125,.00121410793419535,.0015176349177441874,.001821161901293025,.0021246888848418626,.0024282158683907,.0027317428519395373,.003035269835488375,.003346535763899161,.003676507324047436,.004024717018496307,.004391442037410293,.004776953480693729,.005181516702338386,.005605391624202723,.006048833022857055,.006512090792594474,.006995410187265387,.007499032043226175,.008023192985384994,.008568125618069307,.009134058702220787,.009721217320237847,.010329823029626938,.010960094006488246,.011612245179743887,.012286488356915872,.012983032342173012,.013702083047289686,.014443843596092545,.01520851442291271,.01599629336550963,.016807375752887384,.017641954488384078,.018500220128379697,.019382360956935723,.0202885630566524,.021219010376003558,.02217388479338738,.02315336617811041,.024157632448504756,.025186859627361627,.026241221894849898,.027320891639074897,.028426039504420793,.0295568344378088,.030713443732993635,.03189603307301153,.033104766570885055,.03433980680868217,.03560131487502034,.03688945040110004,.0382043715953465,.03954623527673283,.04091519690685319,.042311410620809675,.043735029256973465,.04518620438567554,.0466650863368801,.048171824226889426,.04970656598412723,.05126945837404324,.052860647023180246,.05448027644244237,.05612849004960009,.05780543019106723,.0595112381629812,.06124605423161761,.06301001765316767,.06480326669290577,.06662593864377289,.06847816984440017,.07036009569659588,.07227185068231748,.07421356838014963,.07618538148130785,.07818742180518633,.08021982031446831,.0822827071298148,.08437621154414882,.08650046203654976,.08865558628577294,.09084171118340767,.09305896284668747,.0953074666309647,.09758734714186246,.09989872824711389,.1022417330881013,.10461648409110419,.10702310297826761,.10946171077829933,.1119324278369056,.11443537382697373,.11697066775851084,.11953842798834562,.12213877222960187,.12477181756095049,.12743768043564743,.1301364766903643,.13286832155381798,.13563332965520566,.13843161503245183,.14126329114027164,.14412847085805777,.14702726649759498,.14995978981060856,.15292615199615017,.1559264637078274,.1589608350608804,.16202937563911096,.1651321945016676,.16826940018969075,.1714411007328226,.17464740365558504,.17788841598362914,.18116424424986022,.184474994500441,.18782077230067787,.1912016827407914,.19461783044157582,.19806931955994886,.20155625379439707,.20507873639031693,.20863687014525575,.21223075741405523,.21586050011389923,.21952619972926923,.2232279573168085,.22696587351009836,.23074004852434915,.23455058216100522,.238397573812271,.24228112246555486,.24620132670783548,.25015828472995344,.25415209433082675,.2581828529215958,.26225065752969623,.26635560480286247,.2704977910130658,.27467731206038465,.2788942634768104,.2831487404299921,.2874408377269175,.29177064981753587,.2961382707983211,.3005437944157765,.3049873140698863,.30946892281750854,.31398871337571754,.31854677812509186,.32314320911295075,.3277780980565422,.33245153634617935,.33716361504833037,.341914424908661,.3467040563550296,.35153259950043936,.3564001441459435,.3613067797835095,.3662525955988395,.3712376804741491,.37626212299090644,.3813260114325301,.386429433787049,.39157247774972326,.39675523072562685,.40197777983219574,.4072402119017367,.41254261348390375,.4178850708481375,.4232676699860717,.4286904966139067,.4341536361747489,.4396571738409188,.44520119451622786,.45078578283822346,.45641102318040466,.4620769996544071,.467783796112159,.47353149614800955,.4793201831008268,.4851499400560704,.4910208498478356,.4969329950608704,.5028864580325687,.5088813208549338,.5149176653765214,.5209955732043543,.5271151257058131,.5332764040105052,.5394794890121071,.5457244613701866,.5520114015120001,.5583403896342679,.5647115057049292,.5711248294648731,.5775804404296506,.5840784178911641,.5906188409193369,.5972017883637634,.6038273388553378,.6104955708078648,.6172065624196511,.6239603916750761,.6307571363461468,.6375968739940326,.6444796819705821,.6514056374198242,.6583748172794486,.665387298282272,.6724431569576875,.6795424696330938,.6866853124353134,.6938717612919899,.7011018919329731,.7083757798916868,.7156935005064807,.7230551289219693,.7304607400903537,.7379104087727308,.7454042095403874,.7529422167760779,.7605245046752924,.7681511472475071,.7758222183174236,.7835377915261935,.7912979403326302,.799102738014409,.8069522576692516,.8148465722161012,.8227857543962835,.8307698767746546,.83879901174074,.846873231509858,.8549926081242338,.8631572134541023,.8713671191987973,.8796223968878317,.8879231178819663,.8962693533742664,.9046611743911496,.9130986517934192,.9215818562772946,.9301108583754237,.938685728457888,.9473065367331999,.9559733532492861,.9646862478944651,.9734452903984125,.9822505503331171,.9911020971138298,1]};var CircularColorReferenceError=class extends Error{constructor(e){let t=e.join(` → `);super(`Circular color reference: ${t}`),this.name=`CircularColorReferenceError`,this.chain=e}},__classPrivateFieldSet$2=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$3=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},W,me,G,K,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,q,J,Resolver=class{constructor(e,t){W.add(this),me.set(this,void 0),G.set(this,void 0),K.set(this,void 0),he.set(this,[]),ge.set(this,{}),_e.set(this,void 0),__classPrivateFieldSet$2(this,me,e,`f`),__classPrivateFieldSet$2(this,G,t,`f`),__classPrivateFieldSet$2(this,K,new Prng(this.seed()),`f`)}seed(){return __classPrivateFieldGet$3(this,G,`f`).seed()??``}size(){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,`size`,()=>__classPrivateFieldGet$3(this,G,`f`).size())}idRandomization(){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,`idRandomization`,()=>__classPrivateFieldGet$3(this,G,`f`).idRandomization()??!1)}title(){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,`title`,()=>__classPrivateFieldGet$3(this,G,`f`).title())}flip(){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,`flip`,()=>__classPrivateFieldGet$3(this,K,`f`).pick(`flip`,__classPrivateFieldGet$3(this,G,`f`).flip())??`none`)}fontFamily(){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,`fontFamily`,()=>__classPrivateFieldGet$3(this,K,`f`).pick(`fontFamily`,__classPrivateFieldGet$3(this,G,`f`).fontFamily())??`system-ui`)}fontWeight(){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,`fontWeight`,()=>__classPrivateFieldGet$3(this,K,`f`).pick(`fontWeight`,__classPrivateFieldGet$3(this,G,`f`).fontWeight())??400)}scale(){return __classPrivateFieldGet$3(this,W,`m`,q).call(this,`scale`,__classPrivateFieldGet$3(this,G,`f`).scale(),1)}borderRadius(){return __classPrivateFieldGet$3(this,W,`m`,q).call(this,`borderRadius`,__classPrivateFieldGet$3(this,G,`f`).borderRadius(),0)}rotate(){return __classPrivateFieldGet$3(this,W,`m`,q).call(this,`rotate`,__classPrivateFieldGet$3(this,G,`f`).rotate(),0)}translateX(){return __classPrivateFieldGet$3(this,W,`m`,q).call(this,`translateX`,__classPrivateFieldGet$3(this,G,`f`).translateX(),0)}translateY(){return __classPrivateFieldGet$3(this,W,`m`,q).call(this,`translateY`,__classPrivateFieldGet$3(this,G,`f`).translateY(),0)}variant(e){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,`${e}Variant`,()=>{let t=__classPrivateFieldGet$3(this,me,`f`).components().get(e);if(t&&__classPrivateFieldGet$3(this,W,`m`,ye).call(this,e,t))return __classPrivateFieldGet$3(this,K,`f`).weightedPick(`${e}Variant`,__classPrivateFieldGet$3(this,W,`m`,be).call(this,t))})}color(e){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,`${e}Color`,()=>__classPrivateFieldGet$3(this,W,`m`,Ce).call(this,e))}colorFill(e){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,`${e}ColorFill`,()=>__classPrivateFieldGet$3(this,K,`f`).pick(`${e}ColorFill`,__classPrivateFieldGet$3(this,G,`f`).colorFill(e))??`solid`)}colorAngle(e){return __classPrivateFieldGet$3(this,W,`m`,q).call(this,`${e}ColorAngle`,__classPrivateFieldGet$3(this,G,`f`).colorAngle(e),0)}colorOrder(e){return __classPrivateFieldGet$3(this,G,`f`).colorOrder(e)??`random`}componentTransform(e){let t=__classPrivateFieldGet$3(this,me,`f`).components().get(e);return{rotate:__classPrivateFieldGet$3(this,W,`m`,q).call(this,`${e}Rotate`,t?.rotate(),0),translateX:__classPrivateFieldGet$3(this,W,`m`,q).call(this,`${e}TranslateX`,t?.translate().x(),0),translateY:__classPrivateFieldGet$3(this,W,`m`,q).call(this,`${e}TranslateY`,t?.translate().y(),0),scale:__classPrivateFieldGet$3(this,W,`m`,q).call(this,`${e}Scale`,t?.scale(),1)}}resolved(){return __classPrivateFieldGet$3(this,ge,`f`)}};me=new WeakMap,G=new WeakMap,K=new WeakMap,he=new WeakMap,ge=new WeakMap,_e=new WeakMap,W=new WeakSet,ve=function _Resolver_probability(e){return __classPrivateFieldGet$3(this,G,`f`).componentProbability(e.sourceName())??e.probability()},ye=function _Resolver_isVisible(e,t){return __classPrivateFieldGet$3(this,K,`f`).bool(`${e}Probability`,__classPrivateFieldGet$3(this,W,`m`,ve).call(this,t))},be=function _Resolver_variantWeights(e){let t=e.variants(),n=__classPrivateFieldGet$3(this,G,`f`).componentVariant(e.sourceName()),r={},i=n?Object.keys(n):__classPrivateFieldGet$3(this,G,`f`).tags().length>0?__classPrivateFieldGet$3(this,W,`m`,Se).call(this,t):t.keys();for(let e of i){let i=t.get(e);i!==void 0&&(r[e]=n?n[e]:i.weight())}return r},xe=function _Resolver_tagFilter(){if(__classPrivateFieldGet$3(this,_e,`f`))return __classPrivateFieldGet$3(this,_e,`f`);let e=new Map,t=new Set,n=[],r=new Set;for(let{category:i,value:a,negated:o}of __classPrivateFieldGet$3(this,G,`f`).tags())if(o)n.push({category:i,value:a}),a===void 0&&r.add(i);else if(a!==void 0){let t=e.get(i)??[];t.push(a),e.set(i,t)}else t.add(i);return __classPrivateFieldSet$2(this,_e,{allowGroups:[...e],bares:t,disallows:n,bareDisallows:r},`f`),__classPrivateFieldGet$3(this,_e,`f`)},Se=function _Resolver_tagFilteredNames(e){let{allowGroups:t,bares:n,disallows:r,bareDisallows:i}=__classPrivateFieldGet$3(this,W,`m`,xe).call(this),a=[...n].filter(t=>{if(i.has(t))return!1;for(let n of e.values())if(n.hasTag(t))return!0;return!1}),o=[];for(let[n,i]of e){let e=t.every(([e,t])=>!i.hasTag(e)||t.some(t=>i.hasTag(e,t)))&&a.every(e=>i.hasTag(e)),s=r.some(({category:e,value:t})=>i.hasTag(e,t));e&&!s&&o.push(n)}return o},Ce=function _Resolver_resolveColor(e){let t=__classPrivateFieldGet$3(this,G,`f`).color(e),n=__classPrivateFieldGet$3(this,me,`f`).colors().get(e),r=(t??n?.values()??[]).map(e=>Color.toHex(e)),i=this.colorOrder(e)===`fixed`,a=t!==void 0&&i,o=this.colorFill(e)===`solid`?1:__classPrivateFieldGet$3(this,W,`m`,Te).call(this,e,a?r.length:2);if(!n)return __classPrivateFieldGet$3(this,W,`m`,we).call(this,e,r,i,a).slice(0,o);if(__classPrivateFieldGet$3(this,he,`f`).includes(e))throw new CircularColorReferenceError(__classPrivateFieldGet$3(this,he,`f`).concat(e));__classPrivateFieldGet$3(this,he,`f`).push(e);let s=n.contrastTo(),c=n.notEqualTo();try{if(s&&!a){let e=this.color(s)[0];e&&(r=Color.sortByContrast(r,e))}if(c.length>0){let e=[];for(let t of c)for(let n of this.color(t))e.push(n);r=Color.filterNotEqualTo(r,e)}}finally{__classPrivateFieldGet$3(this,he,`f`).pop()}return(s?r:__classPrivateFieldGet$3(this,W,`m`,we).call(this,e,r,i,a)).slice(0,o)},we=function _Resolver_order(e,t,n,r){return n?r?t:Array.from(new Set(t)).sort():__classPrivateFieldGet$3(this,K,`f`).shuffle(`${e}Color`,t)},Te=function _Resolver_colorFillStops(e,t){let n=__classPrivateFieldGet$3(this,G,`f`).colorFillStops(e);return n?__classPrivateFieldGet$3(this,K,`f`).integer(`${e}ColorFillStops`,n):t},q=function _Resolver_memoFloat(e,t,n){return __classPrivateFieldGet$3(this,W,`m`,J).call(this,e,()=>t?__classPrivateFieldGet$3(this,K,`f`).float(e,t):n)},J=function _Resolver_memo(e,t){if(e in __classPrivateFieldGet$3(this,ge,`f`))return __classPrivateFieldGet$3(this,ge,`f`)[e];let n=t();return __classPrivateFieldGet$3(this,ge,`f`)[e]=n,n};var Initials=class{static fromSeed(e,t=!0){let n=e;t&&(n=e.replace(/@.*/s,``)),n=n.replace(/[`´'ʼ]/g,``);let r=n.match(/(\p{L}[\p{L}\p{M}]*)/gu);if(!r)return t?this.fromSeed(e,!1):``;if(r.length===1){let e=r[0].match(/^(?:\p{L}\p{M}*){1,2}/u);return e?e[0].toUpperCase():``}let i=r[0].match(/^(?:\p{L}\p{M}*)/u),a=r[r.length-1].match(/^(?:\p{L}\p{M}*)/u);return!i||!a?``:(i[0]+a[0]).toUpperCase()}},__classPrivateFieldGet$2=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Y,Ee,De,Xml=class{static escape(e){return e.replace(__classPrivateFieldGet$2(Y,Y,`f`,De),e=>__classPrivateFieldGet$2(Y,Y,`f`,Ee)[e])}};Y=Xml,Ee={value:{"&":`&amp;`,"'":`&apos;`,'"':`&quot;`,"<":`&lt;`,">":`&gt;`}},De={value:RegExp(`[${Object.keys(__classPrivateFieldGet$2(Y,Y,`f`,Ee)).join(``)}]`,`g`)};var License=class{static text(e){let t=e.source().name(),n=e.source().url(),r=e.creator().name(),i=e.license().name(),a=e.license().url();if(!t&&!r&&!i)return``;let o=t?`“${t}”`:`Design`;n&&(o+=` (${n})`);let s=`“${r??`Unknown`}”`,c=``;return i!==`MIT`&&r!==`DiceBear`&&t&&(c+=`Remix of `),c+=`${o} by ${s}`,i&&(c+=`, licensed under “${i}”`,a&&(c+=` (${a})`)),c}static xml(e){let t=e.source().name(),n=e.creator().name(),r=e.source().url(),i=e.license().url(),a=this.text(e);if(!t&&!n&&!r&&!i&&!a)return``;let o=[];return t&&o.push(`<dc:title>${Xml.escape(t)}</dc:title>`),n&&o.push(`<dc:creator>${Xml.escape(n)}</dc:creator>`),r&&o.push(`<dc:source xsi:type="dcterms:URI">${Xml.escape(r)}</dc:source>`),i&&o.push(`<dcterms:license xsi:type="dcterms:URI">${Xml.escape(i)}</dcterms:license>`),a&&o.push(`<dc:rights>${Xml.escape(a)}</dc:rights>`),`<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"><rdf:RDF><rdf:Description>${o.join(``)}</rdf:Description></rdf:RDF></metadata>`}},Number$1=class{static{__name(this,`Number`)}static format(e){if(e!==e)return`NaN`;if(e===1/0)return`Infinity`;if(e===-1/0)return`-Infinity`;let t=Math.round(e*1e5),n=t<0?`-`:``;t=Math.abs(t);let r=Math.floor(t/1e5),i=String(t%1e5).padStart(5,`0`).replace(/0+$/,``);return`${n}${r}${i?`.${i}`:``}`}},__classPrivateFieldSet$1=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet$1=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},X,Z,Q,$,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Renderer=class{constructor(e,t){X.add(this),Z.set(this,void 0),Q.set(this,void 0),$.set(this,new Map),Oe.set(this,void 0),ke.set(this,void 0),__classPrivateFieldSet$1(this,Z,e,`f`),__classPrivateFieldSet$1(this,Q,t,`f`)}render(){let e=__classPrivateFieldGet$1(this,Z,`f`).canvas(),t=__classPrivateFieldGet$1(this,X,`m`,Fe).call(this,e),n=__classPrivateFieldGet$1(this,X,`m`,Le).call(this,e.elements());n=__classPrivateFieldGet$1(this,X,`m`,je).call(this,n,e),n=__classPrivateFieldGet$1(this,X,`m`,Ae).call(this,n,e),n=__classPrivateFieldGet$1(this,X,`m`,Ne).call(this,n,e),n=__classPrivateFieldGet$1(this,X,`m`,Pe).call(this,n,e),n=__classPrivateFieldGet$1(this,X,`m`,Me).call(this,`${t}${n}`,e);let r=License.xml(__classPrivateFieldGet$1(this,Z,`f`).meta()),i=__classPrivateFieldGet$1(this,$,`f`).size>0?`<defs>${Array.from(__classPrivateFieldGet$1(this,$,`f`).values()).join(``)}</defs>`:``,a=__classPrivateFieldGet$1(this,Q,`f`).size(),o=__classPrivateFieldGet$1(this,Q,`f`).title(),s=o===void 0?void 0:Xml.escape(o),c=[`xmlns="http://www.w3.org/2000/svg"`,`viewBox="0 0 ${Number$1.format(e.width())} ${Number$1.format(e.height())}"`],l=__classPrivateFieldGet$1(this,X,`m`,Ue).call(this,__classPrivateFieldGet$1(this,Z,`f`).attributes());if(l&&c.push(l.trimStart()),s===void 0?c.push(`aria-hidden="true"`):c.push(`role="img"`,`aria-label="${s}"`),a!==void 0){let e=Number$1.format(a);c.push(`width="${e}"`,`height="${e}"`)}let u=s===void 0?``:`<title>${s}</title>`,d=`<svg ${c.join(` `)}><!-- Generated by DiceBear (https://www.dicebear.com) -->${r}${i}${u}${n}</svg>`;return __classPrivateFieldGet$1(this,Q,`f`).idRandomization()&&(d=__classPrivateFieldGet$1(this,X,`m`,Ie).call(this,d)),d}};Z=new WeakMap,Q=new WeakMap,$=new WeakMap,Oe=new WeakMap,ke=new WeakMap,X=new WeakSet,Ae=function _Renderer_applyFlip(e,t){let n=__classPrivateFieldGet$1(this,Q,`f`).flip();if(n===`none`)return e;let r=Number$1.format(t.width()),i=Number$1.format(t.height()),a;switch(n){case`horizontal`:a=`translate(${r}, 0) scale(-1, 1)`;break;case`vertical`:a=`translate(0, ${i}) scale(1, -1)`;break;case`both`:a=`translate(${r}, ${i}) scale(-1, -1)`}return`<g transform="${a}">${e}</g>`},je=function _Renderer_applyScale(e,t){let n=__classPrivateFieldGet$1(this,Q,`f`).scale();if(n===1)return e;let r=t.width()/2,i=t.height()/2;return`<g transform="translate(${Number$1.format(r)}, ${Number$1.format(i)}) scale(${Number$1.format(n)}) translate(${Number$1.format(-r)}, ${Number$1.format(-i)})">${e}</g>`},Me=function _Renderer_applyBorderRadius(e,t){let n=__classPrivateFieldGet$1(this,Q,`f`).borderRadius(),r=`clip-${__classPrivateFieldGet$1(this,X,`m`,Xe).call(this)}`,i=Number$1.format(n/100*t.width()),a=Number$1.format(n/100*t.height());return __classPrivateFieldGet$1(this,$,`f`).set(r,`<clipPath id="${r}"><rect width="${Number$1.format(t.width())}" height="${Number$1.format(t.height())}" rx="${i}" ry="${a}"/></clipPath>`),`<g clip-path="url(#${r})">${e}</g>`},Ne=function _Renderer_applyRotate(e,t){let n=__classPrivateFieldGet$1(this,Q,`f`).rotate();if(n===0)return e;let r=t.width()/2,i=t.height()/2;return`<g transform="rotate(${Number$1.format(n)}, ${Number$1.format(r)}, ${Number$1.format(i)})">${e}</g>`},Pe=function _Renderer_applyTranslate(e,t){let n=__classPrivateFieldGet$1(this,Q,`f`).translateX(),r=__classPrivateFieldGet$1(this,Q,`f`).translateY();return n===0&&r===0?e:`<g transform="translate(${Number$1.format(n/100*t.width())}, ${Number$1.format(r/100*t.height())})">${e}</g>`},Fe=function _Renderer_renderBackground(e){return __classPrivateFieldGet$1(this,Q,`f`).color(`background`).length===0?``:`<rect width="${Number$1.format(e.width())}" height="${Number$1.format(e.height())}" fill="${Xml.escape(__classPrivateFieldGet$1(this,X,`m`,Ge).call(this,`background`))}"/>`},Ie=function _Renderer_randomizeIds(e){let t=Math.floor(Math.random()*16777215).toString(16).padStart(6,`0`),n=new Set;for(let t of e.matchAll(/\bid="([^"]+)"/g))n.add(t[1]);if(n.size===0)return e;let r=Array.from(n,e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)),i=RegExp(`(id="|url\\(#|href="#)(${r.join(`|`)})("|\\))`,`g`);return e.replace(i,(e,n,r,i)=>`${n}${r}-${t}${i}`)},Le=function _Renderer_renderElements(e){return e.map(e=>__classPrivateFieldGet$1(this,X,`m`,Re).call(this,e)).join(``)},Re=function _Renderer_renderElement(e){switch(e.type()){case`element`:return __classPrivateFieldGet$1(this,X,`m`,ze).call(this,e);case`text`:return __classPrivateFieldGet$1(this,X,`m`,Be).call(this,e);case`component`:return __classPrivateFieldGet$1(this,X,`m`,Ve).call(this,e)}},ze=function _Renderer_renderSvgElement(e){let t=e.name();if(!t)return``;if(t===`defs`){for(let t of e.children()){let e=__classPrivateFieldGet$1(this,X,`m`,Re).call(this,t);if(e.length>0){let n=t.attributes()?.id,r=typeof n==`string`?n:`_${__classPrivateFieldGet$1(this,$,`f`).size}`;__classPrivateFieldGet$1(this,$,`f`).set(r,e)}}return``}let n=__classPrivateFieldGet$1(this,X,`m`,Ue).call(this,e.attributes()),r=__classPrivateFieldGet$1(this,X,`m`,Le).call(this,e.children());return r.length===0?e.children().length>0&&e.attributes()?.id===void 0?``:`<${t}${n}/>`:`<${t}${n}>${r}</${t}>`},Be=function _Renderer_renderTextElement(e){let t=e.value();return t===void 0?``:Xml.escape(__classPrivateFieldGet$1(this,X,`m`,qe).call(this,t))},Ve=function _Renderer_renderComponentElement(e){let t=e.name();if(typeof t!=`string`)return``;let n=__classPrivateFieldGet$1(this,Q,`f`).variant(t);if(!n)return``;let r=__classPrivateFieldGet$1(this,Z,`f`).components().get(t);if(!r)return``;let i=r.variants().get(n);if(!i)return``;let a=`${r.sourceName()}-${n}-${__classPrivateFieldGet$1(this,X,`m`,Xe).call(this)}`;if(!__classPrivateFieldGet$1(this,$,`f`).has(a)){let e=__classPrivateFieldGet$1(this,X,`m`,Le).call(this,i.elements());__classPrivateFieldGet$1(this,$,`f`).set(a,`<g id="${a}">${e}</g>`)}let o=__classPrivateFieldGet$1(this,X,`m`,He).call(this,r),s=e.attributes(),c=s;if(o.length>0){let e=s?.transform,t=typeof e==`string`&&e.length>0?[e,...o]:o;c={...s,transform:t.join(` `)}}return`<use${__classPrivateFieldGet$1(this,X,`m`,Ue).call(this,c)} href="#${a}"/>`},He=function _Renderer_buildTransforms(e){let{rotate:t,translateX:n,translateY:r,scale:i}=__classPrivateFieldGet$1(this,Q,`f`).componentTransform(e.name());if(n===0&&r===0&&t===0&&i===1)return[];let a=[],o=e.width()/2,s=e.height()/2,c=Number$1.format(o),l=Number$1.format(s);if(n!==0||r!==0){let t=Number$1.format(n/100*e.width()),i=Number$1.format(r/100*e.height());a.push(`translate(${t}, ${i})`)}return t!==0&&a.push(`rotate(${Number$1.format(t)}, ${c}, ${l})`),i!==1&&a.push(`translate(${c}, ${l}) scale(${Number$1.format(i)}) translate(${Number$1.format(-o)}, ${Number$1.format(-s)})`),a},Ue=function _Renderer_renderAttributes(e){if(!e)return``;let t=[];for(let[n,r]of Object.entries(e))r!==void 0&&t.push(`${n}="${Xml.escape(__classPrivateFieldGet$1(this,X,`m`,We).call(this,r))}"`);return t.length===0?``:` ${t.join(` `)}`},We=function _Renderer_resolveAttributeValue(e){return typeof e==`string`?e:e.type===`color`?__classPrivateFieldGet$1(this,X,`m`,Ge).call(this,e.name):__classPrivateFieldGet$1(this,X,`m`,Je).call(this,e.name)},Ge=function _Renderer_resolveColorReference(e){let t=__classPrivateFieldGet$1(this,Q,`f`).color(e),n=__classPrivateFieldGet$1(this,Q,`f`).colorFill(e);return n===`solid`||t.length<=1?t[0]??`none`:__classPrivateFieldGet$1(this,X,`m`,Ke).call(this,e,t,n)},Ke=function _Renderer_buildGradientDef(e,t,n){let r=__classPrivateFieldGet$1(this,Q,`f`).colorAngle(e),i=`${e}-color-${__classPrivateFieldGet$1(this,X,`m`,Xe).call(this)}`,a=n===`linear`?`linearGradient`:`radialGradient`,o=r===0?``:` gradientTransform="rotate(${Number$1.format(r)}, 0.5, 0.5)"`,s=t.map((e,n)=>`<stop offset="${Number$1.format(n/(t.length-1)*100)}%" stop-color="${Xml.escape(e)}"/>`);return __classPrivateFieldGet$1(this,$,`f`).set(i,`<${a} id="${i}"${o}>${s.join(``)}</${a}>`),`url(#${i})`},qe=function _Renderer_resolveValue(e){return typeof e==`string`?e:e.type===`variable`?__classPrivateFieldGet$1(this,X,`m`,Je).call(this,e.name):``},Je=function _Renderer_resolveVariable(e){switch(e){case`initial`:{let e=__classPrivateFieldGet$1(this,X,`m`,Ye).call(this).codePointAt(0);return e===void 0?``:String.fromCodePoint(e)}case`initials`:return __classPrivateFieldGet$1(this,X,`m`,Ye).call(this);case`fontWeight`:return Number$1.format(__classPrivateFieldGet$1(this,Q,`f`).fontWeight());case`fontFamily`:return __classPrivateFieldGet$1(this,Q,`f`).fontFamily()}},Ye=function _Renderer_initials(){return __classPrivateFieldSet$1(this,ke,__classPrivateFieldGet$1(this,ke,`f`)??Initials.fromSeed(__classPrivateFieldGet$1(this,Q,`f`).seed()),`f`)},Xe=function _Renderer_hashSeed(){return __classPrivateFieldSet$1(this,Oe,__classPrivateFieldGet$1(this,Oe,`f`)??oe.hex((__classPrivateFieldGet$1(this,Z,`f`).meta().source().name()??``)+`:`+__classPrivateFieldGet$1(this,Q,`f`).seed()),`f`)};var __classPrivateFieldSet=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},__classPrivateFieldGet=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Ze,Qe;let $e=!1;var Avatar=class{constructor(e,t){Ze.set(this,void 0),Qe.set(this,void 0),!(e instanceof Style)&&!$e&&($e=!0,console.warn("[DiceBear] Passing a style definition to `new Avatar()` is deprecated and will be removed in v11. Wrap it in a Style first: `new Avatar(new Style(definition), options)`."));let n=e instanceof Style?e:new Style(e),r=new Resolver(n,new Options(t));__classPrivateFieldSet(this,Ze,new Renderer(n,r).render(),`f`),__classPrivateFieldSet(this,Qe,r.resolved(),`f`)}toString(){return __classPrivateFieldGet(this,Ze,`f`)}toJSON(){return{svg:__classPrivateFieldGet(this,Ze,`f`),options:structuredClone(__classPrivateFieldGet(this,Qe,`f`))}}toDataUri(){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(__classPrivateFieldGet(this,Ze,`f`))}`}};Ze=new WeakMap,Qe=new WeakMap;var et={$id:`https://cdn.hopjs.net/npm/@dicebear/styles@10.6.0/dist/lorelei-neutral.min.json`,$schema:`https://cdn.hopjs.net/npm/@dicebear/schema@1.4.0/dist/definition.min.json`,$comment:`This file was generated by the DiceBear Exporter for Figma. https://www.figma.com/community/plugin/1005765655729342787`,meta:{license:{name:`CC0 1.0`,url:`https://creativecommons.org/publicdomain/zero/1.0/`,text:`Remix of „Lorelei Neutral” (https://www.figma.com/community/file/1198749693280469639) by „Lisa Wischofsky”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)`},creator:{name:`Lisa Wischofsky`,url:`https://www.instagram.com/lischi_art/`},source:{name:`Lorelei Neutral`,url:`https://www.figma.com/community/file/1198749693280469639`}},canvas:{elements:[{name:`eyebrows`,type:`component`,attributes:{transform:`translate(115 124)`}},{name:`eyes`,type:`component`,attributes:{transform:`translate(109 229)`}},{name:`freckles`,type:`component`,attributes:{transform:`translate(91 340)`}},{name:`mouth`,type:`component`,attributes:{transform:`translate(173 400)`}},{name:`nose`,type:`component`,attributes:{transform:`translate(309 271)`}},{name:`glasses`,type:`component`,attributes:{transform:`translate(102 195)`}}],width:600,height:600},attributes:{fill:`none`,"shape-rendering":`auto`},components:{eyebrows:{width:340,height:140,variants:{variant01:{elements:[{name:`path`,type:`element`,attributes:{d:`M172 1q9 3 10 13 0 13-7 22-4 5-10 1-3-6-2-14l-13 9-19 10-30 7-26 8-22 12-25 17-11 12q-2-5 1-11l12-12 23-17q25-18 55-28 14-4 28-11l22-15q6-5 14-3m93 18q4 2 6 6c17 8 33 8 49 17q6 3 9 10 4 6-2 11l-16-6c-12-6-24-7-36-11q-10-2-19-9l-7 25q-1 4-5 4l-1-8 2-11q2-13 7-24 4-8 13-4`,fill:{type:`color`,name:`eyebrows`}}}]},variant02:{elements:[{name:`path`,type:`element`,attributes:{d:`M144 28q12 0 23 6 7 5 10 13l-2 3-6-3q-14-7-32-6-14 0-27 5l-24 9-19 8-40 10q-10 5-17 13L0 94q2-12 10-22l13-13q12-9 26-11 15-2 29-8l19-6 23-5q12-2 24-1m166 14 22 3v3q-10 9-24 10c-11 2-25-1-36 4q-3 0-5 3-13 16-21 33c-2-7 3-15 5-22l10-18q7-16 23-17 14-1 26 1`,fill:{type:`color`,name:`eyebrows`}}}]},variant03:{elements:[{name:`path`,type:`element`,attributes:{d:`M119 47q15-1 29 3t23 18q5 12-6 20-11 4-23 2-31-6-61-14l-20-4-10-3q-2 0-3-4 2-5 9-7l20-7 18-3zm176 5q12 2 23 7l8 5q4 3 1 7-4 4-9 5-26 8-52 12l-9 1-8-4q-4-4-4-10 0-12 8-20 8-4 16-4 14-2 26 1`,fill:{type:`color`,name:`eyebrows`}}}]},variant04:{elements:[{name:`path`,type:`element`,attributes:{d:`M315 23q6 2 9 8l-35 13-16 9q-10 6-22 8l-13 3-7 8-6 12-3-3q-2-9 2-16 3-10 8-18l9-10q8-4 15 0v6l25-13q16-9 34-7m-194 3c13 2 31 0 44 6q12 6 17 20l-1 3q-5 5-14 2l-9-8-8-2q-12-3-25-2c-12-1-23-7-36-8l-27-4-4-2q14-5 28-6 18-1 35 1`,fill:{type:`color`,name:`eyebrows`}}},{name:`path`,type:`element`,attributes:{d:`M180 29q8-3 16 2 7 6 10 15 1-6 5-11 11 4 13 14 4 9 0 16c-2 4-8 8-12 4q-6-8-6-17 0 5-5 9-5 3-8-2-4-5-6-12l-7-15z`,fill:{type:`color`,name:`eyebrows`}}}]},variant05:{elements:[{name:`path`,type:`element`,attributes:{d:`M106 19q25 2 44 15 7 5 10 12 2 4-3 5-5-1-8-4-17-14-38-14-11 1-23 5-22 5-38 22-3 6-10 8-9 2-10-8 0-6 5-10 19-22 48-30 12-3 23-1m205 11q8 3 13 10 6 5 5 11-2 11-12 8c-4-1-6-7-10-10q-6-6-13-9-18-4-32 9l-9 9q1-10 9-17c12-13 32-17 49-11`,fill:{type:`color`,name:`eyebrows`}}}]},variant06:{elements:[{name:`path`,type:`element`,attributes:{d:`M133 11q7 0 12 6 12 12 19 29 4 6 3 14 0 4-4 4l-4-7-17-22q2 8 0 14-3 5-9 5-8-1-14-6-6-4-12-5l-7 2-11-3-20-2-18 2q6-5 13-8 15-6 32-4l10-1q14 1 25 10l-4-19q-1-8 6-9m143 14q5 1 5 5-1 7-4 13 4-4 10-4 5 1 6 5 10-4 18-2 4 1 5 6l-10 5q-7 4-16 5l-7-4q-4 4-10 6-5 1-7-3v-9l-9 15-4 6q-3 1-4-2l2-11q5-12 14-23z`,fill:{type:`color`,name:`eyebrows`}}}]},variant07:{elements:[{name:`path`,type:`element`,attributes:{d:`M118 28q27 2 46 18 5 3 8 8 2 4-3 5l-22-8q-12-4-24-5l-22 1q-22 6-43 16L37 73l-1-1q2-7 6-13 11-13 27-20 24-12 49-11m194 5q9 3 15 9 6 7 4 15-12-2-23-6-9-2-20-2-10-1-21 4l-13 9q-2 2-3-1-1-5 2-8 9-12 23-18 18-7 36-2`,fill:{type:`color`,name:`eyebrows`}}}]},variant08:{elements:[{name:`path`,type:`element`,attributes:{d:`M132 29q9-2 19 1 11 4 18 13 4 11 1 23-2 6-8 8-13 3-27-1-11-2-22-7-9-3-13-14-1-9 7-16 11-6 25-7m165 1q8 2 12 9 1 6-1 12l-7 10q-9 5-18 7-10 3-18 2l-8-7c-3-12 3-26 14-31q12-5 26-2`,fill:{type:`color`,name:`eyebrows`}}}]},variant09:{elements:[{name:`path`,type:`element`,attributes:{d:`M142 36q11 1 20 6 5 3 7 8 1 5-2 6-7 1-14-3l-9-1q-20-1-38 5a169 169 0 0 0-61 30q-6 5-14 5-4-3-2-7 4-10 13-16 15-13 34-21 32-14 66-12m156 2q11-2 20 3 7 5 10 12 1 3-2 7-6 1-11-2-6-4-15-6l-13 4q-13 6-21 18l-6 9-3 1v-7q4-12 13-22 12-12 28-17`,fill:{type:`color`,name:`eyebrows`}}}]},variant10:{elements:[{name:`path`,type:`element`,attributes:{d:`M163 44q11 6 16 16 5 9 4 20-1 3-5 3-4-4-6-10l-14 3-26 3-39 3H58l-10-3q-4-5 2-8 14-3 29-4 11-2 20-7l26-9 20-5q9-3 18-2m107 2c11 1 19 7 30 9q11 0 20 5 4 2 2 6-3 2-8 2l-13 2-25 5q-12 3-24 2l-5 18-3 3-2-5q0-15 5-30l8-12q7-5 15-5`,fill:{type:`color`,name:`eyebrows`}}}]},variant11:{elements:[{name:`path`,type:`element`,attributes:{d:`M135 18q16 1 27 10 5 5 6 11-16-7-33-5-9 1-17 6C95 52 76 69 53 82L33 96l-11 10q-2-6 1-14 7-14 20-23 11-10 24-17l40-27q13-7 28-7m205 35q-8 4-17 4-8 1-14 7l-24 23q-12 16-28 25l-8 2-6 1c-4 5-4 13-9 17q-3-1-2-3v-12q1-9 7-17l14-7 14-11 23-18q10-8 21-12 15-5 29 1`,fill:{type:`color`,name:`eyebrows`}}}]},variant12:{elements:[{name:`path`,type:`element`,attributes:{d:`M297 30q11 0 20 5 4 1 6 4-12 9-28 9l-17-1-16 2q-9 3-13 12-7 18-10 37-4-4-3-12 0-21 10-41 6-10 18-14 17-4 33-1M172 68q9-1 18 3l1 3-7 8q-6 4-13 6-8 3-18 4-23 2-47 2-20 0-41 5-20 6-37 17l-9 8 1-5q5-11 15-17 24-19 54-22l69-7z`,fill:{type:`color`,name:`eyebrows`}}}]},variant13:{elements:[{name:`path`,type:`element`,attributes:{d:`m327 63 2 2-14 14-21 15-27 18q-6 5-13 7l-8 1-11 20h-2q-2-10 1-20 2-10 8-16l10-4 31-21q12-9 26-13zM10 72q15 0 28 2l26 7 15 1 24 2q11 4 23 6l34 11 3-5q3-2 5 1 7 13 11 25 2 8-6 9-7 0-12-6l-11-9-30-9-20-5-15-3-15-4-24-9c-10-4-20-4-29-9q-5-1-7-5`,fill:{type:`color`,name:`eyebrows`}}}]}}},eyes:{width:360,height:103,variants:{variant01:{elements:[{name:`path`,type:`element`,attributes:{d:`m337 47-1 7q-4 7-11 12l-18 5-18 2q-6 0-10 5l-6 8q-5 1-5-3 4-11 12-20 5-6 11-7l31-5q7-3 15-4M33 51c11-1 21 3 32 4q22 3 45 4l24 2q12 0 23 4 10 6 17 16 2 3 0 6h-4q-5-5-11-7l-12-1-28-1-22-1q-16 0-30-5-10-4-19-10l-13-8q-2-1-2-3`,fill:{type:`color`,name:`eyes`}}}]},variant02:{elements:[{name:`path`,type:`element`,attributes:{d:`M314 9q12-2 21 7 7 5 7 12-1 9-10 8c-6-1-7-6-12-9q-4-3-9-4 10 17 3 35-4 13-17 19-10 4-18-5-6-8-6-20-5 7-7 15l-3 5q-2-8 1-17 9-25 31-39 9-5 19-7M102 21c26 1 51 17 63 39l3 10q-1 3-3 1l-7-8-11-13q3 17-8 31-10 12-24 10c-14-1-25-12-28-25q-2-16 7-30-21 5-39 17-3 3-2 7l9 11q16 14 37 21 6 0 11 4-10 4-19 1-18-4-34-18-9-8-13-19c-1-4-5-6-4-10q2-8 9-12 23-18 53-17`,fill:{type:`color`,name:`eyes`}}},{name:`path`,type:`element`,attributes:{d:`M315 67q1 6-3 11-7 9-18 11-14 3-25-2-4-2-3-6l8 1q16 0 31-8z`,fill:{type:`color`,name:`eyes`}}}]},variant03:{elements:[{name:`path`,type:`element`,attributes:{d:`m326 32 10 2q2 2 0 3-4 4-9 4l-23 4-4 20q-3 8-11 9-8-1-11-7-6-8-7-18-6 1-11-1c-1-3 3-4 4-5l40-9zm-185 7q8-1 16 3l3 3-21 4q-2 13-8 25-4 5-9 5-9-2-14-9-6-8-8-18l-55 2q-5 0-6-3 6-4 11-4l33-4q29-4 58-4`,fill:{type:`color`,name:`eyes`}}},{name:`path`,type:`element`,attributes:{d:`m295 47-7 16q-5-6-8-15zm-167 3-6 18-4-2-11-15 18-1z`,fill:`white`}}]},variant04:{elements:[{name:`path`,type:`element`,attributes:{d:`M314 9q12-2 22 7 4 5 6 11-1 9-9 9-6 0-9-5-3-4-9-7c9 16 4 38-10 49-7 6-18 7-25 1q-8-8-8-20l-6 14-3 4q-2-9 1-17 9-25 31-39 9-5 19-7M102 21c26 1 52 17 64 41q3 5 1 10-4-1-7-6-7-11-17-20 3 17-4 32-10 12-25 11-12-1-20-10-7-10-7-24 0-10 5-19-21 6-39 19l-7 3q-7-2-6-8 0-5 4-8 11-11 25-16 17-6 33-5`,fill:{type:`color`,name:`eyes`}}}]},variant05:{elements:[{name:`path`,type:`element`,attributes:{d:`M329 22q10 4 13 13 2 9-2 18-8 12-20 18-18 10-37 8-10-1-17-6-7-6-5-13v-2q-1-10 5-18 14-15 35-19 14-4 28 1M134 32q11 4 21 12l5 5 6 5c5 8 5 19-2 25q-9 7-19 9-25 5-51-1-17-3-31-12-9-5-14-15-3-7 2-14 6-9 16-13c21-8 46-10 67-1`,fill:{type:`color`,name:`eyes`}}},{name:`path`,type:`element`,attributes:{d:`M314 27q7 0 15 4 5 3 5 9 0 9-7 15-12 12-29 14 5-12 0-25-3-7-9-11 12-6 25-6m-210 9q20 0 39 9 9 4 14 11v12q-4 6-11 8-27 8-53 0 5-7 5-16 2-13-9-23z`,fill:`white`}}]},variant06:{elements:[{name:`path`,type:`element`,attributes:{d:`M325 10q10 3 15 11 3 4 1 10-3 6-10 5-6-3-11-9-9-6-19-2l7 7q5 13 1 26-2 10-11 14t-16-4q-6-10-4-23-7 9-11 20l-4 7q-3-9 1-19 10-25 35-39 12-6 26-4M90 21c31-4 62 14 76 41q3 5 1 10-6-3-7-7-9-12-19-20v16q-1 13-11 21-9 5-19-1-9-6-10-19-1-16 6-28-27 3-52 19l-7 4q-5 1-7-3-2-6 1-11 20-18 48-22`,fill:{type:`color`,name:`eyes`}}}]},variant07:{elements:[{name:`path`,type:`element`,attributes:{d:`M91 15q23-1 43 11t28 34q4 6 1 12-7-5-12-13-9-13-22-22-18-11-38-10-23 4-38 19L40 57q-5-7 1-15 18-24 50-27m230 2q8 3 12 11 4 13-1 25-2 5-7 5-5-2-5-9 2-10-1-19-4-4-10-4-14 1-24 8-18 10-28 28-1 4-5 5-2-4 0-10 8-20 26-32 11-7 21-9 11-3 22 1`,fill:{type:`color`,name:`eyes`}}},{name:`path`,type:`element`,attributes:{d:`M289 42q9 2 11 12 3 13-3 24 15-3 29-10c-4 9-15 14-24 18q-15 7-31 8-8 1-13-4 4-6 11-6-3-9-2-19 1-9 7-16 6-6 15-7M129 52q6-2 11 4 5 5 7 13 2 10 0 22h13q4 1 3 4-2 4-7 4-16 5-33 4-26 0-50-10-8-2-14-8l11 3q19 4 38 5-5-16 1-28 7-12 20-13`,fill:{type:`color`,name:`eyes`}}}]},variant08:{elements:[{name:`path`,type:`element`,attributes:{d:`M328 22q5-1 10 3 6 6-1 13l-10 2-18 4q0 11-5 22-3 7-10 11-9 5-16-3l-3-9-9 9q-5 1-5-3 2-9 8-16a91 91 0 0 1 42-31zM86 35q15 1 31 5 22 5 40 18 5 3 9 10 1 3-2 3-6-2-11-6-17-7-35-9-1 14-10 25-5 7-14 7-13-2-21-11-7-11-7-23l-14 3q-4 3-9 2-8-3-6-11 2-5 8-8 20-6 41-5`,fill:{type:`color`,name:`eyes`}}}]},variant09:{elements:[{name:`path`,type:`element`,attributes:{d:`M315 0q11 0 18 10 7 11 7 24 0 7-2 12c-3 4-10 4-12 0q-3-5-3-12 0-13-10-18 14 23 7 50-3 13-13 22-8 6-17 4-9-3-13-11-7-12-6-26l-6 15-4 9q-5-4-4-10 0-14 6-26 9-22 28-35 11-8 24-8M100 5q22 0 40 14 22 16 27 42 2 6 0 13-1 3-3 2l-7-11-10-16q1 22-11 39-11 13-26 14-18 0-27-15-12-20-6-41 3-13 13-24l-13 6q-10 7-18 16l-5 6q-6 5-12 0-5-5-1-12 8-13 22-22Q79 5 100 5`,fill:{type:`color`,name:`eyes`}}},{name:`path`,type:`element`,attributes:{d:`M303 35q2 10-3 19l-4 10q-2 3-6 1l-3-7q-5-10-5-19 2-4 6-4 3 1 5 5 1-5 4-7 4-3 6 2m-183 2q5 0 6 6 0 11-3 22-1 6-6 11-4 1-5-2l-10-16-4-7q-1-7 3-12 3-3 7-1 4 3 5 6 1-6 7-7`,fill:`white`}}]},variant10:{elements:[{name:`path`,type:`element`,attributes:{d:`M325 10q11 4 16 13v9q-5 7-13 3l-9-9q-9-5-19-1 5 4 8 11 4 18-2 36l9-5q2 6-2 10-8 10-20 12-13 3-24-2-5-5-5-11l-2-10q0-10 5-20 11-20 32-32 12-6 26-4M101 21c27 0 52 17 65 41q3 4 1 10-4-1-7-6-9-14-22-23-15-9-33-9 9 15 7 32 0 15-11 25l9 5q-9 4-20 1-13-3-25-12-14-8-20-22l-4-9q-2-6 1-11l11-8q21-15 48-14`,fill:{type:`color`,name:`eyes`}}}]},variant11:{elements:[{name:`path`,type:`element`,attributes:{d:`M305 20q8 2 14 7l10 9q8 5 16 3-6 7-15 6c-11 1-20-4-31-4q4 1 7 5 6 7 4 16 0 6-4 11c-6 9-21 10-28 1q-6-10-1-20l-15 17c-1 2-4 6-7 3q-1-7 2-14 5-11 14-21 9-12 23-15l-3-2q7-5 14-2M98 24l-7 4q-8 4-14 12 10-5 23-8 19-3 37 6 13 5 21 15 9 9 9 21 0 4-3 4l-8-7-8-7q-1 9-5 16-9 12-22 10-14-5-18-18-1-13 6-22-17 1-32 10-15 6-30 5-7 0-13-3-2-1-2-3 11 0 21-4l5-4c6-16 23-27 40-27`,fill:{type:`color`,name:`eyes`}}}]},variant12:{elements:[{name:`path`,type:`element`,attributes:{d:`M124 11q11 3 19 13h-5l-38-10H67c0-4 6-5 9-6q25-6 48 3m195 1 2 2-18 2q-14 2-26 8l-6 3q-1-6 5-7 6-5 15-8 14-5 28 0m5 10q10 1 17 7 5 6 1 14-4 5-11 2-3-4-4-9-12-6-24-1l6 6q5 8 1 16-7 15-24 13-11-2-13-14l-8 10-4 5q-3-4-1-10 9-17 25-29 18-12 39-10M91 25q36 3 66 26 7 4 10 13 0 5-4 6-4-2-6-5l-12-9q1 11-5 20-5 7-13 7-13 1-22-8c-9-10-8-26 0-36q-13-3-28-2-9 1-15 8-2 2-2 6-2 7-9 6t-9-7q-2-8 5-14 8-7 19-9 12-3 25-2`,fill:{type:`color`,name:`eyes`}}}]},variant13:{elements:[{name:`path`,type:`element`,attributes:{d:`M287 46q8-1 12 7 6 12-1 24-5 8-15 4-6-4-8-12-1-8 3-14 2-7 9-9m-148 4q9-2 14 4 8 10 3 21-4 11-14 12-9-1-12-9-5-10 1-20 3-5 8-8`,fill:{type:`color`,name:`eyes`}}}]},variant14:{elements:[{name:`path`,type:`element`,attributes:{d:`M330 11q9 4 13 12 4 12 1 25-2 7-9 8-9-1-9-10c1-8 4-15 1-23q0-3-4-4-9 0-17 5l4 8v21q-2 12-10 19l-10 8q-8 1-13-5-4-8-3-17l-5 9-4 3v-9a95 95 0 0 1 44-49q11-4 21-1m-215 6q27 10 46 34 5 6 7 14 1 4-1 6-6 0-8-5l-6 18q-4 6-12 10t-18 1q-9-5-14-14-7-14-4-29 2-12 8-21-20-9-42-2-14 5-18 21c-2 4 0 11-4 14q-5 6-11 1-5-5-3-11 2-19 16-30 8-6 18-9 24-6 46 2`,fill:{type:`color`,name:`eyes`}}}]},variant15:{elements:[{name:`path`,type:`element`,attributes:{d:`M325 10q11 3 16 14 3 7-4 11t-12-3q-4-6-11-8-7-1-13 1l4 5q6 10 5 22 0 10-4 20l9-4q1 5-2 9-8 11-20 12-13 3-25-3-5-5-5-13-2-3-1-6 1-15 9-27 11-17 29-26 12-6 25-4M117 56q21 3 43 11l8 3q4 7 0 13-5 3-11 2h-45q-21 1-41-2-4 0-7-3l-14 2q-4 2-7-1-3-4 1-8 4-3 9-4l27-5 9-1-16-1-19-1q-3 0-3-3 0-2 3-3l15-2q24-2 48 3`,fill:{type:`color`,name:`eyes`}}}]},variant16:{elements:[{name:`path`,type:`element`,attributes:{d:`M117 20q8-1 14 3 7 8 8 18 2 15-4 30-4 10-13 14-11 2-18-7-6-10-5-22 1-13 6-24 5-8 12-12m170 7q8-3 14 3 7 8 7 18 1 13-5 25-4 7-11 10-9 1-15-5-5-5-5-12-2-14 4-26 3-8 11-13`,fill:{type:`color`,name:`eyes`}}}]},variant17:{elements:[{name:`path`,type:`element`,attributes:{d:`M313 25q13 1 21 10 6 5 5 12l-5 8q-3 12-16 17-7 3-13-1-4-5-4-12-1-13 6-24-6 0-12 4-15 11-24 29-1 5-5 10-3 2-5-1-1-4 1-9 5-21 22-34 12-10 29-9M89 35q32-4 60 12 15 9 20 24l-2 11q-5 5-12 6-17 4-35 0-9-1-15-6-4-8-1-17 2-11 9-20H91q-26 3-47 20-4 4-8 3-9-1-7-9 2-5 7-8 24-14 53-16`,fill:{type:`color`,name:`eyes`}}}]},variant18:{elements:[{name:`path`,type:`element`,attributes:{d:`M100 5q20 1 38 12 23 16 29 44 2 7 0 13-1 3-3 2l-8-12q-10-22-31-36-16-10-33-6 10 19 10 40 0 13-8 23-2 3-6 2-11 0-20-5-6-1-10-7l-1-14 3-19-5 8q-7 5-13 0-5-5-1-12 8-13 22-22Q79 5 100 5m228 20q3 2 1 4l-16 7q9-1 16 3 5 2 5 8-5 7-14 7-23 1-44 10-7 3-12-1-5-5-2-12 3-4 9-7 21-10 44-17 7-3 13-2`,fill:{type:`color`,name:`eyes`}}}]},variant19:{elements:[{name:`path`,type:`element`,attributes:{d:`M268 35q3-1 6 3 12 12 30 13 8 0 15-3l8-6q5-1 9 2c4 3 3 10 0 13q-9 10-22 11-17 1-31-8-11-7-17-19-1-4 2-6m-93 2 3-1q3 3 0 7a97 97 0 0 1-50 38c-24 8-52 4-72-13q-4-4-4-9 2-7 9-7 4 0 8 3 11 9 25 11 17 2 33-3 20-8 37-20z`,fill:{type:`color`,name:`eyes`}}}]},variant20:{elements:[{name:`path`,type:`element`,attributes:{d:`M135 28q11 6 18 13 10 9 14 23 1 4-2 5l-5-7c3 9-3 20-11 24q-10 5-19 3-14-2-23-13-6-10-5-21 3-12 12-19-18-2-34 4l-21 9q-8 5-13 13-5 5-9 4-10-2-8-11 3-6 8-11 18-16 40-22 30-7 58 6m191-7q11 2 17 9 4 11-6 14 3 13-3 24c-7 8-23 11-31 3q-8-10-8-22l5-11q-17 6-27 20l-10 15q-1 2-4 1v-5q5-12 13-21 11-14 26-23 13-7 28-4`,fill:{type:`color`,name:`eyes`}}}]},variant21:{elements:[{name:`path`,type:`element`,attributes:{d:`M327 4q12 10 13 25 1 9-2 16c-3 5-10 5-13 0q-2-7-2-15-2-7-8-13-5-2-11 0c10 13 9 30 5 45q-3 9-10 16l-11 8q-8 3-14-2-7-7-7-18-2 8-6 13l-4-6q-1-10 2-21 6-20 21-35 10-11 25-16 12-3 22 3M123 9q29 12 41 41 5 10 4 22 0 4-3 4l-7-9q-7-13-16-25-12-15-30-19 9 15 9 34-2 16-12 30-8 10-20 10-9 0-16-5-13-11-14-28-2-12 1-22-2 5-6 8-7 6-13-1-4-5 0-12Q57 15 83 7q20-4 40 2`,fill:{type:`color`,name:`eyes`}}}]},variant22:{elements:[{name:`path`,type:`element`,attributes:{d:`M330 37q3 0 5 2 2 3-2 5-9 6-20 9h12q5-2 10 3 4 4 1 10-3 5-8 5-24 1-47 7-6 2-11 0-6-6-2-13 5-5 11-6l37-17zM73 38q29 3 56 14l31 11q8 0 15 6c3 4 0 11-5 12q-14 1-27-2L64 66q-12 0-23-5-3-1-4-4 3-7 11-9 11-2 22 1 17 1 34 6-12-6-25-8l-15-4q-3-1 0-4z`,fill:{type:`color`,name:`eyes`}}}]},variant23:{elements:[{name:`path`,type:`element`,attributes:{d:`M310 10q11-3 22 3 9 6 10 16l18 3q-8 6-17 6-8 0-16-4-4-5-9-8-9-4-18-1 5 4 8 11 4 17-2 36l9-5q2 8-4 13-14 12-33 9-7 0-13-6l-2-12q-2-7 0-13a70 70 0 0 1 47-48M102 21c26 1 52 17 64 41q3 5 1 10-4-2-7-6-9-15-24-24-14-8-31-8 9 16 7 33-1 15-11 24l9 5q-9 4-19 1-17-3-29-14-14-10-19-26-23 2-43-7 3-3 8-2l28-5q6 1 11-3 24-20 55-19`,fill:{type:`color`,name:`eyes`}}}]},variant24:{elements:[{name:`path`,type:`element`,attributes:{d:`M324 2q12 7 15 20l1 17q0 5-5 9-6 3-10-3-2-7-2-15-2-10-10-14-10-1-18 6 4 12 3 24 0 11-4 22l-4 10q-2 6-8 8-6 1-11-5-4-6-4-14-2 7-6 11-5-4-4-9 1-21 12-38 11-18 29-28 13-6 26-1m-197 9q29 13 39 44 3 10 1 19 0 3-3 2l-8-12c-7-14-18-29-32-37q-15-9-34-4l5 10 3 18-3 23q-3 9-10 17-4 5-10 5-7 0-12-7-7-12-6-26l3-21-5 8q-7 5-13 0-5-5-1-12 12-18 31-28c17-7 38-7 55 1`,fill:{type:`color`,name:`eyes`}}}]}}},freckles:{width:362,height:56,probability:5,variants:{variant01:{elements:[{name:`path`,type:`element`,attributes:{d:`M339 1q6-3 7 4-1 5-6 3c-3 0-4-6-1-7M29 9q4-2 7 1 5 5 0 9-4 5-9 0c-3-3-2-9 2-10m259 1q3-3 4 1 0 2-2 3-5 0-2-4m24 0q9-2 8 7-3 6-9 2-5-6 1-9m-173 2q4-2 5 3 0 4-5 3c-2 0-3-5 0-6m216 1q4-3 7 3-2 5-6 3t-1-6M75 13q8 2 6 9-2 4-6 4-3 0-5-4-3-8 5-9M3 21q5-1 6 5c0 3-5 5-7 2q-4-4 1-7m331 5q6-3 8 5-2 6-9 4-5-5 1-9m-221 3q4 1 5 5l-2 3q-5 3-8-2 0-6 5-6M47 42q6 1 8 7-1 6-7 7-5 0-7-5-1-7 6-9`,fill:{type:`color`,name:`freckles`}}}]}}},glasses:{width:407,height:187,probability:10,variants:{variant01:{elements:[{name:`path`,type:`element`,attributes:{d:`M72 15q28-18 62-14 20 3 37 15 4-4 10 0 18 13 29 34 14 26 9 55 15-9 31-4c-2-34 16-69 44-87q17-13 39-12 14 0 27 6c3 2 6 0 9 3q14 9 23 26 12 23 8 50c-4 29-20 57-45 72q-22 14-47 11-20-3-35-17-14-12-19-31-3-6-9-8-15-4-26 5l-5 7q-12 30-39 46a99 99 0 0 1-57 15c-31-2-60-19-76-45A92 92 0 0 1 72 15m97 4q-31-14-63-7c-27 7-50 26-60 52a81 81 0 0 0 24 90c20 18 49 25 75 18q30-7 48-32c16-23 19-54 8-79q-9-20-27-33l-5-5zm187-3q-12-5-26-3-23 3-41 19a88 88 0 0 0-25 77q4 22 19 36 13 11 30 13 21 0 38-12c26-18 41-51 36-82q-3-22-19-38-5-2-8-6z`,fill:{type:`color`,name:`glasses`}}}]},variant02:{elements:[{name:`path`,type:`element`,attributes:{d:`M341 31h31q13 0 26 4 5 3 3 8-5 7-15 8l-1 28q0 23-7 43-8 17-26 24-11 4-24 5l-33-1q-9-1-17-5-10-5-15-17l-6-18q-2-16-1-32-18-4-35-1l-4 6-1 11q-2 18-6 35-6 13-16 22-7 6-15 8-36 13-73 12-26-2-47-12-21-12-32-31l-4-13-1-24V70q-10 2-19-4-5-4-1-10 6-4 14-6 21-8 45-12l19-2 54-2 56 4q12 4 21 10l11 11 24 2q6 2 11 1l3-8 7-8q13-7 28-10z`,fill:{type:`color`,name:`glasses`}}},{name:`path`,type:`element`,attributes:{d:`M359 52c6 1 13 8 13 14q0 9-7 8c-6 0-9-7-12-10q-3-2-4-6 1-7 10-6m-183 6q11 2 20 12 4 6 2 14-5 6-12 3-4-3-6-8l-7-3q-7-1-12-5-3-4 0-7 5-7 15-6`,fill:`white`}}]},variant03:{elements:[{name:`path`,type:`element`,attributes:{d:`M102 35h35q26 3 53 10l31 9q11 3 22 3l15-2q6-1 11-5 15-7 30-9 20-4 41-3l29 2c8 1 15 6 24 7q3 0 7 4 1 4-3 7l-12 1q2 29-12 55-8 17-24 28-16 9-33 9-19 1-34-7-14-7-22-21-7-16-5-34 0-11 3-23-14 3-28 1l-13-1v21q-7 28-25 48-9 10-21 16-19 10-39 14a94 94 0 0 1-75-16q-15-11-25-26-10-17-11-37-1-12 3-22l-11 5q-2 1-4-1t1-5q11-8 24-13 14-6 29-9zm11 16H74l-13 1-24 6-2 19a66 66 0 0 0 32 62q10 7 22 10 12 5 25 5a94 94 0 0 0 53-15q21-13 28-37 6-19 4-38l-11-2q-38-7-75-11m215 2c-19-1-38 6-56 11q-3 10-3 19-2 15 2 29 5 14 18 20 12 6 25 5 16 1 30-9 14-13 19-32 5-18 4-38c-13 0-26-5-39-5`,fill:{type:`color`,name:`glasses`}}}]},variant04:{elements:[{name:`path`,type:`element`,attributes:{d:`M318 33q24-2 49-2 16 1 30 4 7 3 4 8l-6 6q-4 4-9 4v21l-3 25-5 22q-5 14-19 22-9 5-21 7-17 2-36 0-8 1-15-2-11-2-19-11-5-8-8-17-3-13-4-27-1-7 1-16-14-4-28-1-7 0-13 5l-2 30-5 21q-5 10-13 18-10 9-23 13a256 256 0 0 1-89 10q-13-2-27-7a53 53 0 0 1-22-16 99 99 0 0 1-18-51q-2-15-1-32-9-1-15-6-1-5 3-6l13-6q21-7 42-10l31-4 47-1 34 2q16 1 31 6l10 6 10 11q8 2 17 2l18 1q2-8 7-13 12-9 26-12 13-3 28-4M192 53q-60-8-121-2l-36 5-1 20q-1 21 4 40l8 18q5 8 11 14 8 7 18 9 13 4 28 4 17 0 34-4l26-6q12-4 20-11 8-9 11-21l5-33q0-12 4-25-3-7-11-8m183-10-23 1q-19 0-38 4l-28 7-9 4q-5 25-3 51 2 13 9 22c4 6 13 6 20 8q15 4 32 1 12-2 23-11 6-6 8-15l4-24c3-17 1-32 5-48`,fill:{type:`color`,name:`glasses`}}}]},variant05:{elements:[{name:`path`,type:`element`,attributes:{d:`M338 96q24-1 48 1 11 0 19 6 4 5 0 10-7 5-16 3 4 16-5 30-7 8-17 12-21 10-46 13l-24-2q-11-2-20-8-11-8-14-23l-2-4-12-2h-23l-19 3-4 6-1 7q-3 15-16 24-14 8-32 11a183 183 0 0 1-83-11q-10-4-15-15-5-12-2-25H40q-3-2-2-6 5-7 12-8l19-5 55-7q36-5 72 2l16 6 11 2 28-1c5 0 8-7 13-8q14-5 28-7zm-169 27q-21-1-40 1l-24 2-37 4 3 20q3 7 10 10 14 6 29 8 31 7 61-2 13-4 18-15 7-13 4-28zm207-8q-19-2-38 0l-29 2-37 2 1 17q5 13 19 18 16 5 33 3 21-3 41-13 6-2 8-8 2-10 2-21`,fill:{type:`color`,name:`glasses`}}}]}}},mouth:{width:263,height:132,variants:{happy01:{elements:[{name:`path`,type:`element`,attributes:{d:`m216 17-6 8q-11 12-23 22-12 11-27 17-17 5-35 2-24-1-45-12l-12-7q-2-2 0-5 5-1 9 1 18 7 37 10 26 4 50-3 12-3 21-11l23-17z`,fill:{type:`color`,name:`mouth`}}}]},happy02:{elements:[{name:`path`,type:`element`,attributes:{d:`M57 26q4 1 7 4l13 7q17 8 34 12 22 5 45 6l34 1 3 1c-17 10-40 11-60 10q-35-1-66-18-11-5-15-16 0-5 5-7`,fill:{type:`color`,name:`mouth`}}}]},happy03:{elements:[{name:`path`,type:`element`,attributes:{d:`m217 17-7 8-17 17q-14 14-32 21-28 8-57 0-17-4-31-13l-6-5q0-4 4-3 9 1 17 5 16-4 33-5 20-3 39 0 3 1 4-1l20-8 13-3z`,fill:{type:`color`,name:`mouth`}}}]},happy04:{elements:[{name:`path`,type:`element`,attributes:{d:`m213 22-18 14q-16 11-36 19-5 3-10 3l-17-2h-23l-23-1q-9-2-15-9H58q-7 0-4-7 4-4 10-6 8-3 15 1l7 7 5 2 46 3q7 3 15 3l14-6 38-19q4-2 9-2`,fill:{type:`color`,name:`mouth`}}}]},happy05:{elements:[{name:`path`,type:`element`,attributes:{d:`M207 23q12-2 24 0 6 4 4 10-3 4-8 3l-14 14-20 18-17 8q-10 5-21 5-13 1-25-2-15-2-28-8-14-4-27-12l-13-7-7-9-24-6q-3 0-4-3 7-2 15 0l31 1 35-3 41-3zm6 10q-18-3-36-1l-42 6q-36 5-71 6l25 10q25 11 53 16 23 4 42-8c12-7 19-19 29-29`,fill:{type:`color`,name:`mouth`}}}]},happy06:{elements:[{name:`path`,type:`element`,attributes:{d:`M128 40q40-2 78 6l8 4q3 1 2 3-6 3-14 2l-5 5q-10 10-22 16-11 4-22 5-24 1-48-3a147 147 0 0 1-68-28l-12-4q-3-2-2-5h8q24 3 49 2zm42 11q-35-2-69 1l-43 1 23 10q20 7 41 8 15 2 32 1 11-1 21-6 9-5 17-13z`,fill:{type:`color`,name:`mouth`}}}]},happy07:{elements:[{name:`path`,type:`element`,attributes:{d:`M97 18c17 5 31 16 48 21q10 3 21 2c10-3 20-9 32-10q13-3 22 6 7 8 7 19-1 14-10 23a84 84 0 0 1-52 26q-14 1-26-1-21-2-40-13-11-6-18-15l14 7q24 13 51 15 13 1 25-2 14-3 27-11 9-6 15-15 7-10 3-22-3-8-11-8-11 0-20 5 3 2 5 6 10 14 7 30-9-11-14-23-3-6-1-12-15 8-32 5v11l-5 25q-4-6-3-14 0-12 2-23-16-6-31-15L92 71q-2-8 1-16 6-12 14-23-10-5-21-7-11 0-19 7-7 11-3 23l8 13q-6-1-11-6-10-10-7-25 6-15 20-20 12-3 23 1`,fill:{type:`color`,name:`mouth`}}}]},happy08:{elements:[{name:`path`,type:`element`,attributes:{d:`M178 30h6v6l-15 37q-3 8-10 14-8 4-16 0-12-5-21-14l-8-10 1-4q4-4 10-6 26-14 53-23m-4 10-51 22 22 17q5 4 11 1 4-5 6-11z`,fill:{type:`color`,name:`mouth`}}}]},happy09:{elements:[{name:`path`,type:`element`,attributes:{d:`M22 11q3-2 8-1l22 7q20 8 41 12l37 5q29 1 59-2l19 1-3 3q-8 5-17 6 1 7-2 13-6 16-22 22-15 7-31 2-13-5-22-16-6-10-6-21a277 277 0 0 1-74-23l-7-4zm91 32q3 16 17 24c13 8 33 4 41-9q4-6 5-14l-26 1q2 5 0 9-4 4-7 1-4-4-1-9l-26-2z`,fill:{type:`color`,name:`mouth`}}}]},happy10:{elements:[{name:`path`,type:`element`,attributes:{d:`M94 35q-2 12-8 22c23-1 45 2 67-2 19-4 36-12 56-15 4 0 10-2 13 2q-4 6-12 9l-30 10q-13 4-28 6-24 2-48-1l-21-3-10 22q-2 4-6 1-2-3 0-8 6-18 16-35l7-10q3-1 4 2`,fill:{type:`color`,name:`mouth`}}}]},happy11:{elements:[{name:`path`,type:`element`,attributes:{d:`M78 46q12 3 22 8l11 4 13-3q8-1 14 3c7 5 8 17 1 23q-10 8-23 9-11 3-20-1-4-2-7-6 2-3 5-4c6-2 13 1 19 0l15-4q3 0 4-4 1-3-3-5c-7 0-13 4-20 3-9-1-16-7-25-10q-6-4-14-5-6 1-7 6-3 6-1 14-4 3-7-2c-4-8-1-19 6-24q9-5 17-2`,fill:{type:`color`,name:`mouth`}}}]},happy12:{elements:[{name:`path`,type:`element`,attributes:{d:`M46 33q15-2 30 1c16 1 31 6 47 6l25 1 23-3 33-3q10 1 16 6 7 6 6 14-3 11-12 18-11 8-24 13-13 7-28 4-5-1-8-6c8-4 15-3 24-5q18-4 33-15 5-5 7-11-1-5-5-7-9-3-19-2l-48 7-28-1-42-6-27-3-6 1q-2 6 2 11 7 9 19 13 10 6 19 8 6 1 8 5l3 21q3 4 7 5c6-5 4-11 8-17q2-7 9-8 13-1 26 3l6 2q-1 4-5 4-14 0-26-3-4 1-5 4c-3 5-2 11-6 16q-3 4-8 4-7-1-10-7c-5-6-4-13-6-20l-19-6-17-8q-9-6-13-16-2-6 1-14 3-6 10-6`,fill:{type:`color`,name:`mouth`}}}]},happy13:{elements:[{name:`path`,type:`element`,attributes:{d:`M188 50q3 4 1 10-3 11-10 21-6 8-16 12-16 5-31-3-7-2-11-9l-2-4q5-3 9-2c9 0 18 5 27 7q10 0 17-8l12-22q1-3 4-2`,fill:{type:`color`,name:`mouth`}}}]},happy14:{elements:[{name:`path`,type:`element`,attributes:{d:`M59 44q4-1 5 2-2 5-6 8-4-6 1-10m25 12q17 5 36 7l30 3q10-1 19 2-1 3-6 4-16 3-32 2-22-2-42-9-5-2-9-6 0-4 4-3`,fill:{type:`color`,name:`mouth`}}}]},happy15:{elements:[{name:`path`,type:`element`,attributes:{d:`M235 29q5 1 6 5 3 10-5 19c-5 4-13 8-16 15q-4 6-11 10-10 7-24 7-14-3-26-8l-33-4-9-1q-6 2-13 1t-13-3c-10-1-17 5-26 4q-9-3-10-13 0-9 5-18l-13 6q0-4 3-7 5-6 13-8 3-1 8 1 4 3 2 8-5 9-5 18 2 4 8 3 7-3 16-2l10 2 19-2 21 3 24 6c7 2 13 7 21 5q9-2 16-9 5-5 8-11l15-10 5-5 3-9z`,fill:{type:`color`,name:`mouth`}}}]},happy16:{elements:[{name:`path`,type:`element`,attributes:{d:`M33 13q15 0 31 5c23 5 46 13 69 16 22 2 42-8 65-2q9 2 14 11 6 7 3 15-3 11-13 17-12 6-24 8l-30 2q-15 1-29-2l-31-7-26-8q-12-2-23-8-9-4-17-10-11-9-8-23 4-13 19-14m146 26-38 5q0 14-5 28l-2 5 20 1 19-2V63zm-87-4q2 8-1 15-1 9-5 18l22 5 22 4q-3-17 3-34-20-2-41-8m95 3q0 10-3 20-2 9-6 17 9-1 18-6 8-4 11-13v-8l-8-8zM46 23v11l-4 20 18 6 22 7q0-18 4-34zm-8-1H28q-6 3-8 8l3 9q5 6 12 11-1-15 3-28M6 4q6-3 13-4-7 11-19 13 1-5 6-9`,fill:{type:`color`,name:`mouth`}}}]},happy17:{elements:[{name:`path`,type:`element`,attributes:{d:`M178 40q6-1 12 1l21-1q6 0 11 2 5 5 2 11c-3 6-10 11-13 17q-1 3 1 5 2 7-2 13-7 6-18 8l11-12v-4q-4-4-5-9c-2-6 3-12 6-17q-9 1-18-2-6-1-10-7-1-3 2-5`,fill:{type:`color`,name:`mouth`}}}]},happy18:{elements:[{name:`path`,type:`element`,attributes:{d:`M189 33q4-1 4 3v15q7-4 16-2-2 5-8 8l-34 12q-25 6-51 8-12 2-22-3-4 0-4-4h12q4-8 11-11 15-10 31-18l10-5c4-1 7 4 11 4 7-1 16-7 24-7m-1 45q2 6-1 12-4 7-12 10-9 4-18 3-5-2-6-6l7-3q13-4 25-13z`,fill:{type:`color`,name:`mouth`}}}]},sad01:{elements:[{name:`path`,type:`element`,attributes:{d:`M180 32q8-1 13 6 4 10 5 20 2 17-6 33-8 13-23 16-16 3-33 2-7 1-13-3 9-4 20-4l20-3q11-1 19-9 5-8 6-18l-4 5q-5 4-13 5l-26 4q-12 2-23-1l-12 23q-3 0-2-4 1-11 6-20 11-25 36-42 13-10 30-10`,fill:{type:`color`,name:`mouth`}}}]},sad02:{elements:[{name:`path`,type:`element`,attributes:{d:`M199 26q2 4-1 8-9 12-21 21-1 7-4 12-2 13-12 22-5 2-11 2-5-1-7-6-1-7 2-13 11-16 27-26l21-17q3-4 6-3`,fill:{type:`color`,name:`mouth`}}}]},sad03:{elements:[{name:`path`,type:`element`,attributes:{d:`M168 113q11-1 20 3-6 4-13 4l-43 12q-4 1-7-1 0-3 4-6 8-5 19-8z`,fill:{type:`color`,name:`mouth`}}}]},sad04:{elements:[{name:`path`,type:`element`,attributes:{d:`M202 34q3 0 5 3 2 8 0 16 0 6-4 11l-5 3-2-7 4-20-30 6-13 4q-16 11-29 24l-9 6q-5-1-5-6 2-6 7-10 14-15 32-23c9-3 18 0 27-2z`,fill:{type:`color`,name:`mouth`}}}]},sad05:{elements:[{name:`path`,type:`element`,attributes:{d:`m230 22 25 3q5 1 8 6 0 6-5 6l-17-3q-18-1-35 1l-45 4h-26q-29 1-56 7l-10 5q-6 6-14 10-3 2-6 1-3-3-1-7 3-8 11-15 7-4 16-4l25-3 41-3 34-3z`,fill:{type:`color`,name:`mouth`}}}]},sad06:{elements:[{name:`path`,type:`element`,attributes:{d:`M78 31h30l22 4q22 7 43 7l26 1q13 1 24 6 5 2 5 9l-7-2q-16-5-33-3 1 9-2 17h15l5 3q0 4-4 4h-23l-86-1-3 2-3-2-32-2q-7 1-13-3l18-1h25q-2-14 2-29-14 0-28 4-12 4-21 14l-7 11-2-1q-1-8 2-14 5-8 11-12 16-10 36-12m14 10q6 14 3 29h41q-2-12-1-22l-21-5q-10-2-22-2m52 9q1 9-2 20h39l-1-17q-18 1-36-3`,fill:{type:`color`,name:`mouth`}}}]},sad07:{elements:[{name:`path`,type:`element`,attributes:{d:`M183 40q15-3 29-2 16 0 27 10 6 6 10 13 3 5-2 10-9 5-20 5h-42l-46 5q-14 2-29 2l4-5 9-9q13-11 29-17 15-7 31-12m-13 12a254 254 0 0 0-43 21q20-4 42-6-2-7 1-15m40-5q-16-2-33 3l-1 17 30-1q-2-10 4-19m6 1q1 10-5 18 15 1 29-1-8-10-18-16zm19-36q3-2 6 1 6 4 8 11 5 8 3 17-4-3-5-7l-11-16q-2-3-1-6`,fill:{type:`color`,name:`mouth`}}}]},sad08:{elements:[{name:`path`,type:`element`,attributes:{d:`M196 21c2 0 8 1 7 4q-3 4-9 5-24 4-49 11 0 9-3 17-8 19-24 33-12 9-26 8-10-2-15-11-6-9-4-19L54 80l-4 1 2-4q5-7 15-13a308 308 0 0 1 84-35q22-7 45-8m-63 24-27 9q-2 12-7 21-2-3-1-7l2-12-23 11q3 10 8 19 8 6 17 2 11-4 17-14 9-14 14-29`,fill:{type:`color`,name:`mouth`}}}]},sad09:{elements:[{name:`path`,type:`element`,attributes:{d:`M248 23q3-1 5 2 3 4-1 6-8 4-16 5l-64 8q-9 2-17 1 7-4 15-5l62-14z`,fill:{type:`color`,name:`mouth`}}}]}}},nose:{width:73,height:129,variants:{variant01:{elements:[{name:`path`,type:`element`,attributes:{d:`m42 0 3 15 3 26 8 13 6 12 5 14q5 7 5 16-1 15-14 20l-19 8q-7 5-15 5-8 1-14-5-1-3 3-5l12-3 16-5 13-5q10-4 7-14l-5-8-7-17-7-19q-6-12-5-26 0-11 4-22`,fill:{type:`color`,name:`nose`}}}]},variant02:{elements:[{name:`path`,type:`element`,attributes:{d:`M48 108v1q-6 13-20 18-5 2-9-1v-4q10-8 24-12z`,fill:{type:`color`,name:`nose`}}}]},variant03:{elements:[{name:`path`,type:`element`,attributes:{d:`M52 101q0 4-4 9-7 9-18 12c-5 1-9-2-13 0H5q-3-3 0-7 5-6 12-7 6-2 10 2l1 7 11-8z`,fill:{type:`color`,name:`nose`}}}]},variant04:{elements:[{name:`path`,type:`element`,attributes:{d:`M39 67a37 37 0 0 1 19 29q-1 15-13 22-9 5-18 7-4 2-8 0-2-3 1-6l21-12q5-3 5-9c0-10-5-17-7-26z`,fill:{type:`color`,name:`nose`}}}]},variant05:{elements:[{name:`path`,type:`element`,attributes:{d:`m36 23 2 2 7 22 15 23q6 9 5 20-2 10-9 16-11 10-25 16-7 5-18 2l6-4 36-24q4-4 4-9-2-9-8-16-8-13-13-25-4-11-2-23`,fill:{type:`color`,name:`nose`}}}]},variant06:{elements:[{name:`path`,type:`element`,attributes:{d:`M54 97q0 13-10 23-5 5-14 6-9-1-19-5-6-2-11-6l5-4c9-1 17 3 25 4q6-1 9-6 7-8 15-12`,fill:{type:`color`,name:`nose`}}}]}}}},colors:{background:{values:[`#ffffff`]},eyebrows:{notEqualTo:[],values:[`#000000`]},eyes:{notEqualTo:[],values:[`#000000`]},freckles:{notEqualTo:[],values:[`#000000`]},glasses:{notEqualTo:[],values:[`#000000`]},mouth:{notEqualTo:[],values:[`#000000`]},nose:{notEqualTo:[],values:[`#000000`]}}};let tt=new Map,nt;function avatarSource(e){let t=tt.get(e);if(t!==void 0)return t;let n=null;try{nt??=new Style(et),n=new Avatar(nt,{seed:e}).toDataUri()}catch{}if(tt.size>=128){let e=tt.keys().next().value;e!==void 0&&tt.delete(e)}return tt.set(e,n),n}function GeneratedVoiceAvatar({voice:e,label:t,fallback:n,compact:r=!1}){let o=e?.id.trim(),s=e&&o?JSON.stringify([e.provider,e.model??``,o]):null,[c,l]=(0,i.useState)(null),u=s===null||s===c?null:avatarSource(s),d=r?`xmimo-tts-voice-avatar xmimo-tts-voice-avatar-compact`:`xmimo-tts-voice-avatar`;if(u===null)return(0,a.jsx)(`span`,{className:`${d} xmimo-tts-voice-avatar-fallback`,"aria-hidden":`true`,children:n??Array.from(t.trim())[0]});let f=r?20:36;return(0,a.jsx)(`img`,{className:d,src:u,alt:``,width:f,height:f,loading:`lazy`,onError:()=>l(s)},s)}return n.default=GeneratedVoiceAvatar,t.exports}});
2
+ //# sourceMappingURL=client.generated-voice-avatar.js.map