Ubuntu
!function(){"use strict";var e={5140:function(e,t,r){var n=r(6677),i=n.ValidatorResult,a=n.SchemaError,o={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0}},s=o.validators={};function u(e,t,r,n,i){var a=t.throwError,o=t.throwAll;t.throwError=!1,t.throwAll=!1;var s=this.validateSchema(e,i,t,r);return t.throwError=a,t.throwAll=o,!s.valid&&n instanceof Function&&n(s),s.valid}function c(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e)for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}function l(e,t,r,n,i,a){if(this.types.object(e)&&(!t.properties||void 0===t.properties[i]))if(!1===t.additionalProperties)a.addError({name:"additionalProperties",argument:i,message:"is not allowed to have the additional property "+JSON.stringify(i)});else{var o=t.additionalProperties||{};"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,i,o,r,n);var s=this.validateSchema(e[i],o,r,n.makeChild(o,i));s.instance!==a.instance[i]&&(a.instance[i]=s.instance),a.importErrors(s)}}s.type=function(e,t,r,n){if(void 0===e)return null;var a=new i(e,t,r,n),o=Array.isArray(t.type)?t.type:[t.type];if(!o.some(this.testType.bind(this,e,t,r,n))){var s=o.map(function(e){if(e){var t=e.$id||e.id;return t?"<"+t+">":e+""}});a.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return a},s.anyOf=function(e,t,r,n){if(void 0===e)return null;var o=new i(e,t,r,n),s=new i(e,t,r,n);if(!Array.isArray(t.anyOf))throw new a("anyOf must be an array");if(!t.anyOf.some(u.bind(this,e,r,n,function(e){s.importErrors(e)}))){var c=t.anyOf.map(function(e,t){var r=e.$id||e.id;return r?"<"+r+">":e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"});r.nestedErrors&&o.importErrors(s),o.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return o},s.allOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.allOf))throw new a("allOf must be an array");var o=new i(e,t,r,n),s=this;return t.allOf.forEach(function(t,i){var a=s.validateSchema(e,t,r,n);if(!a.valid){var u=t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+i+"]";o.addError({name:"allOf",argument:{id:u,length:a.errors.length,valid:a},message:"does not match allOf schema "+u+" with "+a.errors.length+" error[s]:"}),o.importErrors(a)}}),o},s.oneOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.oneOf))throw new a("oneOf must be an array");var o=new i(e,t,r,n),s=new i(e,t,r,n),c=t.oneOf.filter(u.bind(this,e,r,n,function(e){s.importErrors(e)})).length,l=t.oneOf.map(function(e,t){return e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"});return 1!==c&&(r.nestedErrors&&o.importErrors(s),o.addError({name:"oneOf",argument:l,message:"is not exactly one from "+l.join(",")})),o},s.if=function(e,t,r,a){if(void 0===e)return null;if(!n.isSchema(t.if))throw new Error('Expected "if" keyword to be a schema');var o,s=u.call(this,e,r,a,null,t.if),c=new i(e,t,r,a);if(s){if(void 0===t.then)return;if(!n.isSchema(t.then))throw new Error('Expected "then" keyword to be a schema');o=this.validateSchema(e,t.then,r,a.makeChild(t.then)),c.importErrors(o)}else{if(void 0===t.else)return;if(!n.isSchema(t.else))throw new Error('Expected "else" keyword to be a schema');o=this.validateSchema(e,t.else,r,a.makeChild(t.else)),c.importErrors(o)}return c},s.propertyNames=function(e,t,r,o){if(this.types.object(e)){var s=new i(e,t,r,o),u=void 0!==t.propertyNames?t.propertyNames:{};if(!n.isSchema(u))throw new a('Expected "propertyNames" to be a schema (object or boolean)');for(var l in e)if(void 0!==c(e,l)){var f=this.validateSchema(l,u,r,o.makeChild(u));s.importErrors(f)}return s}},s.properties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n),s=t.properties||{};for(var u in s){var l=s[u];if(void 0!==l){if(null===l)throw new a('Unexpected null, expected schema in "properties"');"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,u,l,r,n);var f=c(e,u),p=this.validateSchema(f,l,r,n.makeChild(l,u));p.instance!==o.instance[u]&&(o.instance[u]=p.instance),o.importErrors(p)}}return o}},s.patternProperties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n),s=t.patternProperties||{};for(var u in e){var c=!0;for(var f in s){var p=s[f];if(void 0!==p){if(null===p)throw new a('Unexpected null, expected schema in "patternProperties"');try{var m=new RegExp(f,"u")}catch(e){m=new RegExp(f)}if(m.test(u)){c=!1,"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,u,p,r,n);var d=this.validateSchema(e[u],p,r,n.makeChild(p,u));d.instance!==o.instance[u]&&(o.instance[u]=d.instance),o.importErrors(d)}}}c&&l.call(this,e,t,r,n,u,o)}return o}},s.additionalProperties=function(e,t,r,n){if(this.types.object(e)){if(t.patternProperties)return null;var a=new i(e,t,r,n);for(var o in e)l.call(this,e,t,r,n,o,a);return a}},s.minProperties=function(e,t,r,n){if(this.types.object(e)){var a=new i(e,t,r,n);return Object.keys(e).length>=t.minProperties||a.addError({name:"minProperties",argument:t.minProperties,message:"does not meet minimum property length of "+t.minProperties}),a}},s.maxProperties=function(e,t,r,n){if(this.types.object(e)){var a=new i(e,t,r,n);return Object.keys(e).length<=t.maxProperties||a.addError({name:"maxProperties",argument:t.maxProperties,message:"does not meet maximum property length of "+t.maxProperties}),a}},s.items=function(e,t,r,n){var a=this;if(this.types.array(e)&&void 0!==t.items){var o=new i(e,t,r,n);return e.every(function(e,i){if(Array.isArray(t.items))var s=void 0===t.items[i]?t.additionalItems:t.items[i];else s=t.items;if(void 0===s)return!0;if(!1===s)return o.addError({name:"items",message:"additionalItems not permitted"}),!1;var u=a.validateSchema(e,s,r,n.makeChild(s,i));return u.instance!==o.instance[i]&&(o.instance[i]=u.instance),o.importErrors(u),!0}),o}},s.contains=function(e,t,r,a){var o=this;if(this.types.array(e)&&void 0!==t.contains){if(!n.isSchema(t.contains))throw new Error('Expected "contains" keyword to be a schema');var s=new i(e,t,r,a);return!1===e.some(function(e,n){return 0===o.validateSchema(e,t.contains,r,a.makeChild(t.contains,n)).errors.length})&&s.addError({name:"contains",argument:t.contains,message:"must contain an item matching given schema"}),s}},s.minimum=function(e,t,r,n){if(this.types.number(e)){var a=new i(e,t,r,n);return t.exclusiveMinimum&&!0===t.exclusiveMinimum?e>t.minimum||a.addError({name:"minimum",argument:t.minimum,message:"must be greater than "+t.minimum}):e>=t.minimum||a.addError({name:"minimum",argument:t.minimum,message:"must be greater than or equal to "+t.minimum}),a}},s.maximum=function(e,t,r,n){if(this.types.number(e)){var a=new i(e,t,r,n);return t.exclusiveMaximum&&!0===t.exclusiveMaximum?et.exclusiveMinimum||a.addError({name:"exclusiveMinimum",argument:t.exclusiveMinimum,message:"must be strictly greater than "+t.exclusiveMinimum}),a}},s.exclusiveMaximum=function(e,t,r,n){if("boolean"!=typeof t.exclusiveMaximum&&this.types.number(e)){var a=new i(e,t,r,n);return e=t.minLength||a.addError({name:"minLength",argument:t.minLength,message:"does not meet minimum length of "+t.minLength}),a}},s.maxLength=function(e,t,r,n){if(this.types.string(e)){var a=new i(e,t,r,n),o=e.match(/[\uDC00-\uDFFF]/g);return e.length-(o?o.length:0)<=t.maxLength||a.addError({name:"maxLength",argument:t.maxLength,message:"does not meet maximum length of "+t.maxLength}),a}},s.minItems=function(e,t,r,n){if(this.types.array(e)){var a=new i(e,t,r,n);return e.length>=t.minItems||a.addError({name:"minItems",argument:t.minItems,message:"does not meet minimum length of "+t.minItems}),a}},s.maxItems=function(e,t,r,n){if(this.types.array(e)){var a=new i(e,t,r,n);return e.length<=t.maxItems||a.addError({name:"maxItems",argument:t.maxItems,message:"does not meet maximum length of "+t.maxItems}),a}},s.uniqueItems=function(e,t,r,n){if(!0===t.uniqueItems&&this.types.array(e)){var a=new i(e,t,r,n);return e.every(p)||a.addError({name:"uniqueItems",message:"contains duplicate item"}),a}},s.dependencies=function(e,t,r,n){if(this.types.object(e)){var a=new i(e,t,r,n);for(var o in t.dependencies)if(void 0!==e[o]){var s=t.dependencies[o],u=n.makeChild(s,o);if("string"==typeof s&&(s=[s]),Array.isArray(s))s.forEach(function(t){void 0===e[t]&&a.addError({name:"dependencies",argument:u.propertyPath,message:"property "+t+" not found, required by "+u.propertyPath})});else{var c=this.validateSchema(e,s,r,u);a.instance!==c.instance&&(a.instance=c.instance),c&&c.errors.length&&(a.addError({name:"dependencies",argument:u.propertyPath,message:"does not meet dependency required by "+u.propertyPath}),a.importErrors(c))}}return a}},s.enum=function(e,t,r,o){if(void 0===e)return null;if(!Array.isArray(t.enum))throw new a("enum expects an array",t);var s=new i(e,t,r,o);return t.enum.some(n.deepCompareStrict.bind(null,e))||s.addError({name:"enum",argument:t.enum,message:"is not one of enum values: "+t.enum.map(String).join(",")}),s},s.const=function(e,t,r,a){if(void 0===e)return null;var o=new i(e,t,r,a);return n.deepCompareStrict(t.const,e)||o.addError({name:"const",argument:t.const,message:"does not exactly match expected constant: "+t.const}),o},s.not=s.disallow=function(e,t,r,n){var a=this;if(void 0===e)return null;var o=new i(e,t,r,n),s=t.not||t.disallow;return s?(Array.isArray(s)||(s=[s]),s.forEach(function(i){if(a.testType(e,t,r,n,i)){var s=i&&(i.$id||i.id)||i;o.addError({name:"not",argument:s,message:"is of prohibited type "+s})}}),o):null},e.exports=o},5304:function(e,t,r){var n=r(6482);r(6677).ValidatorResult,r(6677).ValidatorResultError,r(6677).ValidationError,r(6677).SchemaError,r(9911),r(9911).S,e.exports.t=function(e,t,r){return(new n).validate(e,t,r)}},6482:function(e,t,r){var n=r(5140),i=r(6677),a=r(9911).S,o=i.ValidatorResult,s=i.ValidatorResultError,u=i.SchemaError,c=i.SchemaContext,l=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(p),this.attributes=Object.create(n.validators)};function f(e){var t="string"==typeof e?e:e.$ref;return"string"==typeof t&&t}l.prototype.customFormats={},l.prototype.schemas=null,l.prototype.types=null,l.prototype.attributes=null,l.prototype.unresolvedRefs=null,l.prototype.addSchema=function(e,t){var r=this;if(!e)return null;var n=a(t||"/",e),i=t||e.$id||e.id;for(var o in n.id)this.schemas[o]=n.id[o];for(var o in n.ref)this.unresolvedRefs.push(o);return this.unresolvedRefs=this.unresolvedRefs.filter(function(e){return void 0===r.schemas[e]}),this.schemas[i]},l.prototype.addSubSchemaArray=function(e,t){if(Array.isArray(t))for(var r=0;r",e);var o=i.objectGetPath(r.schemas[a],n.substr(1));if(void 0===o)throw new u("no such schema "+n+" located in <"+a+">",e);return{subschema:o,switchSchema:t}},l.prototype.testType=function(e,t,r,n,i){if(void 0!==i){if(null===i)throw new u('Unexpected null in "type" keyword');if("function"==typeof this.types[i])return this.types[i].call(this,e);if(i&&"object"==typeof i){var a=this.validateSchema(e,i,r,n);return void 0===a||!(a&&a.errors.length)}return!0}};var p=l.prototype.types={};p.string=function(e){return"string"==typeof e},p.number=function(e){return"number"==typeof e&&isFinite(e)},p.integer=function(e){return"number"==typeof e&&e%1==0},p.boolean=function(e){return"boolean"==typeof e},p.array=function(e){return Array.isArray(e)},p.null=function(e){return null===e},p.date=function(e){return e instanceof Date},p.any=function(e){return!0},p.object=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&!(e instanceof Date)},e.exports=l},6677:function(e,t){var r=t.ValidationError=function(e,t,r,n,i,a){if(Array.isArray(n)?(this.path=n,this.property=n.reduce(function(e,t){return e+c(t)},"instance")):void 0!==n&&(this.property=n),e&&(this.message=e),r){var o=r.$id||r.id;this.schema=o||r}void 0!==t&&(this.instance=t),this.name=i,this.argument=a,this.stack=this.toString()};r.prototype.toString=function(){return this.property+" "+this.message};var n=t.ValidatorResult=function(e,t,r,n){this.instance=e,this.schema=t,this.options=r,this.path=n.path,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&!0===r.disableFormat};function i(e,t){return t+": "+e.toString()+"\n"}function a(e){"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,a),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}n.prototype.addError=function(e){var t;if("string"==typeof e)t=new r(e,this.instance,this.schema,this.path);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");t=new r(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(t),this.throwFirst)throw new a(this);if(this.throwError)throw t;return t},n.prototype.importErrors=function(e){"string"==typeof e||e&&e.validatorType?this.addError(e):e&&e.errors&&(this.errors=this.errors.concat(e.errors))},n.prototype.toString=function(e){return this.errors.map(i).join("")},Object.defineProperty(n.prototype,"valid",{get:function(){return!this.errors.length}}),e.exports.ValidatorResultError=a,a.prototype=new Error,a.prototype.constructor=a,a.prototype.name="Validation Error";var o=t.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)};o.prototype=Object.create(Error.prototype,{constructor:{value:o,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=t.SchemaContext=function(e,t,r,n,i){this.schema=e,this.options=t,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce(function(e,t){return e+c(t)},"instance")):this.propertyPath=r,this.base=n,this.schemas=i};s.prototype.resolve=function(e){return(()=>h(this.base,e))()},s.prototype.makeChild=function(e,t){var r=void 0===t?this.path:this.path.concat([t]),n=e.$id||e.id;let i=(()=>h(this.base,n||""))();var a=new s(e,this.options,r,i,Object.create(this.schemas));return n&&!a.schemas[i]&&(a.schemas[i]=e),a};var u=t.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])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ative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],t.isFormat=function(e,t,r){if("string"==typeof e&&void 0!==u[t]){if(u[t]instanceof RegExp)return u[t].test(e);if("function"==typeof u[t])return u[t](e)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[t])return r.customFormats[t](e);return!0};var c=t.makeSuffix=function(e){return(e=e.toString()).match(/[.\s\[\]]/)||e.match(/^[\d]/)?e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]":"."+e};function l(e,t,r,n){"object"==typeof r?t[n]=m(e[n],r):-1===e.indexOf(r)&&t.push(r)}function f(e,t,r){t[r]=e[r]}function p(e,t,r,n){"object"==typeof t[n]&&t[n]&&e[n]?r[n]=m(e[n],t[n]):r[n]=t[n]}function m(e,t){var r=Array.isArray(t),n=r&&[]||{};return r?(e=e||[],n=n.concat(e),t.forEach(l.bind(null,e,n))):(e&&"object"==typeof e&&Object.keys(e).forEach(f.bind(null,e,n)),Object.keys(t).forEach(p.bind(null,e,t,n))),n}function d(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}t.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!!Array.isArray(r)&&t.length===r.length&&t.every(function(n,i){return e(t[i],r[i])});if("object"==typeof t){if(!t||!r)return t===r;var n=Object.keys(t),i=Object.keys(r);return n.length===i.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},e.exports.deepMerge=m,t.objectGetPath=function(e,t){for(var r,n=t.split("/").slice(1);"string"==typeof(r=n.shift());){var i=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(i in e))return;e=e[i]}return e},t.encodePath=function(e){return e.map(d).join("")},t.getDecimalPlaces=function(e){var t=0;if(isNaN(e))return t;"number"!=typeof e&&(e=Number(e));var r=e.toString().split("e");if(2===r.length){if("-"!==r[1][0])return t;t=Number(r[1].slice(1))}var n=r[0].split(".");return 2===n.length&&(t+=n[1].length),t},t.isSchema=function(e){return"object"==typeof e&&e||"boolean"==typeof e};var h=t.resolveUrl=function(e,t){const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:n}=r;return e+t+n}return r.toString()}},9911:function(e,t,r){var n=r(6677);function i(e,t){this.id=e,this.ref=t}e.exports.S=function(e,t){function r(e,t){if(!t||"object"!=typeof t)return;if(t.$ref){let r=n.resolveUrl(e,t.$ref);return void(u[r]=u[r]?u[r]+1:0)}var i=t.$id||t.id;let c=n.resolveUrl(e,i);var l=i?c:e;if(l){if(l.indexOf("#")<0&&(l+="#"),s[l]){if(!n.deepCompareStrict(s[l],t))throw new Error("Schema <"+l+"> already exists with different definition");return s[l]}s[l]=t,"#"==l[l.length-1]&&(s[l.substring(0,l.length-1)]=t)}a(l+"/items",Array.isArray(t.items)?t.items:[t.items]),a(l+"/extends",Array.isArray(t.extends)?t.extends:[t.extends]),r(l+"/additionalItems",t.additionalItems),o(l+"/properties",t.properties),r(l+"/additionalProperties",t.additionalProperties),o(l+"/definitions",t.definitions),o(l+"/patternProperties",t.patternProperties),o(l+"/dependencies",t.dependencies),a(l+"/disallow",t.disallow),a(l+"/allOf",t.allOf),a(l+"/anyOf",t.anyOf),a(l+"/oneOf",t.oneOf),r(l+"/not",t.not)}function a(e,t){if(Array.isArray(t))for(var n=0;nt,{base:a,disabled:o}=r||{};if(!a)return{$$type:e,value:i(),...o&&{disabled:o}};if(!n(a))throw new Error(`Cannot create prop based on invalid value: ${JSON.stringify(a)}`);return{$$type:e,value:i(a.value),...o&&{disabled:o}}},schema:r,key:e};return a.set(e,o),o}function u(e,t,r){return s(r||`${e}-array`,i.z.array(t))}const c=i.z.any().nullable(),l=s("shadow",i.z.strictObject({position:c,hOffset:c,vOffset:c,blur:c,spread:c,color:c})),f=s("box-shadow",i.z.array(l.schema)),p=s("border-radius",i.z.strictObject({"start-start":c,"start-end":c,"end-start":c,"end-end":c})),m=s("border-width",i.z.strictObject({"block-start":c,"block-end":c,"inline-start":c,"inline-end":c})),d="classes",h=s(d,i.z.array(i.z.string().regex(/^[a-z][a-z-_0-9]*$/i))),y=s("color",i.z.string()),v=s("flex",i.z.strictObject({flexGrow:c,flexShrink:c,flexBasis:c})),g=s("image",i.z.strictObject({src:c,size:c})),b=s("image-attachment-id",i.z.number()),A=s("image-src",i.z.strictObject({id:c,url:i.z.null()}).or(i.z.strictObject({id:i.z.null(),url:c}))),F=s("video-attachment-id",i.z.number()),z=s("video-src",i.z.strictObject({id:c,url:i.z.null()}).or(i.z.strictObject({id:i.z.null(),url:c}))),w=s("dimensions",i.z.strictObject({"block-start":c,"block-end":c,"inline-start":c,"inline-end":c})),$=s("number",i.z.number().nullable()),x=i.z.union([i.z.number(),i.z.literal("")]),O=s("size",i.z.strictObject({unit:i.z.enum(["px","em","rem","%","vw","vh","ch"]),size:x}).or(i.z.strictObject({unit:i.z.enum(["deg","rad","grad","turn"]),size:x})).or(i.z.strictObject({unit:i.z.enum(["s","ms"]),size:x})).or(i.z.strictObject({unit:i.z.literal("auto"),size:i.z.literal("")})).or(i.z.strictObject({unit:i.z.literal("custom"),size:i.z.string()}))),j=s("string",i.z.string().nullable()),P=u(j.key,j.schema),E=s("stroke",i.z.strictObject({color:c,width:c})),S=s("url",i.z.string().nullable()),Z=s("layout-direction",i.z.object({row:i.z.any(),column:i.z.any()})),k=s("link",i.z.strictObject({destination:c,isTargetBlank:c,tag:c})),T=s("email",i.z.strictObject({to:c,subject:c,message:c,from:c,"meta-data":c,"send-as":c,"from-name":c,"reply-to":c,cc:c,bcc:c})),U=s("key-value",i.z.strictObject({key:c,value:c})),_=s("selection-size",i.z.strictObject({selection:i.z.union([U.schema,j.schema]),size:c})),M=s("background",i.z.strictObject({color:c,clip:c,"background-overlay":c})),C=s("background-color-overlay",c),V=s("background-gradient-overlay",c),q=s("background-image-overlay",c),R=C.schema.or(V.schema).or(q.schema),I=s("background-overlay",i.z.array(R)),N=s("background-image-position-offset",c),D=s("background-image-size-scale",c),L=s("boolean",i.z.boolean().nullable()),J=s("color-stop",i.z.strictObject({color:c,offset:c})),K=s("gradient-color-stop",i.z.array(J.schema)),G=s("date-time",i.z.strictObject({date:c,time:c})),H=s("object-position",i.z.strictObject({x:c,y:c})),B=s("query",i.z.strictObject({id:c,label:c})),W=s("html",i.z.string().nullable()),Y=i.z.lazy(()=>i.z.object({id:i.z.string(),type:i.z.string(),content:i.z.string().optional(),children:i.z.array(Y).optional()})),X=s("html-v2",i.z.object({content:i.z.string().nullable(),children:i.z.array(Y)})),Q=s("html-v3",i.z.object({content:j.schema.nullable(),children:i.z.array(i.z.unknown())})),ee=s("drop-shadow",i.z.object({xAxis:c,yAxis:c,blur:c,color:c})),te=s("blur",i.z.strictObject({size:c})),re=s("color-tone",i.z.strictObject({size:c})),ne=s("hue-rotate",i.z.strictObject({size:c})),ie=s("intensity",i.z.strictObject({size:c})),ae=s("css-filter-func",i.z.object({func:j.schema,args:i.z.union([te.schema,ie.schema,re.schema,ne.schema,ee.schema])})),oe=s("filter",i.z.array(ae.schema)),se=s("transform",i.z.strictObject({"transform-functions":c,"transform-origin":c,perspective:c,"perspective-origin":c})),ue=s("transform-move",i.z.strictObject({x:c,y:c,z:c})),ce=s("transform-rotate",i.z.strictObject({x:c,y:c,z:c})),le=s("transform-scale",i.z.strictObject({x:$.schema.nullable(),y:$.schema.nullable(),z:$.schema.nullable()})),fe=s("transform-skew",i.z.strictObject({x:c,y:c})),pe=ue.schema.or(le.schema).or(ce.schema).or(fe.schema),me=s("transform-functions",i.z.array(pe)),de=s("transform-origin",i.z.strictObject({x:c,y:c,z:c})),he=s("perspective-origin",i.z.strictObject({x:c,y:c})),ye=s("backdrop-filter",i.z.array(ae.schema)),ve=(e,t)=>null===e?t:e,ge={transformers:{}},be=(e,{transformers:t={},forceKey:r}=ge)=>{const n=structuredClone(e);if("object"!=typeof n||null===n)return null;if(Array.isArray(n))return n.map(e=>be(e,{forceKey:r,transformers:t}));const i=n;switch("$intention"in i&&delete i.$intention,r&&(i.$$type=r),i.$$type){case"size":{const{value:e}=i;return{$$type:"size",value:{unit:"string"==typeof e.unit?e.unit:ve(j.extract(e.unit),"px"),size:"string"==typeof e.size||"number"==typeof e.size?e.size:ve(j.extract(e.size),$.extract(e.size))}}}case"html-v3":{const{value:e}=i;return{$$type:"html-v3",value:{content:e.content,children:e.children??[]}}}default:const e=t?.[i.$$type];if(e)return e(i.value)}if("object"==typeof i.value)if(Array.isArray(i.value))i.value=be(i.value,{transformers:t});else{const{value:e}=i,r=n;r.value={},Object.entries(e).forEach(([e,n])=>{r.value[e]=be(n,{transformers:t})})}return n};function Ae(e,t=e.key){const r={};return e.description&&(r.description=e.description),e.anyOf&&Array.isArray(e.anyOf)?function(e,t){const r={};if(!e.anyOf||!Array.isArray(e.anyOf))throw new Error("Invalid anyOf schema");for(const t of e.anyOf)if("object"===t.type&&t.properties&&t.properties.$$type&&t.properties.value){const e=t.properties.$$type;let n;if(!(e.enum&&Array.isArray(e.enum)&&e.enum.length>0))continue;n=e.enum[0];const i=Fe(t.properties.value);r[n]=i}return{kind:"union",prop_types:r,settings:{},meta:t}}(e,r):"object"===e.type&&e.properties?function(e,t,r=e.key){const n={};if(!e.properties)return{kind:"object",key:r,shape:{},settings:{},meta:t};const i=Array.isArray(e.required)?e.required:[];for(const[t,a]of Object.entries(e.properties)){const e=Fe(a,r);i.includes(t)&&(e.settings={...e.settings,required:!0}),n[t]=e}return{kind:"object",key:r||"object",shape:n,settings:{},meta:t}}(e,r,t):"array"===e.type&&e.items?function(e,t,r=e.key){if(!e.items)throw new Error("Array schema must have items property");return{kind:"array",key:r||"array",item_prop_type:Fe(e.items),settings:{},meta:t}}(e,r,t):function(e,t,r=e.key){const n={};let i=r||"string";return"number"===e.type?i="number":"boolean"===e.type?i="boolean":"string"===e.type&&(i="string"),Array.isArray(e.enum)&&(n.enum=e.enum),{kind:"plain",key:i,settings:n,meta:t}}(e,r,t)}function Fe(e,t){return Ae(e,t)}function ze(e){const t=e.meta?.description,r={};switch(t&&(r.description=t),null!==e.initial_value&&void 0!==e.initial_value&&(r.examples=[e.initial_value]),e.kind){case"union":return function(e,t){const r=structuredClone(t),n=e.prop_types||{},i=[];for(const[e,t]of Object.entries(n)){if("dynamic"===e||"overridable"===e)continue;const r=we(t);i.push(r)}i.length>0&&(r.anyOf=i);const a=e.meta?.description;return a&&(r.description=a),r}(e,r);case"object":return function(e,t){const r=structuredClone(t);r.type="object";const n={properties:{$$type:{type:"string",const:e.key},value:{type:"object",properties:{},additionalProperties:!1}}},i=[],a=e.shape||{};for(const[e,t]of Object.entries(a)){const r=ze(t);!0===t.settings?.required&&i.push(e),n.properties.value.properties&&(n.properties.value.properties[e]=r)}return r.required=["$$type","value"],i.length>0&&(n.properties.value.required=i),{...r,...n}}(e,r);case"array":return function(e,t){const r=structuredClone(t);let n;r.type="object";const i=e.item_prop_type;return i&&(n=we(i)),r.properties={$$type:{type:"string",const:e.key},value:{type:"array",...n?{items:n}:{}}},r}(e,r);default:return function(e,t){const r={...t};if(!Object.hasOwn(e,"kind"))throw new Error(`PropType kind is undefined for propType with key: ${e.key??"[unknown key]"}`);const n=e.settings?.enum||[];switch(e.kind){case"string":case"number":case"boolean":return{...r,type:"object",properties:{$$type:{type:"string",const:e.key??e.kind},value:{type:e.kind,...n.length>0?{enum:n}:{}}},required:["$$type","value"]};default:return{...r,type:"object",$$type:e.kind,value:{type:e.kind}}}}(e,r)}}function we(e){return ze(e)}const $e=["_cssid","classes","attributes"];function xe(e){return!$e.includes(e)}var Oe=r(5304);function je(e){const t={path:e.path,message:e.message,schema:e.schema,instance:e.instance,name:e.name};if("anyOf"===e.name&&e.schema&&"object"==typeof e.schema&&"anyOf"in e.schema){const r=(e.schema.anyOf||[]).map((t,r)=>{const n=(0,Oe.t)(e.instance,t);let i=`variant-${r}`;if(t&&"object"==typeof t&&"properties"in t&&t.properties&&"object"==typeof t.properties&&"$$type"in t.properties){const e=t.properties.$$type;e&&"object"==typeof e&&"const"in e&&"string"==typeof e.const&&(i=e.const)}return{discriminator:i,errors:n.errors.map(je)}});t.variants=r}return t}function Pe(e,t=""){const r=[];for(const n of e){const e=n.path.length>0?n.path.join("."):"root";if(r.push(`${t}Error at ${e}: ${n.message}`),n.variants&&n.variants.length>0){r.push(`${t} Tried ${n.variants.length} variant(s):`);for(const e of n.variants)if(r.push(`${t} - ${e.discriminator}:`),0===e.errors.length)r.push(`${t} (no errors - this variant matched!)`);else for(const n of e.errors){const e=n.path.length>0?n.path.join("."):"root";r.push(`${t} ${e}: ${n.message}`),n.variants&&n.variants.length>0&&r.push(Pe([n],`${t} `))}}}return r.join("\n")}const Ee=i.z.object({$$type:i.z.string(),value:i.z.any(),disabled:i.z.boolean().optional()}),Se=e=>Ee.safeParse(e).success,Ze=e=>ke(e)?null:Array.isArray(e)?e.map(Ze).filter(e=>!ke(e)):"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Ze(t)]).filter(([,e])=>!ke(e))):e,ke=e=>e&&Se(e)?ke(e.value):Te(e)||Ue(e)||_e(e),Te=e=>null==e||""===e,Ue=e=>Array.isArray(e)&&e.every(ke),_e=e=>"object"==typeof e&&Ue(Object.values(e));function Me(e,t){let r={};return Array.isArray(e)||(r=structuredClone(e)),Object.entries(t).forEach(([e,t])=>{null==t?delete r[e]:r[e]=t}),r}function Ce(e,t){if(!e?.terms.length)return{isMet:!0};const{relation:r,terms:n}=e,i=function(e){switch(e){case"or":return"some";case"and":return"every";default:throw new Error(`Relation not supported ${e}`)}}(r),a=[];return{isMet:n[i](e=>{const r=Ie(e)?Ce(e,t).isMet:Ve(e,Re(e.path,t,e.nestedPath)?.value);return r||a.push(e),r}),failingDependencies:a}}function Ve(e,t){const{value:r,operator:n}=e;switch(n){case"eq":case"ne":return t===r==("eq"===n);case"gt":case"lte":return!(!qe(t)||!qe(r))&&Number(t)>Number(r)==("gt"===n);case"lt":case"gte":return!(!qe(t)||!qe(r))&&Number(t)Se(e)?e.value:e):t).includes(r);case"exists":case"not_exist":return"exists"===n==(!!t||0===t||!1===t);default:return!0}}function qe(e){return"number"==typeof e&&!isNaN(e)}function Re(e,t,r=[]){const n=e.reduce((t,r,n)=>{const i=t?.[r];return n!==e.length-1&&Se(i)?i.value??null:i},t);return r?.length?{$$type:"unknown",value:r.reduce((e,t)=>e?.[t],n?.value)}:n}function Ie(e){return"terms"in e}const Ne=new Set(["span","b","strong","i","em","u","a","del","sup","sub","s"]);function De(){return`e-${Date.now().toString(36)}-${Math.random().toString(36).substring(2,9)}`}function Le(e){const t=[];for(const r of Array.from(e.children)){const e=r.tagName.toLowerCase();if(!Ne.has(e)){t.push(...Le(r));continue}let n=r.getAttribute("id");n||(n=De(),r.setAttribute("id",n));const i={id:n,type:e},a=r.textContent?.trim();a&&(i.content=a);const o=Le(r);o.length>0&&(i.children=o),t.push(i)}return t}function Je(e){if(!e)return{content:e,children:[]};const t=(new DOMParser).parseFromString(`${e}`,"text/html"),r=t.querySelector("parsererror");if(r)return console.warn("HTML parsing error, returning original content:",r.textContent),{content:e,children:[]};const n=t.body,i=Le(n);return{content:n.innerHTML,children:i}}const Ke={jsonSchemaToPropType:Ae,propTypeToJsonSchema:ze,adjustLlmPropValueSchema:be,isPropKeyConfigurable:xe,nonConfigurablePropKeys:$e,configurableKeys:function(e){return Object.keys(e).filter(xe)},validatePropValue:(e,t)=>{const r=ze(e);if(null===t)return{valid:!0,errors:[],errorMessages:[],jsonSchema:JSON.stringify(ze(e))};const n=(0,Oe.t)(t,r),i=n.errors.map(je);return{valid:n.valid,errors:n.errors,errorMessages:Pe(i),jsonSchema:JSON.stringify(r)}},enrichWithIntention:function(e,t="Describe the desired outcome"){const r=structuredClone(e);return r.properties?(r.properties.$intention={type:"string",description:t},r.required=[...r.required||[],"$intention"],r):e},removeIntention:function(e){const t=structuredClone(e);return t.properties?(delete t.properties.$intention,t.required&&(t.required=t.required.filter(e=>"$intention"!==e)),t):e}};(window.elementorV2=window.elementorV2||{}).editorProps=n}(),window.elementorV2.editorProps?.init?.();