@elyx-code/project-logic-tree 0.0.6360 → 0.0.6361

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.
@@ -1,4 +1,4 @@
1
- (function(O,ss){typeof exports=="object"&&typeof module<"u"?ss(exports):typeof define=="function"&&define.amd?define(["exports"],ss):(O=typeof globalThis<"u"?globalThis:O||self,ss(O["@elyx-code/project-logic-tree"]={}))})(this,function(O){"use strict";var gRt=Object.defineProperty;var _Rt=(O,ss,f)=>ss in O?gRt(O,ss,{enumerable:!0,configurable:!0,writable:!0,value:f}):O[ss]=f;var D=(O,ss,f)=>(_Rt(O,typeof ss!="symbol"?ss+"":ss,f),f);function ss(d,u){for(var i=0;i<u.length;i++){const a=u[i];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in d)){const p=Object.getOwnPropertyDescriptor(a,l);p&&Object.defineProperty(d,l,p.get?p:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var f=(d=>(d.DefinitionEntity="definition-entity",d.BuiltInBaseEntity="built-in-base-entity",d.Project="project",d.InstalledProject="installed-project",d.GlobalEvent="global-event",d.DataType="data-type",d.FunctionCall="function-call",d.FunctionDeclaration="function-declaration",d.ActionDescriptor="action-descriptor",d.ValueDescriptor="value-descriptor",d.ArgumentDeclaration="argument-declaration",d.InputMap="input-map",d.ReturnStatement="return-statement",d.BreakStatement="break-statement",d.ContinueStatement="continue-statement",d.ReturnDeclaration="return-declaration",d.OutputMap="output-map",d.PrimitiveEntity="primitive-entity",d.LiteralValue="literal-value",d.Property="property",d.Operation="operation",d.Condition="condition",d.VariableDeclaration="variable-declaration",d.VariableInstance="variable-instance",d.Search="search",d.Loop="loop",d.InternalCall="internal-call",d.GenericReference="generic-reference",d))(f||{}),Ce=(d=>(d.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",d.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",d.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",d.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",d.EXECUTION="BUILT_IN_EXECUTION_ENTITY",d.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",d))(Ce||{}),Dr=(d=>(d.CurrentDateAndTime="current-date-and-time",d.Unique="unique",d.Random="random",d))(Dr||{}),X=(d=>(d.EntityTemplate="entity-template",d.ActionDescriptor="action-descriptor",d.String="string",d.Number="number",d.Boolean="boolean",d.Null="null",d.Enum="enum",d.KeyValue="key-value",d.Date="date",d.UUID="uuid",d.File="file",d.Untyped="untyped",d))(X||{}),dr=(d=>(d.Addition="addition",d.Subtraction="subtraction",d.Multiplication="multiplication",d.Division="division",d.Remainder="remainder",d.Exponentiation="exponentiation",d))(dr||{}),Pe=(d=>(d.GenerateRandomInteger="generate-random-integer",d.GenerateRandomFloat="generate-random-float",d.GenerateRandomHexadecimal="generate-random-hexadecimal",d.GenerateRandomBase62="generate-random-base62",d.GenerateRandomBase64="generate-random-base64",d.GenerateRandomAlphanumeric="generate-random-alphanumeric",d.GenerateIdentifier="generate-identifier",d.GenerateRandomUUIDv4="generate-random-uuidv4",d.GenerateShortIdentifier="generate-short-identifier",d.GenerateHexadecimalToken="generate-hexadecimal-token",d))(Pe||{}),vt=(d=>(d.Join="string-join",d.Split="string-split",d.DeleteLast="string-delete-last",d.DeleteFirst="string-delete-first",d.DeleteIndex="string-delete-index",d.AddIndex="string-add-index",d.ReplaceFirst="string-replace-first",d.ReplaceLast="string-replace-last",d.ReplaceIndex="string-replace-index",d.ReplaceSingleMatch="string-replace-single-match",d.ReplaceAllMatches="string-replace-all-matches",d.GetIndex="string-get-index",d.GetFirst="string-get-first",d.GetLast="string-get-last",d.Append="string-append",d.Prepend="string-prepend",d))(vt||{}),pt=(d=>(d.Join="list-join",d.Split="list-split",d.DeleteLast="list-delete-last",d.DeleteFirst="list-delete-first",d.DeleteIndex="list-delete-index",d.AddIndex="list-add-index",d.ReplaceFirst="list-replace-first",d.ReplaceLast="list-replace-last",d.ReplaceIndex="list-replace-index",d.ReplaceSingleMatch="list-replace-single-match",d.ReplaceAllMatches="list-replace-all-matches",d.GetIndex="list-get-index",d.GetFirst="list-get-first",d.GetLast="list-get-last",d.Append="list-append",d.Prepend="list-prepend",d))(pt||{}),rr=(d=>(d.Parallel="parallel",d.Sequential="sequential",d.Wait="wait",d))(rr||{}),ir=(d=>(d.CreateNewInstance="create-new-instance",d.Validate="validate",d))(ir||{}),di=(d=>(d.HttpRequest="base-http-request",d))(di||{}),ur=(d=>(d.Equal="equal",d.NotEqual="not-equal",d.And="and",d.Or="or",d.LessThan="less-than",d.MoreThan="more-than",d.LessThanOrEqual="less-than-or-equal",d.MoreThanOrEqual="more-than-or-equal",d))(ur||{}),Br=(d=>(d.Empty="empty",d.NotEmpty="not-empty",d))(Br||{}),Ge=(d=>(d.ManualFlow="manual-flow-loop",d.Counted="counted-loop",d.List="list-loop",d.ObjectKeys="object-keys-loop",d.ObjectValues="object-values-loop",d.String="string-loop",d))(Ge||{}),oe=(d=>(d.FixedArguments="fixed-arguments",d.FixedReturns="fixed-returns",d.ReturnedError="returned-error",d.OngoingProcessExecution="ongoing-process-execution",d.DynamicArgument="dynamic-argument-types",d.DynamicReturn="dynamic-return-types",d))(oe||{}),Yr=(d=>(d.OrDataTypeGroup="or-data-type-group",d.AndDataTypeGroup="and-data-type-group",d))(Yr||{}),qn=(d=>(d.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",d))(qn||{}),ns=(d=>(d.DeletePersistedEntity="base-delete-persisted-entity",d.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",d.AbortExecution="base-abort-execution",d))(ns||{}),Ol=(d=>(d.Error="error",d.Task="task",d.Return="return",d))(Ol||{});const Zn=[f.VariableDeclaration,f.VariableInstance,f.InputMap,f.ReturnDeclaration],Or=[f.VariableDeclaration,f.VariableInstance,f.ArgumentDeclaration,f.OutputMap],S0=[...Zn,...Or,f.Property,f.ValueDescriptor],nt=[f.VariableDeclaration,f.VariableInstance],dk=[f.FunctionDeclaration,f.Condition,f.Loop,f.Operation,f.FunctionCall,f.Search,f.InternalCall,f.GlobalEvent,f.DefinitionEntity,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.VariableDeclaration,f.VariableInstance,f.LiteralValue,f.ActionDescriptor,f.ValueDescriptor,f.Property,f.DataType,f.InstalledProject,f.ArgumentDeclaration,f.InputMap,f.OutputMap,f.ReturnDeclaration],uk=[f.FunctionDeclaration,f.Property,f.ArgumentDeclaration,f.ReturnDeclaration],i1=[f.FunctionCall,f.VariableInstance,f.InputMap,f.OutputMap,f.InternalCall],ck=[...i1,f.Condition,f.Loop,f.Operation,f.Condition],Cl=[f.GlobalEvent],q0=[f.Operation,f.FunctionCall,f.Search,f.VariableDeclaration,f.VariableInstance,f.Loop],s1=[...q0,f.InternalCall],$f=[...q0,f.Condition],er=[...$f,f.InternalCall],Yt=[f.FunctionDeclaration,...Cl],Gs=[...er,f.ReturnStatement,f.BreakStatement,f.ContinueStatement],Z0=[...$f,f.ReturnStatement,f.BreakStatement,f.ContinueStatement],Ks=[...er,...Yt],n1=[...$f,...Yt],pk=[...Gs,...Yt],fk=[...Z0,...Yt],Ir=[...Yt,f.Loop],sr=[f.ReturnStatement,f.BreakStatement,f.ContinueStatement],hk=[f.DefinitionEntity,f.BuiltInBaseEntity,f.Project,f.InstalledProject,f.GlobalEvent,f.DataType,f.FunctionCall,f.FunctionDeclaration,f.ActionDescriptor,f.ValueDescriptor,f.ArgumentDeclaration,f.InputMap,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.ReturnDeclaration,f.OutputMap,f.PrimitiveEntity,f.LiteralValue,f.Property,f.Operation,f.Condition,f.VariableDeclaration,f.VariableInstance,f.Search,f.Loop,f.InternalCall],Pf=[f.DefinitionEntity,f.GlobalEvent,f.FunctionDeclaration,f.FunctionCall,f.VariableDeclaration,f.VariableInstance,f.Operation,f.Condition,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.InstalledProject,f.Loop,f.Search],a1=[f.DefinitionEntity,f.FunctionDeclaration,f.ArgumentDeclaration,f.ReturnDeclaration,f.Property,f.VariableDeclaration,f.Search,f.Project,f.InstalledProject,f.ActionDescriptor,f.ValueDescriptor],o1=[f.DefinitionEntity,f.FunctionDeclaration,f.ArgumentDeclaration,f.ReturnDeclaration,f.Property,f.VariableDeclaration,f.InstalledProject,f.ActionDescriptor,f.ValueDescriptor],Gi=[f.BuiltInBaseEntity,f.PrimitiveEntity],l1=[f.DefinitionEntity,f.FunctionDeclaration,f.ArgumentDeclaration,f.ReturnDeclaration,f.Property,f.VariableDeclaration,f.GlobalEvent,f.Search,f.Project,f.InstalledProject,f.ActionDescriptor,f.ValueDescriptor,f.InputMap,f.OutputMap,f.FunctionCall,f.Operation,f.Condition,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.VariableInstance,f.LiteralValue,f.InternalCall],yk=[f.FunctionDeclaration,f.InstalledProject,f.DataType,f.VariableDeclaration,f.VariableInstance,f.Operation,f.DefinitionEntity,f.GlobalEvent,f.FunctionDeclaration,f.FunctionDeclaration,f.Property,f.FunctionCall,f.ArgumentDeclaration,f.InputMap,f.OutputMap,f.ReturnDeclaration,f.Condition,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.Loop,f.ActionDescriptor,f.Search,f.LiteralValue,f.ValueDescriptor,f.InternalCall];var $l=(d=>(d.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",d.SearchErrorOutputDescriptor="search-error-output-descriptor-id",d))($l||{});const me={[f.PrimitiveEntity]:{[X.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[X.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[X.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[X.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[X.Enum]:{id:"9542b8b4-2642-4eee-9db9-def7963a17a0",properties:{options:{id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",dataType:{id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",defaultValue:{id:"enum-options-property-data-type-default-value-id"}}}}},[X.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[X.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[X.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[X.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[f.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}},"search-error-output-descriptor-id":{id:"search-error-output-descriptor-id",dataType:{id:"search-error-output-data-type-id"}}},[f.BuiltInBaseEntity]:{[Ce.KEY_VALUE_PARAM]:{id:Ce.KEY_VALUE_PARAM},[Ce.HTTP_ENDPOINT]:{id:Ce.HTTP_ENDPOINT,properties:{method:{id:"http-endpoint-built-in-method-property-id"},path:{id:"http-endpoint-built-in-path-property-id"},cors:{id:"http-endpoint-built-in-cors-property-id"}},methods:{handler:{id:"http-endpoint-built-in-handler-method-id",outputs:{statusCode:{id:"http-endpoint-built-in-handler-status-code-output-id"},body:{id:"http-endpoint-built-in-handler-body-output-id"},headers:{id:"http-endpoint-built-in-handler-headers-output-id"}}}}},[Ce.PERSISTED_ENTITY]:{id:Ce.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[Ce.RELATIONAL_DATABASE]:{id:Ce.RELATIONAL_DATABASE,properties:{identifier:{id:"relational-database-built-in-base-entity-identifier-property-id"},username:{id:"relational-database-built-in-base-entity-username-property-id"},password:{id:"relational-database-built-in-base-entity-password-property-id"},minSize:{id:"relational-database-built-in-base-entity-min-size-property-id"},default:{id:"relational-database-built-in-base-entity-default-property-id"},autoscaling:{id:"relational-database-built-in-base-entity-autoscaling-property-id"}}},[Ce.CRON_JOB]:{id:Ce.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}},methods:{handler:{id:"cron-job-built-in-base-entity-handler-method-id"}}}},[f.Operation]:{[vt.Join]:{id:vt.Join,inputs:{separator:{id:"join-strings-separator-input-id"},first:{id:"join-strings-first-string-input-id"},second:{id:"join-strings-second-string-input-id"},dynamicString:{id:"join-strings-dynamic-string-input-id"}},outputs:{result:{id:"join-strings-result-string-return-delaration-id"},error:{id:"join-strings-error-return-delaration-id"}}},[vt.Split]:{id:vt.Split,inputs:{stringValue:{id:"split-string-string-input-id"},indexLocation:{id:"split-string-index-input-id"}},outputs:{firstPartResult:{id:"split-string-first-part-result-string-return-delaration-id"},secondPartResult:{id:"split-string-second-part-result-string-return-delaration-id"},error:{id:"split-string-error-return-delaration-id"}}},[dr.Addition]:{id:dr.Addition,inputs:{firstSummand:{id:"number-addition-first-summand-number-input-id"},secondSummand:{id:"number-addition-second-summand-number-input-id"},dynamicSummand:{id:"number-addition-dynamic-summand-number-input-id"}},outputs:{result:{id:"number-addition-result-number-return-delaration-id",dataType:{id:"number-addition-result-number-data-type-id"}},error:{id:"number-addition-error-return-delaration-id"}}},[dr.Subtraction]:{id:dr.Subtraction,inputs:{minuend:{id:"number-subtraction-minuend-number-input-id"},subtrahend:{id:"number-subtraction-subtrahend-number-input-id"},dynamicSubtrahend:{id:"number-subtraction-dynamic-subtrahend-number-input-id"}},outputs:{result:{id:"number-subtraction-result-number-return-delaration-id",dataType:{id:"number-subtraction-result-number-data-type-id"}},error:{id:"number-subtraction-error-return-delaration-id"}}},[di.HttpRequest]:{id:di.HttpRequest,inputs:{url:{id:"http-request-url-input-id"},query:{id:"http-request-query-input-id"},method:{id:"http-request-method-input-id"},headers:{id:"http-request-headers-input-id"},body:{id:"http-request-body-string-input-id"}},outputs:{code:{id:"http-response-code-return-delaration-id"},body:{id:"http-response-body-return-delaration-id"},headers:{id:"http-response-headers-return-delaration-id"},error:{id:"http-request-error-return-delaration-id"}}},[ir.Validate]:{id:ir.Validate,inputs:{entityToMatch:{id:"validate-data-entity-to-match-input-id"},dataToValidate:{id:"validate-data-data-to-validate-input-id"}},outputs:{outputEntity:{id:"validate-data-output-entity-return-delaration-id"},error:{id:"validate-data-error-return-delaration-id"}}},[rr.Parallel]:{id:rr.Parallel,inputs:{listOfActions:{id:"parallel-execution-list-of-actions-input-id"}},outputs:{results:{id:"parallel-execution-results-output-id",dataType:{id:"parallel-execution-results-data-type-id"}},error:{id:"parallel-execution-error-output-id"}}},[Pe.GenerateRandomInteger]:{id:Pe.GenerateRandomInteger,inputs:{min:{id:"generate-random-integer-min-input-id"},max:{id:"generate-random-integer-max-input-id"}},outputs:{result:{id:"generate-random-integer-result-number-return-delaration-id",dataType:{id:"generate-random-integer-result-number-data-type-id"}},error:{id:"generate-random-integer-error-return-delaration-id"}}},[Pe.GenerateRandomFloat]:{id:Pe.GenerateRandomFloat,inputs:{},outputs:{result:{id:"generate-random-float-result-number-return-delaration-id",dataType:{id:"generate-random-float-result-number-data-type-id"}},error:{id:"generate-random-float-error-return-delaration-id"}}},[Pe.GenerateRandomHexadecimal]:{id:Pe.GenerateRandomHexadecimal,inputs:{length:{id:"generate-random-hexadecimal-length-input-id",dataType:{id:"generate-random-hexadecimal-length-data-type-id"}}},outputs:{result:{id:"generate-random-hexadecimal-result-string-return-delaration-id",dataType:{id:"generate-random-hexadecimal-result-string-data-type-id"}},error:{id:"generate-random-hexadecimal-error-return-delaration-id"}}},[Pe.GenerateRandomBase62]:{id:Pe.GenerateRandomBase62,inputs:{length:{id:"generate-random-base62-length-input-id",dataType:{id:"generate-random-base62-length-data-type-id"}}},outputs:{result:{id:"generate-random-base62-result-string-return-delaration-id",dataType:{id:"generate-random-base62-result-string-data-type-id"}},error:{id:"generate-random-base62-error-return-delaration-id"}}},[Pe.GenerateRandomBase64]:{id:Pe.GenerateRandomBase64,inputs:{length:{id:"generate-random-base64-length-input-id",dataType:{id:"generate-random-base64-length-data-type-id"}}},outputs:{result:{id:"generate-random-base64-result-string-return-delaration-id",dataType:{id:"generate-random-base64-result-string-data-type-id"}},error:{id:"generate-random-base64-error-return-delaration-id"}}},[Pe.GenerateRandomAlphanumeric]:{id:Pe.GenerateRandomAlphanumeric,inputs:{length:{id:"generate-random-alphanumeric-length-input-id",dataType:{id:"generate-random-alphanumeric-length-data-type-id"}}},outputs:{result:{id:"generate-random-alphanumeric-result-string-return-delaration-id",dataType:{id:"generate-random-alphanumeric-result-string-data-type-id"}},error:{id:"generate-random-alphanumeric-error-return-delaration-id"}}},[Pe.GenerateIdentifier]:{id:Pe.GenerateIdentifier,inputs:{length:{id:"generate-identifier-length-input-id",dataType:{id:"generate-identifier-length-data-type-id"}},alphabet:{id:"generate-identifier-alphabet-input-id",dataType:{id:"generate-identifier-alphabet-data-type-id"}}},outputs:{result:{id:"generate-identifier-result-string-return-delaration-id",dataType:{id:"generate-identifier-result-string-data-type-id"}},error:{id:"generate-identifier-error-return-delaration-id"}}},[Pe.GenerateRandomUUIDv4]:{id:Pe.GenerateRandomUUIDv4,inputs:{},outputs:{result:{id:"generate-random-uuidv4-result-string-return-delaration-id",dataType:{id:"generate-random-uuidv4-result-string-data-type-id"}},error:{id:"generate-random-uuidv4-error-return-delaration-id"}}},[Pe.GenerateShortIdentifier]:{id:Pe.GenerateShortIdentifier,inputs:{},outputs:{result:{id:"generate-short-identifier-result-string-return-delaration-id",dataType:{id:"generate-short-identifier-result-string-data-type-id"}},error:{id:"generate-short-identifier-error-return-delaration-id"}}},[Pe.GenerateHexadecimalToken]:{id:Pe.GenerateHexadecimalToken,inputs:{},outputs:{result:{id:"generate-hexadecimal-token-result-string-return-delaration-id",dataType:{id:"generate-hexadecimal-token-result-string-data-type-id"}},error:{id:"generate-hexadecimal-token-error-return-delaration-id"}}}},[f.Loop]:{[Ge.List]:{id:Ge.List,inputs:{list:{id:"iterate-over-list-loop-list-input-id"}},outputs:{results:{id:"iterate-over-list-loop-output-id"}},body:{id:"iterate-over-list-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-list-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-list-loop-current-value-input-id"}}}},[Ge.String]:{id:Ge.String,inputs:{string:{id:"iterate-over-string-loop-string-input-id"}},outputs:{results:{id:"iterate-over-string-loop-output-id"}},body:{id:"iterate-over-string-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-string-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-string-loop-current-value-input-id"}}}},[Ge.ObjectKeys]:{id:Ge.ObjectKeys,inputs:{object:{id:"iterate-over-object-keys-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-keys-loop-output-id"}},body:{id:"iterate-over-object-keys-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-keys-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-keys-loop-current-value-input-id"}}}},[Ge.ObjectValues]:{id:Ge.ObjectValues,inputs:{object:{id:"iterate-over-object-values-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-values-loop-output-id"}},body:{id:"iterate-over-object-values-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-values-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-values-loop-current-value-input-id"}}}},[Ge.ManualFlow]:{id:Ge.ManualFlow,inputs:{},outputs:{results:{id:"manual-flow-loop-output-id"}},body:{id:"manual-flow-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-manual-flow-loop-iteration-number-input-id"}}}},[Ge.Counted]:{id:Ge.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[f.Condition]:{[ur.MoreThanOrEqual]:{id:ur.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id",dataType:{id:"condition-more-than-or-equal-left-hand-data-type-id"}},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id",dataType:{id:"condition-more-than-or-equal-right-hand-data-type-id"}}}},[Br.NotEmpty]:{id:Br.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}},[Br.Empty]:{id:Br.Empty,inputs:{leftHand:{id:"condition-empty-input-id"}}}},[f.GlobalEvent]:{[qn.PROJECT_PUBLICATION_COMPLETED]:{id:qn.PROJECT_PUBLICATION_COMPLETED}}},as=me[f.PrimitiveEntity],Fe={type:f.PrimitiveEntity,id:as.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Jn={type:f.PrimitiveEntity,id:as.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},et={type:f.PrimitiveEntity,id:as.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},J0={type:f.PrimitiveEntity,id:as.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},zr={type:f.PrimitiveEntity,id:as.untyped.id,description:"Data of any type that isn't known in advance.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},d1={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:f.GenericReference,entityId:as.enum.properties.options.id,version:"1",entityType:f.Property},u1={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:f.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:f.Property},c1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:as.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Fe,asType:!1,parent:u1},p1={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:f.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:f.PrimitiveEntity},f1={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:as.enum.properties.options.id,codeName:null,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:as.enum.properties.options.dataType.defaultValue.id,type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:d1},dataType:c1,description:"Options for the enum. Each option is a text value.",parent:p1},Wn={type:f.PrimitiveEntity,id:as.enum.id,description:"A set of text options to choose from.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[f1],methods:[]},hn={type:f.PrimitiveEntity,id:as.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Hn={type:f.PrimitiveEntity,id:as.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[Fe],properties:[],methods:[]},Pl={type:f.PrimitiveEntity,id:as[X.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},h1=[Fe,Jn,et,J0,zr,Wn,hn,Hn,Pl],yn=me[f.Operation][dr.Addition],y1={type:f.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:yn.inputs.firstSummand.id,version:"1",entityType:f.ValueDescriptor},m1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-addition-first-number-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:y1},v1={type:f.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:yn.inputs.secondSummand.id,version:"1",entityType:f.ValueDescriptor},E1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:v1},T1={type:f.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:yn.outputs.result.id,version:"1",entityType:f.ValueDescriptor},b1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:yn.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:T1},A1={type:f.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:dr.Addition,version:"1",entityType:f.ActionDescriptor},W0={id:yn.inputs.firstSummand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Summand",description:"The first number to add",defaultValue:null,dataType:m1,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:A1},I1={type:f.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:dr.Addition,version:"1",entityType:f.ActionDescriptor},H0={id:yn.inputs.secondSummand.id,type:f.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Summand",defaultValue:null,dataType:E1,required:!0,parentRelationType:oe.FixedArguments,index:1,parent:I1},Y0={type:f.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:dr.Addition,version:"1",entityType:f.ActionDescriptor},z0={parentRelationType:oe.FixedReturns,id:yn.outputs.result.id,type:f.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:b1,required:!0,index:0,parent:Y0},w1={type:f.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:dr.Addition,version:"1",entityType:f.ActionDescriptor},R1={parentRelationType:oe.FixedReturns,id:yn.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:w1},g1={type:f.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:yn.inputs.dynamicSummand.id,version:"1",entityType:f.ValueDescriptor},_1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:g1},D1={parentRelationType:oe.DynamicArgument,id:yn.inputs.dynamicSummand.id,type:f.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Summand",defaultValue:null,dataType:_1,required:!0,index:2,parent:Y0},Vf={id:dr.Addition,type:f.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:dr.Addition,inputs:[W0,H0,D1],error:R1,outputs:[z0],parent:null},mn=me[f.Operation][dr.Subtraction],O1={type:f.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:mn.inputs.minuend.id,version:"1",entityType:f.ValueDescriptor},C1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:O1},$1={type:f.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:mn.inputs.subtrahend.id,version:"1",entityType:f.ValueDescriptor},P1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:$1},V1={type:f.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:mn.outputs.result.id,version:"1",entityType:f.ValueDescriptor},N1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:mn.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:V1},X0={type:f.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:dr.Subtraction,version:"1",entityType:f.ActionDescriptor},L1={id:mn.inputs.minuend.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:C1,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:X0},B1={type:f.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:dr.Subtraction,version:"1",entityType:f.ActionDescriptor},M1={id:mn.inputs.subtrahend.id,type:f.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Subtrahend",defaultValue:null,dataType:P1,required:!0,parentRelationType:oe.FixedArguments,index:1,parent:B1},U1={type:f.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:dr.Subtraction,version:"1",entityType:f.ActionDescriptor},j1={parentRelationType:oe.FixedReturns,id:mn.outputs.result.id,type:f.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:N1,required:!0,index:0,parent:U1},x1={type:f.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:dr.Subtraction,version:"1",entityType:f.ActionDescriptor},F1={parentRelationType:oe.ReturnedError,id:mn.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!1,index:1,parent:x1},G1={type:f.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:mn.inputs.dynamicSubtrahend.id,version:"1",entityType:f.ValueDescriptor},K1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:G1},k1={id:mn.inputs.dynamicSubtrahend.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:K1,required:!0,parentRelationType:oe.DynamicArgument,index:2,parent:X0},Q0={id:dr.Subtraction,type:f.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:dr.Subtraction,inputs:[L1,M1,k1],error:F1,outputs:[j1],parent:null},S1={[dr.Addition]:Vf,[dr.Subtraction]:Q0},ws=me[f.Operation][vt.Join],q1={type:f.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:ws.inputs.first.id,version:"1",entityType:f.ValueDescriptor},Z1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-first-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:q1},J1={type:f.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:ws.inputs.second.id,version:"1",entityType:f.ValueDescriptor},W1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-second-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:J1},H1={type:f.GenericReference,id:"join-strings-result-string-return-delaration",entityId:ws.outputs.result.id,version:"1",entityType:f.ValueDescriptor},Y1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-result-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:H1},z1={type:f.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Nf={id:ws.inputs.first.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Text",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",defaultValue:null,dataType:Z1,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:z1},X1={type:f.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:ws.inputs.first.id,version:"1",entityType:f.ValueDescriptor},Q1={type:f.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:ws.inputs.separator.id,version:"1",entityType:f.ValueDescriptor},eg={type:f.LiteralValue,standaloneParent:null,id:"join-strings-separator-string-data-type-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Q1},tg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-separator-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:X1},rg={type:f.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},ig={id:ws.inputs.separator.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:eg,dataType:tg,parentRelationType:oe.FixedArguments,required:!1,index:0,parent:rg},sg={type:f.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Lf={id:ws.inputs.second.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Text",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",defaultValue:null,dataType:W1,parentRelationType:oe.FixedArguments,required:!0,index:2,parent:sg},ng={type:f.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Iu={parentRelationType:oe.FixedReturns,id:ws.outputs.result.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:Y1,required:!0,index:0,parent:ng},ag={type:f.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},og={parentRelationType:oe.FixedReturns,id:ws.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ag},lg={type:f.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:ws.inputs.dynamicString.id,version:"1",entityType:f.ValueDescriptor},dg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:lg},ug={type:f.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},cg={id:ws.inputs.dynamicString.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:dg,parentRelationType:oe.DynamicArgument,required:!0,index:3,parent:ug},wu={id:vt.Join,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:vt.Join,description:"Join text values together, to form a single resulting text value.",inputs:[ig,Nf,Lf,cg],outputs:[Iu],error:og,parent:null},Yn=me[f.Operation][vt.Split],pg={type:f.GenericReference,id:"split-string-string-argument-declaration",entityId:Yn.inputs.stringValue.id,version:"1",entityType:f.ValueDescriptor},fg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:pg},hg={type:f.GenericReference,id:"split-string-index-argument-declaration",entityId:Yn.inputs.indexLocation.id,version:"1",entityType:f.ValueDescriptor},yg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-index-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:hg},mg={type:f.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:Yn.outputs.firstPartResult.id,version:"1",entityType:f.ValueDescriptor},vg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:mg},Eg={type:f.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:Yn.outputs.secondPartResult.id,version:"1",entityType:f.ValueDescriptor},Tg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:Eg},bg={type:f.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Ag={id:Yn.inputs.stringValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:fg,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:bg},Ig={type:f.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},wg={id:Yn.inputs.indexLocation.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Index location",description:"The index location where the text will be split into two. The text at this index will be the beginning of the second text.",defaultValue:null,dataType:yg,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:Ig},Rg={type:f.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},mk={parentRelationType:oe.FixedReturns,id:Yn.outputs.secondPartResult.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:Tg,required:!0,index:1,parent:Rg},gg={type:f.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},_g={parentRelationType:oe.FixedReturns,id:Yn.outputs.firstPartResult.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:vg,required:!0,index:0,parent:gg},Dg={type:f.GenericReference,id:"split-string-operation-error-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Og={parentRelationType:oe.FixedReturns,id:Yn.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Dg},ev={id:vt.Split,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:vt.Split,description:"Split a text into two, at the given index location.",inputs:[Ag,wg],outputs:[_g],error:Og,parent:null},Cg={[vt.Join]:wu,[vt.Split]:ev};var $g=(d=>(d.FirstInputList="join-list-first-list-argument-declaration",d.SecondInputList="join-list-second-list-argument-declaration",d))($g||{}),Pg=(d=>(d.ResultList="join-list-result-list-return-delaration",d.Error="join-list-error-return-delaration",d))(Pg||{});const Vg={type:f.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:f.ValueDescriptor},Ng={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-list-first-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Vg},Lg={type:f.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:f.ValueDescriptor},Bg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-list-second-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Lg},Mg={type:f.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:f.ValueDescriptor},Ug={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-list-result-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:Mg},jg={type:f.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:pt.Join,version:"1",entityType:f.ActionDescriptor},xg={id:"join-list-first-list-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"First value",description:"The first list to join to the second one. Its values will be at the beginning of the resulting list.",defaultValue:null,dataType:Ng,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:jg},Fg={type:f.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:pt.Join,version:"1",entityType:f.ActionDescriptor},Gg={id:"join-list-second-list-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Second value",description:"The second list to join to the first one. Its values will be at the end of the resulting list.",defaultValue:null,dataType:Bg,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:Fg},Kg={type:f.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:pt.Join,version:"1",entityType:f.ActionDescriptor},kg={parentRelationType:oe.FixedReturns,id:"join-list-result-list-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Ug,required:!0,index:0,parent:Kg},Sg={type:f.GenericReference,id:"join-list-operation-error-parent-ref",entityId:pt.Join,version:"1",entityType:f.ActionDescriptor},qg={parentRelationType:oe.FixedReturns,id:"join-list-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Sg},tv={id:pt.Join,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:pt.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[xg,Gg],error:qg,outputs:[kg],parent:null};var Zg=(d=>(d.InputList="list-to-split-argument-declaration",d.SplitIndex="split-list-index-argument-declaration",d))(Zg||{}),Jg=(d=>(d.FirstOutputList="split-list-first-output-list-return-delaration",d.SecondOutputList="split-list-second-output-list-return-delaration",d.Error="split-list-error-return-delaration",d))(Jg||{});const Wg={type:f.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:f.ValueDescriptor},Hg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:Wg},Yg={type:f.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:f.ValueDescriptor},zg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:Yg},rv={type:f.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:f.ValueDescriptor},Xg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:rv},Qg={type:f.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},e_={id:"list-to-split-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Hg,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:Qg},t_={type:f.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},r_={id:"split-list-index-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Split location",description:"The index at which to split the list. The value at this index will be the first value of the second list.",defaultValue:null,dataType:zg,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:t_},i_={type:f.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},s_={parentRelationType:oe.FixedReturns,id:"split-list-first-output-list-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:Xg,required:!0,index:0,parent:i_},n_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:rv},a_={type:f.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},o_={parentRelationType:oe.FixedReturns,id:"split-list-second-output-list-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:n_,required:!0,index:0,parent:a_},l_={type:f.GenericReference,id:"split-list-operation-error-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},d_={parentRelationType:oe.FixedReturns,id:"split-list-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:l_},iv={id:pt.Split,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:pt.Split,description:"Splits a given list at the given index, and returns two lists, one with the values up to the index, and the other with the values after the index",inputs:[e_,r_],outputs:[s_,o_],error:d_,parent:null};var u_=(d=>(d.InputList="get-last-in-list-input-list-argument-declaration",d))(u_||{}),c_=(d=>(d.OutputElement="get-last-in-list-output-element-return-delaration",d.Error="get-last-in-list-error-return-delaration",d))(c_||{});const p_={type:f.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:f.ValueDescriptor},f_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:p_},h_={type:f.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:f.ValueDescriptor},y_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:h_},m_={type:f.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:pt.GetLast,version:"1",entityType:f.ActionDescriptor},v_={id:"get-last-in-list-input-list-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:f_,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:m_},E_={type:f.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:pt.GetLast,version:"1",entityType:f.ActionDescriptor},T_={parentRelationType:oe.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:y_,required:!0,index:0,parent:E_},b_={type:f.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:pt.GetLast,version:"1",entityType:f.ActionDescriptor},A_={parentRelationType:oe.FixedReturns,id:"get-last-in-list-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:b_},sv={id:pt.GetLast,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:pt.GetLast,description:"Outputs the last element of a given list.",inputs:[v_],outputs:[T_],error:A_,parent:null};var I_=(d=>(d.List="append-to-list-lsit-argument-declaration",d.ElementToAppend="append-to-list-element-to-append-argument-declaration",d))(I_||{}),w_=(d=>(d.ResultList="append-to-list-result-list-return-delaration",d.Error="append-to-list-error-return-delaration",d))(w_||{});const R_={type:f.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:f.ValueDescriptor},g_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"append-to-list-lsit-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:R_},__={type:f.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:f.ValueDescriptor},D_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"append-to-list-second-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:__},O_={type:f.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:f.ValueDescriptor},C_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"append-to-list-result-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:O_},$_={type:f.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:pt.Append,version:"1",entityType:f.ActionDescriptor},nv={id:"append-to-list-lsit-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:g_,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:$_},P_={type:f.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:pt.Append,version:"1",entityType:f.ActionDescriptor},av={id:"append-to-list-element-to-append-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:D_,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:P_},V_={type:f.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:pt.Append,version:"1",entityType:f.ActionDescriptor},N_={parentRelationType:oe.FixedReturns,id:"append-to-list-result-list-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:C_,required:!0,index:0,parent:V_},L_={type:f.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:pt.Append,version:"1",entityType:f.ActionDescriptor},B_={parentRelationType:oe.FixedReturns,id:"append-to-list-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:L_},Bf={id:pt.Append,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:pt.Append,description:"Adds a given element to the end of a list value.",inputs:[nv,av],error:B_,outputs:[N_],parent:null},M_={[pt.Join]:tv,[pt.Split]:iv,[pt.GetLast]:sv,[pt.Append]:Bf},Vl=me[f.Operation][rr.Parallel],U_={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:f.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:f.ActionDescriptor},j_={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:U_,parentRelationType:oe.DynamicArgument},x_={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:f.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:f.ActionDescriptor},F_={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:x_,parentRelationType:oe.DynamicArgument},G_={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:f.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:f.DataType},K_={id:"parallel-execution-list-of-functions-blueprint-id",type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[F_],outputs:[j_],error:null,parent:G_},k_={type:f.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Vl.inputs.listOfActions.id,version:"1",entityType:f.ValueDescriptor},S_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:K_,asType:!1,isList:!0,parent:k_},q_={type:f.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Vl.outputs.results.id,version:"1",entityType:f.ValueDescriptor},Z_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Vl.outputs.results.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!0,parent:q_},J_={type:f.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:rr.Parallel,version:"1",entityType:f.ActionDescriptor},ov={id:Vl.inputs.listOfActions.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:S_,defaultValue:null,required:!0,index:0,parent:J_,parentRelationType:oe.FixedArguments},W_={type:f.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:rr.Parallel,version:"1",entityType:f.ActionDescriptor},lv={id:Vl.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",dataType:Z_,defaultValue:null,required:!0,index:0,parent:W_,parentRelationType:oe.FixedReturns},H_={type:f.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:rr.Parallel,version:"1",entityType:f.ActionDescriptor},Y_={id:Vl.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:H_,parentRelationType:oe.ReturnedError},ks={id:rr.Parallel,type:f.ActionDescriptor,description:"Programmatically execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:rr.Parallel,inputs:[ov],outputs:[lv],error:Y_,parent:null};var z_=(d=>(d.MillisecondsNumber="wait-milliseconds-number-argument-declaration",d))(z_||{}),X_=(d=>(d.Error="wait-operation-error-return-delaration",d))(X_||{});const Q_={type:f.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:f.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},eD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:Q_},tD={type:f.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:f.ActionDescriptor,entityId:rr.Wait},vo={id:"wait-milliseconds-number-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:eD,required:!0,index:0,parent:tD,parentRelationType:oe.FixedArguments},rD={type:f.GenericReference,id:"wait-operation-error-parent-ref",entityId:rr.Wait,version:"1",entityType:f.ActionDescriptor},iD={id:"wait-operation-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:rD,parentRelationType:oe.ReturnedError},gi={id:rr.Wait,type:f.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:rr.Wait,inputs:[vo],outputs:[],error:iD,parent:null};var sD=(d=>(d.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",d))(sD||{}),nD=(d=>(d.ListOfExecutionResults="sequential-execution-result-return-delaration",d.Error="sequential-execution-error-return-delaration",d))(nD||{});const aD={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:oe.DynamicArgument},oD={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:oe.DynamicArgument},lD={id:"sequential-execution-list-of-functions-blueprint-id",type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[oD],outputs:[aD],error:null,parent:null},dD={type:f.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:f.ValueDescriptor},uD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:lD,asType:!1,isList:!0,parent:dD},cD={type:f.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:f.ValueDescriptor},pD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!0,parent:cD},fD={type:f.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:rr.Sequential,version:"1",entityType:f.ActionDescriptor},dv={id:"sequential-execution-list-of-functions-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:uD,required:!0,index:0,parent:fD,parentRelationType:oe.FixedArguments},hD={type:f.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:rr.Sequential,version:"1",entityType:f.ActionDescriptor},uv={id:"sequential-execution-result-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",defaultValue:null,dataType:pD,required:!0,index:0,parent:hD,parentRelationType:oe.FixedReturns},yD={type:f.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:rr.Sequential,version:"1",entityType:f.ActionDescriptor},mD={id:"sequential-execution-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:yD,parentRelationType:oe.ReturnedError},zn={id:rr.Sequential,type:f.ActionDescriptor,description:"Execute a list of actions one after the other",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:rr.Sequential,inputs:[dv],outputs:[uv],error:mD,parent:null},vD={[rr.Parallel]:ks,[rr.Wait]:gi,[rr.Sequential]:zn};var ED=(d=>(d.EntityToInstanciate="entity-to-instanciate-argument-declaration",d.NewEntityData="new-entity-data-argument-declaration",d))(ED||{}),TD=(d=>(d.Error="create-new-instance-error-return-delaration",d))(TD||{});const bD={type:f.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:ir.CreateNewInstance,version:"1",entityType:f.ActionDescriptor},AD={type:f.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:f.ValueDescriptor},ID={like:!1,staticEntities:!1,interactiveEntities:null,actionEntities:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:AD},wD={id:"new-entity-data-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:ID,required:!0,defaultValue:null,parentRelationType:oe.FixedArguments,index:1,parent:bD},RD={type:f.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:f.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},gD={like:!1,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:RD},_D={type:f.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:f.ActionDescriptor,entityId:ir.CreateNewInstance},DD={id:"entity-to-instanciate-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:gD,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:_D},OD={type:f.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:ir.CreateNewInstance,version:"1",entityType:f.ActionDescriptor},CD={parentRelationType:oe.FixedReturns,id:"create-new-instance-output-entity-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:OD,required:!0,index:0},$D={type:f.GenericReference,id:"create-new-instance-error-parent-ref",entityId:ir.CreateNewInstance,version:"1",entityType:f.ActionDescriptor},PD={parentRelationType:oe.FixedReturns,id:"create-new-instance-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:$D},Eo={id:ir.CreateNewInstance,type:f.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:ir.CreateNewInstance,inputs:[DD,wD],outputs:[CD],error:PD,parent:null},Nl=me[f.Operation][ir.Validate],VD={type:f.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:f.ValueDescriptor,entityId:Nl.inputs.dataToValidate.id},ND={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:VD},LD={type:f.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:f.ActionDescriptor,entityId:ir.Validate},BD={id:Nl.inputs.dataToValidate.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:ND,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:LD},MD={type:f.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:f.ValueDescriptor,entityId:Nl.inputs.entityToMatch.id},UD={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,staticEntities:null,interactiveEntities:!0,actionEntities:!1,parent:MD},jD={type:f.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:f.ActionDescriptor,entityId:ir.Validate},xD={id:Nl.inputs.entityToMatch.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Entity to match",description:"The entity to match the data against",dataType:UD,defaultValue:null,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:jD},FD={type:f.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:ir.Validate,version:"1",entityType:f.ActionDescriptor},GD={id:Nl.outputs.outputEntity.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,codeName:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:FD,required:!0,index:0,parentRelationType:oe.FixedReturns},KD={type:f.GenericReference,id:"wait-operation-error-parent-ref",entityId:ir.Validate,version:"1",entityType:f.ActionDescriptor},kD={id:Nl.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:KD,parentRelationType:oe.ReturnedError},To={id:ir.Validate,type:f.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:ir.Validate,inputs:[xD,BD],outputs:[GD],error:kD,parent:null},SD={[ir.CreateNewInstance]:Eo,[ir.Validate]:To},Mr=me[f.Operation]["base-http-request"],qD={type:f.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:f.ValueDescriptor,entityId:Mr.inputs.url.id},ZD={id:"http-request-url-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:X.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:qD,autogeneration:null},JD={type:f.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Mr.inputs.url.id,version:"1",entityType:f.ValueDescriptor},WD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:JD},HD={type:f.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Mr.inputs.query.id,version:"1",entityType:f.ValueDescriptor},YD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:HD},zD={type:f.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:f.ValueDescriptor,entityId:Mr.inputs.method.id},XD={id:"http-request-method-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:X.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:zD,autogeneration:null},QD={type:f.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Mr.inputs.method.id,version:"1",entityType:f.ValueDescriptor},eO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wn,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:QD},tO={type:f.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Mr.inputs.headers.id,version:"1",entityType:f.ValueDescriptor},rO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,asType:!1,isList:!1,parent:tO},iO={type:f.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Mr.inputs.body.id,version:"1",entityType:f.ValueDescriptor},sO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,asType:!1,isList:!1,parent:iO},nO={type:f.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.code.id},aO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:nO},oO={type:f.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.headers.id},lO={type:f.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.headers.id},dO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,isList:!1,asType:!1,parent:lO},uO={type:f.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.body.id},cO={type:f.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.body.id},pO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,isList:!1,asType:!1,parent:cO},fO={type:f.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Mf={id:Mr.inputs.method.id,type:f.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Method",defaultValue:XD,dataType:eO,required:!1,index:0,parentRelationType:oe.FixedArguments,parent:fO},hO={type:f.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Uf={id:Mr.inputs.url.id,type:f.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"URL",dataType:WD,defaultValue:ZD,required:!1,index:1,parentRelationType:oe.FixedArguments,parent:hO},yO={type:f.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},cv={id:Mr.inputs.query.id,type:f.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Query Params",defaultValue:null,dataType:YD,required:!1,index:2,parentRelationType:oe.FixedArguments,parent:yO},mO={type:f.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},jf={id:Mr.inputs.headers.id,type:f.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Headers",defaultValue:null,dataType:rO,required:!1,index:3,parent:mO,parentRelationType:oe.FixedArguments},vO={type:f.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},xf={id:Mr.inputs.body.id,type:f.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Body",dataType:sO,defaultValue:null,required:!1,index:4,parentRelationType:oe.FixedArguments,parent:vO},EO={type:f.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Ff={id:Mr.outputs.code.id,type:f.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Code",defaultValue:null,dataType:aO,required:!0,index:0,parentRelationType:oe.FixedReturns,parent:EO},TO={type:f.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Gf={parentRelationType:oe.FixedReturns,id:Mr.outputs.headers.id,type:f.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:X.KeyValue,parent:oO,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:dO,required:!0,index:1,parent:TO},bO={type:f.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Kf={id:Mr.outputs.body.id,type:f.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Body",parentRelationType:oe.FixedReturns,dataType:pO,defaultValue:{id:"http-response-body-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:X.KeyValue,parent:uO,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:bO},AO={type:f.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},IO={type:f.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.error.id},wO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,isList:!1,asType:!1,parent:IO},pv={parentRelationType:oe.ReturnedError,id:Mr.outputs.error.id,type:f.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:wO,required:!1,index:0,parent:AO},Ru={type:f.ActionDescriptor,id:di.HttpRequest,codeName:null,name:di.HttpRequest,description:"Make an HTTP request, out to the internet, to a given URL with the specified method, query parameters, headers, and body.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Mf,Uf,cv,jf,xf],outputs:[Ff,Gf,Kf],error:pv,parent:null},RO={[di.HttpRequest]:Ru},wa=me[f.Operation][Pe.GenerateRandomInteger],gO={type:f.GenericReference,id:"number-addition-operation-result-number-data-type-parent-ref",entityId:wa.outputs.result.id,version:"1",entityType:f.ValueDescriptor},_O={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:wa.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:gO},DO={type:f.GenericReference,id:"generate-random-integer-operation-result-number-output-parent-ref",entityId:Pe.GenerateRandomInteger,version:"1",entityType:f.ActionDescriptor},OO={parentRelationType:oe.FixedReturns,id:wa.outputs.result.id,type:f.ValueDescriptor,description:"The generated random integer",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:_O,required:!0,index:0,parent:DO},CO={type:f.GenericReference,id:"generate-random-integer-operation-max-value-input-parent-ref",entityId:Pe.GenerateRandomInteger,version:"1",entityType:f.ActionDescriptor},$O={type:f.GenericReference,id:"generate-random-integer-operation-max-value-input-type-parent-ref",entityId:wa.inputs.max.id,version:"1",entityType:f.ValueDescriptor},PO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"generate-random-integer-operation-max-value-input-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:$O},VO={parentRelationType:oe.FixedArguments,id:wa.inputs.max.id,type:f.ValueDescriptor,description:"Maximum value of the random integer",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Maximum Value",defaultValue:null,dataType:PO,required:!0,index:1,parent:CO},NO={type:f.GenericReference,id:"generate-random-integer-operation-min-value-input-parent-ref",entityId:Pe.GenerateRandomInteger,version:"1",entityType:f.ActionDescriptor},LO={type:f.GenericReference,id:"generate-random-integer-operation-min-value-input-type-parent-ref",entityId:wa.inputs.min.id,version:"1",entityType:f.ValueDescriptor},BO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"generate-random-integer-operation-min-value-input-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:LO},MO={parentRelationType:oe.FixedArguments,id:wa.inputs.min.id,type:f.ValueDescriptor,description:"Minimum value of the random integer",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Minimum Value",defaultValue:null,dataType:BO,required:!0,index:0,parent:NO},UO={type:f.GenericReference,id:"generate-random-integer-operation-error-parent-ref",entityId:Pe.GenerateRandomInteger,version:"1",entityType:f.ActionDescriptor},jO={parentRelationType:oe.ReturnedError,id:wa.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:UO},fv={id:Pe.GenerateRandomInteger,type:f.ActionDescriptor,description:"Generate a random integer",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomInteger,inputs:[MO,VO],error:jO,outputs:[OO],parent:null},kf=me[f.Operation][Pe.GenerateRandomFloat],xO={type:f.GenericReference,id:"generate-random-float-operation-result-number-data-type-parent-ref",entityId:kf.outputs.result.id,version:"1",entityType:f.ValueDescriptor},FO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:kf.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:xO},GO={type:f.GenericReference,id:"generate-random-float-operation-result-number-output-parent-ref",entityId:Pe.GenerateRandomFloat,version:"1",entityType:f.ActionDescriptor},KO={parentRelationType:oe.FixedReturns,id:kf.outputs.result.id,type:f.ValueDescriptor,description:"The generated random float",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:FO,required:!0,index:0,parent:GO},kO={type:f.GenericReference,id:"generate-random-float-operation-error-parent-ref",entityId:Pe.GenerateRandomFloat,version:"1",entityType:f.ActionDescriptor},SO={parentRelationType:oe.ReturnedError,id:kf.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:kO},hv={id:Pe.GenerateRandomFloat,type:f.ActionDescriptor,description:"Generate a random floating-point number between 0 (inclusive) and 1 (exclusive)",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomFloat,inputs:[],error:SO,outputs:[KO],parent:null},bo=me[f.Operation][Pe.GenerateRandomHexadecimal],qO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-length-input-parent-ref",entityId:Pe.GenerateRandomHexadecimal,version:"1",entityType:f.ActionDescriptor},ZO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-length-input-type-parent-ref",entityId:bo.inputs.length.id,version:"1",entityType:f.ValueDescriptor},JO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:bo.inputs.length.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:ZO},WO={parentRelationType:oe.FixedArguments,id:bo.inputs.length.id,type:f.ValueDescriptor,description:"Length in bytes of the random hexadecimal string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:JO,required:!0,index:0,parent:qO},HO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-result-string-data-type-parent-ref",entityId:bo.outputs.result.id,version:"1",entityType:f.ValueDescriptor},YO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:bo.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:HO},zO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomHexadecimal,version:"1",entityType:f.ActionDescriptor},XO={parentRelationType:oe.FixedReturns,id:bo.outputs.result.id,type:f.ValueDescriptor,description:"The generated random hexadecimal string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:YO,required:!0,index:0,parent:zO},QO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-error-parent-ref",entityId:Pe.GenerateRandomHexadecimal,version:"1",entityType:f.ActionDescriptor},eC={parentRelationType:oe.ReturnedError,id:bo.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:QO},yv={id:Pe.GenerateRandomHexadecimal,type:f.ActionDescriptor,description:"Generate a random hexadecimal string of specified byte length",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomHexadecimal,inputs:[WO],error:eC,outputs:[XO],parent:null},Ao=me[f.Operation][Pe.GenerateRandomBase62],tC={type:f.GenericReference,id:"generate-random-base62-operation-length-input-parent-ref",entityId:Pe.GenerateRandomBase62,version:"1",entityType:f.ActionDescriptor},rC={type:f.GenericReference,id:"generate-random-base62-operation-length-input-type-parent-ref",entityId:Ao.inputs.length.id,version:"1",entityType:f.ValueDescriptor},iC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Ao.inputs.length.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:rC},sC={parentRelationType:oe.FixedArguments,id:Ao.inputs.length.id,type:f.ValueDescriptor,description:"Length of the random Base62 string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:iC,required:!0,index:0,parent:tC},nC={type:f.GenericReference,id:"generate-random-base62-operation-result-string-data-type-parent-ref",entityId:Ao.outputs.result.id,version:"1",entityType:f.ValueDescriptor},aC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Ao.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:nC},oC={type:f.GenericReference,id:"generate-random-base62-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomBase62,version:"1",entityType:f.ActionDescriptor},lC={parentRelationType:oe.FixedReturns,id:Ao.outputs.result.id,type:f.ValueDescriptor,description:"The generated random Base62 string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:aC,required:!0,index:0,parent:oC},dC={type:f.GenericReference,id:"generate-random-base62-operation-error-parent-ref",entityId:Pe.GenerateRandomBase62,version:"1",entityType:f.ActionDescriptor},uC={parentRelationType:oe.ReturnedError,id:Ao.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:dC},mv={id:Pe.GenerateRandomBase62,type:f.ActionDescriptor,description:"Generate a random Base62 string of specified length",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomBase62,inputs:[sC],error:uC,outputs:[lC],parent:null},Io=me[f.Operation][Pe.GenerateRandomBase64],cC={type:f.GenericReference,id:"generate-random-base64-operation-length-input-parent-ref",entityId:Pe.GenerateRandomBase64,version:"1",entityType:f.ActionDescriptor},pC={type:f.GenericReference,id:"generate-random-base64-operation-length-input-type-parent-ref",entityId:Io.inputs.length.id,version:"1",entityType:f.ValueDescriptor},fC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Io.inputs.length.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:pC},hC={parentRelationType:oe.FixedArguments,id:Io.inputs.length.id,type:f.ValueDescriptor,description:"Length in bytes of the random Base64 string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:fC,required:!0,index:0,parent:cC},yC={type:f.GenericReference,id:"generate-random-base64-operation-result-string-data-type-parent-ref",entityId:Io.outputs.result.id,version:"1",entityType:f.ValueDescriptor},mC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Io.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:yC},vC={type:f.GenericReference,id:"generate-random-base64-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomBase64,version:"1",entityType:f.ActionDescriptor},EC={parentRelationType:oe.FixedReturns,id:Io.outputs.result.id,type:f.ValueDescriptor,description:"The generated random Base64 string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:mC,required:!0,index:0,parent:vC},TC={type:f.GenericReference,id:"generate-random-base64-operation-error-parent-ref",entityId:Pe.GenerateRandomBase64,version:"1",entityType:f.ActionDescriptor},bC={parentRelationType:oe.ReturnedError,id:Io.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:TC},vv={id:Pe.GenerateRandomBase64,type:f.ActionDescriptor,description:"Generate a random Base64 string of specified byte length",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomBase64,inputs:[hC],error:bC,outputs:[EC],parent:null},wo=me[f.Operation][Pe.GenerateRandomAlphanumeric],AC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-length-input-parent-ref",entityId:Pe.GenerateRandomAlphanumeric,version:"1",entityType:f.ActionDescriptor},IC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-length-input-type-parent-ref",entityId:wo.inputs.length.id,version:"1",entityType:f.ValueDescriptor},wC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:wo.inputs.length.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:IC},RC={parentRelationType:oe.FixedArguments,id:wo.inputs.length.id,type:f.ValueDescriptor,description:"Length of the random alphanumeric string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:wC,required:!0,index:0,parent:AC},gC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-result-string-data-type-parent-ref",entityId:wo.outputs.result.id,version:"1",entityType:f.ValueDescriptor},_C={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:wo.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:gC},DC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomAlphanumeric,version:"1",entityType:f.ActionDescriptor},OC={parentRelationType:oe.FixedReturns,id:wo.outputs.result.id,type:f.ValueDescriptor,description:"The generated random alphanumeric string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:_C,required:!0,index:0,parent:DC},CC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-error-parent-ref",entityId:Pe.GenerateRandomAlphanumeric,version:"1",entityType:f.ActionDescriptor},$C={parentRelationType:oe.ReturnedError,id:wo.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:CC},Ev={id:Pe.GenerateRandomAlphanumeric,type:f.ActionDescriptor,description:"Generate a random alphanumeric string of specified length",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomAlphanumeric,inputs:[RC],error:$C,outputs:[OC],parent:null},Ra=me[f.Operation][Pe.GenerateIdentifier],PC={type:f.GenericReference,id:"generate-identifier-operation-length-input-parent-ref",entityId:Pe.GenerateIdentifier,version:"1",entityType:f.ActionDescriptor},VC={type:f.GenericReference,id:"generate-identifier-operation-length-input-type-parent-ref",entityId:Ra.inputs.length.id,version:"1",entityType:f.ValueDescriptor},NC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"generate-identifier-operation-length-input-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:VC},LC={parentRelationType:oe.FixedArguments,id:Ra.inputs.length.id,type:f.ValueDescriptor,description:"Length of the identifier to generate",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:NC,required:!0,index:0,parent:PC},BC={type:f.GenericReference,id:"generate-identifier-operation-alphabet-input-parent-ref",entityId:Pe.GenerateIdentifier,version:"1",entityType:f.ActionDescriptor},MC={type:f.GenericReference,id:"generate-identifier-operation-alphabet-input-type-parent-ref",entityId:Ra.inputs.alphabet.id,version:"1",entityType:f.ValueDescriptor},UC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"generate-identifier-operation-alphabet-input-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:MC},jC={parentRelationType:oe.FixedArguments,id:Ra.inputs.alphabet.id,type:f.ValueDescriptor,description:"Optional alphabet for the identifier characters",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Alphabet",defaultValue:null,dataType:UC,required:!1,index:1,parent:BC},xC={type:f.GenericReference,id:"generate-identifier-operation-result-string-output-parent-ref",entityId:Pe.GenerateIdentifier,version:"1",entityType:f.ActionDescriptor},FC={type:f.GenericReference,id:"generate-identifier-operation-result-string-data-type-parent-ref",entityId:Ra.outputs.result.id,version:"1",entityType:f.ValueDescriptor},GC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Ra.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:FC},KC={parentRelationType:oe.FixedReturns,id:Ra.outputs.result.id,type:f.ValueDescriptor,description:"The generated identifier string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:GC,required:!0,index:0,parent:xC},kC={type:f.GenericReference,id:"generate-identifier-operation-error-parent-ref",entityId:Pe.GenerateIdentifier,version:"1",entityType:f.ActionDescriptor},SC={parentRelationType:oe.ReturnedError,id:Ra.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:kC},Tv={id:Pe.GenerateIdentifier,type:f.ActionDescriptor,description:"Generate a custom identifier string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateIdentifier,inputs:[LC,jC],error:SC,outputs:[KC],parent:null},Sf=me[f.Operation][Pe.GenerateRandomUUIDv4],qC={type:f.GenericReference,id:"generate-random-uuidv4-operation-result-string-data-type-parent-ref",entityId:Sf.outputs.result.id,version:"1",entityType:f.ValueDescriptor},ZC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Sf.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:qC},JC={type:f.GenericReference,id:"generate-random-uuidv4-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomUUIDv4,version:"1",entityType:f.ActionDescriptor},WC={parentRelationType:oe.FixedReturns,id:Sf.outputs.result.id,type:f.ValueDescriptor,description:"The generated RFC-4122 version 4 UUID string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:ZC,required:!0,index:0,parent:JC},HC={type:f.GenericReference,id:"generate-random-uuidv4-operation-error-parent-ref",entityId:Pe.GenerateRandomUUIDv4,version:"1",entityType:f.ActionDescriptor},YC={parentRelationType:oe.ReturnedError,id:Sf.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:HC},bv={id:Pe.GenerateRandomUUIDv4,type:f.ActionDescriptor,description:"Generate an RFC-4122 version 4 UUID string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomUUIDv4,inputs:[],error:YC,outputs:[WC],parent:null},qf=me[f.Operation][Pe.GenerateShortIdentifier],zC={type:f.GenericReference,id:"generate-short-identifier-operation-result-string-data-type-parent-ref",entityId:qf.outputs.result.id,version:"1",entityType:f.ValueDescriptor},XC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:qf.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:zC},QC={type:f.GenericReference,id:"generate-short-identifier-operation-result-string-output-parent-ref",entityId:Pe.GenerateShortIdentifier,version:"1",entityType:f.ActionDescriptor},e$={parentRelationType:oe.FixedReturns,id:qf.outputs.result.id,type:f.ValueDescriptor,description:"The generated short identifier string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:XC,required:!0,index:0,parent:QC},t$={type:f.GenericReference,id:"generate-short-identifier-operation-error-parent-ref",entityId:Pe.GenerateShortIdentifier,version:"1",entityType:f.ActionDescriptor},r$={parentRelationType:oe.ReturnedError,id:qf.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:t$},Av={id:Pe.GenerateShortIdentifier,type:f.ActionDescriptor,description:"Generate a short identifier string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateShortIdentifier,inputs:[],error:r$,outputs:[e$],parent:null},Zf=me[f.Operation][Pe.GenerateHexadecimalToken],i$={type:f.GenericReference,id:"generate-hexadecimal-token-operation-result-string-data-type-parent-ref",entityId:Zf.outputs.result.id,version:"1",entityType:f.ValueDescriptor},s$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Zf.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:i$},n$={type:f.GenericReference,id:"generate-hexadecimal-token-operation-result-string-output-parent-ref",entityId:Pe.GenerateHexadecimalToken,version:"1",entityType:f.ActionDescriptor},a$={parentRelationType:oe.FixedReturns,id:Zf.outputs.result.id,type:f.ValueDescriptor,description:"The generated hexadecimal token string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:s$,required:!0,index:0,parent:n$},o$={type:f.GenericReference,id:"generate-hexadecimal-token-operation-error-parent-ref",entityId:Pe.GenerateHexadecimalToken,version:"1",entityType:f.ActionDescriptor},l$={parentRelationType:oe.ReturnedError,id:Zf.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:o$},Iv={id:Pe.GenerateHexadecimalToken,type:f.ActionDescriptor,description:"Generate a hexadecimal token string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateHexadecimalToken,inputs:[],error:l$,outputs:[a$],parent:null},d$={[Pe.GenerateRandomInteger]:fv,[Pe.GenerateRandomFloat]:hv,[Pe.GenerateRandomHexadecimal]:yv,[Pe.GenerateRandomBase62]:mv,[Pe.GenerateRandomBase64]:vv,[Pe.GenerateRandomAlphanumeric]:Ev,[Pe.GenerateIdentifier]:Tv,[Pe.GenerateRandomUUIDv4]:bv,[Pe.GenerateShortIdentifier]:Av,[Pe.GenerateHexadecimalToken]:Iv},u$={...Cg,...S1,...M_,...vD,...SD,...RO,...d$},c$=Object.values(u$),vk=me[f.Loop]["manual-flow-loop"],p$={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ManualFlow,version:"1",entityType:f.ActionDescriptor},f$={id:vk.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:p$,parentRelationType:oe.DynamicReturn},Jf={id:Ge.ManualFlow,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Ge.ManualFlow,description:"A loop that is manually controlled by the continue and break statements. It runs until the break statement is called, and it can skip to the next iteration with the continue statement.",inputs:[],outputs:[f$],error:null,parent:null},gu=me[f.Loop]["manual-flow-loop"],h$={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},y$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:h$},m$={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:gu.body.id,version:"1",entityType:f.ActionDescriptor},wv={id:gu.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the manual flow loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:y$,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:m$},v$={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:gu.body.id,version:"1",entityType:f.ActionDescriptor},E$={id:"manual-flow-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:oe.DynamicArgument,parent:v$},T$={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:gu.body.id,version:"1",entityType:f.ActionDescriptor},b$={id:"manual-flow-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:T$},Wf={id:gu.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[wv,E$],outputs:[b$],error:null,parent:null},A$=me[f.Loop]["string-loop"],I$={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},w$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Fe,asType:!1,parent:I$},R$={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.String,version:"1",entityType:f.ActionDescriptor},g$={id:A$.inputs.string.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:w$,index:0,parent:R$,parentRelationType:oe.FixedArguments},_$={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.String,version:"1",entityType:f.ActionDescriptor},D$={id:A$.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:_$,parentRelationType:oe.DynamicReturn},_u={id:Ge.String,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ge.String,codeName:null,description:"Iterates over a string of entities",inputs:[g$],outputs:[D$],error:null,parent:null},Ro=me[f.Loop]["string-loop"],O$={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:f.ValueDescriptor},C$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Fe,asType:!1,parent:O$},$$={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:f.GenericReference,entityId:Ro.body.id,version:"1",entityType:f.ActionDescriptor},Rv={id:Ro.body.inputs.currentValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current value",description:"The current value in the string that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:C$,required:!0,index:1,parentRelationType:oe.FixedArguments,parent:$$},P$={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},V$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:P$},N$={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:Ro.body.id,version:"1",entityType:f.ActionDescriptor},gv={id:Ro.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:V$,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:N$},L$={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:Ro.body.id,version:"1",entityType:f.ActionDescriptor},B$={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:oe.DynamicArgument,parent:L$},M$={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:Ro.body.id,version:"1",entityType:f.ActionDescriptor},U$={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:M$},Hf={id:Ro.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[gv,Rv,B$],outputs:[U$],error:null,parent:null},j$=me[f.Loop]["list-loop"],x$={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},F$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:x$},G$={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.List,version:"1",entityType:f.ActionDescriptor},K$={id:j$.inputs.list.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:F$,index:0,parent:G$,parentRelationType:oe.FixedArguments},k$={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.List,version:"1",entityType:f.ActionDescriptor},S$={id:j$.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:k$,parentRelationType:oe.DynamicReturn},ga={id:Ge.List,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Ge.List,description:"Iterates over a list of entities",inputs:[K$],outputs:[S$],error:null,parent:null},go=me[f.Loop]["list-loop"],q$={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:f.ValueDescriptor},Z$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:null,asType:!1,parent:q$},J$={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:f.GenericReference,entityId:go.body.id,version:"1",entityType:f.ActionDescriptor},Yf={id:go.body.inputs.currentValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current value",description:"The current value in the list that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Z$,required:!0,index:1,parentRelationType:oe.FixedArguments,parent:J$},W$={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},H$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:W$},Y$={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:go.body.id,version:"1",entityType:f.ActionDescriptor},z$={id:go.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the list loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:H$,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:Y$},X$={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:go.body.id,version:"1",entityType:f.ActionDescriptor},Q$={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:oe.DynamicArgument,parent:X$},eP={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:go.body.id,version:"1",entityType:f.ActionDescriptor},tP={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:eP},Du={id:go.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[z$,Yf,Q$],outputs:[tP],error:null,parent:null},rP=me[f.Loop]["object-keys-loop"],iP={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},sP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:zr,asType:!1,parent:iP},nP={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ObjectKeys,version:"1",entityType:f.ActionDescriptor},aP={id:rP.inputs.object.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:sP,index:0,parent:nP,parentRelationType:oe.FixedArguments},oP={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ObjectKeys,version:"1",entityType:f.ActionDescriptor},lP={id:rP.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:oP,parentRelationType:oe.DynamicReturn},Ll={id:Ge.ObjectKeys,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ge.ObjectKeys,codeName:null,description:"Iterates over a object of entities",inputs:[aP],outputs:[lP],error:null,parent:null},_o=me[f.Loop]["object-keys-loop"],dP={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:f.ValueDescriptor},uP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Fe,asType:!1,parent:dP},cP={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:f.GenericReference,entityId:_o.body.id,version:"1",entityType:f.ActionDescriptor},_v={id:_o.body.inputs.currentValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current value",description:"The current value in the object-keys that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:uP,required:!0,index:1,parentRelationType:oe.FixedArguments,parent:cP},pP={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},fP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:pP},hP={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:_o.body.id,version:"1",entityType:f.ActionDescriptor},yP={id:_o.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the object-keys loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:fP,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:hP},mP={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:_o.body.id,version:"1",entityType:f.ActionDescriptor},vP={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:oe.DynamicArgument,parent:mP},EP={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:_o.body.id,version:"1",entityType:f.ActionDescriptor},TP={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:EP},Dv={id:_o.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[yP,_v,vP],outputs:[TP],error:null,parent:null},bP=me[f.Loop]["object-values-loop"],AP={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},IP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:zr,asType:!1,parent:AP},wP={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ObjectValues,version:"1",entityType:f.ActionDescriptor},RP={id:bP.inputs.object.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:IP,index:0,parent:wP,parentRelationType:oe.FixedArguments},gP={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ObjectValues,version:"1",entityType:f.ActionDescriptor},_P={id:bP.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:gP,parentRelationType:oe.DynamicReturn},Bl={id:Ge.ObjectValues,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ge.ObjectValues,codeName:null,description:"Iterates over a object of entities",inputs:[RP],outputs:[_P],error:null,parent:null},Do=me[f.Loop]["object-values-loop"],DP={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:f.ValueDescriptor},OP={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:null,entity:null,asType:null,staticEntities:null,interactiveEntities:null,actionEntities:!1,like:!1,inferred:!1,parent:DP},CP={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:f.GenericReference,entityId:Do.body.id,version:"1",entityType:f.ActionDescriptor},Ov={id:Do.body.inputs.currentValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current value",description:"The current value in the object-values that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:OP,required:!0,index:1,parentRelationType:oe.FixedArguments,parent:CP},$P={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},PP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:$P},VP={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:Do.body.id,version:"1",entityType:f.ActionDescriptor},NP={id:Do.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the object-values loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:PP,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:VP},LP={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:Do.body.id,version:"1",entityType:f.ActionDescriptor},BP={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:oe.DynamicArgument,parent:LP},MP={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:Do.body.id,version:"1",entityType:f.ActionDescriptor},UP={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:MP},Cv={id:Do.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[NP,Ov,BP],outputs:[UP],error:null,parent:null},$v=me[f.Loop]["counted-loop"],jP={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:$v.inputs.number.id,version:"1",entityType:f.ValueDescriptor},xP={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,name:X.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:jP},FP={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},GP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:FP},KP={id:"counted-loop-string-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.Counted,version:"1",entityType:f.ActionDescriptor},kP={id:$v.inputs.number.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:GP,defaultValue:xP,index:0,parent:KP,parentRelationType:oe.FixedArguments},SP={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.Counted,version:"1",entityType:f.ActionDescriptor},qP={id:$v.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:SP,parentRelationType:oe.DynamicReturn},Ou={id:Ge.Counted,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Ge.Counted,description:"Iterates a given number of times",inputs:[kP],outputs:[qP],error:null,parent:null},Cu=me[f.Loop]["counted-loop"],ZP={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},JP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:ZP},WP={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:Cu.body.id,version:"1",entityType:f.ActionDescriptor},Pv={id:Cu.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:JP,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:WP},HP={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:Cu.body.id,version:"1",entityType:f.ActionDescriptor},YP={id:"counted-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:oe.DynamicArgument,parent:HP},zP={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:Cu.body.id,version:"1",entityType:f.ActionDescriptor},XP={id:"counted-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:zP},zf={id:Cu.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Pv,YP],outputs:[XP],error:null,parent:null},QP=[Jf,ga,_u,Ll,Bl,Ou],eV=[Wf,Du,Hf,Dv,Cv,zf],_a=me[f.BuiltInBaseEntity][Ce.HTTP_ENDPOINT].properties,os=me[f.BuiltInBaseEntity][Ce.HTTP_ENDPOINT].methods,tV={id:"endpointBuiltInCorsPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:_a.cors.id},rV={id:"endpointBuiltInCorsPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:_a.cors.id},iV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Fe,asType:!1,parent:rV},sV={id:"endpointBuiltInBaseEntityRef",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.HTTP_ENDPOINT},nV={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:_a.cors.id,codeName:null,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:iV,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:["*"],parent:tV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"The origins that are allowed to access this endpoint, use * for all origins, or http://example.com/* to be as specific as you need.",parent:sV},aV={id:"endpointBuiltInPathPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:_a.path.id},oV={id:"endpointBuiltInPathPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:_a.path.id},lV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:oV},dV={id:"endpointBuiltInBaseEntityRefTwo",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.HTTP_ENDPOINT},Vv={interactive:!1,extends:null,constant:!0,id:_a.path.id,hidden:!1,required:!0,codeName:null,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:lV,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"/",parent:aV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:dV},uV={id:"endpointBuiltInMethodPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:_a.method.id},cV={id:"endpointBuiltInMethodPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"endpointBuiltInMethodProperty"},pV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Wn,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:cV},fV={id:"endpointBuiltInBaseEntityRefThree",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.HTTP_ENDPOINT},Nv={interactive:!1,extends:null,constant:!0,hidden:!1,required:!0,id:_a.method.id,codeName:null,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:X.Enum,parent:uV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:pV,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:fV},hV={id:"endpointRequestHeadersVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},yV={id:"endpointRequestHeadersArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},mV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:zr,asType:!1,parent:yV},vV={id:"endpointRequestBodyArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},EV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:zr,parent:vV},TV={id:"endpointRequestQueryParamsVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},bV={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},AV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Pl,parent:bV},IV={id:"endpointPathParamsVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},wV={id:"endpointPathParamsArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},RV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Pl,asType:!1,parent:wV},gV={id:"endpointReachedTriggerActionDescriptorRef",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:os.handler.id},Lv={id:"endpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:f.ValueDescriptor,codeName:null,name:"Request headers",dataType:mV,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:hV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:oe.FixedArguments,parent:gV},_V={id:"endpointReachedTriggerActionDescriptorRefTwo",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:os.handler.id},Bv={id:"endpointPathParamsArgumentDeclaration",type:f.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Path parameters",dataType:RV,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:[],parent:IV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:oe.FixedArguments,parent:_V},DV={id:"endpointReachedTriggerActionDescriptorRefThree",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:os.handler.id},Mv={id:"endpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:f.ValueDescriptor,codeName:null,name:"Request query params",dataType:AV,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:[],parent:TV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:oe.FixedArguments,parent:DV},OV={id:"endpointReachedTriggerActionDescriptorRefFour",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:os.handler.id},Uv={id:"endpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:f.ValueDescriptor,codeName:null,name:"Request body",dataType:EV,defaultValue:null,index:3,required:!0,parentRelationType:oe.FixedArguments,parent:OV},CV={id:"endpointResponseCodeReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:os.handler.outputs.statusCode.id},$V={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:CV},PV={id:"endpointReturnStatementRef",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:"endpointReturnStatement"},VV={id:"endpointResponseCodeReturnDeclarationDefaultValueParentRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:os.handler.outputs.statusCode.id},jv={id:os.handler.outputs.statusCode.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:f.ValueDescriptor,codeName:"statusCode",name:"Response code",dataType:$V,defaultValue:{id:"endpointResponseCodeDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:200,parent:VV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:oe.FixedReturns,parent:PV},NV={id:"endpointResponseHeadersDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:os.handler.outputs.headers.id},LV={id:"endpointResponseHeadersReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:os.handler.outputs.headers.id},BV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:zr,asType:!1,parent:LV},MV={id:"endpointReturnStatementRefTwo",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:"endpointReturnStatement"},xv={id:os.handler.outputs.headers.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:f.ValueDescriptor,codeName:"headers",name:"Response headers",dataType:BV,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:NV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:oe.FixedReturns,parent:MV},UV={id:"endpointResponseBodyReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:os.handler.outputs.body.id},jV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:zr,parent:UV},xV={id:"endpointReturnStatementRefThree",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:"endpointReturnStatement"},Fv={id:os.handler.outputs.body.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:f.ValueDescriptor,codeName:"body",name:"Response body",dataType:jV,defaultValue:null,required:!1,index:2,parentRelationType:oe.FixedReturns,parent:xV},FV={id:"endpointBuiltInBaseEntityRefFour",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.HTTP_ENDPOINT},Gv={id:os.handler.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[Lv,Bv,Mv,Uv],outputs:[jv,xv,Fv],error:null,parent:FV},Ki={id:Ce.HTTP_ENDPOINT,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:Ce.HTTP_ENDPOINT,type:f.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[nV,Vv,Nv],abstractMethods:[Gv],extends:[],methods:[]},si=me[f.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,GV={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:f.GenericReference,entityId:si.properties.identifier.id,version:"1",entityType:f.Property},KV={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:f.GenericReference,entityId:si.properties.identifier.id,version:"1",entityType:f.Property},kV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:KV},Ml={id:"relational-database-built-in-base-entity-ref-id",type:f.GenericReference,entityId:Ce.PERSISTED_ENTITY,version:"1",entityType:f.BuiltInBaseEntity},Xf={interactive:!1,extends:null,constant:!0,id:si.properties.identifier.id,hidden:!1,required:!0,codeName:null,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:null,parent:GV,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:kV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Ml},Ek={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:f.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:f.Property},SV={id:"relational-database-built-in-base-entity-username-property-ref-id",type:f.GenericReference,entityId:si.properties.username.id,version:"1",entityType:f.Property},qV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:SV},Qf={interactive:!1,extends:null,constant:!0,hidden:!1,required:!0,id:si.properties.username.id,codeName:null,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:si.properties.username.id,version:"1",entityType:f.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:qV,description:"The username that will be used to connect to the database.",parent:Ml},Tk={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:f.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:f.Property},ZV={id:"relational-database-built-in-base-entity-password-property-ref-id",type:f.GenericReference,entityId:si.properties.password.id,version:"1",entityType:f.Property},JV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:ZV},WV={id:"relational-database-built-in-base-entity-password-property-default-value-parent-ref-id",type:f.GenericReference,entityId:si.properties.password.id,version:"1",entityType:f.Property},eh={interactive:!1,extends:null,constant:!0,hidden:!1,required:!0,id:si.properties.password.id,codeName:null,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:{id:"relational-database-built-in-base-entity-password-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"123456789",parent:WV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:JV,description:"The password that will be used to connect to the database.",parent:Ml},HV={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:f.GenericReference,entityId:si.properties.minSize.id,version:"1",entityType:f.Property},YV={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:f.GenericReference,entityId:si.properties.minSize.id,version:"1",entityType:f.Property},zV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:YV},th={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:si.properties.minSize.id,codeName:null,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:6,parent:HV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:zV,description:"The minimum size of the database in GB.",parent:Ml},XV={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:f.GenericReference,entityId:si.properties.default.id,version:"1",entityType:f.Property},QV={id:"relational-database-built-in-base-entity-default-property-ref-id",type:f.GenericReference,entityId:si.properties.default.id,version:"1",entityType:f.Property},eN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Jn,asType:!1,parent:QV},Kv={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:si.properties.default.id,codeName:null,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,value:!1,parent:XV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:eN,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:Ml},tN={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:f.GenericReference,entityId:si.properties.autoscaling.id,version:"1",entityType:f.Property},rN={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:f.GenericReference,entityId:si.properties.autoscaling.id,version:"1",entityType:f.Property},iN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Jn,asType:!1,parent:tN},sN={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:f.GenericReference,entityId:Ce.PERSISTED_ENTITY,version:"1",entityType:f.BuiltInBaseEntity},kv={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:si.properties.autoscaling.id,codeName:null,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,value:!1,parent:rN,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:iN,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:sN},Xr={id:Ce.RELATIONAL_DATABASE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity provisions a relational database in the cloud.",name:Ce.RELATIONAL_DATABASE,type:f.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Xf,Qf,eh,th,Kv,kv],abstractMethods:[],methods:[],extends:[]},nN={type:f.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:f.BuiltInBaseEntity,id:ns.DeletePersistedEntity},Sv={extends:null,type:f.FunctionDeclaration,id:ns.DeletePersistedEntity,codeName:null,name:ns.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:nN,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},aN=me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties,bk={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:f.DataType},oN={id:"persisted-built-in-base-entity-database-property-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:f.Property},lN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!0,parent:oN},dN={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:f.GenericReference,entityId:Ce.PERSISTED_ENTITY,version:"1",entityType:f.BuiltInBaseEntity},Ul={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:aN.database.id,codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,defaultValue:null,private:!0,abstract:!0,implements:null,static:!0,index:0,dataType:lN,description:"The database that the entity belongs to.",parent:dN},uN={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:f.DataType},cN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parentRelationType:Yr.OrDataTypeGroup,parent:uN},pN={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:f.DataType},fN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parentRelationType:Yr.OrDataTypeGroup,parent:pN},hN={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:f.DataType},yN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parentRelationType:Yr.OrDataTypeGroup,parent:hN},mN={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:f.Property},vN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,andChildrenGroup:null,orChildrenGroup:[yN,fN,cN],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:mN},EN={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:f.GenericReference,entityId:Ce.PERSISTED_ENTITY,version:"1",entityType:f.BuiltInBaseEntity},jl={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:aN.primaryKey.id,codeName:null,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:vN,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:EN},ni={id:Ce.PERSISTED_ENTITY,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:Ce.PERSISTED_ENTITY,type:f.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Ul,jl],methods:[Sv],extends:[]},TN={type:f.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:f.BuiltInBaseEntity,id:ns.SoftDeletePersistedEntity},Ak={extends:null,type:f.FunctionDeclaration,id:ns.SoftDeletePersistedEntity,codeName:null,name:ns.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:TN,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},Ik=me[f.BuiltInBaseEntity][Ce.CRON_JOB].methods,bN={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.CRON_JOB},qv={id:Ik.handler.id,codeName:null,name:"Scheduled job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ActionDescriptor,description:"Executed when the scheduled job is triggered",inputs:[],error:null,outputs:[],parent:bN},AN=me[f.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,wk={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:f.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:f.DataType},IN={id:"cron-job-built-in-base-entity-expression-property-ref",type:f.GenericReference,entityId:AN.properties.expression.id,version:"1",entityType:f.Property},Rk={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:IN},wN={id:"cron-job-built-in-base-entity-ref",type:f.GenericReference,entityId:Ce.CRON_JOB,version:"1",entityType:f.BuiltInBaseEntity},RN={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:AN.properties.expression.id,codeName:null,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:Rk,description:"The cron-job expression that defines when the cron-job job should be triggered. The expression should be in the format of a cron-job expression.",parent:wN},rh={id:Ce.CRON_JOB,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity represents a scheduled trigger. The action on this entity will be executed one the time set by the cron-job expression is reached.",name:Ce.CRON_JOB,type:f.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[RN],methods:[],abstractMethods:[qv],extends:[]},gN={type:f.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:f.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Zv={extends:null,id:"execution-built-in-entity-abort-method-id",type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:ns.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:gN},ih={id:Ce.EXECUTION,type:f.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ce.EXECUTION,description:"A reference to an ongoing execution of any entity that can be called. Eg: Operations, custom trigger calls, etc.",static:!1,abstract:!1,interactive:!0,extends:[],properties:[],methods:[Zv],abstractMethods:[]},_N=[Ki,Xr,ni,rh,ih],gk=me[f.Condition][Br.NotEmpty],DN={type:f.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:f.ActionDescriptor,entityId:Br.NotEmpty},ON={id:gk.inputs.leftHand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!1,parentRelationType:oe.FixedArguments,index:0,parent:DN},Oo={type:f.ActionDescriptor,id:Br.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Br.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[ON],outputs:[],error:null},_k=me[f.Condition][Br.Empty],CN={type:f.GenericReference,id:"empty-condition-ref",version:"1",entityType:f.ActionDescriptor,entityId:Br.Empty},$N={id:_k.inputs.leftHand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Value",description:"The value to check if it is empty",defaultValue:null,dataType:null,required:!1,parentRelationType:oe.FixedArguments,index:0,parent:CN},Jv={type:f.ActionDescriptor,id:Br.Empty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Br.Empty,description:"Checks if the value is empty",parent:null,inputs:[$N],outputs:[],error:null},PN={[Br.NotEmpty]:Oo,[Br.Empty]:Jv},xl=me[f.Condition]["more-than-or-equal"],VN={type:f.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:f.ValueDescriptor,entityId:xl.inputs.leftHand.id},NN={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:xl.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:VN},LN={type:f.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:f.ActionDescriptor,entityId:ur.MoreThanOrEqual},BN={id:xl.inputs.leftHand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"First value",description:"The first value to compare",defaultValue:null,dataType:NN,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:LN},MN={type:f.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:f.ValueDescriptor,entityId:xl.inputs.rightHand.id},UN={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:xl.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:MN},jN={type:f.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:f.ActionDescriptor,entityId:ur.MoreThanOrEqual},xN={id:xl.inputs.rightHand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:UN,required:!0,parentRelationType:oe.FixedArguments,index:1,parent:jN},Fl={type:f.ActionDescriptor,id:ur.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:ur.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[BN,xN],outputs:[],error:null},FN={[ur.MoreThanOrEqual]:Fl},GN={...PN,...FN},KN=Object.values(GN),sh={type:f.ActionDescriptor,id:qn.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:qn.PROJECT_PUBLICATION_COMPLETED,description:"The event that is triggered when the project has completed its publication and all its code and resurces are now deployed and ready to be used by the users",parent:null,inputs:[],outputs:[],error:null},kN={[qn.PROJECT_PUBLICATION_COMPLETED]:sh},SN=Object.values(kN),Wv=me[f.ValueDescriptor][$l.ActionOngoingProcessOutputValue],qN={type:f.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:f.ValueDescriptor,entityId:Wv.id},ZN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Wv.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ih,asType:!1,isList:!1,parent:qN},nh={id:Wv.id,type:f.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Process",defaultValue:null,dataType:ZN,required:!0,index:0,parent:null,parentRelationType:oe.OngoingProcessExecution},Hv=me[f.ValueDescriptor][$l.SearchErrorOutputDescriptor],JN={type:f.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:f.ValueDescriptor,entityId:Hv.id},WN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Hv.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:JN},Yv={id:Hv.id,type:f.ValueDescriptor,description:"The error that occurred during the execution of the search statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Search error",codeName:null,defaultValue:null,dataType:WN,required:!0,index:0,parent:null,parentRelationType:oe.ReturnedError},HN=[nh,Yv],YN=[...h1,...c$,...QP,...eV,..._N,...KN,...SN,...HN];var qt;(function(d){d.assertEqual=l=>l;function u(l){}d.assertIs=u;function i(l){throw new Error}d.assertNever=i,d.arrayToEnum=l=>{const p={};for(const t of l)p[t]=t;return p},d.getValidEnumValues=l=>{const p=d.objectKeys(l).filter(y=>typeof l[l[y]]!="number"),t={};for(const y of p)t[y]=l[y];return d.objectValues(t)},d.objectValues=l=>d.objectKeys(l).map(function(p){return l[p]}),d.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const p=[];for(const t in l)Object.prototype.hasOwnProperty.call(l,t)&&p.push(t);return p},d.find=(l,p)=>{for(const t of l)if(p(t))return t},d.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&isFinite(l)&&Math.floor(l)===l;function a(l,p=" | "){return l.map(t=>typeof t=="string"?`'${t}'`:t).join(p)}d.joinValues=a,d.jsonStringifyReplacer=(l,p)=>typeof p=="bigint"?p.toString():p})(qt||(qt={}));var zv;(function(d){d.mergeShapes=(u,i)=>({...u,...i})})(zv||(zv={}));const je=qt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xn=d=>{switch(typeof d){case"undefined":return je.undefined;case"string":return je.string;case"number":return isNaN(d)?je.nan:je.number;case"boolean":return je.boolean;case"function":return je.function;case"bigint":return je.bigint;case"symbol":return je.symbol;case"object":return Array.isArray(d)?je.array:d===null?je.null:d.then&&typeof d.then=="function"&&d.catch&&typeof d.catch=="function"?je.promise:typeof Map<"u"&&d instanceof Map?je.map:typeof Set<"u"&&d instanceof Set?je.set:typeof Date<"u"&&d instanceof Date?je.date:je.object;default:return je.unknown}},De=qt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Dk=d=>JSON.stringify(d,null,2).replace(/"([^"]+)":/g,"$1:");class ki extends Error{get errors(){return this.issues}constructor(u){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=u}format(u){const i=u||function(p){return p.message},a={_errors:[]},l=p=>{for(const t of p.issues)if(t.code==="invalid_union")t.unionErrors.map(l);else if(t.code==="invalid_return_type")l(t.returnTypeError);else if(t.code==="invalid_arguments")l(t.argumentsError);else if(t.path.length===0)a._errors.push(i(t));else{let y=a,v=0;for(;v<t.path.length;){const b=t.path[v];v===t.path.length-1?(y[b]=y[b]||{_errors:[]},y[b]._errors.push(i(t))):y[b]=y[b]||{_errors:[]},y=y[b],v++}}};return l(this),a}static assert(u){if(!(u instanceof ki))throw new Error(`Not a ZodError: ${u}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,qt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(u=i=>i.message){const i={},a=[];for(const l of this.issues)l.path.length>0?(i[l.path[0]]=i[l.path[0]]||[],i[l.path[0]].push(u(l))):a.push(u(l));return{formErrors:a,fieldErrors:i}}get formErrors(){return this.flatten()}}ki.create=d=>new ki(d);const Gl=(d,u)=>{let i;switch(d.code){case De.invalid_type:d.received===je.undefined?i="Required":i=`Expected ${d.expected}, received ${d.received}`;break;case De.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(d.expected,qt.jsonStringifyReplacer)}`;break;case De.unrecognized_keys:i=`Unrecognized key(s) in object: ${qt.joinValues(d.keys,", ")}`;break;case De.invalid_union:i="Invalid input";break;case De.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${qt.joinValues(d.options)}`;break;case De.invalid_enum_value:i=`Invalid enum value. Expected ${qt.joinValues(d.options)}, received '${d.received}'`;break;case De.invalid_arguments:i="Invalid function arguments";break;case De.invalid_return_type:i="Invalid function return type";break;case De.invalid_date:i="Invalid date";break;case De.invalid_string:typeof d.validation=="object"?"includes"in d.validation?(i=`Invalid input: must include "${d.validation.includes}"`,typeof d.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${d.validation.position}`)):"startsWith"in d.validation?i=`Invalid input: must start with "${d.validation.startsWith}"`:"endsWith"in d.validation?i=`Invalid input: must end with "${d.validation.endsWith}"`:qt.assertNever(d.validation):d.validation!=="regex"?i=`Invalid ${d.validation}`:i="Invalid";break;case De.too_small:d.type==="array"?i=`Array must contain ${d.exact?"exactly":d.inclusive?"at least":"more than"} ${d.minimum} element(s)`:d.type==="string"?i=`String must contain ${d.exact?"exactly":d.inclusive?"at least":"over"} ${d.minimum} character(s)`:d.type==="number"?i=`Number must be ${d.exact?"exactly equal to ":d.inclusive?"greater than or equal to ":"greater than "}${d.minimum}`:d.type==="date"?i=`Date must be ${d.exact?"exactly equal to ":d.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(d.minimum))}`:i="Invalid input";break;case De.too_big:d.type==="array"?i=`Array must contain ${d.exact?"exactly":d.inclusive?"at most":"less than"} ${d.maximum} element(s)`:d.type==="string"?i=`String must contain ${d.exact?"exactly":d.inclusive?"at most":"under"} ${d.maximum} character(s)`:d.type==="number"?i=`Number must be ${d.exact?"exactly":d.inclusive?"less than or equal to":"less than"} ${d.maximum}`:d.type==="bigint"?i=`BigInt must be ${d.exact?"exactly":d.inclusive?"less than or equal to":"less than"} ${d.maximum}`:d.type==="date"?i=`Date must be ${d.exact?"exactly":d.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(d.maximum))}`:i="Invalid input";break;case De.custom:i="Invalid input";break;case De.invalid_intersection_types:i="Intersection results could not be merged";break;case De.not_multiple_of:i=`Number must be a multiple of ${d.multipleOf}`;break;case De.not_finite:i="Number must be finite";break;default:i=u.defaultError,qt.assertNever(d)}return{message:i}};let zN=Gl;function Ok(d){zN=d}function ah(){return zN}const oh=d=>{const{data:u,path:i,errorMaps:a,issueData:l}=d,p=[...i,...l.path||[]],t={...l,path:p};if(l.message!==void 0)return{...l,path:p,message:l.message};let y="";const v=a.filter(b=>!!b).slice().reverse();for(const b of v)y=b(t,{data:u,defaultError:y}).message;return{...l,path:p,message:y}},Ck=[];function Me(d,u){const i=ah(),a=oh({issueData:u,data:d.data,path:d.path,errorMaps:[d.common.contextualErrorMap,d.schemaErrorMap,i,i===Gl?void 0:Gl].filter(l=>!!l)});d.common.issues.push(a)}class vi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(u,i){const a=[];for(const l of i){if(l.status==="aborted")return ct;l.status==="dirty"&&u.dirty(),a.push(l.value)}return{status:u.value,value:a}}static async mergeObjectAsync(u,i){const a=[];for(const l of i){const p=await l.key,t=await l.value;a.push({key:p,value:t})}return vi.mergeObjectSync(u,a)}static mergeObjectSync(u,i){const a={};for(const l of i){const{key:p,value:t}=l;if(p.status==="aborted"||t.status==="aborted")return ct;p.status==="dirty"&&u.dirty(),t.status==="dirty"&&u.dirty(),p.value!=="__proto__"&&(typeof t.value<"u"||l.alwaysSet)&&(a[p.value]=t.value)}return{status:u.value,value:a}}}const ct=Object.freeze({status:"aborted"}),Kl=d=>({status:"dirty",value:d}),_i=d=>({status:"valid",value:d}),Xv=d=>d.status==="aborted",Qv=d=>d.status==="dirty",Co=d=>d.status==="valid",$u=d=>typeof Promise<"u"&&d instanceof Promise;function lh(d,u,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof u=="function"?d!==u||!a:!u.has(d))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(d):a?a.value:u.get(d)}function XN(d,u,i,a,l){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof u=="function"?d!==u||!l:!u.has(d))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?l.call(d,i):l?l.value=i:u.set(d,i),i}typeof SuppressedError=="function"&&SuppressedError;var Se;(function(d){d.errToObj=u=>typeof u=="string"?{message:u}:u||{},d.toString=u=>typeof u=="string"?u:u==null?void 0:u.message})(Se||(Se={}));var Pu,Vu;class vn{constructor(u,i,a,l){this._cachedPath=[],this.parent=u,this.data=i,this._path=a,this._key=l}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const QN=(d,u)=>{if(Co(u))return{success:!0,data:u.value};if(!d.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new ki(d.common.issues);return this._error=i,this._error}}};function ht(d){if(!d)return{};const{errorMap:u,invalid_type_error:i,required_error:a,description:l}=d;if(u&&(i||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return u?{errorMap:u,description:l}:{errorMap:(t,y)=>{var v,b;const{message:w}=d;return t.code==="invalid_enum_value"?{message:w??y.defaultError}:typeof y.data>"u"?{message:(v=w??a)!==null&&v!==void 0?v:y.defaultError}:t.code!=="invalid_type"?{message:y.defaultError}:{message:(b=w??i)!==null&&b!==void 0?b:y.defaultError}},description:l}}class Nt{get description(){return this._def.description}_getType(u){return Xn(u.data)}_getOrReturnCtx(u,i){return i||{common:u.parent.common,data:u.data,parsedType:Xn(u.data),schemaErrorMap:this._def.errorMap,path:u.path,parent:u.parent}}_processInputParams(u){return{status:new vi,ctx:{common:u.parent.common,data:u.data,parsedType:Xn(u.data),schemaErrorMap:this._def.errorMap,path:u.path,parent:u.parent}}}_parseSync(u){const i=this._parse(u);if($u(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(u){const i=this._parse(u);return Promise.resolve(i)}parse(u,i){const a=this.safeParse(u,i);if(a.success)return a.data;throw a.error}safeParse(u,i){var a;const l={common:{issues:[],async:(a=i==null?void 0:i.async)!==null&&a!==void 0?a:!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:u,parsedType:Xn(u)},p=this._parseSync({data:u,path:l.path,parent:l});return QN(l,p)}"~validate"(u){var i,a;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:u,parsedType:Xn(u)};if(!this["~standard"].async)try{const p=this._parseSync({data:u,path:[],parent:l});return Co(p)?{value:p.value}:{issues:l.common.issues}}catch(p){!((a=(i=p==null?void 0:p.message)===null||i===void 0?void 0:i.toLowerCase())===null||a===void 0)&&a.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:u,path:[],parent:l}).then(p=>Co(p)?{value:p.value}:{issues:l.common.issues})}async parseAsync(u,i){const a=await this.safeParseAsync(u,i);if(a.success)return a.data;throw a.error}async safeParseAsync(u,i){const a={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:u,parsedType:Xn(u)},l=this._parse({data:u,path:a.path,parent:a}),p=await($u(l)?l:Promise.resolve(l));return QN(a,p)}refine(u,i){const a=l=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(l):i;return this._refinement((l,p)=>{const t=u(l),y=()=>p.addIssue({code:De.custom,...a(l)});return typeof Promise<"u"&&t instanceof Promise?t.then(v=>v?!0:(y(),!1)):t?!0:(y(),!1)})}refinement(u,i){return this._refinement((a,l)=>u(a)?!0:(l.addIssue(typeof i=="function"?i(a,l):i),!1))}_refinement(u){return new Zs({schema:this,typeName:at.ZodEffects,effect:{type:"refinement",refinement:u}})}superRefine(u){return this._refinement(u)}constructor(u){this.spa=this.safeParseAsync,this._def=u,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return Tn.create(this,this._def)}nullable(){return $a.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qs.create(this)}promise(){return Zl.create(this,this._def)}or(u){return Mu.create([this,u],this._def)}and(u){return Uu.create(this,u,this._def)}transform(u){return new Zs({...ht(this._def),schema:this,typeName:at.ZodEffects,effect:{type:"transform",transform:u}})}default(u){const i=typeof u=="function"?u:()=>u;return new Ku({...ht(this._def),innerType:this,defaultValue:i,typeName:at.ZodDefault})}brand(){return new rE({typeName:at.ZodBranded,type:this,...ht(this._def)})}catch(u){const i=typeof u=="function"?u:()=>u;return new ku({...ht(this._def),innerType:this,catchValue:i,typeName:at.ZodCatch})}describe(u){const i=this.constructor;return new i({...this._def,description:u})}pipe(u){return Su.create(this,u)}readonly(){return qu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const $k=/^c[^\s-]{8,}$/i,Pk=/^[0-9a-z]+$/,Vk=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Nk=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Lk=/^[a-z0-9_-]{21}$/i,Bk=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Mk=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Uk=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let eE;const xk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Fk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Gk=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Kk=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kk=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Sk=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,e2="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",qk=new RegExp(`^${e2}$`);function t2(d){let u="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return d.precision?u=`${u}\\.\\d{${d.precision}}`:d.precision==null&&(u=`${u}(\\.\\d+)?`),u}function Zk(d){return new RegExp(`^${t2(d)}$`)}function r2(d){let u=`${e2}T${t2(d)}`;const i=[];return i.push(d.local?"Z?":"Z"),d.offset&&i.push("([+-]\\d{2}:?\\d{2})"),u=`${u}(${i.join("|")})`,new RegExp(`^${u}$`)}function Jk(d,u){return!!((u==="v4"||!u)&&xk.test(d)||(u==="v6"||!u)&&Gk.test(d))}function Wk(d,u){if(!Bk.test(d))return!1;try{const[i]=d.split("."),a=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),l=JSON.parse(atob(a));return!(typeof l!="object"||l===null||!l.typ||!l.alg||u&&l.alg!==u)}catch{return!1}}function Hk(d,u){return!!((u==="v4"||!u)&&Fk.test(d)||(u==="v6"||!u)&&Kk.test(d))}class Ss extends Nt{_parse(u){if(this._def.coerce&&(u.data=String(u.data)),this._getType(u)!==je.string){const p=this._getOrReturnCtx(u);return Me(p,{code:De.invalid_type,expected:je.string,received:p.parsedType}),ct}const a=new vi;let l;for(const p of this._def.checks)if(p.kind==="min")u.data.length<p.value&&(l=this._getOrReturnCtx(u,l),Me(l,{code:De.too_small,minimum:p.value,type:"string",inclusive:!0,exact:!1,message:p.message}),a.dirty());else if(p.kind==="max")u.data.length>p.value&&(l=this._getOrReturnCtx(u,l),Me(l,{code:De.too_big,maximum:p.value,type:"string",inclusive:!0,exact:!1,message:p.message}),a.dirty());else if(p.kind==="length"){const t=u.data.length>p.value,y=u.data.length<p.value;(t||y)&&(l=this._getOrReturnCtx(u,l),t?Me(l,{code:De.too_big,maximum:p.value,type:"string",inclusive:!0,exact:!0,message:p.message}):y&&Me(l,{code:De.too_small,minimum:p.value,type:"string",inclusive:!0,exact:!0,message:p.message}),a.dirty())}else if(p.kind==="email")Uk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"email",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="emoji")eE||(eE=new RegExp(jk,"u")),eE.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"emoji",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="uuid")Nk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"uuid",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="nanoid")Lk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"nanoid",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="cuid")$k.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"cuid",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="cuid2")Pk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"cuid2",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="ulid")Vk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"ulid",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="url")try{new URL(u.data)}catch{l=this._getOrReturnCtx(u,l),Me(l,{validation:"url",code:De.invalid_string,message:p.message}),a.dirty()}else p.kind==="regex"?(p.regex.lastIndex=0,p.regex.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"regex",code:De.invalid_string,message:p.message}),a.dirty())):p.kind==="trim"?u.data=u.data.trim():p.kind==="includes"?u.data.includes(p.value,p.position)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:{includes:p.value,position:p.position},message:p.message}),a.dirty()):p.kind==="toLowerCase"?u.data=u.data.toLowerCase():p.kind==="toUpperCase"?u.data=u.data.toUpperCase():p.kind==="startsWith"?u.data.startsWith(p.value)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:{startsWith:p.value},message:p.message}),a.dirty()):p.kind==="endsWith"?u.data.endsWith(p.value)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:{endsWith:p.value},message:p.message}),a.dirty()):p.kind==="datetime"?r2(p).test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:"datetime",message:p.message}),a.dirty()):p.kind==="date"?qk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:"date",message:p.message}),a.dirty()):p.kind==="time"?Zk(p).test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:"time",message:p.message}),a.dirty()):p.kind==="duration"?Mk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"duration",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="ip"?Jk(u.data,p.version)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"ip",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="jwt"?Wk(u.data,p.alg)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"jwt",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="cidr"?Hk(u.data,p.version)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"cidr",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="base64"?kk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"base64",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="base64url"?Sk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"base64url",code:De.invalid_string,message:p.message}),a.dirty()):qt.assertNever(p);return{status:a.value,value:u.data}}_regex(u,i,a){return this.refinement(l=>u.test(l),{validation:i,code:De.invalid_string,...Se.errToObj(a)})}_addCheck(u){return new Ss({...this._def,checks:[...this._def.checks,u]})}email(u){return this._addCheck({kind:"email",...Se.errToObj(u)})}url(u){return this._addCheck({kind:"url",...Se.errToObj(u)})}emoji(u){return this._addCheck({kind:"emoji",...Se.errToObj(u)})}uuid(u){return this._addCheck({kind:"uuid",...Se.errToObj(u)})}nanoid(u){return this._addCheck({kind:"nanoid",...Se.errToObj(u)})}cuid(u){return this._addCheck({kind:"cuid",...Se.errToObj(u)})}cuid2(u){return this._addCheck({kind:"cuid2",...Se.errToObj(u)})}ulid(u){return this._addCheck({kind:"ulid",...Se.errToObj(u)})}base64(u){return this._addCheck({kind:"base64",...Se.errToObj(u)})}base64url(u){return this._addCheck({kind:"base64url",...Se.errToObj(u)})}jwt(u){return this._addCheck({kind:"jwt",...Se.errToObj(u)})}ip(u){return this._addCheck({kind:"ip",...Se.errToObj(u)})}cidr(u){return this._addCheck({kind:"cidr",...Se.errToObj(u)})}datetime(u){var i,a;return typeof u=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:u}):this._addCheck({kind:"datetime",precision:typeof(u==null?void 0:u.precision)>"u"?null:u==null?void 0:u.precision,offset:(i=u==null?void 0:u.offset)!==null&&i!==void 0?i:!1,local:(a=u==null?void 0:u.local)!==null&&a!==void 0?a:!1,...Se.errToObj(u==null?void 0:u.message)})}date(u){return this._addCheck({kind:"date",message:u})}time(u){return typeof u=="string"?this._addCheck({kind:"time",precision:null,message:u}):this._addCheck({kind:"time",precision:typeof(u==null?void 0:u.precision)>"u"?null:u==null?void 0:u.precision,...Se.errToObj(u==null?void 0:u.message)})}duration(u){return this._addCheck({kind:"duration",...Se.errToObj(u)})}regex(u,i){return this._addCheck({kind:"regex",regex:u,...Se.errToObj(i)})}includes(u,i){return this._addCheck({kind:"includes",value:u,position:i==null?void 0:i.position,...Se.errToObj(i==null?void 0:i.message)})}startsWith(u,i){return this._addCheck({kind:"startsWith",value:u,...Se.errToObj(i)})}endsWith(u,i){return this._addCheck({kind:"endsWith",value:u,...Se.errToObj(i)})}min(u,i){return this._addCheck({kind:"min",value:u,...Se.errToObj(i)})}max(u,i){return this._addCheck({kind:"max",value:u,...Se.errToObj(i)})}length(u,i){return this._addCheck({kind:"length",value:u,...Se.errToObj(i)})}nonempty(u){return this.min(1,Se.errToObj(u))}trim(){return new Ss({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ss({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ss({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(u=>u.kind==="datetime")}get isDate(){return!!this._def.checks.find(u=>u.kind==="date")}get isTime(){return!!this._def.checks.find(u=>u.kind==="time")}get isDuration(){return!!this._def.checks.find(u=>u.kind==="duration")}get isEmail(){return!!this._def.checks.find(u=>u.kind==="email")}get isURL(){return!!this._def.checks.find(u=>u.kind==="url")}get isEmoji(){return!!this._def.checks.find(u=>u.kind==="emoji")}get isUUID(){return!!this._def.checks.find(u=>u.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(u=>u.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(u=>u.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(u=>u.kind==="cuid2")}get isULID(){return!!this._def.checks.find(u=>u.kind==="ulid")}get isIP(){return!!this._def.checks.find(u=>u.kind==="ip")}get isCIDR(){return!!this._def.checks.find(u=>u.kind==="cidr")}get isBase64(){return!!this._def.checks.find(u=>u.kind==="base64")}get isBase64url(){return!!this._def.checks.find(u=>u.kind==="base64url")}get minLength(){let u=null;for(const i of this._def.checks)i.kind==="min"&&(u===null||i.value>u)&&(u=i.value);return u}get maxLength(){let u=null;for(const i of this._def.checks)i.kind==="max"&&(u===null||i.value<u)&&(u=i.value);return u}}Ss.create=d=>{var u;return new Ss({checks:[],typeName:at.ZodString,coerce:(u=d==null?void 0:d.coerce)!==null&&u!==void 0?u:!1,...ht(d)})};function Yk(d,u){const i=(d.toString().split(".")[1]||"").length,a=(u.toString().split(".")[1]||"").length,l=i>a?i:a,p=parseInt(d.toFixed(l).replace(".","")),t=parseInt(u.toFixed(l).replace(".",""));return p%t/Math.pow(10,l)}class Da extends Nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(u){if(this._def.coerce&&(u.data=Number(u.data)),this._getType(u)!==je.number){const p=this._getOrReturnCtx(u);return Me(p,{code:De.invalid_type,expected:je.number,received:p.parsedType}),ct}let a;const l=new vi;for(const p of this._def.checks)p.kind==="int"?qt.isInteger(u.data)||(a=this._getOrReturnCtx(u,a),Me(a,{code:De.invalid_type,expected:"integer",received:"float",message:p.message}),l.dirty()):p.kind==="min"?(p.inclusive?u.data<p.value:u.data<=p.value)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.too_small,minimum:p.value,type:"number",inclusive:p.inclusive,exact:!1,message:p.message}),l.dirty()):p.kind==="max"?(p.inclusive?u.data>p.value:u.data>=p.value)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.too_big,maximum:p.value,type:"number",inclusive:p.inclusive,exact:!1,message:p.message}),l.dirty()):p.kind==="multipleOf"?Yk(u.data,p.value)!==0&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.not_multiple_of,multipleOf:p.value,message:p.message}),l.dirty()):p.kind==="finite"?Number.isFinite(u.data)||(a=this._getOrReturnCtx(u,a),Me(a,{code:De.not_finite,message:p.message}),l.dirty()):qt.assertNever(p);return{status:l.value,value:u.data}}gte(u,i){return this.setLimit("min",u,!0,Se.toString(i))}gt(u,i){return this.setLimit("min",u,!1,Se.toString(i))}lte(u,i){return this.setLimit("max",u,!0,Se.toString(i))}lt(u,i){return this.setLimit("max",u,!1,Se.toString(i))}setLimit(u,i,a,l){return new Da({...this._def,checks:[...this._def.checks,{kind:u,value:i,inclusive:a,message:Se.toString(l)}]})}_addCheck(u){return new Da({...this._def,checks:[...this._def.checks,u]})}int(u){return this._addCheck({kind:"int",message:Se.toString(u)})}positive(u){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Se.toString(u)})}negative(u){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Se.toString(u)})}nonpositive(u){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Se.toString(u)})}nonnegative(u){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Se.toString(u)})}multipleOf(u,i){return this._addCheck({kind:"multipleOf",value:u,message:Se.toString(i)})}finite(u){return this._addCheck({kind:"finite",message:Se.toString(u)})}safe(u){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Se.toString(u)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Se.toString(u)})}get minValue(){let u=null;for(const i of this._def.checks)i.kind==="min"&&(u===null||i.value>u)&&(u=i.value);return u}get maxValue(){let u=null;for(const i of this._def.checks)i.kind==="max"&&(u===null||i.value<u)&&(u=i.value);return u}get isInt(){return!!this._def.checks.find(u=>u.kind==="int"||u.kind==="multipleOf"&&qt.isInteger(u.value))}get isFinite(){let u=null,i=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(i===null||a.value>i)&&(i=a.value):a.kind==="max"&&(u===null||a.value<u)&&(u=a.value)}return Number.isFinite(i)&&Number.isFinite(u)}}Da.create=d=>new Da({checks:[],typeName:at.ZodNumber,coerce:(d==null?void 0:d.coerce)||!1,...ht(d)});class Oa extends Nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(u){if(this._def.coerce)try{u.data=BigInt(u.data)}catch{return this._getInvalidInput(u)}if(this._getType(u)!==je.bigint)return this._getInvalidInput(u);let a;const l=new vi;for(const p of this._def.checks)p.kind==="min"?(p.inclusive?u.data<p.value:u.data<=p.value)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.too_small,type:"bigint",minimum:p.value,inclusive:p.inclusive,message:p.message}),l.dirty()):p.kind==="max"?(p.inclusive?u.data>p.value:u.data>=p.value)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.too_big,type:"bigint",maximum:p.value,inclusive:p.inclusive,message:p.message}),l.dirty()):p.kind==="multipleOf"?u.data%p.value!==BigInt(0)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.not_multiple_of,multipleOf:p.value,message:p.message}),l.dirty()):qt.assertNever(p);return{status:l.value,value:u.data}}_getInvalidInput(u){const i=this._getOrReturnCtx(u);return Me(i,{code:De.invalid_type,expected:je.bigint,received:i.parsedType}),ct}gte(u,i){return this.setLimit("min",u,!0,Se.toString(i))}gt(u,i){return this.setLimit("min",u,!1,Se.toString(i))}lte(u,i){return this.setLimit("max",u,!0,Se.toString(i))}lt(u,i){return this.setLimit("max",u,!1,Se.toString(i))}setLimit(u,i,a,l){return new Oa({...this._def,checks:[...this._def.checks,{kind:u,value:i,inclusive:a,message:Se.toString(l)}]})}_addCheck(u){return new Oa({...this._def,checks:[...this._def.checks,u]})}positive(u){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Se.toString(u)})}negative(u){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Se.toString(u)})}nonpositive(u){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Se.toString(u)})}nonnegative(u){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Se.toString(u)})}multipleOf(u,i){return this._addCheck({kind:"multipleOf",value:u,message:Se.toString(i)})}get minValue(){let u=null;for(const i of this._def.checks)i.kind==="min"&&(u===null||i.value>u)&&(u=i.value);return u}get maxValue(){let u=null;for(const i of this._def.checks)i.kind==="max"&&(u===null||i.value<u)&&(u=i.value);return u}}Oa.create=d=>{var u;return new Oa({checks:[],typeName:at.ZodBigInt,coerce:(u=d==null?void 0:d.coerce)!==null&&u!==void 0?u:!1,...ht(d)})};class Nu extends Nt{_parse(u){if(this._def.coerce&&(u.data=!!u.data),this._getType(u)!==je.boolean){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.boolean,received:a.parsedType}),ct}return _i(u.data)}}Nu.create=d=>new Nu({typeName:at.ZodBoolean,coerce:(d==null?void 0:d.coerce)||!1,...ht(d)});class $o extends Nt{_parse(u){if(this._def.coerce&&(u.data=new Date(u.data)),this._getType(u)!==je.date){const p=this._getOrReturnCtx(u);return Me(p,{code:De.invalid_type,expected:je.date,received:p.parsedType}),ct}if(isNaN(u.data.getTime())){const p=this._getOrReturnCtx(u);return Me(p,{code:De.invalid_date}),ct}const a=new vi;let l;for(const p of this._def.checks)p.kind==="min"?u.data.getTime()<p.value&&(l=this._getOrReturnCtx(u,l),Me(l,{code:De.too_small,message:p.message,inclusive:!0,exact:!1,minimum:p.value,type:"date"}),a.dirty()):p.kind==="max"?u.data.getTime()>p.value&&(l=this._getOrReturnCtx(u,l),Me(l,{code:De.too_big,message:p.message,inclusive:!0,exact:!1,maximum:p.value,type:"date"}),a.dirty()):qt.assertNever(p);return{status:a.value,value:new Date(u.data.getTime())}}_addCheck(u){return new $o({...this._def,checks:[...this._def.checks,u]})}min(u,i){return this._addCheck({kind:"min",value:u.getTime(),message:Se.toString(i)})}max(u,i){return this._addCheck({kind:"max",value:u.getTime(),message:Se.toString(i)})}get minDate(){let u=null;for(const i of this._def.checks)i.kind==="min"&&(u===null||i.value>u)&&(u=i.value);return u!=null?new Date(u):null}get maxDate(){let u=null;for(const i of this._def.checks)i.kind==="max"&&(u===null||i.value<u)&&(u=i.value);return u!=null?new Date(u):null}}$o.create=d=>new $o({checks:[],coerce:(d==null?void 0:d.coerce)||!1,typeName:at.ZodDate,...ht(d)});class dh extends Nt{_parse(u){if(this._getType(u)!==je.symbol){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.symbol,received:a.parsedType}),ct}return _i(u.data)}}dh.create=d=>new dh({typeName:at.ZodSymbol,...ht(d)});class Lu extends Nt{_parse(u){if(this._getType(u)!==je.undefined){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.undefined,received:a.parsedType}),ct}return _i(u.data)}}Lu.create=d=>new Lu({typeName:at.ZodUndefined,...ht(d)});class Bu extends Nt{_parse(u){if(this._getType(u)!==je.null){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.null,received:a.parsedType}),ct}return _i(u.data)}}Bu.create=d=>new Bu({typeName:at.ZodNull,...ht(d)});class kl extends Nt{constructor(){super(...arguments),this._any=!0}_parse(u){return _i(u.data)}}kl.create=d=>new kl({typeName:at.ZodAny,...ht(d)});class Po extends Nt{constructor(){super(...arguments),this._unknown=!0}_parse(u){return _i(u.data)}}Po.create=d=>new Po({typeName:at.ZodUnknown,...ht(d)});class Qn extends Nt{_parse(u){const i=this._getOrReturnCtx(u);return Me(i,{code:De.invalid_type,expected:je.never,received:i.parsedType}),ct}}Qn.create=d=>new Qn({typeName:at.ZodNever,...ht(d)});class uh extends Nt{_parse(u){if(this._getType(u)!==je.undefined){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.void,received:a.parsedType}),ct}return _i(u.data)}}uh.create=d=>new uh({typeName:at.ZodVoid,...ht(d)});class qs extends Nt{_parse(u){const{ctx:i,status:a}=this._processInputParams(u),l=this._def;if(i.parsedType!==je.array)return Me(i,{code:De.invalid_type,expected:je.array,received:i.parsedType}),ct;if(l.exactLength!==null){const t=i.data.length>l.exactLength.value,y=i.data.length<l.exactLength.value;(t||y)&&(Me(i,{code:t?De.too_big:De.too_small,minimum:y?l.exactLength.value:void 0,maximum:t?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),a.dirty())}if(l.minLength!==null&&i.data.length<l.minLength.value&&(Me(i,{code:De.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),a.dirty()),l.maxLength!==null&&i.data.length>l.maxLength.value&&(Me(i,{code:De.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),a.dirty()),i.common.async)return Promise.all([...i.data].map((t,y)=>l.type._parseAsync(new vn(i,t,i.path,y)))).then(t=>vi.mergeArray(a,t));const p=[...i.data].map((t,y)=>l.type._parseSync(new vn(i,t,i.path,y)));return vi.mergeArray(a,p)}get element(){return this._def.type}min(u,i){return new qs({...this._def,minLength:{value:u,message:Se.toString(i)}})}max(u,i){return new qs({...this._def,maxLength:{value:u,message:Se.toString(i)}})}length(u,i){return new qs({...this._def,exactLength:{value:u,message:Se.toString(i)}})}nonempty(u){return this.min(1,u)}}qs.create=(d,u)=>new qs({type:d,minLength:null,maxLength:null,exactLength:null,typeName:at.ZodArray,...ht(u)});function Sl(d){if(d instanceof Pr){const u={};for(const i in d.shape){const a=d.shape[i];u[i]=Tn.create(Sl(a))}return new Pr({...d._def,shape:()=>u})}else return d instanceof qs?new qs({...d._def,type:Sl(d.element)}):d instanceof Tn?Tn.create(Sl(d.unwrap())):d instanceof $a?$a.create(Sl(d.unwrap())):d instanceof En?En.create(d.items.map(u=>Sl(u))):d}class Pr extends Nt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const u=this._def.shape(),i=qt.objectKeys(u);return this._cached={shape:u,keys:i}}_parse(u){if(this._getType(u)!==je.object){const b=this._getOrReturnCtx(u);return Me(b,{code:De.invalid_type,expected:je.object,received:b.parsedType}),ct}const{status:a,ctx:l}=this._processInputParams(u),{shape:p,keys:t}=this._getCached(),y=[];if(!(this._def.catchall instanceof Qn&&this._def.unknownKeys==="strip"))for(const b in l.data)t.includes(b)||y.push(b);const v=[];for(const b of t){const w=p[b],A=l.data[b];v.push({key:{status:"valid",value:b},value:w._parse(new vn(l,A,l.path,b)),alwaysSet:b in l.data})}if(this._def.catchall instanceof Qn){const b=this._def.unknownKeys;if(b==="passthrough")for(const w of y)v.push({key:{status:"valid",value:w},value:{status:"valid",value:l.data[w]}});else if(b==="strict")y.length>0&&(Me(l,{code:De.unrecognized_keys,keys:y}),a.dirty());else if(b!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const b=this._def.catchall;for(const w of y){const A=l.data[w];v.push({key:{status:"valid",value:w},value:b._parse(new vn(l,A,l.path,w)),alwaysSet:w in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const b=[];for(const w of v){const A=await w.key,V=await w.value;b.push({key:A,value:V,alwaysSet:w.alwaysSet})}return b}).then(b=>vi.mergeObjectSync(a,b)):vi.mergeObjectSync(a,v)}get shape(){return this._def.shape()}strict(u){return Se.errToObj,new Pr({...this._def,unknownKeys:"strict",...u!==void 0?{errorMap:(i,a)=>{var l,p,t,y;const v=(t=(p=(l=this._def).errorMap)===null||p===void 0?void 0:p.call(l,i,a).message)!==null&&t!==void 0?t:a.defaultError;return i.code==="unrecognized_keys"?{message:(y=Se.errToObj(u).message)!==null&&y!==void 0?y:v}:{message:v}}}:{}})}strip(){return new Pr({...this._def,unknownKeys:"strip"})}passthrough(){return new Pr({...this._def,unknownKeys:"passthrough"})}extend(u){return new Pr({...this._def,shape:()=>({...this._def.shape(),...u})})}merge(u){return new Pr({unknownKeys:u._def.unknownKeys,catchall:u._def.catchall,shape:()=>({...this._def.shape(),...u._def.shape()}),typeName:at.ZodObject})}setKey(u,i){return this.augment({[u]:i})}catchall(u){return new Pr({...this._def,catchall:u})}pick(u){const i={};return qt.objectKeys(u).forEach(a=>{u[a]&&this.shape[a]&&(i[a]=this.shape[a])}),new Pr({...this._def,shape:()=>i})}omit(u){const i={};return qt.objectKeys(this.shape).forEach(a=>{u[a]||(i[a]=this.shape[a])}),new Pr({...this._def,shape:()=>i})}deepPartial(){return Sl(this)}partial(u){const i={};return qt.objectKeys(this.shape).forEach(a=>{const l=this.shape[a];u&&!u[a]?i[a]=l:i[a]=l.optional()}),new Pr({...this._def,shape:()=>i})}required(u){const i={};return qt.objectKeys(this.shape).forEach(a=>{if(u&&!u[a])i[a]=this.shape[a];else{let p=this.shape[a];for(;p instanceof Tn;)p=p._def.innerType;i[a]=p}}),new Pr({...this._def,shape:()=>i})}keyof(){return i2(qt.objectKeys(this.shape))}}Pr.create=(d,u)=>new Pr({shape:()=>d,unknownKeys:"strip",catchall:Qn.create(),typeName:at.ZodObject,...ht(u)}),Pr.strictCreate=(d,u)=>new Pr({shape:()=>d,unknownKeys:"strict",catchall:Qn.create(),typeName:at.ZodObject,...ht(u)}),Pr.lazycreate=(d,u)=>new Pr({shape:d,unknownKeys:"strip",catchall:Qn.create(),typeName:at.ZodObject,...ht(u)});class Mu extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u),a=this._def.options;function l(p){for(const y of p)if(y.result.status==="valid")return y.result;for(const y of p)if(y.result.status==="dirty")return i.common.issues.push(...y.ctx.common.issues),y.result;const t=p.map(y=>new ki(y.ctx.common.issues));return Me(i,{code:De.invalid_union,unionErrors:t}),ct}if(i.common.async)return Promise.all(a.map(async p=>{const t={...i,common:{...i.common,issues:[]},parent:null};return{result:await p._parseAsync({data:i.data,path:i.path,parent:t}),ctx:t}})).then(l);{let p;const t=[];for(const v of a){const b={...i,common:{...i.common,issues:[]},parent:null},w=v._parseSync({data:i.data,path:i.path,parent:b});if(w.status==="valid")return w;w.status==="dirty"&&!p&&(p={result:w,ctx:b}),b.common.issues.length&&t.push(b.common.issues)}if(p)return i.common.issues.push(...p.ctx.common.issues),p.result;const y=t.map(v=>new ki(v));return Me(i,{code:De.invalid_union,unionErrors:y}),ct}}get options(){return this._def.options}}Mu.create=(d,u)=>new Mu({options:d,typeName:at.ZodUnion,...ht(u)});const ea=d=>d instanceof xu?ea(d.schema):d instanceof Zs?ea(d.innerType()):d instanceof Fu?[d.value]:d instanceof Ca?d.options:d instanceof Gu?qt.objectValues(d.enum):d instanceof Ku?ea(d._def.innerType):d instanceof Lu?[void 0]:d instanceof Bu?[null]:d instanceof Tn?[void 0,...ea(d.unwrap())]:d instanceof $a?[null,...ea(d.unwrap())]:d instanceof rE||d instanceof qu?ea(d.unwrap()):d instanceof ku?ea(d._def.innerType):[];class ch extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u);if(i.parsedType!==je.object)return Me(i,{code:De.invalid_type,expected:je.object,received:i.parsedType}),ct;const a=this.discriminator,l=i.data[a],p=this.optionsMap.get(l);return p?i.common.async?p._parseAsync({data:i.data,path:i.path,parent:i}):p._parseSync({data:i.data,path:i.path,parent:i}):(Me(i,{code:De.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),ct)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(u,i,a){const l=new Map;for(const p of i){const t=ea(p.shape[u]);if(!t.length)throw new Error(`A discriminator value for key \`${u}\` could not be extracted from all schema options`);for(const y of t){if(l.has(y))throw new Error(`Discriminator property ${String(u)} has duplicate value ${String(y)}`);l.set(y,p)}}return new ch({typeName:at.ZodDiscriminatedUnion,discriminator:u,options:i,optionsMap:l,...ht(a)})}}function tE(d,u){const i=Xn(d),a=Xn(u);if(d===u)return{valid:!0,data:d};if(i===je.object&&a===je.object){const l=qt.objectKeys(u),p=qt.objectKeys(d).filter(y=>l.indexOf(y)!==-1),t={...d,...u};for(const y of p){const v=tE(d[y],u[y]);if(!v.valid)return{valid:!1};t[y]=v.data}return{valid:!0,data:t}}else if(i===je.array&&a===je.array){if(d.length!==u.length)return{valid:!1};const l=[];for(let p=0;p<d.length;p++){const t=d[p],y=u[p],v=tE(t,y);if(!v.valid)return{valid:!1};l.push(v.data)}return{valid:!0,data:l}}else return i===je.date&&a===je.date&&+d==+u?{valid:!0,data:d}:{valid:!1}}class Uu extends Nt{_parse(u){const{status:i,ctx:a}=this._processInputParams(u),l=(p,t)=>{if(Xv(p)||Xv(t))return ct;const y=tE(p.value,t.value);return y.valid?((Qv(p)||Qv(t))&&i.dirty(),{status:i.value,value:y.data}):(Me(a,{code:De.invalid_intersection_types}),ct)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([p,t])=>l(p,t)):l(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}Uu.create=(d,u,i)=>new Uu({left:d,right:u,typeName:at.ZodIntersection,...ht(i)});class En extends Nt{_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.parsedType!==je.array)return Me(a,{code:De.invalid_type,expected:je.array,received:a.parsedType}),ct;if(a.data.length<this._def.items.length)return Me(a,{code:De.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ct;!this._def.rest&&a.data.length>this._def.items.length&&(Me(a,{code:De.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const p=[...a.data].map((t,y)=>{const v=this._def.items[y]||this._def.rest;return v?v._parse(new vn(a,t,a.path,y)):null}).filter(t=>!!t);return a.common.async?Promise.all(p).then(t=>vi.mergeArray(i,t)):vi.mergeArray(i,p)}get items(){return this._def.items}rest(u){return new En({...this._def,rest:u})}}En.create=(d,u)=>{if(!Array.isArray(d))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new En({items:d,typeName:at.ZodTuple,rest:null,...ht(u)})};class ju extends Nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.parsedType!==je.object)return Me(a,{code:De.invalid_type,expected:je.object,received:a.parsedType}),ct;const l=[],p=this._def.keyType,t=this._def.valueType;for(const y in a.data)l.push({key:p._parse(new vn(a,y,a.path,y)),value:t._parse(new vn(a,a.data[y],a.path,y)),alwaysSet:y in a.data});return a.common.async?vi.mergeObjectAsync(i,l):vi.mergeObjectSync(i,l)}get element(){return this._def.valueType}static create(u,i,a){return i instanceof Nt?new ju({keyType:u,valueType:i,typeName:at.ZodRecord,...ht(a)}):new ju({keyType:Ss.create(),valueType:u,typeName:at.ZodRecord,...ht(i)})}}class ph extends Nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.parsedType!==je.map)return Me(a,{code:De.invalid_type,expected:je.map,received:a.parsedType}),ct;const l=this._def.keyType,p=this._def.valueType,t=[...a.data.entries()].map(([y,v],b)=>({key:l._parse(new vn(a,y,a.path,[b,"key"])),value:p._parse(new vn(a,v,a.path,[b,"value"]))}));if(a.common.async){const y=new Map;return Promise.resolve().then(async()=>{for(const v of t){const b=await v.key,w=await v.value;if(b.status==="aborted"||w.status==="aborted")return ct;(b.status==="dirty"||w.status==="dirty")&&i.dirty(),y.set(b.value,w.value)}return{status:i.value,value:y}})}else{const y=new Map;for(const v of t){const b=v.key,w=v.value;if(b.status==="aborted"||w.status==="aborted")return ct;(b.status==="dirty"||w.status==="dirty")&&i.dirty(),y.set(b.value,w.value)}return{status:i.value,value:y}}}}ph.create=(d,u,i)=>new ph({valueType:u,keyType:d,typeName:at.ZodMap,...ht(i)});class Vo extends Nt{_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.parsedType!==je.set)return Me(a,{code:De.invalid_type,expected:je.set,received:a.parsedType}),ct;const l=this._def;l.minSize!==null&&a.data.size<l.minSize.value&&(Me(a,{code:De.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),i.dirty()),l.maxSize!==null&&a.data.size>l.maxSize.value&&(Me(a,{code:De.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),i.dirty());const p=this._def.valueType;function t(v){const b=new Set;for(const w of v){if(w.status==="aborted")return ct;w.status==="dirty"&&i.dirty(),b.add(w.value)}return{status:i.value,value:b}}const y=[...a.data.values()].map((v,b)=>p._parse(new vn(a,v,a.path,b)));return a.common.async?Promise.all(y).then(v=>t(v)):t(y)}min(u,i){return new Vo({...this._def,minSize:{value:u,message:Se.toString(i)}})}max(u,i){return new Vo({...this._def,maxSize:{value:u,message:Se.toString(i)}})}size(u,i){return this.min(u,i).max(u,i)}nonempty(u){return this.min(1,u)}}Vo.create=(d,u)=>new Vo({valueType:d,minSize:null,maxSize:null,typeName:at.ZodSet,...ht(u)});class ql extends Nt{constructor(){super(...arguments),this.validate=this.implement}_parse(u){const{ctx:i}=this._processInputParams(u);if(i.parsedType!==je.function)return Me(i,{code:De.invalid_type,expected:je.function,received:i.parsedType}),ct;function a(y,v){return oh({data:y,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,ah(),Gl].filter(b=>!!b),issueData:{code:De.invalid_arguments,argumentsError:v}})}function l(y,v){return oh({data:y,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,ah(),Gl].filter(b=>!!b),issueData:{code:De.invalid_return_type,returnTypeError:v}})}const p={errorMap:i.common.contextualErrorMap},t=i.data;if(this._def.returns instanceof Zl){const y=this;return _i(async function(...v){const b=new ki([]),w=await y._def.args.parseAsync(v,p).catch(L=>{throw b.addIssue(a(v,L)),b}),A=await Reflect.apply(t,this,w);return await y._def.returns._def.type.parseAsync(A,p).catch(L=>{throw b.addIssue(l(A,L)),b})})}else{const y=this;return _i(function(...v){const b=y._def.args.safeParse(v,p);if(!b.success)throw new ki([a(v,b.error)]);const w=Reflect.apply(t,this,b.data),A=y._def.returns.safeParse(w,p);if(!A.success)throw new ki([l(w,A.error)]);return A.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...u){return new ql({...this._def,args:En.create(u).rest(Po.create())})}returns(u){return new ql({...this._def,returns:u})}implement(u){return this.parse(u)}strictImplement(u){return this.parse(u)}static create(u,i,a){return new ql({args:u||En.create([]).rest(Po.create()),returns:i||Po.create(),typeName:at.ZodFunction,...ht(a)})}}class xu extends Nt{get schema(){return this._def.getter()}_parse(u){const{ctx:i}=this._processInputParams(u);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}xu.create=(d,u)=>new xu({getter:d,typeName:at.ZodLazy,...ht(u)});class Fu extends Nt{_parse(u){if(u.data!==this._def.value){const i=this._getOrReturnCtx(u);return Me(i,{received:i.data,code:De.invalid_literal,expected:this._def.value}),ct}return{status:"valid",value:u.data}}get value(){return this._def.value}}Fu.create=(d,u)=>new Fu({value:d,typeName:at.ZodLiteral,...ht(u)});function i2(d,u){return new Ca({values:d,typeName:at.ZodEnum,...ht(u)})}class Ca extends Nt{constructor(){super(...arguments),Pu.set(this,void 0)}_parse(u){if(typeof u.data!="string"){const i=this._getOrReturnCtx(u),a=this._def.values;return Me(i,{expected:qt.joinValues(a),received:i.parsedType,code:De.invalid_type}),ct}if(lh(this,Pu,"f")||XN(this,Pu,new Set(this._def.values),"f"),!lh(this,Pu,"f").has(u.data)){const i=this._getOrReturnCtx(u),a=this._def.values;return Me(i,{received:i.data,code:De.invalid_enum_value,options:a}),ct}return _i(u.data)}get options(){return this._def.values}get enum(){const u={};for(const i of this._def.values)u[i]=i;return u}get Values(){const u={};for(const i of this._def.values)u[i]=i;return u}get Enum(){const u={};for(const i of this._def.values)u[i]=i;return u}extract(u,i=this._def){return Ca.create(u,{...this._def,...i})}exclude(u,i=this._def){return Ca.create(this.options.filter(a=>!u.includes(a)),{...this._def,...i})}}Pu=new WeakMap,Ca.create=i2;class Gu extends Nt{constructor(){super(...arguments),Vu.set(this,void 0)}_parse(u){const i=qt.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(u);if(a.parsedType!==je.string&&a.parsedType!==je.number){const l=qt.objectValues(i);return Me(a,{expected:qt.joinValues(l),received:a.parsedType,code:De.invalid_type}),ct}if(lh(this,Vu,"f")||XN(this,Vu,new Set(qt.getValidEnumValues(this._def.values)),"f"),!lh(this,Vu,"f").has(u.data)){const l=qt.objectValues(i);return Me(a,{received:a.data,code:De.invalid_enum_value,options:l}),ct}return _i(u.data)}get enum(){return this._def.values}}Vu=new WeakMap,Gu.create=(d,u)=>new Gu({values:d,typeName:at.ZodNativeEnum,...ht(u)});class Zl extends Nt{unwrap(){return this._def.type}_parse(u){const{ctx:i}=this._processInputParams(u);if(i.parsedType!==je.promise&&i.common.async===!1)return Me(i,{code:De.invalid_type,expected:je.promise,received:i.parsedType}),ct;const a=i.parsedType===je.promise?i.data:Promise.resolve(i.data);return _i(a.then(l=>this._def.type.parseAsync(l,{path:i.path,errorMap:i.common.contextualErrorMap})))}}Zl.create=(d,u)=>new Zl({type:d,typeName:at.ZodPromise,...ht(u)});class Zs extends Nt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===at.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(u){const{status:i,ctx:a}=this._processInputParams(u),l=this._def.effect||null,p={addIssue:t=>{Me(a,t),t.fatal?i.abort():i.dirty()},get path(){return a.path}};if(p.addIssue=p.addIssue.bind(p),l.type==="preprocess"){const t=l.transform(a.data,p);if(a.common.async)return Promise.resolve(t).then(async y=>{if(i.value==="aborted")return ct;const v=await this._def.schema._parseAsync({data:y,path:a.path,parent:a});return v.status==="aborted"?ct:v.status==="dirty"||i.value==="dirty"?Kl(v.value):v});{if(i.value==="aborted")return ct;const y=this._def.schema._parseSync({data:t,path:a.path,parent:a});return y.status==="aborted"?ct:y.status==="dirty"||i.value==="dirty"?Kl(y.value):y}}if(l.type==="refinement"){const t=y=>{const v=l.refinement(y,p);if(a.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return y};if(a.common.async===!1){const y=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return y.status==="aborted"?ct:(y.status==="dirty"&&i.dirty(),t(y.value),{status:i.value,value:y.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(y=>y.status==="aborted"?ct:(y.status==="dirty"&&i.dirty(),t(y.value).then(()=>({status:i.value,value:y.value}))))}if(l.type==="transform")if(a.common.async===!1){const t=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Co(t))return t;const y=l.transform(t.value,p);if(y instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:y}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(t=>Co(t)?Promise.resolve(l.transform(t.value,p)).then(y=>({status:i.value,value:y})):t);qt.assertNever(l)}}Zs.create=(d,u,i)=>new Zs({schema:d,typeName:at.ZodEffects,effect:u,...ht(i)}),Zs.createWithPreprocess=(d,u,i)=>new Zs({schema:u,effect:{type:"preprocess",transform:d},typeName:at.ZodEffects,...ht(i)});class Tn extends Nt{_parse(u){return this._getType(u)===je.undefined?_i(void 0):this._def.innerType._parse(u)}unwrap(){return this._def.innerType}}Tn.create=(d,u)=>new Tn({innerType:d,typeName:at.ZodOptional,...ht(u)});class $a extends Nt{_parse(u){return this._getType(u)===je.null?_i(null):this._def.innerType._parse(u)}unwrap(){return this._def.innerType}}$a.create=(d,u)=>new $a({innerType:d,typeName:at.ZodNullable,...ht(u)});class Ku extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u);let a=i.data;return i.parsedType===je.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}Ku.create=(d,u)=>new Ku({innerType:d,typeName:at.ZodDefault,defaultValue:typeof u.default=="function"?u.default:()=>u.default,...ht(u)});class ku extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u),a={...i,common:{...i.common,issues:[]}},l=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return $u(l)?l.then(p=>({status:"valid",value:p.status==="valid"?p.value:this._def.catchValue({get error(){return new ki(a.common.issues)},input:a.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new ki(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}ku.create=(d,u)=>new ku({innerType:d,typeName:at.ZodCatch,catchValue:typeof u.catch=="function"?u.catch:()=>u.catch,...ht(u)});class fh extends Nt{_parse(u){if(this._getType(u)!==je.nan){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.nan,received:a.parsedType}),ct}return{status:"valid",value:u.data}}}fh.create=d=>new fh({typeName:at.ZodNaN,...ht(d)});const zk=Symbol("zod_brand");class rE extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u),a=i.data;return this._def.type._parse({data:a,path:i.path,parent:i})}unwrap(){return this._def.type}}class Su extends Nt{_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.common.async)return(async()=>{const p=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return p.status==="aborted"?ct:p.status==="dirty"?(i.dirty(),Kl(p.value)):this._def.out._parseAsync({data:p.value,path:a.path,parent:a})})();{const l=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return l.status==="aborted"?ct:l.status==="dirty"?(i.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:a.path,parent:a})}}static create(u,i){return new Su({in:u,out:i,typeName:at.ZodPipeline})}}class qu extends Nt{_parse(u){const i=this._def.innerType._parse(u),a=l=>(Co(l)&&(l.value=Object.freeze(l.value)),l);return $u(i)?i.then(l=>a(l)):a(i)}unwrap(){return this._def.innerType}}qu.create=(d,u)=>new qu({innerType:d,typeName:at.ZodReadonly,...ht(u)});function s2(d,u={},i){return d?kl.create().superRefine((a,l)=>{var p,t;if(!d(a)){const y=typeof u=="function"?u(a):typeof u=="string"?{message:u}:u,v=(t=(p=y.fatal)!==null&&p!==void 0?p:i)!==null&&t!==void 0?t:!0,b=typeof y=="string"?{message:y}:y;l.addIssue({code:"custom",...b,fatal:v})}}):kl.create()}const Xk={object:Pr.lazycreate};var at;(function(d){d.ZodString="ZodString",d.ZodNumber="ZodNumber",d.ZodNaN="ZodNaN",d.ZodBigInt="ZodBigInt",d.ZodBoolean="ZodBoolean",d.ZodDate="ZodDate",d.ZodSymbol="ZodSymbol",d.ZodUndefined="ZodUndefined",d.ZodNull="ZodNull",d.ZodAny="ZodAny",d.ZodUnknown="ZodUnknown",d.ZodNever="ZodNever",d.ZodVoid="ZodVoid",d.ZodArray="ZodArray",d.ZodObject="ZodObject",d.ZodUnion="ZodUnion",d.ZodDiscriminatedUnion="ZodDiscriminatedUnion",d.ZodIntersection="ZodIntersection",d.ZodTuple="ZodTuple",d.ZodRecord="ZodRecord",d.ZodMap="ZodMap",d.ZodSet="ZodSet",d.ZodFunction="ZodFunction",d.ZodLazy="ZodLazy",d.ZodLiteral="ZodLiteral",d.ZodEnum="ZodEnum",d.ZodEffects="ZodEffects",d.ZodNativeEnum="ZodNativeEnum",d.ZodOptional="ZodOptional",d.ZodNullable="ZodNullable",d.ZodDefault="ZodDefault",d.ZodCatch="ZodCatch",d.ZodPromise="ZodPromise",d.ZodBranded="ZodBranded",d.ZodPipeline="ZodPipeline",d.ZodReadonly="ZodReadonly"})(at||(at={}));const Qk=(d,u={message:`Input not instance of ${d.name}`})=>s2(i=>i instanceof d,u),hh=Ss.create,iE=Da.create,eS=fh.create,tS=Oa.create,sE=Nu.create,n2=$o.create,rS=dh.create,iS=Lu.create,a2=Bu.create,sS=kl.create,yh=Po.create,nS=Qn.create,aS=uh.create,oS=qs.create,o2=Pr.create,lS=Pr.strictCreate,dS=Mu.create,uS=ch.create,cS=Uu.create,pS=En.create,l2=ju.create,fS=ph.create,hS=Vo.create,yS=ql.create,mS=xu.create,vS=Fu.create,d2=Ca.create,ES=Gu.create,TS=Zl.create,u2=Zs.create,bS=Tn.create,AS=$a.create,IS=Zs.createWithPreprocess,wS=Su.create;var B=Object.freeze({__proto__:null,defaultErrorMap:Gl,setErrorMap:Ok,getErrorMap:ah,makeIssue:oh,EMPTY_PATH:Ck,addIssueToContext:Me,ParseStatus:vi,INVALID:ct,DIRTY:Kl,OK:_i,isAborted:Xv,isDirty:Qv,isValid:Co,isAsync:$u,get util(){return qt},get objectUtil(){return zv},ZodParsedType:je,getParsedType:Xn,ZodType:Nt,datetimeRegex:r2,ZodString:Ss,ZodNumber:Da,ZodBigInt:Oa,ZodBoolean:Nu,ZodDate:$o,ZodSymbol:dh,ZodUndefined:Lu,ZodNull:Bu,ZodAny:kl,ZodUnknown:Po,ZodNever:Qn,ZodVoid:uh,ZodArray:qs,ZodObject:Pr,ZodUnion:Mu,ZodDiscriminatedUnion:ch,ZodIntersection:Uu,ZodTuple:En,ZodRecord:ju,ZodMap:ph,ZodSet:Vo,ZodFunction:ql,ZodLazy:xu,ZodLiteral:Fu,ZodEnum:Ca,ZodNativeEnum:Gu,ZodPromise:Zl,ZodEffects:Zs,ZodTransformer:Zs,ZodOptional:Tn,ZodNullable:$a,ZodDefault:Ku,ZodCatch:ku,ZodNaN:fh,BRAND:zk,ZodBranded:rE,ZodPipeline:Su,ZodReadonly:qu,custom:s2,Schema:Nt,ZodSchema:Nt,late:Xk,get ZodFirstPartyTypeKind(){return at},coerce:{string:d=>Ss.create({...d,coerce:!0}),number:d=>Da.create({...d,coerce:!0}),boolean:d=>Nu.create({...d,coerce:!0}),bigint:d=>Oa.create({...d,coerce:!0}),date:d=>$o.create({...d,coerce:!0})},any:sS,array:oS,bigint:tS,boolean:sE,date:n2,discriminatedUnion:uS,effect:u2,enum:d2,function:yS,instanceof:Qk,intersection:cS,lazy:mS,literal:vS,map:fS,nan:eS,nativeEnum:ES,never:nS,null:a2,nullable:AS,number:iE,object:o2,oboolean:()=>sE().optional(),onumber:()=>iE().optional(),optional:bS,ostring:()=>hh().optional(),pipeline:wS,preprocess:IS,promise:TS,record:l2,set:hS,strictObject:lS,string:hh,symbol:rS,transformer:u2,tuple:pS,undefined:iS,union:dS,unknown:yh,void:aS,NEVER:ct,ZodIssueCode:De,quotelessJson:Dk,ZodError:ki});function c2(d){var l,p,t;if(!(d!=null&&d.dataType))return yh();const u=!d.required,i=d.dataType.isList||!1;let a=yh();if(((l=d.dataType.entity)==null?void 0:l.type)===f.PrimitiveEntity)switch(d.dataType.entity.name){case X.String:a=hh();break;case X.KeyValue:a=l2(yh());break;case X.Number:a=iE();break;case X.Boolean:a=sE();break;case X.Date:a=n2();break;case X.Enum:{const y=d.dataType.options||[];if(y.length===0)throw new Error(`Enum property ${d.name} has no options`);a=d2(y);break}case X.Null:a=a2();break;case X.UUID:a=hh().uuid();break}else if(((p=d.dataType.entity)==null?void 0:p.type)===f.DefinitionEntity)a=p2(d.dataType.entity);else throw new Error(`Unsupported data type validation: ${(t=d.dataType.entity)==null?void 0:t.type}`);return u&&(a=a.nullable()),i&&(a=a.array()),a}function p2(d){const u=o2({});for(const i of d.properties){const a=c2(i);u.shape[i.name]=a}return u}function f2(d){const u=d.rangeStart;return new Date(u.getTime()+Math.random()*(Date.now()-u.getTime()))}function h2(d){const u=d.rangeEnd;return new Date(Math.random()*u.getTime())}function y2(d){const u=d.rangeStart,i=d.rangeEnd;return new Date(u.getTime()+Math.random()*(i.getTime()-u.getTime()))}function m2(d){return d.rangeStart&&d.rangeEnd?y2(d):d.rangeStart?f2(d):d.rangeEnd?h2(d):new Date}const v2={isBackup:!1,uuid:()=>{var u;if(typeof((u=globalThis==null?void 0:globalThis.crypto)==null?void 0:u.randomUUID)=="function")return globalThis.crypto.randomUUID();try{const{randomUUID:i}=require("crypto");if(typeof i=="function")return i()}catch{}const d=(globalThis==null?void 0:globalThis.crypto)||typeof require=="function"&&require("crypto").webcrypto;if(d!=null&&d.getRandomValues){const i=new Uint8Array(16);return d.getRandomValues(i),i[6]=i[6]&15|64,i[8]=i[8]&63|128,Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")}return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)},fromUUID:d=>d};function E2(){return v2.uuid()}function T2(d){return d.rangeStart+Math.random()}function b2(d){const u=d.rangeEnd;return Math.random()*u}function A2(d){const u=d.rangeStart,i=d.rangeEnd;return Math.random()*(i-u)+u}function I2(d){return d.rangeStart&&d.rangeEnd?A2(d):d.rangeStart?T2(d):d.rangeEnd?b2(d):Math.random()}function w2(d){const u=d.rangeStart;return Math.random().toString(36).substring(u)}function R2(d){const u=d.rangeEnd;return Math.random().toString(36).substring(0,u)}function g2(d){const u=d.rangeStart,i=d.rangeEnd;return Math.random().toString(36).substring(u,i)}function _2(d){return d.rangeStart&&d.rangeEnd?g2(d):d.rangeStart?w2(d):d.rangeEnd?R2(d):Math.random().toString(36)}function D2(d){return Math.random()>=.5}function mh(d){if(!d||!d.autogeneration)return null;switch(d.autogeneration.type){case Dr.CurrentDateAndTime:if(d.name===X.Date)return new Date;case Dr.Random:{if(d.name===X.Date)return m2(d.autogeneration);if(d.name===X.Number)return I2(d.autogeneration);if(d.name===X.String)return _2(d.autogeneration);if(d.name===X.Boolean)return D2(d.autogeneration)}case Dr.Unique:if(d.name===X.UUID)return E2();default:throw new Error(`Generating a ${d.autogeneration.type} value for a ${d.name} is not supported`)}}const ot="e7eb5382-3d99-44fd-972a-b8b1e819f6be",O2="global-user-variable-id",nE="last-executed-timestamp-variable-id",RS={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:f.ValueDescriptor},gS={id:"alternative-relational-database-entity-identifier-property-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:f.Property},_S={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:gS},vh={id:"alternative-relational-database-entity-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:f.DefinitionEntity},DS={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",codeName:null,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Xf,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:null,parent:RS,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:_S,description:"The name of the main database inside of the server instance where the data will be stored.",parent:vh};f.GenericReference,f.ValueDescriptor;const OS={id:"alternative-relational-database-entity-username-property-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:f.Property},CS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:OS},$S={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",codeName:null,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Qf,static:!0,index:1,defaultValue:null,dataType:CS,description:"The username that will be used to connect to the database.",parent:vh};f.GenericReference,f.ValueDescriptor;const PS={id:"alternative-relational-database-entity-password-property-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:f.Property},VS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:PS},NS={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",codeName:null,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:eh,static:!0,index:2,defaultValue:null,dataType:VS,description:"The password that will be used to connect to the database.",parent:vh},LS={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:f.ValueDescriptor},BS={id:"alternative-relational-database-entity-min-size-property-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:f.Property},MS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:BS},US={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",codeName:null,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:th,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:6,parent:LS,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:MS,description:"The minimum size of the database in GB.",parent:vh},jS={id:"alternative-relational-database-entity-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},aE={id:"alternative-relational-database-entity-id",type:f.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[DS,$S,NS,US],methods:[],abstractMethods:[],extends:[],implements:[Xr],x:0,y:0,parent:jS},xS={id:"animal-prototype-database-property-ref-id",type:f.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:f.Property},FS={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:f.Property},GS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!1,parent:xS},KS={id:"animal-prototype-database-property-parent-ref-id",type:f.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:f.DefinitionEntity},kS={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:aE,autogeneration:null,parent:FS},dataType:GS,description:"The database that the entity belongs to.",parent:KS},SS={type:f.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:f.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},qS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:SS},ZS={type:f.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},JS={type:f.GenericReference,id:"animal-name-default-value-parent-ref-id",version:"1",entityType:f.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},WS={type:f.LiteralValue,standaloneParent:null,id:"animal-name-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Animal",name:X.String,valueAsTypeSingle:null,valueAsTypeList:null,autogeneration:null,parent:JS},HS={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Name",description:"The name of the animal",defaultValue:WS,implements:jl,static:!1,private:!1,index:0,dataType:qS,abstract:!1,parent:ZS},YS={type:f.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:f.Project,entityId:ot},zS={type:f.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[kS,HS],methods:[],extends:[],implements:[ni],x:0,y:0,parent:YS},Zu="base-table-entity",C2="base-table-entity-identifier-property-id";f.GenericReference,f.Property,f.GenericReference,f.Property;const XS={id:"base-table-entity-identifier-property-data-type-ref-id",type:f.GenericReference,entityId:C2,version:"1",entityType:f.Property},QS={id:"base-table-entity-identifier-property-ref-id",type:f.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:f.Property},eq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parent:QS},tq={id:"base-table-entity-identifier-property-parent-ref-id",type:f.GenericReference,entityId:Zu,version:"1",entityType:f.DefinitionEntity};f.Property,f.LiteralValue,X.UUID,Dr.Unique,f.GenericReference,f.Property;const rq={id:"base-table-entity-deleted-at-property-ref-id",type:f.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:f.Property},iq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:hn,asType:!1,parent:rq},sq={id:"base-table-entity-deleted-at-property-parent-ref-id",type:f.GenericReference,entityId:Zu,version:"1",entityType:f.DefinitionEntity},nq={interactive:!0,extends:null,constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",codeName:null,name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:iq,description:"The date and time when the entity was deleted.",parent:sq};f.GenericReference,f.Property;const aq={id:"base-table-entity-created-at-property-ref-id",type:f.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:f.Property},oq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:hn,asType:!1,parent:aq},lq={id:"base-table-entity-created-at-property-parent-ref-id",type:f.GenericReference,entityId:Zu,version:"1",entityType:f.DefinitionEntity},dq={interactive:!0,extends:null,constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",codeName:null,name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:oq,description:"The date and time when the entity was created.",parent:lq};f.GenericReference,f.Property;const uq={id:"base-table-entity-updated-at-property-ref-id",type:f.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:f.Property},cq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:hn,asType:!1,parent:uq},pq={id:"base-table-entity-updated-at-property-parent-ref-id",type:f.GenericReference,entityId:Zu,version:"1",entityType:f.DefinitionEntity},fq={interactive:!0,extends:null,constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",codeName:null,name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:cq,description:"The date and time when the entity was last updated.",parent:pq},hq={id:"base-table-entity-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},ls={id:Zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",codeName:null,name:"Base database table format",type:f.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[nq,dq,fq],methods:[],extends:[],x:0,y:0,parent:hq},yq={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:f.Property},mq={id:"default-relational-database-entity-identifier-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:f.Property},vq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:mq},Jl={id:"default-relational-database-entity-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:f.DefinitionEntity},Eq={interactive:!1,extends:null,constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",codeName:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Xf,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"main",parent:yq,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:vq,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Jl};f.GenericReference,f.Property;const Tq={id:"default-relational-database-entity-username-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:f.Property},bq={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:f.Property},Aq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:Tq},Iq={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",codeName:null,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Qf,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"root",parent:bq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:Aq,description:"The username that will be used to connect to the database.",parent:Jl};f.GenericReference,f.Property;const wq={id:"default-relational-database-entity-password-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:f.Property},Rq={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:f.Property},gq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:wq},_q={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",codeName:null,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:eh,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"password",parent:Rq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:gq,description:"The password that will be used to connect to the database.",parent:Jl},Dq={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:f.Property},Oq={id:"default-relational-database-entity-min-size-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:f.Property},Cq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:Oq},$q={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",codeName:null,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:th,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:6,parent:Dq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:Cq,description:"The minimum size of the database in GB.",parent:Jl},Pq={id:"default-relational-database-entity-default-property-data-type-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:f.Property},Vq={id:"default-relational-database-entity-default-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:f.Property},Nq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:Vq},Lq={interactive:!1,extends:null,constant:!0,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,codeName:null,name:"Default",description:"Whether this database is automatically picked by other entities as the default database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Kv,static:!0,index:4,dataType:Nq,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,value:!0,parent:Pq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:Jl},Bq={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:f.Property},Mq={id:"default-relational-database-entity-autoscaling-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:f.Property},Uq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:Mq},jq={interactive:!1,extends:null,constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,codeName:null,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:kv,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,value:!0,parent:Bq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:Uq,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:Jl},xq={id:"default-relational-database-entity-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},oE={id:"default-relational-database-entity-id",type:f.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[Lq,jq,Eq,Iq,_q,$q],methods:[],abstractMethods:[],extends:[],implements:[Xr],x:0,y:0,parent:xq},Fq={id:"user-prototype-database-property-data-type-ref-id",type:f.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:f.Property},Gq={id:"user-prototype-database-property-ref-id",type:f.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:f.Property},Kq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"user-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!1,parent:Gq},kq={id:"user-prototype-database-property-parent-ref-id",type:f.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:f.DefinitionEntity},Sq={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:oE,autogeneration:null,parent:Fq},dataType:Kq,description:"The database that the entity belongs to.",parent:kq},qq={type:f.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Zq={id:"user-prototype-primary-key-property-data-type-ref-id",type:f.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:f.Property},Jq={id:"user-prototype-primary-key-property-ref-id",type:f.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:f.Property},Wq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parent:Jq},Hq={id:"user-prototype-primary-key-property-parent-ref-id",type:f.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:f.DefinitionEntity},Yq={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",codeName:null,name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:jl,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.UUID,value:null,parent:Zq,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:Wq,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:Hq},lE={type:f.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"User",description:"A user of the application",implements:[ni,ls],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[Sq,Yq],methods:[],x:0,y:0,parent:qq},zq={type:f.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:"person-date-of-birth-property-id"},Xq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:hn,isList:!1,asType:!1,parent:zq},Qq={type:f.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},eZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:Xq,abstract:!1,parent:Qq},tZ={type:f.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:f.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},rZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:tZ},iZ={type:f.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:f.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},sZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:rZ,abstract:!1,parent:iZ},nZ={type:f.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:f.Project,entityId:ot},Di={type:f.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Person",description:"A entity to store more information about a person than the user entity does, to split the responsibilities and keep it the logic clean.",properties:[sZ,eZ],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[lE],x:0,y:0,parent:nZ},aZ={type:f.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:f.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},oZ={type:f.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:f.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},lZ={type:f.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:f.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},dZ={type:f.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:f.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},uZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:dZ},dE={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",codeName:null,description:null,defaultValue:null,dataType:uZ,implements:null,readsValue:lZ,required:!0,index:0,parent:oZ},cZ={type:f.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:f.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},pZ={type:f.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:f.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},fZ={type:f.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[dE],calledByError:[],calledByEntry:[cZ],calledBySuccess:[],throws:null,x:0,y:0,parent:pZ},hZ={type:f.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:f.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},yZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:hZ},$2={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",codeName:null,description:null,defaultValue:null,dataType:yZ,implements:null,required:!0,writesValues:[dE],index:0,parent:aZ},mZ={type:f.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:f.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},P2={extends:null,type:f.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of bank account",codeName:null,description:null,implements:null,inputs:[$2],calls:[fZ],index:0,collapsed:!1,private:!1,x:0,y:0,parent:mZ},vZ={type:f.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:f.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},EZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:vZ},TZ={type:f.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:f.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},bZ={type:f.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},AZ={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",codeName:null,description:null,defaultValue:null,dataType:EZ,readsValue:TZ,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:bZ},IZ={type:f.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:f.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},wZ={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dE,defaultValue:null,writesValues:[AZ],index:0,parent:IZ},RZ={type:f.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},gZ={type:f.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},_Z={type:f.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:f.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},DZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:_Z},OZ={type:f.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:f.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},CZ={type:f.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},$Z={type:f.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:f.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},PZ={type:f.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:f.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},V2={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:$2,name:null,codeName:null,description:null,readsValue:PZ,defaultValue:null,index:0,parent:$Z},VZ={constant:!0,required:!0,type:f.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Changed Account Owner",codeName:null,description:null,defaultValue:null,dataType:DZ,readsValue:OZ,writesValues:[V2],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:CZ},NZ={type:f.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:P2,inputs:[V2],outputs:[wZ],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[RZ],calledBySuccess:[],parent:gZ,error:null,x:0,y:0},LZ={type:f.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:f.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},BZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:LZ},MZ={type:f.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},UZ={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,codeName:null,name:"New Company Owner",defaultValue:null,dataType:BZ,implements:null,required:!0,index:0,writesValues:[VZ],parent:MZ},jZ={type:f.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:f.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},xZ={extends:null,type:f.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,codeName:null,name:"Change Account Owner",inputs:[UZ],collapsed:!0,calls:[NZ],private:!1,index:0,implements:null,x:0,y:0,parent:jZ},FZ={type:f.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:f.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},GZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:FZ},KZ={type:f.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:f.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},kZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Account number",description:null,private:!0,defaultValue:null,implements:jl,static:!1,index:0,dataType:GZ,abstract:!1,parent:KZ},SZ={type:f.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:f.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},qZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:SZ},ZZ={type:f.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:f.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},JZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,codeName:null,name:"Account Owner",index:1,defaultValue:null,dataType:qZ,implements:null,static:!1,private:!0,abstract:!1,parent:ZZ},WZ={type:f.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:f.Project,entityId:ot},Wl={type:f.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[kZ,JZ],methods:[P2,xZ],extends:[],implements:[ni,ls],x:0,y:0,parent:WZ},Ju="bitcoin-api-response-id",N2="time-property-id",L2="disclaimer-property-id",B2="chart-name-property-id",M2="bpi-property-id",Eh="bpi-entity-id",U2="usd-property-id",j2="gbp-property-id",x2="eur-property-id",Hl="currency-entity-id",F2="currency-code-property-id",G2="currency-symbol-property-id",K2="currency-rate-property-id",k2="currency-description-property-id",S2="currency-rate-number-property-id",HZ={type:f.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:F2},YZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"code-property-data-type-id",type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wn,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:HZ},zZ={type:f.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},XZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:F2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"code",description:null,defaultValue:null,dataType:YZ,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:zZ},QZ={type:f.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:G2},eJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"symbol-property-data-type-id",type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wn,isList:!1,asType:!1,options:["&#36;","&pound;","&euro;"],parent:QZ},tJ={type:f.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},rJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:G2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"symbol",description:null,index:0,defaultValue:null,dataType:eJ,implements:null,static:!1,private:!1,abstract:!1,parent:tJ},iJ={type:f.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:K2},sJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"rate-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:iJ},nJ={type:f.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},aJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:K2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"rate",description:null,index:0,defaultValue:null,dataType:sJ,implements:null,static:!1,private:!1,abstract:!1,parent:nJ},oJ={type:f.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:k2},lJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"description-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:oJ},dJ={type:f.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},uJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:k2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"description",description:null,defaultValue:null,dataType:lJ,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:dJ},cJ={type:f.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:S2},pJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"rate-number-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:cJ},fJ={type:f.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},hJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:S2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"rate_float",description:null,defaultValue:null,dataType:pJ,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:fJ},yJ={type:f.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Th={type:f.DefinitionEntity,id:Hl,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[XZ,rJ,aJ,uJ,hJ],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:yJ},mJ={type:f.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:U2},vJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"usd-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Th,isList:!1,asType:!1,parent:mJ},EJ={type:f.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Eh},TJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:U2,type:f.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"USD",description:null,index:0,dataType:vJ,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:EJ},bJ={type:f.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:j2},AJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"gbp-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Th,isList:!1,asType:!1,parent:bJ},IJ={type:f.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Eh},wJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:j2,type:f.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"GBP",description:null,index:0,dataType:AJ,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:IJ},RJ={type:f.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:x2},gJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"eur-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Th,isList:!1,asType:!1,parent:RJ},_J={type:f.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Eh},DJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:x2,type:f.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:gJ,private:!1,abstract:!1,parent:_J},OJ={type:f.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},q2={type:f.DefinitionEntity,id:Eh,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"BPI",description:"The Bitcoin Price Index",properties:[TJ,wJ,DJ],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:OJ},CJ={type:f.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:N2},$J={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"time-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Pl,isList:!1,asType:!1,parent:CJ},PJ={type:f.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Ju},VJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:N2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"time",description:null,index:0,defaultValue:null,dataType:$J,implements:null,static:!1,private:!1,abstract:!1,parent:PJ},NJ={type:f.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:L2},LJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"disclaimer-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:NJ},BJ={type:f.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Ju},MJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:L2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:LJ,implements:null,static:!1,private:!1,abstract:!1,parent:BJ},UJ={type:f.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:B2},jJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"chart-name-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:UJ},xJ={type:f.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Ju},FJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:B2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"chartName",description:null,index:0,defaultValue:null,dataType:jJ,implements:null,static:!1,private:!1,abstract:!1,parent:xJ},GJ={type:f.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:M2},KJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"bpi-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:q2,isList:!1,asType:!1,parent:GJ},kJ={type:f.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Ju},SJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:M2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:KJ,static:!1,private:!1,abstract:!1,parent:kJ},qJ={type:f.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Z2={type:f.DefinitionEntity,id:Ju,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[VJ,MJ,FJ,SJ],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:qJ},ZJ={type:f.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:f.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},JJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:ZJ},WJ={type:f.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:f.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},HJ={type:f.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:f.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},YJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:HJ},zJ={type:f.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:f.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},J2={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:YJ,readsValue:zJ,required:!0,index:0,parent:WJ},XJ={type:f.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:f.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},QJ={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:JJ,writesValues:[J2],required:!0,index:0,parent:XJ},eW={type:f.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},tW={type:f.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:f.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},rW={type:f.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:f.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},iW={type:f.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[J2],calledByError:[],calledByEntry:[tW],calledBySuccess:[],throws:null,x:0,y:0,parent:rW},sW={extends:null,type:f.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[QJ],calls:[iW],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:eW},nW={type:f.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},aW={type:f.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},oW={type:f.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:f.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},lW={type:f.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:f.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},dW={type:f.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:f.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},uW={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jn,asType:!1,isList:!1,parent:dW},uE={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:uW,implements:null,readsValue:lW,required:!0,index:0,parent:oW},cW={type:f.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},W2={type:f.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[uE],calledByError:[],calledByEntry:[],calledBySuccess:[nW,cW],throws:null,x:0,y:0,parent:aW},pW={type:f.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},fW={type:f.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:f.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},H2={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:cv,codeName:null,name:null,description:null,readsValue:fW,defaultValue:null,parent:pW,index:2},hW={type:f.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:f.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},yW={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jn,isList:!1,asType:!1,parent:hW},mW={type:f.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},vW={type:f.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:f.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},EW={type:f.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:f.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},Y2={constant:!0,required:!0,type:f.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:yW,readsValue:vW,writesValues:[uE],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[EW],successCalls:[W2],errorCalls:[],internalCalls:[],x:0,y:0,parent:mW},TW={type:f.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:f.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},bW={type:f.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},AW={type:f.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Uf,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:X.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:TW,autogeneration:null},index:1,parent:bW},IW={type:f.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},wW={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Kf,index:2,writesValues:[Y2],parent:IW},RW={type:f.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},gW={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Mf,codeName:null,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:RW},_W={type:f.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},DW={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:null,description:null,declaration:jf,index:3,readsValue:null,defaultValue:null,parent:_W},OW={type:f.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},CW={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xf,codeName:null,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:OW},$W={type:f.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},PW={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Gf,index:1,writesValues:[],parent:$W},VW={type:f.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NW={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ff,index:0,writesValues:[],parent:VW},LW={type:f.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},BW={type:f.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},MW={type:f.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},UW={type:f.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},jW={type:f.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:f.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},xW={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,asType:!1,isList:!1,parent:jW},FW={type:f.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:f.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},z2={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",codeName:null,description:"The error that occurred during the HTTP request to the government company registry",dataType:xW,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:FW},GW={type:f.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[UW],calledByEntry:[],calledBySuccess:[],throws:z2,x:0,y:0,parent:MW},KW={type:f.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},kW={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:f.OutputMap,declaration:pv,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[z2],index:0,parentRelationType:Ol.Error,parent:KW},SW={type:f.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ru,inputs:[gW,AW,H2,DW,CW],outputs:[NW,PW,wW],process:null,calledByError:[],calledByEntry:[LW],calledBySuccess:[],successCalls:[W2,Y2],errorCalls:[GW],error:kW,x:0,y:0,parent:BW},qW={type:f.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:f.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},ZW={type:f.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:f.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},JW={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nf,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:X.String,parent:qW,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:ZW},WW={type:f.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:f.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},HW={type:f.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},YW={type:f.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:f.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},zW={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:YW},XW={type:f.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:f.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},QW={type:f.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:f.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},X2={constant:!0,required:!0,type:f.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",defaultValue:null,dataType:zW,readsValue:XW,writesValues:[H2],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[QW],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:HW},eH={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[X2],declaration:Iu,index:0,parent:WW},tH={type:f.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},rH={type:f.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},iH={type:f.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:f.ArgumentDeclaration},sH={type:f.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:f.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Q2={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Lf,codeName:null,name:null,description:null,readsValue:iH,defaultValue:null,index:1,parent:sH},nH={type:f.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:wu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Q2,JW],outputs:[eH],process:null,calledByError:[],calledByEntry:[tH],calledBySuccess:[],successCalls:[X2],errorCalls:[],error:null,x:0,y:0,parent:rH},aH={type:f.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:f.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},oH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:aH},lH={type:f.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},eL={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:oH,defaultValue:null,implements:null,required:!1,writesValues:[Q2],index:0,parent:lH},dH={type:f.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:f.Project,entityId:ot},tL={extends:null,type:f.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Check Gov Company Registry availability",description:"Check whether the company name is already registered in the government company registry, or it is available for a new company to use.",inputs:[eL],calls:[nH,SW],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:dH},uH={type:f.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:f.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},cH={type:f.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},pH={type:f.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:f.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},fH={type:f.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:f.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},rL={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:eL,codeName:null,name:null,description:null,readsValue:pH,defaultValue:null,index:0,parent:fH},hH={type:f.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:f.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},yH={type:f.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:f.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},mH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jn,asType:!1,isList:!1,parent:yH},vH={type:f.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:f.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},EH={type:f.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},TH={type:f.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:f.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},iL={constant:!0,required:!0,type:f.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:mH,readsValue:vH,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[TH],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:EH},bH={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:uE,defaultValue:null,writesValues:[iL],index:0,parent:hH},AH={type:f.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:tL,inputs:[rL],outputs:[bH],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[uH],successCalls:[iL],errorCalls:[],error:null,x:0,y:0,parent:cH},IH={type:f.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},wH={type:f.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},RH={type:f.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:f.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},gH={type:f.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:f.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},sL={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Oo.inputs[0],codeName:null,name:null,description:null,readsValue:RH,defaultValue:null,index:0,parent:gH},_H={type:f.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oo,inputs:[sL],calledByError:[],calledByEntry:[IH],calledBySuccess:[],successCalls:[AH],errorCalls:[],x:0,y:0,parent:wH},DH={type:f.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},OH={type:f.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:f.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},CH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wl,asType:!1,isList:!1,parent:OH},$H={type:f.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},PH={type:f.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:f.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},VH={type:f.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},nL={constant:!0,required:!0,type:f.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:CH,readsValue:PH,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[VH],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$H},NH={type:f.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:f.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},LH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wl,asType:!1,isList:!1,parent:NH},BH={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",codeName:null,description:"The new bank account of the company",dataType:LH,implements:null,defaultValue:null,required:!0,index:1,writesValues:[nL],parent:DH},MH={type:f.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},UH={type:f.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},jH={type:f.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:f.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},xH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:jH},FH={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New company name",description:null,dataType:xH,implements:null,defaultValue:null,required:!0,index:0,writesValues:[sL,rL],parent:UH},GH={extends:null,type:f.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[FH,BH],calls:[_H,nL],index:1,private:!1,implements:null,x:0,y:0,parent:MH},KH={type:f.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"employee-entity-id"},kH={type:f.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:"employee-manager-property-id"},SH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-manager-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:KH,isList:!1,asType:!1,parent:kH},qH={type:f.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"employee-entity-id"},ZH={interactive:!0,extends:null,constant:!1,required:!0,hidden:!1,type:f.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:SH,abstract:!1,parent:qH},JH={type:f.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:"employee-start-date-property-id"},WH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-start-date-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:hn,isList:!1,asType:!1,parent:JH},HH={type:f.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"employee-entity-id"},YH={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:WH,abstract:!1,parent:HH},zH={type:f.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:f.Property,entityId:"employee-department-property-id"},XH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-department-property-data-type-id",type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wn,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:zH},QH={type:f.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"employee-entity-id"},eY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,defaultValue:null,implements:null,static:!1,private:!1,dataType:XH,abstract:!1,parent:QH},tY={type:f.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Rs={type:f.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employee",description:"A entity that represents an employee in the company",properties:[eY,YH,ZH],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Di],x:0,y:0,parent:tY},rY={type:f.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:f.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},iY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:rY},sY={type:f.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},nY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:iY,abstract:!1,parent:sY},aY={type:f.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:f.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},oY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wl,isList:!1,asType:!1,parent:aY},lY={type:f.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},cE={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:oY,abstract:!1,parent:lY},dY={type:f.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:f.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},uY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:dY},cY={type:f.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},pY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:uY,private:!0,abstract:!1,parent:cY},fY={type:f.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:f.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},hY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,isList:!0,asType:!1,parent:fY},yY={type:f.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},mY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employees",description:null,index:3,defaultValue:null,dataType:hY,implements:null,private:!0,static:!1,abstract:!1,parent:yY},vY={id:"company-prototype-primary-key-property-data-type-ref-id",type:f.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:f.Property},EY={id:"company-prototype-primary-key-property-ref-id",type:f.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:f.Property},TY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parent:EY},bY={id:"company-prototype-primary-key-property-parent-ref-id",type:f.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:f.DefinitionEntity},AY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",codeName:null,name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:jl,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.UUID,value:null,parent:vY,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:TY,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:bY},IY={type:f.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:f.Project,entityId:ot},gs={type:f.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company",description:null,properties:[nY,cE,pY,mY,AY],static:!1,abstract:!1,abstractMethods:[],methods:[sW,GH],extends:[],implements:[ni,ls],x:0,y:0,parent:IY},wY={type:f.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:f.Project,entityId:ot},pE={extends:null,type:f.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:wY};f.GenericReference,f.DataType;const RY={id:"cron-job-entity-expression-property-ref-id",type:f.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:f.Property},gY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:RY},_Y={id:"cron-job-entity-ref-id",type:f.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:f.DefinitionEntity},DY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:f.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:gY,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:_Y},OY={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:f.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:f.FunctionDeclaration},CY={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:f.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:f.FunctionDeclaration},$Y={id:"cron-job-entity-trigger-show-popup-func-call-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.FunctionCall,declaration:pE,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[OY],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:CY},PY={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:f.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:f.DefinitionEntity},VY={extends:null,id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.FunctionDeclaration,codeName:null,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:qv,calls:[$Y],collapsed:!1,index:0,x:0,y:0,parent:PY},NY={id:"cron-job-entity-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},LY={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DefinitionEntity,codeName:null,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[DY],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[rh],methods:[VY],x:0,y:0,parent:NY},BY={type:f.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:f.Project,entityId:ot},MY={type:f.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[Ki],x:0,y:0,parent:BY},bh="f558fbf8-67de-4545-9804-6ae621e0b2d4",UY={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},jY={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},xY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Fe,asType:!1,parent:jY},FY={id:"getCompanyByIdEndpointReachedEntityEventRef",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},GY={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},KY={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},kY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:zr,asType:!1,parent:KY},SY={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:f.ArgumentDeclaration,writesValues:[],codeName:null,name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:GY,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:kY,implements:Lv,required:!0,index:0,parent:FY},qY={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},ZY={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:f.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:UY,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:xY,implements:Bv,required:!0,index:1,parent:qY},JY={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},WY={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},HY={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},YY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Fe,parent:HY},zY={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:f.ArgumentDeclaration,writesValues:[],codeName:null,name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:WY,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:YY,implements:Mv,required:!0,index:2,parent:JY},XY={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},QY={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},ez={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:zr,parent:QY},tz={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:f.ArgumentDeclaration,writesValues:[],codeName:null,name:"Request body",defaultValue:null,dataType:ez,implements:Uv,index:3,required:!0,parent:XY},rz={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},iz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:rz},sz={id:"getCompanyByIdEndpointReturnStatementRef",type:f.GenericReference,version:"1",entityType:f.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},nz={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:f.ReturnDeclaration,codeName:null,name:"Response code",defaultValue:null,dataType:iz,implements:jv,readsValue:null,required:!0,index:0,parent:sz},az={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},oz={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},lz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:zr,asType:!1,parent:oz},dz={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:f.GenericReference,version:"1",entityType:f.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},uz={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:f.ReturnDeclaration,codeName:null,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:az,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:lz,implements:xv,readsValue:null,required:!0,index:1,parent:dz},cz={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},pz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:zr,parent:cz},fz={id:"getCompanyByIdEndpointReturnStatementRefThree",type:f.GenericReference,version:"1",entityType:f.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},hz={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:f.ReturnDeclaration,codeName:null,name:"Response body",implements:Fv,defaultValue:null,dataType:pz,readsValue:null,required:!0,index:2,parent:fz},yz={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:f.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:f.FunctionDeclaration},mz={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};f.ReturnStatement;const vz={id:"endpointBuiltInBaseEntityRefFour",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:bh},Ez={extends:null,id:"getCompanyByIdEndpointReachedEntityEvent",codeName:null,name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.FunctionDeclaration,inputs:[SY,ZY,zY,tz],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Gv,index:0,private:!1,x:0,y:0,parent:vz},Tz={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"getCompanyByIdEndpointPathProperty"},bz={id:"getCompanyByIdEndpointPathPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"getCompanyByIdEndpointPathProperty"},Az={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:bz},Iz={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:f.GenericReference,version:"1",entityType:f.DefinitionEntity,entityId:bh},wz={interactive:!0,extends:null,constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,codeName:null,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,static:!0,implements:Vv,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"/company/{id}",parent:Tz,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:Az,index:1,description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:Iz},Rz={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"getCompanyByIdEndpointMethodProperty"},gz={id:"getCompanyByIdEndpointMethodPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"getCompanyByIdEndpointMethodProperty"},_z={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Wn,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:gz},Dz={id:"getCompanyByIdEndpointBaseEntityRefThree",type:f.GenericReference,version:"1",entityType:f.DefinitionEntity,entityId:bh},Oz={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",codeName:null,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,static:!0,implements:Nv,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:X.Enum,parent:Rz,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:_z,description:null,parent:Dz},Cz={type:f.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:f.Project,entityId:ot},$z={type:f.DefinitionEntity,id:bh,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Get given company data by id",description:null,properties:[wz,Oz],methods:[Ez],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[Ki],x:0,y:0,parent:Cz},Pz={id:"plant-prototype-database-property-ref-id",type:f.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:f.Property},Vz={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:f.Property},Nz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!1,parent:Pz},Lz={id:"plant-prototype-database-property-parent-ref-id",type:f.GenericReference,entityId:"plant-entity-id",version:"1",entityType:f.DefinitionEntity},Bz={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:aE,autogeneration:null,parent:Vz},dataType:Nz,description:"The database that the entity belongs to.",parent:Lz},Mz={type:f.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:f.Property,entityId:"plant-name-property-id"},Uz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"plant-name-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:Mz},jz={type:f.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"plant-entity-id"},xz={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:Uz,abstract:!1,parent:jz},Fz={type:f.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Gz={type:f.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[Bz,xz],methods:[],extends:[],implements:[ni],x:0,y:0,parent:Fz},Kz={id:"product-prototype-database-property-ref-id",type:f.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:f.Property},kz={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:f.Property},Sz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"product-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!1,parent:Kz},qz={id:"product-prototype-database-property-parent-ref-id",type:f.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:f.DefinitionEntity},Zz={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:oE,autogeneration:null,parent:kz},dataType:Sz,description:"The database that the entity belongs to.",parent:qz},Jz={type:f.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:f.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},Wz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:Jz},Hz={type:f.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:f.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},Yz={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:Wz,abstract:!1,parent:Hz},zz={type:f.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:f.Project,entityId:ot},Xz={id:"product-prototype-primary-key-property-data-type-ref-id",type:f.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:f.Property},Qz={id:"product-prototype-primary-key-property-ref-id",type:f.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:f.Property},eX={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parent:Qz},tX={id:"product-prototype-primary-key-property-parent-ref-id",type:f.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:f.DefinitionEntity},rX={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",codeName:null,name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.UUID,value:null,parent:Xz,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:eX,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:tX},iX={type:f.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Product",description:"A product that can be sold",implements:[ni,ls],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[rX,Zz,Yz],methods:[],x:0,y:0,parent:zz},Yl="project-loaded-event-id",ta="get-bitcoin-price-http-call-operation-id",aL="get-bitcoin-price-http-call-response-body-id",Ah="validate-bitcoin-price-response-operation-ids",sX={type:f.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:aL},nX={type:f.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ah},oL={id:"validate-bitcoin-data-to-validate-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:To.inputs[1],codeName:null,name:null,description:null,readsValue:sX,defaultValue:null,index:0,parent:nX},aX={type:f.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},oX={type:f.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ah},lX={id:"validate-bitcoin-type-to-match-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:To.inputs[0],codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Z2,value:null,parent:aX,autogeneration:null},index:0,parent:oX},dX={type:f.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ah},uX={id:"validate-bitcoin-validated-entity-output-map-id",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:To.outputs[0],writesValues:[],index:0,parent:dX},cX={type:f.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:f.GlobalEvent,entityId:Yl},pX={type:f.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:f.Operation,entityId:ta},fX={type:f.Operation,id:Ah,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:To,inputs:[lX,oL],outputs:[uX],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[pX],parent:cX},hX={type:f.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:f.FunctionCall,entityId:ta},yX={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Mf,codeName:null,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:hX},mX={type:f.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:f.FunctionCall,entityId:ta},vX={type:f.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:f.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},EX={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Uf,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:X.String,parent:vX,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:mX},TX={type:f.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:f.FunctionCall,entityId:ta},bX={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:jf,codeName:null,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:TX},AX={type:f.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:f.FunctionCall,entityId:ta},IX={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:xf,codeName:null,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:AX},wX={type:f.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:f.FunctionCall,entityId:ta},RX={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.OutputMap,defaultValue:null,declaration:Gf,writesValues:[],index:1,parent:wX},gX={type:f.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:f.FunctionCall,entityId:ta},_X={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.OutputMap,defaultValue:null,declaration:Ff,writesValues:[],index:0,parent:gX},DX={type:f.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:f.FunctionCall,entityId:ta},OX={id:aL,type:f.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Kf,writesValues:[oL],index:2,parent:DX},CX={type:f.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:f.GlobalEvent,entityId:Yl},$X={type:f.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:f.GlobalEvent,entityId:Yl},PX={type:f.Operation,id:ta,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ru,inputs:[yX,EX,bX,IX],outputs:[_X,RX,OX],process:null,parent:$X,calledByError:[],calledByEntry:[CX],calledBySuccess:[],successCalls:[fX],errorCalls:[],error:null,x:0,y:0},VX={type:f.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:f.GlobalEvent,entityId:Yl},NX={type:f.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:f.GlobalEvent,entityId:Yl},LX={process:null,type:f.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pE,inputs:[],outputs:[],calledByError:[],calledByEntry:[VX],calledBySuccess:[],parent:NX,successCalls:[],errorCalls:[],error:null,x:0,y:0},BX={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:f.GenericReference,version:"1",entityType:f.Project,entityId:ot},MX={type:f.GlobalEvent,id:Yl,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:qn.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:sh,parent:BX,inputs:[],calls:[LX,PX],x:0,y:0},ds="abort-execution-func-declaration-id",Wu="abort-execution-func-exec-var-declaration-id",fE="abort-execution-func-small-wait-op-id",hE="abort-execution-func-long-wait-op-id",lL="abort-execution-func-long-wait-process-output-id",dL="abort-execution-func-exec-var-instance-write-id",uL="abort-execution-func-long-wait-return-stmt-id",cL="abort-execution-func-small-wait-return-stmt-id",UX="abort-execution-func-exec-var-instance-abort-call-id",yE="abort-execution-func-exec-var-instance-abort-internal-call-id",mE="abort-execution-func-exec-second-wait-op-id",jX={type:f.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},xX={type:f.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},FX={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:jX},GX={type:f.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:cL},KX={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",codeName:null,description:"A random string that is returned by the function",defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:xX},dataType:FX,implements:null,readsValue:null,required:!0,index:0,parent:GX},kX={type:f.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:mE},SX={type:f.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},qX={type:f.ReturnStatement,id:cL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[KX],calledByError:[],calledByEntry:[],calledBySuccess:[kX],throws:null,x:0,y:0,parent:SX},ZX={type:f.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"second-wait-argument-map-id"},JX={type:f.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:mE},WX={id:"second-wait-argument-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:X.Number,parent:ZX},index:0,parent:JX},HX={type:f.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},YX={type:f.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:f.InternalCall,entityId:yE},zX={id:mE,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gi,inputs:[WX],outputs:[],process:null,successCalls:[qX],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[YX],error:null,parent:HX},XX={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:f.VariableInstance,entityId:dL},QX={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:f.Operation,entityId:fE},eQ={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},tQ={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:f.VariableDeclaration,entityId:Wu},rQ={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:f.InternalCall,entityId:yE},iQ={id:UX,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:tQ,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[rQ],parent:eQ},pL={id:yE,type:f.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:Zv,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[XX,QX],successCalls:[zX],errorCalls:[],error:null,index:0,parent:iQ},sQ={type:f.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},nQ={type:f.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:f.VariableDeclaration,entityId:Wu},aQ={type:f.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},oQ={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Wu},lQ={type:f.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:lL},vE={id:dL,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:oQ,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[aQ],calledBySuccess:[nQ],successCalls:[pL],errorCalls:[],x:0,y:0,readsValue:lQ,writesValues:[],internalCalls:[],parent:sQ},dQ={type:f.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Wu};f.GenericReference,f.DataType;const uQ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:ih,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:dQ},cQ={type:f.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},pQ={type:f.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},fQ={constant:!0,required:!0,id:Wu,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:uQ,inputs:[],outputs:[],calledByError:[],calledByEntry:[pQ],calledBySuccess:[],successCalls:[vE],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:cQ},hQ={type:f.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},yQ={type:f.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},mQ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:hQ},vQ={type:f.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:uL},EQ={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",codeName:null,description:"A random string that is returned by the function",implements:null,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:yQ},dataType:mQ,readsValue:null,required:!0,index:0,parent:vQ},TQ={type:f.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:hE},bQ={type:f.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},AQ={type:f.ReturnStatement,id:uL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[EQ],calledByError:[],calledByEntry:[],calledBySuccess:[TQ],throws:null,x:0,y:0,parent:bQ},IQ={type:f.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"long-argument-map-id"},fL={type:f.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:hE},wQ={id:"long-argument-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:X.Number,parent:IQ},index:0,parent:fL},RQ={type:f.GenericReference,id:"long-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},gQ={type:f.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},_Q={id:lL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:nh,writesValues:[vE],index:0,parent:fL},DQ={id:hE,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gi,inputs:[wQ],outputs:[],process:_Q,successCalls:[AQ],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[gQ],calledBySuccess:[],error:null,parent:RQ},OQ={type:f.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"small-wait-argument-map-id"},CQ={type:f.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:fE},$Q={id:"small-wait-argument-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:X.Number,parent:OQ},index:0,parent:CQ},PQ={type:f.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},VQ={type:f.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},NQ={id:fE,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gi,inputs:[$Q],outputs:[],process:null,successCalls:[pL],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[VQ],calledBySuccess:[],error:null,parent:PQ},LQ={type:f.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},hL={extends:null,id:ds,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[NQ,fQ,vE,DQ],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:LQ},BQ={type:f.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},MQ={id:"call-execution-abort-func-id",type:f.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:hL,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:BQ},Ih="manual-hello-world-loop-func-decl-id",yL="manual-hello-world-loop-func-return-statement-id",bn="manual-hello-world-loop-id",Hu="manual-hello-world-loop-body-id",EE="manual-hello-world-loop-break-statement-id",Yu="manual-hello-world-loop-current-iteration-number-output-map-id",TE="manual-hello-world-loop-previous-iterations-results-output-map-id",bE="assembled-hello-world-text-output-id",UQ="assembled-hello-world-list-output-id",zu="iteration-number-is-equal-or-greater-than-10-condition-id",wh="join-hello-world-and-number-operation-id",Rh="append-string-to-list-operation-id",mL="hello-world-loop-output-map-id",jQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:f.ReturnStatement,entityId:yL},xQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:f.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},FQ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!0,asType:!1,parent:xQ},GQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:f.OutputMap,entityId:mL},vL={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:"Results",codeName:null,description:null,defaultValue:null,dataType:FQ,implements:null,readsValue:GQ,required:!0,index:0,parent:jQ},KQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:f.Loop,entityId:bn},kQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:f.FunctionDeclaration,entityId:Ih},SQ={type:f.ReturnStatement,id:yL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vL],calledByError:[],calledByEntry:[],calledBySuccess:[KQ],parent:kQ,throws:null,x:0,y:0},qQ={type:f.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:f.BreakStatement,entityId:EE},EL={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:"Iteration result",codeName:null,description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:qQ},ZQ={type:f.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:f.ArgumentDeclaration,entityId:Yu},JQ={type:f.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:f.BreakStatement,entityId:EE},TL={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:"Iteration counter",codeName:null,description:null,implements:null,defaultValue:null,dataType:null,readsValue:ZQ,required:!0,index:1,parent:JQ},WQ={type:f.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:f.Condition,entityId:zu},HQ={type:f.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},YQ={type:f.BreakStatement,id:EE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[EL,TL],calledByError:[],calledByEntry:[],calledBySuccess:[WQ],parent:HQ,throws:null,x:0,y:0};f.GenericReference,f.InputMap;const zQ={type:f.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Rh},XQ={type:f.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:TE},bL={id:"append-string-to-list-base-string-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:nv,codeName:null,name:null,description:null,readsValue:XQ,defaultValue:null,index:0,parent:zQ},QQ={type:f.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Rh},eee={id:UQ,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[EL],declaration:Iu,index:0,parent:QQ},tee={type:f.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:f.Condition,entityId:zu},ree={type:f.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:bE},iee={type:f.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:f.Operation,entityId:Rh},AL={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:av,codeName:null,name:null,description:null,readsValue:ree,defaultValue:null,index:1,parent:iee},see={type:f.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:bn},nee={type:f.Operation,id:Rh,declaration:Bf,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[bL,AL],outputs:[eee],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[tee],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:see},aee={type:f.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:f.ContinueStatement,entityId:"hello-world-loop-continue-statement"},oee={type:f.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},lee={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:oee},dee={type:f.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:bE},IL={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:"Iteration result",codeName:null,description:null,defaultValue:null,implements:null,dataType:lee,readsValue:dee,required:!0,index:0,parent:aee},uee={type:f.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:f.Condition,entityId:zu},cee={type:f.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},pee={type:f.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[IL],calledBySuccess:[],calledByError:[uee],calledByEntry:[],parent:cee,throws:null,x:0,y:0},fee={type:f.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Hu},hee={type:f.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},yee={type:f.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:Yu},wL={type:f.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:f.Condition,entityId:zu},mee={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Fl.inputs[0],codeName:null,name:null,description:null,readsValue:yee,index:0,defaultValue:null,parent:wL},vee={type:f.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"max-num-iterations-value-map-id"},Eee={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Fl.inputs[1],codeName:null,name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:vee},parent:wL},Tee={type:f.Condition,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fl,inputs:[mee,Eee],calledByError:[],calledByEntry:[fee],calledBySuccess:[],successCalls:[YQ,nee],errorCalls:[pee],x:0,y:0,parent:hee},bee={type:f.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:f.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},Aee={type:f.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:wh},Iee={id:"join-hello-world-and-number-base-string-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nf,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:X.String,parent:bee,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:Aee},wee={type:f.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:wh},Ree={id:bE,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[AL,IL],declaration:Iu,index:0,parent:wee},gee={type:f.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Hu},_ee={type:f.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:Yu},Dee={type:f.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:f.Operation,entityId:wh},RL={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Lf,codeName:null,name:null,description:null,readsValue:_ee,defaultValue:null,index:1,parent:Dee},Oee={type:f.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:bn},Cee={type:f.Operation,id:wh,declaration:wu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Iee,RL],outputs:[Ree],process:null,calledByError:[],calledByEntry:[gee],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:Oee},$ee={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:TE,version:"1",entityType:f.ArgumentDeclaration},Pee={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:$ee},Vee={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:f.GenericReference,entityId:Hu,version:"1",entityType:f.FunctionDeclaration},Nee={constant:!0,id:TE,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",codeName:null,description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:Pee,implements:null,writesValues:[bL],index:1,parent:Vee},Lee={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:f.GenericReference,entityId:Hu,version:"1",entityType:f.FunctionDeclaration},Bee={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:Yu,version:"1",entityType:f.ArgumentDeclaration};f.DataType;const Mee={constant:!0,id:Yu,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",codeName:null,description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:wv,defaultValue:null,dataType:null,writesValues:[RL,TL],index:0,parent:Lee},Uee={id:"manual-flow-loop-body-parent-ref-id",type:f.GenericReference,entityId:bn,version:"1",entityType:f.Loop},jee={extends:null,id:Hu,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[Mee,Nee],calls:[Tee,Cee],implements:Wf,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Uee},xee={type:f.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},gL={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ValueDescriptor,name:"Iteration result",codeName:null,defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:oe.FixedReturns,index:0,parent:xee},Fee={type:f.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},Gee={type:f.OutputMap,id:mL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gL,writesValues:[vL],index:0,parent:Fee},Kee={id:"manual-hello-world-loop-parent-ref-id",type:f.GenericReference,entityId:Ih,version:"1",entityType:f.FunctionDeclaration},kee={id:"manual-hello-world-loop-called-by-ref-id",type:f.GenericReference,entityId:Ih,version:"1",entityType:f.FunctionDeclaration},See={id:bn,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Jf,inputs:[],outputsDeclarations:[gL],outputs:[Gee],body:jee,successCalls:[SQ],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[kee],calledBySuccess:[],x:0,y:0,parent:Kee},qee={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},_L={extends:null,type:f.FunctionDeclaration,id:Ih,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual loop wrapper function",codeName:null,description:null,inputs:[],calls:[See],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:qee},Zee={type:f.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Jee={id:"call-hello-world-loop-id",type:f.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_L,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:Zee},ra="company-dto-function-declaration-id",AE="company-dto-func-declaration-argument-dcl-id",An="company-dto-function-company-variable-id",Pa="company-dto-function-company-dto-variable-id",zl="iterate-over-employee-list-loop-id",DL="iterate-over-employee-list-loop-employee-dto-output-map-id",IE="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",gh="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",OL="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",CL="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",$L="iterate-over-employee-list-continue-statement-id",_h="iterate-over-employee-list-loop-body-id",PL="company-dto-func-declaration-return-statement-id",VL="company-dto-func-declaration-return-decl-id",NL="company-dto-func-declaration-company-variable-id-output-map-id",LL="company-dto-func-declaration-company-variable-employess-output-map-id",BL="company-dto-func-declaration-company-variable-name-output-map-id",Wee="company-dto-func-declaration-company-dto-variable-input-map-id",Hee="company-dto-func-declaration-company-dto-variable-employess-input-map-id",Yee="company-dto-func-declaration-company-dto-variable-name-input-map-id",Dh="company-dto-func-declaration-owner-variable-id",zee="company-dto-func-declaration-company-dto-variable-owner-input-map-id",ML="company-dto-func-declaration-company-variable-owner-output-map-id",UL="company-dto-func-declaration-owner-variable-id-output-map-id",Oh="company-dto-func-declaration-bank-account-variable-id",Xee="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",jL="company-dto-func-declaration-company-variable-bank-account-output-map-id",xL="company-dto-func-declaration-bank-account-variable-id-output-map-id",Qee={type:f.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:UL},ete={type:f.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},FL={id:zee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:Qee,parent:ete},tte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:xL},rte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},GL={id:Xee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:tte,parent:rte},ite={type:f.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:BL},ste={type:f.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},KL={id:Yee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"name",description:null,defaultValue:null,index:3,readsValue:ite,parent:ste},nte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:DL},ate={type:f.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},kL={id:Hee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:nte,parent:ate},ote={type:f.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:NL},lte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},SL={id:Wee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:ote,parent:lte},dte={type:f.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:VL},ute={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:dte},cte={type:f.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:PL},pte={type:f.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},qL={constant:!0,isError:!1,id:VL,type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,implements:null,dataType:ute,readsValue:pte,required:!0,index:0,parent:cte},fte={type:f.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Pa},hte={type:f.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra},ZL={type:f.ReturnStatement,id:PL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[qL],calledByError:[],calledByEntry:[],calledBySuccess:[fte],throws:null,x:0,y:0,parent:hte},yte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra},mte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:f.VariableDeclaration,entityId:Oh},vte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:f.VariableDeclaration,entityId:Dh},Ete={type:f.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:f.VariableDeclaration,entityId:zl},wE={constant:!0,required:!0,id:Pa,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[mte,vte,Ete],successCalls:[ZL],errorCalls:[],readsValue:null,writesValues:[qL],inputs:[SL,KL,GL,FL,kL],outputs:[],internalCalls:[],parent:yte,x:0,y:0},No="employee-dto-func-declaration-id",RE="employee-dto-func-declaration-argument-dcl-id",JL="employee-dto-func-declaration-return-statement-id",WL="employee-dto-func-declaration-return-decl-id",Lo="employee-dto-func-declaration-employee-variable-id",Bo="employee-dto-func-declaration-employee-dto-variable-id",Ch="employee-dto-func-declaration-manager-variable-id",HL="employee-dto-func-declaration-employee-variable-id-output-map-id",YL="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",zL="employee-dto-func-declaration-employee-variable-department-output-map-id",XL="employee-dto-func-declaration-employee-variable-manager-output-map-id",QL="employee-dto-func-declaration-manager-variable-id-output-map-id",Tte="employee-dto-func-declaration-employee-dto-variable-input-map-id",bte="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",Ate="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",Ite="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",wte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:QL},Rte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},e4={id:Ite,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:wte,parent:Rte},gte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:zL},_te={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},t4={id:Ate,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:gte,parent:_te},Dte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:YL},Ote={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},r4={id:bte,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:Dte,parent:Ote},Cte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:HL},$te={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},i4={id:Tte,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Cte,parent:$te},Pte={type:f.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:WL},Vte={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:Pte},Nte={type:f.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:JL},Lte={type:f.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},s4={constant:!0,isError:!1,id:WL,type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:Vte,implements:null,readsValue:Lte,required:!0,index:0,parent:Nte},Bte={type:f.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Bo},Mte={type:f.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:No},n4={type:f.ReturnStatement,id:JL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[s4],calledByError:[],calledByEntry:[],calledBySuccess:[Bte],throws:null,x:0,y:0,parent:Mte},Ute={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:No},jte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ch},xte={constant:!0,required:!0,id:Bo,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",codeName:null,dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[jte],successCalls:[n4],errorCalls:[],readsValue:null,writesValues:[s4],inputs:[i4,r4,t4,e4],outputs:[],internalCalls:[],parent:Ute,x:0,y:0},Fte={type:f.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ch},Gte={id:QL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[e4],parent:Fte},Kte={type:f.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ch},kte={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,parent:Kte},Ste={type:f.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:XL},qte={type:f.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:No};f.GenericReference,f.VariableDeclaration;const a4={constant:!0,required:!0,id:Ch,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:kte,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[xte],errorCalls:[],readsValue:Ste,writesValues:[],inputs:[],outputs:[Gte],internalCalls:[],parent:qte,x:0,y:0},Zte={type:f.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},Jte={id:XL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rs.properties[2],index:3,writesValues:[a4],parent:Zte},Wte={type:f.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},Hte={id:zL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rs.properties[0],index:2,writesValues:[t4],parent:Wte},Yte={type:f.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},zte={id:YL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[1],index:1,writesValues:[r4],parent:Yte},Xte={type:f.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},Qte={id:HL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[i4],parent:Xte},ere={type:f.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},tre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,parent:ere},rre={type:f.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:No},ire={type:f.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:f.ArgumentDeclaration,entityId:RE},sre={type:f.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:f.FunctionDeclaration,entityId:No},o4={constant:!0,required:!0,id:Lo,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company employee",dataType:tre,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[sre],calledBySuccess:[],successCalls:[a4],errorCalls:[],readsValue:ire,writesValues:[],inputs:[],outputs:[Qte,zte,Hte,Jte],internalCalls:[],parent:rre,x:0,y:0},nre={type:f.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:RE,version:"1",entityType:f.ArgumentDeclaration},are={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,like:!1,inferred:!1,parent:nre},ore={type:f.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:No,version:"1",entityType:f.FunctionDeclaration},lre={constant:!0,type:f.ArgumentDeclaration,id:RE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",codeName:null,description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:are,index:0,writesValues:[o4],parent:ore},dre={type:f.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},gE={extends:null,type:f.FunctionDeclaration,id:No,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[lre],calls:[o4],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:dre},ure={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:f.GenericReference,entityId:OL,version:"1",entityType:f.ReturnDeclaration},cre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:ure},pre={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:f.GenericReference,entityId:CL,version:"1",entityType:f.OutputMap},fre={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:f.GenericReference,entityId:$L,version:"1",entityType:f.ContinueStatement},l4={constant:!0,isError:!1,id:OL,type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",codeName:null,description:"The DTO of the employee entity.",defaultValue:null,readsValue:pre,dataType:cre,implements:null,required:!0,index:0,parent:fre},hre={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:f.GenericReference,entityId:gh,version:"1",entityType:f.FunctionCall},yre={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:f.GenericReference,entityId:zl,version:"1",entityType:f.Loop},mre={id:$L,type:f.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[hre],outputs:[l4],throws:null,x:0,y:0,parent:yre},vre={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:f.GenericReference,entityId:gh,version:"1",entityType:f.FunctionCall},Ere={id:CL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:n4.outputs[0],writesValues:[l4],index:0,parent:vre},Tre={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:f.GenericReference,entityId:IE,version:"1",entityType:f.ArgumentDeclaration},bre={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:f.GenericReference,entityId:gh,version:"1",entityType:f.FunctionCall},d4={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:gE.inputs[0],readsValue:Tre,index:0,defaultValue:null,parent:bre},Are={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:f.GenericReference,entityId:_h,version:"1",entityType:f.FunctionDeclaration},Ire={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:f.GenericReference,entityId:_h,version:"1",entityType:f.FunctionDeclaration},wre={id:gh,type:f.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gE,inputs:[d4],process:null,outputs:[Ere],calledByError:[],calledByEntry:[Are],calledBySuccess:[],successCalls:[mre],errorCalls:[],error:null,x:0,y:0,parent:Ire},Rre={type:f.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:IE,version:"1",entityType:f.ArgumentDeclaration},gre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,isList:!1,asType:!1,parent:Rre},_re={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:_h,version:"1",entityType:f.FunctionDeclaration},Dre={constant:!0,id:IE,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",codeName:null,description:"The current employee entity being processed.",defaultValue:null,dataType:gre,required:!0,implements:Yf,index:0,writesValues:[d4],parent:_re},Ore={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:f.GenericReference,entityId:zl,version:"1",entityType:f.Loop},Cre={extends:null,id:_h,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Dre],calls:[wre],implements:Du,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Ore},$re={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:f.GenericReference,entityId:zl,version:"1",entityType:f.Loop},Pre={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:f.GenericReference,entityId:LL,version:"1",entityType:f.OutputMap},u4={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:ga.inputs[0],defaultValue:null,readsValue:Pre,index:0,parent:$re},Vre={id:"iterate-over-employee-list-loop-parent-ref-id",type:f.GenericReference,entityId:ra,version:"1",entityType:f.FunctionDeclaration},Nre={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:f.GenericReference,entityId:zl,version:"1",entityType:f.Loop},Lre={id:DL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ga.outputs[0],writesValues:[kL],index:0,parent:Nre},Bre={type:f.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},Mre={id:zl,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ga,inputs:[u4],successCalls:[wE],errorCalls:[],outputsDeclarations:[],outputs:[Lre],body:Cre,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[Bre],error:null,x:0,y:0,parent:Vre},Ure={type:f.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Oh},jre={id:xL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[GL],parent:Ure},xre={type:f.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Oh},Fre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,parent:xre},Gre={type:f.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:jL},Kre={type:f.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra};f.GenericReference,f.VariableDeclaration;const c4={constant:!0,required:!0,id:Oh,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:Fre,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[wE],errorCalls:[],readsValue:Gre,writesValues:[],inputs:[],outputs:[jre],internalCalls:[],parent:Kre,x:0,y:0},kre={type:f.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Dh},Sre={id:UL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ls.properties[0],index:0,defaultValue:null,writesValues:[FL],parent:kre},qre={type:f.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Dh},Zre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,parent:qre},Jre={type:f.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:ML},Wre={type:f.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra};f.GenericReference,f.VariableDeclaration;const p4={constant:!0,required:!0,id:Dh,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Owner",dataType:Zre,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[wE],errorCalls:[],readsValue:Jre,writesValues:[],inputs:[],outputs:[Sre],internalCalls:[],parent:Wre,x:0,y:0},Hre={type:f.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},Yre={id:ML,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gs.properties[2],index:4,writesValues:[p4],parent:Hre},zre={type:f.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},Xre={id:jL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gs.properties[1],index:3,writesValues:[c4],parent:zre},Qre={type:f.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},eie={id:BL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gs.properties[0],index:2,writesValues:[KL],parent:Qre},tie={type:f.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},rie={id:LL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gs.properties[3],index:1,writesValues:[u4],parent:tie},iie={type:f.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},sie={id:NL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[SL],parent:iie},nie={type:f.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},aie={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,parent:nie},oie={type:f.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra},lie={type:f.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:f.ArgumentDeclaration,entityId:AE},die={type:f.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra},f4={constant:!0,required:!0,id:An,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company",dataType:aie,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[die],calledBySuccess:[],successCalls:[c4,p4,Mre],errorCalls:[],readsValue:lie,writesValues:[],inputs:[],outputs:[sie,rie,eie,Xre,Yre],internalCalls:[],parent:oie,x:0,y:0},uie={type:f.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:AE,version:"1",entityType:f.ArgumentDeclaration},cie={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,like:!1,inferred:!1,parent:uie},pie={type:f.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:ra,version:"1",entityType:f.FunctionDeclaration},fie={constant:!0,type:f.ArgumentDeclaration,id:AE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",codeName:null,description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:cie,index:0,writesValues:[f4],parent:pie},hie={type:f.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},_E={extends:null,type:f.FunctionDeclaration,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[fie],calls:[f4],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:hie},Xu="exec-in-parallel-operation-call-id",Qu="exec-sequentially-operation-call-id",Oi="concurrency-and-wait-function-declaration-id",h4="concurrency-and-wait-return-statement-id",y4="concurrency-and-wait-return-declaration-id",DE="exec-in-parallel-argument-map-id",m4="exec-sequentially-argument-map-id",OE="wait-for-2-seconds-operation-id",v4="wait-for-2-seconds-argument-map-id",CE="map-company-dto-function-call-id",E4="map-company-dto-function-call-company-dto-output-map-id",$h="company-dto-variable-one-id",$E="company-dto-variable-one-instance-id",T4="company-dto-variable-two-id",yie={type:f.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:y4},mie={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"returned-company-dto-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,parent:yie},vie={type:f.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:h4},Eie={type:f.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:T4},b4={constant:!0,isError:!1,id:y4,type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:mie,implements:null,readsValue:Eie,required:!0,index:0,parent:vie},Tie={type:f.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:OE},bie={type:f.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Aie={type:f.ReturnStatement,id:h4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[b4],calledByError:[],calledByEntry:[],calledBySuccess:[Tie],throws:null,x:0,y:0,parent:bie},Iie={type:f.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:f.VariableInstance,entityId:$E},wie={type:f.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:f.VariableInstance,entityId:$E},Rie={type:f.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},A4={constant:!0,required:!0,id:T4,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",codeName:null,description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[Iie],internalCalls:[],writesValues:[b4],readsValue:wie,x:0,y:0,parent:Rie},gie={type:f.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:$h},_ie={type:f.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:$h},Die={type:f.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Oie={type:f.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:$h},I4={id:$E,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oie,inputs:[],outputs:[],successCalls:[A4],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[gie],internalCalls:[],writesValues:[A4],readsValue:_ie,x:0,y:0,parent:Die},Cie={type:f.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:f.FunctionCall,entityId:CE},$ie={type:f.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:E4},Pie={type:f.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},w4={constant:!0,required:!0,id:$h,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[I4],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[Cie],internalCalls:[],writesValues:[I4],readsValue:$ie,x:0,y:0,parent:Pie},R4={type:f.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:f.FunctionCall,entityId:CE},Vie={id:"map-company-dto-function-call-company-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_E.inputs[0],name:null,codeName:null,description:null,defaultValue:null,index:0,readsValue:null,parent:R4},Nie={id:E4,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ZL.outputs[0],writesValues:[w4],index:0,parent:R4},Lie={id:"map-company-dto-function-call-called-by-ref-id",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Bie={id:"map-company-dto-function-call-parent-ref-id",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Mie={id:CE,type:f.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_E,successCalls:[w4],process:null,errorCalls:[],inputs:[Vie],outputs:[Nie],calledByError:[],calledByEntry:[Lie],calledBySuccess:[],parent:Bie,x:0,y:0,error:null},Uie={type:f.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:nE},jie={type:f.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:nE},xie={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"last-timestamp-variable-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:hn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:Uie},Fie={type:f.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:f.Project,entityId:ot},PE={constant:!0,required:!0,id:nE,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",defaultValue:{id:"last-timestamp-variable-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Date,value:null,autogeneration:{type:Dr.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:jie},dataType:xie,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:Fie},Gie={type:f.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:v4},Kie={type:f.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:OE},kie={id:v4,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:X.Number,parent:Gie},index:0,parent:Kie},Sie={type:f.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},qie={type:f.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:f.Operation,entityId:Qu},Zie={type:f.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:f.Operation,entityId:Xu},g4={id:OE,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ks,inputs:[kie],outputs:[],process:null,successCalls:[Aie],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[qie,Zie],error:null,parent:Sie},Jie={type:f.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"wait-for-random-amount-input-map-id"},Wie={type:f.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:"wait-for-random-amount-id"},Hie={id:"wait-for-random-amount-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:Dr.Random,rangeStart:1e3,rangeEnd:4e3},name:X.Number,parent:Jie},index:0,parent:Wie},Yie={type:f.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Xl={id:"wait-for-random-amount-id",type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ks,inputs:[Hie],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:Yie},VE="list-of-functions-variable-id",zie={type:f.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:f.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},Xie={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:zie},Qie={type:f.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:f.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},ese={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:Qie},tse={type:f.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:VE},rse={type:f.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:f.DataType,entityId:"list-of-functions-variable-data-type-id"},ise={id:"list-of-functions-variable-action-descriptor-id",type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Xie],error:null,outputs:[ese],parent:rse},sse={type:f.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:VE},nse={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"list-of-functions-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ise,asType:!1,isList:!0,parent:tse},ase={type:f.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi};f.GenericReference,f.InputMap;const ose={type:f.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:f.InputMap,entityId:m4},lse={type:f.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:f.InputMap,entityId:DE},_4={constant:!0,required:!0,id:VE,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List of functions to execute",description:"A list of functions to be executed in parallel",defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[Xl,Xl,Xl,Xl,Xl],autogeneration:null,parent:sse},dataType:nse,parent:ase,readsValue:null,writesValues:[ose,lse],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},dse={type:f.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Xu},use={type:f.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},cse={type:f.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:"exec-in-parallel-return-map-id"},pse={type:f.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Xu},D4={id:"exec-in-parallel-result-variable-id",type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:PE,readsValue:cse,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[pse],successCalls:[],errorCalls:[],internalCalls:[],parent:use,x:0,y:0},fse={id:"exec-in-parallel-return-map-id",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lv,writesValues:[D4],index:0,parent:dse},hse={type:f.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Xu},yse={id:DE,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ov,codeName:null,name:null,description:null,readsValue:_4,defaultValue:null,index:0,parent:hse},mse={type:f.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},vse={type:f.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Ese={process:null,id:Xu,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ks,inputs:[yse],outputs:[fse],successCalls:[g4,D4],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[vse],calledBySuccess:[],error:null,parent:mse},Tse={type:f.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Qu},bse={type:f.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Ase={type:f.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:"exec-sequentially-return-map-id"},Ise={type:f.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Qu},O4={id:"exec-sequentially-result-variable-id",type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:PE,readsValue:Ase,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Ise],successCalls:[],errorCalls:[],internalCalls:[],parent:bse,x:0,y:0},wse={id:"exec-sequentially-return-map-id",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:uv,writesValues:[O4],index:0,parent:Tse},Rse={type:f.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Qu},gse={id:m4,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dv,codeName:null,name:null,description:null,readsValue:_4,defaultValue:null,index:0,parent:Rse},_se={type:f.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Dse={type:f.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Ose={id:Qu,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:zn,inputs:[gse],process:null,outputs:[wse],successCalls:[g4,O4],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Dse],calledBySuccess:[],error:null,parent:_se},Cse={type:f.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},$se={extends:null,type:f.FunctionDeclaration,id:Oi,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Execute with concurrency and wait",description:"Executes a hardcoded list of actions in parallel and waits for some time before ending the logic with some unrelated data payload as the result.",inputs:[],calls:[Ose,Ese,Mie],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Cse},Pse={type:f.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:f.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Vse={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,isList:!1,asType:!1,parent:Pse},Nse={type:f.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:f.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},Lse={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:Vse,readsValue:null,required:!0,index:0,parent:Nse},Bse={type:f.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:f.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Mse={type:f.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:f.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Use={type:f.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Lse],calledByError:[],calledByEntry:[Mse],calledBySuccess:[],throws:null,x:0,y:0,parent:Bse},jse={type:f.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:f.Project,entityId:ot},xse={extends:null,type:f.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Create new company",description:null,inputs:[],calls:[Use],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:jse},NE="get-current-date-and-time-func-decl-id",C4="get-current-date-and-time-return-statement-id",LE="get-current-date-and-time-return-declaration-id",Fse="get-current-date-and-time-return-declaration-data-type-id",Gse={type:f.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:LE},Kse={type:f.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:LE},kse={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:Fse,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:hn,asType:!1,isList:!1,like:!1,inferred:!1,parent:Kse},Sse={type:f.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:C4};f.ReturnDeclaration,f.LiteralValue,X.Date,Dr.CurrentDateAndTime;const qse={type:f.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:NE},Zse={type:f.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:NE};f.ReturnStatement;const Jse={type:f.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Wse={extends:null,type:f.FunctionDeclaration,id:NE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Jse},Hse={type:f.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:f.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},Yse={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:Hse},zse={type:f.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Xse={type:f.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Qse={type:f.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:f.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},$4={constant:!0,required:!0,type:f.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",dataType:Yse,description:null,defaultValue:null,readsValue:Qse,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Xse],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:zse},ene={type:f.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},tne={type:f.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:f.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},rne={type:f.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:f.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},ine={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:rne},sne={type:f.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},P4={constant:!0,required:!0,type:f.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[sne],successCalls:[],errorCalls:[],dataType:ine,readsValue:tne,writesValues:[],internalCalls:[],parent:ene,x:0,y:0},V4="do-math-return-statement-id",BE="do-math-return-declaration-id",nne={type:f.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},ane={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:nne},one={type:f.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},lne={type:f.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:BE},dne={constant:!0,required:!0,type:f.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,codeName:null,name:"Fixed result",defaultValue:null,dataType:ane,readsValue:null,writesValues:[lne],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:one},une={type:f.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:f.ReturnStatement,entityId:V4},cne={type:f.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:f.ReturnDeclaration,entityId:BE},pne={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:cne},fne={constant:!0,isError:!1,id:BE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,codeName:null,name:"Result",description:null,implements:null,defaultValue:null,dataType:pne,readsValue:dne,required:!0,index:0,parent:une},hne={type:f.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},yne={type:f.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},mne={type:f.ReturnStatement,id:V4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[fne],calledByError:[],calledByEntry:[],calledBySuccess:[hne],parent:yne,throws:null,x:0,y:0},N4={type:f.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},vne={type:f.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Ene={type:f.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Tne={type:f.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:f.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},L4={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:W0,codeName:null,name:null,description:null,readsValue:Tne,defaultValue:null,index:0,parent:Ene},bne={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:z0,writesValues:[$4,P4],index:0,parent:vne},Ane={type:f.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Ine={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:f.GenericReference,version:"1",entityType:f.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},B4={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:H0,codeName:null,name:null,description:null,readsValue:Ine,defaultValue:null,index:1,parent:Ane},wne={type:f.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Vf,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[L4,B4],outputs:[bne],calledByError:[],calledByEntry:[N4],calledBySuccess:[],process:null,successCalls:[mne,$4,P4],errorCalls:[],parent:N4,error:null,x:0,y:0},Rne={type:f.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:f.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},gne={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:f.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:f.ArgumentDeclaration},M4={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:gne},_ne={type:f.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:f.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},Dne={type:f.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},One={type:f.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},U4={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:X.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Rne},dataType:M4,inputs:[],outputs:[],calledByError:[],calledByEntry:[One],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:_ne,writesValues:[B4],internalCalls:[],x:0,y:0,parent:Dne},Cne={version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:f.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},$ne={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Z",description:"The number to add",defaultValue:null,dataType:M4,implements:null,writesValues:[U4],required:!0,index:1,parent:Cne},Pne={type:f.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:f.Project,entityId:ot},Vne={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Nne={type:f.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:f.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Lne={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:f.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:f.ArgumentDeclaration},Bne={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:Lne},Mne={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"N",dataType:Bne,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:X.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Nne},writesValues:[L4],required:!0,index:0,parent:Vne},Une={extends:null,type:f.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Do math",description:"This function does math",inputs:[Mne,$ne],calls:[wne,U4],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Pne},Ci="replace-bank-account-in-company-func-declaration-id",ME="company-entity-to-modify-arg-declaration-id",UE="account-number-to-create-arg-decl-id",Ql="company-main-variable-id",ed="search-person-by-id-id",j4="new-bank-account-owner-arg-decl-id",x4="search-person-by-id-output-declaration-id",jE="search-person-by-id-output-entity-map-id",ec="person-not-empty-condition-id",Ph="create-new-bank-account-instance-operation-id",F4="create-new-bank-account-instance-operation-output-entity-map-id",G4="company-bank-account-output-map-id",xE="old-bank-account-var-declaration-id",K4="old-bank-account-var-instance-id",k4="company-variable-instance-id",FE="delete-bank-account-internal-call-id",tc="new-bank-account-data-variable-declaration-id",jne={type:f.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},xne={type:f.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:f.InternalCall,entityId:FE},Fne={type:f.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},Gne={type:f.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:f.VariableInstance,entityId:k4},Kne={type:f.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:F4},S4={type:f.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:Kne,declaration:cE,codeName:null,name:null,description:null,index:0,defaultValue:null,parent:Gne},kne={type:f.VariableInstance,id:k4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Fne,inputs:[S4],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[xne],successCalls:[],errorCalls:[],internalCalls:[],parent:jne,readsValue:null,writesValues:[],x:0,y:0},Sne={type:f.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},qne={type:f.DataType,staticEntities:null,interactiveEntities:null,actionEntities:null,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wl,asType:!1,isList:!1,like:!1,inferred:!1,parent:Sne},Zne={type:f.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:G4},Jne={type:f.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Wne={type:f.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},Hne={type:f.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Ph};f.GenericReference,f.VariableInstance;const Yne={type:f.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:f.VariableDeclaration,entityId:xE},zne={type:f.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:xE},Xne={type:f.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Qne={type:f.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:f.InternalCall,entityId:FE},eae={type:f.VariableInstance,id:K4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:zne,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[Qne],errorCalls:[],parent:Xne,readsValue:null,writesValues:[],x:0,y:0},q4={process:null,type:f.InternalCall,id:FE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sv,index:0,successCalls:[kne],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[Hne,Yne],parent:eae},Z4={constant:!0,required:!0,type:f.VariableDeclaration,id:xE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:qne,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Wne],successCalls:[q4],internalCalls:[],errorCalls:[],parent:Jne,readsValue:Zne,writesValues:[],x:0,y:0},tae={type:f.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},rae={type:f.DataType,staticEntities:null,interactiveEntities:null,actionEntities:null,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,like:!1,inferred:!1,parent:tae},iae={type:f.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:f.ArgumentDeclaration,entityId:ME},sae={type:f.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},nae={type:f.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},aae={type:f.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},oae={id:G4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.OutputMap,defaultValue:null,declaration:cE,index:0,parent:aae,writesValues:[Z4]},J4={constant:!0,required:!0,type:f.VariableDeclaration,id:Ql,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:rae,inputs:[],outputs:[oae],calledByError:[],calledByEntry:[nae],calledBySuccess:[],successCalls:[Z4],errorCalls:[],parent:sae,internalCalls:[],readsValue:iae,writesValues:[],x:0,y:0},lae={type:f.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:tc},dae={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:f.GenericReference,version:"1",entityType:f.OutputMap,entityId:jE},W4={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:null,codeName:null,name:"Account owner",description:null,readsValue:dae,index:1,defaultValue:null,parent:lae},uae={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:UE},cae={type:f.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:tc},H4={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:null,codeName:null,name:"Account number",description:null,readsValue:uae,defaultValue:null,index:0,parent:cae},Y4={type:f.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ph},pae={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Eo.inputs[0],name:null,codeName:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:f.LiteralValue,standaloneParent:null,name:X.EntityTemplate,value:null,valueAsTypeSingle:Wl,valueAsTypeList:null,autogeneration:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:{entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",entityType:f.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:f.GenericReference}},parent:Y4},fae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:tc},z4={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Eo.inputs[1],name:null,codeName:null,description:null,index:1,readsValue:fae,defaultValue:null,parent:Y4},hae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ph},yae={id:F4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.OutputMap,defaultValue:null,declaration:Eo.outputs[0],index:0,writesValues:[S4],parent:hae},mae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:f.Condition,entityId:ec},vae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:tc},Eae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},X4={process:null,id:Ph,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Eo,inputs:[pae,z4],error:null,outputs:[yae],successCalls:[q4],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[vae,mae],parent:Eae,x:0,y:0},Tae={type:f.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},bae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:f.Condition,entityId:ec},Aae={constant:!0,required:!0,id:tc,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,codeName:null,deleted:!1,defaultValue:null,inputs:[H4,W4],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[z4],successCalls:[X4],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[bae],calledByEntry:[],x:0,y:0,parent:Tae},Iae={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:f.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:f.ReturnDeclaration},wae={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:f.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:f.ReturnDeclaration},Rae={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:wae},gae={id:"person-not-found-thrown-error-parent-ref-id",type:f.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:f.ReturnStatement},_ae={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:Rae,codeName:null,name:"Person not found error",description:"If the person entity was not found this error is outputted",defaultValue:{id:"person-not-found-thrown-error-datatype-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:X.String,parent:Iae,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:gae,implements:null,required:!0,index:0,readsValue:null},Dae={id:"person-not-found-error-return-statement-called-by-ref-id",type:f.GenericReference,entityId:ec,version:"1",entityType:f.Condition},Oae={id:"person-not-found-error-return-statement-parent-ref-id",type:f.GenericReference,entityId:Ci,version:"1",entityType:f.FunctionDeclaration},Cae={id:"person-not-found-error-return-statement-id",type:f.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:_ae,outputs:[],calledBySuccess:[],calledByError:[Dae],calledByEntry:[],x:0,y:0,parent:Oae},$ae={type:f.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:f.Search,entityId:ed},Pae={type:f.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Vae={type:f.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:jE},Nae={type:f.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:f.Condition,entityId:ec},Q4={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Oo.inputs[0],codeName:null,name:null,description:null,readsValue:Vae,index:0,defaultValue:null,parent:Nae},Lae={type:f.Condition,id:ec,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oo,inputs:[Q4],calledByError:[],calledByEntry:[],calledBySuccess:[$ae],successCalls:[Aae,X4],errorCalls:[Cae],x:0,y:0,parent:Pae},Bae={type:f.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:f.ValueDescriptor,entityId:x4},Mae={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:Di,parent:Bae},Uae={type:f.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:f.Search,entityId:ed},eB={id:x4,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:Mae,parentRelationType:oe.FixedReturns,name:"Found person",codeName:null,description:"The person entity that was found",parent:Uae,required:!0,index:0},jae={type:f.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:f.Search,entityId:ed},xae={type:f.OutputMap,id:jE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:eB,parent:jae,writesValues:[Q4,W4],index:0},Fae={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:f.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:f.ArgumentDeclaration};f.DataType;const Gae={type:f.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:f.Search,entityId:ed},tB={id:"search-person-by-id-input-declaration-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,codeName:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:oe.FixedArguments,index:0,required:!0,parent:Gae},Kae={type:f.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:f.Search,entityId:ed},kae={id:"search-person-by-id-input-map-reads-value-ref-id",type:f.GenericReference,entityId:j4,version:"1",entityType:f.ArgumentDeclaration},rB={type:f.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:tB,codeName:null,name:null,description:null,readsValue:kae,defaultValue:null,parent:Kae,index:0},Sae="SELECT * FROM Person WHERE id = your_id;",qae={type:f.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Zae={type:f.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Jae={type:f.Search,id:ed,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:Sae,inputsDeclarations:[tB],inputs:[rB],outputsDeclarations:[eB],outputs:[xae],calledByError:[],calledByEntry:[Zae],calledBySuccess:[],error:null,successCalls:[Lae],errorCalls:[],parent:qae,x:0,y:0};f.GenericReference,f.DataType;const Wae={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:f.GenericReference,entityId:UE,version:"1",entityType:f.ArgumentDeclaration},Hae={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:Wae},Yae={version:"1",entityType:f.FunctionDeclaration,entityId:Ci,type:f.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},zae={constant:!0,id:UE,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:Hae,implements:null,writesValues:[H4],required:!0,index:1,parent:Yae};f.GenericReference,f.DataType;const Xae={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:f.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:f.ArgumentDeclaration},Qae={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Hn,isList:!1,asType:!1,parent:Xae},eoe={version:"1",entityType:f.FunctionDeclaration,entityId:Ci,type:f.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},toe={constant:!0,id:j4,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",defaultValue:null,dataType:Qae,implements:null,writesValues:[rB],required:!1,index:1,parent:eoe},roe={type:f.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:f.Project,entityId:ot},ioe={type:f.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:f.FunctionDeclaration,entityId:Ci};f.GenericReference,f.DataType;const soe={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:f.GenericReference,entityId:ME,version:"1",entityType:f.ArgumentDeclaration},noe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-entity-to-modify-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:soe},aoe={constant:!0,id:ME,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company",defaultValue:null,dataType:noe,implements:null,description:"The company to replace the bank account for",writesValues:[J4],required:!0,index:0,parent:ioe},ooe={extends:null,type:f.FunctionDeclaration,id:Ci,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Replace bank account",description:"This action takes an existing company and data to create a new bank account entity. It then creates a bank account, deletes the old one, and updates the company with the new bank account",inputs:[aoe,zae,toe],index:null,implements:null,calls:[Jae,J4],collapsed:!1,private:!1,x:0,y:0,parent:roe},loe={type:f.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:f.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},doe={extends:null,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",codeName:null,name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:loe,x:0,y:0},uoe={type:f.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:f.Project,entityId:ot},coe={type:f.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",codeName:null,name:"Third Party Installed Project",description:null,functions:[doe],events:[],implements:null,parent:uoe,x:0,y:0},GE="global-counted-test-loop-id",iB="global-counted-test-loop-body-id",sB="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",poe={type:f.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:sB,version:"1",entityType:f.ArgumentDeclaration},foe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:poe},hoe={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:iB,version:"1",entityType:f.FunctionDeclaration},yoe={constant:!0,id:sB,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",codeName:null,description:"The current value being processed.",defaultValue:null,dataType:foe,implements:Pv,required:!0,index:0,writesValues:[],parent:hoe},moe={id:"global-counted-test-loop-body-parent-ref-id",type:f.GenericReference,entityId:GE,version:"1",entityType:f.Loop},voe={extends:null,id:iB,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[yoe],calls:[],implements:zf,collapsed:!1,private:!1,index:0,x:0,y:0,parent:moe},td="random-company-employee-test-variable-id",KE="manager-global-variable-id",nB="global-user-instance-id",In="employee-mapped-dto-variable-id",Mo="employee-mapped-dto-variable-instance-id",aB="random-employee-id-output-map-id",oB="random-employee-birth-date-output-map-id",lB="random-employee-department-output-map-id",dB="random-employee-manager-output-map-id",uB="manager-global-id-output-map-id",cB="global-user-instance-id-output-map-id",Eoe="employee-mapped-dto-requester-id-input-map-id",pB="employee-mapped-dto-now-timestamp-input-map-id",Toe="employee-mapped-dto-id-input-map-id",boe="employee-mapped-dto-birth-date-input-map-id",Aoe="employee-mapped-dto-department-input-map-id",Ioe="employee-mapped-dto-manager-input-map-id",woe={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:f.GenericReference,entityId:GE,version:"1",entityType:f.Loop};f.GenericReference,f.VariableDeclaration;const Roe={id:"global-counted-test-loop-iteration-number-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:Ou.inputs[0],defaultValue:null,readsValue:null,index:0,parent:woe},goe={id:"global-counted-test-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},_oe={id:"global-counted-test-loop-called-by-success-ref-id",type:f.GenericReference,entityId:Mo,version:"1",entityType:f.VariableDeclaration},fB={id:GE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ou,inputs:[Roe],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:voe,calledByError:[],calledByEntry:[],calledBySuccess:[_oe],error:null,x:0,y:0,parent:goe},kE="global-object-keys-test-loop-id",hB="global-object-keys-test-loop-body-id",yB="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",Doe={type:f.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:yB,version:"1",entityType:f.ArgumentDeclaration},Ooe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Doe},Coe={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:hB,version:"1",entityType:f.FunctionDeclaration},$oe={constant:!0,id:yB,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",codeName:null,description:"The current value being processed.",defaultValue:null,dataType:Ooe,implements:_v,required:!0,index:0,writesValues:[],parent:Coe},Poe={id:"global-object-keys-test-loop-body-parent-ref-id",type:f.GenericReference,entityId:kE,version:"1",entityType:f.Loop},Voe={extends:null,id:hB,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[$oe],calls:[],implements:Ll,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Poe},Noe={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:f.GenericReference,entityId:kE,version:"1",entityType:f.Loop},Loe={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:f.GenericReference,entityId:In,version:"1",entityType:f.VariableDeclaration},mB={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:null,description:null,declaration:Ll.inputs[0],defaultValue:null,readsValue:Loe,index:0,parent:Noe},Boe={id:"global-object-keys-test-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},Moe={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:f.GenericReference,entityId:Mo,version:"1",entityType:f.VariableDeclaration},Uoe={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:f.GenericReference,entityId:In,version:"1",entityType:f.VariableDeclaration},SE={id:kE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ll,inputs:[mB],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Voe,calledByError:[],calledByEntry:[],calledBySuccess:[Uoe,Moe],error:null,x:0,y:0,parent:Boe},qE="global-object-values-test-loop-id",vB="global-object-values-test-loop-body-id",EB="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",joe={type:f.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:EB,version:"1",entityType:f.ArgumentDeclaration},xoe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:joe},Foe={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:vB,version:"1",entityType:f.FunctionDeclaration},Goe={constant:!0,id:EB,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",codeName:null,description:"The current value being processed.",defaultValue:null,dataType:xoe,implements:Ov,required:!0,index:0,writesValues:[],parent:Foe},Koe={id:"global-object-values-test-loop-body-parent-ref-id",type:f.GenericReference,entityId:qE,version:"1",entityType:f.Loop},koe={extends:null,id:vB,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Goe],calls:[],implements:Bl,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Koe},Soe={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:f.GenericReference,entityId:qE,version:"1",entityType:f.Loop},qoe={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:f.GenericReference,entityId:Mo,version:"1",entityType:f.VariableDeclaration},TB={id:"global-object-values-test-loop-iteration-object-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:Bl.inputs[0],defaultValue:null,readsValue:qoe,index:0,parent:Soe},Zoe={id:"global-object-values-test-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},Joe={id:"global-object-values-test-loop-called-by-success-ref-id",type:f.GenericReference,entityId:Mo,version:"1",entityType:f.VariableInstance},bB={id:qE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bl,inputs:[TB],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:koe,calledByError:[],calledByEntry:[],calledBySuccess:[Joe],error:null,x:0,y:0,parent:Zoe},ZE="global-test-iterate-over-string-loop-id",JE="global-test-iterate-over-string-loop-body-id",Vh="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",AB="global-test-iterate-over-string-loop-iteration-list-input-map-id",Woe={type:f.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Vh,version:"1",entityType:f.ArgumentDeclaration},Hoe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Woe},Yoe={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:JE,version:"1",entityType:f.FunctionDeclaration},zoe={constant:!0,id:Vh,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",codeName:null,description:"The current character value being processed.",defaultValue:null,dataType:Hoe,implements:Rv,required:!0,index:1,writesValues:[],parent:Yoe},Xoe={type:f.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Vh,version:"1",entityType:f.ArgumentDeclaration},Qoe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Xoe},ele={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:JE,version:"1",entityType:f.FunctionDeclaration},tle={constant:!0,id:Vh,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",codeName:null,description:"The current character value being processed.",defaultValue:null,dataType:Qoe,implements:gv,required:!0,index:0,writesValues:[],parent:ele},rle={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:f.GenericReference,entityId:ZE,version:"1",entityType:f.Loop},ile={extends:null,id:JE,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",codeName:null,description:"This function is called once for each iteration of the loop.",inputs:[tle,zoe],calls:[],implements:Hf,collapsed:!1,private:!1,index:0,x:0,y:0,parent:rle},sle={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:f.GenericReference,entityId:ZE,version:"1",entityType:f.Loop},nle={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:f.GenericReference,entityId:AB,version:"1",entityType:f.InputMap},ale={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:f.LiteralValue,standaloneParent:null,name:X.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:Dr.Random,rangeStart:4,rangeEnd:5},parent:nle},ole={id:AB,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:_u.inputs[0],defaultValue:ale,readsValue:null,index:0,parent:sle},lle={id:"global-test-iterate-over-string-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},dle={id:ZE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_u,inputs:[ole],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:ile,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:lle},WE="iterate-over-list-loop-id",IB="iterate-over-list-loop-body-id",wB="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",ule={type:f.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:wB,version:"1",entityType:f.ArgumentDeclaration},cle={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:ule},ple={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:IB,version:"1",entityType:f.FunctionDeclaration},fle={constant:!0,id:wB,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",codeName:null,description:"The current value being processed.",defaultValue:null,dataType:cle,implements:Yf,required:!0,index:0,writesValues:[],parent:ple},hle={id:"iterate-over-list-loop-body-parent-ref-id",type:f.GenericReference,entityId:WE,version:"1",entityType:f.Loop},yle={extends:null,id:IB,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[fle],calls:[],implements:Du,collapsed:!1,private:!1,index:0,x:0,y:0,parent:hle},mle={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:f.GenericReference,entityId:WE,version:"1",entityType:f.Loop},vle={id:"iterate-over-list-loop-iteration-list-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:ga.inputs[0],defaultValue:null,readsValue:null,index:0,parent:mle},Ele={id:"iterate-over-list-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},Tle={id:WE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ga,inputs:[vle],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:yle,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:Ele},ble={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},Ale={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:f.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:f.Search},RB={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"companies",codeName:null,description:"List of companies with multiple employees and an existing bank account",defaultValue:null,dataType:null,required:!0,parentRelationType:oe.FixedReturns,index:0,parent:Ale},Ile={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:f.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:f.Search},wle={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:RB,writesValues:[],index:0,parent:Ile},Rle={id:"find-companies-with-multiple-employees-and-bank-account",type:f.Search,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Find companies with multiple employees and a bank account",description:"This search statement finds companies with multiple employees and an existing bank account",inputsDeclarations:[],outputsDeclarations:[RB],inputs:[],outputs:[wle],query:"",successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:ble},gle={type:f.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:uB},_le={type:f.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},gB={id:Ioe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",codeName:null,description:null,defaultValue:null,index:4,readsValue:gle,parent:_le},Dle={type:f.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:lB},Ole={type:f.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},_B={id:Aoe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",codeName:null,description:null,defaultValue:null,index:3,readsValue:Dle,parent:Ole},Cle={type:f.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:oB},$le={type:f.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},DB={id:boe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",codeName:null,description:null,defaultValue:null,index:2,readsValue:Cle,parent:$le},Ple={type:f.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:aB},Vle={type:f.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},OB={id:Toe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Ple,parent:Vle},Nle={type:f.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:cB},Lle={type:f.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},CB={id:Eoe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:Nle,parent:Lle},Ble={type:f.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:KE},Mle={id:uB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ls.properties[0],defaultValue:null,index:0,writesValues:[gB],parent:Ble},Ule={type:f.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:KE},jle={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manager-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,parent:Ule},xle={type:f.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:dB},Fle={type:f.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},$B={constant:!0,required:!0,id:KE,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Manager",dataType:jle,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:xle,writesValues:[],inputs:[],outputs:[Mle],internalCalls:[],parent:Fle,x:0,y:0},Gle={type:f.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Kle={id:dB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rs.properties[2],index:3,writesValues:[$B],parent:Gle},kle={type:f.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Sle={id:lB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rs.properties[0],index:2,writesValues:[_B],parent:kle},qle={type:f.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Zle={id:oB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[1],index:1,writesValues:[DB],parent:qle},Jle={type:f.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Wle={id:aB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[OB],parent:Jle},Hle={type:f.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Yle={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,parent:Hle},zle={type:f.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Xle={constant:!0,required:!0,id:td,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company employee",dataType:Yle,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[Wle,Zle,Sle,Kle],internalCalls:[],parent:zle,x:0,y:0},Qle={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:pB},ede={type:f.LiteralValue,standaloneParent:null,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:X.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsTypeList:null,valueAsTypeSingle:null,value:null,autogeneration:{type:Dr.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:Qle},tde={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:f.VariableInstance,entityId:Mo},rde={id:pB,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"now",codeName:null,description:"The current timestamp when the operation is executed",defaultValue:ede,index:5,readsValue:null,parent:tde},ide={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},sde={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},nde={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},ade={id:Mo,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ide,calledByError:[],calledByEntry:[],calledBySuccess:[sde],successCalls:[SE,bB,fB],errorCalls:[],readsValue:null,writesValues:[TB],inputs:[rde],outputs:[],internalCalls:[],parent:nde,x:0,y:0},ode={type:f.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},lde={constant:!0,required:!0,id:In,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[SE,ade],errorCalls:[],readsValue:null,writesValues:[mB],inputs:[CB,OB,DB,_B,gB],outputs:[],internalCalls:[],parent:ode,x:0,y:0},dde={type:f.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:f.VariableDeclaration,entityId:O2},ude={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:lE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:dde},cde={type:f.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:f.Project,entityId:ot},PB={constant:!0,required:!0,id:O2,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current user",description:"The user that is currently logged in",defaultValue:null,dataType:ude,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:cde},pde={type:f.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableInstance,entityId:nB},fde={id:cB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[CB],parent:pde},hde={type:f.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},yde={id:nB,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:PB,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[fde],internalCalls:[],parent:hde,x:0,y:0},mde={type:f.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},vde={type:f.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},Ede={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Jn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:mde},Tde={type:f.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:f.Project,entityId:ot},VB={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:X.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:f.LiteralValue,standaloneParent:null,autogeneration:{type:Dr.Random,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:vde},dataType:Ede,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:Tde},bde={type:f.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Ade={id:"is-test-environment-variable-instance-id",type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:VB,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:bde,x:0,y:0},HE={type:f.Project,id:ot,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Mocked project to compile",description:"This project is used to test all sorts of features and edge cases. It is not meant to be used in production. Or to have any functionality that makes sense",projects:[coe],entities:[oE,ls,lE,Di,iX,Rs,Th,q2,Z2,Wl,MY,gs,$z,aE,zS,Gz,LY],functions:[$se,hL,gE,xse,Wse,_L,_E,pE,ooe,tL,Une],events:[MX],variableDeclarations:[VB,PB,PE,Xle,$B,lde],variableInstances:[Ade,yde],conditions:[],operations:[Xl],functionCalls:[MQ,Jee],loops:[Tle,SE,bB,dle,fB],searches:[Rle]};var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function NB(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var LB={exports:{}};(function(d,u){(function(i,a){d.exports=a()})(us,function(){var i=1e3,a=6e4,l=36e5,p="millisecond",t="second",y="minute",v="hour",b="day",w="week",A="month",V="quarter",L="year",j="date",k="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ie={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Oe){var Ie=["th","st","nd","rd"],ge=Oe%100;return"["+Oe+(Ie[(ge-20)%10]||Ie[ge]||Ie[0])+"]"}},te=function(Oe,Ie,ge){var Ue=String(Oe);return!Ue||Ue.length>=Ie?Oe:""+Array(Ie+1-Ue.length).join(ge)+Oe},pe={s:te,z:function(Oe){var Ie=-Oe.utcOffset(),ge=Math.abs(Ie),Ue=Math.floor(ge/60),$e=ge%60;return(Ie<=0?"+":"-")+te(Ue,2,"0")+":"+te($e,2,"0")},m:function Oe(Ie,ge){if(Ie.date()<ge.date())return-Oe(ge,Ie);var Ue=12*(ge.year()-Ie.year())+(ge.month()-Ie.month()),$e=Ie.clone().add(Ue,A),Qe=ge-$e<0,ut=Ie.clone().add(Ue+(Qe?-1:1),A);return+(-(Ue+(ge-$e)/(Qe?$e-ut:ut-$e))||0)},a:function(Oe){return Oe<0?Math.ceil(Oe)||0:Math.floor(Oe)},p:function(Oe){return{M:A,y:L,w,d:b,D:j,h:v,m:y,s:t,ms:p,Q:V}[Oe]||String(Oe||"").toLowerCase().replace(/s$/,"")},u:function(Oe){return Oe===void 0}},ne="en",ve={};ve[ne]=ie;var J="$isDayjsObject",ae=function(Oe){return Oe instanceof Ee||!(!Oe||!Oe[J])},ce=function Oe(Ie,ge,Ue){var $e;if(!Ie)return ne;if(typeof Ie=="string"){var Qe=Ie.toLowerCase();ve[Qe]&&($e=Qe),ge&&(ve[Qe]=ge,$e=Qe);var ut=Ie.split("-");if(!$e&&ut.length>1)return Oe(ut[0])}else{var Jt=Ie.name;ve[Jt]=Ie,$e=Jt}return!Ue&&$e&&(ne=$e),$e||!Ue&&ne},Y=function(Oe,Ie){if(ae(Oe))return Oe.clone();var ge=typeof Ie=="object"?Ie:{};return ge.date=Oe,ge.args=arguments,new Ee(ge)},ue=pe;ue.l=ce,ue.i=ae,ue.w=function(Oe,Ie){return Y(Oe,{locale:Ie.$L,utc:Ie.$u,x:Ie.$x,$offset:Ie.$offset})};var Ee=function(){function Oe(ge){this.$L=ce(ge.locale,null,!0),this.parse(ge),this.$x=this.$x||ge.x||{},this[J]=!0}var Ie=Oe.prototype;return Ie.parse=function(ge){this.$d=function(Ue){var $e=Ue.date,Qe=Ue.utc;if($e===null)return new Date(NaN);if(ue.u($e))return new Date;if($e instanceof Date)return new Date($e);if(typeof $e=="string"&&!/Z$/i.test($e)){var ut=$e.match(S);if(ut){var Jt=ut[2]-1||0,ar=(ut[7]||"0").substring(0,3);return Qe?new Date(Date.UTC(ut[1],Jt,ut[3]||1,ut[4]||0,ut[5]||0,ut[6]||0,ar)):new Date(ut[1],Jt,ut[3]||1,ut[4]||0,ut[5]||0,ut[6]||0,ar)}}return new Date($e)}(ge),this.init()},Ie.init=function(){var ge=this.$d;this.$y=ge.getFullYear(),this.$M=ge.getMonth(),this.$D=ge.getDate(),this.$W=ge.getDay(),this.$H=ge.getHours(),this.$m=ge.getMinutes(),this.$s=ge.getSeconds(),this.$ms=ge.getMilliseconds()},Ie.$utils=function(){return ue},Ie.isValid=function(){return this.$d.toString()!==k},Ie.isSame=function(ge,Ue){var $e=Y(ge);return this.startOf(Ue)<=$e&&$e<=this.endOf(Ue)},Ie.isAfter=function(ge,Ue){return Y(ge)<this.startOf(Ue)},Ie.isBefore=function(ge,Ue){return this.endOf(Ue)<Y(ge)},Ie.$g=function(ge,Ue,$e){return ue.u(ge)?this[Ue]:this.set($e,ge)},Ie.unix=function(){return Math.floor(this.valueOf()/1e3)},Ie.valueOf=function(){return this.$d.getTime()},Ie.startOf=function(ge,Ue){var $e=this,Qe=!!ue.u(Ue)||Ue,ut=ue.p(ge),Jt=function($n,pi){var sn=ue.w($e.$u?Date.UTC($e.$y,pi,$n):new Date($e.$y,pi,$n),$e);return Qe?sn:sn.endOf(b)},ar=function($n,pi){return ue.w($e.toDate()[$n].apply($e.toDate("s"),(Qe?[0,0,0,0]:[23,59,59,999]).slice(pi)),$e)},Ar=this.$W,Ur=this.$M,Gr=this.$D,Li="set"+(this.$u?"UTC":"");switch(ut){case L:return Qe?Jt(1,0):Jt(31,11);case A:return Qe?Jt(1,Ur):Jt(0,Ur+1);case w:var Cn=this.$locale().weekStart||0,Qa=(Ar<Cn?Ar+7:Ar)-Cn;return Jt(Qe?Gr-Qa:Gr+(6-Qa),Ur);case b:case j:return ar(Li+"Hours",0);case v:return ar(Li+"Minutes",1);case y:return ar(Li+"Seconds",2);case t:return ar(Li+"Milliseconds",3);default:return this.clone()}},Ie.endOf=function(ge){return this.startOf(ge,!1)},Ie.$set=function(ge,Ue){var $e,Qe=ue.p(ge),ut="set"+(this.$u?"UTC":""),Jt=($e={},$e[b]=ut+"Date",$e[j]=ut+"Date",$e[A]=ut+"Month",$e[L]=ut+"FullYear",$e[v]=ut+"Hours",$e[y]=ut+"Minutes",$e[t]=ut+"Seconds",$e[p]=ut+"Milliseconds",$e)[Qe],ar=Qe===b?this.$D+(Ue-this.$W):Ue;if(Qe===A||Qe===L){var Ar=this.clone().set(j,1);Ar.$d[Jt](ar),Ar.init(),this.$d=Ar.set(j,Math.min(this.$D,Ar.daysInMonth())).$d}else Jt&&this.$d[Jt](ar);return this.init(),this},Ie.set=function(ge,Ue){return this.clone().$set(ge,Ue)},Ie.get=function(ge){return this[ue.p(ge)]()},Ie.add=function(ge,Ue){var $e,Qe=this;ge=Number(ge);var ut=ue.p(Ue),Jt=function(Ur){var Gr=Y(Qe);return ue.w(Gr.date(Gr.date()+Math.round(Ur*ge)),Qe)};if(ut===A)return this.set(A,this.$M+ge);if(ut===L)return this.set(L,this.$y+ge);if(ut===b)return Jt(1);if(ut===w)return Jt(7);var ar=($e={},$e[y]=a,$e[v]=l,$e[t]=i,$e)[ut]||1,Ar=this.$d.getTime()+ge*ar;return ue.w(Ar,this)},Ie.subtract=function(ge,Ue){return this.add(-1*ge,Ue)},Ie.format=function(ge){var Ue=this,$e=this.$locale();if(!this.isValid())return $e.invalidDate||k;var Qe=ge||"YYYY-MM-DDTHH:mm:ssZ",ut=ue.z(this),Jt=this.$H,ar=this.$m,Ar=this.$M,Ur=$e.weekdays,Gr=$e.months,Li=$e.meridiem,Cn=function(pi,sn,eo,il){return pi&&(pi[sn]||pi(Ue,Qe))||eo[sn].slice(0,il)},Qa=function(pi){return ue.s(Jt%12||12,pi,"0")},$n=Li||function(pi,sn,eo){var il=pi<12?"AM":"PM";return eo?il.toLowerCase():il};return Qe.replace(H,function(pi,sn){return sn||function(eo){switch(eo){case"YY":return String(Ue.$y).slice(-2);case"YYYY":return ue.s(Ue.$y,4,"0");case"M":return Ar+1;case"MM":return ue.s(Ar+1,2,"0");case"MMM":return Cn($e.monthsShort,Ar,Gr,3);case"MMMM":return Cn(Gr,Ar);case"D":return Ue.$D;case"DD":return ue.s(Ue.$D,2,"0");case"d":return String(Ue.$W);case"dd":return Cn($e.weekdaysMin,Ue.$W,Ur,2);case"ddd":return Cn($e.weekdaysShort,Ue.$W,Ur,3);case"dddd":return Ur[Ue.$W];case"H":return String(Jt);case"HH":return ue.s(Jt,2,"0");case"h":return Qa(1);case"hh":return Qa(2);case"a":return $n(Jt,ar,!0);case"A":return $n(Jt,ar,!1);case"m":return String(ar);case"mm":return ue.s(ar,2,"0");case"s":return String(Ue.$s);case"ss":return ue.s(Ue.$s,2,"0");case"SSS":return ue.s(Ue.$ms,3,"0");case"Z":return ut}return null}(pi)||ut.replace(":","")})},Ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Ie.diff=function(ge,Ue,$e){var Qe,ut=this,Jt=ue.p(Ue),ar=Y(ge),Ar=(ar.utcOffset()-this.utcOffset())*a,Ur=this-ar,Gr=function(){return ue.m(ut,ar)};switch(Jt){case L:Qe=Gr()/12;break;case A:Qe=Gr();break;case V:Qe=Gr()/3;break;case w:Qe=(Ur-Ar)/6048e5;break;case b:Qe=(Ur-Ar)/864e5;break;case v:Qe=Ur/l;break;case y:Qe=Ur/a;break;case t:Qe=Ur/i;break;default:Qe=Ur}return $e?Qe:ue.a(Qe)},Ie.daysInMonth=function(){return this.endOf(A).$D},Ie.$locale=function(){return ve[this.$L]},Ie.locale=function(ge,Ue){if(!ge)return this.$L;var $e=this.clone(),Qe=ce(ge,Ue,!0);return Qe&&($e.$L=Qe),$e},Ie.clone=function(){return ue.w(this.$d,this)},Ie.toDate=function(){return new Date(this.valueOf())},Ie.toJSON=function(){return this.isValid()?this.toISOString():null},Ie.toISOString=function(){return this.$d.toISOString()},Ie.toString=function(){return this.$d.toUTCString()},Oe}(),Ve=Ee.prototype;return Y.prototype=Ve,[["$ms",p],["$s",t],["$m",y],["$H",v],["$W",b],["$M",A],["$y",L],["$D",j]].forEach(function(Oe){Ve[Oe[1]]=function(Ie){return this.$g(Ie,Oe[0],Oe[1])}}),Y.extend=function(Oe,Ie){return Oe.$i||(Oe(Ie,Ee,Y),Oe.$i=!0),Y},Y.locale=ce,Y.isDayjs=ae,Y.unix=function(Oe){return Y(1e3*Oe)},Y.en=ve[ne],Y.Ls=ve,Y.p={},Y})})(LB);var Ide=LB.exports;const N=NB(Ide);var Z=(d=>(d.Error="error",d.Warning="warning",d))(Z||{}),le=(d=>(d.InvalidObjectStructure="invalid-object-structure",d.NameNotUniqueInScope="name-not-unique-in-scope",d.EmptyName="empty-name",d.MissingCaller="missing-caller",d.PropertyOverwritesOtherSiblingWithSameName="property-overwrites-other-sibling-with-same-name",d.PropertyOverwritesOtherSiblingWithSameImplementation="property-overwrites-other-sibling-with-same-name",d.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName="property-overwrites-other-implemented-entitys-property-with-same-name",d.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation="property-overwrites-other-implemented-entitys-property-with-same-name",d.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation="property-overwrites-other-extended-entitys-property-with-same-name",d.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName="property-overwrites-other-extended-entitys-property-with-same-name",d.PropertyOverwritesBasePropertyWithSameName="property-overwrites-base-property-with-same-name",d.PropertyOverwritesBasePropertyWithSameImplementation="property-overwrites-base-property-with-same-name",d.MethodOverwritesOtherSiblingWithSameName="method-overwrites-other-sibling-with-same-name",d.MethodOverwritesOtherSiblingWithSameImplementation="method-overwrites-other-sibling-with-same-name",d.MethodOverwritesOtherImplementedEntitysMethodWithSameName="method-overwrites-other-implemented-entitys-method-with-same-name",d.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation="method-overwrites-other-implemented-entitys-method-with-same-name",d.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation="method-overwrites-other-extended-entitys-method-with-same-name",d.MethodOverwritesOtherExtendedEntitysMethodWithSameName="method-overwrites-other-extended-entitys-method-with-same-name",d.MethodOverwritesBaseMethodWithSameName="method-overwrites-base-method-with-same-name",d.MethodOverwritesBaseMethodWithSameImplementation="method-overwrites-base-method-with-same-name",d.LoopBodyFunctionOverwrite="loop-body-function-overwrite",d.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",d.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",d.UnreachableEntity="unreachable-entity",d.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",d.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",d.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",d.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",d.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",d))(le||{}),q=(d=>(d.RootReference="root-reference",d.InvalidUUIDStringFormat="invalid-uuid-string-format",d.ReferencedEntityNotFound="referenced-entity-not-found",d.EntityIdNotUnique="entity-id-not-unique",d.BuiltInEntityGenerated="built-in-entity-generated",d.BuiltInEntityUpdated="built-in-entity-updated",d.BuiltInEntityDeleted="built-in-entity-deleted",d.UnknownEntityType="unknown-entity-type",d.MissingTypeProperty="missing-type-property",d.MissingIdProperty="missing-id-property",d.BuiltInEntityParent="built-in-entity-parent",d.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",d.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",d.RecommendedImplementOperationAction="recommended-implement-operation-action",d.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",d.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",d.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",d.RecommendedImplementConditionAction="recommended-implement-condition-action",d.InvalidReferenceObjectStructure="invalid-reference-object-structure",d.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",d.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",d.InvalidParentReference="invalid-parent-reference",d.InvalidImplementsReference="invalid-implements-reference",d.InvalidExtendsReference="invalid-extends-reference",d.InvalidGenerationActionPayload="invalid-generation-action-payload",d.InvalidReference="invalid-reference",d.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",d.InvalidUpdateEntityOperation="invalid-update-entity-operation",d.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",d.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",d.UnrecognizedProperty="unrecognized-property",d.SelfReference="self-reference",d.DuplicateReference="duplicate-reference",d.CallerWithIncompatibleScope="caller-with-incompatible-scope",d.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",d.InvalidInputMapDeclaration="invalid-input-map-declaration",d.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",d.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",d.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",d.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",d.OutputOverwrite="output-overwrite",d.InputOverwrite="input-overwrite",d.IncompatibleScope="incompatible-scope",d.InvalidParentUpdate="invalid-parent-update",d.NonInteractiveEntityReferenced="non-interactive-entity-referenced",d.InvalidParentRelationType="invalid-parent-relation-type",d))(q||{}),se=(d=>(d.NoPrimaryKeyProperty="no-primary-key-property",d.ScopeWithoutLogic="scope-without-logic",d.AbstractEntityImplements="abstract-entity-implements",d.ImplementsIncompatibleEntities="implements-incompatible-entities",d.ExtendsIncompatibleEntities="extends-incompatible-entities",d.NonAbstractExtendingAbstractEntity="non-abstract-extending-abstract-entity",d.AbstractExtendingNonAbstractEntity="abstract-extending-non-abstract-entity",d.NonStaticExtendingStaticEntity="non-static-extending-static-entity",d.StaticExtendingNonStaticEntity="static-extending-non-static-entity",d.StaticImplementingNonStaticEntity="static-implementing-non-static-entity",d.NonStaticImplementingStaticEntity="non-static-implementing-static-entity",d.ImplementingNonAbstractEntity="implementing-non-abstract-entity",d.ExtendingNonInteractiveEntity="extending-non-interactive-entity",d.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",d.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",d.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",d.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",d.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",d.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",d.IncorrectEntityImplementation="incorrect-entity-implementation",d.IncorrectMethodImplementation="incorrect-method-implementation",d.IncorrectPropertyImplementation="incorrect-property-implementation",d.PropertyImplementsNonAbstact="property-implements-non-abstract",d.NonStaticPropertyImplementsStatic="non-static-property-implements-static",d.StaticPropertyImplementsNonStatic="static-property-implements-non-static",d.PropertyImplementsIncompatibleType="property-implements-incompatible-type",d.MissingPropertyImplementation="missing-property-implementation",d.MissingMethodImplementation="missing-method-implementation",d.NoProperties="no-properties",d.ReadingFromIncompatibleType="reading-from-incompatible-type",d.WritingToIncompatibleType="writing-to-incompatible-type",d.InvalidPropertiesCombination="invalid-properties-combination",d.DisconnectedCallableEntity="disconnected-callable-entity",d.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",d.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",d.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",d.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",d.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",d.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",d))(se||{});class Q{constructor(u){D(this,"id");D(this,"message");D(this,"issue");D(this,"severity");D(this,"code");this.id=u.id,this.message=u.message,this.issue=u.issue,this.severity=u.severity,this.code=u.code}toEntityError(u){return this.code in le?new Zt({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:u}):null}}class Zt{constructor(u){D(this,"id");D(this,"message");D(this,"issue");D(this,"severity");D(this,"code");D(this,"entity");D(this,"firstRelationship");D(this,"secondRelationship");this.id=u.id,this.message=u.message,this.issue=u.issue,this.severity=u.severity,this.code=u.code,this.entity=u.entity,this.firstRelationship=u.firstRelationship,this.secondRelationship=u.secondRelationship}clone(){return new Zt({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity,firstRelationship:this.firstRelationship,secondRelationship:this.secondRelationship})}}function wde(d){const u=new Set;return d.filter(i=>u.has(i.id)?!1:(u.add(i.id),!0))}function lt(d){const u=d.entity.errors.find(a=>a.id===d.id);return u?{new:!1,error:u}:{new:!0,error:new Zt(d)}}function Rde(d,u){const i=new Map;return d.forEach(a=>{i.set(a.id,a)}),u.forEach(a=>{i.set(a.id,a)}),Array.from(i.values())}function Qt(d,u){const i=[];return u.forEach(a=>{const l=d.find(p=>p.id===a.id);l?i.push(l):i.push(a)}),i}const rc=B.union([B.string(),B.number(),B.boolean(),B.date()]),BB=B.enum([Dr.CurrentDateAndTime,Dr.Random,Dr.Unique]),Nh=B.object({type:BB,rangeStart:rc.nullable(),rangeEnd:rc.nullable()}),ic=Nh.extend({type:B.literal(Dr.Random),rangeStart:rc,rangeEnd:rc}),YE=Nh.extend({type:B.literal(Dr.Unique),rangeStart:B.null(),rangeEnd:B.null()}),MB=Nh.extend({type:B.literal(Dr.CurrentDateAndTime),rangeStart:B.null(),rangeEnd:B.null()}),Lh=ic.extend({rangeStart:B.number().nullable(),rangeEnd:B.number().nullable()}),UB=Lh.extend({rangeStart:B.number(),rangeEnd:B.null()}),jB=Lh.extend({rangeStart:B.null(),rangeEnd:B.number()}),xB=Lh.extend({rangeStart:B.number(),rangeEnd:B.number()}),Bh=ic.extend({rangeStart:B.number().nullable(),rangeEnd:B.number().nullable()}),FB=Bh.extend({rangeStart:B.number(),rangeEnd:B.null()}),GB=Bh.extend({rangeStart:B.null(),rangeEnd:B.number()}),KB=Bh.extend({rangeStart:B.number(),rangeEnd:B.number()}),Mh=ic.extend({rangeStart:B.date().nullable(),rangeEnd:B.date().nullable()}),kB=Mh.extend({rangeStart:B.date(),rangeEnd:B.null()}),SB=Mh.extend({rangeStart:B.null(),rangeEnd:B.date()}),qB=Mh.extend({rangeStart:B.date(),rangeEnd:B.date()}),zE=ic.extend({rangeStart:B.null(),rangeEnd:B.null()}),XE=B.union([FB,GB,KB]),QE=B.union([UB,jB,xB]),eT=B.union([kB,SB,qB,MB]),tT=B.union([XE,QE,eT,YE,zE]);function sc(){return B.union([B.object({type:B.literal(f.ValueDescriptor)}),B.record(B.string(),B.any())])}function ZB(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ValueDescriptor)})}function rT(){return B.object({id:B.string(),type:B.literal(f.ValueDescriptor),name:B.string(),required:B.boolean()})}function gde(){return rT().merge(B.object({version:B.number(),index:B.number()}))}function _de(){return rT().merge(B.object({}))}function Dde(){return B.object({dataType:Fo(),parent:jo()})}function Ode(){return gde().merge(Dde())}function Uh(){return B.union([B.object({type:B.literal(f.PrimitiveEntity)}),B.record(B.string(),B.any())])}function jh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.PrimitiveEntity)})}function xh(){return B.object({id:B.string(),type:B.literal(f.PrimitiveEntity),name:B.string(),description:B.string().nullable(),static:B.boolean(),abstract:B.boolean()})}function Cde(){return xh().merge(B.object({version:B.number()}))}function $de(){return xh().merge(B.object({}))}function Pde(){return B.object({properties:B.array(Uo()),methods:B.array(cs()),abstractMethods:B.array(wn()),extends:B.array(B.union([Uh(),rd()]))})}function Vde(){return Cde().merge(Pde())}function Uo(){return B.union([B.object({type:B.literal(f.Property)}),B.record(B.string(),B.any())])}function JB(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Property)})}function iT(){return B.object({id:B.string(),type:B.literal(f.Property),name:B.string(),description:B.string().nullable(),private:B.boolean(),static:B.boolean(),required:B.boolean(),abstract:B.boolean()})}function Nde(){return iT().merge(B.object({version:B.number(),index:B.number()}))}function Lde(){return iT().merge(B.object({}))}function Bde(){return B.object({dataType:Fo(),implements:Uo().nullable(),parent:B.union([ko(),jh(),Fh()])})}function Mde(){return Nde().merge(Bde())}function Ude(){return B.enum([Ce.CRON_JOB,Ce.EXECUTION,Ce.HTTP_ENDPOINT,Ce.PERSISTED_ENTITY,Ce.RELATIONAL_DATABASE])}function rd(){return B.union([B.object({type:B.literal(f.BuiltInBaseEntity)}),B.record(B.string(),B.any())])}function Fh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.BuiltInBaseEntity)})}function sT(){return B.object({id:B.string(),version:B.number(),type:B.literal(f.BuiltInBaseEntity),name:Ude(),description:B.string().nullable(),abstract:B.boolean(),static:B.boolean()})}function jde(){return sT()}function xde(){return sT().merge(B.object({}))}function Fde(){return B.object({properties:B.array(Uo()),methods:B.array(cs()),abstractMethods:B.array(wn()),extends:B.array(B.union([rd(),Uh()]))})}function Gde(){return jde().merge(Fde())}function wn(){return B.union([B.object({type:B.literal(f.ActionDescriptor)}),B.record(B.string(),B.any())])}function jo(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ActionDescriptor)})}function Gh(){return B.object({id:B.string(),type:B.literal(f.ActionDescriptor),name:B.string(),description:B.string().nullable()})}function Kde(){return Gh().merge(B.object({version:B.number()}))}function kde(){return Gh().merge(B.object({}))}function Sde(){return B.object({inputs:B.array(sc()),outputs:B.array(sc()),parent:B.union([Si(),ko(),Fh(),jh()]).nullable()})}function WB(){return Kde().merge(Sde())}function id(){return B.union([B.object({type:B.literal(f.Loop)}),B.record(B.string(),B.any())])}function Rn(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Loop)})}function HB(){return B.object({id:B.string(),type:B.literal(f.Loop)})}function qde(){return HB().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Zde(){return HB().merge(B.object({declaration:B.union([B.string(),cs()])}))}function Jde(){return B.object({calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),declaration:wn(),inputs:B.array(Js()),outputs:B.array($i()),outputsDeclarations:B.array(sc()),successCalls:B.array(Qr()),errorCalls:B.array(Qr()),error:$i(),body:cs(),parent:B.union([aa(),Si()]),breakStatements:B.array(od()),continueStatements:B.array(sd())})}function Wde(){return qde().merge(Jde())}function sd(){return B.union([B.object({type:B.literal(f.ContinueStatement)}),B.record(B.string(),B.any())])}function nd(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ContinueStatement)})}function nT(){return B.object({id:B.string(),type:B.literal(f.ContinueStatement)})}function Hde(){return nT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Yde(){return nT().merge(B.object({}))}function zde(){return B.object({calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),outputs:B.array(ia()),throws:B.optional(ia()),parent:Rn()})}function Xde(){return Hde().merge(zde())}function xo(){return B.union([B.object({type:B.literal(f.ReturnStatement)}),B.record(B.string(),B.any())])}function ad(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ReturnStatement)})}function aT(){return B.object({id:B.string(),type:B.literal(f.ReturnStatement)})}function Qde(){return aT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function eue(){return aT().merge(B.object({}))}function tue(){return B.object({calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),outputs:B.array(ia()),throws:B.optional(ia()),parent:aa()})}function rue(){return Qde().merge(tue())}function ia(){return B.union([B.object({type:B.literal(f.ReturnDeclaration)}),B.record(B.string(),B.any())])}function YB(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ReturnDeclaration)})}function oT(){return B.object({id:B.string(),type:B.literal(f.ReturnDeclaration),name:B.string(),description:B.string().nullable(),isError:B.boolean()})}function iue(){return oT().merge(B.object({version:B.number(),index:B.number()}))}function sue(){return oT().merge(B.object({}))}function nue(){return B.object({dataType:Fo().nullable(),readsValue:uc().nullable(),parent:B.union([ad(),jo(),sa(),nd()])})}function aue(){return iue().merge(nue())}function od(){return B.union([B.object({type:B.literal(f.BreakStatement)}),B.record(B.string(),B.any())])}function sa(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.BreakStatement)})}function lT(){return B.object({id:B.string(),type:B.literal(f.BreakStatement)})}function oue(){return lT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function lue(){return lT().merge(B.object({}))}function due(){return B.object({calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),outputs:B.array(ia()),throws:B.optional(ia()),parent:Rn()})}function uue(){return oue().merge(due())}function $i(){return B.union([B.object({type:B.literal(f.OutputMap)}),B.record(B.string(),B.any())])}function dT(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.OutputMap)})}function uT(){return B.object({id:B.string(),type:B.literal(f.OutputMap)})}function cue(){return uT().merge(B.object({version:B.number(),index:B.number()}))}function pue(){return uT().merge(B.object({}))}function fue(){return B.object({writesValues:B.array(na()),declaration:B.union([ia(),Uo()]),parent:B.union([cr(),Rn(),sa()])})}function hue(){return cue().merge(fue())}function ld(){return B.union([B.object({type:B.literal(f.FunctionCall)}),B.record(B.string(),B.any())])}function nc(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.FunctionCall)})}function cT(){return B.object({id:B.string(),type:B.literal(f.FunctionCall)})}function yue(){return cT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function mue(){return cT().merge(B.object({}))}function vue(){return B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),writesValues:B.array(na()),declaration:cs(),inputs:B.array(Js()),outputs:B.array($i()),error:B.optional($i()),parent:B.union([aa(),Si()])})}function Eue(){return yue().merge(vue())}function Tue(){return B.enum([ur.Equal,ur.NotEqual,ur.MoreThan,ur.MoreThanOrEqual,ur.LessThan,ur.LessThanOrEqual,ur.And,ur.Or,Br.Empty,Br.NotEmpty])}function ac(){return B.union([B.object({type:B.literal(f.Condition)}),B.record(B.string(),B.any())])}function Kh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Condition)})}function pT(){return B.object({id:B.string(),type:B.literal(f.Condition)})}function bue(){return pT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Aue(){return pT().merge(B.object({}))}function Iue(){return B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),leftValue:Js(),rightValue:Js().nullable(),operator:Tue(),parent:B.union([aa(),Si()])})}function wue(){return bue().merge(Iue())}function oc(){return B.union([B.object({type:B.literal(f.Search)}),B.record(B.string(),B.any())])}function lc(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Search)})}function fT(){return B.object({id:B.string(),type:B.literal(f.Search),name:B.string(),query:B.any(),description:B.string().nullable()})}function Rue(){return fT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function gue(){return fT().merge(B.object({}))}function _ue(){return B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),inputsDeclarations:B.array(Ko()),inputs:B.array(Js()),outputsDeclarations:B.array(sc()),outputs:B.array($i()),parent:B.union([aa(),Si()]),error:$i().nullable()})}function Due(){return Rue().merge(_ue())}function dc(){return B.union([B.object({type:B.literal(f.InternalCall)}),B.record(B.string(),B.any())])}function hT(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.InternalCall)})}function yT(){return B.object({id:B.string(),type:B.literal(f.InternalCall),index:B.number()})}function Oue(){return yT().merge(B.object({version:B.number(),index:B.number()}))}function Cue(){return yT().merge(B.object({declaration:B.union([B.string(),cs()])}))}function $ue(){return B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),writesValues:B.array(na()),declaration:cs(),inputs:B.array(Js()),outputs:B.array($i()),parent:Va(),error:B.optional($i())})}function Pue(){return Oue().merge($ue())}function Js(){return B.union([B.object({type:B.literal(f.InputMap)}),B.record(B.string(),B.any())])}function kh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.InputMap)})}function mT(){return B.object({id:B.string(),type:B.literal(f.InputMap),name:B.string().nullable().optional(),description:B.string().nullable().optional()})}function Vue(){return mT().merge(B.object({version:B.number(),index:B.number()}))}function Nue(){return mT().merge(B.object({}))}function Lue(){return B.object({defaultValue:vT().nullable(),declaration:B.union([Ko(),Uo()]).nullable(),readsValue:uc().nullable(),parent:B.union([cr(),kh(),Rn(),sa()])})}function Bue(){return Vue().merge(Lue())}function dd(){return B.union([B.object({type:B.literal(f.Operation)}),B.record(B.string(),B.any())])}function ud(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Operation)})}function Sh(){return B.object({id:B.string(),type:B.literal(f.Operation)})}function Mue(){return Sh().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Uue(){return Sh().merge(B.object({}))}function jue(){return Sh().merge(B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),writesValues:B.array(na()),declaration:wn(),inputs:B.array(Js()),outputs:B.array($i()),error:B.array($i()),parent:B.union([aa(),Si()])}))}function xue(){return Mue().merge(jue())}function qh(){return B.union([B.string(),B.number(),B.boolean(),B.null(),B.date()])}function zB(){return B.record(B.string(),qh())}function Fue(){return B.array(B.union([qh(),zB()]))}function XB(){return B.union([qh(),zB(),Fue()])}function QB(){return B.union([qh(),XB()])}function eM(){return B.enum([X.String,X.Number,X.Boolean,X.Null,X.Date,X.KeyValue,X.Enum,X.File,X.UUID,X.EntityTemplate,X.ActionDescriptor])}function tM(){return B.union([ko(),ud(),cc()])}function Gue(){return B.object({id:B.string(),name:eM(),type:B.literal(f.LiteralValue),value:QB(),autogeneration:tT.nullable()})}function Kue(){return Gue().merge(B.object({}))}function Ws(){return B.object({id:B.string(),version:B.number(),name:eM(),type:B.literal(f.LiteralValue),value:QB(),valueAsTypeList:B.array(tM()).nullable(),valueAsTypeSingle:tM().nullable(),autogeneration:tT.nullable(),parent:B.union([ET(),kh()])})}function kue(){return Ws().extend({name:B.literal(X.String),value:B.string(),autogeneration:XE.nullable()})}function Sue(){return Ws().extend({name:B.literal(X.Number),value:B.number(),autogeneration:QE.nullable()})}function que(){return Ws().extend({name:B.literal(X.Boolean),value:B.boolean(),autogeneration:zE.nullable()})}function Zue(){return Ws().extend({name:B.literal(X.Null),value:B.null(),autogeneration:B.null()})}function Jue(){return Ws().extend({name:B.literal(X.Date),value:B.date(),autogeneration:eT.nullable()})}function Wue(){return Ws().extend({name:B.literal(X.KeyValue),value:XB(),autogeneration:B.null()})}function Hue(){return Ws().extend({name:B.literal(X.Enum),value:B.string(),autogeneration:B.null()})}function Yue(){return Ws().extend({name:B.literal(X.File),value:B.string(),autogeneration:B.null()})}function zue(){return Ws().extend({name:B.literal(X.UUID),value:B.string(),autogeneration:YE.nullable()})}function Xue(){return Ws().extend({name:B.literal(X.EntityTemplate),value:ko(),autogeneration:B.null()})}function Que(){return Ws().extend({name:B.literal(X.ActionDescriptor),value:cc(),autogeneration:B.null()})}function vT(){return B.union([kue(),Sue(),que(),Zue(),Jue(),Wue(),Hue(),Yue(),zue(),Xue(),Que()])}function Fo(){return B.union([B.object({type:B.literal(f.DataType)}),B.record(B.string(),B.any())])}function ET(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.DataType)})}function TT(){return B.object({id:B.string(),type:B.literal(f.DataType),isNullable:B.boolean(),isList:B.boolean(),constant:B.boolean(),asType:B.boolean(),options:B.array(B.string()).optional()})}function ece(){return TT().merge(B.object({version:B.number()}))}function tce(){return TT().merge(B.object({}))}function rce(){return B.object({defaultValue:vT().nullable(),entity:B.union([cd(),rd(),Uh(),wn()]).nullable(),parent:B.union([JB(),sM(),ZB()])})}function ice(){return ece().merge(rce())}function bT(){return B.union([B.object({type:B.literal(f.VariableDeclaration)}),B.record(B.string(),B.any())])}function sce(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.VariableDeclaration)})}function AT(){return B.object({id:B.string(),type:B.literal(f.VariableDeclaration),name:B.string(),description:B.string().nullable()})}function nce(){return AT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function ace(){return AT().merge(B.object({}))}function oce(){return B.object({dataType:Fo().nullable(),readsValue:uc().nullable(),writesValues:B.array(na()),inputs:B.array(Js()),outputs:B.array($i()),successCalls:B.array(Qr()),errorCalls:B.array(Qr()),internalCalls:B.array(dc()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),parent:B.union([aa(),Si()])})}function lce(){return nce().merge(oce())}function rM(){return B.union([B.object({type:B.literal(f.VariableInstance)}),B.record(B.string(),B.any())])}function dce(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.VariableInstance)})}function IT(){return B.object({id:B.string(),type:B.literal(f.VariableInstance)})}function uce(){return IT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function cce(){return IT().merge(B.object({}))}function pce(){return B.object({declaration:bT(),dataType:Fo().nullable(),readsValue:uc().nullable(),writesValues:B.array(na()),inputs:B.array(Js()),outputs:B.array($i()),successCalls:B.array(Qr()),errorCalls:B.array(Qr()),internalCalls:B.array(dc()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),parent:B.union([aa(),Si()])})}function fce(){return uce().merge(pce())}function wT(){return B.union([B.object({type:B.literal(f.InstalledProject)}),B.record(B.string(),B.any())])}function Zh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.InstalledProject)})}function hce(){return B.object({id:B.string(),type:B.literal(f.InstalledProject)})}function yce(){return B.object({version:B.number(),x:B.number(),y:B.number()})}function mce(){return B.object({})}function vce(){return B.object({implements:Si(),description:B.string().nullable(),functions:B.array(cs()),events:B.array(RT()),parent:Si()})}function Ece(){return yce().merge(vce())}function RT(){return B.union([B.object({type:B.literal(f.GlobalEvent)}),B.record(B.string(),B.any())])}function Tce(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.GlobalEvent)})}function Jh(){return B.object({id:B.string(),type:B.literal(f.GlobalEvent),name:B.string(),collapsed:B.boolean()})}function bce(){return Jh().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Ace(){return Jh().merge(B.object({}))}function Ice(){return Jh().merge(B.object({returnStatements:B.array(xo()),implements:B.array(WB()),inputs:B.array(Ko()),calls:B.array(Qr()),parent:B.union([Si(),Zh()])}))}function wce(){return bce().merge(Ice())}function Go(){return B.union([bT(),rM()])}function Va(){return B.union([sce(),dce()])}function na(){return B.union([Go(),Js(),ia()])}function iM(){return B.union([Va(),kh(),YB()])}function uc(){return B.union([Go(),Ko(),$i(),dd(),dc(),ld()])}function Rce(){return B.union([Va(),gT(),dT(),ud(),hT(),nc()])}function gce(){return B.union([Ko(),$i(),na()])}function sM(){return B.union([gT(),dT(),iM()])}function Wh(){return RT()}function Hh(){return Tce()}function Yh(){return B.union([dd(),ld(),ac(),oc(),Go(),dc(),id()])}function cr(){return B.union([ud(),nc(),Kh(),lc(),Va(),hT(),Rn()])}function zh(){return B.union([dd(),ld(),ac(),oc(),Go(),id()])}function Xh(){return B.union([ud(),nc(),Kh(),lc(),Va(),Rn()])}function nM(){return B.union([Yh(),xo(),od(),sd()])}function Qr(){return B.union([cr(),ad(),sa(),nd()])}function aM(){return B.union([zh(),xo(),od(),sd()])}function oM(){return B.union([Xh(),ad(),sa(),nd()])}function Na(){return B.union([cs(),Wh()])}function Zr(){return B.union([cc(),Hh()])}function _ce(){return B.union([Yh(),Na()])}function Dce(){return B.union([cr(),Zr()])}function Oce(){return B.union([zh(),Na()])}function Cce(){return B.union([Xh(),Zr()])}function $ce(){return B.union([nM(),Na()])}function Pce(){return B.union([Qr(),Zr()])}function Vce(){return B.union([aM(),Na()])}function Nce(){return B.union([oM(),Zr()])}function Lce(){return B.union([Na(),id()])}function aa(){return B.union([Zr(),Rn()])}function Bce(){return B.union([Yh(),Na()])}function Mce(){return B.union([cr(),Zr()])}function Uce(){return B.union([zh(),Na()])}function jce(){return B.union([Xh(),Zr()])}function xce(){return B.union([xo(),od(),sd()])}function Fce(){return B.union([ad(),sa(),nd()])}function Gce(){return B.union([rd(),Qce(),wT(),cd(),cs(),Wh(),Go(),Js(),$i(),ac(),dd(),ld(),ia(),Ko(),Uh(),Fo(),Uo(),wn(),xo(),sd(),od(),id(),oc(),wn(),wn(),sc(),dc()])}function Kce(){return B.union([Fh(),Si(),Zh(),ko(),cc(),Hh(),Va(),kh(),dT(),Kh(),ud(),nc(),YB(),gT(),jh(),ET(),JB(),jo(),ad(),nd(),sa(),Rn(),lc(),jo(),jo(),ZB(),hT()])}function kce(){return B.union([wT(),cd(),cs(),Wh(),Go(),ac(),dd(),ld(),xo(),sd(),od(),id(),oc()])}function Sce(){return B.union([Zh(),ko(),cc(),Hh(),Va(),Kh(),ud(),nc(),ad(),nd(),sa(),Rn(),lc()])}function Ko(){return B.union([B.object({type:B.literal(f.ArgumentDeclaration)}),B.record(B.string(),B.any())])}function gT(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ArgumentDeclaration)})}function _T(){return B.object({id:B.string(),type:B.literal(f.ArgumentDeclaration)})}function qce(){return _T().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Zce(){return _T().merge(B.object({}))}function Jce(){return B.object({dataType:Fo().nullable(),writesValues:B.array(na()),parent:B.union([Zr(),jo(),jo(),lc(),sa()])})}function Wce(){return qce().merge(Jce())}function cs(){return B.union([B.object({type:B.literal(f.FunctionDeclaration)}),B.record(B.string(),B.any())])}function cc(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.FunctionDeclaration)})}function DT(){return B.object({id:B.string(),type:B.literal(f.FunctionDeclaration),name:B.string(),description:B.string().nullable()})}function Hce(){return DT().merge(B.object({version:B.number(),x:B.number(),y:B.number(),index:B.number().nullable()}))}function Yce(){return DT()}function zce(){return B.object({inputs:B.array(Ko()),implements:wn().nullable(),returnStatements:B.array(xo()),parent:B.union([Si(),Zh(),ko(),Rn(),Fh(),jh()])})}function Xce(){return Hce().merge(zce())}function Qce(){return B.union([B.object({type:B.literal(f.Project)}),B.record(B.string(),B.any())])}function Si(){return B.object({entityType:B.literal(f.Project),entityId:B.string(),id:B.string(),type:B.literal(f.GenericReference)})}function OT(){return B.object({id:B.string(),type:B.literal(f.Project),name:B.string(),description:B.string().nullable()})}function epe(){return OT().merge(B.object({version:B.number()}))}function tpe(){return OT()}function rpe(){return B.object({entities:B.array(cd()),functions:B.array(cs()),events:B.array(RT()),projects:B.array(wT()),variableDeclarations:B.array(bT()),variableInstances:B.array(rM()),conditions:B.array(ac()),operations:B.array(dd()),functionCalls:B.array(ld()),loops:B.array(id()),searches:B.array(oc())})}function ipe(){return epe().merge(rpe())}function cd(){return B.union([B.object({type:B.literal(f.DefinitionEntity)}),B.record(B.string(),B.any())])}function ko(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.DefinitionEntity)})}function CT(){return B.object({id:B.string(),type:B.literal(f.DefinitionEntity),name:B.string(),description:B.string().nullable(),static:B.boolean(),abstract:B.boolean()})}function spe(){return CT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function npe(){return CT().merge(B.object({}))}function ape(){return B.union([Si(),ET()])}function ope(){return B.object({properties:B.array(Uo()),methods:B.array(cs()),abstractMethods:B.array(wn()),extends:B.array(B.union([cd(),rd()])),implements:B.array(B.union([cd(),rd()])),parent:ape()})}function lpe(){return spe().merge(ope())}function dpe(d){return d instanceof Error&&d.name==="ZodError"&&"issues"in d&&Array.isArray(d.issues)}var upe=class extends Error{constructor(u,i){super(u,i);D(this,"name");D(this,"details");this.name="ZodValidationError",this.details=cpe(i)}toString(){return this.message}};function cpe(d){if(d){const u=d.cause;if(dpe(u))return u.issues}return[]}function ppe(d){return d.length!==0}var fpe=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function hpe(d){return d.length===1?d[0].toString():d.reduce((u,i)=>{if(typeof i=="number")return u+"["+i.toString()+"]";if(i.includes('"'))return u+'["'+ype(i)+'"]';if(!fpe.test(i))return u+'["'+i+'"]';const a=u.length===0?"":".";return u+a+i},"")}function ype(d){return d.replace(/"/g,'\\"')}var mpe="; ",vpe=99,lM="Validation error",Epe=": ",Tpe=", or ";function bpe(d={}){const{issueSeparator:u=mpe,unionSeparator:i=Tpe,prefixSeparator:a=Epe,prefix:l=lM,includePath:p=!0,maxIssuesInMessage:t=vpe}=d;return y=>{const v=y.slice(0,t).map(b=>Qh({issue:b,issueSeparator:u,unionSeparator:i,includePath:p})).join(u);return Ape(v,l,a)}}function Qh(d){const{issue:u,issueSeparator:i,unionSeparator:a,includePath:l}=d;if(u.code===De.invalid_union)return u.unionErrors.reduce((p,t)=>{const y=t.issues.map(v=>Qh({issue:v,issueSeparator:i,unionSeparator:a,includePath:l})).join(i);return p.includes(y)||p.push(y),p},[]).join(a);if(u.code===De.invalid_arguments)return[u.message,...u.argumentsError.issues.map(p=>Qh({issue:p,issueSeparator:i,unionSeparator:a,includePath:l}))].join(i);if(u.code===De.invalid_return_type)return[u.message,...u.returnTypeError.issues.map(p=>Qh({issue:p,issueSeparator:i,unionSeparator:a,includePath:l}))].join(i);if(l&&ppe(u.path)){if(u.path.length===1){const p=u.path[0];if(typeof p=="number")return`${u.message} at index ${p}`}return`${u.message} at "${hpe(u.path)}"`}return u.message}function Ape(d,u,i){return u!==null?d.length>0?[u,d].join(i):u:d.length>0?d:lM}function Ipe(d,u={}){const a=wpe(u)([d]);return new upe(a,{cause:new ki([d])})}function wpe(d){return"messageBuilder"in d?d.messageBuilder:bpe(d)}var dM="1.13.7",uM=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},ey=Array.prototype,$T=Object.prototype,cM=typeof Symbol<"u"?Symbol.prototype:null,Rpe=ey.push,pc=ey.slice,fc=$T.toString,gpe=$T.hasOwnProperty,pM=typeof ArrayBuffer<"u",_pe=typeof DataView<"u",Dpe=Array.isArray,fM=Object.keys,hM=Object.create,yM=pM&&ArrayBuffer.isView,Ope=isNaN,Cpe=isFinite,mM=!{toString:null}.propertyIsEnumerable("toString"),vM=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$pe=Math.pow(2,53)-1;function qi(d,u){return u=u==null?d.length-1:+u,function(){for(var i=Math.max(arguments.length-u,0),a=Array(i),l=0;l<i;l++)a[l]=arguments[l+u];switch(u){case 0:return d.call(this,a);case 1:return d.call(this,arguments[0],a);case 2:return d.call(this,arguments[0],arguments[1],a)}var p=Array(u+1);for(l=0;l<u;l++)p[l]=arguments[l];return p[u]=a,d.apply(this,p)}}function nr(d){var u=typeof d;return u==="function"||u==="object"&&!!d}function EM(d){return d===null}function TM(d){return d===void 0}function bM(d){return d===!0||d===!1||fc.call(d)==="[object Boolean]"}function Ppe(d){return!!(d&&d.nodeType===1)}function Ei(d){var u="[object "+d+"]";return function(i){return fc.call(i)===u}}const PT=Ei("String"),AM=Ei("Number"),Vpe=Ei("Date"),Npe=Ei("RegExp"),Lpe=Ei("Error"),IM=Ei("Symbol"),wM=Ei("ArrayBuffer");var RM=Ei("Function"),Bpe=uM.document&&uM.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Bpe!="function"&&(RM=function(d){return typeof d=="function"||!1});const Pi=RM,gM=Ei("Object");var _M=_pe&&(!/\[native code\]/.test(String(DataView))||gM(new DataView(new ArrayBuffer(8)))),VT=typeof Map<"u"&&gM(new Map),Mpe=Ei("DataView");function Upe(d){return d!=null&&Pi(d.getInt8)&&wM(d.buffer)}const ty=_M?Upe:Mpe,So=Dpe||Ei("Array");function La(d,u){return d!=null&&gpe.call(d,u)}var NT=Ei("Arguments");(function(){NT(arguments)||(NT=function(d){return La(d,"callee")})})();const LT=NT;function jpe(d){return!IM(d)&&Cpe(d)&&!isNaN(parseFloat(d))}function DM(d){return AM(d)&&Ope(d)}function OM(d){return function(){return d}}function CM(d){return function(u){var i=d(u);return typeof i=="number"&&i>=0&&i<=$pe}}function $M(d){return function(u){return u==null?void 0:u[d]}}const ry=$M("byteLength"),xpe=CM(ry);var Fpe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Gpe(d){return yM?yM(d)&&!ty(d):xpe(d)&&Fpe.test(fc.call(d))}const PM=pM?Gpe:OM(!1),Zi=$M("length");function Kpe(d){for(var u={},i=d.length,a=0;a<i;++a)u[d[a]]=!0;return{contains:function(l){return u[l]===!0},push:function(l){return u[l]=!0,d.push(l)}}}function VM(d,u){u=Kpe(u);var i=vM.length,a=d.constructor,l=Pi(a)&&a.prototype||$T,p="constructor";for(La(d,p)&&!u.contains(p)&&u.push(p);i--;)p=vM[i],p in d&&d[p]!==l[p]&&!u.contains(p)&&u.push(p)}function ai(d){if(!nr(d))return[];if(fM)return fM(d);var u=[];for(var i in d)La(d,i)&&u.push(i);return mM&&VM(d,u),u}function hc(d){if(d==null)return!0;var u=Zi(d);return typeof u=="number"&&(So(d)||PT(d)||LT(d))?u===0:Zi(ai(d))===0}function NM(d,u){var i=ai(u),a=i.length;if(d==null)return!a;for(var l=Object(d),p=0;p<a;p++){var t=i[p];if(u[t]!==l[t]||!(t in l))return!1}return!0}function tr(d){if(d instanceof tr)return d;if(!(this instanceof tr))return new tr(d);this._wrapped=d}tr.VERSION=dM,tr.prototype.value=function(){return this._wrapped},tr.prototype.valueOf=tr.prototype.toJSON=tr.prototype.value,tr.prototype.toString=function(){return String(this._wrapped)};function LM(d){return new Uint8Array(d.buffer||d,d.byteOffset||0,ry(d))}var BM="[object DataView]";function BT(d,u,i,a){if(d===u)return d!==0||1/d===1/u;if(d==null||u==null)return!1;if(d!==d)return u!==u;var l=typeof d;return l!=="function"&&l!=="object"&&typeof u!="object"?!1:MM(d,u,i,a)}function MM(d,u,i,a){d instanceof tr&&(d=d._wrapped),u instanceof tr&&(u=u._wrapped);var l=fc.call(d);if(l!==fc.call(u))return!1;if(_M&&l=="[object Object]"&&ty(d)){if(!ty(u))return!1;l=BM}switch(l){case"[object RegExp]":case"[object String]":return""+d==""+u;case"[object Number]":return+d!=+d?+u!=+u:+d==0?1/+d===1/u:+d==+u;case"[object Date]":case"[object Boolean]":return+d==+u;case"[object Symbol]":return cM.valueOf.call(d)===cM.valueOf.call(u);case"[object ArrayBuffer]":case BM:return MM(LM(d),LM(u),i,a)}var p=l==="[object Array]";if(!p&&PM(d)){var t=ry(d);if(t!==ry(u))return!1;if(d.buffer===u.buffer&&d.byteOffset===u.byteOffset)return!0;p=!0}if(!p){if(typeof d!="object"||typeof u!="object")return!1;var y=d.constructor,v=u.constructor;if(y!==v&&!(Pi(y)&&y instanceof y&&Pi(v)&&v instanceof v)&&"constructor"in d&&"constructor"in u)return!1}i=i||[],a=a||[];for(var b=i.length;b--;)if(i[b]===d)return a[b]===u;if(i.push(d),a.push(u),p){if(b=d.length,b!==u.length)return!1;for(;b--;)if(!BT(d[b],u[b],i,a))return!1}else{var w=ai(d),A;if(b=w.length,ai(u).length!==b)return!1;for(;b--;)if(A=w[b],!(La(u,A)&&BT(d[A],u[A],i,a)))return!1}return i.pop(),a.pop(),!0}function kpe(d,u){return BT(d,u)}function yc(d){if(!nr(d))return[];var u=[];for(var i in d)u.push(i);return mM&&VM(d,u),u}function MT(d){var u=Zi(d);return function(i){if(i==null)return!1;var a=yc(i);if(Zi(a))return!1;for(var l=0;l<u;l++)if(!Pi(i[d[l]]))return!1;return d!==xM||!Pi(i[UT])}}var UT="forEach",UM="has",jT=["clear","delete"],jM=["get",UM,"set"],Spe=jT.concat(UT,jM),xM=jT.concat(jM),qpe=["add"].concat(jT,UT,UM);const Zpe=VT?MT(Spe):Ei("Map"),Jpe=VT?MT(xM):Ei("WeakMap"),Wpe=VT?MT(qpe):Ei("Set"),Hpe=Ei("WeakSet");function pd(d){for(var u=ai(d),i=u.length,a=Array(i),l=0;l<i;l++)a[l]=d[u[l]];return a}function Ype(d){for(var u=ai(d),i=u.length,a=Array(i),l=0;l<i;l++)a[l]=[u[l],d[u[l]]];return a}function FM(d){for(var u={},i=ai(d),a=0,l=i.length;a<l;a++)u[d[i[a]]]=i[a];return u}function xT(d){var u=[];for(var i in d)Pi(d[i])&&u.push(i);return u.sort()}function FT(d,u){return function(i){var a=arguments.length;if(u&&(i=Object(i)),a<2||i==null)return i;for(var l=1;l<a;l++)for(var p=arguments[l],t=d(p),y=t.length,v=0;v<y;v++){var b=t[v];(!u||i[b]===void 0)&&(i[b]=p[b])}return i}}const GM=FT(yc),iy=FT(ai),KM=FT(yc,!0);function zpe(){return function(){}}function kM(d){if(!nr(d))return{};if(hM)return hM(d);var u=zpe();u.prototype=d;var i=new u;return u.prototype=null,i}function Xpe(d,u){var i=kM(d);return u&&iy(i,u),i}function Qpe(d){return nr(d)?So(d)?d.slice():GM({},d):d}function efe(d,u){return u(d),d}function SM(d){return So(d)?d:[d]}tr.toPath=SM;function mc(d){return tr.toPath(d)}function GT(d,u){for(var i=u.length,a=0;a<i;a++){if(d==null)return;d=d[u[a]]}return i?d:void 0}function qM(d,u,i){var a=GT(d,mc(u));return TM(a)?i:a}function tfe(d,u){u=mc(u);for(var i=u.length,a=0;a<i;a++){var l=u[a];if(!La(d,l))return!1;d=d[l]}return!!i}function KT(d){return d}function vc(d){return d=iy({},d),function(u){return NM(u,d)}}function kT(d){return d=mc(d),function(u){return GT(u,d)}}function Ec(d,u,i){if(u===void 0)return d;switch(i??3){case 1:return function(a){return d.call(u,a)};case 3:return function(a,l,p){return d.call(u,a,l,p)};case 4:return function(a,l,p,t){return d.call(u,a,l,p,t)}}return function(){return d.apply(u,arguments)}}function ZM(d,u,i){return d==null?KT:Pi(d)?Ec(d,u,i):nr(d)&&!So(d)?vc(d):kT(d)}function ST(d,u){return ZM(d,u,1/0)}tr.iteratee=ST;function Ji(d,u,i){return tr.iteratee!==ST?tr.iteratee(d,u):ZM(d,u,i)}function rfe(d,u,i){u=Ji(u,i);for(var a=ai(d),l=a.length,p={},t=0;t<l;t++){var y=a[t];p[y]=u(d[y],y,d)}return p}function JM(){}function ife(d){return d==null?JM:function(u){return qM(d,u)}}function sfe(d,u,i){var a=Array(Math.max(0,d));u=Ec(u,i,1);for(var l=0;l<d;l++)a[l]=u(l);return a}function qT(d,u){return u==null&&(u=d,d=0),d+Math.floor(Math.random()*(u-d+1))}const Tc=Date.now||function(){return new Date().getTime()};function WM(d){var u=function(p){return d[p]},i="(?:"+ai(d).join("|")+")",a=RegExp(i),l=RegExp(i,"g");return function(p){return p=p==null?"":""+p,a.test(p)?p.replace(l,u):p}}const HM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},nfe=WM(HM),afe=FM(HM),ofe=WM(afe),lfe=tr.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ZT=/(.)^/,dfe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ufe=/\\|'|\r|\n|\u2028|\u2029/g;function cfe(d){return"\\"+dfe[d]}var pfe=/^\s*(\w|\$)+\s*$/;function ffe(d,u,i){!u&&i&&(u=i),u=KM({},u,tr.templateSettings);var a=RegExp([(u.escape||ZT).source,(u.interpolate||ZT).source,(u.evaluate||ZT).source].join("|")+"|$","g"),l=0,p="__p+='";d.replace(a,function(b,w,A,V,L){return p+=d.slice(l,L).replace(ufe,cfe),l=L+b.length,w?p+=`'+
1
+ (function(O,ss){typeof exports=="object"&&typeof module<"u"?ss(exports):typeof define=="function"&&define.amd?define(["exports"],ss):(O=typeof globalThis<"u"?globalThis:O||self,ss(O["@elyx-code/project-logic-tree"]={}))})(this,function(O){"use strict";var gRt=Object.defineProperty;var _Rt=(O,ss,f)=>ss in O?gRt(O,ss,{enumerable:!0,configurable:!0,writable:!0,value:f}):O[ss]=f;var D=(O,ss,f)=>(_Rt(O,typeof ss!="symbol"?ss+"":ss,f),f);function ss(d,u){for(var i=0;i<u.length;i++){const a=u[i];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in d)){const p=Object.getOwnPropertyDescriptor(a,l);p&&Object.defineProperty(d,l,p.get?p:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var f=(d=>(d.DefinitionEntity="definition-entity",d.BuiltInBaseEntity="built-in-base-entity",d.Project="project",d.InstalledProject="installed-project",d.GlobalEvent="global-event",d.DataType="data-type",d.FunctionCall="function-call",d.FunctionDeclaration="function-declaration",d.ActionDescriptor="action-descriptor",d.ValueDescriptor="value-descriptor",d.ArgumentDeclaration="argument-declaration",d.InputMap="input-map",d.ReturnStatement="return-statement",d.BreakStatement="break-statement",d.ContinueStatement="continue-statement",d.ReturnDeclaration="return-declaration",d.OutputMap="output-map",d.PrimitiveEntity="primitive-entity",d.LiteralValue="literal-value",d.Property="property",d.Operation="operation",d.Condition="condition",d.VariableDeclaration="variable-declaration",d.VariableInstance="variable-instance",d.Search="search",d.Loop="loop",d.InternalCall="internal-call",d.GenericReference="generic-reference",d))(f||{}),Ce=(d=>(d.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",d.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",d.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",d.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",d.EXECUTION="BUILT_IN_EXECUTION_ENTITY",d.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",d))(Ce||{}),Dr=(d=>(d.CurrentDateAndTime="current-date-and-time",d.Unique="unique",d.Random="random",d))(Dr||{}),X=(d=>(d.EntityTemplate="entity-template",d.ActionDescriptor="action-descriptor",d.String="string",d.Number="number",d.Boolean="boolean",d.Null="null",d.Enum="enum",d.KeyValue="key-value",d.Date="date",d.UUID="uuid",d.File="file",d.Untyped="untyped",d))(X||{}),dr=(d=>(d.Addition="addition",d.Subtraction="subtraction",d.Multiplication="multiplication",d.Division="division",d.Remainder="remainder",d.Exponentiation="exponentiation",d))(dr||{}),Pe=(d=>(d.GenerateRandomInteger="generate-random-integer",d.GenerateRandomFloat="generate-random-float",d.GenerateRandomHexadecimal="generate-random-hexadecimal",d.GenerateRandomBase62="generate-random-base62",d.GenerateRandomBase64="generate-random-base64",d.GenerateRandomAlphanumeric="generate-random-alphanumeric",d.GenerateIdentifier="generate-identifier",d.GenerateRandomUUIDv4="generate-random-uuidv4",d.GenerateShortIdentifier="generate-short-identifier",d.GenerateHexadecimalToken="generate-hexadecimal-token",d))(Pe||{}),vt=(d=>(d.Join="string-join",d.Split="string-split",d.DeleteLast="string-delete-last",d.DeleteFirst="string-delete-first",d.DeleteIndex="string-delete-index",d.AddIndex="string-add-index",d.ReplaceFirst="string-replace-first",d.ReplaceLast="string-replace-last",d.ReplaceIndex="string-replace-index",d.ReplaceSingleMatch="string-replace-single-match",d.ReplaceAllMatches="string-replace-all-matches",d.GetIndex="string-get-index",d.GetFirst="string-get-first",d.GetLast="string-get-last",d.Append="string-append",d.Prepend="string-prepend",d))(vt||{}),pt=(d=>(d.Join="list-join",d.Split="list-split",d.DeleteLast="list-delete-last",d.DeleteFirst="list-delete-first",d.DeleteIndex="list-delete-index",d.AddIndex="list-add-index",d.ReplaceFirst="list-replace-first",d.ReplaceLast="list-replace-last",d.ReplaceIndex="list-replace-index",d.ReplaceSingleMatch="list-replace-single-match",d.ReplaceAllMatches="list-replace-all-matches",d.GetIndex="list-get-index",d.GetFirst="list-get-first",d.GetLast="list-get-last",d.Append="list-append",d.Prepend="list-prepend",d))(pt||{}),rr=(d=>(d.Parallel="parallel",d.Sequential="sequential",d.Wait="wait",d))(rr||{}),ir=(d=>(d.CreateNewInstance="create-new-instance",d.Validate="validate",d))(ir||{}),di=(d=>(d.HttpRequest="base-http-request",d))(di||{}),ur=(d=>(d.Equal="equal",d.NotEqual="not-equal",d.And="and",d.Or="or",d.LessThan="less-than",d.MoreThan="more-than",d.LessThanOrEqual="less-than-or-equal",d.MoreThanOrEqual="more-than-or-equal",d))(ur||{}),Br=(d=>(d.Empty="empty",d.NotEmpty="not-empty",d))(Br||{}),Ge=(d=>(d.ManualFlow="manual-flow-loop",d.Counted="counted-loop",d.List="list-loop",d.ObjectKeys="object-keys-loop",d.ObjectValues="object-values-loop",d.String="string-loop",d))(Ge||{}),oe=(d=>(d.FixedArguments="fixed-arguments",d.FixedReturns="fixed-returns",d.ReturnedError="returned-error",d.OngoingProcessExecution="ongoing-process-execution",d.DynamicArgument="dynamic-argument-types",d.DynamicReturn="dynamic-return-types",d))(oe||{}),Yr=(d=>(d.OrDataTypeGroup="or-data-type-group",d.AndDataTypeGroup="and-data-type-group",d))(Yr||{}),qn=(d=>(d.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",d))(qn||{}),ns=(d=>(d.DeletePersistedEntity="base-delete-persisted-entity",d.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",d.AbortExecution="base-abort-execution",d))(ns||{}),Ol=(d=>(d.Error="error",d.Task="task",d.Return="return",d))(Ol||{});const Zn=[f.VariableDeclaration,f.VariableInstance,f.InputMap,f.ReturnDeclaration],Or=[f.VariableDeclaration,f.VariableInstance,f.ArgumentDeclaration,f.OutputMap],S0=[...Zn,...Or,f.Property,f.ValueDescriptor],nt=[f.VariableDeclaration,f.VariableInstance],dk=[f.FunctionDeclaration,f.Condition,f.Loop,f.Operation,f.FunctionCall,f.Search,f.InternalCall,f.GlobalEvent,f.DefinitionEntity,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.VariableDeclaration,f.VariableInstance,f.LiteralValue,f.ActionDescriptor,f.ValueDescriptor,f.Property,f.DataType,f.InstalledProject,f.ArgumentDeclaration,f.InputMap,f.OutputMap,f.ReturnDeclaration],uk=[f.FunctionDeclaration,f.Property,f.ArgumentDeclaration,f.ReturnDeclaration],i1=[f.FunctionCall,f.VariableInstance,f.InputMap,f.OutputMap,f.InternalCall],ck=[...i1,f.Condition,f.Loop,f.Operation,f.Condition],Cl=[f.GlobalEvent],q0=[f.Operation,f.FunctionCall,f.Search,f.VariableDeclaration,f.VariableInstance,f.Loop],s1=[...q0,f.InternalCall],$f=[...q0,f.Condition],er=[...$f,f.InternalCall],Yt=[f.FunctionDeclaration,...Cl],Gs=[...er,f.ReturnStatement,f.BreakStatement,f.ContinueStatement],Z0=[...$f,f.ReturnStatement,f.BreakStatement,f.ContinueStatement],Ks=[...er,...Yt],n1=[...$f,...Yt],pk=[...Gs,...Yt],fk=[...Z0,...Yt],Ir=[...Yt,f.Loop],sr=[f.ReturnStatement,f.BreakStatement,f.ContinueStatement],hk=[f.DefinitionEntity,f.BuiltInBaseEntity,f.Project,f.InstalledProject,f.GlobalEvent,f.DataType,f.FunctionCall,f.FunctionDeclaration,f.ActionDescriptor,f.ValueDescriptor,f.ArgumentDeclaration,f.InputMap,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.ReturnDeclaration,f.OutputMap,f.PrimitiveEntity,f.LiteralValue,f.Property,f.Operation,f.Condition,f.VariableDeclaration,f.VariableInstance,f.Search,f.Loop,f.InternalCall],Pf=[f.DefinitionEntity,f.GlobalEvent,f.FunctionDeclaration,f.FunctionCall,f.VariableDeclaration,f.VariableInstance,f.Operation,f.Condition,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.InstalledProject,f.Loop,f.Search],a1=[f.DefinitionEntity,f.FunctionDeclaration,f.ArgumentDeclaration,f.ReturnDeclaration,f.Property,f.VariableDeclaration,f.Search,f.Project,f.InstalledProject,f.ActionDescriptor,f.ValueDescriptor],o1=[f.DefinitionEntity,f.FunctionDeclaration,f.ArgumentDeclaration,f.ReturnDeclaration,f.Property,f.VariableDeclaration,f.InstalledProject,f.ActionDescriptor,f.ValueDescriptor],Gi=[f.BuiltInBaseEntity,f.PrimitiveEntity],l1=[f.DefinitionEntity,f.FunctionDeclaration,f.ArgumentDeclaration,f.ReturnDeclaration,f.Property,f.VariableDeclaration,f.GlobalEvent,f.Search,f.Project,f.InstalledProject,f.ActionDescriptor,f.ValueDescriptor,f.InputMap,f.OutputMap,f.FunctionCall,f.Operation,f.Condition,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.VariableInstance,f.LiteralValue,f.InternalCall],yk=[f.FunctionDeclaration,f.InstalledProject,f.DataType,f.VariableDeclaration,f.VariableInstance,f.Operation,f.DefinitionEntity,f.GlobalEvent,f.FunctionDeclaration,f.FunctionDeclaration,f.Property,f.FunctionCall,f.ArgumentDeclaration,f.InputMap,f.OutputMap,f.ReturnDeclaration,f.Condition,f.ReturnStatement,f.BreakStatement,f.ContinueStatement,f.Loop,f.ActionDescriptor,f.Search,f.LiteralValue,f.ValueDescriptor,f.InternalCall];var $l=(d=>(d.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",d.SearchErrorOutputDescriptor="search-error-output-descriptor-id",d))($l||{});const me={[f.PrimitiveEntity]:{[X.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[X.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[X.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[X.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[X.Enum]:{id:"9542b8b4-2642-4eee-9db9-def7963a17a0",properties:{options:{id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",dataType:{id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",defaultValue:{id:"enum-options-property-data-type-default-value-id"}}}}},[X.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[X.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[X.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[X.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[f.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}},"search-error-output-descriptor-id":{id:"search-error-output-descriptor-id",dataType:{id:"search-error-output-data-type-id"}}},[f.BuiltInBaseEntity]:{[Ce.KEY_VALUE_PARAM]:{id:Ce.KEY_VALUE_PARAM},[Ce.HTTP_ENDPOINT]:{id:Ce.HTTP_ENDPOINT,properties:{method:{id:"http-endpoint-built-in-method-property-id"},path:{id:"http-endpoint-built-in-path-property-id"},cors:{id:"http-endpoint-built-in-cors-property-id"}},methods:{handler:{id:"http-endpoint-built-in-handler-method-id",outputs:{statusCode:{id:"http-endpoint-built-in-handler-status-code-output-id"},body:{id:"http-endpoint-built-in-handler-body-output-id"},headers:{id:"http-endpoint-built-in-handler-headers-output-id"}}}}},[Ce.PERSISTED_ENTITY]:{id:Ce.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[Ce.RELATIONAL_DATABASE]:{id:Ce.RELATIONAL_DATABASE,properties:{identifier:{id:"relational-database-built-in-base-entity-identifier-property-id"},username:{id:"relational-database-built-in-base-entity-username-property-id"},password:{id:"relational-database-built-in-base-entity-password-property-id"},minSize:{id:"relational-database-built-in-base-entity-min-size-property-id"},default:{id:"relational-database-built-in-base-entity-default-property-id"},autoscaling:{id:"relational-database-built-in-base-entity-autoscaling-property-id"}}},[Ce.CRON_JOB]:{id:Ce.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}},methods:{handler:{id:"cron-job-built-in-base-entity-handler-method-id"}}}},[f.Operation]:{[vt.Join]:{id:vt.Join,inputs:{separator:{id:"join-strings-separator-input-id"},first:{id:"join-strings-first-string-input-id"},second:{id:"join-strings-second-string-input-id"},dynamicString:{id:"join-strings-dynamic-string-input-id"}},outputs:{result:{id:"join-strings-result-string-return-delaration-id"},error:{id:"join-strings-error-return-delaration-id"}}},[vt.Split]:{id:vt.Split,inputs:{stringValue:{id:"split-string-string-input-id"},indexLocation:{id:"split-string-index-input-id"}},outputs:{firstPartResult:{id:"split-string-first-part-result-string-return-delaration-id"},secondPartResult:{id:"split-string-second-part-result-string-return-delaration-id"},error:{id:"split-string-error-return-delaration-id"}}},[dr.Addition]:{id:dr.Addition,inputs:{firstSummand:{id:"number-addition-first-summand-number-input-id"},secondSummand:{id:"number-addition-second-summand-number-input-id"},dynamicSummand:{id:"number-addition-dynamic-summand-number-input-id"}},outputs:{result:{id:"number-addition-result-number-return-delaration-id",dataType:{id:"number-addition-result-number-data-type-id"}},error:{id:"number-addition-error-return-delaration-id"}}},[dr.Subtraction]:{id:dr.Subtraction,inputs:{minuend:{id:"number-subtraction-minuend-number-input-id"},subtrahend:{id:"number-subtraction-subtrahend-number-input-id"},dynamicSubtrahend:{id:"number-subtraction-dynamic-subtrahend-number-input-id"}},outputs:{result:{id:"number-subtraction-result-number-return-delaration-id",dataType:{id:"number-subtraction-result-number-data-type-id"}},error:{id:"number-subtraction-error-return-delaration-id"}}},[di.HttpRequest]:{id:di.HttpRequest,inputs:{url:{id:"http-request-url-input-id"},query:{id:"http-request-query-input-id"},method:{id:"http-request-method-input-id"},headers:{id:"http-request-headers-input-id"},body:{id:"http-request-body-string-input-id"}},outputs:{code:{id:"http-response-code-return-delaration-id"},body:{id:"http-response-body-return-delaration-id"},headers:{id:"http-response-headers-return-delaration-id"},error:{id:"http-request-error-return-delaration-id"}}},[ir.Validate]:{id:ir.Validate,inputs:{entityToMatch:{id:"validate-data-entity-to-match-input-id"},dataToValidate:{id:"validate-data-data-to-validate-input-id"}},outputs:{outputEntity:{id:"validate-data-output-entity-return-delaration-id"},error:{id:"validate-data-error-return-delaration-id"}}},[rr.Parallel]:{id:rr.Parallel,inputs:{listOfActions:{id:"parallel-execution-list-of-actions-input-id"}},outputs:{results:{id:"parallel-execution-results-output-id",dataType:{id:"parallel-execution-results-data-type-id"}},error:{id:"parallel-execution-error-output-id"}}},[Pe.GenerateRandomInteger]:{id:Pe.GenerateRandomInteger,inputs:{min:{id:"generate-random-integer-min-input-id"},max:{id:"generate-random-integer-max-input-id"}},outputs:{result:{id:"generate-random-integer-result-number-return-delaration-id",dataType:{id:"generate-random-integer-result-number-data-type-id"}},error:{id:"generate-random-integer-error-return-delaration-id"}}},[Pe.GenerateRandomFloat]:{id:Pe.GenerateRandomFloat,inputs:{},outputs:{result:{id:"generate-random-float-result-number-return-delaration-id",dataType:{id:"generate-random-float-result-number-data-type-id"}},error:{id:"generate-random-float-error-return-delaration-id"}}},[Pe.GenerateRandomHexadecimal]:{id:Pe.GenerateRandomHexadecimal,inputs:{length:{id:"generate-random-hexadecimal-length-input-id",dataType:{id:"generate-random-hexadecimal-length-data-type-id"}}},outputs:{result:{id:"generate-random-hexadecimal-result-string-return-delaration-id",dataType:{id:"generate-random-hexadecimal-result-string-data-type-id"}},error:{id:"generate-random-hexadecimal-error-return-delaration-id"}}},[Pe.GenerateRandomBase62]:{id:Pe.GenerateRandomBase62,inputs:{length:{id:"generate-random-base62-length-input-id",dataType:{id:"generate-random-base62-length-data-type-id"}}},outputs:{result:{id:"generate-random-base62-result-string-return-delaration-id",dataType:{id:"generate-random-base62-result-string-data-type-id"}},error:{id:"generate-random-base62-error-return-delaration-id"}}},[Pe.GenerateRandomBase64]:{id:Pe.GenerateRandomBase64,inputs:{length:{id:"generate-random-base64-length-input-id",dataType:{id:"generate-random-base64-length-data-type-id"}}},outputs:{result:{id:"generate-random-base64-result-string-return-delaration-id",dataType:{id:"generate-random-base64-result-string-data-type-id"}},error:{id:"generate-random-base64-error-return-delaration-id"}}},[Pe.GenerateRandomAlphanumeric]:{id:Pe.GenerateRandomAlphanumeric,inputs:{length:{id:"generate-random-alphanumeric-length-input-id",dataType:{id:"generate-random-alphanumeric-length-data-type-id"}}},outputs:{result:{id:"generate-random-alphanumeric-result-string-return-delaration-id",dataType:{id:"generate-random-alphanumeric-result-string-data-type-id"}},error:{id:"generate-random-alphanumeric-error-return-delaration-id"}}},[Pe.GenerateIdentifier]:{id:Pe.GenerateIdentifier,inputs:{length:{id:"generate-identifier-length-input-id",dataType:{id:"generate-identifier-length-data-type-id"}},alphabet:{id:"generate-identifier-alphabet-input-id",dataType:{id:"generate-identifier-alphabet-data-type-id"}}},outputs:{result:{id:"generate-identifier-result-string-return-delaration-id",dataType:{id:"generate-identifier-result-string-data-type-id"}},error:{id:"generate-identifier-error-return-delaration-id"}}},[Pe.GenerateRandomUUIDv4]:{id:Pe.GenerateRandomUUIDv4,inputs:{},outputs:{result:{id:"generate-random-uuidv4-result-string-return-delaration-id",dataType:{id:"generate-random-uuidv4-result-string-data-type-id"}},error:{id:"generate-random-uuidv4-error-return-delaration-id"}}},[Pe.GenerateShortIdentifier]:{id:Pe.GenerateShortIdentifier,inputs:{},outputs:{result:{id:"generate-short-identifier-result-string-return-delaration-id",dataType:{id:"generate-short-identifier-result-string-data-type-id"}},error:{id:"generate-short-identifier-error-return-delaration-id"}}},[Pe.GenerateHexadecimalToken]:{id:Pe.GenerateHexadecimalToken,inputs:{},outputs:{result:{id:"generate-hexadecimal-token-result-string-return-delaration-id",dataType:{id:"generate-hexadecimal-token-result-string-data-type-id"}},error:{id:"generate-hexadecimal-token-error-return-delaration-id"}}}},[f.Loop]:{[Ge.List]:{id:Ge.List,inputs:{list:{id:"iterate-over-list-loop-list-input-id"}},outputs:{results:{id:"iterate-over-list-loop-output-id"}},body:{id:"iterate-over-list-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-list-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-list-loop-current-value-input-id"}}}},[Ge.String]:{id:Ge.String,inputs:{string:{id:"iterate-over-string-loop-string-input-id"}},outputs:{results:{id:"iterate-over-string-loop-output-id"}},body:{id:"iterate-over-string-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-string-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-string-loop-current-value-input-id"}}}},[Ge.ObjectKeys]:{id:Ge.ObjectKeys,inputs:{object:{id:"iterate-over-object-keys-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-keys-loop-output-id"}},body:{id:"iterate-over-object-keys-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-keys-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-keys-loop-current-value-input-id"}}}},[Ge.ObjectValues]:{id:Ge.ObjectValues,inputs:{object:{id:"iterate-over-object-values-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-values-loop-output-id"}},body:{id:"iterate-over-object-values-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-values-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-values-loop-current-value-input-id"}}}},[Ge.ManualFlow]:{id:Ge.ManualFlow,inputs:{},outputs:{results:{id:"manual-flow-loop-output-id"}},body:{id:"manual-flow-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-manual-flow-loop-iteration-number-input-id"}}}},[Ge.Counted]:{id:Ge.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[f.Condition]:{[ur.MoreThanOrEqual]:{id:ur.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id",dataType:{id:"condition-more-than-or-equal-left-hand-data-type-id"}},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id",dataType:{id:"condition-more-than-or-equal-right-hand-data-type-id"}}}},[Br.NotEmpty]:{id:Br.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}},[Br.Empty]:{id:Br.Empty,inputs:{leftHand:{id:"condition-empty-input-id"}}}},[f.GlobalEvent]:{[qn.PROJECT_PUBLICATION_COMPLETED]:{id:qn.PROJECT_PUBLICATION_COMPLETED}}},as=me[f.PrimitiveEntity],Fe={type:f.PrimitiveEntity,id:as.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Jn={type:f.PrimitiveEntity,id:as.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},et={type:f.PrimitiveEntity,id:as.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},J0={type:f.PrimitiveEntity,id:as.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},zr={type:f.PrimitiveEntity,id:as.untyped.id,description:"Data of any type that isn't known in advance.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},d1={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:f.GenericReference,entityId:as.enum.properties.options.id,version:"1",entityType:f.Property},u1={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:f.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:f.Property},c1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:as.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Fe,asType:!1,parent:u1},p1={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:f.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:f.PrimitiveEntity},f1={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:as.enum.properties.options.id,codeName:null,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:as.enum.properties.options.dataType.defaultValue.id,type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:d1},dataType:c1,description:"Options for the enum. Each option is a text value.",parent:p1},Wn={type:f.PrimitiveEntity,id:as.enum.id,description:"A set of text options to choose from.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[f1],methods:[]},hn={type:f.PrimitiveEntity,id:as.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Hn={type:f.PrimitiveEntity,id:as.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[Fe],properties:[],methods:[]},Pl={type:f.PrimitiveEntity,id:as[X.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},h1=[Fe,Jn,et,J0,zr,Wn,hn,Hn,Pl],yn=me[f.Operation][dr.Addition],y1={type:f.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:yn.inputs.firstSummand.id,version:"1",entityType:f.ValueDescriptor},m1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-addition-first-number-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:y1},v1={type:f.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:yn.inputs.secondSummand.id,version:"1",entityType:f.ValueDescriptor},E1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:v1},T1={type:f.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:yn.outputs.result.id,version:"1",entityType:f.ValueDescriptor},b1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:yn.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:T1},A1={type:f.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:dr.Addition,version:"1",entityType:f.ActionDescriptor},W0={id:yn.inputs.firstSummand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Summand",description:"The first number to add",defaultValue:null,dataType:m1,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:A1},I1={type:f.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:dr.Addition,version:"1",entityType:f.ActionDescriptor},H0={id:yn.inputs.secondSummand.id,type:f.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Summand",defaultValue:null,dataType:E1,required:!0,parentRelationType:oe.FixedArguments,index:1,parent:I1},Y0={type:f.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:dr.Addition,version:"1",entityType:f.ActionDescriptor},z0={parentRelationType:oe.FixedReturns,id:yn.outputs.result.id,type:f.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:b1,required:!0,index:0,parent:Y0},w1={type:f.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:dr.Addition,version:"1",entityType:f.ActionDescriptor},R1={parentRelationType:oe.FixedReturns,id:yn.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:w1},g1={type:f.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:yn.inputs.dynamicSummand.id,version:"1",entityType:f.ValueDescriptor},_1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:g1},D1={parentRelationType:oe.DynamicArgument,id:yn.inputs.dynamicSummand.id,type:f.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Summand",defaultValue:null,dataType:_1,required:!0,index:2,parent:Y0},Vf={id:dr.Addition,type:f.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:dr.Addition,inputs:[W0,H0,D1],error:R1,outputs:[z0],parent:null},mn=me[f.Operation][dr.Subtraction],O1={type:f.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:mn.inputs.minuend.id,version:"1",entityType:f.ValueDescriptor},C1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:O1},$1={type:f.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:mn.inputs.subtrahend.id,version:"1",entityType:f.ValueDescriptor},P1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:$1},V1={type:f.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:mn.outputs.result.id,version:"1",entityType:f.ValueDescriptor},N1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:mn.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:V1},X0={type:f.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:dr.Subtraction,version:"1",entityType:f.ActionDescriptor},L1={id:mn.inputs.minuend.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:C1,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:X0},B1={type:f.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:dr.Subtraction,version:"1",entityType:f.ActionDescriptor},M1={id:mn.inputs.subtrahend.id,type:f.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Subtrahend",defaultValue:null,dataType:P1,required:!0,parentRelationType:oe.FixedArguments,index:1,parent:B1},U1={type:f.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:dr.Subtraction,version:"1",entityType:f.ActionDescriptor},j1={parentRelationType:oe.FixedReturns,id:mn.outputs.result.id,type:f.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:N1,required:!0,index:0,parent:U1},x1={type:f.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:dr.Subtraction,version:"1",entityType:f.ActionDescriptor},F1={parentRelationType:oe.ReturnedError,id:mn.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!1,index:1,parent:x1},G1={type:f.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:mn.inputs.dynamicSubtrahend.id,version:"1",entityType:f.ValueDescriptor},K1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:G1},k1={id:mn.inputs.dynamicSubtrahend.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:K1,required:!0,parentRelationType:oe.DynamicArgument,index:2,parent:X0},Q0={id:dr.Subtraction,type:f.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:dr.Subtraction,inputs:[L1,M1,k1],error:F1,outputs:[j1],parent:null},S1={[dr.Addition]:Vf,[dr.Subtraction]:Q0},ws=me[f.Operation][vt.Join],q1={type:f.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:ws.inputs.first.id,version:"1",entityType:f.ValueDescriptor},Z1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-first-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:q1},J1={type:f.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:ws.inputs.second.id,version:"1",entityType:f.ValueDescriptor},W1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-second-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:J1},H1={type:f.GenericReference,id:"join-strings-result-string-return-delaration",entityId:ws.outputs.result.id,version:"1",entityType:f.ValueDescriptor},Y1={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-result-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:H1},z1={type:f.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Nf={id:ws.inputs.first.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Text",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",defaultValue:null,dataType:Z1,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:z1},X1={type:f.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:ws.inputs.first.id,version:"1",entityType:f.ValueDescriptor},Q1={type:f.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:ws.inputs.separator.id,version:"1",entityType:f.ValueDescriptor},eg={type:f.LiteralValue,standaloneParent:null,id:"join-strings-separator-string-data-type-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Q1},tg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-separator-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:X1},rg={type:f.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},ig={id:ws.inputs.separator.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:eg,dataType:tg,parentRelationType:oe.FixedArguments,required:!1,index:0,parent:rg},sg={type:f.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Lf={id:ws.inputs.second.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Text",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",defaultValue:null,dataType:W1,parentRelationType:oe.FixedArguments,required:!0,index:2,parent:sg},ng={type:f.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Iu={parentRelationType:oe.FixedReturns,id:ws.outputs.result.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:Y1,required:!0,index:0,parent:ng},ag={type:f.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},og={parentRelationType:oe.FixedReturns,id:ws.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ag},lg={type:f.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:ws.inputs.dynamicString.id,version:"1",entityType:f.ValueDescriptor},dg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:lg},ug={type:f.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},cg={id:ws.inputs.dynamicString.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:dg,parentRelationType:oe.DynamicArgument,required:!0,index:3,parent:ug},wu={id:vt.Join,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:vt.Join,description:"Join text values together, to form a single resulting text value.",inputs:[ig,Nf,Lf,cg],outputs:[Iu],error:og,parent:null},Yn=me[f.Operation][vt.Split],pg={type:f.GenericReference,id:"split-string-string-argument-declaration",entityId:Yn.inputs.stringValue.id,version:"1",entityType:f.ValueDescriptor},fg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:pg},hg={type:f.GenericReference,id:"split-string-index-argument-declaration",entityId:Yn.inputs.indexLocation.id,version:"1",entityType:f.ValueDescriptor},yg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-index-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:hg},mg={type:f.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:Yn.outputs.firstPartResult.id,version:"1",entityType:f.ValueDescriptor},vg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:mg},Eg={type:f.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:Yn.outputs.secondPartResult.id,version:"1",entityType:f.ValueDescriptor},Tg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:Eg},bg={type:f.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Ag={id:Yn.inputs.stringValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:fg,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:bg},Ig={type:f.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},wg={id:Yn.inputs.indexLocation.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Index location",description:"The index location where the text will be split into two. The text at this index will be the beginning of the second text.",defaultValue:null,dataType:yg,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:Ig},Rg={type:f.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},mk={parentRelationType:oe.FixedReturns,id:Yn.outputs.secondPartResult.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:Tg,required:!0,index:1,parent:Rg},gg={type:f.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},_g={parentRelationType:oe.FixedReturns,id:Yn.outputs.firstPartResult.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:vg,required:!0,index:0,parent:gg},Dg={type:f.GenericReference,id:"split-string-operation-error-parent-ref",entityId:vt.Join,version:"1",entityType:f.ActionDescriptor},Og={parentRelationType:oe.FixedReturns,id:Yn.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Dg},ev={id:vt.Split,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:vt.Split,description:"Split a text into two, at the given index location.",inputs:[Ag,wg],outputs:[_g],error:Og,parent:null},Cg={[vt.Join]:wu,[vt.Split]:ev};var $g=(d=>(d.FirstInputList="join-list-first-list-argument-declaration",d.SecondInputList="join-list-second-list-argument-declaration",d))($g||{}),Pg=(d=>(d.ResultList="join-list-result-list-return-delaration",d.Error="join-list-error-return-delaration",d))(Pg||{});const Vg={type:f.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:f.ValueDescriptor},Ng={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-list-first-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Vg},Lg={type:f.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:f.ValueDescriptor},Bg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-list-second-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Lg},Mg={type:f.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:f.ValueDescriptor},Ug={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-list-result-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:Mg},jg={type:f.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:pt.Join,version:"1",entityType:f.ActionDescriptor},xg={id:"join-list-first-list-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"First value",description:"The first list to join to the second one. Its values will be at the beginning of the resulting list.",defaultValue:null,dataType:Ng,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:jg},Fg={type:f.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:pt.Join,version:"1",entityType:f.ActionDescriptor},Gg={id:"join-list-second-list-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Second value",description:"The second list to join to the first one. Its values will be at the end of the resulting list.",defaultValue:null,dataType:Bg,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:Fg},Kg={type:f.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:pt.Join,version:"1",entityType:f.ActionDescriptor},kg={parentRelationType:oe.FixedReturns,id:"join-list-result-list-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Ug,required:!0,index:0,parent:Kg},Sg={type:f.GenericReference,id:"join-list-operation-error-parent-ref",entityId:pt.Join,version:"1",entityType:f.ActionDescriptor},qg={parentRelationType:oe.FixedReturns,id:"join-list-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Sg},tv={id:pt.Join,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:pt.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[xg,Gg],error:qg,outputs:[kg],parent:null};var Zg=(d=>(d.InputList="list-to-split-argument-declaration",d.SplitIndex="split-list-index-argument-declaration",d))(Zg||{}),Jg=(d=>(d.FirstOutputList="split-list-first-output-list-return-delaration",d.SecondOutputList="split-list-second-output-list-return-delaration",d.Error="split-list-error-return-delaration",d))(Jg||{});const Wg={type:f.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:f.ValueDescriptor},Hg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:Wg},Yg={type:f.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:f.ValueDescriptor},zg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:Yg},rv={type:f.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:f.ValueDescriptor},Xg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:rv},Qg={type:f.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},e_={id:"list-to-split-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Hg,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:Qg},t_={type:f.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},r_={id:"split-list-index-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Split location",description:"The index at which to split the list. The value at this index will be the first value of the second list.",defaultValue:null,dataType:zg,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:t_},i_={type:f.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},s_={parentRelationType:oe.FixedReturns,id:"split-list-first-output-list-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:Xg,required:!0,index:0,parent:i_},n_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:rv},a_={type:f.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},o_={parentRelationType:oe.FixedReturns,id:"split-list-second-output-list-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:n_,required:!0,index:0,parent:a_},l_={type:f.GenericReference,id:"split-list-operation-error-parent-ref",entityId:pt.Split,version:"1",entityType:f.ActionDescriptor},d_={parentRelationType:oe.FixedReturns,id:"split-list-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:l_},iv={id:pt.Split,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:pt.Split,description:"Splits a given list at the given index, and returns two lists, one with the values up to the index, and the other with the values after the index",inputs:[e_,r_],outputs:[s_,o_],error:d_,parent:null};var u_=(d=>(d.InputList="get-last-in-list-input-list-argument-declaration",d))(u_||{}),c_=(d=>(d.OutputElement="get-last-in-list-output-element-return-delaration",d.Error="get-last-in-list-error-return-delaration",d))(c_||{});const p_={type:f.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:f.ValueDescriptor},f_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:p_},h_={type:f.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:f.ValueDescriptor},y_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:h_},m_={type:f.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:pt.GetLast,version:"1",entityType:f.ActionDescriptor},v_={id:"get-last-in-list-input-list-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:f_,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:m_},E_={type:f.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:pt.GetLast,version:"1",entityType:f.ActionDescriptor},T_={parentRelationType:oe.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:y_,required:!0,index:0,parent:E_},b_={type:f.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:pt.GetLast,version:"1",entityType:f.ActionDescriptor},A_={parentRelationType:oe.FixedReturns,id:"get-last-in-list-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:b_},sv={id:pt.GetLast,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:pt.GetLast,description:"Outputs the last element of a given list.",inputs:[v_],outputs:[T_],error:A_,parent:null};var I_=(d=>(d.List="append-to-list-lsit-argument-declaration",d.ElementToAppend="append-to-list-element-to-append-argument-declaration",d))(I_||{}),w_=(d=>(d.ResultList="append-to-list-result-list-return-delaration",d.Error="append-to-list-error-return-delaration",d))(w_||{});const R_={type:f.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:f.ValueDescriptor},g_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"append-to-list-lsit-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:R_},__={type:f.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:f.ValueDescriptor},D_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"append-to-list-second-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:__},O_={type:f.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:f.ValueDescriptor},C_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"append-to-list-result-list-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!0,parent:O_},$_={type:f.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:pt.Append,version:"1",entityType:f.ActionDescriptor},nv={id:"append-to-list-lsit-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:g_,parentRelationType:oe.FixedArguments,required:!0,index:0,parent:$_},P_={type:f.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:pt.Append,version:"1",entityType:f.ActionDescriptor},av={id:"append-to-list-element-to-append-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:D_,parentRelationType:oe.FixedArguments,required:!0,index:1,parent:P_},V_={type:f.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:pt.Append,version:"1",entityType:f.ActionDescriptor},N_={parentRelationType:oe.FixedReturns,id:"append-to-list-result-list-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:C_,required:!0,index:0,parent:V_},L_={type:f.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:pt.Append,version:"1",entityType:f.ActionDescriptor},B_={parentRelationType:oe.FixedReturns,id:"append-to-list-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:L_},Bf={id:pt.Append,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:pt.Append,description:"Adds a given element to the end of a list value.",inputs:[nv,av],error:B_,outputs:[N_],parent:null},M_={[pt.Join]:tv,[pt.Split]:iv,[pt.GetLast]:sv,[pt.Append]:Bf},Vl=me[f.Operation][rr.Parallel],U_={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:f.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:f.ActionDescriptor},j_={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:U_,parentRelationType:oe.DynamicArgument},x_={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:f.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:f.ActionDescriptor},F_={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:x_,parentRelationType:oe.DynamicArgument},G_={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:f.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:f.DataType},K_={id:"parallel-execution-list-of-functions-blueprint-id",type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[F_],outputs:[j_],error:null,parent:G_},k_={type:f.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Vl.inputs.listOfActions.id,version:"1",entityType:f.ValueDescriptor},S_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:K_,asType:!1,isList:!0,parent:k_},q_={type:f.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Vl.outputs.results.id,version:"1",entityType:f.ValueDescriptor},Z_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Vl.outputs.results.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!0,parent:q_},J_={type:f.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:rr.Parallel,version:"1",entityType:f.ActionDescriptor},ov={id:Vl.inputs.listOfActions.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:S_,defaultValue:null,required:!0,index:0,parent:J_,parentRelationType:oe.FixedArguments},W_={type:f.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:rr.Parallel,version:"1",entityType:f.ActionDescriptor},lv={id:Vl.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",dataType:Z_,defaultValue:null,required:!0,index:0,parent:W_,parentRelationType:oe.FixedReturns},H_={type:f.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:rr.Parallel,version:"1",entityType:f.ActionDescriptor},Y_={id:Vl.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:H_,parentRelationType:oe.ReturnedError},ks={id:rr.Parallel,type:f.ActionDescriptor,description:"Programmatically execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:rr.Parallel,inputs:[ov],outputs:[lv],error:Y_,parent:null};var z_=(d=>(d.MillisecondsNumber="wait-milliseconds-number-argument-declaration",d))(z_||{}),X_=(d=>(d.Error="wait-operation-error-return-delaration",d))(X_||{});const Q_={type:f.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:f.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},eD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:Q_},tD={type:f.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:f.ActionDescriptor,entityId:rr.Wait},vo={id:"wait-milliseconds-number-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:eD,required:!0,index:0,parent:tD,parentRelationType:oe.FixedArguments},rD={type:f.GenericReference,id:"wait-operation-error-parent-ref",entityId:rr.Wait,version:"1",entityType:f.ActionDescriptor},iD={id:"wait-operation-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:rD,parentRelationType:oe.ReturnedError},gi={id:rr.Wait,type:f.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:rr.Wait,inputs:[vo],outputs:[],error:iD,parent:null};var sD=(d=>(d.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",d))(sD||{}),nD=(d=>(d.ListOfExecutionResults="sequential-execution-result-return-delaration",d.Error="sequential-execution-error-return-delaration",d))(nD||{});const aD={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:oe.DynamicArgument},oD={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:oe.DynamicArgument},lD={id:"sequential-execution-list-of-functions-blueprint-id",type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[oD],outputs:[aD],error:null,parent:null},dD={type:f.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:f.ValueDescriptor},uD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:lD,asType:!1,isList:!0,parent:dD},cD={type:f.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:f.ValueDescriptor},pD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!0,parent:cD},fD={type:f.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:rr.Sequential,version:"1",entityType:f.ActionDescriptor},dv={id:"sequential-execution-list-of-functions-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:uD,required:!0,index:0,parent:fD,parentRelationType:oe.FixedArguments},hD={type:f.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:rr.Sequential,version:"1",entityType:f.ActionDescriptor},uv={id:"sequential-execution-result-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",defaultValue:null,dataType:pD,required:!0,index:0,parent:hD,parentRelationType:oe.FixedReturns},yD={type:f.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:rr.Sequential,version:"1",entityType:f.ActionDescriptor},mD={id:"sequential-execution-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:yD,parentRelationType:oe.ReturnedError},zn={id:rr.Sequential,type:f.ActionDescriptor,description:"Execute a list of actions one after the other",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:rr.Sequential,inputs:[dv],outputs:[uv],error:mD,parent:null},vD={[rr.Parallel]:ks,[rr.Wait]:gi,[rr.Sequential]:zn};var ED=(d=>(d.EntityToInstanciate="entity-to-instanciate-argument-declaration",d.NewEntityData="new-entity-data-argument-declaration",d))(ED||{}),TD=(d=>(d.Error="create-new-instance-error-return-delaration",d))(TD||{});const bD={type:f.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:ir.CreateNewInstance,version:"1",entityType:f.ActionDescriptor},AD={type:f.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:f.ValueDescriptor},ID={like:!1,staticEntities:!1,interactiveEntities:null,actionEntities:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:AD},wD={id:"new-entity-data-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:ID,required:!0,defaultValue:null,parentRelationType:oe.FixedArguments,index:1,parent:bD},RD={type:f.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:f.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},gD={like:!1,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:RD},_D={type:f.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:f.ActionDescriptor,entityId:ir.CreateNewInstance},DD={id:"entity-to-instanciate-argument-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:gD,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:_D},OD={type:f.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:ir.CreateNewInstance,version:"1",entityType:f.ActionDescriptor},CD={parentRelationType:oe.FixedReturns,id:"create-new-instance-output-entity-declaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:OD,required:!0,index:0},$D={type:f.GenericReference,id:"create-new-instance-error-parent-ref",entityId:ir.CreateNewInstance,version:"1",entityType:f.ActionDescriptor},PD={parentRelationType:oe.FixedReturns,id:"create-new-instance-error-return-delaration",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:$D},Eo={id:ir.CreateNewInstance,type:f.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:ir.CreateNewInstance,inputs:[DD,wD],outputs:[CD],error:PD,parent:null},Nl=me[f.Operation][ir.Validate],VD={type:f.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:f.ValueDescriptor,entityId:Nl.inputs.dataToValidate.id},ND={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:VD},LD={type:f.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:f.ActionDescriptor,entityId:ir.Validate},BD={id:Nl.inputs.dataToValidate.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:ND,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:LD},MD={type:f.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:f.ValueDescriptor,entityId:Nl.inputs.entityToMatch.id},UD={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,staticEntities:null,interactiveEntities:!0,actionEntities:!1,parent:MD},jD={type:f.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:f.ActionDescriptor,entityId:ir.Validate},xD={id:Nl.inputs.entityToMatch.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Entity to match",description:"The entity to match the data against",dataType:UD,defaultValue:null,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:jD},FD={type:f.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:ir.Validate,version:"1",entityType:f.ActionDescriptor},GD={id:Nl.outputs.outputEntity.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,codeName:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:FD,required:!0,index:0,parentRelationType:oe.FixedReturns},KD={type:f.GenericReference,id:"wait-operation-error-parent-ref",entityId:ir.Validate,version:"1",entityType:f.ActionDescriptor},kD={id:Nl.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:KD,parentRelationType:oe.ReturnedError},To={id:ir.Validate,type:f.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:ir.Validate,inputs:[xD,BD],outputs:[GD],error:kD,parent:null},SD={[ir.CreateNewInstance]:Eo,[ir.Validate]:To},Mr=me[f.Operation]["base-http-request"],qD={type:f.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:f.ValueDescriptor,entityId:Mr.inputs.url.id},ZD={id:"http-request-url-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:X.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:qD,autogeneration:null},JD={type:f.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Mr.inputs.url.id,version:"1",entityType:f.ValueDescriptor},WD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:JD},HD={type:f.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Mr.inputs.query.id,version:"1",entityType:f.ValueDescriptor},YD={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:HD},zD={type:f.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:f.ValueDescriptor,entityId:Mr.inputs.method.id},XD={id:"http-request-method-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:X.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:zD,autogeneration:null},QD={type:f.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Mr.inputs.method.id,version:"1",entityType:f.ValueDescriptor},eO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wn,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:QD},tO={type:f.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Mr.inputs.headers.id,version:"1",entityType:f.ValueDescriptor},rO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,asType:!1,isList:!1,parent:tO},iO={type:f.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Mr.inputs.body.id,version:"1",entityType:f.ValueDescriptor},sO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,asType:!1,isList:!1,parent:iO},nO={type:f.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.code.id},aO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:nO},oO={type:f.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.headers.id},lO={type:f.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.headers.id},dO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,isList:!1,asType:!1,parent:lO},uO={type:f.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.body.id},cO={type:f.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.body.id},pO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,isList:!1,asType:!1,parent:cO},fO={type:f.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Mf={id:Mr.inputs.method.id,type:f.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Method",defaultValue:XD,dataType:eO,required:!1,index:0,parentRelationType:oe.FixedArguments,parent:fO},hO={type:f.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Uf={id:Mr.inputs.url.id,type:f.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"URL",dataType:WD,defaultValue:ZD,required:!1,index:1,parentRelationType:oe.FixedArguments,parent:hO},yO={type:f.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},cv={id:Mr.inputs.query.id,type:f.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Query Params",defaultValue:null,dataType:YD,required:!1,index:2,parentRelationType:oe.FixedArguments,parent:yO},mO={type:f.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},jf={id:Mr.inputs.headers.id,type:f.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Headers",defaultValue:null,dataType:rO,required:!1,index:3,parent:mO,parentRelationType:oe.FixedArguments},vO={type:f.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},xf={id:Mr.inputs.body.id,type:f.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Body",dataType:sO,defaultValue:null,required:!1,index:4,parentRelationType:oe.FixedArguments,parent:vO},EO={type:f.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Ff={id:Mr.outputs.code.id,type:f.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Code",defaultValue:null,dataType:aO,required:!0,index:0,parentRelationType:oe.FixedReturns,parent:EO},TO={type:f.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Gf={parentRelationType:oe.FixedReturns,id:Mr.outputs.headers.id,type:f.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:X.KeyValue,parent:oO,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:dO,required:!0,index:1,parent:TO},bO={type:f.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},Kf={id:Mr.outputs.body.id,type:f.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Body",parentRelationType:oe.FixedReturns,dataType:pO,defaultValue:{id:"http-response-body-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:X.KeyValue,parent:uO,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:bO},AO={type:f.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:f.ActionDescriptor,entityId:di.HttpRequest},IO={type:f.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:f.ValueDescriptor,entityId:Mr.outputs.error.id},wO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,isList:!1,asType:!1,parent:IO},pv={parentRelationType:oe.ReturnedError,id:Mr.outputs.error.id,type:f.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:wO,required:!1,index:0,parent:AO},Ru={type:f.ActionDescriptor,id:di.HttpRequest,codeName:null,name:di.HttpRequest,description:"Make an HTTP request, out to the internet, to a given URL with the specified method, query parameters, headers, and body.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Mf,Uf,cv,jf,xf],outputs:[Ff,Gf,Kf],error:pv,parent:null},RO={[di.HttpRequest]:Ru},wa=me[f.Operation][Pe.GenerateRandomInteger],gO={type:f.GenericReference,id:"number-addition-operation-result-number-data-type-parent-ref",entityId:wa.outputs.result.id,version:"1",entityType:f.ValueDescriptor},_O={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:wa.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:gO},DO={type:f.GenericReference,id:"generate-random-integer-operation-result-number-output-parent-ref",entityId:Pe.GenerateRandomInteger,version:"1",entityType:f.ActionDescriptor},OO={parentRelationType:oe.FixedReturns,id:wa.outputs.result.id,type:f.ValueDescriptor,description:"The generated random integer",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:_O,required:!0,index:0,parent:DO},CO={type:f.GenericReference,id:"generate-random-integer-operation-max-value-input-parent-ref",entityId:Pe.GenerateRandomInteger,version:"1",entityType:f.ActionDescriptor},$O={type:f.GenericReference,id:"generate-random-integer-operation-max-value-input-type-parent-ref",entityId:wa.inputs.max.id,version:"1",entityType:f.ValueDescriptor},PO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"generate-random-integer-operation-max-value-input-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:$O},VO={parentRelationType:oe.FixedArguments,id:wa.inputs.max.id,type:f.ValueDescriptor,description:"Maximum value of the random integer",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Maximum Value",defaultValue:null,dataType:PO,required:!0,index:1,parent:CO},NO={type:f.GenericReference,id:"generate-random-integer-operation-min-value-input-parent-ref",entityId:Pe.GenerateRandomInteger,version:"1",entityType:f.ActionDescriptor},LO={type:f.GenericReference,id:"generate-random-integer-operation-min-value-input-type-parent-ref",entityId:wa.inputs.min.id,version:"1",entityType:f.ValueDescriptor},BO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"generate-random-integer-operation-min-value-input-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:LO},MO={parentRelationType:oe.FixedArguments,id:wa.inputs.min.id,type:f.ValueDescriptor,description:"Minimum value of the random integer",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Minimum Value",defaultValue:null,dataType:BO,required:!0,index:0,parent:NO},UO={type:f.GenericReference,id:"generate-random-integer-operation-error-parent-ref",entityId:Pe.GenerateRandomInteger,version:"1",entityType:f.ActionDescriptor},jO={parentRelationType:oe.ReturnedError,id:wa.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:UO},fv={id:Pe.GenerateRandomInteger,type:f.ActionDescriptor,description:"Generate a random integer",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomInteger,inputs:[MO,VO],error:jO,outputs:[OO],parent:null},kf=me[f.Operation][Pe.GenerateRandomFloat],xO={type:f.GenericReference,id:"generate-random-float-operation-result-number-data-type-parent-ref",entityId:kf.outputs.result.id,version:"1",entityType:f.ValueDescriptor},FO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:kf.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:xO},GO={type:f.GenericReference,id:"generate-random-float-operation-result-number-output-parent-ref",entityId:Pe.GenerateRandomFloat,version:"1",entityType:f.ActionDescriptor},KO={parentRelationType:oe.FixedReturns,id:kf.outputs.result.id,type:f.ValueDescriptor,description:"The generated random float",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:FO,required:!0,index:0,parent:GO},kO={type:f.GenericReference,id:"generate-random-float-operation-error-parent-ref",entityId:Pe.GenerateRandomFloat,version:"1",entityType:f.ActionDescriptor},SO={parentRelationType:oe.ReturnedError,id:kf.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:kO},hv={id:Pe.GenerateRandomFloat,type:f.ActionDescriptor,description:"Generate a random floating-point number between 0 (inclusive) and 1 (exclusive)",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomFloat,inputs:[],error:SO,outputs:[KO],parent:null},bo=me[f.Operation][Pe.GenerateRandomHexadecimal],qO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-length-input-parent-ref",entityId:Pe.GenerateRandomHexadecimal,version:"1",entityType:f.ActionDescriptor},ZO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-length-input-type-parent-ref",entityId:bo.inputs.length.id,version:"1",entityType:f.ValueDescriptor},JO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:bo.inputs.length.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:ZO},WO={parentRelationType:oe.FixedArguments,id:bo.inputs.length.id,type:f.ValueDescriptor,description:"Length in bytes of the random hexadecimal string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:JO,required:!0,index:0,parent:qO},HO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-result-string-data-type-parent-ref",entityId:bo.outputs.result.id,version:"1",entityType:f.ValueDescriptor},YO={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:bo.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:HO},zO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomHexadecimal,version:"1",entityType:f.ActionDescriptor},XO={parentRelationType:oe.FixedReturns,id:bo.outputs.result.id,type:f.ValueDescriptor,description:"The generated random hexadecimal string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:YO,required:!0,index:0,parent:zO},QO={type:f.GenericReference,id:"generate-random-hexadecimal-operation-error-parent-ref",entityId:Pe.GenerateRandomHexadecimal,version:"1",entityType:f.ActionDescriptor},eC={parentRelationType:oe.ReturnedError,id:bo.outputs.error.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:QO},yv={id:Pe.GenerateRandomHexadecimal,type:f.ActionDescriptor,description:"Generate a random hexadecimal string of specified byte length",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomHexadecimal,inputs:[WO],error:eC,outputs:[XO],parent:null},Ao=me[f.Operation][Pe.GenerateRandomBase62],tC={type:f.GenericReference,id:"generate-random-base62-operation-length-input-parent-ref",entityId:Pe.GenerateRandomBase62,version:"1",entityType:f.ActionDescriptor},rC={type:f.GenericReference,id:"generate-random-base62-operation-length-input-type-parent-ref",entityId:Ao.inputs.length.id,version:"1",entityType:f.ValueDescriptor},iC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Ao.inputs.length.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:rC},sC={parentRelationType:oe.FixedArguments,id:Ao.inputs.length.id,type:f.ValueDescriptor,description:"Length of the random Base62 string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:iC,required:!0,index:0,parent:tC},nC={type:f.GenericReference,id:"generate-random-base62-operation-result-string-data-type-parent-ref",entityId:Ao.outputs.result.id,version:"1",entityType:f.ValueDescriptor},aC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Ao.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:nC},oC={type:f.GenericReference,id:"generate-random-base62-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomBase62,version:"1",entityType:f.ActionDescriptor},lC={parentRelationType:oe.FixedReturns,id:Ao.outputs.result.id,type:f.ValueDescriptor,description:"The generated random Base62 string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:aC,required:!0,index:0,parent:oC},dC={type:f.GenericReference,id:"generate-random-base62-operation-error-parent-ref",entityId:Pe.GenerateRandomBase62,version:"1",entityType:f.ActionDescriptor},uC={parentRelationType:oe.ReturnedError,id:Ao.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:dC},mv={id:Pe.GenerateRandomBase62,type:f.ActionDescriptor,description:"Generate a random Base62 string of specified length",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomBase62,inputs:[sC],error:uC,outputs:[lC],parent:null},Io=me[f.Operation][Pe.GenerateRandomBase64],cC={type:f.GenericReference,id:"generate-random-base64-operation-length-input-parent-ref",entityId:Pe.GenerateRandomBase64,version:"1",entityType:f.ActionDescriptor},pC={type:f.GenericReference,id:"generate-random-base64-operation-length-input-type-parent-ref",entityId:Io.inputs.length.id,version:"1",entityType:f.ValueDescriptor},fC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Io.inputs.length.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:pC},hC={parentRelationType:oe.FixedArguments,id:Io.inputs.length.id,type:f.ValueDescriptor,description:"Length in bytes of the random Base64 string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:fC,required:!0,index:0,parent:cC},yC={type:f.GenericReference,id:"generate-random-base64-operation-result-string-data-type-parent-ref",entityId:Io.outputs.result.id,version:"1",entityType:f.ValueDescriptor},mC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Io.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:yC},vC={type:f.GenericReference,id:"generate-random-base64-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomBase64,version:"1",entityType:f.ActionDescriptor},EC={parentRelationType:oe.FixedReturns,id:Io.outputs.result.id,type:f.ValueDescriptor,description:"The generated random Base64 string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:mC,required:!0,index:0,parent:vC},TC={type:f.GenericReference,id:"generate-random-base64-operation-error-parent-ref",entityId:Pe.GenerateRandomBase64,version:"1",entityType:f.ActionDescriptor},bC={parentRelationType:oe.ReturnedError,id:Io.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:TC},vv={id:Pe.GenerateRandomBase64,type:f.ActionDescriptor,description:"Generate a random Base64 string of specified byte length",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomBase64,inputs:[hC],error:bC,outputs:[EC],parent:null},wo=me[f.Operation][Pe.GenerateRandomAlphanumeric],AC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-length-input-parent-ref",entityId:Pe.GenerateRandomAlphanumeric,version:"1",entityType:f.ActionDescriptor},IC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-length-input-type-parent-ref",entityId:wo.inputs.length.id,version:"1",entityType:f.ValueDescriptor},wC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:wo.inputs.length.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:IC},RC={parentRelationType:oe.FixedArguments,id:wo.inputs.length.id,type:f.ValueDescriptor,description:"Length of the random alphanumeric string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:wC,required:!0,index:0,parent:AC},gC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-result-string-data-type-parent-ref",entityId:wo.outputs.result.id,version:"1",entityType:f.ValueDescriptor},_C={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:wo.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:gC},DC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomAlphanumeric,version:"1",entityType:f.ActionDescriptor},OC={parentRelationType:oe.FixedReturns,id:wo.outputs.result.id,type:f.ValueDescriptor,description:"The generated random alphanumeric string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:_C,required:!0,index:0,parent:DC},CC={type:f.GenericReference,id:"generate-random-alphanumeric-operation-error-parent-ref",entityId:Pe.GenerateRandomAlphanumeric,version:"1",entityType:f.ActionDescriptor},$C={parentRelationType:oe.ReturnedError,id:wo.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:CC},Ev={id:Pe.GenerateRandomAlphanumeric,type:f.ActionDescriptor,description:"Generate a random alphanumeric string of specified length",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomAlphanumeric,inputs:[RC],error:$C,outputs:[OC],parent:null},Ra=me[f.Operation][Pe.GenerateIdentifier],PC={type:f.GenericReference,id:"generate-identifier-operation-length-input-parent-ref",entityId:Pe.GenerateIdentifier,version:"1",entityType:f.ActionDescriptor},VC={type:f.GenericReference,id:"generate-identifier-operation-length-input-type-parent-ref",entityId:Ra.inputs.length.id,version:"1",entityType:f.ValueDescriptor},NC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"generate-identifier-operation-length-input-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:VC},LC={parentRelationType:oe.FixedArguments,id:Ra.inputs.length.id,type:f.ValueDescriptor,description:"Length of the identifier to generate",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Length",defaultValue:null,dataType:NC,required:!0,index:0,parent:PC},BC={type:f.GenericReference,id:"generate-identifier-operation-alphabet-input-parent-ref",entityId:Pe.GenerateIdentifier,version:"1",entityType:f.ActionDescriptor},MC={type:f.GenericReference,id:"generate-identifier-operation-alphabet-input-type-parent-ref",entityId:Ra.inputs.alphabet.id,version:"1",entityType:f.ValueDescriptor},UC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"generate-identifier-operation-alphabet-input-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:MC},jC={parentRelationType:oe.FixedArguments,id:Ra.inputs.alphabet.id,type:f.ValueDescriptor,description:"Optional alphabet for the identifier characters",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Alphabet",defaultValue:null,dataType:UC,required:!1,index:1,parent:BC},xC={type:f.GenericReference,id:"generate-identifier-operation-result-string-output-parent-ref",entityId:Pe.GenerateIdentifier,version:"1",entityType:f.ActionDescriptor},FC={type:f.GenericReference,id:"generate-identifier-operation-result-string-data-type-parent-ref",entityId:Ra.outputs.result.id,version:"1",entityType:f.ValueDescriptor},GC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Ra.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:FC},KC={parentRelationType:oe.FixedReturns,id:Ra.outputs.result.id,type:f.ValueDescriptor,description:"The generated identifier string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:GC,required:!0,index:0,parent:xC},kC={type:f.GenericReference,id:"generate-identifier-operation-error-parent-ref",entityId:Pe.GenerateIdentifier,version:"1",entityType:f.ActionDescriptor},SC={parentRelationType:oe.ReturnedError,id:Ra.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:kC},Tv={id:Pe.GenerateIdentifier,type:f.ActionDescriptor,description:"Generate a custom identifier string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateIdentifier,inputs:[LC,jC],error:SC,outputs:[KC],parent:null},Sf=me[f.Operation][Pe.GenerateRandomUUIDv4],qC={type:f.GenericReference,id:"generate-random-uuidv4-operation-result-string-data-type-parent-ref",entityId:Sf.outputs.result.id,version:"1",entityType:f.ValueDescriptor},ZC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Sf.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:qC},JC={type:f.GenericReference,id:"generate-random-uuidv4-operation-result-string-output-parent-ref",entityId:Pe.GenerateRandomUUIDv4,version:"1",entityType:f.ActionDescriptor},WC={parentRelationType:oe.FixedReturns,id:Sf.outputs.result.id,type:f.ValueDescriptor,description:"The generated RFC-4122 version 4 UUID string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:ZC,required:!0,index:0,parent:JC},HC={type:f.GenericReference,id:"generate-random-uuidv4-operation-error-parent-ref",entityId:Pe.GenerateRandomUUIDv4,version:"1",entityType:f.ActionDescriptor},YC={parentRelationType:oe.ReturnedError,id:Sf.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:HC},bv={id:Pe.GenerateRandomUUIDv4,type:f.ActionDescriptor,description:"Generate an RFC-4122 version 4 UUID string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateRandomUUIDv4,inputs:[],error:YC,outputs:[WC],parent:null},qf=me[f.Operation][Pe.GenerateShortIdentifier],zC={type:f.GenericReference,id:"generate-short-identifier-operation-result-string-data-type-parent-ref",entityId:qf.outputs.result.id,version:"1",entityType:f.ValueDescriptor},XC={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:qf.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:zC},QC={type:f.GenericReference,id:"generate-short-identifier-operation-result-string-output-parent-ref",entityId:Pe.GenerateShortIdentifier,version:"1",entityType:f.ActionDescriptor},e$={parentRelationType:oe.FixedReturns,id:qf.outputs.result.id,type:f.ValueDescriptor,description:"The generated short identifier string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:XC,required:!0,index:0,parent:QC},t$={type:f.GenericReference,id:"generate-short-identifier-operation-error-parent-ref",entityId:Pe.GenerateShortIdentifier,version:"1",entityType:f.ActionDescriptor},r$={parentRelationType:oe.ReturnedError,id:qf.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:t$},Av={id:Pe.GenerateShortIdentifier,type:f.ActionDescriptor,description:"Generate a short identifier string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateShortIdentifier,inputs:[],error:r$,outputs:[e$],parent:null},Zf=me[f.Operation][Pe.GenerateHexadecimalToken],i$={type:f.GenericReference,id:"generate-hexadecimal-token-operation-result-string-data-type-parent-ref",entityId:Zf.outputs.result.id,version:"1",entityType:f.ValueDescriptor},s$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Zf.outputs.result.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:i$},n$={type:f.GenericReference,id:"generate-hexadecimal-token-operation-result-string-output-parent-ref",entityId:Pe.GenerateHexadecimalToken,version:"1",entityType:f.ActionDescriptor},a$={parentRelationType:oe.FixedReturns,id:Zf.outputs.result.id,type:f.ValueDescriptor,description:"The generated hexadecimal token string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",defaultValue:null,dataType:s$,required:!0,index:0,parent:n$},o$={type:f.GenericReference,id:"generate-hexadecimal-token-operation-error-parent-ref",entityId:Pe.GenerateHexadecimalToken,version:"1",entityType:f.ActionDescriptor},l$={parentRelationType:oe.ReturnedError,id:Zf.outputs.error.id,type:f.ValueDescriptor,description:"An error that occurred during the operation.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Error",defaultValue:null,dataType:null,required:!0,index:1,parent:o$},Iv={id:Pe.GenerateHexadecimalToken,type:f.ActionDescriptor,description:"Generate a hexadecimal token string",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Pe.GenerateHexadecimalToken,inputs:[],error:l$,outputs:[a$],parent:null},d$={[Pe.GenerateRandomInteger]:fv,[Pe.GenerateRandomFloat]:hv,[Pe.GenerateRandomHexadecimal]:yv,[Pe.GenerateRandomBase62]:mv,[Pe.GenerateRandomBase64]:vv,[Pe.GenerateRandomAlphanumeric]:Ev,[Pe.GenerateIdentifier]:Tv,[Pe.GenerateRandomUUIDv4]:bv,[Pe.GenerateShortIdentifier]:Av,[Pe.GenerateHexadecimalToken]:Iv},u$={...Cg,...S1,...M_,...vD,...SD,...RO,...d$},c$=Object.values(u$),vk=me[f.Loop]["manual-flow-loop"],p$={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ManualFlow,version:"1",entityType:f.ActionDescriptor},f$={id:vk.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:p$,parentRelationType:oe.DynamicReturn},Jf={id:Ge.ManualFlow,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Ge.ManualFlow,description:"A loop that is manually controlled by the continue and break statements. It runs until the break statement is called, and it can skip to the next iteration with the continue statement.",inputs:[],outputs:[f$],error:null,parent:null},gu=me[f.Loop]["manual-flow-loop"],h$={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},y$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:h$},m$={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:gu.body.id,version:"1",entityType:f.ActionDescriptor},wv={id:gu.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the manual flow loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:y$,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:m$},v$={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:gu.body.id,version:"1",entityType:f.ActionDescriptor},E$={id:"manual-flow-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:oe.DynamicArgument,parent:v$},T$={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:gu.body.id,version:"1",entityType:f.ActionDescriptor},b$={id:"manual-flow-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:T$},Wf={id:gu.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[wv,E$],outputs:[b$],error:null,parent:null},A$=me[f.Loop]["string-loop"],I$={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},w$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Fe,asType:!1,parent:I$},R$={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.String,version:"1",entityType:f.ActionDescriptor},g$={id:A$.inputs.string.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:w$,index:0,parent:R$,parentRelationType:oe.FixedArguments},_$={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.String,version:"1",entityType:f.ActionDescriptor},D$={id:A$.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:_$,parentRelationType:oe.DynamicReturn},_u={id:Ge.String,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ge.String,codeName:null,description:"Iterates over a string of entities",inputs:[g$],outputs:[D$],error:null,parent:null},Ro=me[f.Loop]["string-loop"],O$={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:f.ValueDescriptor},C$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Fe,asType:!1,parent:O$},$$={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:f.GenericReference,entityId:Ro.body.id,version:"1",entityType:f.ActionDescriptor},Rv={id:Ro.body.inputs.currentValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current value",description:"The current value in the string that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:C$,required:!0,index:1,parentRelationType:oe.FixedArguments,parent:$$},P$={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},V$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:P$},N$={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:Ro.body.id,version:"1",entityType:f.ActionDescriptor},gv={id:Ro.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:V$,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:N$},L$={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:Ro.body.id,version:"1",entityType:f.ActionDescriptor},B$={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:oe.DynamicArgument,parent:L$},M$={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:Ro.body.id,version:"1",entityType:f.ActionDescriptor},U$={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:M$},Hf={id:Ro.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[gv,Rv,B$],outputs:[U$],error:null,parent:null},j$=me[f.Loop]["list-loop"],x$={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},F$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:x$},G$={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.List,version:"1",entityType:f.ActionDescriptor},K$={id:j$.inputs.list.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:F$,index:0,parent:G$,parentRelationType:oe.FixedArguments},k$={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.List,version:"1",entityType:f.ActionDescriptor},S$={id:j$.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:k$,parentRelationType:oe.DynamicReturn},ga={id:Ge.List,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Ge.List,description:"Iterates over a list of entities",inputs:[K$],outputs:[S$],error:null,parent:null},go=me[f.Loop]["list-loop"],q$={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:f.ValueDescriptor},Z$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:null,asType:!1,parent:q$},J$={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:f.GenericReference,entityId:go.body.id,version:"1",entityType:f.ActionDescriptor},Yf={id:go.body.inputs.currentValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current value",description:"The current value in the list that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Z$,required:!0,index:1,parentRelationType:oe.FixedArguments,parent:J$},W$={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},H$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:W$},Y$={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:go.body.id,version:"1",entityType:f.ActionDescriptor},z$={id:go.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the list loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:H$,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:Y$},X$={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:go.body.id,version:"1",entityType:f.ActionDescriptor},Q$={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:oe.DynamicArgument,parent:X$},eP={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:go.body.id,version:"1",entityType:f.ActionDescriptor},tP={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:eP},Du={id:go.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[z$,Yf,Q$],outputs:[tP],error:null,parent:null},rP=me[f.Loop]["object-keys-loop"],iP={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},sP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:zr,asType:!1,parent:iP},nP={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ObjectKeys,version:"1",entityType:f.ActionDescriptor},aP={id:rP.inputs.object.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:sP,index:0,parent:nP,parentRelationType:oe.FixedArguments},oP={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ObjectKeys,version:"1",entityType:f.ActionDescriptor},lP={id:rP.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:oP,parentRelationType:oe.DynamicReturn},Ll={id:Ge.ObjectKeys,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ge.ObjectKeys,codeName:null,description:"Iterates over a object of entities",inputs:[aP],outputs:[lP],error:null,parent:null},_o=me[f.Loop]["object-keys-loop"],dP={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:f.ValueDescriptor},uP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Fe,asType:!1,parent:dP},cP={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:f.GenericReference,entityId:_o.body.id,version:"1",entityType:f.ActionDescriptor},_v={id:_o.body.inputs.currentValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current value",description:"The current value in the object-keys that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:uP,required:!0,index:1,parentRelationType:oe.FixedArguments,parent:cP},pP={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},fP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:pP},hP={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:_o.body.id,version:"1",entityType:f.ActionDescriptor},yP={id:_o.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the object-keys loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:fP,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:hP},mP={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:_o.body.id,version:"1",entityType:f.ActionDescriptor},vP={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:oe.DynamicArgument,parent:mP},EP={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:_o.body.id,version:"1",entityType:f.ActionDescriptor},TP={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:EP},Dv={id:_o.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[yP,_v,vP],outputs:[TP],error:null,parent:null},bP=me[f.Loop]["object-values-loop"],AP={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},IP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:zr,asType:!1,parent:AP},wP={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ObjectValues,version:"1",entityType:f.ActionDescriptor},RP={id:bP.inputs.object.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:IP,index:0,parent:wP,parentRelationType:oe.FixedArguments},gP={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.ObjectValues,version:"1",entityType:f.ActionDescriptor},_P={id:bP.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:gP,parentRelationType:oe.DynamicReturn},Bl={id:Ge.ObjectValues,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ge.ObjectValues,codeName:null,description:"Iterates over a object of entities",inputs:[RP],outputs:[_P],error:null,parent:null},Do=me[f.Loop]["object-values-loop"],DP={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:f.ValueDescriptor},OP={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:null,entity:null,asType:!1,staticEntities:null,interactiveEntities:null,actionEntities:!1,like:!1,inferred:!1,parent:DP},CP={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:f.GenericReference,entityId:Do.body.id,version:"1",entityType:f.ActionDescriptor},Ov={id:Do.body.inputs.currentValue.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current value",description:"The current value in the object-values that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:OP,required:!0,index:1,parentRelationType:oe.FixedArguments,parent:CP},$P={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},PP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:$P},VP={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:Do.body.id,version:"1",entityType:f.ActionDescriptor},NP={id:Do.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the object-values loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:PP,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:VP},LP={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:Do.body.id,version:"1",entityType:f.ActionDescriptor},BP={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:oe.DynamicArgument,parent:LP},MP={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:Do.body.id,version:"1",entityType:f.ActionDescriptor},UP={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:MP},Cv={id:Do.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[NP,Ov,BP],outputs:[UP],error:null,parent:null},$v=me[f.Loop]["counted-loop"],jP={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:$v.inputs.number.id,version:"1",entityType:f.ValueDescriptor},xP={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,name:X.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:jP},FP={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:f.ValueDescriptor},GP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:FP},KP={id:"counted-loop-string-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.Counted,version:"1",entityType:f.ActionDescriptor},kP={id:$v.inputs.number.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:GP,defaultValue:xP,index:0,parent:KP,parentRelationType:oe.FixedArguments},SP={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:f.GenericReference,entityId:Ge.Counted,version:"1",entityType:f.ActionDescriptor},qP={id:$v.outputs.results.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:SP,parentRelationType:oe.DynamicReturn},Ou={id:Ge.Counted,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Ge.Counted,description:"Iterates a given number of times",inputs:[kP],outputs:[qP],error:null,parent:null},Cu=me[f.Loop]["counted-loop"],ZP={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:f.ValueDescriptor},JP={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:et,asType:!1,parent:ZP},WP={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:f.GenericReference,entityId:Cu.body.id,version:"1",entityType:f.ActionDescriptor},Pv={id:Cu.body.inputs.iterationNumber.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:JP,required:!0,index:0,parentRelationType:oe.FixedArguments,parent:WP},HP={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:f.GenericReference,entityId:Cu.body.id,version:"1",entityType:f.ActionDescriptor},YP={id:"counted-loop-body-any-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:oe.DynamicArgument,parent:HP},zP={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:f.GenericReference,entityId:Cu.body.id,version:"1",entityType:f.ActionDescriptor},XP={id:"counted-loop-body-any-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:oe.DynamicReturn,parent:zP},zf={id:Cu.body.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Pv,YP],outputs:[XP],error:null,parent:null},QP=[Jf,ga,_u,Ll,Bl,Ou],eV=[Wf,Du,Hf,Dv,Cv,zf],_a=me[f.BuiltInBaseEntity][Ce.HTTP_ENDPOINT].properties,os=me[f.BuiltInBaseEntity][Ce.HTTP_ENDPOINT].methods,tV={id:"endpointBuiltInCorsPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:_a.cors.id},rV={id:"endpointBuiltInCorsPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:_a.cors.id},iV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Fe,asType:!1,parent:rV},sV={id:"endpointBuiltInBaseEntityRef",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.HTTP_ENDPOINT},nV={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:_a.cors.id,codeName:null,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:iV,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:["*"],parent:tV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"The origins that are allowed to access this endpoint, use * for all origins, or http://example.com/* to be as specific as you need.",parent:sV},aV={id:"endpointBuiltInPathPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:_a.path.id},oV={id:"endpointBuiltInPathPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:_a.path.id},lV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:oV},dV={id:"endpointBuiltInBaseEntityRefTwo",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.HTTP_ENDPOINT},Vv={interactive:!1,extends:null,constant:!0,id:_a.path.id,hidden:!1,required:!0,codeName:null,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:lV,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"/",parent:aV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:dV},uV={id:"endpointBuiltInMethodPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:_a.method.id},cV={id:"endpointBuiltInMethodPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"endpointBuiltInMethodProperty"},pV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Wn,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:cV},fV={id:"endpointBuiltInBaseEntityRefThree",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.HTTP_ENDPOINT},Nv={interactive:!1,extends:null,constant:!0,hidden:!1,required:!0,id:_a.method.id,codeName:null,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:X.Enum,parent:uV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:pV,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:fV},hV={id:"endpointRequestHeadersVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},yV={id:"endpointRequestHeadersArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},mV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:zr,asType:!1,parent:yV},vV={id:"endpointRequestBodyArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},EV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:zr,parent:vV},TV={id:"endpointRequestQueryParamsVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},bV={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},AV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Pl,parent:bV},IV={id:"endpointPathParamsVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},wV={id:"endpointPathParamsArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},RV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Pl,asType:!1,parent:wV},gV={id:"endpointReachedTriggerActionDescriptorRef",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:os.handler.id},Lv={id:"endpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:f.ValueDescriptor,codeName:null,name:"Request headers",dataType:mV,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:hV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:oe.FixedArguments,parent:gV},_V={id:"endpointReachedTriggerActionDescriptorRefTwo",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:os.handler.id},Bv={id:"endpointPathParamsArgumentDeclaration",type:f.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Path parameters",dataType:RV,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:[],parent:IV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:oe.FixedArguments,parent:_V},DV={id:"endpointReachedTriggerActionDescriptorRefThree",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:os.handler.id},Mv={id:"endpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:f.ValueDescriptor,codeName:null,name:"Request query params",dataType:AV,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:[],parent:TV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:oe.FixedArguments,parent:DV},OV={id:"endpointReachedTriggerActionDescriptorRefFour",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:os.handler.id},Uv={id:"endpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:f.ValueDescriptor,codeName:null,name:"Request body",dataType:EV,defaultValue:null,index:3,required:!0,parentRelationType:oe.FixedArguments,parent:OV},CV={id:"endpointResponseCodeReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:os.handler.outputs.statusCode.id},$V={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:CV},PV={id:"endpointReturnStatementRef",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:"endpointReturnStatement"},VV={id:"endpointResponseCodeReturnDeclarationDefaultValueParentRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:os.handler.outputs.statusCode.id},jv={id:os.handler.outputs.statusCode.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:f.ValueDescriptor,codeName:"statusCode",name:"Response code",dataType:$V,defaultValue:{id:"endpointResponseCodeDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:200,parent:VV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:oe.FixedReturns,parent:PV},NV={id:"endpointResponseHeadersDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ValueDescriptor,entityId:os.handler.outputs.headers.id},LV={id:"endpointResponseHeadersReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:os.handler.outputs.headers.id},BV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:zr,asType:!1,parent:LV},MV={id:"endpointReturnStatementRefTwo",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:"endpointReturnStatement"},xv={id:os.handler.outputs.headers.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:f.ValueDescriptor,codeName:"headers",name:"Response headers",dataType:BV,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:NV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:oe.FixedReturns,parent:MV},UV={id:"endpointResponseBodyReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:os.handler.outputs.body.id},jV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:zr,parent:UV},xV={id:"endpointReturnStatementRefThree",type:f.GenericReference,version:"1",entityType:f.ActionDescriptor,entityId:"endpointReturnStatement"},Fv={id:os.handler.outputs.body.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:f.ValueDescriptor,codeName:"body",name:"Response body",dataType:jV,defaultValue:null,required:!1,index:2,parentRelationType:oe.FixedReturns,parent:xV},FV={id:"endpointBuiltInBaseEntityRefFour",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.HTTP_ENDPOINT},Gv={id:os.handler.id,type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[Lv,Bv,Mv,Uv],outputs:[jv,xv,Fv],error:null,parent:FV},Ki={id:Ce.HTTP_ENDPOINT,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:Ce.HTTP_ENDPOINT,type:f.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[nV,Vv,Nv],abstractMethods:[Gv],extends:[],methods:[]},si=me[f.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,GV={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:f.GenericReference,entityId:si.properties.identifier.id,version:"1",entityType:f.Property},KV={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:f.GenericReference,entityId:si.properties.identifier.id,version:"1",entityType:f.Property},kV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:KV},Ml={id:"relational-database-built-in-base-entity-ref-id",type:f.GenericReference,entityId:Ce.PERSISTED_ENTITY,version:"1",entityType:f.BuiltInBaseEntity},Xf={interactive:!1,extends:null,constant:!0,id:si.properties.identifier.id,hidden:!1,required:!0,codeName:null,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:null,parent:GV,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:kV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Ml},Ek={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:f.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:f.Property},SV={id:"relational-database-built-in-base-entity-username-property-ref-id",type:f.GenericReference,entityId:si.properties.username.id,version:"1",entityType:f.Property},qV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:SV},Qf={interactive:!1,extends:null,constant:!0,hidden:!1,required:!0,id:si.properties.username.id,codeName:null,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:si.properties.username.id,version:"1",entityType:f.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:qV,description:"The username that will be used to connect to the database.",parent:Ml},Tk={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:f.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:f.Property},ZV={id:"relational-database-built-in-base-entity-password-property-ref-id",type:f.GenericReference,entityId:si.properties.password.id,version:"1",entityType:f.Property},JV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:ZV},WV={id:"relational-database-built-in-base-entity-password-property-default-value-parent-ref-id",type:f.GenericReference,entityId:si.properties.password.id,version:"1",entityType:f.Property},eh={interactive:!1,extends:null,constant:!0,hidden:!1,required:!0,id:si.properties.password.id,codeName:null,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:{id:"relational-database-built-in-base-entity-password-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"123456789",parent:WV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:JV,description:"The password that will be used to connect to the database.",parent:Ml},HV={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:f.GenericReference,entityId:si.properties.minSize.id,version:"1",entityType:f.Property},YV={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:f.GenericReference,entityId:si.properties.minSize.id,version:"1",entityType:f.Property},zV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:YV},th={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:si.properties.minSize.id,codeName:null,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:6,parent:HV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:zV,description:"The minimum size of the database in GB.",parent:Ml},XV={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:f.GenericReference,entityId:si.properties.default.id,version:"1",entityType:f.Property},QV={id:"relational-database-built-in-base-entity-default-property-ref-id",type:f.GenericReference,entityId:si.properties.default.id,version:"1",entityType:f.Property},eN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Jn,asType:!1,parent:QV},Kv={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:si.properties.default.id,codeName:null,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,value:!1,parent:XV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:eN,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:Ml},tN={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:f.GenericReference,entityId:si.properties.autoscaling.id,version:"1",entityType:f.Property},rN={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:f.GenericReference,entityId:si.properties.autoscaling.id,version:"1",entityType:f.Property},iN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Jn,asType:!1,parent:tN},sN={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:f.GenericReference,entityId:Ce.PERSISTED_ENTITY,version:"1",entityType:f.BuiltInBaseEntity},kv={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:si.properties.autoscaling.id,codeName:null,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,value:!1,parent:rN,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:iN,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:sN},Xr={id:Ce.RELATIONAL_DATABASE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity provisions a relational database in the cloud.",name:Ce.RELATIONAL_DATABASE,type:f.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Xf,Qf,eh,th,Kv,kv],abstractMethods:[],methods:[],extends:[]},nN={type:f.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:f.BuiltInBaseEntity,id:ns.DeletePersistedEntity},Sv={extends:null,type:f.FunctionDeclaration,id:ns.DeletePersistedEntity,codeName:null,name:ns.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:nN,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},aN=me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties,bk={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:f.DataType},oN={id:"persisted-built-in-base-entity-database-property-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:f.Property},lN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!0,parent:oN},dN={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:f.GenericReference,entityId:Ce.PERSISTED_ENTITY,version:"1",entityType:f.BuiltInBaseEntity},Ul={interactive:!1,extends:null,constant:!0,hidden:!0,required:!0,id:aN.database.id,codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,defaultValue:null,private:!0,abstract:!0,implements:null,static:!0,index:0,dataType:lN,description:"The database that the entity belongs to.",parent:dN},uN={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:f.DataType},cN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parentRelationType:Yr.OrDataTypeGroup,parent:uN},pN={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:f.DataType},fN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parentRelationType:Yr.OrDataTypeGroup,parent:pN},hN={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:f.DataType},yN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parentRelationType:Yr.OrDataTypeGroup,parent:hN},mN={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:f.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:f.Property},vN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,andChildrenGroup:null,orChildrenGroup:[yN,fN,cN],isList:!1,entity:null,asType:!1,implementationChooseOne:!0,parent:mN},EN={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:f.GenericReference,entityId:Ce.PERSISTED_ENTITY,version:"1",entityType:f.BuiltInBaseEntity},jl={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:aN.primaryKey.id,codeName:null,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:vN,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:EN},ni={id:Ce.PERSISTED_ENTITY,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:Ce.PERSISTED_ENTITY,type:f.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Ul,jl],methods:[Sv],extends:[]},TN={type:f.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:f.BuiltInBaseEntity,id:ns.SoftDeletePersistedEntity},Ak={extends:null,type:f.FunctionDeclaration,id:ns.SoftDeletePersistedEntity,codeName:null,name:ns.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:TN,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},Ik=me[f.BuiltInBaseEntity][Ce.CRON_JOB].methods,bN={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:Ce.CRON_JOB},qv={id:Ik.handler.id,codeName:null,name:"Scheduled job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ActionDescriptor,description:"Executed when the scheduled job is triggered",inputs:[],error:null,outputs:[],parent:bN},AN=me[f.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,wk={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:f.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:f.DataType},IN={id:"cron-job-built-in-base-entity-expression-property-ref",type:f.GenericReference,entityId:AN.properties.expression.id,version:"1",entityType:f.Property},Rk={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:IN},wN={id:"cron-job-built-in-base-entity-ref",type:f.GenericReference,entityId:Ce.CRON_JOB,version:"1",entityType:f.BuiltInBaseEntity},RN={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:AN.properties.expression.id,codeName:null,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:Rk,description:"The cron-job expression that defines when the cron-job job should be triggered. The expression should be in the format of a cron-job expression.",parent:wN},rh={id:Ce.CRON_JOB,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity represents a scheduled trigger. The action on this entity will be executed one the time set by the cron-job expression is reached.",name:Ce.CRON_JOB,type:f.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[RN],methods:[],abstractMethods:[qv],extends:[]},gN={type:f.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:f.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Zv={extends:null,id:"execution-built-in-entity-abort-method-id",type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:ns.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:gN},ih={id:Ce.EXECUTION,type:f.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ce.EXECUTION,description:"A reference to an ongoing execution of any entity that can be called. Eg: Operations, custom trigger calls, etc.",static:!1,abstract:!1,interactive:!0,extends:[],properties:[],methods:[Zv],abstractMethods:[]},_N=[Ki,Xr,ni,rh,ih],gk=me[f.Condition][Br.NotEmpty],DN={type:f.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:f.ActionDescriptor,entityId:Br.NotEmpty},ON={id:gk.inputs.leftHand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!1,parentRelationType:oe.FixedArguments,index:0,parent:DN},Oo={type:f.ActionDescriptor,id:Br.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Br.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[ON],outputs:[],error:null},_k=me[f.Condition][Br.Empty],CN={type:f.GenericReference,id:"empty-condition-ref",version:"1",entityType:f.ActionDescriptor,entityId:Br.Empty},$N={id:_k.inputs.leftHand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Value",description:"The value to check if it is empty",defaultValue:null,dataType:null,required:!1,parentRelationType:oe.FixedArguments,index:0,parent:CN},Jv={type:f.ActionDescriptor,id:Br.Empty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:Br.Empty,description:"Checks if the value is empty",parent:null,inputs:[$N],outputs:[],error:null},PN={[Br.NotEmpty]:Oo,[Br.Empty]:Jv},xl=me[f.Condition]["more-than-or-equal"],VN={type:f.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:f.ValueDescriptor,entityId:xl.inputs.leftHand.id},NN={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:xl.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:VN},LN={type:f.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:f.ActionDescriptor,entityId:ur.MoreThanOrEqual},BN={id:xl.inputs.leftHand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"First value",description:"The first value to compare",defaultValue:null,dataType:NN,required:!0,parentRelationType:oe.FixedArguments,index:0,parent:LN},MN={type:f.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:f.ValueDescriptor,entityId:xl.inputs.rightHand.id},UN={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:xl.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:MN},jN={type:f.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:f.ActionDescriptor,entityId:ur.MoreThanOrEqual},xN={id:xl.inputs.rightHand.id,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:UN,required:!0,parentRelationType:oe.FixedArguments,index:1,parent:jN},Fl={type:f.ActionDescriptor,id:ur.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:ur.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[BN,xN],outputs:[],error:null},FN={[ur.MoreThanOrEqual]:Fl},GN={...PN,...FN},KN=Object.values(GN),sh={type:f.ActionDescriptor,id:qn.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:qn.PROJECT_PUBLICATION_COMPLETED,description:"The event that is triggered when the project has completed its publication and all its code and resurces are now deployed and ready to be used by the users",parent:null,inputs:[],outputs:[],error:null},kN={[qn.PROJECT_PUBLICATION_COMPLETED]:sh},SN=Object.values(kN),Wv=me[f.ValueDescriptor][$l.ActionOngoingProcessOutputValue],qN={type:f.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:f.ValueDescriptor,entityId:Wv.id},ZN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Wv.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ih,asType:!1,isList:!1,parent:qN},nh={id:Wv.id,type:f.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Process",defaultValue:null,dataType:ZN,required:!0,index:0,parent:null,parentRelationType:oe.OngoingProcessExecution},Hv=me[f.ValueDescriptor][$l.SearchErrorOutputDescriptor],JN={type:f.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:f.ValueDescriptor,entityId:Hv.id},WN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:Hv.dataType.id,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:JN},Yv={id:Hv.id,type:f.ValueDescriptor,description:"The error that occurred during the execution of the search statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Search error",codeName:null,defaultValue:null,dataType:WN,required:!0,index:0,parent:null,parentRelationType:oe.ReturnedError},HN=[nh,Yv],YN=[...h1,...c$,...QP,...eV,..._N,...KN,...SN,...HN];var qt;(function(d){d.assertEqual=l=>l;function u(l){}d.assertIs=u;function i(l){throw new Error}d.assertNever=i,d.arrayToEnum=l=>{const p={};for(const t of l)p[t]=t;return p},d.getValidEnumValues=l=>{const p=d.objectKeys(l).filter(y=>typeof l[l[y]]!="number"),t={};for(const y of p)t[y]=l[y];return d.objectValues(t)},d.objectValues=l=>d.objectKeys(l).map(function(p){return l[p]}),d.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const p=[];for(const t in l)Object.prototype.hasOwnProperty.call(l,t)&&p.push(t);return p},d.find=(l,p)=>{for(const t of l)if(p(t))return t},d.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&isFinite(l)&&Math.floor(l)===l;function a(l,p=" | "){return l.map(t=>typeof t=="string"?`'${t}'`:t).join(p)}d.joinValues=a,d.jsonStringifyReplacer=(l,p)=>typeof p=="bigint"?p.toString():p})(qt||(qt={}));var zv;(function(d){d.mergeShapes=(u,i)=>({...u,...i})})(zv||(zv={}));const je=qt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xn=d=>{switch(typeof d){case"undefined":return je.undefined;case"string":return je.string;case"number":return isNaN(d)?je.nan:je.number;case"boolean":return je.boolean;case"function":return je.function;case"bigint":return je.bigint;case"symbol":return je.symbol;case"object":return Array.isArray(d)?je.array:d===null?je.null:d.then&&typeof d.then=="function"&&d.catch&&typeof d.catch=="function"?je.promise:typeof Map<"u"&&d instanceof Map?je.map:typeof Set<"u"&&d instanceof Set?je.set:typeof Date<"u"&&d instanceof Date?je.date:je.object;default:return je.unknown}},De=qt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Dk=d=>JSON.stringify(d,null,2).replace(/"([^"]+)":/g,"$1:");class ki extends Error{get errors(){return this.issues}constructor(u){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=u}format(u){const i=u||function(p){return p.message},a={_errors:[]},l=p=>{for(const t of p.issues)if(t.code==="invalid_union")t.unionErrors.map(l);else if(t.code==="invalid_return_type")l(t.returnTypeError);else if(t.code==="invalid_arguments")l(t.argumentsError);else if(t.path.length===0)a._errors.push(i(t));else{let y=a,v=0;for(;v<t.path.length;){const b=t.path[v];v===t.path.length-1?(y[b]=y[b]||{_errors:[]},y[b]._errors.push(i(t))):y[b]=y[b]||{_errors:[]},y=y[b],v++}}};return l(this),a}static assert(u){if(!(u instanceof ki))throw new Error(`Not a ZodError: ${u}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,qt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(u=i=>i.message){const i={},a=[];for(const l of this.issues)l.path.length>0?(i[l.path[0]]=i[l.path[0]]||[],i[l.path[0]].push(u(l))):a.push(u(l));return{formErrors:a,fieldErrors:i}}get formErrors(){return this.flatten()}}ki.create=d=>new ki(d);const Gl=(d,u)=>{let i;switch(d.code){case De.invalid_type:d.received===je.undefined?i="Required":i=`Expected ${d.expected}, received ${d.received}`;break;case De.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(d.expected,qt.jsonStringifyReplacer)}`;break;case De.unrecognized_keys:i=`Unrecognized key(s) in object: ${qt.joinValues(d.keys,", ")}`;break;case De.invalid_union:i="Invalid input";break;case De.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${qt.joinValues(d.options)}`;break;case De.invalid_enum_value:i=`Invalid enum value. Expected ${qt.joinValues(d.options)}, received '${d.received}'`;break;case De.invalid_arguments:i="Invalid function arguments";break;case De.invalid_return_type:i="Invalid function return type";break;case De.invalid_date:i="Invalid date";break;case De.invalid_string:typeof d.validation=="object"?"includes"in d.validation?(i=`Invalid input: must include "${d.validation.includes}"`,typeof d.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${d.validation.position}`)):"startsWith"in d.validation?i=`Invalid input: must start with "${d.validation.startsWith}"`:"endsWith"in d.validation?i=`Invalid input: must end with "${d.validation.endsWith}"`:qt.assertNever(d.validation):d.validation!=="regex"?i=`Invalid ${d.validation}`:i="Invalid";break;case De.too_small:d.type==="array"?i=`Array must contain ${d.exact?"exactly":d.inclusive?"at least":"more than"} ${d.minimum} element(s)`:d.type==="string"?i=`String must contain ${d.exact?"exactly":d.inclusive?"at least":"over"} ${d.minimum} character(s)`:d.type==="number"?i=`Number must be ${d.exact?"exactly equal to ":d.inclusive?"greater than or equal to ":"greater than "}${d.minimum}`:d.type==="date"?i=`Date must be ${d.exact?"exactly equal to ":d.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(d.minimum))}`:i="Invalid input";break;case De.too_big:d.type==="array"?i=`Array must contain ${d.exact?"exactly":d.inclusive?"at most":"less than"} ${d.maximum} element(s)`:d.type==="string"?i=`String must contain ${d.exact?"exactly":d.inclusive?"at most":"under"} ${d.maximum} character(s)`:d.type==="number"?i=`Number must be ${d.exact?"exactly":d.inclusive?"less than or equal to":"less than"} ${d.maximum}`:d.type==="bigint"?i=`BigInt must be ${d.exact?"exactly":d.inclusive?"less than or equal to":"less than"} ${d.maximum}`:d.type==="date"?i=`Date must be ${d.exact?"exactly":d.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(d.maximum))}`:i="Invalid input";break;case De.custom:i="Invalid input";break;case De.invalid_intersection_types:i="Intersection results could not be merged";break;case De.not_multiple_of:i=`Number must be a multiple of ${d.multipleOf}`;break;case De.not_finite:i="Number must be finite";break;default:i=u.defaultError,qt.assertNever(d)}return{message:i}};let zN=Gl;function Ok(d){zN=d}function ah(){return zN}const oh=d=>{const{data:u,path:i,errorMaps:a,issueData:l}=d,p=[...i,...l.path||[]],t={...l,path:p};if(l.message!==void 0)return{...l,path:p,message:l.message};let y="";const v=a.filter(b=>!!b).slice().reverse();for(const b of v)y=b(t,{data:u,defaultError:y}).message;return{...l,path:p,message:y}},Ck=[];function Me(d,u){const i=ah(),a=oh({issueData:u,data:d.data,path:d.path,errorMaps:[d.common.contextualErrorMap,d.schemaErrorMap,i,i===Gl?void 0:Gl].filter(l=>!!l)});d.common.issues.push(a)}class vi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(u,i){const a=[];for(const l of i){if(l.status==="aborted")return ct;l.status==="dirty"&&u.dirty(),a.push(l.value)}return{status:u.value,value:a}}static async mergeObjectAsync(u,i){const a=[];for(const l of i){const p=await l.key,t=await l.value;a.push({key:p,value:t})}return vi.mergeObjectSync(u,a)}static mergeObjectSync(u,i){const a={};for(const l of i){const{key:p,value:t}=l;if(p.status==="aborted"||t.status==="aborted")return ct;p.status==="dirty"&&u.dirty(),t.status==="dirty"&&u.dirty(),p.value!=="__proto__"&&(typeof t.value<"u"||l.alwaysSet)&&(a[p.value]=t.value)}return{status:u.value,value:a}}}const ct=Object.freeze({status:"aborted"}),Kl=d=>({status:"dirty",value:d}),_i=d=>({status:"valid",value:d}),Xv=d=>d.status==="aborted",Qv=d=>d.status==="dirty",Co=d=>d.status==="valid",$u=d=>typeof Promise<"u"&&d instanceof Promise;function lh(d,u,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof u=="function"?d!==u||!a:!u.has(d))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(d):a?a.value:u.get(d)}function XN(d,u,i,a,l){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof u=="function"?d!==u||!l:!u.has(d))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?l.call(d,i):l?l.value=i:u.set(d,i),i}typeof SuppressedError=="function"&&SuppressedError;var Se;(function(d){d.errToObj=u=>typeof u=="string"?{message:u}:u||{},d.toString=u=>typeof u=="string"?u:u==null?void 0:u.message})(Se||(Se={}));var Pu,Vu;class vn{constructor(u,i,a,l){this._cachedPath=[],this.parent=u,this.data=i,this._path=a,this._key=l}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const QN=(d,u)=>{if(Co(u))return{success:!0,data:u.value};if(!d.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new ki(d.common.issues);return this._error=i,this._error}}};function ht(d){if(!d)return{};const{errorMap:u,invalid_type_error:i,required_error:a,description:l}=d;if(u&&(i||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return u?{errorMap:u,description:l}:{errorMap:(t,y)=>{var v,b;const{message:w}=d;return t.code==="invalid_enum_value"?{message:w??y.defaultError}:typeof y.data>"u"?{message:(v=w??a)!==null&&v!==void 0?v:y.defaultError}:t.code!=="invalid_type"?{message:y.defaultError}:{message:(b=w??i)!==null&&b!==void 0?b:y.defaultError}},description:l}}class Nt{get description(){return this._def.description}_getType(u){return Xn(u.data)}_getOrReturnCtx(u,i){return i||{common:u.parent.common,data:u.data,parsedType:Xn(u.data),schemaErrorMap:this._def.errorMap,path:u.path,parent:u.parent}}_processInputParams(u){return{status:new vi,ctx:{common:u.parent.common,data:u.data,parsedType:Xn(u.data),schemaErrorMap:this._def.errorMap,path:u.path,parent:u.parent}}}_parseSync(u){const i=this._parse(u);if($u(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(u){const i=this._parse(u);return Promise.resolve(i)}parse(u,i){const a=this.safeParse(u,i);if(a.success)return a.data;throw a.error}safeParse(u,i){var a;const l={common:{issues:[],async:(a=i==null?void 0:i.async)!==null&&a!==void 0?a:!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:u,parsedType:Xn(u)},p=this._parseSync({data:u,path:l.path,parent:l});return QN(l,p)}"~validate"(u){var i,a;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:u,parsedType:Xn(u)};if(!this["~standard"].async)try{const p=this._parseSync({data:u,path:[],parent:l});return Co(p)?{value:p.value}:{issues:l.common.issues}}catch(p){!((a=(i=p==null?void 0:p.message)===null||i===void 0?void 0:i.toLowerCase())===null||a===void 0)&&a.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:u,path:[],parent:l}).then(p=>Co(p)?{value:p.value}:{issues:l.common.issues})}async parseAsync(u,i){const a=await this.safeParseAsync(u,i);if(a.success)return a.data;throw a.error}async safeParseAsync(u,i){const a={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:u,parsedType:Xn(u)},l=this._parse({data:u,path:a.path,parent:a}),p=await($u(l)?l:Promise.resolve(l));return QN(a,p)}refine(u,i){const a=l=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(l):i;return this._refinement((l,p)=>{const t=u(l),y=()=>p.addIssue({code:De.custom,...a(l)});return typeof Promise<"u"&&t instanceof Promise?t.then(v=>v?!0:(y(),!1)):t?!0:(y(),!1)})}refinement(u,i){return this._refinement((a,l)=>u(a)?!0:(l.addIssue(typeof i=="function"?i(a,l):i),!1))}_refinement(u){return new Zs({schema:this,typeName:at.ZodEffects,effect:{type:"refinement",refinement:u}})}superRefine(u){return this._refinement(u)}constructor(u){this.spa=this.safeParseAsync,this._def=u,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return Tn.create(this,this._def)}nullable(){return $a.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qs.create(this)}promise(){return Zl.create(this,this._def)}or(u){return Mu.create([this,u],this._def)}and(u){return Uu.create(this,u,this._def)}transform(u){return new Zs({...ht(this._def),schema:this,typeName:at.ZodEffects,effect:{type:"transform",transform:u}})}default(u){const i=typeof u=="function"?u:()=>u;return new Ku({...ht(this._def),innerType:this,defaultValue:i,typeName:at.ZodDefault})}brand(){return new rE({typeName:at.ZodBranded,type:this,...ht(this._def)})}catch(u){const i=typeof u=="function"?u:()=>u;return new ku({...ht(this._def),innerType:this,catchValue:i,typeName:at.ZodCatch})}describe(u){const i=this.constructor;return new i({...this._def,description:u})}pipe(u){return Su.create(this,u)}readonly(){return qu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const $k=/^c[^\s-]{8,}$/i,Pk=/^[0-9a-z]+$/,Vk=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Nk=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Lk=/^[a-z0-9_-]{21}$/i,Bk=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Mk=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Uk=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let eE;const xk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Fk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Gk=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Kk=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kk=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Sk=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,e2="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",qk=new RegExp(`^${e2}$`);function t2(d){let u="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return d.precision?u=`${u}\\.\\d{${d.precision}}`:d.precision==null&&(u=`${u}(\\.\\d+)?`),u}function Zk(d){return new RegExp(`^${t2(d)}$`)}function r2(d){let u=`${e2}T${t2(d)}`;const i=[];return i.push(d.local?"Z?":"Z"),d.offset&&i.push("([+-]\\d{2}:?\\d{2})"),u=`${u}(${i.join("|")})`,new RegExp(`^${u}$`)}function Jk(d,u){return!!((u==="v4"||!u)&&xk.test(d)||(u==="v6"||!u)&&Gk.test(d))}function Wk(d,u){if(!Bk.test(d))return!1;try{const[i]=d.split("."),a=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),l=JSON.parse(atob(a));return!(typeof l!="object"||l===null||!l.typ||!l.alg||u&&l.alg!==u)}catch{return!1}}function Hk(d,u){return!!((u==="v4"||!u)&&Fk.test(d)||(u==="v6"||!u)&&Kk.test(d))}class Ss extends Nt{_parse(u){if(this._def.coerce&&(u.data=String(u.data)),this._getType(u)!==je.string){const p=this._getOrReturnCtx(u);return Me(p,{code:De.invalid_type,expected:je.string,received:p.parsedType}),ct}const a=new vi;let l;for(const p of this._def.checks)if(p.kind==="min")u.data.length<p.value&&(l=this._getOrReturnCtx(u,l),Me(l,{code:De.too_small,minimum:p.value,type:"string",inclusive:!0,exact:!1,message:p.message}),a.dirty());else if(p.kind==="max")u.data.length>p.value&&(l=this._getOrReturnCtx(u,l),Me(l,{code:De.too_big,maximum:p.value,type:"string",inclusive:!0,exact:!1,message:p.message}),a.dirty());else if(p.kind==="length"){const t=u.data.length>p.value,y=u.data.length<p.value;(t||y)&&(l=this._getOrReturnCtx(u,l),t?Me(l,{code:De.too_big,maximum:p.value,type:"string",inclusive:!0,exact:!0,message:p.message}):y&&Me(l,{code:De.too_small,minimum:p.value,type:"string",inclusive:!0,exact:!0,message:p.message}),a.dirty())}else if(p.kind==="email")Uk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"email",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="emoji")eE||(eE=new RegExp(jk,"u")),eE.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"emoji",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="uuid")Nk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"uuid",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="nanoid")Lk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"nanoid",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="cuid")$k.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"cuid",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="cuid2")Pk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"cuid2",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="ulid")Vk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"ulid",code:De.invalid_string,message:p.message}),a.dirty());else if(p.kind==="url")try{new URL(u.data)}catch{l=this._getOrReturnCtx(u,l),Me(l,{validation:"url",code:De.invalid_string,message:p.message}),a.dirty()}else p.kind==="regex"?(p.regex.lastIndex=0,p.regex.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"regex",code:De.invalid_string,message:p.message}),a.dirty())):p.kind==="trim"?u.data=u.data.trim():p.kind==="includes"?u.data.includes(p.value,p.position)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:{includes:p.value,position:p.position},message:p.message}),a.dirty()):p.kind==="toLowerCase"?u.data=u.data.toLowerCase():p.kind==="toUpperCase"?u.data=u.data.toUpperCase():p.kind==="startsWith"?u.data.startsWith(p.value)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:{startsWith:p.value},message:p.message}),a.dirty()):p.kind==="endsWith"?u.data.endsWith(p.value)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:{endsWith:p.value},message:p.message}),a.dirty()):p.kind==="datetime"?r2(p).test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:"datetime",message:p.message}),a.dirty()):p.kind==="date"?qk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:"date",message:p.message}),a.dirty()):p.kind==="time"?Zk(p).test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{code:De.invalid_string,validation:"time",message:p.message}),a.dirty()):p.kind==="duration"?Mk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"duration",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="ip"?Jk(u.data,p.version)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"ip",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="jwt"?Wk(u.data,p.alg)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"jwt",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="cidr"?Hk(u.data,p.version)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"cidr",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="base64"?kk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"base64",code:De.invalid_string,message:p.message}),a.dirty()):p.kind==="base64url"?Sk.test(u.data)||(l=this._getOrReturnCtx(u,l),Me(l,{validation:"base64url",code:De.invalid_string,message:p.message}),a.dirty()):qt.assertNever(p);return{status:a.value,value:u.data}}_regex(u,i,a){return this.refinement(l=>u.test(l),{validation:i,code:De.invalid_string,...Se.errToObj(a)})}_addCheck(u){return new Ss({...this._def,checks:[...this._def.checks,u]})}email(u){return this._addCheck({kind:"email",...Se.errToObj(u)})}url(u){return this._addCheck({kind:"url",...Se.errToObj(u)})}emoji(u){return this._addCheck({kind:"emoji",...Se.errToObj(u)})}uuid(u){return this._addCheck({kind:"uuid",...Se.errToObj(u)})}nanoid(u){return this._addCheck({kind:"nanoid",...Se.errToObj(u)})}cuid(u){return this._addCheck({kind:"cuid",...Se.errToObj(u)})}cuid2(u){return this._addCheck({kind:"cuid2",...Se.errToObj(u)})}ulid(u){return this._addCheck({kind:"ulid",...Se.errToObj(u)})}base64(u){return this._addCheck({kind:"base64",...Se.errToObj(u)})}base64url(u){return this._addCheck({kind:"base64url",...Se.errToObj(u)})}jwt(u){return this._addCheck({kind:"jwt",...Se.errToObj(u)})}ip(u){return this._addCheck({kind:"ip",...Se.errToObj(u)})}cidr(u){return this._addCheck({kind:"cidr",...Se.errToObj(u)})}datetime(u){var i,a;return typeof u=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:u}):this._addCheck({kind:"datetime",precision:typeof(u==null?void 0:u.precision)>"u"?null:u==null?void 0:u.precision,offset:(i=u==null?void 0:u.offset)!==null&&i!==void 0?i:!1,local:(a=u==null?void 0:u.local)!==null&&a!==void 0?a:!1,...Se.errToObj(u==null?void 0:u.message)})}date(u){return this._addCheck({kind:"date",message:u})}time(u){return typeof u=="string"?this._addCheck({kind:"time",precision:null,message:u}):this._addCheck({kind:"time",precision:typeof(u==null?void 0:u.precision)>"u"?null:u==null?void 0:u.precision,...Se.errToObj(u==null?void 0:u.message)})}duration(u){return this._addCheck({kind:"duration",...Se.errToObj(u)})}regex(u,i){return this._addCheck({kind:"regex",regex:u,...Se.errToObj(i)})}includes(u,i){return this._addCheck({kind:"includes",value:u,position:i==null?void 0:i.position,...Se.errToObj(i==null?void 0:i.message)})}startsWith(u,i){return this._addCheck({kind:"startsWith",value:u,...Se.errToObj(i)})}endsWith(u,i){return this._addCheck({kind:"endsWith",value:u,...Se.errToObj(i)})}min(u,i){return this._addCheck({kind:"min",value:u,...Se.errToObj(i)})}max(u,i){return this._addCheck({kind:"max",value:u,...Se.errToObj(i)})}length(u,i){return this._addCheck({kind:"length",value:u,...Se.errToObj(i)})}nonempty(u){return this.min(1,Se.errToObj(u))}trim(){return new Ss({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ss({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ss({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(u=>u.kind==="datetime")}get isDate(){return!!this._def.checks.find(u=>u.kind==="date")}get isTime(){return!!this._def.checks.find(u=>u.kind==="time")}get isDuration(){return!!this._def.checks.find(u=>u.kind==="duration")}get isEmail(){return!!this._def.checks.find(u=>u.kind==="email")}get isURL(){return!!this._def.checks.find(u=>u.kind==="url")}get isEmoji(){return!!this._def.checks.find(u=>u.kind==="emoji")}get isUUID(){return!!this._def.checks.find(u=>u.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(u=>u.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(u=>u.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(u=>u.kind==="cuid2")}get isULID(){return!!this._def.checks.find(u=>u.kind==="ulid")}get isIP(){return!!this._def.checks.find(u=>u.kind==="ip")}get isCIDR(){return!!this._def.checks.find(u=>u.kind==="cidr")}get isBase64(){return!!this._def.checks.find(u=>u.kind==="base64")}get isBase64url(){return!!this._def.checks.find(u=>u.kind==="base64url")}get minLength(){let u=null;for(const i of this._def.checks)i.kind==="min"&&(u===null||i.value>u)&&(u=i.value);return u}get maxLength(){let u=null;for(const i of this._def.checks)i.kind==="max"&&(u===null||i.value<u)&&(u=i.value);return u}}Ss.create=d=>{var u;return new Ss({checks:[],typeName:at.ZodString,coerce:(u=d==null?void 0:d.coerce)!==null&&u!==void 0?u:!1,...ht(d)})};function Yk(d,u){const i=(d.toString().split(".")[1]||"").length,a=(u.toString().split(".")[1]||"").length,l=i>a?i:a,p=parseInt(d.toFixed(l).replace(".","")),t=parseInt(u.toFixed(l).replace(".",""));return p%t/Math.pow(10,l)}class Da extends Nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(u){if(this._def.coerce&&(u.data=Number(u.data)),this._getType(u)!==je.number){const p=this._getOrReturnCtx(u);return Me(p,{code:De.invalid_type,expected:je.number,received:p.parsedType}),ct}let a;const l=new vi;for(const p of this._def.checks)p.kind==="int"?qt.isInteger(u.data)||(a=this._getOrReturnCtx(u,a),Me(a,{code:De.invalid_type,expected:"integer",received:"float",message:p.message}),l.dirty()):p.kind==="min"?(p.inclusive?u.data<p.value:u.data<=p.value)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.too_small,minimum:p.value,type:"number",inclusive:p.inclusive,exact:!1,message:p.message}),l.dirty()):p.kind==="max"?(p.inclusive?u.data>p.value:u.data>=p.value)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.too_big,maximum:p.value,type:"number",inclusive:p.inclusive,exact:!1,message:p.message}),l.dirty()):p.kind==="multipleOf"?Yk(u.data,p.value)!==0&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.not_multiple_of,multipleOf:p.value,message:p.message}),l.dirty()):p.kind==="finite"?Number.isFinite(u.data)||(a=this._getOrReturnCtx(u,a),Me(a,{code:De.not_finite,message:p.message}),l.dirty()):qt.assertNever(p);return{status:l.value,value:u.data}}gte(u,i){return this.setLimit("min",u,!0,Se.toString(i))}gt(u,i){return this.setLimit("min",u,!1,Se.toString(i))}lte(u,i){return this.setLimit("max",u,!0,Se.toString(i))}lt(u,i){return this.setLimit("max",u,!1,Se.toString(i))}setLimit(u,i,a,l){return new Da({...this._def,checks:[...this._def.checks,{kind:u,value:i,inclusive:a,message:Se.toString(l)}]})}_addCheck(u){return new Da({...this._def,checks:[...this._def.checks,u]})}int(u){return this._addCheck({kind:"int",message:Se.toString(u)})}positive(u){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Se.toString(u)})}negative(u){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Se.toString(u)})}nonpositive(u){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Se.toString(u)})}nonnegative(u){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Se.toString(u)})}multipleOf(u,i){return this._addCheck({kind:"multipleOf",value:u,message:Se.toString(i)})}finite(u){return this._addCheck({kind:"finite",message:Se.toString(u)})}safe(u){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Se.toString(u)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Se.toString(u)})}get minValue(){let u=null;for(const i of this._def.checks)i.kind==="min"&&(u===null||i.value>u)&&(u=i.value);return u}get maxValue(){let u=null;for(const i of this._def.checks)i.kind==="max"&&(u===null||i.value<u)&&(u=i.value);return u}get isInt(){return!!this._def.checks.find(u=>u.kind==="int"||u.kind==="multipleOf"&&qt.isInteger(u.value))}get isFinite(){let u=null,i=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(i===null||a.value>i)&&(i=a.value):a.kind==="max"&&(u===null||a.value<u)&&(u=a.value)}return Number.isFinite(i)&&Number.isFinite(u)}}Da.create=d=>new Da({checks:[],typeName:at.ZodNumber,coerce:(d==null?void 0:d.coerce)||!1,...ht(d)});class Oa extends Nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(u){if(this._def.coerce)try{u.data=BigInt(u.data)}catch{return this._getInvalidInput(u)}if(this._getType(u)!==je.bigint)return this._getInvalidInput(u);let a;const l=new vi;for(const p of this._def.checks)p.kind==="min"?(p.inclusive?u.data<p.value:u.data<=p.value)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.too_small,type:"bigint",minimum:p.value,inclusive:p.inclusive,message:p.message}),l.dirty()):p.kind==="max"?(p.inclusive?u.data>p.value:u.data>=p.value)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.too_big,type:"bigint",maximum:p.value,inclusive:p.inclusive,message:p.message}),l.dirty()):p.kind==="multipleOf"?u.data%p.value!==BigInt(0)&&(a=this._getOrReturnCtx(u,a),Me(a,{code:De.not_multiple_of,multipleOf:p.value,message:p.message}),l.dirty()):qt.assertNever(p);return{status:l.value,value:u.data}}_getInvalidInput(u){const i=this._getOrReturnCtx(u);return Me(i,{code:De.invalid_type,expected:je.bigint,received:i.parsedType}),ct}gte(u,i){return this.setLimit("min",u,!0,Se.toString(i))}gt(u,i){return this.setLimit("min",u,!1,Se.toString(i))}lte(u,i){return this.setLimit("max",u,!0,Se.toString(i))}lt(u,i){return this.setLimit("max",u,!1,Se.toString(i))}setLimit(u,i,a,l){return new Oa({...this._def,checks:[...this._def.checks,{kind:u,value:i,inclusive:a,message:Se.toString(l)}]})}_addCheck(u){return new Oa({...this._def,checks:[...this._def.checks,u]})}positive(u){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Se.toString(u)})}negative(u){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Se.toString(u)})}nonpositive(u){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Se.toString(u)})}nonnegative(u){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Se.toString(u)})}multipleOf(u,i){return this._addCheck({kind:"multipleOf",value:u,message:Se.toString(i)})}get minValue(){let u=null;for(const i of this._def.checks)i.kind==="min"&&(u===null||i.value>u)&&(u=i.value);return u}get maxValue(){let u=null;for(const i of this._def.checks)i.kind==="max"&&(u===null||i.value<u)&&(u=i.value);return u}}Oa.create=d=>{var u;return new Oa({checks:[],typeName:at.ZodBigInt,coerce:(u=d==null?void 0:d.coerce)!==null&&u!==void 0?u:!1,...ht(d)})};class Nu extends Nt{_parse(u){if(this._def.coerce&&(u.data=!!u.data),this._getType(u)!==je.boolean){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.boolean,received:a.parsedType}),ct}return _i(u.data)}}Nu.create=d=>new Nu({typeName:at.ZodBoolean,coerce:(d==null?void 0:d.coerce)||!1,...ht(d)});class $o extends Nt{_parse(u){if(this._def.coerce&&(u.data=new Date(u.data)),this._getType(u)!==je.date){const p=this._getOrReturnCtx(u);return Me(p,{code:De.invalid_type,expected:je.date,received:p.parsedType}),ct}if(isNaN(u.data.getTime())){const p=this._getOrReturnCtx(u);return Me(p,{code:De.invalid_date}),ct}const a=new vi;let l;for(const p of this._def.checks)p.kind==="min"?u.data.getTime()<p.value&&(l=this._getOrReturnCtx(u,l),Me(l,{code:De.too_small,message:p.message,inclusive:!0,exact:!1,minimum:p.value,type:"date"}),a.dirty()):p.kind==="max"?u.data.getTime()>p.value&&(l=this._getOrReturnCtx(u,l),Me(l,{code:De.too_big,message:p.message,inclusive:!0,exact:!1,maximum:p.value,type:"date"}),a.dirty()):qt.assertNever(p);return{status:a.value,value:new Date(u.data.getTime())}}_addCheck(u){return new $o({...this._def,checks:[...this._def.checks,u]})}min(u,i){return this._addCheck({kind:"min",value:u.getTime(),message:Se.toString(i)})}max(u,i){return this._addCheck({kind:"max",value:u.getTime(),message:Se.toString(i)})}get minDate(){let u=null;for(const i of this._def.checks)i.kind==="min"&&(u===null||i.value>u)&&(u=i.value);return u!=null?new Date(u):null}get maxDate(){let u=null;for(const i of this._def.checks)i.kind==="max"&&(u===null||i.value<u)&&(u=i.value);return u!=null?new Date(u):null}}$o.create=d=>new $o({checks:[],coerce:(d==null?void 0:d.coerce)||!1,typeName:at.ZodDate,...ht(d)});class dh extends Nt{_parse(u){if(this._getType(u)!==je.symbol){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.symbol,received:a.parsedType}),ct}return _i(u.data)}}dh.create=d=>new dh({typeName:at.ZodSymbol,...ht(d)});class Lu extends Nt{_parse(u){if(this._getType(u)!==je.undefined){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.undefined,received:a.parsedType}),ct}return _i(u.data)}}Lu.create=d=>new Lu({typeName:at.ZodUndefined,...ht(d)});class Bu extends Nt{_parse(u){if(this._getType(u)!==je.null){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.null,received:a.parsedType}),ct}return _i(u.data)}}Bu.create=d=>new Bu({typeName:at.ZodNull,...ht(d)});class kl extends Nt{constructor(){super(...arguments),this._any=!0}_parse(u){return _i(u.data)}}kl.create=d=>new kl({typeName:at.ZodAny,...ht(d)});class Po extends Nt{constructor(){super(...arguments),this._unknown=!0}_parse(u){return _i(u.data)}}Po.create=d=>new Po({typeName:at.ZodUnknown,...ht(d)});class Qn extends Nt{_parse(u){const i=this._getOrReturnCtx(u);return Me(i,{code:De.invalid_type,expected:je.never,received:i.parsedType}),ct}}Qn.create=d=>new Qn({typeName:at.ZodNever,...ht(d)});class uh extends Nt{_parse(u){if(this._getType(u)!==je.undefined){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.void,received:a.parsedType}),ct}return _i(u.data)}}uh.create=d=>new uh({typeName:at.ZodVoid,...ht(d)});class qs extends Nt{_parse(u){const{ctx:i,status:a}=this._processInputParams(u),l=this._def;if(i.parsedType!==je.array)return Me(i,{code:De.invalid_type,expected:je.array,received:i.parsedType}),ct;if(l.exactLength!==null){const t=i.data.length>l.exactLength.value,y=i.data.length<l.exactLength.value;(t||y)&&(Me(i,{code:t?De.too_big:De.too_small,minimum:y?l.exactLength.value:void 0,maximum:t?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),a.dirty())}if(l.minLength!==null&&i.data.length<l.minLength.value&&(Me(i,{code:De.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),a.dirty()),l.maxLength!==null&&i.data.length>l.maxLength.value&&(Me(i,{code:De.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),a.dirty()),i.common.async)return Promise.all([...i.data].map((t,y)=>l.type._parseAsync(new vn(i,t,i.path,y)))).then(t=>vi.mergeArray(a,t));const p=[...i.data].map((t,y)=>l.type._parseSync(new vn(i,t,i.path,y)));return vi.mergeArray(a,p)}get element(){return this._def.type}min(u,i){return new qs({...this._def,minLength:{value:u,message:Se.toString(i)}})}max(u,i){return new qs({...this._def,maxLength:{value:u,message:Se.toString(i)}})}length(u,i){return new qs({...this._def,exactLength:{value:u,message:Se.toString(i)}})}nonempty(u){return this.min(1,u)}}qs.create=(d,u)=>new qs({type:d,minLength:null,maxLength:null,exactLength:null,typeName:at.ZodArray,...ht(u)});function Sl(d){if(d instanceof Pr){const u={};for(const i in d.shape){const a=d.shape[i];u[i]=Tn.create(Sl(a))}return new Pr({...d._def,shape:()=>u})}else return d instanceof qs?new qs({...d._def,type:Sl(d.element)}):d instanceof Tn?Tn.create(Sl(d.unwrap())):d instanceof $a?$a.create(Sl(d.unwrap())):d instanceof En?En.create(d.items.map(u=>Sl(u))):d}class Pr extends Nt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const u=this._def.shape(),i=qt.objectKeys(u);return this._cached={shape:u,keys:i}}_parse(u){if(this._getType(u)!==je.object){const b=this._getOrReturnCtx(u);return Me(b,{code:De.invalid_type,expected:je.object,received:b.parsedType}),ct}const{status:a,ctx:l}=this._processInputParams(u),{shape:p,keys:t}=this._getCached(),y=[];if(!(this._def.catchall instanceof Qn&&this._def.unknownKeys==="strip"))for(const b in l.data)t.includes(b)||y.push(b);const v=[];for(const b of t){const w=p[b],A=l.data[b];v.push({key:{status:"valid",value:b},value:w._parse(new vn(l,A,l.path,b)),alwaysSet:b in l.data})}if(this._def.catchall instanceof Qn){const b=this._def.unknownKeys;if(b==="passthrough")for(const w of y)v.push({key:{status:"valid",value:w},value:{status:"valid",value:l.data[w]}});else if(b==="strict")y.length>0&&(Me(l,{code:De.unrecognized_keys,keys:y}),a.dirty());else if(b!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const b=this._def.catchall;for(const w of y){const A=l.data[w];v.push({key:{status:"valid",value:w},value:b._parse(new vn(l,A,l.path,w)),alwaysSet:w in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const b=[];for(const w of v){const A=await w.key,V=await w.value;b.push({key:A,value:V,alwaysSet:w.alwaysSet})}return b}).then(b=>vi.mergeObjectSync(a,b)):vi.mergeObjectSync(a,v)}get shape(){return this._def.shape()}strict(u){return Se.errToObj,new Pr({...this._def,unknownKeys:"strict",...u!==void 0?{errorMap:(i,a)=>{var l,p,t,y;const v=(t=(p=(l=this._def).errorMap)===null||p===void 0?void 0:p.call(l,i,a).message)!==null&&t!==void 0?t:a.defaultError;return i.code==="unrecognized_keys"?{message:(y=Se.errToObj(u).message)!==null&&y!==void 0?y:v}:{message:v}}}:{}})}strip(){return new Pr({...this._def,unknownKeys:"strip"})}passthrough(){return new Pr({...this._def,unknownKeys:"passthrough"})}extend(u){return new Pr({...this._def,shape:()=>({...this._def.shape(),...u})})}merge(u){return new Pr({unknownKeys:u._def.unknownKeys,catchall:u._def.catchall,shape:()=>({...this._def.shape(),...u._def.shape()}),typeName:at.ZodObject})}setKey(u,i){return this.augment({[u]:i})}catchall(u){return new Pr({...this._def,catchall:u})}pick(u){const i={};return qt.objectKeys(u).forEach(a=>{u[a]&&this.shape[a]&&(i[a]=this.shape[a])}),new Pr({...this._def,shape:()=>i})}omit(u){const i={};return qt.objectKeys(this.shape).forEach(a=>{u[a]||(i[a]=this.shape[a])}),new Pr({...this._def,shape:()=>i})}deepPartial(){return Sl(this)}partial(u){const i={};return qt.objectKeys(this.shape).forEach(a=>{const l=this.shape[a];u&&!u[a]?i[a]=l:i[a]=l.optional()}),new Pr({...this._def,shape:()=>i})}required(u){const i={};return qt.objectKeys(this.shape).forEach(a=>{if(u&&!u[a])i[a]=this.shape[a];else{let p=this.shape[a];for(;p instanceof Tn;)p=p._def.innerType;i[a]=p}}),new Pr({...this._def,shape:()=>i})}keyof(){return i2(qt.objectKeys(this.shape))}}Pr.create=(d,u)=>new Pr({shape:()=>d,unknownKeys:"strip",catchall:Qn.create(),typeName:at.ZodObject,...ht(u)}),Pr.strictCreate=(d,u)=>new Pr({shape:()=>d,unknownKeys:"strict",catchall:Qn.create(),typeName:at.ZodObject,...ht(u)}),Pr.lazycreate=(d,u)=>new Pr({shape:d,unknownKeys:"strip",catchall:Qn.create(),typeName:at.ZodObject,...ht(u)});class Mu extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u),a=this._def.options;function l(p){for(const y of p)if(y.result.status==="valid")return y.result;for(const y of p)if(y.result.status==="dirty")return i.common.issues.push(...y.ctx.common.issues),y.result;const t=p.map(y=>new ki(y.ctx.common.issues));return Me(i,{code:De.invalid_union,unionErrors:t}),ct}if(i.common.async)return Promise.all(a.map(async p=>{const t={...i,common:{...i.common,issues:[]},parent:null};return{result:await p._parseAsync({data:i.data,path:i.path,parent:t}),ctx:t}})).then(l);{let p;const t=[];for(const v of a){const b={...i,common:{...i.common,issues:[]},parent:null},w=v._parseSync({data:i.data,path:i.path,parent:b});if(w.status==="valid")return w;w.status==="dirty"&&!p&&(p={result:w,ctx:b}),b.common.issues.length&&t.push(b.common.issues)}if(p)return i.common.issues.push(...p.ctx.common.issues),p.result;const y=t.map(v=>new ki(v));return Me(i,{code:De.invalid_union,unionErrors:y}),ct}}get options(){return this._def.options}}Mu.create=(d,u)=>new Mu({options:d,typeName:at.ZodUnion,...ht(u)});const ea=d=>d instanceof xu?ea(d.schema):d instanceof Zs?ea(d.innerType()):d instanceof Fu?[d.value]:d instanceof Ca?d.options:d instanceof Gu?qt.objectValues(d.enum):d instanceof Ku?ea(d._def.innerType):d instanceof Lu?[void 0]:d instanceof Bu?[null]:d instanceof Tn?[void 0,...ea(d.unwrap())]:d instanceof $a?[null,...ea(d.unwrap())]:d instanceof rE||d instanceof qu?ea(d.unwrap()):d instanceof ku?ea(d._def.innerType):[];class ch extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u);if(i.parsedType!==je.object)return Me(i,{code:De.invalid_type,expected:je.object,received:i.parsedType}),ct;const a=this.discriminator,l=i.data[a],p=this.optionsMap.get(l);return p?i.common.async?p._parseAsync({data:i.data,path:i.path,parent:i}):p._parseSync({data:i.data,path:i.path,parent:i}):(Me(i,{code:De.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),ct)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(u,i,a){const l=new Map;for(const p of i){const t=ea(p.shape[u]);if(!t.length)throw new Error(`A discriminator value for key \`${u}\` could not be extracted from all schema options`);for(const y of t){if(l.has(y))throw new Error(`Discriminator property ${String(u)} has duplicate value ${String(y)}`);l.set(y,p)}}return new ch({typeName:at.ZodDiscriminatedUnion,discriminator:u,options:i,optionsMap:l,...ht(a)})}}function tE(d,u){const i=Xn(d),a=Xn(u);if(d===u)return{valid:!0,data:d};if(i===je.object&&a===je.object){const l=qt.objectKeys(u),p=qt.objectKeys(d).filter(y=>l.indexOf(y)!==-1),t={...d,...u};for(const y of p){const v=tE(d[y],u[y]);if(!v.valid)return{valid:!1};t[y]=v.data}return{valid:!0,data:t}}else if(i===je.array&&a===je.array){if(d.length!==u.length)return{valid:!1};const l=[];for(let p=0;p<d.length;p++){const t=d[p],y=u[p],v=tE(t,y);if(!v.valid)return{valid:!1};l.push(v.data)}return{valid:!0,data:l}}else return i===je.date&&a===je.date&&+d==+u?{valid:!0,data:d}:{valid:!1}}class Uu extends Nt{_parse(u){const{status:i,ctx:a}=this._processInputParams(u),l=(p,t)=>{if(Xv(p)||Xv(t))return ct;const y=tE(p.value,t.value);return y.valid?((Qv(p)||Qv(t))&&i.dirty(),{status:i.value,value:y.data}):(Me(a,{code:De.invalid_intersection_types}),ct)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([p,t])=>l(p,t)):l(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}Uu.create=(d,u,i)=>new Uu({left:d,right:u,typeName:at.ZodIntersection,...ht(i)});class En extends Nt{_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.parsedType!==je.array)return Me(a,{code:De.invalid_type,expected:je.array,received:a.parsedType}),ct;if(a.data.length<this._def.items.length)return Me(a,{code:De.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ct;!this._def.rest&&a.data.length>this._def.items.length&&(Me(a,{code:De.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const p=[...a.data].map((t,y)=>{const v=this._def.items[y]||this._def.rest;return v?v._parse(new vn(a,t,a.path,y)):null}).filter(t=>!!t);return a.common.async?Promise.all(p).then(t=>vi.mergeArray(i,t)):vi.mergeArray(i,p)}get items(){return this._def.items}rest(u){return new En({...this._def,rest:u})}}En.create=(d,u)=>{if(!Array.isArray(d))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new En({items:d,typeName:at.ZodTuple,rest:null,...ht(u)})};class ju extends Nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.parsedType!==je.object)return Me(a,{code:De.invalid_type,expected:je.object,received:a.parsedType}),ct;const l=[],p=this._def.keyType,t=this._def.valueType;for(const y in a.data)l.push({key:p._parse(new vn(a,y,a.path,y)),value:t._parse(new vn(a,a.data[y],a.path,y)),alwaysSet:y in a.data});return a.common.async?vi.mergeObjectAsync(i,l):vi.mergeObjectSync(i,l)}get element(){return this._def.valueType}static create(u,i,a){return i instanceof Nt?new ju({keyType:u,valueType:i,typeName:at.ZodRecord,...ht(a)}):new ju({keyType:Ss.create(),valueType:u,typeName:at.ZodRecord,...ht(i)})}}class ph extends Nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.parsedType!==je.map)return Me(a,{code:De.invalid_type,expected:je.map,received:a.parsedType}),ct;const l=this._def.keyType,p=this._def.valueType,t=[...a.data.entries()].map(([y,v],b)=>({key:l._parse(new vn(a,y,a.path,[b,"key"])),value:p._parse(new vn(a,v,a.path,[b,"value"]))}));if(a.common.async){const y=new Map;return Promise.resolve().then(async()=>{for(const v of t){const b=await v.key,w=await v.value;if(b.status==="aborted"||w.status==="aborted")return ct;(b.status==="dirty"||w.status==="dirty")&&i.dirty(),y.set(b.value,w.value)}return{status:i.value,value:y}})}else{const y=new Map;for(const v of t){const b=v.key,w=v.value;if(b.status==="aborted"||w.status==="aborted")return ct;(b.status==="dirty"||w.status==="dirty")&&i.dirty(),y.set(b.value,w.value)}return{status:i.value,value:y}}}}ph.create=(d,u,i)=>new ph({valueType:u,keyType:d,typeName:at.ZodMap,...ht(i)});class Vo extends Nt{_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.parsedType!==je.set)return Me(a,{code:De.invalid_type,expected:je.set,received:a.parsedType}),ct;const l=this._def;l.minSize!==null&&a.data.size<l.minSize.value&&(Me(a,{code:De.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),i.dirty()),l.maxSize!==null&&a.data.size>l.maxSize.value&&(Me(a,{code:De.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),i.dirty());const p=this._def.valueType;function t(v){const b=new Set;for(const w of v){if(w.status==="aborted")return ct;w.status==="dirty"&&i.dirty(),b.add(w.value)}return{status:i.value,value:b}}const y=[...a.data.values()].map((v,b)=>p._parse(new vn(a,v,a.path,b)));return a.common.async?Promise.all(y).then(v=>t(v)):t(y)}min(u,i){return new Vo({...this._def,minSize:{value:u,message:Se.toString(i)}})}max(u,i){return new Vo({...this._def,maxSize:{value:u,message:Se.toString(i)}})}size(u,i){return this.min(u,i).max(u,i)}nonempty(u){return this.min(1,u)}}Vo.create=(d,u)=>new Vo({valueType:d,minSize:null,maxSize:null,typeName:at.ZodSet,...ht(u)});class ql extends Nt{constructor(){super(...arguments),this.validate=this.implement}_parse(u){const{ctx:i}=this._processInputParams(u);if(i.parsedType!==je.function)return Me(i,{code:De.invalid_type,expected:je.function,received:i.parsedType}),ct;function a(y,v){return oh({data:y,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,ah(),Gl].filter(b=>!!b),issueData:{code:De.invalid_arguments,argumentsError:v}})}function l(y,v){return oh({data:y,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,ah(),Gl].filter(b=>!!b),issueData:{code:De.invalid_return_type,returnTypeError:v}})}const p={errorMap:i.common.contextualErrorMap},t=i.data;if(this._def.returns instanceof Zl){const y=this;return _i(async function(...v){const b=new ki([]),w=await y._def.args.parseAsync(v,p).catch(L=>{throw b.addIssue(a(v,L)),b}),A=await Reflect.apply(t,this,w);return await y._def.returns._def.type.parseAsync(A,p).catch(L=>{throw b.addIssue(l(A,L)),b})})}else{const y=this;return _i(function(...v){const b=y._def.args.safeParse(v,p);if(!b.success)throw new ki([a(v,b.error)]);const w=Reflect.apply(t,this,b.data),A=y._def.returns.safeParse(w,p);if(!A.success)throw new ki([l(w,A.error)]);return A.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...u){return new ql({...this._def,args:En.create(u).rest(Po.create())})}returns(u){return new ql({...this._def,returns:u})}implement(u){return this.parse(u)}strictImplement(u){return this.parse(u)}static create(u,i,a){return new ql({args:u||En.create([]).rest(Po.create()),returns:i||Po.create(),typeName:at.ZodFunction,...ht(a)})}}class xu extends Nt{get schema(){return this._def.getter()}_parse(u){const{ctx:i}=this._processInputParams(u);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}xu.create=(d,u)=>new xu({getter:d,typeName:at.ZodLazy,...ht(u)});class Fu extends Nt{_parse(u){if(u.data!==this._def.value){const i=this._getOrReturnCtx(u);return Me(i,{received:i.data,code:De.invalid_literal,expected:this._def.value}),ct}return{status:"valid",value:u.data}}get value(){return this._def.value}}Fu.create=(d,u)=>new Fu({value:d,typeName:at.ZodLiteral,...ht(u)});function i2(d,u){return new Ca({values:d,typeName:at.ZodEnum,...ht(u)})}class Ca extends Nt{constructor(){super(...arguments),Pu.set(this,void 0)}_parse(u){if(typeof u.data!="string"){const i=this._getOrReturnCtx(u),a=this._def.values;return Me(i,{expected:qt.joinValues(a),received:i.parsedType,code:De.invalid_type}),ct}if(lh(this,Pu,"f")||XN(this,Pu,new Set(this._def.values),"f"),!lh(this,Pu,"f").has(u.data)){const i=this._getOrReturnCtx(u),a=this._def.values;return Me(i,{received:i.data,code:De.invalid_enum_value,options:a}),ct}return _i(u.data)}get options(){return this._def.values}get enum(){const u={};for(const i of this._def.values)u[i]=i;return u}get Values(){const u={};for(const i of this._def.values)u[i]=i;return u}get Enum(){const u={};for(const i of this._def.values)u[i]=i;return u}extract(u,i=this._def){return Ca.create(u,{...this._def,...i})}exclude(u,i=this._def){return Ca.create(this.options.filter(a=>!u.includes(a)),{...this._def,...i})}}Pu=new WeakMap,Ca.create=i2;class Gu extends Nt{constructor(){super(...arguments),Vu.set(this,void 0)}_parse(u){const i=qt.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(u);if(a.parsedType!==je.string&&a.parsedType!==je.number){const l=qt.objectValues(i);return Me(a,{expected:qt.joinValues(l),received:a.parsedType,code:De.invalid_type}),ct}if(lh(this,Vu,"f")||XN(this,Vu,new Set(qt.getValidEnumValues(this._def.values)),"f"),!lh(this,Vu,"f").has(u.data)){const l=qt.objectValues(i);return Me(a,{received:a.data,code:De.invalid_enum_value,options:l}),ct}return _i(u.data)}get enum(){return this._def.values}}Vu=new WeakMap,Gu.create=(d,u)=>new Gu({values:d,typeName:at.ZodNativeEnum,...ht(u)});class Zl extends Nt{unwrap(){return this._def.type}_parse(u){const{ctx:i}=this._processInputParams(u);if(i.parsedType!==je.promise&&i.common.async===!1)return Me(i,{code:De.invalid_type,expected:je.promise,received:i.parsedType}),ct;const a=i.parsedType===je.promise?i.data:Promise.resolve(i.data);return _i(a.then(l=>this._def.type.parseAsync(l,{path:i.path,errorMap:i.common.contextualErrorMap})))}}Zl.create=(d,u)=>new Zl({type:d,typeName:at.ZodPromise,...ht(u)});class Zs extends Nt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===at.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(u){const{status:i,ctx:a}=this._processInputParams(u),l=this._def.effect||null,p={addIssue:t=>{Me(a,t),t.fatal?i.abort():i.dirty()},get path(){return a.path}};if(p.addIssue=p.addIssue.bind(p),l.type==="preprocess"){const t=l.transform(a.data,p);if(a.common.async)return Promise.resolve(t).then(async y=>{if(i.value==="aborted")return ct;const v=await this._def.schema._parseAsync({data:y,path:a.path,parent:a});return v.status==="aborted"?ct:v.status==="dirty"||i.value==="dirty"?Kl(v.value):v});{if(i.value==="aborted")return ct;const y=this._def.schema._parseSync({data:t,path:a.path,parent:a});return y.status==="aborted"?ct:y.status==="dirty"||i.value==="dirty"?Kl(y.value):y}}if(l.type==="refinement"){const t=y=>{const v=l.refinement(y,p);if(a.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return y};if(a.common.async===!1){const y=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return y.status==="aborted"?ct:(y.status==="dirty"&&i.dirty(),t(y.value),{status:i.value,value:y.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(y=>y.status==="aborted"?ct:(y.status==="dirty"&&i.dirty(),t(y.value).then(()=>({status:i.value,value:y.value}))))}if(l.type==="transform")if(a.common.async===!1){const t=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Co(t))return t;const y=l.transform(t.value,p);if(y instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:y}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(t=>Co(t)?Promise.resolve(l.transform(t.value,p)).then(y=>({status:i.value,value:y})):t);qt.assertNever(l)}}Zs.create=(d,u,i)=>new Zs({schema:d,typeName:at.ZodEffects,effect:u,...ht(i)}),Zs.createWithPreprocess=(d,u,i)=>new Zs({schema:u,effect:{type:"preprocess",transform:d},typeName:at.ZodEffects,...ht(i)});class Tn extends Nt{_parse(u){return this._getType(u)===je.undefined?_i(void 0):this._def.innerType._parse(u)}unwrap(){return this._def.innerType}}Tn.create=(d,u)=>new Tn({innerType:d,typeName:at.ZodOptional,...ht(u)});class $a extends Nt{_parse(u){return this._getType(u)===je.null?_i(null):this._def.innerType._parse(u)}unwrap(){return this._def.innerType}}$a.create=(d,u)=>new $a({innerType:d,typeName:at.ZodNullable,...ht(u)});class Ku extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u);let a=i.data;return i.parsedType===je.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}Ku.create=(d,u)=>new Ku({innerType:d,typeName:at.ZodDefault,defaultValue:typeof u.default=="function"?u.default:()=>u.default,...ht(u)});class ku extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u),a={...i,common:{...i.common,issues:[]}},l=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return $u(l)?l.then(p=>({status:"valid",value:p.status==="valid"?p.value:this._def.catchValue({get error(){return new ki(a.common.issues)},input:a.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new ki(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}ku.create=(d,u)=>new ku({innerType:d,typeName:at.ZodCatch,catchValue:typeof u.catch=="function"?u.catch:()=>u.catch,...ht(u)});class fh extends Nt{_parse(u){if(this._getType(u)!==je.nan){const a=this._getOrReturnCtx(u);return Me(a,{code:De.invalid_type,expected:je.nan,received:a.parsedType}),ct}return{status:"valid",value:u.data}}}fh.create=d=>new fh({typeName:at.ZodNaN,...ht(d)});const zk=Symbol("zod_brand");class rE extends Nt{_parse(u){const{ctx:i}=this._processInputParams(u),a=i.data;return this._def.type._parse({data:a,path:i.path,parent:i})}unwrap(){return this._def.type}}class Su extends Nt{_parse(u){const{status:i,ctx:a}=this._processInputParams(u);if(a.common.async)return(async()=>{const p=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return p.status==="aborted"?ct:p.status==="dirty"?(i.dirty(),Kl(p.value)):this._def.out._parseAsync({data:p.value,path:a.path,parent:a})})();{const l=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return l.status==="aborted"?ct:l.status==="dirty"?(i.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:a.path,parent:a})}}static create(u,i){return new Su({in:u,out:i,typeName:at.ZodPipeline})}}class qu extends Nt{_parse(u){const i=this._def.innerType._parse(u),a=l=>(Co(l)&&(l.value=Object.freeze(l.value)),l);return $u(i)?i.then(l=>a(l)):a(i)}unwrap(){return this._def.innerType}}qu.create=(d,u)=>new qu({innerType:d,typeName:at.ZodReadonly,...ht(u)});function s2(d,u={},i){return d?kl.create().superRefine((a,l)=>{var p,t;if(!d(a)){const y=typeof u=="function"?u(a):typeof u=="string"?{message:u}:u,v=(t=(p=y.fatal)!==null&&p!==void 0?p:i)!==null&&t!==void 0?t:!0,b=typeof y=="string"?{message:y}:y;l.addIssue({code:"custom",...b,fatal:v})}}):kl.create()}const Xk={object:Pr.lazycreate};var at;(function(d){d.ZodString="ZodString",d.ZodNumber="ZodNumber",d.ZodNaN="ZodNaN",d.ZodBigInt="ZodBigInt",d.ZodBoolean="ZodBoolean",d.ZodDate="ZodDate",d.ZodSymbol="ZodSymbol",d.ZodUndefined="ZodUndefined",d.ZodNull="ZodNull",d.ZodAny="ZodAny",d.ZodUnknown="ZodUnknown",d.ZodNever="ZodNever",d.ZodVoid="ZodVoid",d.ZodArray="ZodArray",d.ZodObject="ZodObject",d.ZodUnion="ZodUnion",d.ZodDiscriminatedUnion="ZodDiscriminatedUnion",d.ZodIntersection="ZodIntersection",d.ZodTuple="ZodTuple",d.ZodRecord="ZodRecord",d.ZodMap="ZodMap",d.ZodSet="ZodSet",d.ZodFunction="ZodFunction",d.ZodLazy="ZodLazy",d.ZodLiteral="ZodLiteral",d.ZodEnum="ZodEnum",d.ZodEffects="ZodEffects",d.ZodNativeEnum="ZodNativeEnum",d.ZodOptional="ZodOptional",d.ZodNullable="ZodNullable",d.ZodDefault="ZodDefault",d.ZodCatch="ZodCatch",d.ZodPromise="ZodPromise",d.ZodBranded="ZodBranded",d.ZodPipeline="ZodPipeline",d.ZodReadonly="ZodReadonly"})(at||(at={}));const Qk=(d,u={message:`Input not instance of ${d.name}`})=>s2(i=>i instanceof d,u),hh=Ss.create,iE=Da.create,eS=fh.create,tS=Oa.create,sE=Nu.create,n2=$o.create,rS=dh.create,iS=Lu.create,a2=Bu.create,sS=kl.create,yh=Po.create,nS=Qn.create,aS=uh.create,oS=qs.create,o2=Pr.create,lS=Pr.strictCreate,dS=Mu.create,uS=ch.create,cS=Uu.create,pS=En.create,l2=ju.create,fS=ph.create,hS=Vo.create,yS=ql.create,mS=xu.create,vS=Fu.create,d2=Ca.create,ES=Gu.create,TS=Zl.create,u2=Zs.create,bS=Tn.create,AS=$a.create,IS=Zs.createWithPreprocess,wS=Su.create;var B=Object.freeze({__proto__:null,defaultErrorMap:Gl,setErrorMap:Ok,getErrorMap:ah,makeIssue:oh,EMPTY_PATH:Ck,addIssueToContext:Me,ParseStatus:vi,INVALID:ct,DIRTY:Kl,OK:_i,isAborted:Xv,isDirty:Qv,isValid:Co,isAsync:$u,get util(){return qt},get objectUtil(){return zv},ZodParsedType:je,getParsedType:Xn,ZodType:Nt,datetimeRegex:r2,ZodString:Ss,ZodNumber:Da,ZodBigInt:Oa,ZodBoolean:Nu,ZodDate:$o,ZodSymbol:dh,ZodUndefined:Lu,ZodNull:Bu,ZodAny:kl,ZodUnknown:Po,ZodNever:Qn,ZodVoid:uh,ZodArray:qs,ZodObject:Pr,ZodUnion:Mu,ZodDiscriminatedUnion:ch,ZodIntersection:Uu,ZodTuple:En,ZodRecord:ju,ZodMap:ph,ZodSet:Vo,ZodFunction:ql,ZodLazy:xu,ZodLiteral:Fu,ZodEnum:Ca,ZodNativeEnum:Gu,ZodPromise:Zl,ZodEffects:Zs,ZodTransformer:Zs,ZodOptional:Tn,ZodNullable:$a,ZodDefault:Ku,ZodCatch:ku,ZodNaN:fh,BRAND:zk,ZodBranded:rE,ZodPipeline:Su,ZodReadonly:qu,custom:s2,Schema:Nt,ZodSchema:Nt,late:Xk,get ZodFirstPartyTypeKind(){return at},coerce:{string:d=>Ss.create({...d,coerce:!0}),number:d=>Da.create({...d,coerce:!0}),boolean:d=>Nu.create({...d,coerce:!0}),bigint:d=>Oa.create({...d,coerce:!0}),date:d=>$o.create({...d,coerce:!0})},any:sS,array:oS,bigint:tS,boolean:sE,date:n2,discriminatedUnion:uS,effect:u2,enum:d2,function:yS,instanceof:Qk,intersection:cS,lazy:mS,literal:vS,map:fS,nan:eS,nativeEnum:ES,never:nS,null:a2,nullable:AS,number:iE,object:o2,oboolean:()=>sE().optional(),onumber:()=>iE().optional(),optional:bS,ostring:()=>hh().optional(),pipeline:wS,preprocess:IS,promise:TS,record:l2,set:hS,strictObject:lS,string:hh,symbol:rS,transformer:u2,tuple:pS,undefined:iS,union:dS,unknown:yh,void:aS,NEVER:ct,ZodIssueCode:De,quotelessJson:Dk,ZodError:ki});function c2(d){var l,p,t;if(!(d!=null&&d.dataType))return yh();const u=!d.required,i=d.dataType.isList||!1;let a=yh();if(((l=d.dataType.entity)==null?void 0:l.type)===f.PrimitiveEntity)switch(d.dataType.entity.name){case X.String:a=hh();break;case X.KeyValue:a=l2(yh());break;case X.Number:a=iE();break;case X.Boolean:a=sE();break;case X.Date:a=n2();break;case X.Enum:{const y=d.dataType.options||[];if(y.length===0)throw new Error(`Enum property ${d.name} has no options`);a=d2(y);break}case X.Null:a=a2();break;case X.UUID:a=hh().uuid();break}else if(((p=d.dataType.entity)==null?void 0:p.type)===f.DefinitionEntity)a=p2(d.dataType.entity);else throw new Error(`Unsupported data type validation: ${(t=d.dataType.entity)==null?void 0:t.type}`);return u&&(a=a.nullable()),i&&(a=a.array()),a}function p2(d){const u=o2({});for(const i of d.properties){const a=c2(i);u.shape[i.name]=a}return u}function f2(d){const u=d.rangeStart;return new Date(u.getTime()+Math.random()*(Date.now()-u.getTime()))}function h2(d){const u=d.rangeEnd;return new Date(Math.random()*u.getTime())}function y2(d){const u=d.rangeStart,i=d.rangeEnd;return new Date(u.getTime()+Math.random()*(i.getTime()-u.getTime()))}function m2(d){return d.rangeStart&&d.rangeEnd?y2(d):d.rangeStart?f2(d):d.rangeEnd?h2(d):new Date}const v2={isBackup:!1,uuid:()=>{var u;if(typeof((u=globalThis==null?void 0:globalThis.crypto)==null?void 0:u.randomUUID)=="function")return globalThis.crypto.randomUUID();try{const{randomUUID:i}=require("crypto");if(typeof i=="function")return i()}catch{}const d=(globalThis==null?void 0:globalThis.crypto)||typeof require=="function"&&require("crypto").webcrypto;if(d!=null&&d.getRandomValues){const i=new Uint8Array(16);return d.getRandomValues(i),i[6]=i[6]&15|64,i[8]=i[8]&63|128,Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")}return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)},fromUUID:d=>d};function E2(){return v2.uuid()}function T2(d){return d.rangeStart+Math.random()}function b2(d){const u=d.rangeEnd;return Math.random()*u}function A2(d){const u=d.rangeStart,i=d.rangeEnd;return Math.random()*(i-u)+u}function I2(d){return d.rangeStart&&d.rangeEnd?A2(d):d.rangeStart?T2(d):d.rangeEnd?b2(d):Math.random()}function w2(d){const u=d.rangeStart;return Math.random().toString(36).substring(u)}function R2(d){const u=d.rangeEnd;return Math.random().toString(36).substring(0,u)}function g2(d){const u=d.rangeStart,i=d.rangeEnd;return Math.random().toString(36).substring(u,i)}function _2(d){return d.rangeStart&&d.rangeEnd?g2(d):d.rangeStart?w2(d):d.rangeEnd?R2(d):Math.random().toString(36)}function D2(d){return Math.random()>=.5}function mh(d){if(!d||!d.autogeneration)return null;switch(d.autogeneration.type){case Dr.CurrentDateAndTime:if(d.name===X.Date)return new Date;case Dr.Random:{if(d.name===X.Date)return m2(d.autogeneration);if(d.name===X.Number)return I2(d.autogeneration);if(d.name===X.String)return _2(d.autogeneration);if(d.name===X.Boolean)return D2(d.autogeneration)}case Dr.Unique:if(d.name===X.UUID)return E2();default:throw new Error(`Generating a ${d.autogeneration.type} value for a ${d.name} is not supported`)}}const ot="e7eb5382-3d99-44fd-972a-b8b1e819f6be",O2="global-user-variable-id",nE="last-executed-timestamp-variable-id",RS={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:f.ValueDescriptor},gS={id:"alternative-relational-database-entity-identifier-property-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:f.Property},_S={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:gS},vh={id:"alternative-relational-database-entity-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:f.DefinitionEntity},DS={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",codeName:null,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Xf,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:null,parent:RS,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:_S,description:"The name of the main database inside of the server instance where the data will be stored.",parent:vh};f.GenericReference,f.ValueDescriptor;const OS={id:"alternative-relational-database-entity-username-property-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:f.Property},CS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:OS},$S={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",codeName:null,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Qf,static:!0,index:1,defaultValue:null,dataType:CS,description:"The username that will be used to connect to the database.",parent:vh};f.GenericReference,f.ValueDescriptor;const PS={id:"alternative-relational-database-entity-password-property-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:f.Property},VS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:PS},NS={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",codeName:null,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:eh,static:!0,index:2,defaultValue:null,dataType:VS,description:"The password that will be used to connect to the database.",parent:vh},LS={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:f.ValueDescriptor},BS={id:"alternative-relational-database-entity-min-size-property-ref-id",type:f.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:f.Property},MS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:BS},US={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",codeName:null,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:th,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:6,parent:LS,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:MS,description:"The minimum size of the database in GB.",parent:vh},jS={id:"alternative-relational-database-entity-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},aE={id:"alternative-relational-database-entity-id",type:f.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[DS,$S,NS,US],methods:[],abstractMethods:[],extends:[],implements:[Xr],x:0,y:0,parent:jS},xS={id:"animal-prototype-database-property-ref-id",type:f.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:f.Property},FS={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:f.Property},GS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!1,parent:xS},KS={id:"animal-prototype-database-property-parent-ref-id",type:f.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:f.DefinitionEntity},kS={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:aE,autogeneration:null,parent:FS},dataType:GS,description:"The database that the entity belongs to.",parent:KS},SS={type:f.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:f.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},qS={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:SS},ZS={type:f.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},JS={type:f.GenericReference,id:"animal-name-default-value-parent-ref-id",version:"1",entityType:f.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},WS={type:f.LiteralValue,standaloneParent:null,id:"animal-name-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Animal",name:X.String,valueAsTypeSingle:null,valueAsTypeList:null,autogeneration:null,parent:JS},HS={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Name",description:"The name of the animal",defaultValue:WS,implements:jl,static:!1,private:!1,index:0,dataType:qS,abstract:!1,parent:ZS},YS={type:f.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:f.Project,entityId:ot},zS={type:f.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[kS,HS],methods:[],extends:[],implements:[ni],x:0,y:0,parent:YS},Zu="base-table-entity",C2="base-table-entity-identifier-property-id";f.GenericReference,f.Property,f.GenericReference,f.Property;const XS={id:"base-table-entity-identifier-property-data-type-ref-id",type:f.GenericReference,entityId:C2,version:"1",entityType:f.Property},QS={id:"base-table-entity-identifier-property-ref-id",type:f.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:f.Property},eq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parent:QS},tq={id:"base-table-entity-identifier-property-parent-ref-id",type:f.GenericReference,entityId:Zu,version:"1",entityType:f.DefinitionEntity};f.Property,f.LiteralValue,X.UUID,Dr.Unique,f.GenericReference,f.Property;const rq={id:"base-table-entity-deleted-at-property-ref-id",type:f.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:f.Property},iq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:hn,asType:!1,parent:rq},sq={id:"base-table-entity-deleted-at-property-parent-ref-id",type:f.GenericReference,entityId:Zu,version:"1",entityType:f.DefinitionEntity},nq={interactive:!0,extends:null,constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",codeName:null,name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:iq,description:"The date and time when the entity was deleted.",parent:sq};f.GenericReference,f.Property;const aq={id:"base-table-entity-created-at-property-ref-id",type:f.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:f.Property},oq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:hn,asType:!1,parent:aq},lq={id:"base-table-entity-created-at-property-parent-ref-id",type:f.GenericReference,entityId:Zu,version:"1",entityType:f.DefinitionEntity},dq={interactive:!0,extends:null,constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",codeName:null,name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:oq,description:"The date and time when the entity was created.",parent:lq};f.GenericReference,f.Property;const uq={id:"base-table-entity-updated-at-property-ref-id",type:f.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:f.Property},cq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:hn,asType:!1,parent:uq},pq={id:"base-table-entity-updated-at-property-parent-ref-id",type:f.GenericReference,entityId:Zu,version:"1",entityType:f.DefinitionEntity},fq={interactive:!0,extends:null,constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",codeName:null,name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:cq,description:"The date and time when the entity was last updated.",parent:pq},hq={id:"base-table-entity-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},ls={id:Zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",codeName:null,name:"Base database table format",type:f.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[nq,dq,fq],methods:[],extends:[],x:0,y:0,parent:hq},yq={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:f.Property},mq={id:"default-relational-database-entity-identifier-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:f.Property},vq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:mq},Jl={id:"default-relational-database-entity-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:f.DefinitionEntity},Eq={interactive:!1,extends:null,constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",codeName:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Xf,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"main",parent:yq,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:vq,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Jl};f.GenericReference,f.Property;const Tq={id:"default-relational-database-entity-username-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:f.Property},bq={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:f.Property},Aq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:Tq},Iq={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",codeName:null,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Qf,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"root",parent:bq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:Aq,description:"The username that will be used to connect to the database.",parent:Jl};f.GenericReference,f.Property;const wq={id:"default-relational-database-entity-password-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:f.Property},Rq={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:f.Property},gq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:wq},_q={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",codeName:null,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:eh,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"password",parent:Rq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:gq,description:"The password that will be used to connect to the database.",parent:Jl},Dq={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:f.Property},Oq={id:"default-relational-database-entity-min-size-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:f.Property},Cq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:Oq},$q={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",codeName:null,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:th,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:6,parent:Dq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:Cq,description:"The minimum size of the database in GB.",parent:Jl},Pq={id:"default-relational-database-entity-default-property-data-type-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:f.Property},Vq={id:"default-relational-database-entity-default-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:f.Property},Nq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:Vq},Lq={interactive:!1,extends:null,constant:!0,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,codeName:null,name:"Default",description:"Whether this database is automatically picked by other entities as the default database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Kv,static:!0,index:4,dataType:Nq,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,value:!0,parent:Pq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:Jl},Bq={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:f.Property},Mq={id:"default-relational-database-entity-autoscaling-property-ref-id",type:f.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:f.Property},Uq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:et,asType:!1,parent:Mq},jq={interactive:!1,extends:null,constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,codeName:null,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:kv,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Boolean,value:!0,parent:Bq,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:Uq,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:Jl},xq={id:"default-relational-database-entity-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},oE={id:"default-relational-database-entity-id",type:f.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[Lq,jq,Eq,Iq,_q,$q],methods:[],abstractMethods:[],extends:[],implements:[Xr],x:0,y:0,parent:xq},Fq={id:"user-prototype-database-property-data-type-ref-id",type:f.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:f.Property},Gq={id:"user-prototype-database-property-ref-id",type:f.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:f.Property},Kq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"user-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!1,parent:Gq},kq={id:"user-prototype-database-property-parent-ref-id",type:f.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:f.DefinitionEntity},Sq={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:oE,autogeneration:null,parent:Fq},dataType:Kq,description:"The database that the entity belongs to.",parent:kq},qq={type:f.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Zq={id:"user-prototype-primary-key-property-data-type-ref-id",type:f.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:f.Property},Jq={id:"user-prototype-primary-key-property-ref-id",type:f.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:f.Property},Wq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parent:Jq},Hq={id:"user-prototype-primary-key-property-parent-ref-id",type:f.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:f.DefinitionEntity},Yq={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",codeName:null,name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:jl,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.UUID,value:null,parent:Zq,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:Wq,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:Hq},lE={type:f.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"User",description:"A user of the application",implements:[ni,ls],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[Sq,Yq],methods:[],x:0,y:0,parent:qq},zq={type:f.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:"person-date-of-birth-property-id"},Xq={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:hn,isList:!1,asType:!1,parent:zq},Qq={type:f.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},eZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:Xq,abstract:!1,parent:Qq},tZ={type:f.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:f.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},rZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:tZ},iZ={type:f.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:f.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},sZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:rZ,abstract:!1,parent:iZ},nZ={type:f.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:f.Project,entityId:ot},Di={type:f.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Person",description:"A entity to store more information about a person than the user entity does, to split the responsibilities and keep it the logic clean.",properties:[sZ,eZ],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[lE],x:0,y:0,parent:nZ},aZ={type:f.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:f.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},oZ={type:f.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:f.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},lZ={type:f.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:f.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},dZ={type:f.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:f.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},uZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:dZ},dE={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",codeName:null,description:null,defaultValue:null,dataType:uZ,implements:null,readsValue:lZ,required:!0,index:0,parent:oZ},cZ={type:f.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:f.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},pZ={type:f.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:f.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},fZ={type:f.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[dE],calledByError:[],calledByEntry:[cZ],calledBySuccess:[],throws:null,x:0,y:0,parent:pZ},hZ={type:f.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:f.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},yZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:hZ},$2={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",codeName:null,description:null,defaultValue:null,dataType:yZ,implements:null,required:!0,writesValues:[dE],index:0,parent:aZ},mZ={type:f.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:f.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},P2={extends:null,type:f.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of bank account",codeName:null,description:null,implements:null,inputs:[$2],calls:[fZ],index:0,collapsed:!1,private:!1,x:0,y:0,parent:mZ},vZ={type:f.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:f.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},EZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:vZ},TZ={type:f.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:f.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},bZ={type:f.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},AZ={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",codeName:null,description:null,defaultValue:null,dataType:EZ,readsValue:TZ,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:bZ},IZ={type:f.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:f.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},wZ={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dE,defaultValue:null,writesValues:[AZ],index:0,parent:IZ},RZ={type:f.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},gZ={type:f.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},_Z={type:f.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:f.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},DZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:_Z},OZ={type:f.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:f.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},CZ={type:f.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},$Z={type:f.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:f.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},PZ={type:f.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:f.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},V2={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:$2,name:null,codeName:null,description:null,readsValue:PZ,defaultValue:null,index:0,parent:$Z},VZ={constant:!0,required:!0,type:f.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Changed Account Owner",codeName:null,description:null,defaultValue:null,dataType:DZ,readsValue:OZ,writesValues:[V2],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:CZ},NZ={type:f.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:P2,inputs:[V2],outputs:[wZ],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[RZ],calledBySuccess:[],parent:gZ,error:null,x:0,y:0},LZ={type:f.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:f.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},BZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:LZ},MZ={type:f.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:f.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},UZ={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,codeName:null,name:"New Company Owner",defaultValue:null,dataType:BZ,implements:null,required:!0,index:0,writesValues:[VZ],parent:MZ},jZ={type:f.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:f.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},xZ={extends:null,type:f.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,codeName:null,name:"Change Account Owner",inputs:[UZ],collapsed:!0,calls:[NZ],private:!1,index:0,implements:null,x:0,y:0,parent:jZ},FZ={type:f.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:f.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},GZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:FZ},KZ={type:f.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:f.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},kZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Account number",description:null,private:!0,defaultValue:null,implements:jl,static:!1,index:0,dataType:GZ,abstract:!1,parent:KZ},SZ={type:f.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:f.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},qZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:SZ},ZZ={type:f.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:f.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},JZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,codeName:null,name:"Account Owner",index:1,defaultValue:null,dataType:qZ,implements:null,static:!1,private:!0,abstract:!1,parent:ZZ},WZ={type:f.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:f.Project,entityId:ot},Wl={type:f.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[kZ,JZ],methods:[P2,xZ],extends:[],implements:[ni,ls],x:0,y:0,parent:WZ},Ju="bitcoin-api-response-id",N2="time-property-id",L2="disclaimer-property-id",B2="chart-name-property-id",M2="bpi-property-id",Eh="bpi-entity-id",U2="usd-property-id",j2="gbp-property-id",x2="eur-property-id",Hl="currency-entity-id",F2="currency-code-property-id",G2="currency-symbol-property-id",K2="currency-rate-property-id",k2="currency-description-property-id",S2="currency-rate-number-property-id",HZ={type:f.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:F2},YZ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"code-property-data-type-id",type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wn,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:HZ},zZ={type:f.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},XZ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:F2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"code",description:null,defaultValue:null,dataType:YZ,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:zZ},QZ={type:f.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:G2},eJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"symbol-property-data-type-id",type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wn,isList:!1,asType:!1,options:["&#36;","&pound;","&euro;"],parent:QZ},tJ={type:f.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},rJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:G2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"symbol",description:null,index:0,defaultValue:null,dataType:eJ,implements:null,static:!1,private:!1,abstract:!1,parent:tJ},iJ={type:f.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:K2},sJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"rate-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:iJ},nJ={type:f.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},aJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:K2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"rate",description:null,index:0,defaultValue:null,dataType:sJ,implements:null,static:!1,private:!1,abstract:!1,parent:nJ},oJ={type:f.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:k2},lJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"description-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:oJ},dJ={type:f.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},uJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:k2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"description",description:null,defaultValue:null,dataType:lJ,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:dJ},cJ={type:f.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:S2},pJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"rate-number-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:cJ},fJ={type:f.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Hl},hJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:S2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"rate_float",description:null,defaultValue:null,dataType:pJ,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:fJ},yJ={type:f.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Th={type:f.DefinitionEntity,id:Hl,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[XZ,rJ,aJ,uJ,hJ],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:yJ},mJ={type:f.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:U2},vJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"usd-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Th,isList:!1,asType:!1,parent:mJ},EJ={type:f.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Eh},TJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:U2,type:f.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"USD",description:null,index:0,dataType:vJ,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:EJ},bJ={type:f.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:j2},AJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"gbp-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Th,isList:!1,asType:!1,parent:bJ},IJ={type:f.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Eh},wJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:j2,type:f.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"GBP",description:null,index:0,dataType:AJ,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:IJ},RJ={type:f.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:x2},gJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"eur-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Th,isList:!1,asType:!1,parent:RJ},_J={type:f.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Eh},DJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:x2,type:f.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:gJ,private:!1,abstract:!1,parent:_J},OJ={type:f.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},q2={type:f.DefinitionEntity,id:Eh,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"BPI",description:"The Bitcoin Price Index",properties:[TJ,wJ,DJ],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:OJ},CJ={type:f.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:N2},$J={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"time-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Pl,isList:!1,asType:!1,parent:CJ},PJ={type:f.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Ju},VJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:N2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"time",description:null,index:0,defaultValue:null,dataType:$J,implements:null,static:!1,private:!1,abstract:!1,parent:PJ},NJ={type:f.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:L2},LJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"disclaimer-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:NJ},BJ={type:f.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Ju},MJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:L2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:LJ,implements:null,static:!1,private:!1,abstract:!1,parent:BJ},UJ={type:f.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:B2},jJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"chart-name-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:UJ},xJ={type:f.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Ju},FJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:B2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"chartName",description:null,index:0,defaultValue:null,dataType:jJ,implements:null,static:!1,private:!1,abstract:!1,parent:xJ},GJ={type:f.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:M2},KJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"bpi-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:q2,isList:!1,asType:!1,parent:GJ},kJ={type:f.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:Ju},SJ={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:M2,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:KJ,static:!1,private:!1,abstract:!1,parent:kJ},qJ={type:f.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Z2={type:f.DefinitionEntity,id:Ju,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[VJ,MJ,FJ,SJ],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:qJ},ZJ={type:f.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:f.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},JJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:ZJ},WJ={type:f.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:f.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},HJ={type:f.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:f.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},YJ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:HJ},zJ={type:f.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:f.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},J2={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:YJ,readsValue:zJ,required:!0,index:0,parent:WJ},XJ={type:f.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:f.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},QJ={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:JJ,writesValues:[J2],required:!0,index:0,parent:XJ},eW={type:f.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},tW={type:f.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:f.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},rW={type:f.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:f.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},iW={type:f.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[J2],calledByError:[],calledByEntry:[tW],calledBySuccess:[],throws:null,x:0,y:0,parent:rW},sW={extends:null,type:f.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[QJ],calls:[iW],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:eW},nW={type:f.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},aW={type:f.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},oW={type:f.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:f.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},lW={type:f.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:f.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},dW={type:f.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:f.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},uW={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jn,asType:!1,isList:!1,parent:dW},uE={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:uW,implements:null,readsValue:lW,required:!0,index:0,parent:oW},cW={type:f.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},W2={type:f.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[uE],calledByError:[],calledByEntry:[],calledBySuccess:[nW,cW],throws:null,x:0,y:0,parent:aW},pW={type:f.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},fW={type:f.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:f.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},H2={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:cv,codeName:null,name:null,description:null,readsValue:fW,defaultValue:null,parent:pW,index:2},hW={type:f.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:f.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},yW={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jn,isList:!1,asType:!1,parent:hW},mW={type:f.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},vW={type:f.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:f.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},EW={type:f.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:f.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},Y2={constant:!0,required:!0,type:f.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:yW,readsValue:vW,writesValues:[uE],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[EW],successCalls:[W2],errorCalls:[],internalCalls:[],x:0,y:0,parent:mW},TW={type:f.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:f.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},bW={type:f.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},AW={type:f.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Uf,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:X.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:TW,autogeneration:null},index:1,parent:bW},IW={type:f.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},wW={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Kf,index:2,writesValues:[Y2],parent:IW},RW={type:f.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},gW={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Mf,codeName:null,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:RW},_W={type:f.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},DW={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:null,description:null,declaration:jf,index:3,readsValue:null,defaultValue:null,parent:_W},OW={type:f.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},CW={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xf,codeName:null,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:OW},$W={type:f.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},PW={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Gf,index:1,writesValues:[],parent:$W},VW={type:f.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NW={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ff,index:0,writesValues:[],parent:VW},LW={type:f.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},BW={type:f.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},MW={type:f.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},UW={type:f.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},jW={type:f.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:f.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},xW={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:zr,asType:!1,isList:!1,parent:jW},FW={type:f.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:f.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},z2={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",codeName:null,description:"The error that occurred during the HTTP request to the government company registry",dataType:xW,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:FW},GW={type:f.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[UW],calledByEntry:[],calledBySuccess:[],throws:z2,x:0,y:0,parent:MW},KW={type:f.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:f.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},kW={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:f.OutputMap,declaration:pv,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[z2],index:0,parentRelationType:Ol.Error,parent:KW},SW={type:f.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ru,inputs:[gW,AW,H2,DW,CW],outputs:[NW,PW,wW],process:null,calledByError:[],calledByEntry:[LW],calledBySuccess:[],successCalls:[W2,Y2],errorCalls:[GW],error:kW,x:0,y:0,parent:BW},qW={type:f.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:f.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},ZW={type:f.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:f.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},JW={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nf,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:X.String,parent:qW,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:ZW},WW={type:f.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:f.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},HW={type:f.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},YW={type:f.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:f.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},zW={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:YW},XW={type:f.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:f.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},QW={type:f.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:f.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},X2={constant:!0,required:!0,type:f.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",defaultValue:null,dataType:zW,readsValue:XW,writesValues:[H2],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[QW],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:HW},eH={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[X2],declaration:Iu,index:0,parent:WW},tH={type:f.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},rH={type:f.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},iH={type:f.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:f.ArgumentDeclaration},sH={type:f.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:f.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Q2={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Lf,codeName:null,name:null,description:null,readsValue:iH,defaultValue:null,index:1,parent:sH},nH={type:f.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:wu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Q2,JW],outputs:[eH],process:null,calledByError:[],calledByEntry:[tH],calledBySuccess:[],successCalls:[X2],errorCalls:[],error:null,x:0,y:0,parent:rH},aH={type:f.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:f.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},oH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:aH},lH={type:f.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:f.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},eL={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:oH,defaultValue:null,implements:null,required:!1,writesValues:[Q2],index:0,parent:lH},dH={type:f.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:f.Project,entityId:ot},tL={extends:null,type:f.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Check Gov Company Registry availability",description:"Check whether the company name is already registered in the government company registry, or it is available for a new company to use.",inputs:[eL],calls:[nH,SW],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:dH},uH={type:f.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:f.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},cH={type:f.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},pH={type:f.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:f.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},fH={type:f.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:f.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},rL={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:eL,codeName:null,name:null,description:null,readsValue:pH,defaultValue:null,index:0,parent:fH},hH={type:f.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:f.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},yH={type:f.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:f.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},mH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jn,asType:!1,isList:!1,parent:yH},vH={type:f.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:f.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},EH={type:f.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},TH={type:f.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:f.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},iL={constant:!0,required:!0,type:f.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:mH,readsValue:vH,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[TH],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:EH},bH={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:uE,defaultValue:null,writesValues:[iL],index:0,parent:hH},AH={type:f.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:tL,inputs:[rL],outputs:[bH],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[uH],successCalls:[iL],errorCalls:[],error:null,x:0,y:0,parent:cH},IH={type:f.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},wH={type:f.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},RH={type:f.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:f.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},gH={type:f.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:f.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},sL={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Oo.inputs[0],codeName:null,name:null,description:null,readsValue:RH,defaultValue:null,index:0,parent:gH},_H={type:f.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oo,inputs:[sL],calledByError:[],calledByEntry:[IH],calledBySuccess:[],successCalls:[AH],errorCalls:[],x:0,y:0,parent:wH},DH={type:f.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},OH={type:f.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:f.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},CH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wl,asType:!1,isList:!1,parent:OH},$H={type:f.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},PH={type:f.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:f.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},VH={type:f.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},nL={constant:!0,required:!0,type:f.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:CH,readsValue:PH,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[VH],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$H},NH={type:f.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:f.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},LH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wl,asType:!1,isList:!1,parent:NH},BH={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",codeName:null,description:"The new bank account of the company",dataType:LH,implements:null,defaultValue:null,required:!0,index:1,writesValues:[nL],parent:DH},MH={type:f.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},UH={type:f.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:f.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},jH={type:f.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:f.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},xH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:jH},FH={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New company name",description:null,dataType:xH,implements:null,defaultValue:null,required:!0,index:0,writesValues:[sL,rL],parent:UH},GH={extends:null,type:f.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[FH,BH],calls:[_H,nL],index:1,private:!1,implements:null,x:0,y:0,parent:MH},KH={type:f.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"employee-entity-id"},kH={type:f.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:"employee-manager-property-id"},SH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-manager-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:KH,isList:!1,asType:!1,parent:kH},qH={type:f.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"employee-entity-id"},ZH={interactive:!0,extends:null,constant:!1,required:!0,hidden:!1,type:f.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:SH,abstract:!1,parent:qH},JH={type:f.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:f.Property,entityId:"employee-start-date-property-id"},WH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-start-date-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:hn,isList:!1,asType:!1,parent:JH},HH={type:f.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"employee-entity-id"},YH={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:WH,abstract:!1,parent:HH},zH={type:f.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:f.Property,entityId:"employee-department-property-id"},XH={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-department-property-data-type-id",type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wn,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:zH},QH={type:f.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"employee-entity-id"},eY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,defaultValue:null,implements:null,static:!1,private:!1,dataType:XH,abstract:!1,parent:QH},tY={type:f.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Rs={type:f.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employee",description:"A entity that represents an employee in the company",properties:[eY,YH,ZH],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Di],x:0,y:0,parent:tY},rY={type:f.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:f.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},iY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:rY},sY={type:f.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},nY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:iY,abstract:!1,parent:sY},aY={type:f.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:f.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},oY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wl,isList:!1,asType:!1,parent:aY},lY={type:f.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},cE={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:oY,abstract:!1,parent:lY},dY={type:f.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:f.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},uY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:dY},cY={type:f.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},pY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:uY,private:!0,abstract:!1,parent:cY},fY={type:f.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:f.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},hY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,isList:!0,asType:!1,parent:fY},yY={type:f.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:f.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},mY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employees",description:null,index:3,defaultValue:null,dataType:hY,implements:null,private:!0,static:!1,abstract:!1,parent:yY},vY={id:"company-prototype-primary-key-property-data-type-ref-id",type:f.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:f.Property},EY={id:"company-prototype-primary-key-property-ref-id",type:f.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:f.Property},TY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parent:EY},bY={id:"company-prototype-primary-key-property-parent-ref-id",type:f.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:f.DefinitionEntity},AY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",codeName:null,name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:jl,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.UUID,value:null,parent:vY,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:TY,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:bY},IY={type:f.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:f.Project,entityId:ot},gs={type:f.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company",description:null,properties:[nY,cE,pY,mY,AY],static:!1,abstract:!1,abstractMethods:[],methods:[sW,GH],extends:[],implements:[ni,ls],x:0,y:0,parent:IY},wY={type:f.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:f.Project,entityId:ot},pE={extends:null,type:f.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:wY};f.GenericReference,f.DataType;const RY={id:"cron-job-entity-expression-property-ref-id",type:f.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:f.Property},gY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:RY},_Y={id:"cron-job-entity-ref-id",type:f.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:f.DefinitionEntity},DY={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:f.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:gY,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:_Y},OY={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:f.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:f.FunctionDeclaration},CY={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:f.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:f.FunctionDeclaration},$Y={id:"cron-job-entity-trigger-show-popup-func-call-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.FunctionCall,declaration:pE,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[OY],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:CY},PY={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:f.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:f.DefinitionEntity},VY={extends:null,id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.FunctionDeclaration,codeName:null,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:qv,calls:[$Y],collapsed:!1,index:0,x:0,y:0,parent:PY},NY={id:"cron-job-entity-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},LY={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DefinitionEntity,codeName:null,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[DY],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[rh],methods:[VY],x:0,y:0,parent:NY},BY={type:f.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:f.Project,entityId:ot},MY={type:f.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[Ki],x:0,y:0,parent:BY},bh="f558fbf8-67de-4545-9804-6ae621e0b2d4",UY={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},jY={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},xY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Fe,asType:!1,parent:jY},FY={id:"getCompanyByIdEndpointReachedEntityEventRef",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},GY={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},KY={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},kY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:zr,asType:!1,parent:KY},SY={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:f.ArgumentDeclaration,writesValues:[],codeName:null,name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:GY,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:kY,implements:Lv,required:!0,index:0,parent:FY},qY={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},ZY={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:f.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:UY,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:xY,implements:Bv,required:!0,index:1,parent:qY},JY={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},WY={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},HY={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},YY={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Fe,parent:HY},zY={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:f.ArgumentDeclaration,writesValues:[],codeName:null,name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:WY,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:YY,implements:Mv,required:!0,index:2,parent:JY},XY={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},QY={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},ez={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:zr,parent:QY},tz={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:f.ArgumentDeclaration,writesValues:[],codeName:null,name:"Request body",defaultValue:null,dataType:ez,implements:Uv,index:3,required:!0,parent:XY},rz={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},iz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:rz},sz={id:"getCompanyByIdEndpointReturnStatementRef",type:f.GenericReference,version:"1",entityType:f.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},nz={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:f.ReturnDeclaration,codeName:null,name:"Response code",defaultValue:null,dataType:iz,implements:jv,readsValue:null,required:!0,index:0,parent:sz},az={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},oz={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},lz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:zr,asType:!1,parent:oz},dz={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:f.GenericReference,version:"1",entityType:f.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},uz={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:f.ReturnDeclaration,codeName:null,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.KeyValue,value:{},parent:az,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:lz,implements:xv,readsValue:null,required:!0,index:1,parent:dz},cz={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:f.GenericReference,version:"1",entityType:f.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},pz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:zr,parent:cz},fz={id:"getCompanyByIdEndpointReturnStatementRefThree",type:f.GenericReference,version:"1",entityType:f.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},hz={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:f.ReturnDeclaration,codeName:null,name:"Response body",implements:Fv,defaultValue:null,dataType:pz,readsValue:null,required:!0,index:2,parent:fz},yz={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:f.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:f.FunctionDeclaration},mz={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};f.ReturnStatement;const vz={id:"endpointBuiltInBaseEntityRefFour",type:f.GenericReference,version:"1",entityType:f.BuiltInBaseEntity,entityId:bh},Ez={extends:null,id:"getCompanyByIdEndpointReachedEntityEvent",codeName:null,name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.FunctionDeclaration,inputs:[SY,ZY,zY,tz],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Gv,index:0,private:!1,x:0,y:0,parent:vz},Tz={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"getCompanyByIdEndpointPathProperty"},bz={id:"getCompanyByIdEndpointPathPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"getCompanyByIdEndpointPathProperty"},Az={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fe,asType:!1,parent:bz},Iz={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:f.GenericReference,version:"1",entityType:f.DefinitionEntity,entityId:bh},wz={interactive:!0,extends:null,constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,codeName:null,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,static:!0,implements:Vv,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"/company/{id}",parent:Tz,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:Az,index:1,description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:Iz},Rz={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"getCompanyByIdEndpointMethodProperty"},gz={id:"getCompanyByIdEndpointMethodPropertyRef",type:f.GenericReference,version:"1",entityType:f.Property,entityId:"getCompanyByIdEndpointMethodProperty"},_z={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Wn,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:gz},Dz={id:"getCompanyByIdEndpointBaseEntityRefThree",type:f.GenericReference,version:"1",entityType:f.DefinitionEntity,entityId:bh},Oz={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",codeName:null,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,static:!0,implements:Nv,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:X.Enum,parent:Rz,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:_z,description:null,parent:Dz},Cz={type:f.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:f.Project,entityId:ot},$z={type:f.DefinitionEntity,id:bh,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Get given company data by id",description:null,properties:[wz,Oz],methods:[Ez],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[Ki],x:0,y:0,parent:Cz},Pz={id:"plant-prototype-database-property-ref-id",type:f.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:f.Property},Vz={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:f.Property},Nz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!1,parent:Pz},Lz={id:"plant-prototype-database-property-parent-ref-id",type:f.GenericReference,entityId:"plant-entity-id",version:"1",entityType:f.DefinitionEntity},Bz={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:aE,autogeneration:null,parent:Vz},dataType:Nz,description:"The database that the entity belongs to.",parent:Lz},Mz={type:f.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:f.Property,entityId:"plant-name-property-id"},Uz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"plant-name-property-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:Mz},jz={type:f.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:f.DefinitionEntity,entityId:"plant-entity-id"},xz={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:Uz,abstract:!1,parent:jz},Fz={type:f.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Gz={type:f.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[Bz,xz],methods:[],extends:[],implements:[ni],x:0,y:0,parent:Fz},Kz={id:"product-prototype-database-property-ref-id",type:f.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:f.Property},kz={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:f.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:f.Property},Sz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"product-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Xr,asType:!1,parent:Kz},qz={id:"product-prototype-database-property-parent-ref-id",type:f.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:f.DefinitionEntity},Zz={interactive:!1,extends:null,constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",codeName:null,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:oE,autogeneration:null,parent:kz},dataType:Sz,description:"The database that the entity belongs to.",parent:qz},Jz={type:f.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:f.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},Wz={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:Jz},Hz={type:f.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:f.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},Yz={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,type:f.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:Wz,abstract:!1,parent:Hz},zz={type:f.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:f.Project,entityId:ot},Xz={id:"product-prototype-primary-key-property-data-type-ref-id",type:f.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:f.Property},Qz={id:"product-prototype-primary-key-property-ref-id",type:f.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:f.Property},eX={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Hn,asType:!1,parent:Qz},tX={id:"product-prototype-primary-key-property-parent-ref-id",type:f.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:f.DefinitionEntity},rX={interactive:!0,extends:null,constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",codeName:null,name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.UUID,value:null,parent:Xz,autogeneration:{type:Dr.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:eX,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:tX},iX={type:f.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Product",description:"A product that can be sold",implements:[ni,ls],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[rX,Zz,Yz],methods:[],x:0,y:0,parent:zz},Yl="project-loaded-event-id",ta="get-bitcoin-price-http-call-operation-id",aL="get-bitcoin-price-http-call-response-body-id",Ah="validate-bitcoin-price-response-operation-ids",sX={type:f.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:aL},nX={type:f.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ah},oL={id:"validate-bitcoin-data-to-validate-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:To.inputs[1],codeName:null,name:null,description:null,readsValue:sX,defaultValue:null,index:0,parent:nX},aX={type:f.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},oX={type:f.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ah},lX={id:"validate-bitcoin-type-to-match-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:To.inputs[0],codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Z2,value:null,parent:aX,autogeneration:null},index:0,parent:oX},dX={type:f.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ah},uX={id:"validate-bitcoin-validated-entity-output-map-id",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:To.outputs[0],writesValues:[],index:0,parent:dX},cX={type:f.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:f.GlobalEvent,entityId:Yl},pX={type:f.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:f.Operation,entityId:ta},fX={type:f.Operation,id:Ah,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:To,inputs:[lX,oL],outputs:[uX],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[pX],parent:cX},hX={type:f.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:f.FunctionCall,entityId:ta},yX={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Mf,codeName:null,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:hX},mX={type:f.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:f.FunctionCall,entityId:ta},vX={type:f.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:f.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},EX={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Uf,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:X.String,parent:vX,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:mX},TX={type:f.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:f.FunctionCall,entityId:ta},bX={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:jf,codeName:null,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:TX},AX={type:f.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:f.FunctionCall,entityId:ta},IX={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:xf,codeName:null,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:AX},wX={type:f.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:f.FunctionCall,entityId:ta},RX={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.OutputMap,defaultValue:null,declaration:Gf,writesValues:[],index:1,parent:wX},gX={type:f.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:f.FunctionCall,entityId:ta},_X={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.OutputMap,defaultValue:null,declaration:Ff,writesValues:[],index:0,parent:gX},DX={type:f.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:f.FunctionCall,entityId:ta},OX={id:aL,type:f.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Kf,writesValues:[oL],index:2,parent:DX},CX={type:f.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:f.GlobalEvent,entityId:Yl},$X={type:f.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:f.GlobalEvent,entityId:Yl},PX={type:f.Operation,id:ta,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ru,inputs:[yX,EX,bX,IX],outputs:[_X,RX,OX],process:null,parent:$X,calledByError:[],calledByEntry:[CX],calledBySuccess:[],successCalls:[fX],errorCalls:[],error:null,x:0,y:0},VX={type:f.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:f.GlobalEvent,entityId:Yl},NX={type:f.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:f.GlobalEvent,entityId:Yl},LX={process:null,type:f.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pE,inputs:[],outputs:[],calledByError:[],calledByEntry:[VX],calledBySuccess:[],parent:NX,successCalls:[],errorCalls:[],error:null,x:0,y:0},BX={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:f.GenericReference,version:"1",entityType:f.Project,entityId:ot},MX={type:f.GlobalEvent,id:Yl,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:qn.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:sh,parent:BX,inputs:[],calls:[LX,PX],x:0,y:0},ds="abort-execution-func-declaration-id",Wu="abort-execution-func-exec-var-declaration-id",fE="abort-execution-func-small-wait-op-id",hE="abort-execution-func-long-wait-op-id",lL="abort-execution-func-long-wait-process-output-id",dL="abort-execution-func-exec-var-instance-write-id",uL="abort-execution-func-long-wait-return-stmt-id",cL="abort-execution-func-small-wait-return-stmt-id",UX="abort-execution-func-exec-var-instance-abort-call-id",yE="abort-execution-func-exec-var-instance-abort-internal-call-id",mE="abort-execution-func-exec-second-wait-op-id",jX={type:f.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},xX={type:f.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},FX={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:jX},GX={type:f.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:cL},KX={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",codeName:null,description:"A random string that is returned by the function",defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:xX},dataType:FX,implements:null,readsValue:null,required:!0,index:0,parent:GX},kX={type:f.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:mE},SX={type:f.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},qX={type:f.ReturnStatement,id:cL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[KX],calledByError:[],calledByEntry:[],calledBySuccess:[kX],throws:null,x:0,y:0,parent:SX},ZX={type:f.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"second-wait-argument-map-id"},JX={type:f.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:mE},WX={id:"second-wait-argument-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:X.Number,parent:ZX},index:0,parent:JX},HX={type:f.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},YX={type:f.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:f.InternalCall,entityId:yE},zX={id:mE,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gi,inputs:[WX],outputs:[],process:null,successCalls:[qX],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[YX],error:null,parent:HX},XX={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:f.VariableInstance,entityId:dL},QX={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:f.Operation,entityId:fE},eQ={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},tQ={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:f.VariableDeclaration,entityId:Wu},rQ={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:f.InternalCall,entityId:yE},iQ={id:UX,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:tQ,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[rQ],parent:eQ},pL={id:yE,type:f.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:Zv,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[XX,QX],successCalls:[zX],errorCalls:[],error:null,index:0,parent:iQ},sQ={type:f.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},nQ={type:f.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:f.VariableDeclaration,entityId:Wu},aQ={type:f.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},oQ={type:f.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Wu},lQ={type:f.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:lL},vE={id:dL,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:oQ,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[aQ],calledBySuccess:[nQ],successCalls:[pL],errorCalls:[],x:0,y:0,readsValue:lQ,writesValues:[],internalCalls:[],parent:sQ},dQ={type:f.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Wu};f.GenericReference,f.DataType;const uQ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:ih,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:dQ},cQ={type:f.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},pQ={type:f.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},fQ={constant:!0,required:!0,id:Wu,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:uQ,inputs:[],outputs:[],calledByError:[],calledByEntry:[pQ],calledBySuccess:[],successCalls:[vE],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:cQ},hQ={type:f.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},yQ={type:f.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},mQ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,asType:!1,isList:!1,parent:hQ},vQ={type:f.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:uL},EQ={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",codeName:null,description:"A random string that is returned by the function",implements:null,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:yQ},dataType:mQ,readsValue:null,required:!0,index:0,parent:vQ},TQ={type:f.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:hE},bQ={type:f.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},AQ={type:f.ReturnStatement,id:uL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[EQ],calledByError:[],calledByEntry:[],calledBySuccess:[TQ],throws:null,x:0,y:0,parent:bQ},IQ={type:f.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"long-argument-map-id"},fL={type:f.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:hE},wQ={id:"long-argument-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:X.Number,parent:IQ},index:0,parent:fL},RQ={type:f.GenericReference,id:"long-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},gQ={type:f.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},_Q={id:lL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:nh,writesValues:[vE],index:0,parent:fL},DQ={id:hE,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gi,inputs:[wQ],outputs:[],process:_Q,successCalls:[AQ],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[gQ],calledBySuccess:[],error:null,parent:RQ},OQ={type:f.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"small-wait-argument-map-id"},CQ={type:f.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:fE},$Q={id:"small-wait-argument-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:X.Number,parent:OQ},index:0,parent:CQ},PQ={type:f.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},VQ={type:f.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:f.FunctionDeclaration,entityId:ds},NQ={id:fE,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gi,inputs:[$Q],outputs:[],process:null,successCalls:[pL],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[VQ],calledBySuccess:[],error:null,parent:PQ},LQ={type:f.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},hL={extends:null,id:ds,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[NQ,fQ,vE,DQ],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:LQ},BQ={type:f.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},MQ={id:"call-execution-abort-func-id",type:f.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:hL,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:BQ},Ih="manual-hello-world-loop-func-decl-id",yL="manual-hello-world-loop-func-return-statement-id",bn="manual-hello-world-loop-id",Hu="manual-hello-world-loop-body-id",EE="manual-hello-world-loop-break-statement-id",Yu="manual-hello-world-loop-current-iteration-number-output-map-id",TE="manual-hello-world-loop-previous-iterations-results-output-map-id",bE="assembled-hello-world-text-output-id",UQ="assembled-hello-world-list-output-id",zu="iteration-number-is-equal-or-greater-than-10-condition-id",wh="join-hello-world-and-number-operation-id",Rh="append-string-to-list-operation-id",mL="hello-world-loop-output-map-id",jQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:f.ReturnStatement,entityId:yL},xQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:f.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},FQ={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!0,asType:!1,parent:xQ},GQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:f.OutputMap,entityId:mL},vL={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:"Results",codeName:null,description:null,defaultValue:null,dataType:FQ,implements:null,readsValue:GQ,required:!0,index:0,parent:jQ},KQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:f.Loop,entityId:bn},kQ={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:f.FunctionDeclaration,entityId:Ih},SQ={type:f.ReturnStatement,id:yL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vL],calledByError:[],calledByEntry:[],calledBySuccess:[KQ],parent:kQ,throws:null,x:0,y:0},qQ={type:f.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:f.BreakStatement,entityId:EE},EL={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:"Iteration result",codeName:null,description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:qQ},ZQ={type:f.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:f.ArgumentDeclaration,entityId:Yu},JQ={type:f.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:f.BreakStatement,entityId:EE},TL={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:"Iteration counter",codeName:null,description:null,implements:null,defaultValue:null,dataType:null,readsValue:ZQ,required:!0,index:1,parent:JQ},WQ={type:f.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:f.Condition,entityId:zu},HQ={type:f.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},YQ={type:f.BreakStatement,id:EE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[EL,TL],calledByError:[],calledByEntry:[],calledBySuccess:[WQ],parent:HQ,throws:null,x:0,y:0};f.GenericReference,f.InputMap;const zQ={type:f.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Rh},XQ={type:f.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:TE},bL={id:"append-string-to-list-base-string-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:nv,codeName:null,name:null,description:null,readsValue:XQ,defaultValue:null,index:0,parent:zQ},QQ={type:f.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Rh},eee={id:UQ,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[EL],declaration:Iu,index:0,parent:QQ},tee={type:f.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:f.Condition,entityId:zu},ree={type:f.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:bE},iee={type:f.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:f.Operation,entityId:Rh},AL={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:av,codeName:null,name:null,description:null,readsValue:ree,defaultValue:null,index:1,parent:iee},see={type:f.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:bn},nee={type:f.Operation,id:Rh,declaration:Bf,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[bL,AL],outputs:[eee],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[tee],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:see},aee={type:f.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:f.ContinueStatement,entityId:"hello-world-loop-continue-statement"},oee={type:f.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},lee={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:oee},dee={type:f.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:bE},IL={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:"Iteration result",codeName:null,description:null,defaultValue:null,implements:null,dataType:lee,readsValue:dee,required:!0,index:0,parent:aee},uee={type:f.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:f.Condition,entityId:zu},cee={type:f.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},pee={type:f.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[IL],calledBySuccess:[],calledByError:[uee],calledByEntry:[],parent:cee,throws:null,x:0,y:0},fee={type:f.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Hu},hee={type:f.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},yee={type:f.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:Yu},wL={type:f.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:f.Condition,entityId:zu},mee={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Fl.inputs[0],codeName:null,name:null,description:null,readsValue:yee,index:0,defaultValue:null,parent:wL},vee={type:f.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"max-num-iterations-value-map-id"},Eee={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Fl.inputs[1],codeName:null,name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:vee},parent:wL},Tee={type:f.Condition,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fl,inputs:[mee,Eee],calledByError:[],calledByEntry:[fee],calledBySuccess:[],successCalls:[YQ,nee],errorCalls:[pee],x:0,y:0,parent:hee},bee={type:f.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:f.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},Aee={type:f.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:wh},Iee={id:"join-hello-world-and-number-base-string-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nf,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:X.String,parent:bee,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:Aee},wee={type:f.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:wh},Ree={id:bE,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[AL,IL],declaration:Iu,index:0,parent:wee},gee={type:f.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Hu},_ee={type:f.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:Yu},Dee={type:f.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:f.Operation,entityId:wh},RL={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Lf,codeName:null,name:null,description:null,readsValue:_ee,defaultValue:null,index:1,parent:Dee},Oee={type:f.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:bn},Cee={type:f.Operation,id:wh,declaration:wu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Iee,RL],outputs:[Ree],process:null,calledByError:[],calledByEntry:[gee],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:Oee},$ee={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:TE,version:"1",entityType:f.ArgumentDeclaration},Pee={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:$ee},Vee={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:f.GenericReference,entityId:Hu,version:"1",entityType:f.FunctionDeclaration},Nee={constant:!0,id:TE,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",codeName:null,description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:Pee,implements:null,writesValues:[bL],index:1,parent:Vee},Lee={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:f.GenericReference,entityId:Hu,version:"1",entityType:f.FunctionDeclaration},Bee={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:f.GenericReference,entityId:Yu,version:"1",entityType:f.ArgumentDeclaration};f.DataType;const Mee={constant:!0,id:Yu,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",codeName:null,description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:wv,defaultValue:null,dataType:null,writesValues:[RL,TL],index:0,parent:Lee},Uee={id:"manual-flow-loop-body-parent-ref-id",type:f.GenericReference,entityId:bn,version:"1",entityType:f.Loop},jee={extends:null,id:Hu,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[Mee,Nee],calls:[Tee,Cee],implements:Wf,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Uee},xee={type:f.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},gL={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ValueDescriptor,name:"Iteration result",codeName:null,defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:oe.FixedReturns,index:0,parent:xee},Fee={type:f.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:f.Loop,entityId:bn},Gee={type:f.OutputMap,id:mL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gL,writesValues:[vL],index:0,parent:Fee},Kee={id:"manual-hello-world-loop-parent-ref-id",type:f.GenericReference,entityId:Ih,version:"1",entityType:f.FunctionDeclaration},kee={id:"manual-hello-world-loop-called-by-ref-id",type:f.GenericReference,entityId:Ih,version:"1",entityType:f.FunctionDeclaration},See={id:bn,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Jf,inputs:[],outputsDeclarations:[gL],outputs:[Gee],body:jee,successCalls:[SQ],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[kee],calledBySuccess:[],x:0,y:0,parent:Kee},qee={type:f.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},_L={extends:null,type:f.FunctionDeclaration,id:Ih,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual loop wrapper function",codeName:null,description:null,inputs:[],calls:[See],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:qee},Zee={type:f.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Jee={id:"call-hello-world-loop-id",type:f.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_L,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:Zee},ra="company-dto-function-declaration-id",AE="company-dto-func-declaration-argument-dcl-id",An="company-dto-function-company-variable-id",Pa="company-dto-function-company-dto-variable-id",zl="iterate-over-employee-list-loop-id",DL="iterate-over-employee-list-loop-employee-dto-output-map-id",IE="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",gh="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",OL="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",CL="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",$L="iterate-over-employee-list-continue-statement-id",_h="iterate-over-employee-list-loop-body-id",PL="company-dto-func-declaration-return-statement-id",VL="company-dto-func-declaration-return-decl-id",NL="company-dto-func-declaration-company-variable-id-output-map-id",LL="company-dto-func-declaration-company-variable-employess-output-map-id",BL="company-dto-func-declaration-company-variable-name-output-map-id",Wee="company-dto-func-declaration-company-dto-variable-input-map-id",Hee="company-dto-func-declaration-company-dto-variable-employess-input-map-id",Yee="company-dto-func-declaration-company-dto-variable-name-input-map-id",Dh="company-dto-func-declaration-owner-variable-id",zee="company-dto-func-declaration-company-dto-variable-owner-input-map-id",ML="company-dto-func-declaration-company-variable-owner-output-map-id",UL="company-dto-func-declaration-owner-variable-id-output-map-id",Oh="company-dto-func-declaration-bank-account-variable-id",Xee="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",jL="company-dto-func-declaration-company-variable-bank-account-output-map-id",xL="company-dto-func-declaration-bank-account-variable-id-output-map-id",Qee={type:f.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:UL},ete={type:f.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},FL={id:zee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:Qee,parent:ete},tte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:xL},rte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},GL={id:Xee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:tte,parent:rte},ite={type:f.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:BL},ste={type:f.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},KL={id:Yee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"name",description:null,defaultValue:null,index:3,readsValue:ite,parent:ste},nte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:DL},ate={type:f.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},kL={id:Hee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:nte,parent:ate},ote={type:f.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:NL},lte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},SL={id:Wee,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:ote,parent:lte},dte={type:f.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:VL},ute={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:dte},cte={type:f.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:PL},pte={type:f.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Pa},qL={constant:!0,isError:!1,id:VL,type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,implements:null,dataType:ute,readsValue:pte,required:!0,index:0,parent:cte},fte={type:f.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Pa},hte={type:f.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra},ZL={type:f.ReturnStatement,id:PL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[qL],calledByError:[],calledByEntry:[],calledBySuccess:[fte],throws:null,x:0,y:0,parent:hte},yte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra},mte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:f.VariableDeclaration,entityId:Oh},vte={type:f.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:f.VariableDeclaration,entityId:Dh},Ete={type:f.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:f.VariableDeclaration,entityId:zl},wE={constant:!0,required:!0,id:Pa,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[mte,vte,Ete],successCalls:[ZL],errorCalls:[],readsValue:null,writesValues:[qL],inputs:[SL,KL,GL,FL,kL],outputs:[],internalCalls:[],parent:yte,x:0,y:0},No="employee-dto-func-declaration-id",RE="employee-dto-func-declaration-argument-dcl-id",JL="employee-dto-func-declaration-return-statement-id",WL="employee-dto-func-declaration-return-decl-id",Lo="employee-dto-func-declaration-employee-variable-id",Bo="employee-dto-func-declaration-employee-dto-variable-id",Ch="employee-dto-func-declaration-manager-variable-id",HL="employee-dto-func-declaration-employee-variable-id-output-map-id",YL="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",zL="employee-dto-func-declaration-employee-variable-department-output-map-id",XL="employee-dto-func-declaration-employee-variable-manager-output-map-id",QL="employee-dto-func-declaration-manager-variable-id-output-map-id",Tte="employee-dto-func-declaration-employee-dto-variable-input-map-id",bte="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",Ate="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",Ite="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",wte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:QL},Rte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},e4={id:Ite,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:wte,parent:Rte},gte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:zL},_te={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},t4={id:Ate,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:gte,parent:_te},Dte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:YL},Ote={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},r4={id:bte,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:Dte,parent:Ote},Cte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:HL},$te={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},i4={id:Tte,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Cte,parent:$te},Pte={type:f.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:WL},Vte={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:Pte},Nte={type:f.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:JL},Lte={type:f.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Bo},s4={constant:!0,isError:!1,id:WL,type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:Vte,implements:null,readsValue:Lte,required:!0,index:0,parent:Nte},Bte={type:f.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Bo},Mte={type:f.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:No},n4={type:f.ReturnStatement,id:JL,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[s4],calledByError:[],calledByEntry:[],calledBySuccess:[Bte],throws:null,x:0,y:0,parent:Mte},Ute={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:No},jte={type:f.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ch},xte={constant:!0,required:!0,id:Bo,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",codeName:null,dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[jte],successCalls:[n4],errorCalls:[],readsValue:null,writesValues:[s4],inputs:[i4,r4,t4,e4],outputs:[],internalCalls:[],parent:Ute,x:0,y:0},Fte={type:f.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ch},Gte={id:QL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[e4],parent:Fte},Kte={type:f.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ch},kte={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,parent:Kte},Ste={type:f.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:XL},qte={type:f.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:No};f.GenericReference,f.VariableDeclaration;const a4={constant:!0,required:!0,id:Ch,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:kte,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[xte],errorCalls:[],readsValue:Ste,writesValues:[],inputs:[],outputs:[Gte],internalCalls:[],parent:qte,x:0,y:0},Zte={type:f.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},Jte={id:XL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rs.properties[2],index:3,writesValues:[a4],parent:Zte},Wte={type:f.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},Hte={id:zL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rs.properties[0],index:2,writesValues:[t4],parent:Wte},Yte={type:f.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},zte={id:YL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[1],index:1,writesValues:[r4],parent:Yte},Xte={type:f.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},Qte={id:HL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[i4],parent:Xte},ere={type:f.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Lo},tre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,parent:ere},rre={type:f.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:No},ire={type:f.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:f.ArgumentDeclaration,entityId:RE},sre={type:f.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:f.FunctionDeclaration,entityId:No},o4={constant:!0,required:!0,id:Lo,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company employee",dataType:tre,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[sre],calledBySuccess:[],successCalls:[a4],errorCalls:[],readsValue:ire,writesValues:[],inputs:[],outputs:[Qte,zte,Hte,Jte],internalCalls:[],parent:rre,x:0,y:0},nre={type:f.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:RE,version:"1",entityType:f.ArgumentDeclaration},are={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,like:!1,inferred:!1,parent:nre},ore={type:f.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:No,version:"1",entityType:f.FunctionDeclaration},lre={constant:!0,type:f.ArgumentDeclaration,id:RE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",codeName:null,description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:are,index:0,writesValues:[o4],parent:ore},dre={type:f.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},gE={extends:null,type:f.FunctionDeclaration,id:No,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[lre],calls:[o4],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:dre},ure={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:f.GenericReference,entityId:OL,version:"1",entityType:f.ReturnDeclaration},cre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:ure},pre={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:f.GenericReference,entityId:CL,version:"1",entityType:f.OutputMap},fre={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:f.GenericReference,entityId:$L,version:"1",entityType:f.ContinueStatement},l4={constant:!0,isError:!1,id:OL,type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",codeName:null,description:"The DTO of the employee entity.",defaultValue:null,readsValue:pre,dataType:cre,implements:null,required:!0,index:0,parent:fre},hre={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:f.GenericReference,entityId:gh,version:"1",entityType:f.FunctionCall},yre={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:f.GenericReference,entityId:zl,version:"1",entityType:f.Loop},mre={id:$L,type:f.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[hre],outputs:[l4],throws:null,x:0,y:0,parent:yre},vre={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:f.GenericReference,entityId:gh,version:"1",entityType:f.FunctionCall},Ere={id:CL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:n4.outputs[0],writesValues:[l4],index:0,parent:vre},Tre={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:f.GenericReference,entityId:IE,version:"1",entityType:f.ArgumentDeclaration},bre={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:f.GenericReference,entityId:gh,version:"1",entityType:f.FunctionCall},d4={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:gE.inputs[0],readsValue:Tre,index:0,defaultValue:null,parent:bre},Are={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:f.GenericReference,entityId:_h,version:"1",entityType:f.FunctionDeclaration},Ire={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:f.GenericReference,entityId:_h,version:"1",entityType:f.FunctionDeclaration},wre={id:gh,type:f.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gE,inputs:[d4],process:null,outputs:[Ere],calledByError:[],calledByEntry:[Are],calledBySuccess:[],successCalls:[mre],errorCalls:[],error:null,x:0,y:0,parent:Ire},Rre={type:f.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:IE,version:"1",entityType:f.ArgumentDeclaration},gre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,isList:!1,asType:!1,parent:Rre},_re={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:_h,version:"1",entityType:f.FunctionDeclaration},Dre={constant:!0,id:IE,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",codeName:null,description:"The current employee entity being processed.",defaultValue:null,dataType:gre,required:!0,implements:Yf,index:0,writesValues:[d4],parent:_re},Ore={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:f.GenericReference,entityId:zl,version:"1",entityType:f.Loop},Cre={extends:null,id:_h,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Dre],calls:[wre],implements:Du,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Ore},$re={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:f.GenericReference,entityId:zl,version:"1",entityType:f.Loop},Pre={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:f.GenericReference,entityId:LL,version:"1",entityType:f.OutputMap},u4={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:ga.inputs[0],defaultValue:null,readsValue:Pre,index:0,parent:$re},Vre={id:"iterate-over-employee-list-loop-parent-ref-id",type:f.GenericReference,entityId:ra,version:"1",entityType:f.FunctionDeclaration},Nre={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:f.GenericReference,entityId:zl,version:"1",entityType:f.Loop},Lre={id:DL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ga.outputs[0],writesValues:[kL],index:0,parent:Nre},Bre={type:f.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},Mre={id:zl,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ga,inputs:[u4],successCalls:[wE],errorCalls:[],outputsDeclarations:[],outputs:[Lre],body:Cre,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[Bre],error:null,x:0,y:0,parent:Vre},Ure={type:f.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Oh},jre={id:xL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[GL],parent:Ure},xre={type:f.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Oh},Fre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,parent:xre},Gre={type:f.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:jL},Kre={type:f.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra};f.GenericReference,f.VariableDeclaration;const c4={constant:!0,required:!0,id:Oh,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:Fre,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[wE],errorCalls:[],readsValue:Gre,writesValues:[],inputs:[],outputs:[jre],internalCalls:[],parent:Kre,x:0,y:0},kre={type:f.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Dh},Sre={id:UL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ls.properties[0],index:0,defaultValue:null,writesValues:[FL],parent:kre},qre={type:f.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Dh},Zre={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,parent:qre},Jre={type:f.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:ML},Wre={type:f.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra};f.GenericReference,f.VariableDeclaration;const p4={constant:!0,required:!0,id:Dh,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Owner",dataType:Zre,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[wE],errorCalls:[],readsValue:Jre,writesValues:[],inputs:[],outputs:[Sre],internalCalls:[],parent:Wre,x:0,y:0},Hre={type:f.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},Yre={id:ML,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gs.properties[2],index:4,writesValues:[p4],parent:Hre},zre={type:f.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},Xre={id:jL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gs.properties[1],index:3,writesValues:[c4],parent:zre},Qre={type:f.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},eie={id:BL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gs.properties[0],index:2,writesValues:[KL],parent:Qre},tie={type:f.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},rie={id:LL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:gs.properties[3],index:1,writesValues:[u4],parent:tie},iie={type:f.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},sie={id:NL,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[SL],parent:iie},nie={type:f.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:An},aie={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,parent:nie},oie={type:f.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra},lie={type:f.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:f.ArgumentDeclaration,entityId:AE},die={type:f.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:f.FunctionDeclaration,entityId:ra},f4={constant:!0,required:!0,id:An,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company",dataType:aie,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[die],calledBySuccess:[],successCalls:[c4,p4,Mre],errorCalls:[],readsValue:lie,writesValues:[],inputs:[],outputs:[sie,rie,eie,Xre,Yre],internalCalls:[],parent:oie,x:0,y:0},uie={type:f.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:AE,version:"1",entityType:f.ArgumentDeclaration},cie={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,like:!1,inferred:!1,parent:uie},pie={type:f.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:ra,version:"1",entityType:f.FunctionDeclaration},fie={constant:!0,type:f.ArgumentDeclaration,id:AE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",codeName:null,description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:cie,index:0,writesValues:[f4],parent:pie},hie={type:f.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},_E={extends:null,type:f.FunctionDeclaration,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[fie],calls:[f4],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:hie},Xu="exec-in-parallel-operation-call-id",Qu="exec-sequentially-operation-call-id",Oi="concurrency-and-wait-function-declaration-id",h4="concurrency-and-wait-return-statement-id",y4="concurrency-and-wait-return-declaration-id",DE="exec-in-parallel-argument-map-id",m4="exec-sequentially-argument-map-id",OE="wait-for-2-seconds-operation-id",v4="wait-for-2-seconds-argument-map-id",CE="map-company-dto-function-call-id",E4="map-company-dto-function-call-company-dto-output-map-id",$h="company-dto-variable-one-id",$E="company-dto-variable-one-instance-id",T4="company-dto-variable-two-id",yie={type:f.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:y4},mie={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"returned-company-dto-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,parent:yie},vie={type:f.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:h4},Eie={type:f.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:T4},b4={constant:!0,isError:!1,id:y4,type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:mie,implements:null,readsValue:Eie,required:!0,index:0,parent:vie},Tie={type:f.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:f.Operation,entityId:OE},bie={type:f.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Aie={type:f.ReturnStatement,id:h4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[b4],calledByError:[],calledByEntry:[],calledBySuccess:[Tie],throws:null,x:0,y:0,parent:bie},Iie={type:f.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:f.VariableInstance,entityId:$E},wie={type:f.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:f.VariableInstance,entityId:$E},Rie={type:f.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},A4={constant:!0,required:!0,id:T4,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",codeName:null,description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[Iie],internalCalls:[],writesValues:[b4],readsValue:wie,x:0,y:0,parent:Rie},gie={type:f.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:$h},_ie={type:f.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:$h},Die={type:f.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Oie={type:f.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:$h},I4={id:$E,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oie,inputs:[],outputs:[],successCalls:[A4],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[gie],internalCalls:[],writesValues:[A4],readsValue:_ie,x:0,y:0,parent:Die},Cie={type:f.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:f.FunctionCall,entityId:CE},$ie={type:f.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:E4},Pie={type:f.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},w4={constant:!0,required:!0,id:$h,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[I4],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[Cie],internalCalls:[],writesValues:[I4],readsValue:$ie,x:0,y:0,parent:Pie},R4={type:f.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:f.FunctionCall,entityId:CE},Vie={id:"map-company-dto-function-call-company-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_E.inputs[0],name:null,codeName:null,description:null,defaultValue:null,index:0,readsValue:null,parent:R4},Nie={id:E4,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ZL.outputs[0],writesValues:[w4],index:0,parent:R4},Lie={id:"map-company-dto-function-call-called-by-ref-id",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Bie={id:"map-company-dto-function-call-parent-ref-id",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Mie={id:CE,type:f.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_E,successCalls:[w4],process:null,errorCalls:[],inputs:[Vie],outputs:[Nie],calledByError:[],calledByEntry:[Lie],calledBySuccess:[],parent:Bie,x:0,y:0,error:null},Uie={type:f.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:nE},jie={type:f.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:nE},xie={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"last-timestamp-variable-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:hn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:Uie},Fie={type:f.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:f.Project,entityId:ot},PE={constant:!0,required:!0,id:nE,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",defaultValue:{id:"last-timestamp-variable-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Date,value:null,autogeneration:{type:Dr.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:jie},dataType:xie,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:Fie},Gie={type:f.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:v4},Kie={type:f.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:OE},kie={id:v4,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:X.Number,parent:Gie},index:0,parent:Kie},Sie={type:f.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},qie={type:f.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:f.Operation,entityId:Qu},Zie={type:f.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:f.Operation,entityId:Xu},g4={id:OE,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ks,inputs:[kie],outputs:[],process:null,successCalls:[Aie],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[qie,Zie],error:null,parent:Sie},Jie={type:f.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:"wait-for-random-amount-input-map-id"},Wie={type:f.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:"wait-for-random-amount-id"},Hie={id:"wait-for-random-amount-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vo,codeName:null,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:Dr.Random,rangeStart:1e3,rangeEnd:4e3},name:X.Number,parent:Jie},index:0,parent:Wie},Yie={type:f.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Xl={id:"wait-for-random-amount-id",type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ks,inputs:[Hie],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:Yie},VE="list-of-functions-variable-id",zie={type:f.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:f.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},Xie={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:zie},Qie={type:f.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:f.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},ese={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:Qie},tse={type:f.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:VE},rse={type:f.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:f.DataType,entityId:"list-of-functions-variable-data-type-id"},ise={id:"list-of-functions-variable-action-descriptor-id",type:f.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Xie],error:null,outputs:[ese],parent:rse},sse={type:f.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:VE},nse={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"list-of-functions-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ise,asType:!1,isList:!0,parent:tse},ase={type:f.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi};f.GenericReference,f.InputMap;const ose={type:f.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:f.InputMap,entityId:m4},lse={type:f.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:f.InputMap,entityId:DE},_4={constant:!0,required:!0,id:VE,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"List of functions to execute",description:"A list of functions to be executed in parallel",defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[Xl,Xl,Xl,Xl,Xl],autogeneration:null,parent:sse},dataType:nse,parent:ase,readsValue:null,writesValues:[ose,lse],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},dse={type:f.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Xu},use={type:f.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},cse={type:f.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:"exec-in-parallel-return-map-id"},pse={type:f.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Xu},D4={id:"exec-in-parallel-result-variable-id",type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:PE,readsValue:cse,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[pse],successCalls:[],errorCalls:[],internalCalls:[],parent:use,x:0,y:0},fse={id:"exec-in-parallel-return-map-id",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lv,writesValues:[D4],index:0,parent:dse},hse={type:f.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Xu},yse={id:DE,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ov,codeName:null,name:null,description:null,readsValue:_4,defaultValue:null,index:0,parent:hse},mse={type:f.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},vse={type:f.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Ese={process:null,id:Xu,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ks,inputs:[yse],outputs:[fse],successCalls:[g4,D4],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[vse],calledBySuccess:[],error:null,parent:mse},Tse={type:f.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Qu},bse={type:f.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Ase={type:f.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:"exec-sequentially-return-map-id"},Ise={type:f.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Qu},O4={id:"exec-sequentially-result-variable-id",type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:PE,readsValue:Ase,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Ise],successCalls:[],errorCalls:[],internalCalls:[],parent:bse,x:0,y:0},wse={id:"exec-sequentially-return-map-id",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:uv,writesValues:[O4],index:0,parent:Tse},Rse={type:f.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Qu},gse={id:m4,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dv,codeName:null,name:null,description:null,readsValue:_4,defaultValue:null,index:0,parent:Rse},_se={type:f.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Dse={type:f.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Oi},Ose={id:Qu,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:zn,inputs:[gse],process:null,outputs:[wse],successCalls:[g4,O4],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Dse],calledBySuccess:[],error:null,parent:_se},Cse={type:f.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},$se={extends:null,type:f.FunctionDeclaration,id:Oi,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Execute with concurrency and wait",description:"Executes a hardcoded list of actions in parallel and waits for some time before ending the logic with some unrelated data payload as the result.",inputs:[],calls:[Ose,Ese,Mie],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Cse},Pse={type:f.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:f.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Vse={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,isList:!1,asType:!1,parent:Pse},Nse={type:f.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:f.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},Lse={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:Vse,readsValue:null,required:!0,index:0,parent:Nse},Bse={type:f.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:f.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Mse={type:f.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:f.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Use={type:f.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Lse],calledByError:[],calledByEntry:[Mse],calledBySuccess:[],throws:null,x:0,y:0,parent:Bse},jse={type:f.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:f.Project,entityId:ot},xse={extends:null,type:f.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Create new company",description:null,inputs:[],calls:[Use],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:jse},NE="get-current-date-and-time-func-decl-id",C4="get-current-date-and-time-return-statement-id",LE="get-current-date-and-time-return-declaration-id",Fse="get-current-date-and-time-return-declaration-data-type-id",Gse={type:f.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:LE},Kse={type:f.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:LE},kse={staticEntities:null,interactiveEntities:null,actionEntities:null,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:Fse,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:hn,asType:!1,isList:!1,like:!1,inferred:!1,parent:Kse},Sse={type:f.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:f.ReturnStatement,entityId:C4};f.ReturnDeclaration,f.LiteralValue,X.Date,Dr.CurrentDateAndTime;const qse={type:f.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:NE},Zse={type:f.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:NE};f.ReturnStatement;const Jse={type:f.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Wse={extends:null,type:f.FunctionDeclaration,id:NE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Jse},Hse={type:f.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:f.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},Yse={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:Hse},zse={type:f.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Xse={type:f.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Qse={type:f.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:f.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},$4={constant:!0,required:!0,type:f.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Result",dataType:Yse,description:null,defaultValue:null,readsValue:Qse,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Xse],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:zse},ene={type:f.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},tne={type:f.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:f.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},rne={type:f.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:f.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},ine={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:rne},sne={type:f.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},P4={constant:!0,required:!0,type:f.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[sne],successCalls:[],errorCalls:[],dataType:ine,readsValue:tne,writesValues:[],internalCalls:[],parent:ene,x:0,y:0},V4="do-math-return-statement-id",BE="do-math-return-declaration-id",nne={type:f.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},ane={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,asType:!1,isList:!1,parent:nne},one={type:f.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},lne={type:f.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:f.ReturnDeclaration,entityId:BE},dne={constant:!0,required:!0,type:f.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,codeName:null,name:"Fixed result",defaultValue:null,dataType:ane,readsValue:null,writesValues:[lne],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:one},une={type:f.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:f.ReturnStatement,entityId:V4},cne={type:f.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:f.ReturnDeclaration,entityId:BE},pne={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:cne},fne={constant:!0,isError:!1,id:BE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.ReturnDeclaration,codeName:null,name:"Result",description:null,implements:null,defaultValue:null,dataType:pne,readsValue:dne,required:!0,index:0,parent:une},hne={type:f.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},yne={type:f.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},mne={type:f.ReturnStatement,id:V4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[fne],calledByError:[],calledByEntry:[],calledBySuccess:[hne],parent:yne,throws:null,x:0,y:0},N4={type:f.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},vne={type:f.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Ene={type:f.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Tne={type:f.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:f.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},L4={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:W0,codeName:null,name:null,description:null,readsValue:Tne,defaultValue:null,index:0,parent:Ene},bne={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:z0,writesValues:[$4,P4],index:0,parent:vne},Ane={type:f.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:f.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Ine={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:f.GenericReference,version:"1",entityType:f.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},B4={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:H0,codeName:null,name:null,description:null,readsValue:Ine,defaultValue:null,index:1,parent:Ane},wne={type:f.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Vf,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[L4,B4],outputs:[bne],calledByError:[],calledByEntry:[N4],calledBySuccess:[],process:null,successCalls:[mne,$4,P4],errorCalls:[],parent:N4,error:null,x:0,y:0},Rne={type:f.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:f.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},gne={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:f.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:f.ArgumentDeclaration},M4={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:gne},_ne={type:f.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:f.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},Dne={type:f.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},One={type:f.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},U4={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:X.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Rne},dataType:M4,inputs:[],outputs:[],calledByError:[],calledByEntry:[One],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:_ne,writesValues:[B4],internalCalls:[],x:0,y:0,parent:Dne},Cne={version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:f.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},$ne={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Z",description:"The number to add",defaultValue:null,dataType:M4,implements:null,writesValues:[U4],required:!0,index:1,parent:Cne},Pne={type:f.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:f.Project,entityId:ot},Vne={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:f.GenericReference,version:"1",entityType:f.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Nne={type:f.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:f.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Lne={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:f.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:f.ArgumentDeclaration},Bne={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:Lne},Mne={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"N",dataType:Bne,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:X.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Nne},writesValues:[L4],required:!0,index:0,parent:Vne},Une={extends:null,type:f.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Do math",description:"This function does math",inputs:[Mne,$ne],calls:[wne,U4],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Pne},Ci="replace-bank-account-in-company-func-declaration-id",ME="company-entity-to-modify-arg-declaration-id",UE="account-number-to-create-arg-decl-id",Ql="company-main-variable-id",ed="search-person-by-id-id",j4="new-bank-account-owner-arg-decl-id",x4="search-person-by-id-output-declaration-id",jE="search-person-by-id-output-entity-map-id",ec="person-not-empty-condition-id",Ph="create-new-bank-account-instance-operation-id",F4="create-new-bank-account-instance-operation-output-entity-map-id",G4="company-bank-account-output-map-id",xE="old-bank-account-var-declaration-id",K4="old-bank-account-var-instance-id",k4="company-variable-instance-id",FE="delete-bank-account-internal-call-id",tc="new-bank-account-data-variable-declaration-id",jne={type:f.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},xne={type:f.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:f.InternalCall,entityId:FE},Fne={type:f.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},Gne={type:f.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:f.VariableInstance,entityId:k4},Kne={type:f.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:F4},S4={type:f.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:Kne,declaration:cE,codeName:null,name:null,description:null,index:0,defaultValue:null,parent:Gne},kne={type:f.VariableInstance,id:k4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Fne,inputs:[S4],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[xne],successCalls:[],errorCalls:[],internalCalls:[],parent:jne,readsValue:null,writesValues:[],x:0,y:0},Sne={type:f.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},qne={type:f.DataType,staticEntities:null,interactiveEntities:null,actionEntities:null,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wl,asType:!1,isList:!1,like:!1,inferred:!1,parent:Sne},Zne={type:f.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:G4},Jne={type:f.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Wne={type:f.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},Hne={type:f.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:f.Operation,entityId:Ph};f.GenericReference,f.VariableInstance;const Yne={type:f.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:f.VariableDeclaration,entityId:xE},zne={type:f.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:xE},Xne={type:f.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Qne={type:f.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:f.InternalCall,entityId:FE},eae={type:f.VariableInstance,id:K4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:zne,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[Qne],errorCalls:[],parent:Xne,readsValue:null,writesValues:[],x:0,y:0},q4={process:null,type:f.InternalCall,id:FE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sv,index:0,successCalls:[kne],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[Hne,Yne],parent:eae},Z4={constant:!0,required:!0,type:f.VariableDeclaration,id:xE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:qne,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Wne],successCalls:[q4],internalCalls:[],errorCalls:[],parent:Jne,readsValue:Zne,writesValues:[],x:0,y:0},tae={type:f.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},rae={type:f.DataType,staticEntities:null,interactiveEntities:null,actionEntities:null,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:gs,asType:!1,isList:!1,like:!1,inferred:!1,parent:tae},iae={type:f.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:f.ArgumentDeclaration,entityId:ME},sae={type:f.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},nae={type:f.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},aae={type:f.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:Ql},oae={id:G4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.OutputMap,defaultValue:null,declaration:cE,index:0,parent:aae,writesValues:[Z4]},J4={constant:!0,required:!0,type:f.VariableDeclaration,id:Ql,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:rae,inputs:[],outputs:[oae],calledByError:[],calledByEntry:[nae],calledBySuccess:[],successCalls:[Z4],errorCalls:[],parent:sae,internalCalls:[],readsValue:iae,writesValues:[],x:0,y:0},lae={type:f.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:tc},dae={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:f.GenericReference,version:"1",entityType:f.OutputMap,entityId:jE},W4={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:null,codeName:null,name:"Account owner",description:null,readsValue:dae,index:1,defaultValue:null,parent:lae},uae={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:f.GenericReference,version:"1",entityType:f.ArgumentDeclaration,entityId:UE},cae={type:f.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:tc},H4={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:null,codeName:null,name:"Account number",description:null,readsValue:uae,defaultValue:null,index:0,parent:cae},Y4={type:f.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ph},pae={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Eo.inputs[0],name:null,codeName:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:f.LiteralValue,standaloneParent:null,name:X.EntityTemplate,value:null,valueAsTypeSingle:Wl,valueAsTypeList:null,autogeneration:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:{entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",entityType:f.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:f.GenericReference}},parent:Y4},fae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:tc},z4={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Eo.inputs[1],name:null,codeName:null,description:null,index:1,readsValue:fae,defaultValue:null,parent:Y4},hae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:f.Operation,entityId:Ph},yae={id:F4,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.OutputMap,defaultValue:null,declaration:Eo.outputs[0],index:0,writesValues:[S4],parent:hae},mae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:f.Condition,entityId:ec},vae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:tc},Eae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},X4={process:null,id:Ph,type:f.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Eo,inputs:[pae,z4],error:null,outputs:[yae],successCalls:[q4],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[vae,mae],parent:Eae,x:0,y:0},Tae={type:f.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},bae={type:f.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:f.Condition,entityId:ec},Aae={constant:!0,required:!0,id:tc,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,codeName:null,deleted:!1,defaultValue:null,inputs:[H4,W4],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[z4],successCalls:[X4],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[bae],calledByEntry:[],x:0,y:0,parent:Tae},Iae={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:f.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:f.ReturnDeclaration},wae={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:f.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:f.ReturnDeclaration},Rae={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:wae},gae={id:"person-not-found-thrown-error-parent-ref-id",type:f.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:f.ReturnStatement},_ae={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:f.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:Rae,codeName:null,name:"Person not found error",description:"If the person entity was not found this error is outputted",defaultValue:{id:"person-not-found-thrown-error-datatype-default-value-id",type:f.LiteralValue,standaloneParent:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:X.String,parent:Iae,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:gae,implements:null,required:!0,index:0,readsValue:null},Dae={id:"person-not-found-error-return-statement-called-by-ref-id",type:f.GenericReference,entityId:ec,version:"1",entityType:f.Condition},Oae={id:"person-not-found-error-return-statement-parent-ref-id",type:f.GenericReference,entityId:Ci,version:"1",entityType:f.FunctionDeclaration},Cae={id:"person-not-found-error-return-statement-id",type:f.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:_ae,outputs:[],calledBySuccess:[],calledByError:[Dae],calledByEntry:[],x:0,y:0,parent:Oae},$ae={type:f.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:f.Search,entityId:ed},Pae={type:f.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Vae={type:f.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:jE},Nae={type:f.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:f.Condition,entityId:ec},Q4={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:f.InputMap,declaration:Oo.inputs[0],codeName:null,name:null,description:null,readsValue:Vae,index:0,defaultValue:null,parent:Nae},Lae={type:f.Condition,id:ec,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oo,inputs:[Q4],calledByError:[],calledByEntry:[],calledBySuccess:[$ae],successCalls:[Aae,X4],errorCalls:[Cae],x:0,y:0,parent:Pae},Bae={type:f.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:f.ValueDescriptor,entityId:x4},Mae={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:Di,parent:Bae},Uae={type:f.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:f.Search,entityId:ed},eB={id:x4,type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:Mae,parentRelationType:oe.FixedReturns,name:"Found person",codeName:null,description:"The person entity that was found",parent:Uae,required:!0,index:0},jae={type:f.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:f.Search,entityId:ed},xae={type:f.OutputMap,id:jE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:eB,parent:jae,writesValues:[Q4,W4],index:0},Fae={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:f.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:f.ArgumentDeclaration};f.DataType;const Gae={type:f.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:f.Search,entityId:ed},tB={id:"search-person-by-id-input-declaration-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,codeName:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:oe.FixedArguments,index:0,required:!0,parent:Gae},Kae={type:f.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:f.Search,entityId:ed},kae={id:"search-person-by-id-input-map-reads-value-ref-id",type:f.GenericReference,entityId:j4,version:"1",entityType:f.ArgumentDeclaration},rB={type:f.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:tB,codeName:null,name:null,description:null,readsValue:kae,defaultValue:null,parent:Kae,index:0},Sae="SELECT * FROM Person WHERE id = your_id;",qae={type:f.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Zae={type:f.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:f.FunctionDeclaration,entityId:Ci},Jae={type:f.Search,id:ed,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:Sae,inputsDeclarations:[tB],inputs:[rB],outputsDeclarations:[eB],outputs:[xae],calledByError:[],calledByEntry:[Zae],calledBySuccess:[],error:null,successCalls:[Lae],errorCalls:[],parent:qae,x:0,y:0};f.GenericReference,f.DataType;const Wae={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:f.GenericReference,entityId:UE,version:"1",entityType:f.ArgumentDeclaration},Hae={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fe,isList:!1,asType:!1,parent:Wae},Yae={version:"1",entityType:f.FunctionDeclaration,entityId:Ci,type:f.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},zae={constant:!0,id:UE,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:Hae,implements:null,writesValues:[H4],required:!0,index:1,parent:Yae};f.GenericReference,f.DataType;const Xae={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:f.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:f.ArgumentDeclaration},Qae={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Hn,isList:!1,asType:!1,parent:Xae},eoe={version:"1",entityType:f.FunctionDeclaration,entityId:Ci,type:f.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},toe={constant:!0,id:j4,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",defaultValue:null,dataType:Qae,implements:null,writesValues:[rB],required:!1,index:1,parent:eoe},roe={type:f.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:f.Project,entityId:ot},ioe={type:f.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:f.FunctionDeclaration,entityId:Ci};f.GenericReference,f.DataType;const soe={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:f.GenericReference,entityId:ME,version:"1",entityType:f.ArgumentDeclaration},noe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-entity-to-modify-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:et,isList:!1,asType:!1,parent:soe},aoe={constant:!0,id:ME,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company",defaultValue:null,dataType:noe,implements:null,description:"The company to replace the bank account for",writesValues:[J4],required:!0,index:0,parent:ioe},ooe={extends:null,type:f.FunctionDeclaration,id:Ci,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Replace bank account",description:"This action takes an existing company and data to create a new bank account entity. It then creates a bank account, deletes the old one, and updates the company with the new bank account",inputs:[aoe,zae,toe],index:null,implements:null,calls:[Jae,J4],collapsed:!1,private:!1,x:0,y:0,parent:roe},loe={type:f.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:f.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},doe={extends:null,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",codeName:null,name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:loe,x:0,y:0},uoe={type:f.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:f.Project,entityId:ot},coe={type:f.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",codeName:null,name:"Third Party Installed Project",description:null,functions:[doe],events:[],implements:null,parent:uoe,x:0,y:0},GE="global-counted-test-loop-id",iB="global-counted-test-loop-body-id",sB="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",poe={type:f.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:sB,version:"1",entityType:f.ArgumentDeclaration},foe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:poe},hoe={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:iB,version:"1",entityType:f.FunctionDeclaration},yoe={constant:!0,id:sB,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",codeName:null,description:"The current value being processed.",defaultValue:null,dataType:foe,implements:Pv,required:!0,index:0,writesValues:[],parent:hoe},moe={id:"global-counted-test-loop-body-parent-ref-id",type:f.GenericReference,entityId:GE,version:"1",entityType:f.Loop},voe={extends:null,id:iB,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[yoe],calls:[],implements:zf,collapsed:!1,private:!1,index:0,x:0,y:0,parent:moe},td="random-company-employee-test-variable-id",KE="manager-global-variable-id",nB="global-user-instance-id",In="employee-mapped-dto-variable-id",Mo="employee-mapped-dto-variable-instance-id",aB="random-employee-id-output-map-id",oB="random-employee-birth-date-output-map-id",lB="random-employee-department-output-map-id",dB="random-employee-manager-output-map-id",uB="manager-global-id-output-map-id",cB="global-user-instance-id-output-map-id",Eoe="employee-mapped-dto-requester-id-input-map-id",pB="employee-mapped-dto-now-timestamp-input-map-id",Toe="employee-mapped-dto-id-input-map-id",boe="employee-mapped-dto-birth-date-input-map-id",Aoe="employee-mapped-dto-department-input-map-id",Ioe="employee-mapped-dto-manager-input-map-id",woe={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:f.GenericReference,entityId:GE,version:"1",entityType:f.Loop};f.GenericReference,f.VariableDeclaration;const Roe={id:"global-counted-test-loop-iteration-number-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:Ou.inputs[0],defaultValue:null,readsValue:null,index:0,parent:woe},goe={id:"global-counted-test-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},_oe={id:"global-counted-test-loop-called-by-success-ref-id",type:f.GenericReference,entityId:Mo,version:"1",entityType:f.VariableDeclaration},fB={id:GE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ou,inputs:[Roe],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:voe,calledByError:[],calledByEntry:[],calledBySuccess:[_oe],error:null,x:0,y:0,parent:goe},kE="global-object-keys-test-loop-id",hB="global-object-keys-test-loop-body-id",yB="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",Doe={type:f.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:yB,version:"1",entityType:f.ArgumentDeclaration},Ooe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Doe},Coe={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:hB,version:"1",entityType:f.FunctionDeclaration},$oe={constant:!0,id:yB,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",codeName:null,description:"The current value being processed.",defaultValue:null,dataType:Ooe,implements:_v,required:!0,index:0,writesValues:[],parent:Coe},Poe={id:"global-object-keys-test-loop-body-parent-ref-id",type:f.GenericReference,entityId:kE,version:"1",entityType:f.Loop},Voe={extends:null,id:hB,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[$oe],calls:[],implements:Ll,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Poe},Noe={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:f.GenericReference,entityId:kE,version:"1",entityType:f.Loop},Loe={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:f.GenericReference,entityId:In,version:"1",entityType:f.VariableDeclaration},mB={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:null,description:null,declaration:Ll.inputs[0],defaultValue:null,readsValue:Loe,index:0,parent:Noe},Boe={id:"global-object-keys-test-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},Moe={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:f.GenericReference,entityId:Mo,version:"1",entityType:f.VariableDeclaration},Uoe={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:f.GenericReference,entityId:In,version:"1",entityType:f.VariableDeclaration},SE={id:kE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ll,inputs:[mB],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Voe,calledByError:[],calledByEntry:[],calledBySuccess:[Uoe,Moe],error:null,x:0,y:0,parent:Boe},qE="global-object-values-test-loop-id",vB="global-object-values-test-loop-body-id",EB="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",joe={type:f.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:EB,version:"1",entityType:f.ArgumentDeclaration},xoe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:joe},Foe={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:vB,version:"1",entityType:f.FunctionDeclaration},Goe={constant:!0,id:EB,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",codeName:null,description:"The current value being processed.",defaultValue:null,dataType:xoe,implements:Ov,required:!0,index:0,writesValues:[],parent:Foe},Koe={id:"global-object-values-test-loop-body-parent-ref-id",type:f.GenericReference,entityId:qE,version:"1",entityType:f.Loop},koe={extends:null,id:vB,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Goe],calls:[],implements:Bl,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Koe},Soe={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:f.GenericReference,entityId:qE,version:"1",entityType:f.Loop},qoe={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:f.GenericReference,entityId:Mo,version:"1",entityType:f.VariableDeclaration},TB={id:"global-object-values-test-loop-iteration-object-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:Bl.inputs[0],defaultValue:null,readsValue:qoe,index:0,parent:Soe},Zoe={id:"global-object-values-test-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},Joe={id:"global-object-values-test-loop-called-by-success-ref-id",type:f.GenericReference,entityId:Mo,version:"1",entityType:f.VariableInstance},bB={id:qE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bl,inputs:[TB],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:koe,calledByError:[],calledByEntry:[],calledBySuccess:[Joe],error:null,x:0,y:0,parent:Zoe},ZE="global-test-iterate-over-string-loop-id",JE="global-test-iterate-over-string-loop-body-id",Vh="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",AB="global-test-iterate-over-string-loop-iteration-list-input-map-id",Woe={type:f.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Vh,version:"1",entityType:f.ArgumentDeclaration},Hoe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Woe},Yoe={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:JE,version:"1",entityType:f.FunctionDeclaration},zoe={constant:!0,id:Vh,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",codeName:null,description:"The current character value being processed.",defaultValue:null,dataType:Hoe,implements:Rv,required:!0,index:1,writesValues:[],parent:Yoe},Xoe={type:f.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Vh,version:"1",entityType:f.ArgumentDeclaration},Qoe={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Xoe},ele={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:JE,version:"1",entityType:f.FunctionDeclaration},tle={constant:!0,id:Vh,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",codeName:null,description:"The current character value being processed.",defaultValue:null,dataType:Qoe,implements:gv,required:!0,index:0,writesValues:[],parent:ele},rle={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:f.GenericReference,entityId:ZE,version:"1",entityType:f.Loop},ile={extends:null,id:JE,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",codeName:null,description:"This function is called once for each iteration of the loop.",inputs:[tle,zoe],calls:[],implements:Hf,collapsed:!1,private:!1,index:0,x:0,y:0,parent:rle},sle={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:f.GenericReference,entityId:ZE,version:"1",entityType:f.Loop},nle={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:f.GenericReference,entityId:AB,version:"1",entityType:f.InputMap},ale={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:f.LiteralValue,standaloneParent:null,name:X.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:Dr.Random,rangeStart:4,rangeEnd:5},parent:nle},ole={id:AB,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:_u.inputs[0],defaultValue:ale,readsValue:null,index:0,parent:sle},lle={id:"global-test-iterate-over-string-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},dle={id:ZE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_u,inputs:[ole],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:ile,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:lle},WE="iterate-over-list-loop-id",IB="iterate-over-list-loop-body-id",wB="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",ule={type:f.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:wB,version:"1",entityType:f.ArgumentDeclaration},cle={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:ule},ple={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:f.GenericReference,entityId:IB,version:"1",entityType:f.FunctionDeclaration},fle={constant:!0,id:wB,type:f.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",codeName:null,description:"The current value being processed.",defaultValue:null,dataType:cle,implements:Yf,required:!0,index:0,writesValues:[],parent:ple},hle={id:"iterate-over-list-loop-body-parent-ref-id",type:f.GenericReference,entityId:WE,version:"1",entityType:f.Loop},yle={extends:null,id:IB,type:f.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[fle],calls:[],implements:Du,collapsed:!1,private:!1,index:0,x:0,y:0,parent:hle},mle={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:f.GenericReference,entityId:WE,version:"1",entityType:f.Loop},vle={id:"iterate-over-list-loop-iteration-list-input-map-id",type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,codeName:null,description:null,declaration:ga.inputs[0],defaultValue:null,readsValue:null,index:0,parent:mle},Ele={id:"iterate-over-list-loop-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},Tle={id:WE,type:f.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ga,inputs:[vle],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:yle,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:Ele},ble={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:f.GenericReference,entityId:ot,version:"1",entityType:f.Project},Ale={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:f.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:f.Search},RB={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:f.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"companies",codeName:null,description:"List of companies with multiple employees and an existing bank account",defaultValue:null,dataType:null,required:!0,parentRelationType:oe.FixedReturns,index:0,parent:Ale},Ile={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:f.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:f.Search},wle={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:RB,writesValues:[],index:0,parent:Ile},Rle={id:"find-companies-with-multiple-employees-and-bank-account",type:f.Search,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Find companies with multiple employees and a bank account",description:"This search statement finds companies with multiple employees and an existing bank account",inputsDeclarations:[],outputsDeclarations:[RB],inputs:[],outputs:[wle],query:"",successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:ble},gle={type:f.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:uB},_le={type:f.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},gB={id:Ioe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",codeName:null,description:null,defaultValue:null,index:4,readsValue:gle,parent:_le},Dle={type:f.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:lB},Ole={type:f.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},_B={id:Aoe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",codeName:null,description:null,defaultValue:null,index:3,readsValue:Dle,parent:Ole},Cle={type:f.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:oB},$le={type:f.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},DB={id:boe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",codeName:null,description:null,defaultValue:null,index:2,readsValue:Cle,parent:$le},Ple={type:f.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:aB},Vle={type:f.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},OB={id:Toe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Ple,parent:Vle},Nle={type:f.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:cB},Lle={type:f.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},CB={id:Eoe,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,codeName:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:Nle,parent:Lle},Ble={type:f.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:KE},Mle={id:uB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ls.properties[0],defaultValue:null,index:0,writesValues:[gB],parent:Ble},Ule={type:f.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:KE},jle={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manager-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,parent:Ule},xle={type:f.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:f.OutputMap,entityId:dB},Fle={type:f.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},$B={constant:!0,required:!0,id:KE,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Manager",dataType:jle,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:xle,writesValues:[],inputs:[],outputs:[Mle],internalCalls:[],parent:Fle,x:0,y:0},Gle={type:f.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Kle={id:dB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rs.properties[2],index:3,writesValues:[$B],parent:Gle},kle={type:f.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Sle={id:lB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rs.properties[0],index:2,writesValues:[_B],parent:kle},qle={type:f.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Zle={id:oB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[1],index:1,writesValues:[DB],parent:qle},Jle={type:f.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Wle={id:aB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[OB],parent:Jle},Hle={type:f.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:td},Yle={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rs,asType:!1,isList:!1,parent:Hle},zle={type:f.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Xle={constant:!0,required:!0,id:td,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Company employee",dataType:Yle,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[Wle,Zle,Sle,Kle],internalCalls:[],parent:zle,x:0,y:0},Qle={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:f.InputMap,entityId:pB},ede={type:f.LiteralValue,standaloneParent:null,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:X.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsTypeList:null,valueAsTypeSingle:null,value:null,autogeneration:{type:Dr.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:Qle},tde={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:f.VariableInstance,entityId:Mo},rde={id:pB,type:f.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"now",codeName:null,description:"The current timestamp when the operation is executed",defaultValue:ede,index:5,readsValue:null,parent:tde},ide={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},sde={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:In},nde={type:f.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},ade={id:Mo,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ide,calledByError:[],calledByEntry:[],calledBySuccess:[sde],successCalls:[SE,bB,fB],errorCalls:[],readsValue:null,writesValues:[TB],inputs:[rde],outputs:[],internalCalls:[],parent:nde,x:0,y:0},ode={type:f.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},lde={constant:!0,required:!0,id:In,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[SE,ade],errorCalls:[],readsValue:null,writesValues:[mB],inputs:[CB,OB,DB,_B,gB],outputs:[],internalCalls:[],parent:ode,x:0,y:0},dde={type:f.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:f.VariableDeclaration,entityId:O2},ude={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:lE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:dde},cde={type:f.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:f.Project,entityId:ot},PB={constant:!0,required:!0,id:O2,type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Current user",description:"The user that is currently logged in",defaultValue:null,dataType:ude,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:cde},pde={type:f.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:f.VariableInstance,entityId:nB},fde={id:cB,type:f.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ls.properties[0],index:0,writesValues:[CB],parent:pde},hde={type:f.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},yde={id:nB,type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:PB,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[fde],internalCalls:[],parent:hde,x:0,y:0},mde={type:f.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},vde={type:f.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:f.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},Ede={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Jn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:mde},Tde={type:f.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:f.Project,entityId:ot},VB={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:f.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,codeName:null,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:X.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:f.LiteralValue,standaloneParent:null,autogeneration:{type:Dr.Random,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:vde},dataType:Ede,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:Tde},bde={type:f.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:f.Project,entityId:ot},Ade={id:"is-test-environment-variable-instance-id",type:f.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:VB,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:bde,x:0,y:0},HE={type:f.Project,id:ot,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Mocked project to compile",description:"This project is used to test all sorts of features and edge cases. It is not meant to be used in production. Or to have any functionality that makes sense",projects:[coe],entities:[oE,ls,lE,Di,iX,Rs,Th,q2,Z2,Wl,MY,gs,$z,aE,zS,Gz,LY],functions:[$se,hL,gE,xse,Wse,_L,_E,pE,ooe,tL,Une],events:[MX],variableDeclarations:[VB,PB,PE,Xle,$B,lde],variableInstances:[Ade,yde],conditions:[],operations:[Xl],functionCalls:[MQ,Jee],loops:[Tle,SE,bB,dle,fB],searches:[Rle]};var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function NB(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var LB={exports:{}};(function(d,u){(function(i,a){d.exports=a()})(us,function(){var i=1e3,a=6e4,l=36e5,p="millisecond",t="second",y="minute",v="hour",b="day",w="week",A="month",V="quarter",L="year",j="date",k="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ie={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Oe){var Ie=["th","st","nd","rd"],ge=Oe%100;return"["+Oe+(Ie[(ge-20)%10]||Ie[ge]||Ie[0])+"]"}},te=function(Oe,Ie,ge){var Ue=String(Oe);return!Ue||Ue.length>=Ie?Oe:""+Array(Ie+1-Ue.length).join(ge)+Oe},pe={s:te,z:function(Oe){var Ie=-Oe.utcOffset(),ge=Math.abs(Ie),Ue=Math.floor(ge/60),$e=ge%60;return(Ie<=0?"+":"-")+te(Ue,2,"0")+":"+te($e,2,"0")},m:function Oe(Ie,ge){if(Ie.date()<ge.date())return-Oe(ge,Ie);var Ue=12*(ge.year()-Ie.year())+(ge.month()-Ie.month()),$e=Ie.clone().add(Ue,A),Qe=ge-$e<0,ut=Ie.clone().add(Ue+(Qe?-1:1),A);return+(-(Ue+(ge-$e)/(Qe?$e-ut:ut-$e))||0)},a:function(Oe){return Oe<0?Math.ceil(Oe)||0:Math.floor(Oe)},p:function(Oe){return{M:A,y:L,w,d:b,D:j,h:v,m:y,s:t,ms:p,Q:V}[Oe]||String(Oe||"").toLowerCase().replace(/s$/,"")},u:function(Oe){return Oe===void 0}},ne="en",ve={};ve[ne]=ie;var J="$isDayjsObject",ae=function(Oe){return Oe instanceof Ee||!(!Oe||!Oe[J])},ce=function Oe(Ie,ge,Ue){var $e;if(!Ie)return ne;if(typeof Ie=="string"){var Qe=Ie.toLowerCase();ve[Qe]&&($e=Qe),ge&&(ve[Qe]=ge,$e=Qe);var ut=Ie.split("-");if(!$e&&ut.length>1)return Oe(ut[0])}else{var Jt=Ie.name;ve[Jt]=Ie,$e=Jt}return!Ue&&$e&&(ne=$e),$e||!Ue&&ne},Y=function(Oe,Ie){if(ae(Oe))return Oe.clone();var ge=typeof Ie=="object"?Ie:{};return ge.date=Oe,ge.args=arguments,new Ee(ge)},ue=pe;ue.l=ce,ue.i=ae,ue.w=function(Oe,Ie){return Y(Oe,{locale:Ie.$L,utc:Ie.$u,x:Ie.$x,$offset:Ie.$offset})};var Ee=function(){function Oe(ge){this.$L=ce(ge.locale,null,!0),this.parse(ge),this.$x=this.$x||ge.x||{},this[J]=!0}var Ie=Oe.prototype;return Ie.parse=function(ge){this.$d=function(Ue){var $e=Ue.date,Qe=Ue.utc;if($e===null)return new Date(NaN);if(ue.u($e))return new Date;if($e instanceof Date)return new Date($e);if(typeof $e=="string"&&!/Z$/i.test($e)){var ut=$e.match(S);if(ut){var Jt=ut[2]-1||0,ar=(ut[7]||"0").substring(0,3);return Qe?new Date(Date.UTC(ut[1],Jt,ut[3]||1,ut[4]||0,ut[5]||0,ut[6]||0,ar)):new Date(ut[1],Jt,ut[3]||1,ut[4]||0,ut[5]||0,ut[6]||0,ar)}}return new Date($e)}(ge),this.init()},Ie.init=function(){var ge=this.$d;this.$y=ge.getFullYear(),this.$M=ge.getMonth(),this.$D=ge.getDate(),this.$W=ge.getDay(),this.$H=ge.getHours(),this.$m=ge.getMinutes(),this.$s=ge.getSeconds(),this.$ms=ge.getMilliseconds()},Ie.$utils=function(){return ue},Ie.isValid=function(){return this.$d.toString()!==k},Ie.isSame=function(ge,Ue){var $e=Y(ge);return this.startOf(Ue)<=$e&&$e<=this.endOf(Ue)},Ie.isAfter=function(ge,Ue){return Y(ge)<this.startOf(Ue)},Ie.isBefore=function(ge,Ue){return this.endOf(Ue)<Y(ge)},Ie.$g=function(ge,Ue,$e){return ue.u(ge)?this[Ue]:this.set($e,ge)},Ie.unix=function(){return Math.floor(this.valueOf()/1e3)},Ie.valueOf=function(){return this.$d.getTime()},Ie.startOf=function(ge,Ue){var $e=this,Qe=!!ue.u(Ue)||Ue,ut=ue.p(ge),Jt=function($n,pi){var sn=ue.w($e.$u?Date.UTC($e.$y,pi,$n):new Date($e.$y,pi,$n),$e);return Qe?sn:sn.endOf(b)},ar=function($n,pi){return ue.w($e.toDate()[$n].apply($e.toDate("s"),(Qe?[0,0,0,0]:[23,59,59,999]).slice(pi)),$e)},Ar=this.$W,Ur=this.$M,Gr=this.$D,Li="set"+(this.$u?"UTC":"");switch(ut){case L:return Qe?Jt(1,0):Jt(31,11);case A:return Qe?Jt(1,Ur):Jt(0,Ur+1);case w:var Cn=this.$locale().weekStart||0,Qa=(Ar<Cn?Ar+7:Ar)-Cn;return Jt(Qe?Gr-Qa:Gr+(6-Qa),Ur);case b:case j:return ar(Li+"Hours",0);case v:return ar(Li+"Minutes",1);case y:return ar(Li+"Seconds",2);case t:return ar(Li+"Milliseconds",3);default:return this.clone()}},Ie.endOf=function(ge){return this.startOf(ge,!1)},Ie.$set=function(ge,Ue){var $e,Qe=ue.p(ge),ut="set"+(this.$u?"UTC":""),Jt=($e={},$e[b]=ut+"Date",$e[j]=ut+"Date",$e[A]=ut+"Month",$e[L]=ut+"FullYear",$e[v]=ut+"Hours",$e[y]=ut+"Minutes",$e[t]=ut+"Seconds",$e[p]=ut+"Milliseconds",$e)[Qe],ar=Qe===b?this.$D+(Ue-this.$W):Ue;if(Qe===A||Qe===L){var Ar=this.clone().set(j,1);Ar.$d[Jt](ar),Ar.init(),this.$d=Ar.set(j,Math.min(this.$D,Ar.daysInMonth())).$d}else Jt&&this.$d[Jt](ar);return this.init(),this},Ie.set=function(ge,Ue){return this.clone().$set(ge,Ue)},Ie.get=function(ge){return this[ue.p(ge)]()},Ie.add=function(ge,Ue){var $e,Qe=this;ge=Number(ge);var ut=ue.p(Ue),Jt=function(Ur){var Gr=Y(Qe);return ue.w(Gr.date(Gr.date()+Math.round(Ur*ge)),Qe)};if(ut===A)return this.set(A,this.$M+ge);if(ut===L)return this.set(L,this.$y+ge);if(ut===b)return Jt(1);if(ut===w)return Jt(7);var ar=($e={},$e[y]=a,$e[v]=l,$e[t]=i,$e)[ut]||1,Ar=this.$d.getTime()+ge*ar;return ue.w(Ar,this)},Ie.subtract=function(ge,Ue){return this.add(-1*ge,Ue)},Ie.format=function(ge){var Ue=this,$e=this.$locale();if(!this.isValid())return $e.invalidDate||k;var Qe=ge||"YYYY-MM-DDTHH:mm:ssZ",ut=ue.z(this),Jt=this.$H,ar=this.$m,Ar=this.$M,Ur=$e.weekdays,Gr=$e.months,Li=$e.meridiem,Cn=function(pi,sn,eo,il){return pi&&(pi[sn]||pi(Ue,Qe))||eo[sn].slice(0,il)},Qa=function(pi){return ue.s(Jt%12||12,pi,"0")},$n=Li||function(pi,sn,eo){var il=pi<12?"AM":"PM";return eo?il.toLowerCase():il};return Qe.replace(H,function(pi,sn){return sn||function(eo){switch(eo){case"YY":return String(Ue.$y).slice(-2);case"YYYY":return ue.s(Ue.$y,4,"0");case"M":return Ar+1;case"MM":return ue.s(Ar+1,2,"0");case"MMM":return Cn($e.monthsShort,Ar,Gr,3);case"MMMM":return Cn(Gr,Ar);case"D":return Ue.$D;case"DD":return ue.s(Ue.$D,2,"0");case"d":return String(Ue.$W);case"dd":return Cn($e.weekdaysMin,Ue.$W,Ur,2);case"ddd":return Cn($e.weekdaysShort,Ue.$W,Ur,3);case"dddd":return Ur[Ue.$W];case"H":return String(Jt);case"HH":return ue.s(Jt,2,"0");case"h":return Qa(1);case"hh":return Qa(2);case"a":return $n(Jt,ar,!0);case"A":return $n(Jt,ar,!1);case"m":return String(ar);case"mm":return ue.s(ar,2,"0");case"s":return String(Ue.$s);case"ss":return ue.s(Ue.$s,2,"0");case"SSS":return ue.s(Ue.$ms,3,"0");case"Z":return ut}return null}(pi)||ut.replace(":","")})},Ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Ie.diff=function(ge,Ue,$e){var Qe,ut=this,Jt=ue.p(Ue),ar=Y(ge),Ar=(ar.utcOffset()-this.utcOffset())*a,Ur=this-ar,Gr=function(){return ue.m(ut,ar)};switch(Jt){case L:Qe=Gr()/12;break;case A:Qe=Gr();break;case V:Qe=Gr()/3;break;case w:Qe=(Ur-Ar)/6048e5;break;case b:Qe=(Ur-Ar)/864e5;break;case v:Qe=Ur/l;break;case y:Qe=Ur/a;break;case t:Qe=Ur/i;break;default:Qe=Ur}return $e?Qe:ue.a(Qe)},Ie.daysInMonth=function(){return this.endOf(A).$D},Ie.$locale=function(){return ve[this.$L]},Ie.locale=function(ge,Ue){if(!ge)return this.$L;var $e=this.clone(),Qe=ce(ge,Ue,!0);return Qe&&($e.$L=Qe),$e},Ie.clone=function(){return ue.w(this.$d,this)},Ie.toDate=function(){return new Date(this.valueOf())},Ie.toJSON=function(){return this.isValid()?this.toISOString():null},Ie.toISOString=function(){return this.$d.toISOString()},Ie.toString=function(){return this.$d.toUTCString()},Oe}(),Ve=Ee.prototype;return Y.prototype=Ve,[["$ms",p],["$s",t],["$m",y],["$H",v],["$W",b],["$M",A],["$y",L],["$D",j]].forEach(function(Oe){Ve[Oe[1]]=function(Ie){return this.$g(Ie,Oe[0],Oe[1])}}),Y.extend=function(Oe,Ie){return Oe.$i||(Oe(Ie,Ee,Y),Oe.$i=!0),Y},Y.locale=ce,Y.isDayjs=ae,Y.unix=function(Oe){return Y(1e3*Oe)},Y.en=ve[ne],Y.Ls=ve,Y.p={},Y})})(LB);var Ide=LB.exports;const N=NB(Ide);var Z=(d=>(d.Error="error",d.Warning="warning",d))(Z||{}),le=(d=>(d.InvalidObjectStructure="invalid-object-structure",d.NameNotUniqueInScope="name-not-unique-in-scope",d.EmptyName="empty-name",d.MissingCaller="missing-caller",d.PropertyOverwritesOtherSiblingWithSameName="property-overwrites-other-sibling-with-same-name",d.PropertyOverwritesOtherSiblingWithSameImplementation="property-overwrites-other-sibling-with-same-name",d.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName="property-overwrites-other-implemented-entitys-property-with-same-name",d.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation="property-overwrites-other-implemented-entitys-property-with-same-name",d.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation="property-overwrites-other-extended-entitys-property-with-same-name",d.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName="property-overwrites-other-extended-entitys-property-with-same-name",d.PropertyOverwritesBasePropertyWithSameName="property-overwrites-base-property-with-same-name",d.PropertyOverwritesBasePropertyWithSameImplementation="property-overwrites-base-property-with-same-name",d.MethodOverwritesOtherSiblingWithSameName="method-overwrites-other-sibling-with-same-name",d.MethodOverwritesOtherSiblingWithSameImplementation="method-overwrites-other-sibling-with-same-name",d.MethodOverwritesOtherImplementedEntitysMethodWithSameName="method-overwrites-other-implemented-entitys-method-with-same-name",d.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation="method-overwrites-other-implemented-entitys-method-with-same-name",d.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation="method-overwrites-other-extended-entitys-method-with-same-name",d.MethodOverwritesOtherExtendedEntitysMethodWithSameName="method-overwrites-other-extended-entitys-method-with-same-name",d.MethodOverwritesBaseMethodWithSameName="method-overwrites-base-method-with-same-name",d.MethodOverwritesBaseMethodWithSameImplementation="method-overwrites-base-method-with-same-name",d.LoopBodyFunctionOverwrite="loop-body-function-overwrite",d.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",d.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",d.UnreachableEntity="unreachable-entity",d.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",d.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",d.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",d.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",d.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",d))(le||{}),q=(d=>(d.RootReference="root-reference",d.InvalidUUIDStringFormat="invalid-uuid-string-format",d.ReferencedEntityNotFound="referenced-entity-not-found",d.EntityIdNotUnique="entity-id-not-unique",d.BuiltInEntityGenerated="built-in-entity-generated",d.BuiltInEntityUpdated="built-in-entity-updated",d.BuiltInEntityDeleted="built-in-entity-deleted",d.UnknownEntityType="unknown-entity-type",d.MissingTypeProperty="missing-type-property",d.MissingIdProperty="missing-id-property",d.BuiltInEntityParent="built-in-entity-parent",d.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",d.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",d.RecommendedImplementOperationAction="recommended-implement-operation-action",d.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",d.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",d.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",d.RecommendedImplementConditionAction="recommended-implement-condition-action",d.InvalidReferenceObjectStructure="invalid-reference-object-structure",d.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",d.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",d.InvalidParentReference="invalid-parent-reference",d.InvalidImplementsReference="invalid-implements-reference",d.InvalidExtendsReference="invalid-extends-reference",d.InvalidGenerationActionPayload="invalid-generation-action-payload",d.InvalidReference="invalid-reference",d.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",d.InvalidUpdateEntityOperation="invalid-update-entity-operation",d.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",d.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",d.UnrecognizedProperty="unrecognized-property",d.SelfReference="self-reference",d.DuplicateReference="duplicate-reference",d.CallerWithIncompatibleScope="caller-with-incompatible-scope",d.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",d.InvalidInputMapDeclaration="invalid-input-map-declaration",d.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",d.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",d.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",d.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",d.OutputOverwrite="output-overwrite",d.InputOverwrite="input-overwrite",d.IncompatibleScope="incompatible-scope",d.InvalidParentUpdate="invalid-parent-update",d.NonInteractiveEntityReferenced="non-interactive-entity-referenced",d.InvalidParentRelationType="invalid-parent-relation-type",d))(q||{}),se=(d=>(d.NoPrimaryKeyProperty="no-primary-key-property",d.ScopeWithoutLogic="scope-without-logic",d.AbstractEntityImplements="abstract-entity-implements",d.ImplementsIncompatibleEntities="implements-incompatible-entities",d.ExtendsIncompatibleEntities="extends-incompatible-entities",d.NonAbstractExtendingAbstractEntity="non-abstract-extending-abstract-entity",d.AbstractExtendingNonAbstractEntity="abstract-extending-non-abstract-entity",d.NonStaticExtendingStaticEntity="non-static-extending-static-entity",d.StaticExtendingNonStaticEntity="static-extending-non-static-entity",d.StaticImplementingNonStaticEntity="static-implementing-non-static-entity",d.NonStaticImplementingStaticEntity="non-static-implementing-static-entity",d.ImplementingNonAbstractEntity="implementing-non-abstract-entity",d.ExtendingNonInteractiveEntity="extending-non-interactive-entity",d.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",d.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",d.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",d.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",d.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",d.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",d.IncorrectEntityImplementation="incorrect-entity-implementation",d.IncorrectMethodImplementation="incorrect-method-implementation",d.IncorrectPropertyImplementation="incorrect-property-implementation",d.PropertyImplementsNonAbstact="property-implements-non-abstract",d.NonStaticPropertyImplementsStatic="non-static-property-implements-static",d.StaticPropertyImplementsNonStatic="static-property-implements-non-static",d.PropertyImplementsIncompatibleType="property-implements-incompatible-type",d.MissingPropertyImplementation="missing-property-implementation",d.MissingMethodImplementation="missing-method-implementation",d.NoProperties="no-properties",d.ReadingFromIncompatibleType="reading-from-incompatible-type",d.WritingToIncompatibleType="writing-to-incompatible-type",d.InvalidPropertiesCombination="invalid-properties-combination",d.DisconnectedCallableEntity="disconnected-callable-entity",d.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",d.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",d.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",d.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",d.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",d.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",d))(se||{});class Q{constructor(u){D(this,"id");D(this,"message");D(this,"issue");D(this,"severity");D(this,"code");this.id=u.id,this.message=u.message,this.issue=u.issue,this.severity=u.severity,this.code=u.code}toEntityError(u){return this.code in le?new Zt({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:u}):null}}class Zt{constructor(u){D(this,"id");D(this,"message");D(this,"issue");D(this,"severity");D(this,"code");D(this,"entity");D(this,"firstRelationship");D(this,"secondRelationship");this.id=u.id,this.message=u.message,this.issue=u.issue,this.severity=u.severity,this.code=u.code,this.entity=u.entity,this.firstRelationship=u.firstRelationship,this.secondRelationship=u.secondRelationship}clone(){return new Zt({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity,firstRelationship:this.firstRelationship,secondRelationship:this.secondRelationship})}}function wde(d){const u=new Set;return d.filter(i=>u.has(i.id)?!1:(u.add(i.id),!0))}function lt(d){const u=d.entity.errors.find(a=>a.id===d.id);return u?{new:!1,error:u}:{new:!0,error:new Zt(d)}}function Rde(d,u){const i=new Map;return d.forEach(a=>{i.set(a.id,a)}),u.forEach(a=>{i.set(a.id,a)}),Array.from(i.values())}function Qt(d,u){const i=[];return u.forEach(a=>{const l=d.find(p=>p.id===a.id);l?i.push(l):i.push(a)}),i}const rc=B.union([B.string(),B.number(),B.boolean(),B.date()]),BB=B.enum([Dr.CurrentDateAndTime,Dr.Random,Dr.Unique]),Nh=B.object({type:BB,rangeStart:rc.nullable(),rangeEnd:rc.nullable()}),ic=Nh.extend({type:B.literal(Dr.Random),rangeStart:rc,rangeEnd:rc}),YE=Nh.extend({type:B.literal(Dr.Unique),rangeStart:B.null(),rangeEnd:B.null()}),MB=Nh.extend({type:B.literal(Dr.CurrentDateAndTime),rangeStart:B.null(),rangeEnd:B.null()}),Lh=ic.extend({rangeStart:B.number().nullable(),rangeEnd:B.number().nullable()}),UB=Lh.extend({rangeStart:B.number(),rangeEnd:B.null()}),jB=Lh.extend({rangeStart:B.null(),rangeEnd:B.number()}),xB=Lh.extend({rangeStart:B.number(),rangeEnd:B.number()}),Bh=ic.extend({rangeStart:B.number().nullable(),rangeEnd:B.number().nullable()}),FB=Bh.extend({rangeStart:B.number(),rangeEnd:B.null()}),GB=Bh.extend({rangeStart:B.null(),rangeEnd:B.number()}),KB=Bh.extend({rangeStart:B.number(),rangeEnd:B.number()}),Mh=ic.extend({rangeStart:B.date().nullable(),rangeEnd:B.date().nullable()}),kB=Mh.extend({rangeStart:B.date(),rangeEnd:B.null()}),SB=Mh.extend({rangeStart:B.null(),rangeEnd:B.date()}),qB=Mh.extend({rangeStart:B.date(),rangeEnd:B.date()}),zE=ic.extend({rangeStart:B.null(),rangeEnd:B.null()}),XE=B.union([FB,GB,KB]),QE=B.union([UB,jB,xB]),eT=B.union([kB,SB,qB,MB]),tT=B.union([XE,QE,eT,YE,zE]);function sc(){return B.union([B.object({type:B.literal(f.ValueDescriptor)}),B.record(B.string(),B.any())])}function ZB(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ValueDescriptor)})}function rT(){return B.object({id:B.string(),type:B.literal(f.ValueDescriptor),name:B.string(),required:B.boolean()})}function gde(){return rT().merge(B.object({version:B.number(),index:B.number()}))}function _de(){return rT().merge(B.object({}))}function Dde(){return B.object({dataType:Fo(),parent:jo()})}function Ode(){return gde().merge(Dde())}function Uh(){return B.union([B.object({type:B.literal(f.PrimitiveEntity)}),B.record(B.string(),B.any())])}function jh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.PrimitiveEntity)})}function xh(){return B.object({id:B.string(),type:B.literal(f.PrimitiveEntity),name:B.string(),description:B.string().nullable(),static:B.boolean(),abstract:B.boolean()})}function Cde(){return xh().merge(B.object({version:B.number()}))}function $de(){return xh().merge(B.object({}))}function Pde(){return B.object({properties:B.array(Uo()),methods:B.array(cs()),abstractMethods:B.array(wn()),extends:B.array(B.union([Uh(),rd()]))})}function Vde(){return Cde().merge(Pde())}function Uo(){return B.union([B.object({type:B.literal(f.Property)}),B.record(B.string(),B.any())])}function JB(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Property)})}function iT(){return B.object({id:B.string(),type:B.literal(f.Property),name:B.string(),description:B.string().nullable(),private:B.boolean(),static:B.boolean(),required:B.boolean(),abstract:B.boolean()})}function Nde(){return iT().merge(B.object({version:B.number(),index:B.number()}))}function Lde(){return iT().merge(B.object({}))}function Bde(){return B.object({dataType:Fo(),implements:Uo().nullable(),parent:B.union([ko(),jh(),Fh()])})}function Mde(){return Nde().merge(Bde())}function Ude(){return B.enum([Ce.CRON_JOB,Ce.EXECUTION,Ce.HTTP_ENDPOINT,Ce.PERSISTED_ENTITY,Ce.RELATIONAL_DATABASE])}function rd(){return B.union([B.object({type:B.literal(f.BuiltInBaseEntity)}),B.record(B.string(),B.any())])}function Fh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.BuiltInBaseEntity)})}function sT(){return B.object({id:B.string(),version:B.number(),type:B.literal(f.BuiltInBaseEntity),name:Ude(),description:B.string().nullable(),abstract:B.boolean(),static:B.boolean()})}function jde(){return sT()}function xde(){return sT().merge(B.object({}))}function Fde(){return B.object({properties:B.array(Uo()),methods:B.array(cs()),abstractMethods:B.array(wn()),extends:B.array(B.union([rd(),Uh()]))})}function Gde(){return jde().merge(Fde())}function wn(){return B.union([B.object({type:B.literal(f.ActionDescriptor)}),B.record(B.string(),B.any())])}function jo(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ActionDescriptor)})}function Gh(){return B.object({id:B.string(),type:B.literal(f.ActionDescriptor),name:B.string(),description:B.string().nullable()})}function Kde(){return Gh().merge(B.object({version:B.number()}))}function kde(){return Gh().merge(B.object({}))}function Sde(){return B.object({inputs:B.array(sc()),outputs:B.array(sc()),parent:B.union([Si(),ko(),Fh(),jh()]).nullable()})}function WB(){return Kde().merge(Sde())}function id(){return B.union([B.object({type:B.literal(f.Loop)}),B.record(B.string(),B.any())])}function Rn(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Loop)})}function HB(){return B.object({id:B.string(),type:B.literal(f.Loop)})}function qde(){return HB().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Zde(){return HB().merge(B.object({declaration:B.union([B.string(),cs()])}))}function Jde(){return B.object({calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),declaration:wn(),inputs:B.array(Js()),outputs:B.array($i()),outputsDeclarations:B.array(sc()),successCalls:B.array(Qr()),errorCalls:B.array(Qr()),error:$i(),body:cs(),parent:B.union([aa(),Si()]),breakStatements:B.array(od()),continueStatements:B.array(sd())})}function Wde(){return qde().merge(Jde())}function sd(){return B.union([B.object({type:B.literal(f.ContinueStatement)}),B.record(B.string(),B.any())])}function nd(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ContinueStatement)})}function nT(){return B.object({id:B.string(),type:B.literal(f.ContinueStatement)})}function Hde(){return nT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Yde(){return nT().merge(B.object({}))}function zde(){return B.object({calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),outputs:B.array(ia()),throws:B.optional(ia()),parent:Rn()})}function Xde(){return Hde().merge(zde())}function xo(){return B.union([B.object({type:B.literal(f.ReturnStatement)}),B.record(B.string(),B.any())])}function ad(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ReturnStatement)})}function aT(){return B.object({id:B.string(),type:B.literal(f.ReturnStatement)})}function Qde(){return aT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function eue(){return aT().merge(B.object({}))}function tue(){return B.object({calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),outputs:B.array(ia()),throws:B.optional(ia()),parent:aa()})}function rue(){return Qde().merge(tue())}function ia(){return B.union([B.object({type:B.literal(f.ReturnDeclaration)}),B.record(B.string(),B.any())])}function YB(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ReturnDeclaration)})}function oT(){return B.object({id:B.string(),type:B.literal(f.ReturnDeclaration),name:B.string(),description:B.string().nullable(),isError:B.boolean()})}function iue(){return oT().merge(B.object({version:B.number(),index:B.number()}))}function sue(){return oT().merge(B.object({}))}function nue(){return B.object({dataType:Fo().nullable(),readsValue:uc().nullable(),parent:B.union([ad(),jo(),sa(),nd()])})}function aue(){return iue().merge(nue())}function od(){return B.union([B.object({type:B.literal(f.BreakStatement)}),B.record(B.string(),B.any())])}function sa(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.BreakStatement)})}function lT(){return B.object({id:B.string(),type:B.literal(f.BreakStatement)})}function oue(){return lT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function lue(){return lT().merge(B.object({}))}function due(){return B.object({calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),outputs:B.array(ia()),throws:B.optional(ia()),parent:Rn()})}function uue(){return oue().merge(due())}function $i(){return B.union([B.object({type:B.literal(f.OutputMap)}),B.record(B.string(),B.any())])}function dT(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.OutputMap)})}function uT(){return B.object({id:B.string(),type:B.literal(f.OutputMap)})}function cue(){return uT().merge(B.object({version:B.number(),index:B.number()}))}function pue(){return uT().merge(B.object({}))}function fue(){return B.object({writesValues:B.array(na()),declaration:B.union([ia(),Uo()]),parent:B.union([cr(),Rn(),sa()])})}function hue(){return cue().merge(fue())}function ld(){return B.union([B.object({type:B.literal(f.FunctionCall)}),B.record(B.string(),B.any())])}function nc(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.FunctionCall)})}function cT(){return B.object({id:B.string(),type:B.literal(f.FunctionCall)})}function yue(){return cT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function mue(){return cT().merge(B.object({}))}function vue(){return B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),writesValues:B.array(na()),declaration:cs(),inputs:B.array(Js()),outputs:B.array($i()),error:B.optional($i()),parent:B.union([aa(),Si()])})}function Eue(){return yue().merge(vue())}function Tue(){return B.enum([ur.Equal,ur.NotEqual,ur.MoreThan,ur.MoreThanOrEqual,ur.LessThan,ur.LessThanOrEqual,ur.And,ur.Or,Br.Empty,Br.NotEmpty])}function ac(){return B.union([B.object({type:B.literal(f.Condition)}),B.record(B.string(),B.any())])}function Kh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Condition)})}function pT(){return B.object({id:B.string(),type:B.literal(f.Condition)})}function bue(){return pT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Aue(){return pT().merge(B.object({}))}function Iue(){return B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),leftValue:Js(),rightValue:Js().nullable(),operator:Tue(),parent:B.union([aa(),Si()])})}function wue(){return bue().merge(Iue())}function oc(){return B.union([B.object({type:B.literal(f.Search)}),B.record(B.string(),B.any())])}function lc(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Search)})}function fT(){return B.object({id:B.string(),type:B.literal(f.Search),name:B.string(),query:B.any(),description:B.string().nullable()})}function Rue(){return fT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function gue(){return fT().merge(B.object({}))}function _ue(){return B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),inputsDeclarations:B.array(Ko()),inputs:B.array(Js()),outputsDeclarations:B.array(sc()),outputs:B.array($i()),parent:B.union([aa(),Si()]),error:$i().nullable()})}function Due(){return Rue().merge(_ue())}function dc(){return B.union([B.object({type:B.literal(f.InternalCall)}),B.record(B.string(),B.any())])}function hT(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.InternalCall)})}function yT(){return B.object({id:B.string(),type:B.literal(f.InternalCall),index:B.number()})}function Oue(){return yT().merge(B.object({version:B.number(),index:B.number()}))}function Cue(){return yT().merge(B.object({declaration:B.union([B.string(),cs()])}))}function $ue(){return B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),writesValues:B.array(na()),declaration:cs(),inputs:B.array(Js()),outputs:B.array($i()),parent:Va(),error:B.optional($i())})}function Pue(){return Oue().merge($ue())}function Js(){return B.union([B.object({type:B.literal(f.InputMap)}),B.record(B.string(),B.any())])}function kh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.InputMap)})}function mT(){return B.object({id:B.string(),type:B.literal(f.InputMap),name:B.string().nullable().optional(),description:B.string().nullable().optional()})}function Vue(){return mT().merge(B.object({version:B.number(),index:B.number()}))}function Nue(){return mT().merge(B.object({}))}function Lue(){return B.object({defaultValue:vT().nullable(),declaration:B.union([Ko(),Uo()]).nullable(),readsValue:uc().nullable(),parent:B.union([cr(),kh(),Rn(),sa()])})}function Bue(){return Vue().merge(Lue())}function dd(){return B.union([B.object({type:B.literal(f.Operation)}),B.record(B.string(),B.any())])}function ud(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.Operation)})}function Sh(){return B.object({id:B.string(),type:B.literal(f.Operation)})}function Mue(){return Sh().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Uue(){return Sh().merge(B.object({}))}function jue(){return Sh().merge(B.object({successCalls:B.array(Qr()),errorCalls:B.array(Qr()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),writesValues:B.array(na()),declaration:wn(),inputs:B.array(Js()),outputs:B.array($i()),error:B.array($i()),parent:B.union([aa(),Si()])}))}function xue(){return Mue().merge(jue())}function qh(){return B.union([B.string(),B.number(),B.boolean(),B.null(),B.date()])}function zB(){return B.record(B.string(),qh())}function Fue(){return B.array(B.union([qh(),zB()]))}function XB(){return B.union([qh(),zB(),Fue()])}function QB(){return B.union([qh(),XB()])}function eM(){return B.enum([X.String,X.Number,X.Boolean,X.Null,X.Date,X.KeyValue,X.Enum,X.File,X.UUID,X.EntityTemplate,X.ActionDescriptor])}function tM(){return B.union([ko(),ud(),cc()])}function Gue(){return B.object({id:B.string(),name:eM(),type:B.literal(f.LiteralValue),value:QB(),autogeneration:tT.nullable()})}function Kue(){return Gue().merge(B.object({}))}function Ws(){return B.object({id:B.string(),version:B.number(),name:eM(),type:B.literal(f.LiteralValue),value:QB(),valueAsTypeList:B.array(tM()).nullable(),valueAsTypeSingle:tM().nullable(),autogeneration:tT.nullable(),parent:B.union([ET(),kh()])})}function kue(){return Ws().extend({name:B.literal(X.String),value:B.string(),autogeneration:XE.nullable()})}function Sue(){return Ws().extend({name:B.literal(X.Number),value:B.number(),autogeneration:QE.nullable()})}function que(){return Ws().extend({name:B.literal(X.Boolean),value:B.boolean(),autogeneration:zE.nullable()})}function Zue(){return Ws().extend({name:B.literal(X.Null),value:B.null(),autogeneration:B.null()})}function Jue(){return Ws().extend({name:B.literal(X.Date),value:B.date(),autogeneration:eT.nullable()})}function Wue(){return Ws().extend({name:B.literal(X.KeyValue),value:XB(),autogeneration:B.null()})}function Hue(){return Ws().extend({name:B.literal(X.Enum),value:B.string(),autogeneration:B.null()})}function Yue(){return Ws().extend({name:B.literal(X.File),value:B.string(),autogeneration:B.null()})}function zue(){return Ws().extend({name:B.literal(X.UUID),value:B.string(),autogeneration:YE.nullable()})}function Xue(){return Ws().extend({name:B.literal(X.EntityTemplate),value:ko(),autogeneration:B.null()})}function Que(){return Ws().extend({name:B.literal(X.ActionDescriptor),value:cc(),autogeneration:B.null()})}function vT(){return B.union([kue(),Sue(),que(),Zue(),Jue(),Wue(),Hue(),Yue(),zue(),Xue(),Que()])}function Fo(){return B.union([B.object({type:B.literal(f.DataType)}),B.record(B.string(),B.any())])}function ET(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.DataType)})}function TT(){return B.object({id:B.string(),type:B.literal(f.DataType),isNullable:B.boolean(),isList:B.boolean(),constant:B.boolean(),asType:B.boolean(),options:B.array(B.string()).optional()})}function ece(){return TT().merge(B.object({version:B.number()}))}function tce(){return TT().merge(B.object({}))}function rce(){return B.object({defaultValue:vT().nullable(),entity:B.union([cd(),rd(),Uh(),wn()]).nullable(),parent:B.union([JB(),sM(),ZB()])})}function ice(){return ece().merge(rce())}function bT(){return B.union([B.object({type:B.literal(f.VariableDeclaration)}),B.record(B.string(),B.any())])}function sce(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.VariableDeclaration)})}function AT(){return B.object({id:B.string(),type:B.literal(f.VariableDeclaration),name:B.string(),description:B.string().nullable()})}function nce(){return AT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function ace(){return AT().merge(B.object({}))}function oce(){return B.object({dataType:Fo().nullable(),readsValue:uc().nullable(),writesValues:B.array(na()),inputs:B.array(Js()),outputs:B.array($i()),successCalls:B.array(Qr()),errorCalls:B.array(Qr()),internalCalls:B.array(dc()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),parent:B.union([aa(),Si()])})}function lce(){return nce().merge(oce())}function rM(){return B.union([B.object({type:B.literal(f.VariableInstance)}),B.record(B.string(),B.any())])}function dce(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.VariableInstance)})}function IT(){return B.object({id:B.string(),type:B.literal(f.VariableInstance)})}function uce(){return IT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function cce(){return IT().merge(B.object({}))}function pce(){return B.object({declaration:bT(),dataType:Fo().nullable(),readsValue:uc().nullable(),writesValues:B.array(na()),inputs:B.array(Js()),outputs:B.array($i()),successCalls:B.array(Qr()),errorCalls:B.array(Qr()),internalCalls:B.array(dc()),calledBySuccess:B.array(cr()),calledByError:B.array(cr()),calledByEntry:B.array(Zr()),parent:B.union([aa(),Si()])})}function fce(){return uce().merge(pce())}function wT(){return B.union([B.object({type:B.literal(f.InstalledProject)}),B.record(B.string(),B.any())])}function Zh(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.InstalledProject)})}function hce(){return B.object({id:B.string(),type:B.literal(f.InstalledProject)})}function yce(){return B.object({version:B.number(),x:B.number(),y:B.number()})}function mce(){return B.object({})}function vce(){return B.object({implements:Si(),description:B.string().nullable(),functions:B.array(cs()),events:B.array(RT()),parent:Si()})}function Ece(){return yce().merge(vce())}function RT(){return B.union([B.object({type:B.literal(f.GlobalEvent)}),B.record(B.string(),B.any())])}function Tce(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.GlobalEvent)})}function Jh(){return B.object({id:B.string(),type:B.literal(f.GlobalEvent),name:B.string(),collapsed:B.boolean()})}function bce(){return Jh().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Ace(){return Jh().merge(B.object({}))}function Ice(){return Jh().merge(B.object({returnStatements:B.array(xo()),implements:B.array(WB()),inputs:B.array(Ko()),calls:B.array(Qr()),parent:B.union([Si(),Zh()])}))}function wce(){return bce().merge(Ice())}function Go(){return B.union([bT(),rM()])}function Va(){return B.union([sce(),dce()])}function na(){return B.union([Go(),Js(),ia()])}function iM(){return B.union([Va(),kh(),YB()])}function uc(){return B.union([Go(),Ko(),$i(),dd(),dc(),ld()])}function Rce(){return B.union([Va(),gT(),dT(),ud(),hT(),nc()])}function gce(){return B.union([Ko(),$i(),na()])}function sM(){return B.union([gT(),dT(),iM()])}function Wh(){return RT()}function Hh(){return Tce()}function Yh(){return B.union([dd(),ld(),ac(),oc(),Go(),dc(),id()])}function cr(){return B.union([ud(),nc(),Kh(),lc(),Va(),hT(),Rn()])}function zh(){return B.union([dd(),ld(),ac(),oc(),Go(),id()])}function Xh(){return B.union([ud(),nc(),Kh(),lc(),Va(),Rn()])}function nM(){return B.union([Yh(),xo(),od(),sd()])}function Qr(){return B.union([cr(),ad(),sa(),nd()])}function aM(){return B.union([zh(),xo(),od(),sd()])}function oM(){return B.union([Xh(),ad(),sa(),nd()])}function Na(){return B.union([cs(),Wh()])}function Zr(){return B.union([cc(),Hh()])}function _ce(){return B.union([Yh(),Na()])}function Dce(){return B.union([cr(),Zr()])}function Oce(){return B.union([zh(),Na()])}function Cce(){return B.union([Xh(),Zr()])}function $ce(){return B.union([nM(),Na()])}function Pce(){return B.union([Qr(),Zr()])}function Vce(){return B.union([aM(),Na()])}function Nce(){return B.union([oM(),Zr()])}function Lce(){return B.union([Na(),id()])}function aa(){return B.union([Zr(),Rn()])}function Bce(){return B.union([Yh(),Na()])}function Mce(){return B.union([cr(),Zr()])}function Uce(){return B.union([zh(),Na()])}function jce(){return B.union([Xh(),Zr()])}function xce(){return B.union([xo(),od(),sd()])}function Fce(){return B.union([ad(),sa(),nd()])}function Gce(){return B.union([rd(),Qce(),wT(),cd(),cs(),Wh(),Go(),Js(),$i(),ac(),dd(),ld(),ia(),Ko(),Uh(),Fo(),Uo(),wn(),xo(),sd(),od(),id(),oc(),wn(),wn(),sc(),dc()])}function Kce(){return B.union([Fh(),Si(),Zh(),ko(),cc(),Hh(),Va(),kh(),dT(),Kh(),ud(),nc(),YB(),gT(),jh(),ET(),JB(),jo(),ad(),nd(),sa(),Rn(),lc(),jo(),jo(),ZB(),hT()])}function kce(){return B.union([wT(),cd(),cs(),Wh(),Go(),ac(),dd(),ld(),xo(),sd(),od(),id(),oc()])}function Sce(){return B.union([Zh(),ko(),cc(),Hh(),Va(),Kh(),ud(),nc(),ad(),nd(),sa(),Rn(),lc()])}function Ko(){return B.union([B.object({type:B.literal(f.ArgumentDeclaration)}),B.record(B.string(),B.any())])}function gT(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.ArgumentDeclaration)})}function _T(){return B.object({id:B.string(),type:B.literal(f.ArgumentDeclaration)})}function qce(){return _T().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function Zce(){return _T().merge(B.object({}))}function Jce(){return B.object({dataType:Fo().nullable(),writesValues:B.array(na()),parent:B.union([Zr(),jo(),jo(),lc(),sa()])})}function Wce(){return qce().merge(Jce())}function cs(){return B.union([B.object({type:B.literal(f.FunctionDeclaration)}),B.record(B.string(),B.any())])}function cc(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.FunctionDeclaration)})}function DT(){return B.object({id:B.string(),type:B.literal(f.FunctionDeclaration),name:B.string(),description:B.string().nullable()})}function Hce(){return DT().merge(B.object({version:B.number(),x:B.number(),y:B.number(),index:B.number().nullable()}))}function Yce(){return DT()}function zce(){return B.object({inputs:B.array(Ko()),implements:wn().nullable(),returnStatements:B.array(xo()),parent:B.union([Si(),Zh(),ko(),Rn(),Fh(),jh()])})}function Xce(){return Hce().merge(zce())}function Qce(){return B.union([B.object({type:B.literal(f.Project)}),B.record(B.string(),B.any())])}function Si(){return B.object({entityType:B.literal(f.Project),entityId:B.string(),id:B.string(),type:B.literal(f.GenericReference)})}function OT(){return B.object({id:B.string(),type:B.literal(f.Project),name:B.string(),description:B.string().nullable()})}function epe(){return OT().merge(B.object({version:B.number()}))}function tpe(){return OT()}function rpe(){return B.object({entities:B.array(cd()),functions:B.array(cs()),events:B.array(RT()),projects:B.array(wT()),variableDeclarations:B.array(bT()),variableInstances:B.array(rM()),conditions:B.array(ac()),operations:B.array(dd()),functionCalls:B.array(ld()),loops:B.array(id()),searches:B.array(oc())})}function ipe(){return epe().merge(rpe())}function cd(){return B.union([B.object({type:B.literal(f.DefinitionEntity)}),B.record(B.string(),B.any())])}function ko(){return B.object({id:B.string(),type:B.literal(f.GenericReference),entityId:B.string(),entityType:B.literal(f.DefinitionEntity)})}function CT(){return B.object({id:B.string(),type:B.literal(f.DefinitionEntity),name:B.string(),description:B.string().nullable(),static:B.boolean(),abstract:B.boolean()})}function spe(){return CT().merge(B.object({version:B.number(),x:B.number(),y:B.number()}))}function npe(){return CT().merge(B.object({}))}function ape(){return B.union([Si(),ET()])}function ope(){return B.object({properties:B.array(Uo()),methods:B.array(cs()),abstractMethods:B.array(wn()),extends:B.array(B.union([cd(),rd()])),implements:B.array(B.union([cd(),rd()])),parent:ape()})}function lpe(){return spe().merge(ope())}function dpe(d){return d instanceof Error&&d.name==="ZodError"&&"issues"in d&&Array.isArray(d.issues)}var upe=class extends Error{constructor(u,i){super(u,i);D(this,"name");D(this,"details");this.name="ZodValidationError",this.details=cpe(i)}toString(){return this.message}};function cpe(d){if(d){const u=d.cause;if(dpe(u))return u.issues}return[]}function ppe(d){return d.length!==0}var fpe=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function hpe(d){return d.length===1?d[0].toString():d.reduce((u,i)=>{if(typeof i=="number")return u+"["+i.toString()+"]";if(i.includes('"'))return u+'["'+ype(i)+'"]';if(!fpe.test(i))return u+'["'+i+'"]';const a=u.length===0?"":".";return u+a+i},"")}function ype(d){return d.replace(/"/g,'\\"')}var mpe="; ",vpe=99,lM="Validation error",Epe=": ",Tpe=", or ";function bpe(d={}){const{issueSeparator:u=mpe,unionSeparator:i=Tpe,prefixSeparator:a=Epe,prefix:l=lM,includePath:p=!0,maxIssuesInMessage:t=vpe}=d;return y=>{const v=y.slice(0,t).map(b=>Qh({issue:b,issueSeparator:u,unionSeparator:i,includePath:p})).join(u);return Ape(v,l,a)}}function Qh(d){const{issue:u,issueSeparator:i,unionSeparator:a,includePath:l}=d;if(u.code===De.invalid_union)return u.unionErrors.reduce((p,t)=>{const y=t.issues.map(v=>Qh({issue:v,issueSeparator:i,unionSeparator:a,includePath:l})).join(i);return p.includes(y)||p.push(y),p},[]).join(a);if(u.code===De.invalid_arguments)return[u.message,...u.argumentsError.issues.map(p=>Qh({issue:p,issueSeparator:i,unionSeparator:a,includePath:l}))].join(i);if(u.code===De.invalid_return_type)return[u.message,...u.returnTypeError.issues.map(p=>Qh({issue:p,issueSeparator:i,unionSeparator:a,includePath:l}))].join(i);if(l&&ppe(u.path)){if(u.path.length===1){const p=u.path[0];if(typeof p=="number")return`${u.message} at index ${p}`}return`${u.message} at "${hpe(u.path)}"`}return u.message}function Ape(d,u,i){return u!==null?d.length>0?[u,d].join(i):u:d.length>0?d:lM}function Ipe(d,u={}){const a=wpe(u)([d]);return new upe(a,{cause:new ki([d])})}function wpe(d){return"messageBuilder"in d?d.messageBuilder:bpe(d)}var dM="1.13.7",uM=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},ey=Array.prototype,$T=Object.prototype,cM=typeof Symbol<"u"?Symbol.prototype:null,Rpe=ey.push,pc=ey.slice,fc=$T.toString,gpe=$T.hasOwnProperty,pM=typeof ArrayBuffer<"u",_pe=typeof DataView<"u",Dpe=Array.isArray,fM=Object.keys,hM=Object.create,yM=pM&&ArrayBuffer.isView,Ope=isNaN,Cpe=isFinite,mM=!{toString:null}.propertyIsEnumerable("toString"),vM=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$pe=Math.pow(2,53)-1;function qi(d,u){return u=u==null?d.length-1:+u,function(){for(var i=Math.max(arguments.length-u,0),a=Array(i),l=0;l<i;l++)a[l]=arguments[l+u];switch(u){case 0:return d.call(this,a);case 1:return d.call(this,arguments[0],a);case 2:return d.call(this,arguments[0],arguments[1],a)}var p=Array(u+1);for(l=0;l<u;l++)p[l]=arguments[l];return p[u]=a,d.apply(this,p)}}function nr(d){var u=typeof d;return u==="function"||u==="object"&&!!d}function EM(d){return d===null}function TM(d){return d===void 0}function bM(d){return d===!0||d===!1||fc.call(d)==="[object Boolean]"}function Ppe(d){return!!(d&&d.nodeType===1)}function Ei(d){var u="[object "+d+"]";return function(i){return fc.call(i)===u}}const PT=Ei("String"),AM=Ei("Number"),Vpe=Ei("Date"),Npe=Ei("RegExp"),Lpe=Ei("Error"),IM=Ei("Symbol"),wM=Ei("ArrayBuffer");var RM=Ei("Function"),Bpe=uM.document&&uM.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Bpe!="function"&&(RM=function(d){return typeof d=="function"||!1});const Pi=RM,gM=Ei("Object");var _M=_pe&&(!/\[native code\]/.test(String(DataView))||gM(new DataView(new ArrayBuffer(8)))),VT=typeof Map<"u"&&gM(new Map),Mpe=Ei("DataView");function Upe(d){return d!=null&&Pi(d.getInt8)&&wM(d.buffer)}const ty=_M?Upe:Mpe,So=Dpe||Ei("Array");function La(d,u){return d!=null&&gpe.call(d,u)}var NT=Ei("Arguments");(function(){NT(arguments)||(NT=function(d){return La(d,"callee")})})();const LT=NT;function jpe(d){return!IM(d)&&Cpe(d)&&!isNaN(parseFloat(d))}function DM(d){return AM(d)&&Ope(d)}function OM(d){return function(){return d}}function CM(d){return function(u){var i=d(u);return typeof i=="number"&&i>=0&&i<=$pe}}function $M(d){return function(u){return u==null?void 0:u[d]}}const ry=$M("byteLength"),xpe=CM(ry);var Fpe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Gpe(d){return yM?yM(d)&&!ty(d):xpe(d)&&Fpe.test(fc.call(d))}const PM=pM?Gpe:OM(!1),Zi=$M("length");function Kpe(d){for(var u={},i=d.length,a=0;a<i;++a)u[d[a]]=!0;return{contains:function(l){return u[l]===!0},push:function(l){return u[l]=!0,d.push(l)}}}function VM(d,u){u=Kpe(u);var i=vM.length,a=d.constructor,l=Pi(a)&&a.prototype||$T,p="constructor";for(La(d,p)&&!u.contains(p)&&u.push(p);i--;)p=vM[i],p in d&&d[p]!==l[p]&&!u.contains(p)&&u.push(p)}function ai(d){if(!nr(d))return[];if(fM)return fM(d);var u=[];for(var i in d)La(d,i)&&u.push(i);return mM&&VM(d,u),u}function hc(d){if(d==null)return!0;var u=Zi(d);return typeof u=="number"&&(So(d)||PT(d)||LT(d))?u===0:Zi(ai(d))===0}function NM(d,u){var i=ai(u),a=i.length;if(d==null)return!a;for(var l=Object(d),p=0;p<a;p++){var t=i[p];if(u[t]!==l[t]||!(t in l))return!1}return!0}function tr(d){if(d instanceof tr)return d;if(!(this instanceof tr))return new tr(d);this._wrapped=d}tr.VERSION=dM,tr.prototype.value=function(){return this._wrapped},tr.prototype.valueOf=tr.prototype.toJSON=tr.prototype.value,tr.prototype.toString=function(){return String(this._wrapped)};function LM(d){return new Uint8Array(d.buffer||d,d.byteOffset||0,ry(d))}var BM="[object DataView]";function BT(d,u,i,a){if(d===u)return d!==0||1/d===1/u;if(d==null||u==null)return!1;if(d!==d)return u!==u;var l=typeof d;return l!=="function"&&l!=="object"&&typeof u!="object"?!1:MM(d,u,i,a)}function MM(d,u,i,a){d instanceof tr&&(d=d._wrapped),u instanceof tr&&(u=u._wrapped);var l=fc.call(d);if(l!==fc.call(u))return!1;if(_M&&l=="[object Object]"&&ty(d)){if(!ty(u))return!1;l=BM}switch(l){case"[object RegExp]":case"[object String]":return""+d==""+u;case"[object Number]":return+d!=+d?+u!=+u:+d==0?1/+d===1/u:+d==+u;case"[object Date]":case"[object Boolean]":return+d==+u;case"[object Symbol]":return cM.valueOf.call(d)===cM.valueOf.call(u);case"[object ArrayBuffer]":case BM:return MM(LM(d),LM(u),i,a)}var p=l==="[object Array]";if(!p&&PM(d)){var t=ry(d);if(t!==ry(u))return!1;if(d.buffer===u.buffer&&d.byteOffset===u.byteOffset)return!0;p=!0}if(!p){if(typeof d!="object"||typeof u!="object")return!1;var y=d.constructor,v=u.constructor;if(y!==v&&!(Pi(y)&&y instanceof y&&Pi(v)&&v instanceof v)&&"constructor"in d&&"constructor"in u)return!1}i=i||[],a=a||[];for(var b=i.length;b--;)if(i[b]===d)return a[b]===u;if(i.push(d),a.push(u),p){if(b=d.length,b!==u.length)return!1;for(;b--;)if(!BT(d[b],u[b],i,a))return!1}else{var w=ai(d),A;if(b=w.length,ai(u).length!==b)return!1;for(;b--;)if(A=w[b],!(La(u,A)&&BT(d[A],u[A],i,a)))return!1}return i.pop(),a.pop(),!0}function kpe(d,u){return BT(d,u)}function yc(d){if(!nr(d))return[];var u=[];for(var i in d)u.push(i);return mM&&VM(d,u),u}function MT(d){var u=Zi(d);return function(i){if(i==null)return!1;var a=yc(i);if(Zi(a))return!1;for(var l=0;l<u;l++)if(!Pi(i[d[l]]))return!1;return d!==xM||!Pi(i[UT])}}var UT="forEach",UM="has",jT=["clear","delete"],jM=["get",UM,"set"],Spe=jT.concat(UT,jM),xM=jT.concat(jM),qpe=["add"].concat(jT,UT,UM);const Zpe=VT?MT(Spe):Ei("Map"),Jpe=VT?MT(xM):Ei("WeakMap"),Wpe=VT?MT(qpe):Ei("Set"),Hpe=Ei("WeakSet");function pd(d){for(var u=ai(d),i=u.length,a=Array(i),l=0;l<i;l++)a[l]=d[u[l]];return a}function Ype(d){for(var u=ai(d),i=u.length,a=Array(i),l=0;l<i;l++)a[l]=[u[l],d[u[l]]];return a}function FM(d){for(var u={},i=ai(d),a=0,l=i.length;a<l;a++)u[d[i[a]]]=i[a];return u}function xT(d){var u=[];for(var i in d)Pi(d[i])&&u.push(i);return u.sort()}function FT(d,u){return function(i){var a=arguments.length;if(u&&(i=Object(i)),a<2||i==null)return i;for(var l=1;l<a;l++)for(var p=arguments[l],t=d(p),y=t.length,v=0;v<y;v++){var b=t[v];(!u||i[b]===void 0)&&(i[b]=p[b])}return i}}const GM=FT(yc),iy=FT(ai),KM=FT(yc,!0);function zpe(){return function(){}}function kM(d){if(!nr(d))return{};if(hM)return hM(d);var u=zpe();u.prototype=d;var i=new u;return u.prototype=null,i}function Xpe(d,u){var i=kM(d);return u&&iy(i,u),i}function Qpe(d){return nr(d)?So(d)?d.slice():GM({},d):d}function efe(d,u){return u(d),d}function SM(d){return So(d)?d:[d]}tr.toPath=SM;function mc(d){return tr.toPath(d)}function GT(d,u){for(var i=u.length,a=0;a<i;a++){if(d==null)return;d=d[u[a]]}return i?d:void 0}function qM(d,u,i){var a=GT(d,mc(u));return TM(a)?i:a}function tfe(d,u){u=mc(u);for(var i=u.length,a=0;a<i;a++){var l=u[a];if(!La(d,l))return!1;d=d[l]}return!!i}function KT(d){return d}function vc(d){return d=iy({},d),function(u){return NM(u,d)}}function kT(d){return d=mc(d),function(u){return GT(u,d)}}function Ec(d,u,i){if(u===void 0)return d;switch(i??3){case 1:return function(a){return d.call(u,a)};case 3:return function(a,l,p){return d.call(u,a,l,p)};case 4:return function(a,l,p,t){return d.call(u,a,l,p,t)}}return function(){return d.apply(u,arguments)}}function ZM(d,u,i){return d==null?KT:Pi(d)?Ec(d,u,i):nr(d)&&!So(d)?vc(d):kT(d)}function ST(d,u){return ZM(d,u,1/0)}tr.iteratee=ST;function Ji(d,u,i){return tr.iteratee!==ST?tr.iteratee(d,u):ZM(d,u,i)}function rfe(d,u,i){u=Ji(u,i);for(var a=ai(d),l=a.length,p={},t=0;t<l;t++){var y=a[t];p[y]=u(d[y],y,d)}return p}function JM(){}function ife(d){return d==null?JM:function(u){return qM(d,u)}}function sfe(d,u,i){var a=Array(Math.max(0,d));u=Ec(u,i,1);for(var l=0;l<d;l++)a[l]=u(l);return a}function qT(d,u){return u==null&&(u=d,d=0),d+Math.floor(Math.random()*(u-d+1))}const Tc=Date.now||function(){return new Date().getTime()};function WM(d){var u=function(p){return d[p]},i="(?:"+ai(d).join("|")+")",a=RegExp(i),l=RegExp(i,"g");return function(p){return p=p==null?"":""+p,a.test(p)?p.replace(l,u):p}}const HM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},nfe=WM(HM),afe=FM(HM),ofe=WM(afe),lfe=tr.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ZT=/(.)^/,dfe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ufe=/\\|'|\r|\n|\u2028|\u2029/g;function cfe(d){return"\\"+dfe[d]}var pfe=/^\s*(\w|\$)+\s*$/;function ffe(d,u,i){!u&&i&&(u=i),u=KM({},u,tr.templateSettings);var a=RegExp([(u.escape||ZT).source,(u.interpolate||ZT).source,(u.evaluate||ZT).source].join("|")+"|$","g"),l=0,p="__p+='";d.replace(a,function(b,w,A,V,L){return p+=d.slice(l,L).replace(ufe,cfe),l=L+b.length,w?p+=`'+
2
2
  ((__t=(`+w+`))==null?'':_.escape(__t))+
3
3
  '`:A?p+=`'+
4
4
  ((__t=(`+A+`))==null?'':__t)+
@@ -10,7 +10,7 @@ __p+='`),b}),p+=`';
10
10
  `,t="obj";p=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
11
11
  `+p+`return __p;
12
12
  `;var y;try{y=new Function(t,"_",p)}catch(b){throw b.source=p,b}var v=function(b){return y.call(this,b,tr)};return v.source="function("+t+`){
13
- `+p+"}",v}function hfe(d,u,i){u=mc(u);var a=u.length;if(!a)return Pi(i)?i.call(d):i;for(var l=0;l<a;l++){var p=d==null?void 0:d[u[l]];p===void 0&&(p=i,l=a),d=Pi(p)?p.call(d):p}return d}var yfe=0;function mfe(d){var u=++yfe+"";return d?d+u:u}function vfe(d){var u=tr(d);return u._chain=!0,u}function YM(d,u,i,a,l){if(!(a instanceof u))return d.apply(i,l);var p=kM(d.prototype),t=d.apply(p,l);return nr(t)?t:p}var fd=qi(function(d,u){var i=fd.placeholder,a=function(){for(var l=0,p=u.length,t=Array(p),y=0;y<p;y++)t[y]=u[y]===i?arguments[l++]:u[y];for(;l<arguments.length;)t.push(arguments[l++]);return YM(d,a,this,this,t)};return a});fd.placeholder=tr;const zM=qi(function(d,u,i){if(!Pi(d))throw new TypeError("Bind must be called on a function");var a=qi(function(l){return YM(d,a,u,this,i.concat(l))});return a}),ps=CM(Zi);function qo(d,u,i,a){if(a=a||[],!u&&u!==0)u=1/0;else if(u<=0)return a.concat(d);for(var l=a.length,p=0,t=Zi(d);p<t;p++){var y=d[p];if(ps(y)&&(So(y)||LT(y)))if(u>1)qo(y,u-1,i,a),l=a.length;else for(var v=0,b=y.length;v<b;)a[l++]=y[v++];else i||(a[l++]=y)}return a}const Efe=qi(function(d,u){u=qo(u,!1,!1);var i=u.length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var a=u[i];d[a]=zM(d[a],d)}return d});function Tfe(d,u){var i=function(a){var l=i.cache,p=""+(u?u.apply(this,arguments):a);return La(l,p)||(l[p]=d.apply(this,arguments)),l[p]};return i.cache={},i}const XM=qi(function(d,u,i){return setTimeout(function(){return d.apply(null,i)},u)}),bfe=fd(XM,tr,1);function Afe(d,u,i){var a,l,p,t,y=0;i||(i={});var v=function(){y=i.leading===!1?0:Tc(),a=null,t=d.apply(l,p),a||(l=p=null)},b=function(){var w=Tc();!y&&i.leading===!1&&(y=w);var A=u-(w-y);return l=this,p=arguments,A<=0||A>u?(a&&(clearTimeout(a),a=null),y=w,t=d.apply(l,p),a||(l=p=null)):!a&&i.trailing!==!1&&(a=setTimeout(v,A)),t};return b.cancel=function(){clearTimeout(a),y=0,a=l=p=null},b}function Ife(d,u,i){var a,l,p,t,y,v=function(){var w=Tc()-l;u>w?a=setTimeout(v,u-w):(a=null,i||(t=d.apply(y,p)),a||(p=y=null))},b=qi(function(w){return y=this,p=w,l=Tc(),a||(a=setTimeout(v,u),i&&(t=d.apply(y,p))),t});return b.cancel=function(){clearTimeout(a),a=p=y=null},b}function wfe(d,u){return fd(u,d)}function JT(d){return function(){return!d.apply(this,arguments)}}function Rfe(){var d=arguments,u=d.length-1;return function(){for(var i=u,a=d[u].apply(this,arguments);i--;)a=d[i].call(this,a);return a}}function gfe(d,u){return function(){if(--d<1)return u.apply(this,arguments)}}function QM(d,u){var i;return function(){return--d>0&&(i=u.apply(this,arguments)),d<=1&&(u=null),i}}const _fe=fd(QM,2);function e3(d,u,i){u=Ji(u,i);for(var a=ai(d),l,p=0,t=a.length;p<t;p++)if(l=a[p],u(d[l],l,d))return l}function t3(d){return function(u,i,a){i=Ji(i,a);for(var l=Zi(u),p=d>0?0:l-1;p>=0&&p<l;p+=d)if(i(u[p],p,u))return p;return-1}}const WT=t3(1),r3=t3(-1);function i3(d,u,i,a){i=Ji(i,a,1);for(var l=i(u),p=0,t=Zi(d);p<t;){var y=Math.floor((p+t)/2);i(d[y])<l?p=y+1:t=y}return p}function s3(d,u,i){return function(a,l,p){var t=0,y=Zi(a);if(typeof p=="number")d>0?t=p>=0?p:Math.max(p+y,t):y=p>=0?Math.min(p+1,y):p+y+1;else if(i&&p&&y)return p=i(a,l),a[p]===l?p:-1;if(l!==l)return p=u(pc.call(a,t,y),DM),p>=0?p+t:-1;for(p=d>0?t:y-1;p>=0&&p<y;p+=d)if(a[p]===l)return p;return-1}}const n3=s3(1,WT,i3),Dfe=s3(-1,r3);function HT(d,u,i){var a=ps(d)?WT:e3,l=a(d,u,i);if(l!==void 0&&l!==-1)return d[l]}function Ofe(d,u){return HT(d,vc(u))}function oa(d,u,i){u=Ec(u,i);var a,l;if(ps(d))for(a=0,l=d.length;a<l;a++)u(d[a],a,d);else{var p=ai(d);for(a=0,l=p.length;a<l;a++)u(d[p[a]],p[a],d)}return d}function Zo(d,u,i){u=Ji(u,i);for(var a=!ps(d)&&ai(d),l=(a||d).length,p=Array(l),t=0;t<l;t++){var y=a?a[t]:t;p[t]=u(d[y],y,d)}return p}function a3(d){var u=function(i,a,l,p){var t=!ps(i)&&ai(i),y=(t||i).length,v=d>0?0:y-1;for(p||(l=i[t?t[v]:v],v+=d);v>=0&&v<y;v+=d){var b=t?t[v]:v;l=a(l,i[b],b,i)}return l};return function(i,a,l,p){var t=arguments.length>=3;return u(i,Ec(a,p,4),l,t)}}const YT=a3(1),o3=a3(-1);function hd(d,u,i){var a=[];return u=Ji(u,i),oa(d,function(l,p,t){u(l,p,t)&&a.push(l)}),a}function Cfe(d,u,i){return hd(d,JT(Ji(u)),i)}function l3(d,u,i){u=Ji(u,i);for(var a=!ps(d)&&ai(d),l=(a||d).length,p=0;p<l;p++){var t=a?a[p]:p;if(!u(d[t],t,d))return!1}return!0}function d3(d,u,i){u=Ji(u,i);for(var a=!ps(d)&&ai(d),l=(a||d).length,p=0;p<l;p++){var t=a?a[p]:p;if(u(d[t],t,d))return!0}return!1}function la(d,u,i,a){return ps(d)||(d=pd(d)),(typeof i!="number"||a)&&(i=0),n3(d,u,i)>=0}const $fe=qi(function(d,u,i){var a,l;return Pi(u)?l=u:(u=mc(u),a=u.slice(0,-1),u=u[u.length-1]),Zo(d,function(p){var t=l;if(!t){if(a&&a.length&&(p=GT(p,a)),p==null)return;t=p[u]}return t==null?t:t.apply(p,i)})});function zT(d,u){return Zo(d,kT(u))}function Pfe(d,u){return hd(d,vc(u))}function u3(d,u,i){var a=-1/0,l=-1/0,p,t;if(u==null||typeof u=="number"&&typeof d[0]!="object"&&d!=null){d=ps(d)?d:pd(d);for(var y=0,v=d.length;y<v;y++)p=d[y],p!=null&&p>a&&(a=p)}else u=Ji(u,i),oa(d,function(b,w,A){t=u(b,w,A),(t>l||t===-1/0&&a===-1/0)&&(a=b,l=t)});return a}function Vfe(d,u,i){var a=1/0,l=1/0,p,t;if(u==null||typeof u=="number"&&typeof d[0]!="object"&&d!=null){d=ps(d)?d:pd(d);for(var y=0,v=d.length;y<v;y++)p=d[y],p!=null&&p<a&&(a=p)}else u=Ji(u,i),oa(d,function(b,w,A){t=u(b,w,A),(t<l||t===1/0&&a===1/0)&&(a=b,l=t)});return a}var Nfe=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function c3(d){return d?So(d)?pc.call(d):PT(d)?d.match(Nfe):ps(d)?Zo(d,KT):pd(d):[]}function p3(d,u,i){if(u==null||i)return ps(d)||(d=pd(d)),d[qT(d.length-1)];var a=c3(d),l=Zi(a);u=Math.max(Math.min(u,l),0);for(var p=l-1,t=0;t<u;t++){var y=qT(t,p),v=a[t];a[t]=a[y],a[y]=v}return a.slice(0,u)}function Lfe(d){return p3(d,1/0)}function Bfe(d,u,i){var a=0;return u=Ji(u,i),zT(Zo(d,function(l,p,t){return{value:l,index:a++,criteria:u(l,p,t)}}).sort(function(l,p){var t=l.criteria,y=p.criteria;if(t!==y){if(t>y||t===void 0)return 1;if(t<y||y===void 0)return-1}return l.index-p.index}),"value")}function sy(d,u){return function(i,a,l){var p=u?[[],[]]:{};return a=Ji(a,l),oa(i,function(t,y){var v=a(t,y,i);d(p,t,v)}),p}}const Mfe=sy(function(d,u,i){La(d,i)?d[i].push(u):d[i]=[u]}),Ufe=sy(function(d,u,i){d[i]=u}),jfe=sy(function(d,u,i){La(d,i)?d[i]++:d[i]=1}),xfe=sy(function(d,u,i){d[i?0:1].push(u)},!0);function Ffe(d){return d==null?0:ps(d)?d.length:ai(d).length}function Gfe(d,u,i){return u in i}const f3=qi(function(d,u){var i={},a=u[0];if(d==null)return i;Pi(a)?(u.length>1&&(a=Ec(a,u[1])),u=yc(d)):(a=Gfe,u=qo(u,!1,!1),d=Object(d));for(var l=0,p=u.length;l<p;l++){var t=u[l],y=d[t];a(y,t,d)&&(i[t]=y)}return i}),Kfe=qi(function(d,u){var i=u[0],a;return Pi(i)?(i=JT(i),u.length>1&&(a=u[1])):(u=Zo(qo(u,!1,!1),String),i=function(l,p){return!la(u,p)}),f3(d,i,a)});function h3(d,u,i){return pc.call(d,0,Math.max(0,d.length-(u==null||i?1:u)))}function XT(d,u,i){return d==null||d.length<1?u==null||i?void 0:[]:u==null||i?d[0]:h3(d,d.length-u)}function ny(d,u,i){return pc.call(d,u==null||i?1:u)}function kfe(d,u,i){return d==null||d.length<1?u==null||i?void 0:[]:u==null||i?d[d.length-1]:ny(d,Math.max(0,d.length-u))}function Sfe(d){return hd(d,Boolean)}function qfe(d,u){return qo(d,u,!1)}const y3=qi(function(d,u){return u=qo(u,!0,!0),hd(d,function(i){return!la(u,i)})}),Zfe=qi(function(d,u){return y3(d,u)});function QT(d,u,i,a){bM(u)||(a=i,i=u,u=!1),i!=null&&(i=Ji(i,a));for(var l=[],p=[],t=0,y=Zi(d);t<y;t++){var v=d[t],b=i?i(v,t,d):v;u&&!i?((!t||p!==b)&&l.push(v),p=b):i?la(p,b)||(p.push(b),l.push(v)):la(l,v)||l.push(v)}return l}const Jfe=qi(function(d){return QT(qo(d,!0,!0))});function Wfe(d){for(var u=[],i=arguments.length,a=0,l=Zi(d);a<l;a++){var p=d[a];if(!la(u,p)){var t;for(t=1;t<i&&la(arguments[t],p);t++);t===i&&u.push(p)}}return u}function eb(d){for(var u=d&&u3(d,Zi).length||0,i=Array(u),a=0;a<u;a++)i[a]=zT(d,a);return i}const Hfe=qi(eb);function Yfe(d,u){for(var i={},a=0,l=Zi(d);a<l;a++)u?i[d[a]]=u[a]:i[d[a][0]]=d[a][1];return i}function zfe(d,u,i){u==null&&(u=d||0,d=0),i||(i=u<d?-1:1);for(var a=Math.max(Math.ceil((u-d)/i),0),l=Array(a),p=0;p<a;p++,d+=i)l[p]=d;return l}function Xfe(d,u){if(u==null||u<1)return[];for(var i=[],a=0,l=d.length;a<l;)i.push(pc.call(d,a,a+=u));return i}function tb(d,u){return d._chain?tr(u).chain():u}function m3(d){return oa(xT(d),function(u){var i=tr[u]=d[u];tr.prototype[u]=function(){var a=[this._wrapped];return Rpe.apply(a,arguments),tb(this,i.apply(tr,a))}}),tr}oa(["pop","push","reverse","shift","sort","splice","unshift"],function(d){var u=ey[d];tr.prototype[d]=function(){var i=this._wrapped;return i!=null&&(u.apply(i,arguments),(d==="shift"||d==="splice")&&i.length===0&&delete i[0]),tb(this,i)}}),oa(["concat","join","slice"],function(d){var u=ey[d];tr.prototype[d]=function(){var i=this._wrapped;return i!=null&&(i=u.apply(i,arguments)),tb(this,i)}});var v3=m3(Object.freeze(Object.defineProperty({__proto__:null,VERSION:dM,after:gfe,all:l3,allKeys:yc,any:d3,assign:iy,before:QM,bind:zM,bindAll:Efe,chain:vfe,chunk:Xfe,clone:Qpe,collect:Zo,compact:Sfe,compose:Rfe,constant:OM,contains:la,countBy:jfe,create:Xpe,debounce:Ife,default:tr,defaults:KM,defer:bfe,delay:XM,detect:HT,difference:y3,drop:ny,each:oa,escape:nfe,every:l3,extend:GM,extendOwn:iy,filter:hd,find:HT,findIndex:WT,findKey:e3,findLastIndex:r3,findWhere:Ofe,first:XT,flatten:qfe,foldl:YT,foldr:o3,forEach:oa,functions:xT,get:qM,groupBy:Mfe,has:tfe,head:XT,identity:KT,include:la,includes:la,indexBy:Ufe,indexOf:n3,initial:h3,inject:YT,intersection:Wfe,invert:FM,invoke:$fe,isArguments:LT,isArray:So,isArrayBuffer:wM,isBoolean:bM,isDataView:ty,isDate:Vpe,isElement:Ppe,isEmpty:hc,isEqual:kpe,isError:Lpe,isFinite:jpe,isFunction:Pi,isMap:Zpe,isMatch:NM,isNaN:DM,isNull:EM,isNumber:AM,isObject:nr,isRegExp:Npe,isSet:Wpe,isString:PT,isSymbol:IM,isTypedArray:PM,isUndefined:TM,isWeakMap:Jpe,isWeakSet:Hpe,iteratee:ST,keys:ai,last:kfe,lastIndexOf:Dfe,map:Zo,mapObject:rfe,matcher:vc,matches:vc,max:u3,memoize:Tfe,methods:xT,min:Vfe,mixin:m3,negate:JT,noop:JM,now:Tc,object:Yfe,omit:Kfe,once:_fe,pairs:Ype,partial:fd,partition:xfe,pick:f3,pluck:zT,property:kT,propertyOf:ife,random:qT,range:zfe,reduce:YT,reduceRight:o3,reject:Cfe,rest:ny,restArguments:qi,result:hfe,sample:p3,select:hd,shuffle:Lfe,size:Ffe,some:d3,sortBy:Bfe,sortedIndex:i3,tail:ny,take:XT,tap:efe,template:ffe,templateSettings:lfe,throttle:Afe,times:sfe,toArray:c3,toPath:SM,transpose:eb,unescape:ofe,union:Jfe,uniq:QT,unique:QT,uniqueId:mfe,unzip:eb,values:pd,where:Pfe,without:Zfe,wrap:wfe,zip:Hfe},Symbol.toStringTag,{value:"Module"})));v3._=v3;function ei(d){return d.charAt(0).toUpperCase()+d.slice(1)}function yd(d){return d.charAt(0).toLowerCase()+d.slice(1)}function E3(d,u){if(d.type!==f.Property||u.type!==f.Property)throw new Error(`Expected property entities for comparison. But got ${d.type} and ${u.type}.`);return d===u||d.id===u.id?!0:d.name!==u.name||d.static!==u.static||d.abstract!==u.abstract?!1:Ds(d.dataType,u.dataType).compatible}function T3(d,u){if(d.type!==f.DefinitionEntity||u.type!==f.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${d.type} and ${u.type}.`);if(d===u||d.id===u.id)return!0;if(d.properties.length!==u.properties.length)return!1;let i=[...u.properties];const a=[];for(let l=0;l<d.properties.length;l++){const p=d.properties[l];i.find(y=>{const v=E3(p,y);return v&&(i=i.filter(b=>b.id!==y.id)),v})||a.push(p)}return!(a.length>0)}var _s=(d=>(d.BothUnconstrained="both-unconstrained",d.AConstraintBUnconstrained="a-constraint-b-unconstrained",d.BConstraintAUnconstrained="b-constraint-a-unconstrained",d.Same="same",d.AIsListBIsNot="a-is-list-b-is-not",d.BIsListAIsNot="b-is-list-a-is-not",d.AIsNullableBIsNot="a-is-nullable-b-is-not",d.BIsNullableAIsNot="b-is-nullable-a-is-not",d.AIsTemplateBIsNot="a-is-template-b-is-not",d.BIsTemplateAIsNot="b-is-template-a-is-not",d.BothUntyped="both-untyped",d.AIsUntypedBIsNot="a-is-untyped-b-is-not",d.BIsUntypedAIsNot="b-is-untyped-a-is-not",d.TypeEntityMismatch="type-entity-mismatch",d.SameDefinitionEntities="same-definition-entities",d.CompatibleDefinitionEntities="compatible-definition-entities",d.IncompatibleDefinitionEntities="incompatible-definition-entities",d.SamePrimitiveEntities="same-primitive-entities",d.IncompatiblePrimitiveEntities="incompatible-primitive-entities",d.SameBuiltInBaseEntities="same-built-in-base-entities",d.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",d.CheckUnknown="check-unknown",d))(_s||{});function Ds(d,u){var l,p,t,y,v,b,w,A,V,L,j;if(d&&d.type!==f.DataType||u&&u.type!==f.DataType)throw new Error(`Expected data-type entities for comparison. But got ${d==null?void 0:d.type} and ${u==null?void 0:u.type}.`);if(d===null&&u===null)return{compatible:!0,type:"both-unconstrained"};if(d===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(u===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(d===u)return{compatible:!0,type:"same"};if(d.id===u.id)return{compatible:!0,type:"same"};if(d.isList!==u.isList)return{compatible:!1,type:d.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(d.asType!==u.asType)return{compatible:!1,type:d.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};let i=!d.entity||d.entity.type===f.PrimitiveEntity&&d.entity.name===X.Untyped,a=!u.entity||u.entity.type===f.PrimitiveEntity&&u.entity.name===X.Untyped;if(i&&!a)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(!i&&a)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(i&&a)return{compatible:!0,type:"both-untyped"};if(((l=d.entity)==null?void 0:l.type)!==((p=u.entity)==null?void 0:p.type))return{compatible:!1,type:"type-entity-mismatch"};if(((t=d.entity)==null?void 0:t.type)===f.DefinitionEntity){if(((y=d.entity)==null?void 0:y.id)===((v=u.entity)==null?void 0:v.id))return{compatible:!0,type:"same-definition-entities"};const k=T3(d.entity,u.entity);return{compatible:k,type:k?"compatible-definition-entities":"incompatible-definition-entities"}}return((b=d.entity)==null?void 0:b.type)===f.PrimitiveEntity?((w=d.entity)==null?void 0:w.id)===((A=u.entity)==null?void 0:A.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((V=d.entity)==null?void 0:V.type)===f.BuiltInBaseEntity?((L=d.entity)==null?void 0:L.id)===((j=u.entity)==null?void 0:j.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function Qfe(d,u){const i=d.project.builtInBaseEntities.find(p=>p.id===Ce.EXECUTION),a={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(u==null?void 0:u.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},l=ee(a,d.project);return l.inferred=!0,u==null||u.add(l,K.Added),l.metaSync(a,u),l.setParent(d,u),l.entity=i,l}function b3(d,u=null){return d.dataType?d.dataType:null}function rb(d,u=null){var a;const i=(a=d.declaration)==null?void 0:a.getDataType(u);return i&&i.isResolved?i:d.readsValue?Hs(d.readsValue,u):null}function ib(d,u=null){return d.dataType&&!d.dataType.inferred&&d.dataType.isResolved?d.dataType:d.readsValue?Hs(d.readsValue,u):null}function A3(d,u=null){return Hs(d.declaration,u)}function I3(d,u=null){return d.dataType&&!d.dataType.inferred?d.dataType:(d.dataType&&d.dataType.inferred||!d.dataType)&&d.project.initialized?(d.inferDataTypeAndSyncInstancesInputsAndOutputs(u),d.dataType):null}function sb(d,u=null){var i;return((i=d.declaration)==null?void 0:i.dataType)||null}function w3(d,u=null){return(d==null?void 0:d.dataType)||null}function R3(d,u=null){return(d==null?void 0:d.dataType)||null}function Hs(d,u=null){switch(d.type){case f.VariableDeclaration:return I3(d,u);case f.ArgumentDeclaration:return b3(d,u);case f.ReturnDeclaration:return ib(d,u);case f.VariableInstance:return A3(d,u);case f.InputMap:return rb(d,u);case f.OutputMap:return sb(d,u);case f.Property:return w3(d,u);case f.ValueDescriptor:return R3(d,u);default:throw new Error(`Cannot infer data type from entity of type ${d.type}.`)}}function ay(d,u=null){switch(d.type){case f.ArgumentDeclaration:return d.getDataType(u);case f.InputMap:return d.getDataType(u);case f.VariableDeclaration:return d.getDataType(u);case f.VariableInstance:return d.getDataType(u);case f.OutputMap:return d.getDataType(u);case f.ReturnDeclaration:return d.getDataType(u);case f.Property:return d.getDataType(u);case f.ValueDescriptor:return d.getDataType(u);default:return null}}function Jo(d){if(!d)return X.Untyped;if(d.entity){if(d.entity.type===f.DefinitionEntity)return d.asType?X.EntityTemplate:X.Untyped;if(d.entity.type===f.PrimitiveEntity)return d.asType?X.EntityTemplate:d.entity.name;if(d.entity.type===f.ActionDescriptor)return X.ActionDescriptor;if(d.entity.type===f.BuiltInBaseEntity)return d.asType?X.EntityTemplate:X.Untyped}return X.Untyped}function W(d){if(d){let u=null;return typeof d=="string"?u=d:d.entityId?u=d.entityId:d.type!==f.GenericReference&&(u=d.id),u}return null}function ui(d){return d.declaration||d}function ehe(d){return d.type===f.VariableDeclaration?d.parent===d.project?"global-declaration":"local-declaration":d.declaration.parent===d.project?"global-instance":"local-instance"}function nb(d,u){const i=[];if(d.type===f.Project)i.push(...d.variableDeclarations);else{const l=ti(ft(d)).filter(p=>p.type===f.VariableDeclaration);i.push(...l),d.parent&&(Ir.includes(d.parent.type)||d.parent.type===f.Project)&&i.push(...nb(d.parent))}return i}function Jr(d){return d.split(/[\s-]+/).filter(a=>a.length>0).map((a,l)=>l===0?a.toLowerCase():a[0].toUpperCase()+a.slice(1).toLowerCase()).join("")}function md(d){return d.split(/[\s-]+/).filter(a=>a.length>0).map(a=>a[0].toUpperCase()+a.slice(1).toLowerCase()).join("")}function g3(d){var u;return(u=d.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:u.map(i=>i.toLowerCase()).join("-")}function oy(d){return g3(d).toLowerCase()}function vd(d){var i,a,l,p;if(!d)return"Any data type";let u="";if(d.interactiveEntities===!1?u+=` but only definition nodes ${d.asType?"as template ":""}that don't include non-interactive built-in functionality`:d.interactiveEntities===!0&&(u+=` but only definition nodes ${d.asType?"as template ":""}that extend or implement interactive built-in functionality`),d.staticEntities===!1?u?u+=" and that aren't a single global copy instance":u+=` but only definition nodes ${d.asType?"as template ":""}that aren't a single global copy instance`:d.staticEntities===!0&&(u?u+=" and that are a single global copy instance":u+=` but only definition nodes ${d.asType?"as template ":""}that are a single global copy instance`),d.actionEntities===!1?u?u+=" excluding executable/action nodes":u+=` excluding executable/action nodes ${d.asType?"templates ":""}`:d.actionEntities===!0&&(u?u+=" and not executable/action nodes":u+=" but not executable/action nodes"),d.entity&&(u=""),d.asType&&!u&&!((i=d.andChildrenGroup)!=null&&i.length)&&!((a=d.orChildrenGroup)!=null&&a.length)&&(u=" as template"),!d.entity){const t=d.isList;if(!((l=d.andChildrenGroup)!=null&&l.length)&&!((p=d.orChildrenGroup)!=null&&p.length))return t?`List of an any data type${u}`:`Any data type${u}`;let y="",v=!1,b=!1;return(d.andChildrenGroup||[]).forEach(w=>{const A=vd(w),V=yd(A);v&&(y+=" and "),w.isGroup?y+="("+V+")":v?y+=V:y+=A,v=!0,b=!0}),(d.orChildrenGroup||[]).forEach(w=>{const A=vd(w),V=yd(A);v&&(b&&(y+=","),y+=" or "),w.isGroup?y+="("+V+")":v?y+=V:y+=A,v=!0}),t?`List of ${yd(y)}`:y}if(d.entity.type===f.PrimitiveEntity){let t=d.entity.name;switch(d.entity.name){case X.String:t="Text";break;case X.KeyValue:t="Data structure";break}return d.isList?`List of ${t}s${u}`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}${u}`}else if(d.entity.type===f.DefinitionEntity){const t=re(d.entity,d.project);return d.isList?`List of ${t} values${u}`:t.slice(0,1).toUpperCase()+t.slice(1)+u}else if(d.entity.type===f.BuiltInBaseEntity){const t=D3(d.entity);return d.isList?`List of ${t} values${u}`:t.slice(0,1).toUpperCase()+t.slice(1)+u}else if(d.entity.type===f.LiteralValue){if(d.entity.name===X.Null)return"Empty value";if(d.entity.name===X.Untyped)return"Untyped value";if(d.entity.name===X.File)return"File";if(d.entity.name===X.String)return`"${d.entity.value}" text`;if(d.entity.name===X.Number)return`Number '${d.entity.value}'`;if(d.entity.name===X.Boolean)return`${d.entity.value} value`;if(d.entity.name===X.UUID)return`"${d.entity.value}" unique identifier`;if(d.entity.name===X.Date)return`"${d.entity.value}" date`}return d.isList?`List of ${re(d.entity,d.project)} values${u}`:`${re(d.entity,d.project).slice(0,1).toUpperCase()+re(d.entity,d.project).slice(1)} value${u}`}function the(d){if(!d)return"Any data type";const u=d.getDataType(null);return vd(u)}function ly(d){switch(d.declaration.id){case ur.Equal:return"is equal to";case ur.NotEqual:return"is not equal to";case ur.MoreThan:return"is greater than";case ur.MoreThanOrEqual:return"is greater than or equal to";case ur.LessThan:return"is less than";case ur.LessThanOrEqual:return"is less than or equal to";case ur.And:return"and";case ur.Or:return"or";case Br.Empty:return"is empty";case Br.NotEmpty:return"is not empty"}}function _3(d){return d.includes(Ce.HTTP_ENDPOINT)?"HTTP endpoint":d.includes(Ce.PERSISTED_ENTITY)?"Persisted entity":d.includes(Ce.CRON_JOB)?"Scheduled execution":d.includes(Ce.RELATIONAL_DATABASE)?"Relational database":"Entity"}function D3(d){switch(d.name){case Ce.HTTP_ENDPOINT:return"HTTP endpoint";case Ce.PERSISTED_ENTITY:return"Persisted entity";case Ce.CRON_JOB:return"Scheduled execution";case Ce.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function rhe(d){const u=jy(d);if(!u){const i=Od(d);return i.includes(Ce.HTTP_ENDPOINT)?"HTTP endpoint":i.includes(Ce.PERSISTED_ENTITY)?"Persisted entity":i.includes(Ce.CRON_JOB)?"Scheduled execution":i.includes(Ce.RELATIONAL_DATABASE)?"Relational database":re(d,d.project)+" entity"}return re(u,d.project)+" entity"}function O3(d){let u="Find ";return d.outputsDeclarations.forEach((i,a)=>{const l=ay(i,null),p=yd(l&&l.entity?re(l.entity,d.project):"unstructured data");a===0?u+=`${p} `:a===d.outputsDeclarations.length-1?u+=`and ${p} `:u+=`, ${p} `}),u}function C3(d){switch(d.name){case X.String:return"Text";case X.Number:return"Number";case X.Boolean:return"Boolean";case X.KeyValue:return"Data structure";case X.UUID:return"Unique identifier";case X.Date:return"Date";case X.EntityTemplate:return"Entity as template";case X.Enum:return"Enumeration";case X.File:return"File";case X.Null:return"Empty";case X.ActionDescriptor:return"Action descriptor";case X.Untyped:return"Untyped";default:return d.name}}function $3(d){switch(d.id){case Ge.List:return"Loop over list items";case Ge.ManualFlow:return"Manual flow control loop";case Ge.ObjectKeys:return"Loop over object keys";case Ge.ObjectValues:return"Loop over object values";case Ge.Counted:return"Loop given number of times";case Ge.String:return"Loop over text characters";case dr.Addition:return"Sum numbers";case dr.Subtraction:return"Subtract numbers";case dr.Multiplication:return"Multiply numbers";case dr.Division:return"Divide numbers";case dr.Remainder:return"Get remainder of numbers";case dr.Exponentiation:return"Get exponent of numbers";case vt.AddIndex:return"Add at index position";case vt.DeleteFirst:return"Delete first character";case vt.DeleteLast:return"Delete last character";case vt.DeleteIndex:return"Delete at index position";case vt.Join:return"Join texts";case vt.ReplaceAllMatches:return"Replace all matches";case vt.ReplaceFirst:return"Replace first match";case vt.ReplaceLast:return"Replace last match";case vt.Split:return"Split text";case vt.ReplaceIndex:return"Replace at index position";case vt.ReplaceSingleMatch:return"Replace single match";case vt.GetFirst:return"Get first character";case vt.GetLast:return"Get last character";case vt.GetIndex:return"Get at index position";case vt.Append:return"Add at the end";case vt.Prepend:return"Add at the start";case rr.Wait:return"Wait";case rr.Parallel:return"Run in parallel";case rr.Sequential:return"Run in sequence";case di.HttpRequest:return"HTTP request";case ir.CreateNewInstance:return"Create new copy of entity";case pt.AddIndex:return"Add item at index position";case pt.DeleteFirst:return"Delete first item";case pt.DeleteLast:return"Delete last item";case pt.DeleteIndex:return"Delete item at index position";case pt.Join:return"Join lists";case pt.ReplaceAllMatches:return"Replace all matches";case pt.ReplaceFirst:return"Replace first match";case pt.ReplaceLast:return"Replace last match";case pt.Split:return"Split list";case pt.ReplaceIndex:return"Replace at index position";case pt.ReplaceSingleMatch:return"Replace single match";case pt.GetFirst:return"Get first item";case pt.GetLast:return"Get last item";case pt.GetIndex:return"Get item at index position";case pt.Append:return"Add item at the end";case pt.Prepend:return"Add item at the start";case qn.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(d.name.slice(0,1).toUpperCase()+d.name.slice(1)).replaceAll("-"," ")}}function re(d,u){var i;if(f.FunctionDeclaration===d.type){const a=d.name;if(Object.values(ns).includes(a))switch(a){case ns.AbortExecution:return"Abort execution";case ns.DeletePersistedEntity:return"Delete persisted entity";case ns.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return ei(d.type).replaceAll("-"," ")}return a}if(f.BuiltInBaseEntity===d.type)return _3([d.name]);if(a1.includes(d.type)&&d.type!==f.ActionDescriptor)return d.name;switch(d.type){case f.Search:return O3(d);case f.GlobalEvent:return d.implements?re(d.implements,u):ei(d.type).replaceAll("-"," ");case f.Operation:case f.InternalCall:case f.Loop:const a=Ri(d.declaration,u);return re(a,u);case f.ActionDescriptor:return $3(d);case f.BreakStatement:const l=Ri(d.parent,u);return`Stop loop ${re(l,u)}`;case f.ContinueStatement:const p=Ri(d.parent,u);return`Execute next iteration of ${re(p,u)}`;case f.FunctionCall:return Ri(d.declaration,u).name;case f.Condition:{const y=d;if((i=d.inputs)!=null&&i.length){const v=re(y.inputs[0],y.project);if(y.inputs[1]){const b=y.inputs[1].declaration.name;return`If ${v} ${ly(y)} ${b}`}return`If ${v} ${ly(y)}`}else return`If ${ly(y)}`}case f.ReturnStatement:{const y=Ri(d.parent,u);return y?`Output of ${re(y,u)}`:"Return statement"}case f.InputMap:if(d.declaration){const y=Ri(d.declaration,u);return re(y,u)||""}else return d.name||"";case f.VariableInstance:{const y=Ri(d.declaration,u);return re(y,u)||""}case f.OutputMap:if(d.declaration){const y=Ri(d.declaration,u);return(y==null?void 0:y.name)||""}else return"";case f.PrimitiveEntity:case f.LiteralValue:return C3(d);default:return ei(d.type).replaceAll("-"," ")}}function ab(d,u){const i=[];d.name||i.push(new Q({id:`${d.id}--${le.EmptyName}`,message:`Entity with id "${d.id}" and type "${d.type}" has an empty name. Please provide a 'name' string.`,severity:Z.Error,code:le.EmptyName,issue:null}));const a=u.entities.filter(l=>l.name===d.name);return a.length&&i.push(new Q({id:`${d.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${d.id}" and type "${d.type}" has a name "${d.name}" that is not unique in the project. Entity with id "${a[0].id}" has the same name.
13
+ `+p+"}",v}function hfe(d,u,i){u=mc(u);var a=u.length;if(!a)return Pi(i)?i.call(d):i;for(var l=0;l<a;l++){var p=d==null?void 0:d[u[l]];p===void 0&&(p=i,l=a),d=Pi(p)?p.call(d):p}return d}var yfe=0;function mfe(d){var u=++yfe+"";return d?d+u:u}function vfe(d){var u=tr(d);return u._chain=!0,u}function YM(d,u,i,a,l){if(!(a instanceof u))return d.apply(i,l);var p=kM(d.prototype),t=d.apply(p,l);return nr(t)?t:p}var fd=qi(function(d,u){var i=fd.placeholder,a=function(){for(var l=0,p=u.length,t=Array(p),y=0;y<p;y++)t[y]=u[y]===i?arguments[l++]:u[y];for(;l<arguments.length;)t.push(arguments[l++]);return YM(d,a,this,this,t)};return a});fd.placeholder=tr;const zM=qi(function(d,u,i){if(!Pi(d))throw new TypeError("Bind must be called on a function");var a=qi(function(l){return YM(d,a,u,this,i.concat(l))});return a}),ps=CM(Zi);function qo(d,u,i,a){if(a=a||[],!u&&u!==0)u=1/0;else if(u<=0)return a.concat(d);for(var l=a.length,p=0,t=Zi(d);p<t;p++){var y=d[p];if(ps(y)&&(So(y)||LT(y)))if(u>1)qo(y,u-1,i,a),l=a.length;else for(var v=0,b=y.length;v<b;)a[l++]=y[v++];else i||(a[l++]=y)}return a}const Efe=qi(function(d,u){u=qo(u,!1,!1);var i=u.length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var a=u[i];d[a]=zM(d[a],d)}return d});function Tfe(d,u){var i=function(a){var l=i.cache,p=""+(u?u.apply(this,arguments):a);return La(l,p)||(l[p]=d.apply(this,arguments)),l[p]};return i.cache={},i}const XM=qi(function(d,u,i){return setTimeout(function(){return d.apply(null,i)},u)}),bfe=fd(XM,tr,1);function Afe(d,u,i){var a,l,p,t,y=0;i||(i={});var v=function(){y=i.leading===!1?0:Tc(),a=null,t=d.apply(l,p),a||(l=p=null)},b=function(){var w=Tc();!y&&i.leading===!1&&(y=w);var A=u-(w-y);return l=this,p=arguments,A<=0||A>u?(a&&(clearTimeout(a),a=null),y=w,t=d.apply(l,p),a||(l=p=null)):!a&&i.trailing!==!1&&(a=setTimeout(v,A)),t};return b.cancel=function(){clearTimeout(a),y=0,a=l=p=null},b}function Ife(d,u,i){var a,l,p,t,y,v=function(){var w=Tc()-l;u>w?a=setTimeout(v,u-w):(a=null,i||(t=d.apply(y,p)),a||(p=y=null))},b=qi(function(w){return y=this,p=w,l=Tc(),a||(a=setTimeout(v,u),i&&(t=d.apply(y,p))),t});return b.cancel=function(){clearTimeout(a),a=p=y=null},b}function wfe(d,u){return fd(u,d)}function JT(d){return function(){return!d.apply(this,arguments)}}function Rfe(){var d=arguments,u=d.length-1;return function(){for(var i=u,a=d[u].apply(this,arguments);i--;)a=d[i].call(this,a);return a}}function gfe(d,u){return function(){if(--d<1)return u.apply(this,arguments)}}function QM(d,u){var i;return function(){return--d>0&&(i=u.apply(this,arguments)),d<=1&&(u=null),i}}const _fe=fd(QM,2);function e3(d,u,i){u=Ji(u,i);for(var a=ai(d),l,p=0,t=a.length;p<t;p++)if(l=a[p],u(d[l],l,d))return l}function t3(d){return function(u,i,a){i=Ji(i,a);for(var l=Zi(u),p=d>0?0:l-1;p>=0&&p<l;p+=d)if(i(u[p],p,u))return p;return-1}}const WT=t3(1),r3=t3(-1);function i3(d,u,i,a){i=Ji(i,a,1);for(var l=i(u),p=0,t=Zi(d);p<t;){var y=Math.floor((p+t)/2);i(d[y])<l?p=y+1:t=y}return p}function s3(d,u,i){return function(a,l,p){var t=0,y=Zi(a);if(typeof p=="number")d>0?t=p>=0?p:Math.max(p+y,t):y=p>=0?Math.min(p+1,y):p+y+1;else if(i&&p&&y)return p=i(a,l),a[p]===l?p:-1;if(l!==l)return p=u(pc.call(a,t,y),DM),p>=0?p+t:-1;for(p=d>0?t:y-1;p>=0&&p<y;p+=d)if(a[p]===l)return p;return-1}}const n3=s3(1,WT,i3),Dfe=s3(-1,r3);function HT(d,u,i){var a=ps(d)?WT:e3,l=a(d,u,i);if(l!==void 0&&l!==-1)return d[l]}function Ofe(d,u){return HT(d,vc(u))}function oa(d,u,i){u=Ec(u,i);var a,l;if(ps(d))for(a=0,l=d.length;a<l;a++)u(d[a],a,d);else{var p=ai(d);for(a=0,l=p.length;a<l;a++)u(d[p[a]],p[a],d)}return d}function Zo(d,u,i){u=Ji(u,i);for(var a=!ps(d)&&ai(d),l=(a||d).length,p=Array(l),t=0;t<l;t++){var y=a?a[t]:t;p[t]=u(d[y],y,d)}return p}function a3(d){var u=function(i,a,l,p){var t=!ps(i)&&ai(i),y=(t||i).length,v=d>0?0:y-1;for(p||(l=i[t?t[v]:v],v+=d);v>=0&&v<y;v+=d){var b=t?t[v]:v;l=a(l,i[b],b,i)}return l};return function(i,a,l,p){var t=arguments.length>=3;return u(i,Ec(a,p,4),l,t)}}const YT=a3(1),o3=a3(-1);function hd(d,u,i){var a=[];return u=Ji(u,i),oa(d,function(l,p,t){u(l,p,t)&&a.push(l)}),a}function Cfe(d,u,i){return hd(d,JT(Ji(u)),i)}function l3(d,u,i){u=Ji(u,i);for(var a=!ps(d)&&ai(d),l=(a||d).length,p=0;p<l;p++){var t=a?a[p]:p;if(!u(d[t],t,d))return!1}return!0}function d3(d,u,i){u=Ji(u,i);for(var a=!ps(d)&&ai(d),l=(a||d).length,p=0;p<l;p++){var t=a?a[p]:p;if(u(d[t],t,d))return!0}return!1}function la(d,u,i,a){return ps(d)||(d=pd(d)),(typeof i!="number"||a)&&(i=0),n3(d,u,i)>=0}const $fe=qi(function(d,u,i){var a,l;return Pi(u)?l=u:(u=mc(u),a=u.slice(0,-1),u=u[u.length-1]),Zo(d,function(p){var t=l;if(!t){if(a&&a.length&&(p=GT(p,a)),p==null)return;t=p[u]}return t==null?t:t.apply(p,i)})});function zT(d,u){return Zo(d,kT(u))}function Pfe(d,u){return hd(d,vc(u))}function u3(d,u,i){var a=-1/0,l=-1/0,p,t;if(u==null||typeof u=="number"&&typeof d[0]!="object"&&d!=null){d=ps(d)?d:pd(d);for(var y=0,v=d.length;y<v;y++)p=d[y],p!=null&&p>a&&(a=p)}else u=Ji(u,i),oa(d,function(b,w,A){t=u(b,w,A),(t>l||t===-1/0&&a===-1/0)&&(a=b,l=t)});return a}function Vfe(d,u,i){var a=1/0,l=1/0,p,t;if(u==null||typeof u=="number"&&typeof d[0]!="object"&&d!=null){d=ps(d)?d:pd(d);for(var y=0,v=d.length;y<v;y++)p=d[y],p!=null&&p<a&&(a=p)}else u=Ji(u,i),oa(d,function(b,w,A){t=u(b,w,A),(t<l||t===1/0&&a===1/0)&&(a=b,l=t)});return a}var Nfe=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function c3(d){return d?So(d)?pc.call(d):PT(d)?d.match(Nfe):ps(d)?Zo(d,KT):pd(d):[]}function p3(d,u,i){if(u==null||i)return ps(d)||(d=pd(d)),d[qT(d.length-1)];var a=c3(d),l=Zi(a);u=Math.max(Math.min(u,l),0);for(var p=l-1,t=0;t<u;t++){var y=qT(t,p),v=a[t];a[t]=a[y],a[y]=v}return a.slice(0,u)}function Lfe(d){return p3(d,1/0)}function Bfe(d,u,i){var a=0;return u=Ji(u,i),zT(Zo(d,function(l,p,t){return{value:l,index:a++,criteria:u(l,p,t)}}).sort(function(l,p){var t=l.criteria,y=p.criteria;if(t!==y){if(t>y||t===void 0)return 1;if(t<y||y===void 0)return-1}return l.index-p.index}),"value")}function sy(d,u){return function(i,a,l){var p=u?[[],[]]:{};return a=Ji(a,l),oa(i,function(t,y){var v=a(t,y,i);d(p,t,v)}),p}}const Mfe=sy(function(d,u,i){La(d,i)?d[i].push(u):d[i]=[u]}),Ufe=sy(function(d,u,i){d[i]=u}),jfe=sy(function(d,u,i){La(d,i)?d[i]++:d[i]=1}),xfe=sy(function(d,u,i){d[i?0:1].push(u)},!0);function Ffe(d){return d==null?0:ps(d)?d.length:ai(d).length}function Gfe(d,u,i){return u in i}const f3=qi(function(d,u){var i={},a=u[0];if(d==null)return i;Pi(a)?(u.length>1&&(a=Ec(a,u[1])),u=yc(d)):(a=Gfe,u=qo(u,!1,!1),d=Object(d));for(var l=0,p=u.length;l<p;l++){var t=u[l],y=d[t];a(y,t,d)&&(i[t]=y)}return i}),Kfe=qi(function(d,u){var i=u[0],a;return Pi(i)?(i=JT(i),u.length>1&&(a=u[1])):(u=Zo(qo(u,!1,!1),String),i=function(l,p){return!la(u,p)}),f3(d,i,a)});function h3(d,u,i){return pc.call(d,0,Math.max(0,d.length-(u==null||i?1:u)))}function XT(d,u,i){return d==null||d.length<1?u==null||i?void 0:[]:u==null||i?d[0]:h3(d,d.length-u)}function ny(d,u,i){return pc.call(d,u==null||i?1:u)}function kfe(d,u,i){return d==null||d.length<1?u==null||i?void 0:[]:u==null||i?d[d.length-1]:ny(d,Math.max(0,d.length-u))}function Sfe(d){return hd(d,Boolean)}function qfe(d,u){return qo(d,u,!1)}const y3=qi(function(d,u){return u=qo(u,!0,!0),hd(d,function(i){return!la(u,i)})}),Zfe=qi(function(d,u){return y3(d,u)});function QT(d,u,i,a){bM(u)||(a=i,i=u,u=!1),i!=null&&(i=Ji(i,a));for(var l=[],p=[],t=0,y=Zi(d);t<y;t++){var v=d[t],b=i?i(v,t,d):v;u&&!i?((!t||p!==b)&&l.push(v),p=b):i?la(p,b)||(p.push(b),l.push(v)):la(l,v)||l.push(v)}return l}const Jfe=qi(function(d){return QT(qo(d,!0,!0))});function Wfe(d){for(var u=[],i=arguments.length,a=0,l=Zi(d);a<l;a++){var p=d[a];if(!la(u,p)){var t;for(t=1;t<i&&la(arguments[t],p);t++);t===i&&u.push(p)}}return u}function eb(d){for(var u=d&&u3(d,Zi).length||0,i=Array(u),a=0;a<u;a++)i[a]=zT(d,a);return i}const Hfe=qi(eb);function Yfe(d,u){for(var i={},a=0,l=Zi(d);a<l;a++)u?i[d[a]]=u[a]:i[d[a][0]]=d[a][1];return i}function zfe(d,u,i){u==null&&(u=d||0,d=0),i||(i=u<d?-1:1);for(var a=Math.max(Math.ceil((u-d)/i),0),l=Array(a),p=0;p<a;p++,d+=i)l[p]=d;return l}function Xfe(d,u){if(u==null||u<1)return[];for(var i=[],a=0,l=d.length;a<l;)i.push(pc.call(d,a,a+=u));return i}function tb(d,u){return d._chain?tr(u).chain():u}function m3(d){return oa(xT(d),function(u){var i=tr[u]=d[u];tr.prototype[u]=function(){var a=[this._wrapped];return Rpe.apply(a,arguments),tb(this,i.apply(tr,a))}}),tr}oa(["pop","push","reverse","shift","sort","splice","unshift"],function(d){var u=ey[d];tr.prototype[d]=function(){var i=this._wrapped;return i!=null&&(u.apply(i,arguments),(d==="shift"||d==="splice")&&i.length===0&&delete i[0]),tb(this,i)}}),oa(["concat","join","slice"],function(d){var u=ey[d];tr.prototype[d]=function(){var i=this._wrapped;return i!=null&&(i=u.apply(i,arguments)),tb(this,i)}});var v3=m3(Object.freeze(Object.defineProperty({__proto__:null,VERSION:dM,after:gfe,all:l3,allKeys:yc,any:d3,assign:iy,before:QM,bind:zM,bindAll:Efe,chain:vfe,chunk:Xfe,clone:Qpe,collect:Zo,compact:Sfe,compose:Rfe,constant:OM,contains:la,countBy:jfe,create:Xpe,debounce:Ife,default:tr,defaults:KM,defer:bfe,delay:XM,detect:HT,difference:y3,drop:ny,each:oa,escape:nfe,every:l3,extend:GM,extendOwn:iy,filter:hd,find:HT,findIndex:WT,findKey:e3,findLastIndex:r3,findWhere:Ofe,first:XT,flatten:qfe,foldl:YT,foldr:o3,forEach:oa,functions:xT,get:qM,groupBy:Mfe,has:tfe,head:XT,identity:KT,include:la,includes:la,indexBy:Ufe,indexOf:n3,initial:h3,inject:YT,intersection:Wfe,invert:FM,invoke:$fe,isArguments:LT,isArray:So,isArrayBuffer:wM,isBoolean:bM,isDataView:ty,isDate:Vpe,isElement:Ppe,isEmpty:hc,isEqual:kpe,isError:Lpe,isFinite:jpe,isFunction:Pi,isMap:Zpe,isMatch:NM,isNaN:DM,isNull:EM,isNumber:AM,isObject:nr,isRegExp:Npe,isSet:Wpe,isString:PT,isSymbol:IM,isTypedArray:PM,isUndefined:TM,isWeakMap:Jpe,isWeakSet:Hpe,iteratee:ST,keys:ai,last:kfe,lastIndexOf:Dfe,map:Zo,mapObject:rfe,matcher:vc,matches:vc,max:u3,memoize:Tfe,methods:xT,min:Vfe,mixin:m3,negate:JT,noop:JM,now:Tc,object:Yfe,omit:Kfe,once:_fe,pairs:Ype,partial:fd,partition:xfe,pick:f3,pluck:zT,property:kT,propertyOf:ife,random:qT,range:zfe,reduce:YT,reduceRight:o3,reject:Cfe,rest:ny,restArguments:qi,result:hfe,sample:p3,select:hd,shuffle:Lfe,size:Ffe,some:d3,sortBy:Bfe,sortedIndex:i3,tail:ny,take:XT,tap:efe,template:ffe,templateSettings:lfe,throttle:Afe,times:sfe,toArray:c3,toPath:SM,transpose:eb,unescape:ofe,union:Jfe,uniq:QT,unique:QT,uniqueId:mfe,unzip:eb,values:pd,where:Pfe,without:Zfe,wrap:wfe,zip:Hfe},Symbol.toStringTag,{value:"Module"})));v3._=v3;function ei(d){return d.charAt(0).toUpperCase()+d.slice(1)}function yd(d){return d.charAt(0).toLowerCase()+d.slice(1)}function E3(d,u){if(d.type!==f.Property||u.type!==f.Property)throw new Error(`Expected property entities for comparison. But got ${d.type} and ${u.type}.`);return d===u||d.id===u.id?!0:d.name!==u.name||d.static!==u.static||d.abstract!==u.abstract?!1:Ds(d.dataType,u.dataType).compatible}function T3(d,u){if(d.type!==f.DefinitionEntity||u.type!==f.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${d.type} and ${u.type}.`);if(d===u||d.id===u.id)return!0;if(d.properties.length!==u.properties.length)return!1;let i=[...u.properties];const a=[];for(let l=0;l<d.properties.length;l++){const p=d.properties[l];i.find(y=>{const v=E3(p,y);return v&&(i=i.filter(b=>b.id!==y.id)),v})||a.push(p)}return!(a.length>0)}var _s=(d=>(d.BothUnconstrained="both-unconstrained",d.AConstraintBUnconstrained="a-constraint-b-unconstrained",d.BConstraintAUnconstrained="b-constraint-a-unconstrained",d.Same="same",d.AIsListBIsNot="a-is-list-b-is-not",d.BIsListAIsNot="b-is-list-a-is-not",d.AIsNullableBIsNot="a-is-nullable-b-is-not",d.BIsNullableAIsNot="b-is-nullable-a-is-not",d.AIsTemplateBIsNot="a-is-template-b-is-not",d.BIsTemplateAIsNot="b-is-template-a-is-not",d.BothUntyped="both-untyped",d.AIsUntypedBIsNot="a-is-untyped-b-is-not",d.BIsUntypedAIsNot="b-is-untyped-a-is-not",d.TypeEntityMismatch="type-entity-mismatch",d.SameDefinitionEntities="same-definition-entities",d.CompatibleDefinitionEntities="compatible-definition-entities",d.IncompatibleDefinitionEntities="incompatible-definition-entities",d.SamePrimitiveEntities="same-primitive-entities",d.IncompatiblePrimitiveEntities="incompatible-primitive-entities",d.SameBuiltInBaseEntities="same-built-in-base-entities",d.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",d.CheckUnknown="check-unknown",d))(_s||{});function Ds(d,u){var l,p,t,y,v,b,w,A,V,L,j;if(d&&d.type!==f.DataType||u&&u.type!==f.DataType)throw new Error(`Expected data-type entities for comparison. But got ${d==null?void 0:d.type} and ${u==null?void 0:u.type}.`);if(d===null&&u===null)return{compatible:!0,type:"both-unconstrained"};if(d===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(u===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(d===u)return{compatible:!0,type:"same"};if(d.id===u.id)return{compatible:!0,type:"same"};if(d.isList!==u.isList&&(d.isList!==null||u.isList!==null))return{compatible:!1,type:d.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(d.asType!==u.asType&&(d.asType!==null||u.asType!==null))return{compatible:!1,type:d.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};let i=!d.entity||d.entity.type===f.PrimitiveEntity&&d.entity.name===X.Untyped,a=!u.entity||u.entity.type===f.PrimitiveEntity&&u.entity.name===X.Untyped;if(i&&!a)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(!i&&a)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(i&&a)return{compatible:!0,type:"both-untyped"};if(((l=d.entity)==null?void 0:l.type)!==((p=u.entity)==null?void 0:p.type))return{compatible:!1,type:"type-entity-mismatch"};if(((t=d.entity)==null?void 0:t.type)===f.DefinitionEntity){if(((y=d.entity)==null?void 0:y.id)===((v=u.entity)==null?void 0:v.id))return{compatible:!0,type:"same-definition-entities"};const k=T3(d.entity,u.entity);return{compatible:k,type:k?"compatible-definition-entities":"incompatible-definition-entities"}}return((b=d.entity)==null?void 0:b.type)===f.PrimitiveEntity?((w=d.entity)==null?void 0:w.id)===((A=u.entity)==null?void 0:A.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((V=d.entity)==null?void 0:V.type)===f.BuiltInBaseEntity?((L=d.entity)==null?void 0:L.id)===((j=u.entity)==null?void 0:j.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function Qfe(d,u){const i=d.project.builtInBaseEntities.find(p=>p.id===Ce.EXECUTION),a={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(u==null?void 0:u.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},l=ee(a,d.project);return l.inferred=!0,u==null||u.add(l,K.Added),l.metaSync(a,u),l.setParent(d,u),l.entity=i,l}function b3(d,u=null){return d.dataType?d.dataType:null}function rb(d,u=null){var a;const i=(a=d.declaration)==null?void 0:a.getDataType(u);return i&&i.isResolved?i:d.readsValue?Hs(d.readsValue,u):null}function ib(d,u=null){return d.dataType&&!d.dataType.inferred&&d.dataType.isResolved?d.dataType:d.readsValue?Hs(d.readsValue,u):null}function A3(d,u=null){return Hs(d.declaration,u)}function I3(d,u=null){return d.dataType&&!d.dataType.inferred?d.dataType:(d.dataType&&d.dataType.inferred||!d.dataType)&&d.project.initialized?(d.inferDataTypeAndSyncInstancesInputsAndOutputs(u),d.dataType):null}function sb(d,u=null){var i;return((i=d.declaration)==null?void 0:i.dataType)||null}function w3(d,u=null){return(d==null?void 0:d.dataType)||null}function R3(d,u=null){return(d==null?void 0:d.dataType)||null}function Hs(d,u=null){switch(d.type){case f.VariableDeclaration:return I3(d,u);case f.ArgumentDeclaration:return b3(d,u);case f.ReturnDeclaration:return ib(d,u);case f.VariableInstance:return A3(d,u);case f.InputMap:return rb(d,u);case f.OutputMap:return sb(d,u);case f.Property:return w3(d,u);case f.ValueDescriptor:return R3(d,u);default:throw new Error(`Cannot infer data type from entity of type ${d.type}.`)}}function ay(d,u=null){switch(d.type){case f.ArgumentDeclaration:return d.getDataType(u);case f.InputMap:return d.getDataType(u);case f.VariableDeclaration:return d.getDataType(u);case f.VariableInstance:return d.getDataType(u);case f.OutputMap:return d.getDataType(u);case f.ReturnDeclaration:return d.getDataType(u);case f.Property:return d.getDataType(u);case f.ValueDescriptor:return d.getDataType(u);default:return null}}function Jo(d){if(!d)return X.Untyped;if(d.entity){if(d.entity.type===f.DefinitionEntity)return d.asType?X.EntityTemplate:X.Untyped;if(d.entity.type===f.PrimitiveEntity)return d.asType?X.EntityTemplate:d.entity.name;if(d.entity.type===f.ActionDescriptor)return X.ActionDescriptor;if(d.entity.type===f.BuiltInBaseEntity)return d.asType?X.EntityTemplate:X.Untyped}return X.Untyped}function W(d){if(d){let u=null;return typeof d=="string"?u=d:d.entityId?u=d.entityId:d.type!==f.GenericReference&&(u=d.id),u}return null}function ui(d){return d.declaration||d}function ehe(d){return d.type===f.VariableDeclaration?d.parent===d.project?"global-declaration":"local-declaration":d.declaration.parent===d.project?"global-instance":"local-instance"}function nb(d,u){const i=[];if(d.type===f.Project)i.push(...d.variableDeclarations);else{const l=ti(ft(d)).filter(p=>p.type===f.VariableDeclaration);i.push(...l),d.parent&&(Ir.includes(d.parent.type)||d.parent.type===f.Project)&&i.push(...nb(d.parent))}return i}function Jr(d){return d.split(/[\s-]+/).filter(a=>a.length>0).map((a,l)=>l===0?a.toLowerCase():a[0].toUpperCase()+a.slice(1).toLowerCase()).join("")}function md(d){return d.split(/[\s-]+/).filter(a=>a.length>0).map(a=>a[0].toUpperCase()+a.slice(1).toLowerCase()).join("")}function g3(d){var u;return(u=d.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:u.map(i=>i.toLowerCase()).join("-")}function oy(d){return g3(d).toLowerCase()}function vd(d){var i,a,l,p;if(!d)return"Any data type";let u="";if(d.interactiveEntities===!1?u+=` but only definition nodes ${d.asType?"as template ":""}that don't include non-interactive built-in functionality`:d.interactiveEntities===!0&&(u+=` but only definition nodes ${d.asType?"as template ":""}that extend or implement interactive built-in functionality`),d.staticEntities===!1?u?u+=" and that aren't a single global copy instance":u+=` but only definition nodes ${d.asType?"as template ":""}that aren't a single global copy instance`:d.staticEntities===!0&&(u?u+=" and that are a single global copy instance":u+=` but only definition nodes ${d.asType?"as template ":""}that are a single global copy instance`),d.actionEntities===!1?u?u+=" excluding executable/action nodes":u+=` excluding executable/action nodes ${d.asType?"templates ":""}`:d.actionEntities===!0&&(u?u+=" and not executable/action nodes":u+=" but not executable/action nodes"),d.entity&&(u=""),d.asType&&!u&&!((i=d.andChildrenGroup)!=null&&i.length)&&!((a=d.orChildrenGroup)!=null&&a.length)&&(u=" as template"),!d.entity){const t=d.isList;if(!((l=d.andChildrenGroup)!=null&&l.length)&&!((p=d.orChildrenGroup)!=null&&p.length))return t?`List of an any data type${u}`:`Any data type${u}`;let y="",v=!1,b=!1;return(d.andChildrenGroup||[]).forEach(w=>{const A=vd(w),V=yd(A);v&&(y+=" and "),w.isGroup?y+="("+V+")":v?y+=V:y+=A,v=!0,b=!0}),(d.orChildrenGroup||[]).forEach(w=>{const A=vd(w),V=yd(A);v&&(b&&(y+=","),y+=" or "),w.isGroup?y+="("+V+")":v?y+=V:y+=A,v=!0}),t?`List of ${yd(y)}`:y}if(d.entity.type===f.PrimitiveEntity){let t=d.entity.name;switch(d.entity.name){case X.String:t="Text";break;case X.KeyValue:t="Data structure";break}return d.isList?`List of ${t}s${u}`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}${u}`}else if(d.entity.type===f.DefinitionEntity){const t=re(d.entity,d.project);return d.isList?`List of ${t} values${u}`:t.slice(0,1).toUpperCase()+t.slice(1)+u}else if(d.entity.type===f.BuiltInBaseEntity){const t=D3(d.entity);return d.isList?`List of ${t} values${u}`:t.slice(0,1).toUpperCase()+t.slice(1)+u}else if(d.entity.type===f.LiteralValue){if(d.entity.name===X.Null)return"Empty value";if(d.entity.name===X.Untyped)return"Untyped value";if(d.entity.name===X.File)return"File";if(d.entity.name===X.String)return`"${d.entity.value}" text`;if(d.entity.name===X.Number)return`Number '${d.entity.value}'`;if(d.entity.name===X.Boolean)return`${d.entity.value} value`;if(d.entity.name===X.UUID)return`"${d.entity.value}" unique identifier`;if(d.entity.name===X.Date)return`"${d.entity.value}" date`}return d.isList?`List of ${re(d.entity,d.project)} values${u}`:`${re(d.entity,d.project).slice(0,1).toUpperCase()+re(d.entity,d.project).slice(1)} value${u}`}function the(d){if(!d)return"Any data type";const u=d.getDataType(null);return vd(u)}function ly(d){switch(d.declaration.id){case ur.Equal:return"is equal to";case ur.NotEqual:return"is not equal to";case ur.MoreThan:return"is greater than";case ur.MoreThanOrEqual:return"is greater than or equal to";case ur.LessThan:return"is less than";case ur.LessThanOrEqual:return"is less than or equal to";case ur.And:return"and";case ur.Or:return"or";case Br.Empty:return"is empty";case Br.NotEmpty:return"is not empty"}}function _3(d){return d.includes(Ce.HTTP_ENDPOINT)?"HTTP endpoint":d.includes(Ce.PERSISTED_ENTITY)?"Persisted entity":d.includes(Ce.CRON_JOB)?"Scheduled execution":d.includes(Ce.RELATIONAL_DATABASE)?"Relational database":"Entity"}function D3(d){switch(d.name){case Ce.HTTP_ENDPOINT:return"HTTP endpoint";case Ce.PERSISTED_ENTITY:return"Persisted entity";case Ce.CRON_JOB:return"Scheduled execution";case Ce.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function rhe(d){const u=jy(d);if(!u){const i=Od(d);return i.includes(Ce.HTTP_ENDPOINT)?"HTTP endpoint":i.includes(Ce.PERSISTED_ENTITY)?"Persisted entity":i.includes(Ce.CRON_JOB)?"Scheduled execution":i.includes(Ce.RELATIONAL_DATABASE)?"Relational database":re(d,d.project)+" entity"}return re(u,d.project)+" entity"}function O3(d){let u="Find ";return d.outputsDeclarations.forEach((i,a)=>{const l=ay(i,null),p=yd(l&&l.entity?re(l.entity,d.project):"unstructured data");a===0?u+=`${p} `:a===d.outputsDeclarations.length-1?u+=`and ${p} `:u+=`, ${p} `}),u}function C3(d){switch(d.name){case X.String:return"Text";case X.Number:return"Number";case X.Boolean:return"Boolean";case X.KeyValue:return"Data structure";case X.UUID:return"Unique identifier";case X.Date:return"Date";case X.EntityTemplate:return"Entity as template";case X.Enum:return"Enumeration";case X.File:return"File";case X.Null:return"Empty";case X.ActionDescriptor:return"Action descriptor";case X.Untyped:return"Untyped";default:return d.name}}function $3(d){switch(d.id){case Ge.List:return"Loop over list items";case Ge.ManualFlow:return"Manual flow control loop";case Ge.ObjectKeys:return"Loop over object keys";case Ge.ObjectValues:return"Loop over object values";case Ge.Counted:return"Loop given number of times";case Ge.String:return"Loop over text characters";case dr.Addition:return"Sum numbers";case dr.Subtraction:return"Subtract numbers";case dr.Multiplication:return"Multiply numbers";case dr.Division:return"Divide numbers";case dr.Remainder:return"Get remainder of numbers";case dr.Exponentiation:return"Get exponent of numbers";case vt.AddIndex:return"Add at index position";case vt.DeleteFirst:return"Delete first character";case vt.DeleteLast:return"Delete last character";case vt.DeleteIndex:return"Delete at index position";case vt.Join:return"Join texts";case vt.ReplaceAllMatches:return"Replace all matches";case vt.ReplaceFirst:return"Replace first match";case vt.ReplaceLast:return"Replace last match";case vt.Split:return"Split text";case vt.ReplaceIndex:return"Replace at index position";case vt.ReplaceSingleMatch:return"Replace single match";case vt.GetFirst:return"Get first character";case vt.GetLast:return"Get last character";case vt.GetIndex:return"Get at index position";case vt.Append:return"Add at the end";case vt.Prepend:return"Add at the start";case rr.Wait:return"Wait";case rr.Parallel:return"Run in parallel";case rr.Sequential:return"Run in sequence";case di.HttpRequest:return"HTTP request";case ir.CreateNewInstance:return"Create new copy of entity";case pt.AddIndex:return"Add item at index position";case pt.DeleteFirst:return"Delete first item";case pt.DeleteLast:return"Delete last item";case pt.DeleteIndex:return"Delete item at index position";case pt.Join:return"Join lists";case pt.ReplaceAllMatches:return"Replace all matches";case pt.ReplaceFirst:return"Replace first match";case pt.ReplaceLast:return"Replace last match";case pt.Split:return"Split list";case pt.ReplaceIndex:return"Replace at index position";case pt.ReplaceSingleMatch:return"Replace single match";case pt.GetFirst:return"Get first item";case pt.GetLast:return"Get last item";case pt.GetIndex:return"Get item at index position";case pt.Append:return"Add item at the end";case pt.Prepend:return"Add item at the start";case qn.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(d.name.slice(0,1).toUpperCase()+d.name.slice(1)).replaceAll("-"," ")}}function re(d,u){var i;if(f.FunctionDeclaration===d.type){const a=d.name;if(Object.values(ns).includes(a))switch(a){case ns.AbortExecution:return"Abort execution";case ns.DeletePersistedEntity:return"Delete persisted entity";case ns.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return ei(d.type).replaceAll("-"," ")}return a}if(f.BuiltInBaseEntity===d.type)return _3([d.name]);if(a1.includes(d.type)&&d.type!==f.ActionDescriptor)return d.name;switch(d.type){case f.Search:return O3(d);case f.GlobalEvent:return d.implements?re(d.implements,u):ei(d.type).replaceAll("-"," ");case f.Operation:case f.InternalCall:case f.Loop:const a=Ri(d.declaration,u);return re(a,u);case f.ActionDescriptor:return $3(d);case f.BreakStatement:const l=Ri(d.parent,u);return`Stop loop ${re(l,u)}`;case f.ContinueStatement:const p=Ri(d.parent,u);return`Execute next iteration of ${re(p,u)}`;case f.FunctionCall:return Ri(d.declaration,u).name;case f.Condition:{const y=d;if((i=d.inputs)!=null&&i.length){const v=re(y.inputs[0],y.project);if(y.inputs[1]){const b=y.inputs[1].declaration.name;return`If ${v} ${ly(y)} ${b}`}return`If ${v} ${ly(y)}`}else return`If ${ly(y)}`}case f.ReturnStatement:{const y=Ri(d.parent,u);return y?`Output of ${re(y,u)}`:"Return statement"}case f.InputMap:if(d.declaration){const y=Ri(d.declaration,u);return re(y,u)||""}else return d.name||"";case f.VariableInstance:{const y=Ri(d.declaration,u);return re(y,u)||""}case f.OutputMap:if(d.declaration){const y=Ri(d.declaration,u);return(y==null?void 0:y.name)||""}else return"";case f.PrimitiveEntity:case f.LiteralValue:return C3(d);default:return ei(d.type).replaceAll("-"," ")}}function ab(d,u){const i=[];d.name||i.push(new Q({id:`${d.id}--${le.EmptyName}`,message:`Entity with id "${d.id}" and type "${d.type}" has an empty name. Please provide a 'name' string.`,severity:Z.Error,code:le.EmptyName,issue:null}));const a=u.entities.filter(l=>l.name===d.name);return a.length&&i.push(new Q({id:`${d.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${d.id}" and type "${d.type}" has a name "${d.name}" that is not unique in the project. Entity with id "${a[0].id}" has the same name.
14
14
  Please provide a unique 'name' string.`,severity:Z.Error,code:le.NameNotUniqueInScope,issue:null})),i}function ob(d,u){const i=[];d.name||i.push(new Q({id:`${d.id}--${le.EmptyName}`,message:`Entity with id "${d.id}" and type "${d.type}" has an empty name. Please provide a 'name' string.`,severity:Z.Error,code:le.EmptyName,issue:null}));const a=d.parent?W(d.parent):null;let l=u;a&&(l=u.get(a));const p=[];l.type===f.DefinitionEntity?p.push(...l.methods.map(y=>y)):l.type===f.Project?p.push(...l.functions.map(y=>y)):l.type===f.Loop?l.body&&p.push(l.body):l.type===f.InstalledProject&&p.push(...l.functions.map(y=>y));const t=p.filter(y=>y.name===d.name);return t.length&&i.push(new Q({id:`${d.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${d.id}" and type "${d.type}" has a name "${d.name}" that is not unique in ${l.type===f.Project?"the globally declared project scope":"its parent entity"}. Entity with id "${t[0].id}" has the same name.
15
15
  Please provide a unique 'name' string.`,severity:Z.Error,code:le.NameNotUniqueInScope,issue:null})),i}function lb(d,u){const i=[];d.name||i.push(new Q({id:`${d.id}--${le.EmptyName}`,message:`Entity with id "${d.id}" and type "${d.type}" has an empty name. Please provide a 'name' string.`,severity:Z.Error,code:le.EmptyName,issue:null}));const a=d.parent&&Ri(d.parent,u)||u;if(!a)i.push(new Q({id:`${d.id}--parent-reference--${q.ReferencedEntityNotFound}`,message:`The entity with id '${d.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:Z.Error,code:q.ReferencedEntityNotFound,issue:null}));else{const p=nb(a).filter(t=>t.name===d.name);p.length&&i.push(new Q({id:`${d.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${d.id}" and type "${d.type}" has a name "${d.name}" that is not unique in its scope or higher scopes. Entity with id "${p[0].id}" has the same name.
16
16
  Please provide a unique 'name' string.`,severity:Z.Error,code:le.NameNotUniqueInScope,issue:null}))}return i}function db(d,u){const i=[];d.name||i.push(new Q({id:`${d.id}--${le.EmptyName}`,message:`Entity with id "${d.id}" and type "${d.type}" has an empty name. Please provide a 'name' string.`,severity:Z.Error,code:le.EmptyName,issue:null}));const a=W(d.parent);if(!a)i.push(new Q({id:`${d.id}--parent-reference--${q.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${d.id}" and type "${d.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:Z.Error,code:q.InvalidReferenceObjectStructure,issue:null}));else{const l=u.get(a);if(!l)i.push(new Q({id:`${d.id}--parent-reference--${q.ReferencedEntityNotFound}`,message:`The entity with id '${a}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:Z.Error,code:q.ReferencedEntityNotFound,issue:null}));else{const t=l.properties.filter(y=>y.name===d.name);t.length&&i.push(new Q({id:`${d.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${d.id}" and type "${d.type}" has a name "${d.name}" that is not unique among all properties in the parent entity. Entity with id "${t[0].id}" has the same name.
@@ -397,7 +397,7 @@ All global 'function-declaration' entity ids are:
397
397
  The project currently has no global 'function-declaration' entities that can be called as 'function-call' entities.`;p.push(new Q({id:`${l.id}--${q.InvalidReference}`,code:q.InvalidReference,severity:Z.Error,message:`Entity of type "${f.FunctionCall}" with id "${l.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'function-declaration' entity.
398
398
  References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${v}`,issue:null}))}return{errors:p,modifiedData:l}}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new Q({id:`${this.id}--${q.InvalidParentUpdate}`,code:q.InvalidParentUpdate,severity:Z.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
399
399
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
400
- You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"sync-dependents"))){const a=[],l=[],p=[],t=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),l.push(...v.added),p.push(...v.removed),t.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}onDetachedDependencyRemoved(i,a,l){const p=[],t=[],y=[],v=[];if(a==="declaration"){const{updated:b,added:w,removed:A}=this.remove({ignoreUpstream:!1},l);p.push(...b),t.push(...w),y.push(...A)}if(a==="parent"){const{updated:b,added:w,removed:A}=this.remove({ignoreUpstream:!1},l);p.push(...b),t.push(...w),y.push(...A)}return{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,l){const p=[],t=[],y=[],v=[];if(a==="declaration"){const{updated:b,added:w,removed:A}=this.restore({},l);p.push(...b),t.push(...w),y.push(...A)}if(a==="parent"){const{updated:b,added:w,removed:A}=this.restore({},l);p.push(...b),t.push(...w),y.push(...A)}return{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){var i;return(i=this.parent)==null||i.unsubscribeDependents([{entity:this,field:"parent"}]),this.declaration.unsubscribeDependents([{entity:this,field:"declaration"}]),this}subscribeToDependencies(){var i;return(i=this.parent)==null||i.subscribeDependents([{entity:this,field:"parent"}]),this.declaration.subscribeDependents([{entity:this,field:"declaration"}]),this}increaseVersion(i){if(i&&!N(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&N(i).isSame(N(this.createdAt))?this:(this.previousVersion=this.version,this.version=P.UUID.uuid(),this.createdAt=N(i).toISOString()||N().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new xt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.inputs=[...this.inputs],i.outputs=[...this.outputs],i.error=this.error,i.successCalls=[...this.successCalls],i.errorCalls=[...this.errorCalls],i.process=this.process,i.declaration=this.declaration,i.calledBySuccess=[...this.calledBySuccess],i.calledByError=[...this.calledByError],i.calledByEntry=[...this.calledByEntry],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],l=[],p=[],t=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),l.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}async restoreVersion(i){var v;const a=[],l=[],p=[],t=[];if(this.version===i)return{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this};if(!this.knownVersions){const b=new Map;for(const[w,A]of this.knownVersions||new Map){if(b.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[V,L]of A.knownVersions)b.set(V,L);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const b=await this.APILoadVersion({},i);if(!b)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new xt(b,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.inputs=y.inputs,this.outputs=y.outputs,this.error=y.error,this.successCalls=y.successCalls,this.errorCalls=y.errorCalls,this.process=y.process,this.declaration=y.declaration,this.calledBySuccess=y.calledBySuccess,this.calledByError=y.calledByError,this.calledByEntry=y.calledByEntry,this.parent=y.parent,{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const l=W(i.parent),p=this.project.get(l),t=this.parent;if(t&&t.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(i.declaration){const l=W(i.declaration),p=this.project.get(l);p&&this.setDeclaration(p)}return i.calledByEntry.forEach(l=>{const p=W(l),t=this.project.get(p);t&&(this.addEntryCaller(t,a),t.addCall(this,a))}),[...this.calledByEntry].forEach(l=>{i.calledByEntry.find(t=>W(t)===l.id)||(this.removeCaller(l,a),l.removeCall(this,a))}),i.calledBySuccess.forEach(l=>{const p=W(l),t=this.project.get(p);t&&(this.addSuccessCaller(t,a),t.addSuccessCall(this,a))}),[...this.calledBySuccess].forEach(l=>{i.calledBySuccess.find(t=>W(t)===l.id)||(this.removeCaller(l,a),l.removeCall(this,a))}),i.calledByError.forEach(l=>{const p=W(l),t=this.project.get(p);t&&(this.addErrorCaller(t,a),t.addErrorCall(this,a))}),[...this.calledBySuccess].forEach(l=>{i.calledBySuccess.find(t=>W(t)===l.id)||(this.removeCaller(l,a),l.removeCall(this,a))}),this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],l=[],p=[];if(this.initialData.parent){const t=W(this.initialData.parent),y=this.project.get(t);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${t}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.declaration){const t=W(this.initialData.declaration),y=this.project.get(t);y&&(this.setDeclaration(y),i.push(y))}return this.initialData.calledByEntry.forEach(t=>{const y=W(t),v=this.project.get(y);v&&this.addEntryCaller(v,null)}),this.initialData.calledBySuccess.forEach(t=>{const y=W(t),v=this.project.get(y);v&&this.addSuccessCaller(v,null)}),this.initialData.calledByError.forEach(t=>{const y=W(t),v=this.project.get(y);v&&this.addErrorCaller(v,null)}),{updated:R(i),added:R(a),removed:R(l),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],l=[],p=[],t=[];this.initialized=!0;const{updated:y,added:v,removed:b}=this.syncInputs(i),{updated:w,added:A,removed:V}=this.syncOutputs(i);return a.push(...y,...w),l.push(...v,...A),p.push(...b,...V),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}addSelfToProject(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-self-to-project"))){var y;const a=[this],l=[],p=[],t=[];return this.parent===this.project&&this.project.addFunctionCall(this),(y=this.process)==null||y.writesValues.forEach(v=>{v.setValueWriter(this.process,i),a.push(v)}),this.successCalls.forEach(v=>{v.addSuccessCaller(this,i),a.push(v)}),this.errorCalls.forEach(v=>{v.addErrorCaller(this,i),a.push(v)}),this.calledBySuccess.forEach(v=>{v.addSuccessCall(this,i),a.push(v)}),this.calledByError.forEach(v=>{v.addErrorCall(this,i),a.push(v)}),this.calledByEntry.forEach(v=>{v.addCall(this,i),a.push(v)}),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-input"))){const l=this.inputs.findIndex(p=>p.id===i.id);return l>-1&&(this.inputs.splice(l,1),a&&(a==null||a.add(this,K.Affected))),a==null||a.attemptAutoclose("remove-input",this.id),this}addInput(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-input"))){return this.inputs.includes(i)?(a==null||a.attemptAutoclose("add-input",this.id),this):(this.inputs.push(i),a==null||a.add(this,K.Affected),a==null||a.attemptAutoclose("add-input",this.id),this)}addOutput(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-output"))){return this.outputs.includes(i)?(a==null||a.attemptAutoclose("add-output",this.id),this):(this.outputs.push(i),a==null||a.add(this,K.Affected),a==null||a.attemptAutoclose("add-output",this.id),this)}removeOutput(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-output"))){const l=this.outputs.findIndex(p=>p.id===i.id);return l>-1&&(this.outputs.splice(l,1),a&&(a==null||a.add(this,K.Affected))),a==null||a.attemptAutoclose("remove-output",this.id),this}addValueReader(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-value-reader"))){var l;return this.process&&!this.process.writesValues.includes(i)&&((l=this.process)==null||l.addValueReader(i,a),a==null||a.add(this,K.Affected)),a==null||a.attemptAutoclose("add-value-reader",this.id),this}removeValueReader(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-value-reader"))){var l;return this.process&&this.process.writesValues.includes(i)&&((l=this.process)==null||l.removeValueReader(i,a),a==null||a.add(this,K.Affected)),a==null||a.attemptAutoclose("remove-value-reader",this.id),this}addSuccessCaller(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-success-caller")),l=!1){return this.calledBySuccess.find(p=>p.id===i.id)||(this.calledBySuccess.push(i),a==null||a.add(this,K.Updated),l&&xe(this,a)),a==null||a.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-error-caller")),l=!1){return this.calledByError.find(p=>p.id===i.id)||(this.calledByError.push(i),a==null||a.add(this,K.Updated),l&&xe(this,a)),a==null||a.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-entry-caller")),l=!1){return this.calledByEntry.find(p=>p.id===i.id)||(this.calledByEntry.push(i),a==null||a.add(this,K.Updated),l&&xe(this,a)),a==null||a.attemptAutoclose("add-entry-caller",this.id),this}addErrorCall(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-error-call")),l=!1){return this.errorCalls.find(p=>p.id===i.id)||(this.errorCalls.push(i),l&&xe(this,a),a==null||a.add(this,K.Affected)),a==null||a.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-success-call")),l=!1){return this.successCalls.find(p=>p.id===i.id)||(this.successCalls.push(i),l&&xe(this,a),a==null||a.add(this,K.Affected)),a==null||a.attemptAutoclose("add-success-call",this.id),this}removeCall(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-call")),l=!1){const p=this.successCalls.findIndex(y=>y.id===i.id);p>-1&&(this.successCalls.splice(p,1),a==null||a.add(this,K.Affected));const t=this.errorCalls.findIndex(y=>y.id===i.id);return t>-1&&(this.errorCalls.splice(t,1),a==null||a.add(this,K.Affected)),l&&xe(this,a),a==null||a.attemptAutoclose("remove-call",this.id),this}removeCaller(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-caller")),l=!1){return this.calledBySuccess=this.calledBySuccess.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,K.Updated),a==null||a.add(p,K.Affected),!1)),this.calledByError=this.calledByError.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,K.Updated),a==null||a.add(p,K.Affected),!1)),this.calledByEntry=this.calledByEntry.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,K.Updated),a==null||a.add(p,K.Affected),!1)),l&&xe(this,a),a==null||a.attemptAutoclose("remove-caller",this.id),this}setParent(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"set-parent"))){var l;return((l=this.parent)==null?void 0:l.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,K.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}setDeclaration(i){return this.declaration=i,this}initChildren(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.declaration.type===f.FunctionDeclaration){const a=ee(this.initialData.declaration,this.project);this.declaration=a}else{const a=W(this.initialData.declaration),l=this.project.get(a);this.declaration=l}return this.successCalls=this.initialData.successCalls.map(a=>{const l=ee(a,this.project);if(l.addSuccessCaller(this),[f.BreakStatement,f.ContinueStatement].includes(l.type))l.setParent(this.parent.parent,null),l.initChildren(i);else if(l.type===f.ReturnStatement){const p=Nr(this,this.project);l.setParent(p,null),l.initChildren(i)}else l.type!==f.InternalCall&&(l.setParent(this.parent,null),l.initChildren(i));return l}),this.errorCalls=this.initialData.errorCalls.map(a=>{const l=ee(a,this.project);if(l.addErrorCaller(this),[f.BreakStatement,f.ContinueStatement].includes(l.type))l.setParent(this.parent.parent,null),l.initChildren(i);else if(l.type===f.ReturnStatement){const p=Nr(this,this.project);l.setParent(p,null),l.initChildren(i)}else l.type!==f.InternalCall&&(l.setParent(this.parent,null),l.initChildren(i));return l}),this.inputs=this.initialData.inputs.map(a=>{const l=ee(a,this.project);return l.setParent(this,null),l.initChildren(i),l}),this.initialData.process&&(this.process=ee(this.initialData.process,this.project),this.process.setParent(this,null),this.process.initChildren(i)),this.initialData.error&&(this.error=ee(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(i)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"meta-sync"))){const l=br(this,i),p=this.toMeta();return this.x=i.x||p.x,this.y=i.y||p.y,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,K.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,K.Added):l&&(a==null||a.add(this,K.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ye,...a){return await xt.repository.APILoad(this.id,...a),this}async APICreate(i=ye,...a){return await xt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ye,...a){return await xt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ye,...a){return await xt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ye,...a){return await xt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ye,a,...l){return await xt.repository.APILoadVersion(this.id,a,...l)}removeFromParent(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-from-parent"))){const a=[],l=[],p=[],t=[];return this.parent.type===f.Project?(this.parent.removeFunctionCall(this),t.push(this.parent)):this.parent.detachedChildren.includes(this)&&this.parent.unsubscribeDetachedChild(this),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(l),affected:R(t),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-entity"))){var v;const l=[],p=[],t=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(b=>{const{updated:w,removed:A,added:V}=b.entity.onDetachedDependencyRemoved(this,b.field,a);l.push(...w),p.push(...A),t.push(...V)}),this.process){const{updated:b,removed:w}=(v=this.process)==null?void 0:v.remove({ignoreUpstream:!0},a);l.push(...b),p.push(...w)}if(this.inputs.forEach(b=>{const{updated:w,removed:A}=b.remove({ignoreUpstream:!0},a);l.push(...w),p.push(...A)}),this.outputs.forEach(b=>{const{updated:w,removed:A}=b.remove({ignoreUpstream:!0},a);l.push(...w),p.push(...A)}),this.error){const{updated:b,removed:w}=this.error.remove({ignoreUpstream:!0},a);l.push(...b),p.push(...w)}if(this.successCalls.forEach(b=>{l.push(b),b.removeCaller(this,a)}),this.errorCalls.forEach(b=>{l.push(b),b.removeCaller(this,a)}),!i){const b=this.removeFromParent(a);t.push(...b.added),l.push(...b.updated),p.push(...b.removed),y.push(...b.affected),this.calledBy.forEach(w=>{l.push(w),w.removeCall(this,a)})}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(t),updated:R(l),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"restore-entity"))){const a=[],l=[],p=[],t=[];if(i!=null&&i.hasAdded(this.id))return i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:b,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);l.push(...v),p.push(...b),a.push(...w)}),this.process){const{updated:y}=this.process.restore({},i);l.push(...y)}return this.inputs.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.outputs.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.successCalls.forEach(y=>{l.push(y),y.addSuccessCaller(this,i)}),this.errorCalls.forEach(y=>{l.push(y),y.addErrorCaller(this,i)}),this.calledBySuccess.forEach(y=>{l.push(y),y.addSuccessCall(this,i)}),this.calledByError.forEach(y=>{l.push(y),y.addErrorCall(this,i)}),this.calledByEntry.forEach(y=>{l.push(y),y.addCall(this,i)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(l),removed:R(p),affected:R(t),self:this}}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.successCalls.flatMap(l=>l.toFlat(i)),...this.errorCalls.flatMap(l=>l.toFlat(i)),...this.inputs.flatMap(l=>l.toFlat(i)),...this.outputs.flatMap(l=>l.toFlat(i)),...this.process?this.process.toFlat(i):[],...this.error?this.error.toFlat(i):[],...this.calledBy.flatMap(l=>l.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.successCalls.flatMap(l=>l.toFlatIds(i)),...this.errorCalls.flatMap(l=>l.toFlatIds(i)),...this.inputs.flatMap(l=>l.toFlatIds(i)),...this.outputs.flatMap(l=>l.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(i=new Set){var a,l;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(p=>p.toJSON(i)),errorCalls:this.errorCalls.map(p=>p.toJSON(i)),calledBySuccess:this.calledBySuccess.map(p=>p.toReference()),calledByError:this.calledByError.map(p=>p.toReference()),calledByEntry:this.calledByEntry.map(p=>p.toReference()),process:(a=this.process)==null?void 0:a.toJSON(i),declaration:this.declaration.toJSON(i),inputs:this.inputs.map(p=>p.toJSON(i)),outputs:this.outputs.map(p=>p.toJSON(i)),parent:this.parent.toReference(),error:(l=this.error)==null?void 0:l.toJSON(i)})}toJSONClone(i=Le){var l,p,t,y,v,b,w;let a;return(l=i.seenEntityMaps)!=null&&l.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||wr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(t=i.seenEntities)!=null&&t.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:P.UUID.uuid(),createdAt:i.timestamp||N().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(A=>A.toJSONClone({...i,newId:null})),errorCalls:this.errorCalls.map(A=>A.toJSONClone({...i,newId:null})),calledBySuccess:this.calledBySuccess.map(A=>A.toReference({seenEntityMaps:i.seenEntityMaps})),calledByError:this.calledByError.map(A=>A.toReference({seenEntityMaps:i.seenEntityMaps})),calledByEntry:this.calledByEntry.map(A=>A.toReference({seenEntityMaps:i.seenEntityMaps})),process:(b=this.process)==null?void 0:b.toJSONClone({...i,newId:null}),declaration:this.declaration.toJSONClone({...i,newId:null}),inputs:this.inputs.map(A=>A.toJSONClone({...i,newId:null})),outputs:this.outputs.map(A=>A.toJSONClone({...i,newId:null})),error:(w=this.error)==null?void 0:w.toJSONClone({...i,newId:null}),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=Le){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+P.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=Le){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference(i):null,inputs:this.inputs.map(p=>p.toReference(i)),outputs:this.outputs.map(p=>p.toReference(i)),declaration:this.declaration.toReference(i),successCalls:this.successCalls.map(p=>p.toReference(i)),errorCalls:this.errorCalls.map(p=>p.toReference(i)),calledBySuccess:this.calledBySuccess.map(p=>p.toReference(i)),calledByError:this.calledByError.map(p=>p.toReference(i)),calledByEntry:this.calledByEntry.map(p=>p.toReference(i)),error:this.error?this.error.toReference(i):null,parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(l=>l.toFlatJSON(i)),...this.errorCalls.flatMap(l=>l.toFlatJSON(i)),...this.inputs.flatMap(l=>l.toFlatJSON(i)),...this.outputs.flatMap(l=>l.toFlatJSON(i)),...this.process?this.process.toFlatJSON(i):[],...this.error?this.error.toFlatJSON(i):[]])}toGenerationTarget(){const i=this.parent.type===f.Project?void 0:this.parent.id;return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,calledByEntry:this.calledByEntry.map(a=>a.id),calledBySuccess:this.calledBySuccess.map(a=>a.id),calledByError:this.calledByError.map(a=>a.id),declaration:this.declaration.id,parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(l=>l.toFlatGenerationTarget(i)),...this.errorCalls.flatMap(l=>l.toFlatGenerationTarget(i)),...this.inputs.flatMap(l=>l.toFlatGenerationTarget(i)),...this.outputs.flatMap(l=>l.toFlatGenerationTarget(i)),...this.process?this.process.toFlatGenerationTarget(i):[],...this.error?this.error.toFlatGenerationTarget(i):[]])}clearErrors(){var i,a;return this.errors=[],this.inputs.forEach(l=>l.clearErrors()),this.outputs.forEach(l=>l.clearErrors()),this.successCalls.forEach(l=>l.clearErrors()),this.errorCalls.forEach(l=>l.clearErrors()),(i=this.process)==null||i.clearErrors(),(a=this.error)==null||a.clearErrors(),this}validate(){const i=Kx(this);return this.errors=i,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(a=>a.getErrors()),...this.outputs.flatMap(a=>a.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"clone-entity")),a=null,l=null,p=!0){var j,k;let t=Rr(a,this);const y=this.toJSON(),v=l||P.UUID.uuid();y.inputs=[];const b=v.split("-id"),w=b[b.length-1||0]||v;y.id=v,y.version=P.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||N().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=St(y,t);a?A.setParent(a,null):A.setParent(this.parent,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,K.Added);const V=(j=this.inputs)==null?void 0:j.map((S,H)=>S.clone(i,A,w+"-input-map-"+H+"-id",p));A.inputs=V;const L=(k=this.outputs)==null?void 0:k.map((S,H)=>S.clone(i,A,w+"-output-map-"+H+"-id",p));return A.outputs=L,this.error&&(A.error=this.error.clone(i,A,w+"-error-map-id",p)),this.process&&(A.process=this.process.clone(i,A,w+"-process-id",p)),i==null||i.attemptAutoclose("clone-entity",this.id),A}removeUnrecognizedInputs(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-unrecognized-inputs"))){const a=[],l=[],p=[],t=[];return this.inputs.forEach(v=>{if(!this.declaration.inputs.find(w=>{var A;return w.id===((A=v.declaration)==null?void 0:A.id)})){const w=v.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}}),this.inputs.filter((v,b)=>{const w=this.inputs.findIndex(V=>V.declaration===v.declaration&&V!==v);if(w===-1)return!1;const A=this.inputs[w];return N(A==null?void 0:A.createdAt).isSame(N(v.createdAt))?b>w:!!N(A==null?void 0:A.createdAt).isAfter(v.createdAt)}).forEach(v=>{const b=v.remove({ignoreUpstream:!1},i);p.push(...b.removed),a.push(...b.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-inputs",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}removeUnrecognizedOutputs(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-unrecognized-outputs"))){const a=[],l=[],p=[],t=[];return this.outputs.forEach(v=>{if(!this.declaration.getUniqueReturnDeclarations().find(w=>{var A;return w.id===((A=v.declaration)==null?void 0:A.id)})){const w=v.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}}),this.outputs.filter((v,b)=>{const w=this.outputs.findIndex(V=>V.declaration===v.declaration&&V!==v);if(w===-1)return!1;const A=this.outputs[w];return N(A==null?void 0:A.createdAt).isSame(N(v.createdAt))?b>w:!!N(A==null?void 0:A.createdAt).isAfter(v.createdAt)}).forEach(v=>{const b=v.remove({ignoreUpstream:!1},i);p.push(...b.removed),a.push(...b.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-outputs",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}syncInputs(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"sync-missing-fixed-inputs"))){const a=[],l=[],p=[],t=[],y=this.declaration.inputs.filter(A=>!this.inputs.find(V=>V.declaration.id===A.id));this.inputs.sort((A,V)=>A.index-V.index),y.forEach(A=>{this.inputs.forEach(j=>{j.index>=A.index&&j.metaSync({index:j.index+1},i)});const V={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||N().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.InputMap,declaration:A.toJSON(),readsValue:null,defaultValue:null,index:A.index,name:null,codeName:null,description:null,parent:this.toReference()},L=ee(V,this.project);L.setParent(this,i),L.initChildren(i),i==null||i.add(L,K.Added),L.addSelfToProject(i),l.push(L)}),this.inputs.sort((A,V)=>A.index-V.index);const{updated:v,added:b,removed:w}=this.removeUnrecognizedInputs(i);return a.push(...v),l.push(...b),p.push(...w),i==null||i.attemptAutoclose("sync-missing-fixed-inputs",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}syncOutputs(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"sync-missing-fixed-outputs"))){const a=[],l=[],p=[],t=[],y=[];this.outputs=this.initialData.outputs.reduce((V,L)=>{if(L.type===f.GenericReference){const k=Ri(L,this.project);return k?[...V,k]:V}const j=ee(L,this.project);return y.push(j.index),j.setParent(this,null),j.initChildren(i),[...V,j]},[]);const v=this.declaration.getUniqueReturnDeclarations().filter(V=>!this.outputs.find(L=>L.declaration.id===V.id));this.outputs.sort((V,L)=>V.index-L.index),v.forEach((V,L)=>{this.outputs.forEach(H=>{H.index>=V.index&&H.index++});const j=y.includes(V.index)?this.outputs.length-1+L:V.index,k={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||N().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.OutputMap,declaration:V.toJSON(),defaultValue:null,writesValues:[],index:j,parent:this.toReference()},S=ee(k,this.project);S.setParent(this,i),S.initChildren(i),i==null||i.add(S,K.Added),S.addSelfToProject(i)}),this.outputs.sort((V,L)=>V.index-L.index);const{updated:b,added:w,removed:A}=this.removeUnrecognizedOutputs(i);return a.push(...b),l.push(...w),p.push(...A),i==null||i.attemptAutoclose("sync-missing-fixed-outputs",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}};D(xt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...l)=>null}),D(xt,"type",f.FunctionCall),D(xt,"USER_MANAGED_PARENT_TYPES",[...Ir,f.Project]),D(xt,"PARENT_TYPES",[...xt.USER_MANAGED_PARENT_TYPES]),D(xt,"MUTABLE_BASE_PROPERTIES",[]),D(xt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),D(xt,"BASE_PROPERTIES",[...xt.MUTABLE_BASE_PROPERTIES,...xt.INMUTABLE_BASE_PROPERTIES]),D(xt,"MUTABLE_META_PROPERTIES",["x","y"]),D(xt,"INMUTABLE_META_PROPERTIES",[...xt.INMUTABLE_BASE_PROPERTIES]),D(xt,"META_PROPERTIES",[...xt.MUTABLE_META_PROPERTIES,...xt.INMUTABLE_META_PROPERTIES]),D(xt,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),D(xt,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),D(xt,"UPSTREAM_PROPERTIES",[...xt.MUTABLE_UPSTREAM_PROPERTIES,...xt.INMUTABLE_UPSTREAM_PROPERTIES]),D(xt,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),D(xt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),D(xt,"DOWNSTREAM_PROPERTIES",[...xt.MUTABLE_DOWNSTREAM_PROPERTIES,...xt.INMUTABLE_DOWNSTREAM_PROPERTIES]),D(xt,"PROPERTIES",[...xt.META_PROPERTIES,...xt.UPSTREAM_PROPERTIES,...xt.DOWNSTREAM_PROPERTIES]);let Ha=xt;function Yb(d){return d&&typeof d.then=="function"}function Kme(d){const u=new fa(d[0]),i=d.map(l=>l.id),a={};return d.forEach(l=>{a[l.id]=l}),u.order=i,u.flatRecord=a,u.orderEntities(),u.order.map(l=>u.flatRecord[l])}class fa{constructor(u){D(this,"order",[]);D(this,"flatRecord",{});D(this,"allBuiltInEntityIds",$s());D(this,"onGoingVisits",{});u&&(this.flatten(u),this.orderEntities())}flatten(u){const i=new Set($s()),a=R(he(u,i,{ignoreBuiltInBaseEntities:!0})),l=new Set;for(const p of a)this.flatRecord[p.id]=p,l.add(p.id);this.order=Array.from(l)}moveEntityAfterDependencies(u){const{upstream:i}=_d(u,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});for(const a of Object.keys(i)){const l=this.order.indexOf(a),p=this.order.indexOf(u.id);if(l>p)return this.order.splice(p,1),this.order.splice(l,0,u.id),!0}return!1}orderEntities(){let u=!1;for(let i=0;i<this.order.length;i++){const a=this.order[i],l=this.flatRecord[a];if(l||console.warn(`Entity with id ${a} not found in flatRecord. Skipping...`),this.moveEntityAfterDependencies(l)){u=!0;break}}u&&this.orderEntities()}getUpstreamOngoingDependenciesVisits(u,i){const{upstream:a}=_d(this.flatRecord[u],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}),l={};return Object.entries(this.onGoingVisits[i]||{}).forEach(([p,t])=>{Object.keys(a).includes(p)&&(l[p]=t)}),l}getDownstreamOngoingDependenciesVisits(u,i){const a=Object.keys(this.onGoingVisits[i]||{}),l=new Set(a.flatMap(t=>Object.keys(_d(this.flatRecord[t],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}).downstream))),p={};return Array.from(l).forEach(t=>{t===u&&(p[t]=this.onGoingVisits[i][t])}),p}async settlePromises(u,i){const a=Object.values(u);a.length&&await Promise.all(a),Object.keys(u).forEach(l=>{delete this.onGoingVisits[i][l]})}visit(u){const i=this.order;for(const a of i)u(this.flatRecord[a],this.flatRecord);return this}reverseVisit(u){const i=this.order.slice().reverse();for(const a of i)u(this.flatRecord[a],this.flatRecord);return this}async visitAsync(u){const i=this.order,a=Math.random().toString(36).substring(7);this.onGoingVisits[a]={};for(const l of i){const p=this.getUpstreamOngoingDependenciesVisits(l,a);Object.keys(p).length&&await this.settlePromises(p,a);const t=u(this.flatRecord[l],this.flatRecord);Yb(t)&&(this.onGoingVisits[a][l]=t)}return await this.settlePromises(this.onGoingVisits[a],a),this.onGoingVisits[a]={},this}async reverseVisitAsync(u){const i=this.order.slice().reverse(),a=Math.random().toString(36).substring(7);this.onGoingVisits[a]={};for(const l of i){const p=this.getDownstreamOngoingDependenciesVisits(l,a);Object.keys(p).length&&await this.settlePromises(p,a);const t=u(this.flatRecord[l],this.flatRecord);Yb(t)&&(this.onGoingVisits[a][l]=t)}return await this.settlePromises(this.onGoingVisits[a],a),this.onGoingVisits[a]={},this}}function Sx(d,u){switch(d.id){case me["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const i=d.project.entities.filter(v=>!!v.implements.find(b=>b.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)),a=i.find(v=>{const b=v.properties.find(V=>V.implements&&V.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),w=b==null?void 0:b.getDefaultValue();return(w==null?void 0:w.value)===!0});if(!a&&i.length){const b=i[0].properties.find(A=>A.implements&&A.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),w=b==null?void 0:b.defaultValue;if(w)w.metaSync({value:!0},u);else if(b!=null&&b.dataType){const A={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(u==null?void 0:u.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.LiteralValue,standaloneParent:null,name:X.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:b==null?void 0:b.toReference()},V=ee(A,d.project);return V.setParent(b,u),V.initChildren(u),u==null||u.add(V,K.Added),V.addSelfToProject(u),{newEntities:[V]}}return{newEntities:[]}}else if(a)return{newEntities:[]};const l=d.project.get(me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),p=$y(l,"Main database",u);if(p.errors.length>0)return{newEntities:[]};const t=p.properties.find(v=>v.implements&&v.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),y=t==null?void 0:t.defaultValue;if(y)y.metaSync({value:!0},u);else if(t!=null&&t.dataType){const v={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(u==null?void 0:u.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.LiteralValue,standaloneParent:null,name:X.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:t==null?void 0:t.toReference()},b=ee(v,d.project);b.setParent(t,u),b.initChildren(u),u==null||u.add(b,K.Added),b.addSelfToProject(u)}return{newEntities:[p]}}}return{newEntities:[]}}function qx(d,u){const i=[],a=[],l=[],p=[];return d.implements.filter(y=>y.type===f.BuiltInBaseEntity).forEach(y=>{var v;switch(y.id){case me["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const b=d.project.entities.filter(L=>L.implements.find(j=>j.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));let w=b.find(L=>!!L.properties.find(j=>{var k;return j.implements&&j.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((k=j.getDefaultValue())==null?void 0:k.value)===!0}));if(!w&&b.length)w=b[0];else if(!w&&!b.length){w=d.project.getBuiltIn(me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id).implement("Relational database",u);const j=w.properties.find(k=>{var S;return((S=k.implements)==null?void 0:S.id)===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id});(v=j==null?void 0:j.defaultValue)==null||v.metaSync({value:!0},u),a.push(w)}const A=d.properties.find(L=>L.implements&&L.implements.id===me["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),V=A==null?void 0:A.defaultValue;if(A&&!V){const L={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(u==null?void 0:u.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.LiteralValue,standaloneParent:null,name:X.EntityTemplate,autogeneration:null,value:null,valueAsTypeSingle:(w==null?void 0:w.toJSON())||null,valueAsTypeList:null,parent:A==null?void 0:A.toReference()},j=ee(L,d.project);j.hydrateAncestors(),j.setParent(A,u),j.addSelfToProject(u),j.initChildren(u),u==null||u.add(j,K.Added),a.push(j);return}else V&&!V.valueAsTypeSingle&&V.setValueAsTypeSingle(w||null,u);return}}}),{self:d,updated:R(i),added:R(a),removed:R(l),affected:R(p)}}function $y(d,u,i,a){const l=a||P.UUID.uuid(),p=P.UUID.uuid(),t={id:l,version:p,createdAt:(i==null?void 0:i.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,name:u,type:f.DefinitionEntity,codeName:null,description:null,static:d.static,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[d.toJSON()],x:0,y:0,parent:d.project.toReference()};Sx(d,i);const y=ee(t,d.project);return y.hydrateAncestors(),i==null||i.add(y,K.Added),y.addSelfToProject(i),y.addImplementation(d),y.setParent(d.project,i),y.initChildren(i),qx(y,i),y}function zb(d,u){return u.entities.find(l=>{const p=l.properties,t=p.map(A=>A.name),y=d.every(A=>t.includes(A)),v=t.filter(A=>!d.includes(A)),b=p.every(A=>!v.includes(A.name)||!A.required);return y&&b})||null}function Zx(d,u,i,a=Yr.OrDataTypeGroup){const l=[],p=[],t=[],y=[],b={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,entity:d.toJSON(),isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:null,interactiveEntities:null,actionEntities:null,like:!0,inferred:!1,parentRelationType:a,parent:u.toReference()},w=ee(b,d.project);return p.push(w),w.setParent(u,i),w.initChildren(i),i==null||i.add(w,K.Added),w.setEntity(d,i),w.addSelfToProject(i),{updated:R(l),added:R(p),removed:R(t),affected:R(y),self:w}}function Xb(d,u,i,a,l){var b,w,A,V,L,j,k,S;const p=[],t=[],y=[],v=[];switch(typeof d){case"string":let H=!1;const ie=new Date(d);if(ie instanceof Date&&!isNaN(ie.valueOf())&&(H=!0),H){const te=u.project.getBuiltIn(me[f.PrimitiveEntity][X.Date].id);u.setEntity(te,a);break}else{const te=u.project.getBuiltIn(me[f.PrimitiveEntity][X.String].id);u.setEntity(te,a);break}case"number":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Number].id),a);break;case"boolean":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Boolean].id),a);break;case"object":if(d===null){u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Null].id),a);break}else if(Array.isArray(d))if(u.metaSync({isList:!0},a),d.length>0){const te=d.slice(0,5).filter(ne=>ne!==void 0);if(te.every(ne=>typeof ne==typeof te[0])&&(typeof te[0]!="object"||te[0]===null))switch(typeof te[0]){case"string":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.String].id),a);break;case"number":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Number].id),a);break;case"boolean":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Boolean].id),a);break;case"object":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Null].id),a);break}else{const ne=[];let ve=!1;te.forEach(ae=>{var ce,Y,ue,Ee;if(Array.isArray(ae)&&(ve=!0),typeof ae=="object"&&!Array.isArray(ae)&&ae!==null){const Ve=Py(ae,u.project,{...i,id:P.UUID.uuid()},a,l);Ve.hasCreated&&ne.push((ce=Ve.changeSet)==null?void 0:ce.self),p.push(...(Y=Ve.changeSet)==null?void 0:Y.updated),t.push(...(ue=Ve.changeSet)==null?void 0:ue.added),y.push(...(Ee=Ve.changeSet)==null?void 0:Ee.removed)}});const J=R(ne);if(!J.length&&!ve){te.forEach(ae=>{const ce={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parentRelationType:Yr.OrDataTypeGroup,parent:u.toReference()},Y=ee(ce,u.project);switch(Y.setParent(u,a),Y.initChildren(a),a==null||a.add(Y,K.Added),Y.addSelfToProject(a),typeof ae){case"string":Y.setEntity(Y.project.getBuiltIn(me[f.PrimitiveEntity][X.String].id),a);break;case"number":Y.setEntity(Y.project.getBuiltIn(me[f.PrimitiveEntity][X.Number].id),a);break;case"boolean":Y.setEntity(Y.project.getBuiltIn(me[f.PrimitiveEntity][X.Boolean].id),a);break;case"object":Y.setEntity(Y.project.getBuiltIn(me[f.PrimitiveEntity][X.Null].id),a);break}});break}else J.length===1&&!ve?u.setEntity(J[0],a):te.forEach(ae=>{if(typeof ae=="object"&&!Array.isArray(ae)&&ae!==null){const ce=zb(Object.keys(ae),u.project);if(ce){const Y=Zx(ce||J[0],u,a,Yr.OrDataTypeGroup);p.push(...Y.updated),t.push(...Y.added),y.push(...Y.removed)}}else{const ce={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,entity:null,isList:Array.isArray(ae),asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parentRelationType:Yr.OrDataTypeGroup,parent:u.toReference()},Y=ee(ce,u.project);Y.setParent(u,a),Y.initChildren(a),a==null||a.add(Y,K.Added),Y.addSelfToProject(a);const ue=Xb(ae,Y,{...i,id:P.UUID.uuid()},a,l);p.push(...ue.updated),t.push(...ue.added),y.push(...ue.removed)}})}}else{const te=Py(d[0],u.project,{...i},a,l);u.setEntity((b=te.changeSet)==null?void 0:b.self,a),p.push(...(w=te.changeSet)==null?void 0:w.updated),t.push(...(A=te.changeSet)==null?void 0:A.added),y.push(...(V=te.changeSet)==null?void 0:V.removed);break}else{const te=Py(d,u.project,{...i},a,l);u.setEntity((L=te.changeSet)==null?void 0:L.self,a),p.push(...(j=te.changeSet)==null?void 0:j.updated),t.push(...(k=te.changeSet)==null?void 0:k.added),y.push(...(S=te.changeSet)==null?void 0:S.removed);break}}return{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:u}}function Py(d,u,i,a,l){const p=[],t=[],y=[],v=[],b=Object.keys(d),w=zb(b,u);if(w)return{hasCreated:!1,changeSet:{updated:[],added:[],removed:[],affected:[],self:w}};const A=l?i.name+" of "+l.name:i.name,L={id:i.id||P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,name:A,codeName:null,type:f.DefinitionEntity,description:i.description||null,static:i.static||!1,abstract:i.abstract||!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:u.toReference()},j=ee(L,u);return j.setParent(u,a),j.initChildren(a),a==null||a.add(j,K.Added),j.addSelfToProject(a),t.push(j),b.forEach((k,S)=>{const ie={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,name:k,type:f.Property,codeName:k,description:null,static:!1,abstract:!1,defaultValue:null,constant:!1,interactive:!0,dataType:null,implements:null,extends:null,index:S,hidden:!1,private:!1,required:!0,parent:j.toReference()},te=ee(ie,u);te.setParent(j,a),te.initChildren(a),a==null||a.add(te,K.Added),te.addSelfToProject(a),t.push(te);const pe=d[k],ve={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parent:te.toReference()},J=ee(ve,u);J.setParent(te,a),J.initChildren(a),a==null||a.add(J,K.Added),J.addSelfToProject(a),t.push(J);const ae=Xb(pe,J,{...i,name:k,id:P.UUID.uuid()},a,l||j);p.push(...ae.updated),t.push(...ae.added),y.push(...ae.removed)}),{hasCreated:!0,changeSet:{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:j}}}function ha(d,u,i,a){const l=[];return!d.length||!u.length?{errors:l,overlap:!1}:(d.length>u.length?d.forEach(p=>{const t=u.find(v=>v.name===p.name),y=u.find(v=>{var b,w;return!!p.implements&&((b=v.implements)==null?void 0:b.id)===((w=p.implements)==null?void 0:w.id)});if(t){const v=new Zt({id:p.id+"--"+t.id+"--"+a,message:`Entity of type ${p.type} named "${p.name}" with id "${p.id}" overrides a base ${t.type} ${t.name} with id "${t.id}" that has the same name`,issue:null,severity:Z.Error,code:a,entity:p,firstRelationship:t});l.push(v)}if(y){const v=new Zt({id:p.id+"--"+y.id+"--"+i,message:`Entity of type ${p.type} named "${p.name}" with id "${p.id}" overrides a base ${y.type} ${y.name} with id "${y.id}" that implements the same base descriptor`,issue:null,severity:Z.Error,code:i,entity:p,firstRelationship:y});l.push(v)}}):u.forEach(p=>{var v;const t=d.find(b=>b.name===p.name),y=d.find(b=>{var w,A;return!!b.implements&&((w=b.implements)==null?void 0:w.id)===((A=p.implements)==null?void 0:A.id)});if(t){const b=new Zt({id:t.id+"--"+p.id+"--"+a,message:`Entity of type ${t.type} named "${t.name}" with id "${t.id}" overrides a base entity ${p.name} with id "${p.id}" that has the same name`,issue:null,severity:Z.Error,code:a,entity:t,firstRelationship:p});l.push(b)}if(y){const b=new Zt({id:y.id+"--"+p.id+"--"+i,message:`Entity of type ${y.type} named "${y.name}" with id "${y.id}" overrides a base entity ${p.name} with id "${p.id}" that implements the same base ${(v=y==null?void 0:y.implements)==null?void 0:v.type}`,issue:null,severity:Z.Error,code:i,entity:y,firstRelationship:p});l.push(b)}}),{errors:l,overlap:!!l.length})}function kme(d,u){return d.abstract||(d.properties.forEach(a=>{a.abstract||a.metaSync({abstract:!0},u)}),Object.values(d.detachedDependents).forEach(a=>{a.field===Eb.Entity&&a.entity.remove({ignoreUpstream:!1},u)}),d.metaSync({abstract:!0},u)),d}function Sme(d,u){return d.abstract&&(d.properties.forEach(a=>{a.abstract&&a.metaSync({abstract:!1},u)}),Object.values(d.detachedDependents).forEach(a=>{(a.field===ky.Implements||a.field===ky.Extends)&&a.entity.onDetachedDependencyRemoved(d,a.field,u)}),d.metaSync({abstract:!1},u)),d}function qme(d,u){return d.static||(d.properties.forEach(a=>{a.static||a.metaSync({static:!0},u)}),d.metaSync({static:!0},u)),d}function Zme(d,u){return d.static&&d.metaSync({static:!1},u),d}var Jx=(d=>(d.StringValueMustNotHaveSpaces="string-value-must-not-have-spaces",d.StringValueMustNotHaveDashes="string-value-must-not-have-dashes",d))(Jx||{});function Wx(d,u){const i=[],a=u;if(!a)return{errors:i,override:u};if(typeof a!="string")return{errors:[],override:u};if(a.includes(" ")){const l=new Zt({id:d.id+"--string-value-must-not-have-spaces",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value cannot contain spaces.`,issue:null,severity:Z.Error,code:"string-value-must-not-have-spaces",entity:d});i.push(l)}return{errors:i,override:a.replace(/\s/g,"-")}}function Hx(d,u){const i=[],a=u;if(!a)return{errors:i,override:u};if(typeof a!="string")return{errors:[],override:u};if(a.includes(" ")){const l=new Zt({id:d.id+"--string-value-must-not-have-spaces",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value cannot contain spaces or dashes.`,issue:null,severity:Z.Error,code:"string-value-must-not-have-spaces",entity:d});i.push(l)}if(a.includes("-")){const l=new Zt({id:d.id+"--string-value-must-not-have-dashes",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value cannot contain spaces or dashes.`,issue:null,severity:Z.Error,code:"string-value-must-not-have-dashes",entity:d});i.push(l)}return{errors:i,override:a.replace(/\s|-/g,"_")}}function Qb(d,u){var i;if(d.type===f.LiteralValue){let a=(i=d.value)==null?void 0:i.toString();try{a=JSON.stringify(d.value,null,2)}catch{}return`${d.type}: ${d.id} (${re(d,u)}) = ${a}`}if(d.type===f.DataType){if(d instanceof Wi||d.increaseVersion)return`${d.type}: ${d.id} (${vd(d)})`;try{const a=vd(d);return`${d.type}: ${d.id} (${a})`}catch{}}return`${d.type}: ${d.id} (${re(d,u)})`}function gd(d,u){const i=Ya(d);if(i.length===0)return{list:[],last:null};let a=null;return{list:i.flatMap(p=>{if(p===u)return a=p,[p];const t=gd(p,u);return t.last&&(a=t.last),[p,...t.list]}),last:a}}function eA(d){const u=d.calledBy;if(u.length===0)return d.project;const i=u.reduce((a,l)=>{const p=wi(l,d.project);return!p||p.type===f.Project?a:a.type===f.Project||gd(p,a).last?p:(gd(a,p).last,a)},d.project);return i.type===f.FunctionDeclaration&&i.parent.type===f.Loop?i.parent:i}function xe(d,u){var l,p;let i=eA(d);if(d.type===f.InternalCall)(l=d.parent)==null||l.setParent(i,u),(p=d.parent)==null||p.addSelfToProject(u);else if((d.type===f.ContinueStatement||d.type===f.BreakStatement)&&i.type!==f.Loop){d.remove({ignoreUpstream:!1},u);return}else if(d.type===f.ReturnStatement&&!Ir.includes(i.type)){d.remove({ignoreUpstream:!1},u);return}else d.setParent(i,u),d.addSelfToProject(u);if(sr.includes(d.type))return;ft(d).forEach(t=>{var v,b;const y=eA(t);if(t.type===f.InternalCall)(v=t.parent)==null||v.setParent(y,u),(b=t.parent)==null||b.addSelfToProject(u);else if((t.type===f.ContinueStatement||t.type===f.BreakStatement)&&y.type!==f.Loop){t.remove({ignoreUpstream:!1},u);return}else if(t.type===f.ReturnStatement&&!Ir.includes(y.type)){t.remove({ignoreUpstream:!1},u);return}else t.setParent(y,u),t.addSelfToProject(u)})}function Vy(d,u,i=new Set){const a=Qs(d),l=Qs(u),p=a.filter(v=>!l.includes(v)),t=a.filter(v=>l.includes(v)),y=p.reduce((v,b)=>i.has(b.id)?v:(i.add(b.id),R([...v,...Vy(b,u,i)])),[]);return R([...t,...y])}function Ho(d,u){const i=gd(d,u);return i.last===u&&i.list.length>0&&i.list[0]!==u}function tA(d,u){return!!gd(d,u).last}function Jme(d){if(Yt.includes(d.type))return d;if([...Gs,f.VariableDeclaration].includes(d.type)){const u=d.parent;return Yt.includes(u.type)?u:null}return null}function rA(d,u){if(!d||!u)throw new Error("Both entities must be defined to find a common ancestor");if(d===u)return d;const i=d.parent;if(i){if(i===u)return u;if(i.type===f.Project)return null}else return null;const a=u.parent;if(a){if(a===d)return d;if(a.type===f.Project)return null}else return null;return rA(i,a)}function pr(d){if(Pf.includes(d.type)){if(d.type===f.FunctionDeclaration){const u=d.parent;if(u.type===f.DefinitionEntity)return pr(u);if(u.type===f.Loop)return u}return d.type===f.DefinitionEntity&&d.parent.type===f.DataType?pr(d.parent):d}else{const u=d.parent;return u?pr(u):null}}function Ny(d,u){const i=Ap(d,u);if(!i)return null;if(Pf.includes(i.type)){if(i.type===f.FunctionDeclaration){const a=Ap(i.parent,u);if(a){if(a.type===f.DefinitionEntity)return a;if(a.type===f.Loop)return a}}return i}else{const a=i.parent?Ap(i.parent,u):null;return a?Ny(a,u):null}}function Yx(d){if(!d)return null;if(Gs.includes(d.type))return d;const u=d.parent;return u?Yx(u):null}function zx(d){if(!d)return null;if(er.includes(d.type))return d;const u=d.parent;return u?zx(u):null}function Xx(d){if(!d)return null;if(Ks.includes(d.type))return d;const u=d.parent;return u?Xx(u):null}function Qx(d){return d.type===f.VariableDeclaration?[d]:er.includes(d.type)?[...d.inputs,...d.outputs||[]]:sr.includes(d.type)?d.outputs:Cl.includes(d.type)||d.type===f.FunctionDeclaration?d.inputs:[]}function Wme(d){const u=Qs(d),i=[],a=[];n1.includes(d.type)&&i.push(...Ly(d));const l=u.filter(p=>{const t=i.includes(p);return t?!1:Gs.includes(p.type)&&!t?(a.push(p),!1):!0});return i.sort((p,t)=>Ho(t,p)?-1:0),a.sort((p,t)=>Ho(t,p)?-1:0),[...i,...a,...l]}function e6(d){return[...d].sort((u,i)=>Ho(i,u)?-1:0)}function iA(d){const u=e6(d),i=[];return u.forEach(a=>{const l=i[i.length-1];if(l){const p=l[l.length-1];Ho(a,p)?i.push([a]):l.push(a)}else i.push([a])}),i}function ti(d){const u=d.map(i=>pr(i));return R(u)}function Ly(d){return er.includes(d.type)?[...ti(d.successCalls),...ti(d.errorCalls)]:Yt.includes(d.type)?ti(d.calls):[]}function Hme(d,u){return Ly(d).includes(u)}function sA(d){return d.writesValues||[]}function Yme(d,u){return sA(d).includes(u)}function t6(d){var u;return nt.includes((u=d==null?void 0:d.readsValue)==null?void 0:u.type)?d.readsValue:null}function zme(d){return d.writesValues}function r6(d=[]){return d.map(t6).filter(u=>!!u)}function By(d=[]){return d.map(u=>u.writesValues).flat().filter(u=>nt.includes(u.type))}function i6(d=[]){return d.map(u=>u.readsValue).filter(u=>!!u&&nt.includes(u.type))}function s6(d){return nt.includes(d.type)?d:null}function n6(d){return d.writesValues.map(s6).filter(u=>!!u)}function a6(d=[]){return d.reduce((u,i)=>i.type===f.OutputMap?[...u,...n6(i)]:u,[])}function ft(d){return d.type===f.Loop?R([...Cs(ti(d.successCalls)),...Cs(ti(d.errorCalls)),...d.body?ft(d.body):[]]):er.includes(d.type)?R([...Cs(ti(d.successCalls)),...Cs(ti(d.errorCalls))]):Yt.includes(d.type)?R(Cs(ti(d.calls))):[]}function Xme(d){return er.includes(d.type)?[...Cs(ti(d.successCalls)),...Cs(ti(d.errorCalls))]:Yt.includes(d.type)?Cs(ti(d.calls)):[]}function o6(d,u=new Set){return d.writesValues.filter(a=>nt.includes(a.type)&&!u.has(a.id)).reduce((a,l)=>u.has(l.id)?a:[...a,...Xt(l,u)],[])}function l6(d,u=new Set){var a;return(((a=d.readsValue)==null?void 0:a.writesValues)||[]).filter(l=>nt.includes(l.type)&&!u.has(l.id)).reduce((l,p)=>u.has(p.id)?l:[...l,...Xt(p,u)],[])}function Xt(d,u=new Set){if(u.has(d.id))return[];if(d.type===f.ReturnStatement)return i6(d.outputs).reduce((a,l)=>[...a,...Xt(l,u)],[]);if(d.type===f.FunctionCall||d.type===f.Operation||d.type===f.Condition)return[...ft(d).reduce((p,t)=>{const y=pr(t);return[...p,...Xt(y||t,u)]},[]),...r6(d.inputs),...a6(d.outputs)].reduce((p,t)=>[...p,...Xt(t,u)],[]);if(Cl.includes(d.type)){const i=By(d.inputs),l=ft(d).reduce((p,t)=>{const y=pr(t);return[...p,...Xt(y||t,u)]},[]);return i.push(...l),i.reduce((p,t)=>[...p,...Xt(t,u)],[])}if(d.type===f.FunctionDeclaration){const i=[...By(d.inputs)],l=ft(d).reduce((p,t)=>{const y=pr(t);return[...p,...Xt(y||t,u)]},[]);return i.push(...l),i.reduce((p,t)=>[...p,...Xt(t)],[])}if(nt.includes(d.type)){u.add(d.id);const a=ft(d).reduce((l,p)=>{const t=pr(p);return[...l,...Xt(t||p,u)]},[]);return[d,...a,...l6(d,u),...o6(d,u)]}return[]}function Yi(d,u=new Set){return u.has(d.id)?[]:(u.add(d.id),[...Qs(d).reduce((l,p)=>[...l,p,...Yi(p,u)],[])])}function Cs(d){return d.reduce((u,i)=>i.type===f.ReturnStatement||i.type===f.ContinueStatement||i.type===f.BreakStatement?[...u,i]:[...u,i,...ft(i)],[])}function d6(d){const u=d.entities||[],i=[...u,...d.functions||[],...d.events||[],...d.projects||[]],a=u.reduce((v,b)=>[...v,...b.properties],[]),l=u.reduce((v,b)=>[...v,...b.methods],[]),p=l.reduce((v,b)=>[...v,...By(b.inputs),...Cs(ti(b.calls)),...b.returnStatements],[]),t=d.functions.reduce((v,b)=>[...v,...Cs(ti(b.calls)),...b.returnStatements],[]),y=d.events.reduce((v,b)=>[...v,...Cs(ti(b.calls)),...b.returnStatements],[]);return[...i,...a,...l,...p,...t,...y]}function u6(d,u){return u.filter(a=>{if(!a)return!1;switch(a.type){case f.FunctionCall:return a.inputs.find(l=>l.id===d.id)!==void 0||a.outputs.find(l=>l.id===d.id)!==void 0;case f.Condition:return a.successCalls.find(l=>l.id===d.id)!==void 0||a.errorCalls.find(l=>l.id===d.id)!==void 0||a.inputs.find(l=>l.id===d.id)!==void 0;case f.Operation:return a.outputs.find(l=>l.id===d.id)!==void 0;case f.VariableDeclaration:return er.includes(d.type)?x6(d).find(p=>{var t;return((t=p.readsValue)==null?void 0:t.id)===a.id})!==void 0:!1;case f.DefinitionEntity:return a.properties.find(l=>l.id===d.id)!==void 0||a.methods.find(l=>l.id===d.id)!==void 0;case f.FunctionDeclaration:return a.inputs.find(l=>l.id===d.id)!==void 0||(a.returnStatements.map(l=>l.outputs).flat()||[]).find(l=>l.id===d.id)!==void 0;default:return!1}})}function Qme(d){const u=d6(d.project);return u6(d,u)}function Ap(d,u){return d?typeof d=="string"?u[d]:d.type===f.GenericReference?u[d.entityId]:u[d.id]?u[d.id]:null:null}function c6(d={},u){const i={};return Object.keys(d).forEach(a=>{const l=u.get(a)||a,p=d[a];i[l]=p}),i}function _d(d,u={},i={}){const a={ignoreBuiltInBaseEntities:!1,allBuiltInEntityIds:[],entityMaps:new Map,...i};if(a.ignoreBuiltInBaseEntities&&(Gi.includes(d.type)||(a.allBuiltInEntityIds||[]).includes(d.id)))return{upstream:{},downstream:{}};const l=d,p=d,t=d,y=d,v=d,b=d,w=d,A=d,V=d,L=d,j=d,k=d,S=d,H=[...S.readsValue?[S.readsValue]:[],...S.declaration?[S.declaration]:[],...(k.calledByEntry||[]).flatMap(ne=>ne),...(k.calledBySuccess||[]).flatMap(ne=>ne),...(k.calledByError||[]).flatMap(ne=>ne),...L.parent?[L.parent]:[]];Array.isArray(t.implements)?H.push(...t.implements.flatMap(ne=>ne)):V.implements&&H.push(V.implements),Array.isArray(t.extends)?H.push(...t.extends.flatMap(ne=>ne)):V.extends&&H.push(V.extends),v.valueAsTypeList&&Array.isArray(v.valueAsTypeList)&&H.push(...v.valueAsTypeList.flatMap(ne=>ne)),v.valueAsTypeSingle&&H.push(v.valueAsTypeSingle);const ie=[...(l.inputs||[]).flatMap(ne=>ne),...(j.inputsDeclarations||[]).flatMap(ne=>ne),...(l.outputs||[]).flatMap(ne=>ne),...(j.outputsDeclarations||[]).flatMap(ne=>ne),...(S.internalCalls||[]).flatMap(ne=>ne),...S.writesValues||[],...k.dataType?[k.dataType]:[],...b.body?[b.body]:[],...k.defaultValue?[k.defaultValue]:[],...(k.successCalls||[]).flatMap(ne=>ne),...(k.errorCalls||[]).flatMap(ne=>ne),...(t.properties||[]).flatMap(ne=>ne),...(t.methods||[]).flatMap(ne=>ne),...(t.abstractMethods||[]).flatMap(ne=>ne),...w.error?[w.error]:[],...w.process?[w.process]:[],...L.throws?[L.throws]:[],...(p.andChildrenGroup||[]).flatMap(ne=>ne),...(p.orChildrenGroup||[]).flatMap(ne=>ne),...(A.entities||[]).flatMap(ne=>ne),...(A.functions||[]).flatMap(ne=>ne),...(A.functionCalls||[]).flatMap(ne=>ne),...(A.events||[]).flatMap(ne=>ne),...(A.conditions||[]).flatMap(ne=>ne),...(A.operations||[]).flatMap(ne=>ne),...(A.loops||[]).flatMap(ne=>ne),...(A.variableDeclarations||[]).flatMap(ne=>ne),...(A.variableInstances||[]).flatMap(ne=>ne),...(A.searches||[]).flatMap(ne=>ne),...(A.projects||[]).flatMap(ne=>ne),...(y.calls||[]).flatMap(ne=>ne)];d.type===f.DataType&&(p.entity&&u[W(p.entity)]&&u[W(p.entity)].parent&&W(u[W(p.entity)].parent)===d.id?ie.push(p.entity):p.entity&&H.push(p.entity));const te={},pe={};return H.forEach(ne=>{var ae;const ve=W(ne);if(ve&&a.ignoreBuiltInBaseEntities&&(Gi.includes(ne.type)||(a.allBuiltInEntityIds||[]).includes(ve)))return;const J=ne.version;if(ve){const ce=((ae=a.entityMaps)==null?void 0:ae.get(ve))||ve;te[ce]=J}}),ie.forEach(ne=>{var ae;const ve=W(ne);if(ve&&a.ignoreBuiltInBaseEntities&&(Gi.includes(ne.type)||(a.allBuiltInEntityIds||[]).includes(ve)))return;const J=ne.version;if(ve){const ce=((ae=a.entityMaps)==null?void 0:ae.get(ve))||ve;pe[ce]=J}}),{upstream:te,downstream:pe}}function e0e(d,u){const i=[];if(Gs.includes(d.type)){hs(d).forEach(p=>{const t=Ny(p,u);t&&i.push(t)});const l=[...d.inputs||[],...d.outputs||[]].map(p=>{const t=Ap(p,u);return t?G6(t,u):null}).filter(p=>p!==null);i.push(...R(l))}if(nt.includes(d.type)){const a=My(d);a&&i.push(a)}return R(i)}function Ya(d){const u=[];if(Gs.includes(d.type)){d.calledBy.forEach(l=>{const p=pr(l);p&&u.push(p)});const a=[...d.inputs||[],...d.outputs||[]].map(l=>My(l)).filter(l=>l!==null);u.push(...R(a))}if(nt.includes(d.type)){const i=My(d);i&&u.push(i)}return R(u)}function hs(d){return[...d.calledByEntry||[],...d.calledByError||[],...d.calledBySuccess||[]].filter(u=>u.type!==f.GenericReference)}function p6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[d,...d.inputs.flatMap(a=>he(a,u,i)),...d.outputs.flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.parent?he(d.parent,u,i):[]]}function f6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[d,...d.defaultValue?he(d.defaultValue,u):[],...d.writesValues.flatMap(a=>he(a,u,i)),...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function h6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[d,...d.outputs.flatMap(a=>he(a,u,i)),...d.throws?he(d.throws,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function y6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[d,...(d.properties||[]).flatMap(a=>he(a,u,i)),...(d.methods||[]).flatMap(a=>he(a,u,i)),...(d.abstractMethods||[]).flatMap(a=>he(a,u,i)),...(d.extends||[]).flatMap(a=>he(a,u,i))]}function m6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Condition)throw new Error("Entity must be a condition to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function v6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[d,...d.outputs.flatMap(a=>he(a,u,i)),...d.throws?he(d.throws,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function E6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[d,...(d.extends||[]).flatMap(a=>he(a,u,i)),...(d.implements||[]).flatMap(a=>he(a,u,i)),...(d.properties||[]).flatMap(a=>he(a,u,i)),...(d.methods||[]).flatMap(a=>he(a,u,i)),...(d.abstractMethods||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function T6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.DataType)throw new Error("Entity must be a data type to be flattened");return[d,...(d.andChildrenGroup||[]).flatMap(a=>he(a,u,i)),...(d.orChildrenGroup||[]).flatMap(a=>he(a,u,i)),...d.entity?he(d.entity,u,i):[],...d.parent?he(d.parent,u,i):[]]}function b6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.process?he(d.process,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function A6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.calls||[]).flatMap(a=>he(a,u,i)),...d.implements?he(d.implements,u,i):[],...d.parent?he(d.parent,u,i):[]]}function I6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.calls||[]).flatMap(a=>he(a,u,i)),...d.implements?he(d.implements,u,i):[],...d.parent?he(d.parent,u,i):[]]}function w6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.InputMap)throw new Error("Entity must be an input map to be flattened");return[d,...d.readsValue?he(d.readsValue,u,i):[],...d.declaration?he(d.declaration,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...d.parent?he(d.parent,u,i):[]]}function R6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[d,...(d.functions||[]).flatMap(a=>he(a,u,i)),...(d.events||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function g6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.process?he(d.process,u,i):[],...d.parent?he(d.parent,u,i):[]]}function _6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[d,...d.valueAsTypeSingle?he(d.valueAsTypeSingle,u,i):[],...d.valueAsTypeList&&Array.isArray(d.valueAsTypeList)?d.valueAsTypeList.flatMap(a=>he(a,u,i)):[],...d.parent?he(d.parent,u,i):[]]}function D6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Loop)throw new Error("Entity must be a loop to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.process?he(d.process,u,i):[],...d.body?he(d.body,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function O6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Operation)throw new Error("Entity must be an operation to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.process?he(d.process,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function C6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.OutputMap)throw new Error("Entity must be an output map to be flattened");return[d,...(d.writesValues||[]).flatMap(a=>he(a,u,i)),...d.declaration?he(d.declaration,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...d.parent?he(d.parent,u,i):[]]}function $6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[d,...(d.properties||[]).flatMap(a=>he(a,u,i)),...(d.methods||[]).flatMap(a=>he(a,u,i)),...(d.abstractMethods||[]).flatMap(a=>he(a,u,i))]}function P6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Project)throw new Error("Entity must be a project to be flattened");return[d,...(d.entities||[]).flatMap(a=>he(a,u,i)),...(d.functions||[]).flatMap(a=>he(a,u,i)),...(d.events||[]).flatMap(a=>he(a,u,i)),...(d.projects||[]).flatMap(a=>he(a,u,i)),...(d.variableDeclarations||[]).flatMap(a=>he(a,u,i)),...(d.variableInstances||[]).flatMap(a=>he(a,u,i)),...(d.operations||[]).flatMap(a=>he(a,u,i)),...(d.conditions||[]).flatMap(a=>he(a,u,i)),...(d.functionCalls||[]).flatMap(a=>he(a,u,i)),...(d.projects||[]).flatMap(a=>he(a,u,i)),...(d.loops||[]).flatMap(a=>he(a,u,i)),...(d.searches||[]).flatMap(a=>he(a,u,i))]}function V6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Property)throw new Error("Entity must be a property to be flattened");return[d,...d.defaultValue?he(d.defaultValue,u,i):[],...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function N6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ReturnDeclaration)throw new Error("Entity must be a return declaration to be flattened");return[d,...d.readsValue?he(d.readsValue,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function L6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[d,...(d.outputs||[]).flatMap(a=>he(a,u,i)),...d.throws?he(d.throws,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function B6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Search)throw new Error("Entity must be a search to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputsDeclarations||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputsDeclarations||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function M6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[d,...d.defaultValue?he(d.defaultValue,u,i):[],...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function U6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...(d.internalCalls||[]).flatMap(a=>he(a,u,i)),...(d.writesValues||[]).flatMap(a=>he(a,u,i)),...d.readsValue?he(d.readsValue,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function j6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...(d.internalCalls||[]).flatMap(a=>he(a,u,i)),...(d.writesValues||[]).flatMap(a=>he(a,u,i)),...d.readsValue?he(d.readsValue,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.declaration?he(d.declaration,u,i):[],...d.parent?he(d.parent,u,i):[]]}function $s(){const d=new Set,u=YN.flatMap(i=>he(i,d)).map(i=>i.id);if(!u.includes("http-request-error-return-delaration-id"))throw new Error("Built-in base entities must be included in the list");return u}function he(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(!d)throw new Error("Entity must be defined to be flattened");if(d.type===f.GenericReference)return[];if(i.ignoreBuiltInBaseEntities&&(Gi.includes(d.type)||$s().includes(d.id)))return[];if(u.has(d.id))return[];switch(d.type){case f.FunctionCall:return b6(d,u,i);case f.Operation:return O6(d,u,i);case f.Condition:return m6(d,u,i);case f.Loop:return D6(d,u,i);case f.Search:return B6(d,u,i);case f.GlobalEvent:return I6(d,u,i);case f.ReturnStatement:return L6(d,u,i);case f.ContinueStatement:return v6(d,u,i);case f.BreakStatement:return h6(d,u,i);case f.VariableDeclaration:return U6(d,u,i);case f.DefinitionEntity:return E6(d,u,i);case f.FunctionDeclaration:return A6(d,u,i);case f.Project:return P6(d,u,i);case f.ActionDescriptor:return p6(d,u,i);case f.ArgumentDeclaration:return f6(d,u,i);case f.ReturnDeclaration:return N6(d,u,i);case f.ValueDescriptor:return M6(d,u,i);case f.InputMap:return w6(d,u,i);case f.OutputMap:return C6(d,u,i);case f.DataType:return T6(d,u,i);case f.InstalledProject:return R6(d,u,i);case f.InternalCall:return g6(d,u,i);case f.LiteralValue:return _6(d,u,i);case f.Property:return V6(d,u,i);case f.VariableInstance:return j6(d,u,i);case f.BuiltInBaseEntity:return i.ignoreBuiltInBaseEntities?[]:y6(d,u,i);case f.PrimitiveEntity:return i.ignoreBuiltInBaseEntities?[]:$6(d,u,i)}return[]}function nA(d){return d.type===f.FunctionCall||d.type===f.InternalCall||[f.Operation,f.Condition,f.Loop].includes(d.type)?d.declaration.inputs:d.type===f.FunctionDeclaration||Cl.includes(d.type)?d.inputs:d.type===f.Search?d.inputsDeclarations:[]}function t0e(d,u){return u.type===f.Condition?u.inputs.find(i=>i.declaration.id===d.id):u.type===f.FunctionCall||u.type===f.Operation?u.inputs.find(i=>i.declaration.id===d.id):null}function x6(d){return er.includes(d.type)?d.inputs:[]}function F6(d){var u;return d.type===f.FunctionCall?((u=d.declaration.returnStatements[0])==null?void 0:u.outputs)||[]:[f.Operation,f.Condition,f.Loop].includes(d.type)?d.declaration.outputs:d.type===f.Search?d.outputsDeclarations:sr.includes(d.type)?d.outputs:[]}function r0e(d,u){return u.type===f.Condition?null:u.type===f.FunctionCall||u.type===f.Operation?u.outputs.find(i=>i.declaration.id===d.id):null}function i0e(d){return d.type===f.Condition?[]:er.includes(d.type)?d.outputs:[]}function My(d){const u=d.readsValue;return u?pr(u):null}function G6(d,u){const i=d.readsValue;return i?Ny(i,u):null}function K6(d){const u=d.internalCalls||[];return R(ti(R(u.flatMap(i=>[...i.successCalls,...i.errorCalls]))))}function Dd(d){const u=sA(d),i=[];return u.forEach(a=>{if(nt.includes(a.type))i.push(a);else if(Zn.includes(a.type)){const l=a.parent;i.push(l)}}),i}function R(d){const u=new Set;return d.filter(i=>!i||u.has(i.id)?!1:(u.add(i.id),!0))}function Qs(d,u=!1){const i=[];if(d.type===f.Project&&i.push(...(d==null?void 0:d.entities)||[],...(d==null?void 0:d.functions)||[],...(d==null?void 0:d.variableDeclarations)||[],...(d==null?void 0:d.variableInstances)||[],...(d==null?void 0:d.searches)||[],...(d==null?void 0:d.loops)||[],...(d==null?void 0:d.operations)||[],...(d==null?void 0:d.conditions)||[],...(d==null?void 0:d.functionCalls)||[],...(d==null?void 0:d.events)||[],...(d==null?void 0:d.projects)||[]),Ir.includes(d.type)&&i.push(...(d==null?void 0:d.detachedChildren)||[]),d.type===f.DefinitionEntity){const a=[...d.suggestedMethods,...d.methods].flatMap(l=>l.collapsed&&u?[]:Qs(l));i.push(...a)}if(d.type===f.Condition){const a=d.successCalls.map(p=>pr(p)),l=d.errorCalls.map(p=>pr(p));i.push(...a,...l)}if(Cl.includes(d.type)){if(d.collapsed&&u)return[];const a=d.inputs.map(p=>Dd(p)).flat(),l=d.calls.map(p=>pr(p));i.push(...R(a),...l)}if(er.includes(d.type)&&d.type!==f.Condition&&d.type!==f.Loop){const a=d==null?void 0:d.outputs.map(t=>Dd(t)).flat(),l=d.successCalls.map(t=>pr(t)),p=d.errorCalls.map(t=>pr(t));i.push(...R(a),...l,...p)}if(nt.includes(d.type)){const a=Dd(d),l=K6(d);i.push(...a,...l)}if(d.type===f.Loop){const a=d.outputs.map(t=>Dd(t)).flat();if(d.body){const t=Qs(d.body,u);i.push(...t)}const l=d.errorCalls.map(t=>pr(t)),p=d.successCalls.map(t=>pr(t));i.push(...R(a),...p,...l)}if(d.type===f.FunctionDeclaration){if(d.collapsed&&u)return[];const a=d.inputs.map(p=>Dd(p)).flat(),l=d.calls.map(p=>pr(p));i.push(...R(a),...l)}return R(i)}function Uy(d,u=!1){const i=Qs(d,u),a=[...i,...i.reduce((l,p)=>[...l,...Uy(p,u)],[])];return R(a)}function k6(d){const u=Ya(d),i=[...u,...u.reduce((a,l)=>[...a,...k6(l)],[])];return R(i)}function Ip(d){return d.implements.reduce((u,i)=>i.type===f.DefinitionEntity?[...u,f.DefinitionEntity,...Ip(i),...wp(i)]:[...u,i.name],[])}function wp(d){return d.extends.reduce((u,i)=>i.type===f.DefinitionEntity?[...u,f.DefinitionEntity,...wp(i),...Ip(i)]:[...u,i.name],[])}function aA(d){return d.extends.reduce((u,i)=>i.type===f.DefinitionEntity?[...u,i,...aA(i),...oA(i)]:[...u,i],[])}function oA(d){return d.implements.reduce((u,i)=>i.type===f.DefinitionEntity?[...u,i,...oA(i),...aA(i)]:[...u,i],[])}function Od(d){return[...wp(d),...Ip(d)].filter((i,a,l)=>l.indexOf(i)===a)}function lA(d){return d.implements.length===0&&d.extends.length===0?null:d.implements.find(a=>a.type===f.BuiltInBaseEntity&&a.name===Ce.PERSISTED_ENTITY)?d:[...d.implements,...d.extends].reduce((a,l)=>{if(l.type===f.DefinitionEntity){const p=lA(l);if(p)return p}return a},null)}function s0e(d){const u=d.extends.find(i=>i.type===f.BuiltInBaseEntity);return u&&u.type===f.BuiltInBaseEntity?u:null}function n0e(d){const u=d.implements.find(i=>i.type===f.BuiltInBaseEntity);return u&&u.type===f.BuiltInBaseEntity?u:null}function jy(d){const u=d.extends.find(i=>i.type===f.DefinitionEntity);return u&&u.type===f.DefinitionEntity?u:null}function Ii(d){if(d.type===f.BuiltInBaseEntity)return[d];const u=[...d.implements,...d.extends].reduce((i,a)=>a.type===f.BuiltInBaseEntity?[...i,a]:a.type===f.DefinitionEntity?[...i,...Ii(a)]:i,[]);return R(u)}function Rp(d){return d.type===f.PrimitiveEntity?!0:d.type===f.BuiltInBaseEntity?d.interactive:!Ii(d).find(a=>!a.interactive)}function a0e(d){return d.parent===d.project&&d.project.variableDeclarations.includes(d)}function dA(d){return d.parent!==d.project?!1:f.VariableDeclaration===d.type?d.project.variableDeclarations.includes(d):f.VariableInstance===d.type?d.project.variableInstances.includes(d):f.FunctionCall===d.type?d.project.functionCalls.includes(d):f.Condition===d.type?d.project.conditions.includes(d):f.Operation===d.type?d.project.operations.includes(d):f.Loop===d.type?d.project.loops.includes(d):f.Search===d.type?d.project.searches.includes(d):!1}function S6(d){if([...Yt,f.DefinitionEntity,f.InstalledProject,f.Project].includes(d.type)||dA(d))return!1;const u=Ya(d);return u.length===0?!0:u.some(i=>S6(i))}function uA(d){return[...Yt,f.DefinitionEntity,f.InstalledProject,f.Project].includes(d.type)||dA(d)?!1:Ya(d).length===0}function q6(d,u=0){if(uA(d)){const i=Ya(d);return i.length===0?d:i.map(l=>q6(l,u+1)).reduce((l,p)=>l?p&&p.x<l.x?p:l:p,null)}return null}function Z6(d){const u=[];if(uA(d))u.push(d);else return[];return Ya(d).forEach(a=>{u.push(...Z6(a))}),u}function cA(d){return d.type===f.FunctionDeclaration&&d.parent!==d.project&&!![f.DefinitionEntity,f.Loop,f.InstalledProject].includes(d.parent.type)}function o0e(d,u){const i=new Map;return d.forEach(a=>{i.set(a.id,a)}),u.forEach(a=>{i.set(a.id,a)}),Array.from(i.values())}function gp(d){switch(d){case f.DefinitionEntity:return ya;case f.FunctionDeclaration:return Ba;case f.VariableDeclaration:return Ga;case f.VariableInstance:return Fa;case f.FunctionCall:return Ha;case f.Operation:return Ma;case f.Condition:return xa;case f.ReturnStatement:return Ua;case f.Loop:return bi;case f.Search:return Ka;case f.InputMap:return Os;case f.OutputMap:return zs;case f.ArgumentDeclaration:return ca;case f.ReturnDeclaration:return Vi;case f.Property:return da;case f.InstalledProject:return ka;case f.Project:return P;case f.DataType:return Wi;case f.GlobalEvent:return ja;case f.InternalCall:return Sa;case f.ValueDescriptor:return Xs;case f.BuiltInBaseEntity:return On;case f.PrimitiveEntity:return Ni;case f.ActionDescriptor:return dt;case f.LiteralValue:return Ti;case f.ContinueStatement:return ci;case f.BreakStatement:return qa;default:return null}}function wi(d,u,i=null){const a=d!=null&&d.parent?W(d==null?void 0:d.parent):null;let l=a?u.get(a):null,p=i||d;if(d.type===f.ReturnStatement)return Nr(d,u,p);if(d.type===f.FunctionDeclaration&&(l==null?void 0:l.type)===f.Loop)return l;if(Yt.includes(d.type))return d;if(d.type===f.Loop)return p.id===d.id?l:d;if(Gi.includes(d.type))return null;const t=d.parent;if(!t)return null;if(t.type===f.GenericReference){const y=W(t);if(!y)return null;const v=u.get(y);return v?wi(v,u,p):null}else return t===u?u:wi(t,u,p)}function Nr(d,u,i=null){const a=d!=null&&d.parent?W(d==null?void 0:d.parent):null;let l=a?u.get(a):null,p=i||d;if(d.type===f.FunctionDeclaration&&(l==null?void 0:l.type)===f.Loop)return Nr(l.parent,u,p);if(Yt.includes(d.type))return d;if(Gi.includes(d.type))return null;const t=d.parent;if(!t)return null;if(t.type===f.GenericReference){const y=W(t);if(!y)return null;const v=u.get(y);return v?Nr(v,u,p):null}else return t===u?u:Nr(t,u,p)}function pA(d,u){if(Gi.includes(d.type)||u.getBuiltIn(d.id))return null;const i=Ri(d.parent,u);return i?i===u?Ir.includes(d.type)?d:null:i.type===f.DefinitionEntity?d:pA(i,u):null}function xy(d,u,i){if(d===u||u===i||d===i)return!1;const a=wi(u.parent,i);return a===d?!0:xy(a,u,i)}var Fy=(d=>(d.SameBothLocal="same-both-local",d.AInB="a-in-b",d.BInA="b-in-a",d.ParallelInCommonParent="parallel-in-common-parent",d.ParallelInProject="parallel-in-project",d.AIsGlobalBIsNot="a-is-global-b-is-not",d.BIsGlobalAIsNot="b-is-global-a-is-not",d.SameBothGlobal="same-both-global",d))(Fy||{});function _p(d,u,i){const a=wi(d,i),l=wi(u,i);if(!a)throw new Error("Could not find scope owner for the entity: "+d.id);if(!l)throw new Error("Could not find scope owner for the entity: "+u.id);if(a===l&&a.type!==f.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:a};if(a===l&&a.type===f.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:a};if(a.type===f.Project&&l.type!==f.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:a};if(a.type!==f.Project&&l.type===f.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:l};if(xy(a,l,i))return{compatible:!0,type:"b-in-a",commonAncestorScope:a};if(xy(l,a,i))return{compatible:!0,type:"a-in-b",commonAncestorScope:l};const y=rA(a,l);return y===i?{compatible:!1,type:"parallel-in-project",commonAncestorScope:y}:y?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:wi(y,i)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:i}}function J6(d,u,i){const a=_p(d,u,i);if(!a.compatible||a.type!=="same-both-local")return null;if(d===u)return d;let l=wi(d.parent,i);if(l){if(l===u)return u;if(l.type===f.Project)return d}else return d;for(;l;){if(l){if(l===u)return u;if(l.type===f.Project)return d}else return d;l=wi(l.parent,i)}let p=wi(u.parent,i);if(p){if(p===d)return d;if(p.type===f.Project)return u}else return u;for(;p;){if(p){if(p===d)return d;if(p.type===f.Project)return u}else return u;p=wi(p.parent,i)}return null}function W6(d){return d.length===0?null:d.length===1?d[0]:d.reduce((i,a)=>{const l=J6(i,a,a.project);return!l||l===a?i:a},d[0])}function Ri(d,u){if(!d)return null;let i;return typeof d=="string"?i=d:d.type===f.GenericReference?i=W(d):i=d.id,i===u.id?u:u.get(i)}function za(d){if(!d)return null;if(Gi.includes(d.type))return d;if(d.type===f.Project)return null;if(d.project.getBuiltIn(d.id))return d;const u=d.parent;return!u||u.type===f.Project?null:za(u)}function Dp(d){const u=[];function i(p,t){return u.some(y=>y.blockedByCaller===p&&y.blockedByCalling===t)}function a(p,t){i(p,t)||u.push({blockedByCaller:p,blockedByCalling:t})}const l=pA(d,d.project);return d.calledBySuccess.forEach(p=>{[...p.successCalls||[]].forEach(v=>{sr.includes(v.type)&&v!==d&&(ft(d).find(A=>A===v)||a(p,v))});let y;if(er.includes(p.type)&&(y=p),y){const v=Dp(y);v.reachable||ft(d).find(A=>A===p)||v.blocks.forEach(A=>{a(p,A.blockedByCalling)})}}),d.calledByError.forEach(p=>{[...p.errorCalls||[]].forEach(v=>{sr.includes(v.type)&&v!==d&&(ft(d).find(A=>A===v)||a(p,v))});let y;if(er.includes(p.type)&&(y=p),y){const v=Dp(y);v.reachable||ft(d).find(A=>A===p)||v.blocks.forEach(A=>{a(p,A.blockedByCalling)})}}),d.calledByEntry.forEach(p=>{if([...p.calls||[]].forEach(v=>{sr.includes(v.type)&&v!==d&&(ft(d).find(A=>A===v)||a(p,v))}),p===l)return;let y;if(p.type===f.FunctionDeclaration){const v=pr(p);if(v.type===f.DefinitionEntity)return;v.type===f.Loop&&(y=v)}if(y){const v=Dp(y);v.reachable||v.blocks.forEach(b=>{a(p,b.blockedByCalling)})}}),{reachable:u.length===0,entryPoint:l,blocks:u}}function l0e(d){return Pf.includes(d.type)?d.type===f.FunctionDeclaration?!cA(d):!0:!1}function d0e(d){if(f.ActionDescriptor===d.type){if(d.project.operationDeclarations.find(p=>p.id===d.id))return f.Operation;if(d.project.globalEventActionDescriptors.find(p=>p.id===d.id))return f.GlobalEvent;if(d.project.loopDeclarations.find(p=>p.id===d.id))return f.Loop;if(d.project.conditionDeclarations.find(p=>p.id===d.id))return f.Condition}return d.type}function Gy(d,u){return d.type===f.BuiltInBaseEntity?d.name===u:!!wp(d).includes(u)}function u0e(d,u){return d.type===f.BuiltInBaseEntity?d.name===u:!!Ip(d).includes(u)}function zi(d,u){return d.type===f.BuiltInBaseEntity?d.name===u:!!Od(d).includes(u)}function c0e(d){const u=[];return d.entities.forEach(i=>{if(Gy(i,Ce.PERSISTED_ENTITY)){u.push(i);return}}),R(u)}function p0e(d){const u=[];return d.entities.forEach(i=>{if(Gy(i,Ce.RELATIONAL_DATABASE)){u.push(i);return}}),R(u)}function f0e(d){return d.type!==f.DefinitionEntity||d.abstract||!Gy(d,Ce.PERSISTED_ENTITY)?null:(d==null?void 0:d.properties.find(i=>{var a;return((a=i.implements)==null?void 0:a.id)===me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties.primaryKey.id&&!i.abstract}))||null}function H6(d){var a;const u=lA(d);if(!u)return null;const i=u.properties.find(l=>{var p;return((p=l.implements)==null?void 0:p.id)===me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties.database.id});return i?(a=i.getDefaultValue())==null?void 0:a.valueAsType:null}function Cd(d){if(d.type!==f.DefinitionEntity)return[];if(d.abstract)return[];if(!zi(d,Ce.PERSISTED_ENTITY))return[];const u=[],i=d.properties.filter(a=>{var l;return((l=a.implements)==null?void 0:l.id)!==me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties.database.id&&!a.abstract});return u.push(...i),u}function h0e(d){var i;if(!d||d.type!==f.DefinitionEntity||!zi(d,Ce.PERSISTED_ENTITY))return null;const u=d.properties.find(a=>{var l;return((l=a.implements)==null?void 0:l.id)===me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties.database.id});return(i=u==null?void 0:u.getDefaultValue())==null?void 0:i.valueAsTypeSingle}function Rr(d,u){var a;if(!l1.includes(u.type)||!d)return u.project||null;let i=u.project;return d.type===f.Project?i=d:((a=u.project)==null?void 0:a.id)!==d.project.id&&(i=d.project),i}function y0e(d){switch(d){case f.Project:return P;case f.InstalledProject:return ka;case f.DefinitionEntity:return ya;case f.FunctionDeclaration:return Ba;case f.GlobalEvent:return ja;case f.VariableInstance:return Fa;case f.VariableDeclaration:return Ga;case f.InputMap:return Os;case f.OutputMap:return zs;case f.Condition:return xa;case f.Operation:return Ma;case f.FunctionCall:return Ha;case f.ReturnDeclaration:return Vi;case f.ArgumentDeclaration:return ca;case f.PrimitiveEntity:return Ni;case f.DataType:return Wi;case f.Property:return da;case f.ActionDescriptor:return dt;case f.ReturnStatement:return Ua;case f.ContinueStatement:return ci;case f.BreakStatement:return qa;case f.Loop:return bi;case f.Search:return Ka;case f.ValueDescriptor:return Xs;case f.InternalCall:return Sa;case f.LiteralValue:return Ti}return null}function m0e(d){const u={added:{},updated:{},removed:{},affected:[],seenEntities:[],self:d==null?void 0:d.self};return d==null||d.added.forEach(i=>{u.added[i.id]=i}),d==null||d.updated.forEach(i=>{u.updated[i.id]=i}),d==null||d.removed.forEach(i=>{u.removed[i.id]=i}),u.affected=Array.from(new Set(d==null?void 0:d.affected.map(i=>i.id))),u}function br(d,u){const i=gp(d.type);return i?!i.MUTABLE_META_PROPERTIES.every(l=>{const p=d[l],t=u[l];return t===void 0||p===t?!0:Array.isArray(p)&&Array.isArray(t)?p.length!==t.length?!1:p.every((y,v)=>y===t[v]):!1}):!1}function Ky(d,u={}){if(d.type===f.Project)return[];if(!d.parent)return[];const i=W(d.parent);if(!i)return[];const a=u[i];return a?[a.id,...Ky(a,u)]:[]}function v0e(d){const u=[],i=new Set;return[...d.listAdded,...d.listUpdated,...d.listAffected].forEach(a=>{const l=pr(a);!l||i.has(l.id)||(i.add(l.id),u.push(l))}),R(u)}function E0e(d){if(d.type===f.Condition)return null;if(d.type===f.Search)return d.project.getBuiltIn(me["value-descriptor"][$l.SearchErrorOutputDescriptor].id)||null;if(d.type===f.Operation)return d.declaration.error;if(d.type===f.FunctionCall){const i=d.declaration.returnStatements.find(a=>!!a.throws);return(i==null?void 0:i.throws)||null}return null}function Y6(d){const u=d.entities.filter(l=>!!l.implements.find(p=>p.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)),i=u.find(l=>{const p=l.properties.find(v=>v.implements&&v.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),t=p==null?void 0:p.getDefaultValue();return(t==null?void 0:t.value)===!0});return i||u[0]||null}function fA(d,u){const i=Array.from(new Set([...u.getAllBuiltInIds(),...$s()]));return!!(i.includes(d.id)||!Ky(d,{...u.instances,...u.builtInInstances}).every(p=>!i.includes(p)))}function z6(d){if(!d)return null;if(d.type===f.Project)return d.id;const u=d.parent;return u?z6(u):d.id}function X6(d){const u=lpe(),i=d.toJSON();u.safeParse(i).success;const l=d.implements.flatMap(w=>T0e(d,w)),p=d.extends.flatMap(w=>b0e(d,w)),t=I0e(d),y=A0e(d);d.methods.flatMap(w=>w.validate());const v=[...l,...p,...t,...y];return Qt(d.errors,v)}function Q6(d,u){const i=u.properties.filter(p=>p.abstract),a=[];let l=[...d.properties];return i.forEach(p=>{const t=l.find(y=>{var v;return((v=y.implements)==null?void 0:v.id)===p.id});t?l=l.filter(y=>y.id!==t.id):a.push(p)}),a}function eF(d,u){const i=u.abstractMethods,a=[];let l=[...d.methods];return i.forEach(p=>{const t=l.find(y=>{var v;return((v=y.implements)==null?void 0:v.id)===p.id});t?l=l.filter(y=>y.id!==t.id):a.push(p)}),a}function T0e(d,u){const i=[];if(!u.abstract){const w=lt({id:d.id+"--"+se.ImplementingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is implementing a non-abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.ImplementingNonAbstractEntity,entity:d});return i.push(w.error),i}const a=u.properties.filter(w=>w.abstract),l=[];let p=[...d.properties];a.forEach(w=>{const A=p.find(V=>{var L;return((L=V.implements)==null?void 0:L.id)===w.id});A?p=p.filter(V=>V.id!==A.id):l.push(w)}),l.length&&l.forEach(w=>{const A=lt({id:d.id+"--"+se.MissingPropertyImplementation+"--"+w.id,message:`Property "${w.name}" with id "${w.id}" of entity "${u.name}" with id "${u.id}" is not implemented when entity "${d.name}" with id "${d.id}" implements it`,issue:null,severity:Z.Error,code:se.MissingPropertyImplementation,entity:d});i.push(A.error)});const t=[];let y=[...d.methods];u.abstractMethods.forEach(w=>{const A=y.find(V=>{var L;return((L=V.implements)==null?void 0:L.id)===w.id});A?y=y.filter(V=>V.id!==A.id):t.push(w)}),t.length&&t.forEach(w=>{const A=lt({id:d.id+"--"+se.MissingMethodImplementation+"--"+w.id,message:`Method "${w.name}" with id "${w.id}" of entity "${u.name}" with id "${u.id}" is not implemented when entity "${d.name}" with id "${d.id}" implements it`,issue:null,severity:Z.Error,code:se.MissingMethodImplementation,entity:d});i.push(A.error)});const v=[];u.properties.forEach(w=>{const A=p.find(V=>V.name===w.name);A&&v.push([A,w])}),v.length&&v.forEach(([w])=>{const A=lt({id:d.id+"--"+le.PropertyOverwritesOtherSiblingWithSameName+"--"+w.id,message:`Property "${w.name}" with id "${w.id}" of entity "${d.name}" with id "${d.id}" overwrites the property with the same name from the base entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:le.PropertyOverwritesOtherSiblingWithSameName,entity:d});i.push(A.error)});const b=[];return u.methods.forEach(w=>{const A=y.find(V=>V.name===w.name);A&&b.push([A,w])}),b.length&&b.forEach(([w])=>{const A=lt({id:d.id+"--"+le.MethodOverwritesOtherSiblingWithSameName+"--"+w.id,message:`Method "${w.name}" with id "${w.id}" of entity "${d.name}" with id "${d.id}" overwrites the method with the same name from the base entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:le.MethodOverwritesOtherSiblingWithSameName,entity:d});i.push(A.error)}),i}function b0e(d,u){const i=[],a=[];if(!d.abstract&&u.abstract){const p=lt({id:d.id+"--"+u.id+"--"+se.NonAbstractExtendingAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is not-abstract but is extending an abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.NonAbstractExtendingAbstractEntity,entity:d,firstRelationship:u});return i.push(p.error),i}if(d.abstract&&!u.abstract){const p=lt({id:d.id+"--"+u.id+"--"+se.AbstractExtendingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is abstract but is extending an non-abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.AbstractExtendingNonAbstractEntity,entity:d,firstRelationship:u});return i.push(p.error),i}d.properties.forEach(p=>{var y;const t=u.properties.find(v=>{var b;return v.name===p.name&&((b=p.extends)==null?void 0:b.id)!==v.id});((y=p.implements)==null?void 0:y.id)!==(t==null?void 0:t.id)&&t&&a.push(p)}),a.length&&a.forEach(p=>{const t=lt({id:d.id+"--"+le.PropertyOverwritesOtherSiblingWithSameName,message:`Property "${p.name}" with id "${p.id}" of entity "${d.name}" with id "${d.id}" overwrites the property with the same name from the extended entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:le.PropertyOverwritesOtherSiblingWithSameName,entity:d});i.push(t.error)});const l=[];return d.methods.forEach(p=>{var y;const t=u.methods.find(v=>{var b;return v.name===p.name&&((b=p.extends)==null?void 0:b.id)!==v.id});((y=p.implements)==null?void 0:y.id)!==(t==null?void 0:t.id)&&t&&l.push(p)}),l.length&&l.forEach(p=>{const t=lt({id:d.id+"--"+le.MethodOverwritesOtherSiblingWithSameName,message:`Method "${p.name}" with id "${p.id}" of entity "${d.name}" with id "${d.id}" overwrites the method with the same name from the extended entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:le.MethodOverwritesOtherSiblingWithSameName,entity:d});i.push(t.error)}),i}function A0e(d){const u=[];if(!d.properties.length){const i=lt({id:d.id+"--"+se.NoProperties,message:"No properties implemented",issue:null,severity:Z.Warning,code:se.NoProperties,entity:d});u.push(i.error)}return d.properties.forEach(i=>{i.validate()}),u}function I0e(d){const u=[];if(d.abstract){if(d.methods.length){const i=lt({id:d.id+"--"+se.AbstractEntityWithNonAbstractMethods,message:`Entity "${d.name}" with id "${d.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:Z.Error,code:se.AbstractEntityWithNonAbstractMethods,entity:d});u.push(i.error)}if(d.properties.some(i=>!i.abstract)){const i=lt({id:d.id+"--"+se.AbstractEntityWithNonAbstractProperties,message:`Entity "${d.name}" with id "${d.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:Z.Error,code:se.AbstractEntityWithNonAbstractProperties,entity:d});u.push(i.error),d.properties.forEach(a=>{if(!a.abstract){const l=lt({id:d.id+"--"+se.StaticEntityWithNonStaticProperties+"--"+a.id,message:`Property "${a.name}" with id "${a.id}" of entity "${d.name}" with id "${d.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:Z.Error,code:se.StaticEntityWithNonStaticProperties,entity:d});u.push(l.error)}})}}else{if(d.abstractMethods.length){const i=lt({id:d.id+"--"+se.AbstractPropertyInNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is not marked as abstract but has abstract methods`,issue:null,severity:Z.Error,code:se.AbstractPropertyInNonAbstractEntity,entity:d});u.push(i.error)}d.properties.some(i=>i.abstract)&&d.properties.forEach(i=>{if(i.abstract){const a=lt({id:d.id+"--"+se.AbstractPropertyInNonAbstractEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${d.name}" with id "${d.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:Z.Error,code:se.AbstractPropertyInNonAbstractEntity,entity:d,firstRelationship:i});u.push(a.error)}})}return d.static&&d.properties.some(i=>!i.static)&&d.properties.forEach(i=>{if(!i.static){const a=lt({id:d.id+"--"+se.NonStaticPropertyInStaticEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${d.name}" with id "${d.id}" is not marked as static but the entity is marked as static`,issue:null,severity:Z.Error,code:se.NonStaticPropertyInStaticEntity,entity:d,firstRelationship:i});u.push(a.error)}}),u}function w0e(d,u){const i=[],a=Ii(u);if(!u.abstract){const t=new Zt({id:d.id+"--"+u.id+"--"+se.ImplementingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is implementing a non-abstract built-in entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.ImplementingNonAbstractEntity,entity:d,firstRelationship:u});i.push(t)}const l=d.implements.filter(t=>t.id!==u.id);if(d.abstract){const t=new Zt({id:d.id+"--"+u.id+"--"+se.AbstractEntityImplements,message:`Entity "${d.name}" with id "${d.id}" is marked as abstract and cannot implement built-in entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.AbstractEntityImplements,entity:d,firstRelationship:u});i.push(t)}if(d.static&&!u.static){const t=new Zt({id:d.id+"--"+u.id+"--"+se.StaticImplementingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is marked as static and cannot implement non-static built-in entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.StaticImplementingNonStaticEntity,entity:d,firstRelationship:u});i.push(t)}if(!d.static&&u.static){const t=new Zt({id:d.id+"--"+u.id+"--"+se.NonStaticImplementingStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is not marked as static and cannot implement static built-in entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.NonStaticImplementingStaticEntity,entity:d,firstRelationship:u});i.push(t)}return l.length&&l.forEach(t=>{if(t.type===f.BuiltInBaseEntity){const y=a.filter(v=>v.id!==t.id);y.length&&y.forEach(v=>{if(v.id!==t.id){const b=new Zt({id:d.id+"--"+v.id+"--"+t.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${v.name}" with id "${v.id}" but also implements entity "${t.name}" with id "${t.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:v,secondRelationship:t});i.push(b)}})}else{Ii(t).forEach(w=>{const A=a.filter(V=>V.id!==w.id);A.length&&A.forEach(V=>{if(V.id!==w.id){const L=new Zt({id:d.id+"--"+V.id+"--"+w.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${w.name}" with id "${w.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:V,secondRelationship:w});i.push(L)}})});const v=ha(u.ownDeclaredProperties,t.ownDeclaredProperties,le.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,le.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);i.push(...v.errors);const b=ha(u.abstractMethods,[...t.abstractMethods,...t.methods],le.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,le.MethodOverwritesOtherImplementedEntitysMethodWithSameName);i.push(...b.errors)}}),R(d.extends.flatMap(t=>Ii(t))).forEach(t=>{if(!a.find(y=>y.id===t.id)){const y=new Zt({id:d.id+"--"+u.id+"--"+t.id+"--"+se.ExtendsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${u.name}" with id "${u.id}" but also extends entity "${t.name}" with id "${t.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ExtendsIncompatibleEntities,entity:d,firstRelationship:u,secondRelationship:t});i.push(y)}}),i}function R0e(d,u,i=!1){const a=[],l=Ii(u);if(!d.abstract&&u.abstract){const w=lt({id:d.id+"--"+u.id+"--"+se.NonAbstractExtendingAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is not-abstract but is extending an abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.NonAbstractExtendingAbstractEntity,entity:d,firstRelationship:u});a.push(w.error)}if(d.abstract&&!u.abstract){const w=lt({id:d.id+"--"+u.id+"--"+se.AbstractExtendingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is abstract but is extending an non-abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.AbstractExtendingNonAbstractEntity,entity:d,firstRelationship:u});a.push(w.error)}if(!d.static&&u.static){const w=lt({id:d.id+"--"+u.id+"--"+se.NonStaticExtendingStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is not static but is extending a static entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.NonStaticExtendingStaticEntity,entity:d,firstRelationship:u});a.push(w.error)}if(d.static&&!u.static){const w=lt({id:d.id+"--"+u.id+"--"+se.StaticExtendingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is static but is extending an non-static entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.StaticExtendingNonStaticEntity,entity:d,firstRelationship:u});a.push(w.error)}if(!Rp(u)){const w=lt({id:d.id+"--"+u.id+"--"+se.ExtendingNonInteractiveEntity,message:`Entity "${d.name}" with id "${d.id}" is extending an non-interactive entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.ExtendingNonInteractiveEntity,entity:d,firstRelationship:u});a.push(w.error)}const t=d.extends.filter(w=>w.id!==u.id);t.length&&t.forEach(w=>{if(w.type===f.BuiltInBaseEntity){const A=l.filter(V=>V.id!==w.id);A.length&&A.forEach(V=>{if(V.id!==w.id){const L=lt({id:d.id+"--"+V.id+"--"+w.id+"--"+se.ExtendsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is extending built-in entity "${V.name}" with id "${V.id}" but also extends entity "${w.name}" with id "${w.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ExtendsIncompatibleEntities,entity:d,firstRelationship:V,secondRelationship:w});a.push(L.error)}})}else{Ii(w).forEach(H=>{const ie=l.filter(te=>te.id!==H.id);ie.length&&ie.forEach(te=>{if(te.id!==H.id){const pe=new Zt({id:d.id+"--"+te.id+"--"+H.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is extending built-in entity "${te.name}" with id "${te.id}" but also extends or implements entity "${H.name}" with id "${H.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:te,secondRelationship:H});a.push(pe)}})});const V=!!Ii(w).find(H=>H.id===u.id);let L=[...w.properties];V&&(L=L.filter(H=>!u.properties.find(ie=>{var te;return ie.id===H.id||ie.name===H.name||ie.id===((te=H.implements)==null?void 0:te.id)})));let j=[...w.methods];V&&(j=j.filter(H=>!u.methods.find(ie=>{var te;return ie.id===H.id||ie.name===H.name||ie.id===((te=H.implements)==null?void 0:te.id)})));const k=ha(u.ownDeclaredProperties,L,le.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation,le.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName);a.push(...k.errors);const S=ha(u.abstractMethods,j,le.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation,le.MethodOverwritesOtherExtendedEntitysMethodWithSameName);a.push(...S.errors)}}),i&&console.log("self.implements.length",d.implements.length),d.implements.length&&d.implements.forEach(w=>{if(w.type===f.BuiltInBaseEntity){const A=l.filter(V=>V.id!==w.id);A.length&&A.forEach(V=>{if(V.id!==w.id){const L=new Zt({id:d.id+"--"+V.id+"--"+w.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${w.name}" with id "${w.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:V,secondRelationship:w});a.push(L)}})}else{Ii(w).forEach(j=>{const k=l.filter(S=>S.id!==j.id);k.length&&k.forEach(S=>{if(S.id!==j.id){const H=new Zt({id:d.id+"--"+S.id+"--"+j.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${S.name}" with id "${S.id}" but also implements entity "${j.name}" with id "${j.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:S,secondRelationship:j});a.push(H)}})});const V=ha(u.ownDeclaredProperties,w.ownDeclaredProperties,le.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,le.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);a.push(...V.errors);const L=ha(u.abstractMethods,[...w.abstractMethods,...w.methods],le.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,le.MethodOverwritesOtherImplementedEntitysMethodWithSameName);a.push(...L.errors)}});const y=ha(d.ownDeclaredProperties,u.ownDeclaredProperties,le.PropertyOverwritesOtherSiblingWithSameImplementation,le.PropertyOverwritesOtherSiblingWithSameName);a.push(...y.errors);const v=ha(u.methods,u.abstractMethods,le.MethodOverwritesOtherSiblingWithSameImplementation,le.MethodOverwritesOtherSiblingWithSameName);return a.push(...v.errors),R(d.extends.flatMap(w=>Ii(w))).forEach(w=>{if(!l.find(A=>A.id===w.id)){const A=new Zt({id:d.id+"--"+u.id+"--"+w.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is extending built-in entity "${u.name}" with id "${u.id}" but also extends entity "${w.name}" with id "${w.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:u,secondRelationship:w});a.push(A)}}),a}function g0e(d){const u=[];return d.implements.forEach(i=>{if(!i.static){const a=new Zt({id:d.id+"--"+i.id+"--"+se.StaticImplementingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is static but implements entity "${i.name}" with id "${i.id}" which is non-static`,issue:null,severity:Z.Error,code:se.StaticImplementingNonStaticEntity,entity:d,firstRelationship:i});u.push(a)}}),d.extends.forEach(i=>{if(!i.static){const a=new Zt({id:d.id+"--"+i.id+"--"+se.StaticExtendingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is static but extends entity "${i.name}" with id "${i.id}" which is non-static`,issue:null,severity:Z.Error,code:se.StaticExtendingNonStaticEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function _0e(d){const u=[];if(d.implements.length){const i=new Zt({id:d.id+"--"+se.AbstractEntityImplements,message:`Entity "${d.name}" with id "${d.id}" cannot be marked as abstract because it implements other entities`,issue:null,severity:Z.Error,code:se.AbstractEntityImplements,entity:d});u.push(i)}return d.extends.forEach(i=>{if(!i.abstract){const a=new Zt({id:d.id+"--"+i.id+"--"+se.AbstractExtendingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is abstract but extends entity "${i.name}" with id "${i.id}" which is non-abstract`,issue:null,severity:Z.Error,code:se.AbstractExtendingNonAbstractEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function D0e(d){const u=[];return d.extends.forEach(i=>{if(i.static){const a=new Zt({id:d.id+"--"+i.id+"--"+se.NonStaticExtendingStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is non-static but extends entity "${i.name}" with id "${i.id}" which is static`,issue:null,severity:Z.Error,code:se.NonStaticExtendingStaticEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function O0e(d){const u=[];return d.extends.forEach(i=>{if(i.abstract){const a=new Zt({id:d.id+"--"+i.id+"--"+se.NonAbstractExtendingAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is non-abstract but extends entity "${i.name}" with id "${i.id}" which is abstract`,issue:null,severity:Z.Error,code:se.NonAbstractExtendingAbstractEntity,entity:d,firstRelationship:i});u.push(a)}}),u}const C0e=Object.freeze(Object.defineProperty({__proto__:null,getBaseMethodsNotImplemented:eF,getBasePropertiesNotImplemented:Q6,validate:X6,validateCanBecomeAbstract:_0e,validateCanBecomeNonAbstract:O0e,validateCanBecomeNonStatic:D0e,validateCanBecomeStatic:g0e,validateCanExtendEntity:R0e,validateCanImplementEntity:w0e},Symbol.toStringTag,{value:"Module"}));function $0e(d,u){const i=[];if(d.parent)if(d.id===d.parent)i.push(new Q({id:`${d.id}--${d.parent}--${q.SelfReference}`,code:q.SelfReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));else{const a=u.get(d.parent);a?[f.Project,f.DataType].includes(a.type)||i.push(new Q({id:`${d.id}--${d.parent}--${q.InvalidParentReference}`,code:q.InvalidParentReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):i.push(new Q({id:`${d.id}--${d.parent}--${q.ReferencedEntityNotFound}`,code:q.ReferencedEntityNotFound,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${d.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return d.implements&&Array.isArray(d.implements)?d.implements.forEach(a=>{if(d.id===a){i.push(new Q({id:`${d.id}--${a}--${q.SelfReference}`,code:q.SelfReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));return}const l=u.get(a);l?[f.DefinitionEntity,f.BuiltInBaseEntity].includes(l.type)?l.abstract||i.push(new Q({id:`${d.id}--${a}--${q.InvalidImplementsReference}`,code:q.InvalidImplementsReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):i.push(new Q({id:`${d.id}--${a}--${q.InvalidImplementsReference}`,code:q.InvalidImplementsReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):i.push(new Q({id:`${d.id}--${a}--${q.ReferencedEntityNotFound}`,code:q.ReferencedEntityNotFound,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${a}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):i.push(new Q({id:`${d.id}--${le.InvalidObjectStructure}`,code:le.InvalidObjectStructure,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'implements' property that isn't an array.`,issue:null})),d.extends&&Array.isArray(d.extends)&&d.extends.forEach(a=>{const l=u.get(a);l?[f.DefinitionEntity,f.BuiltInBaseEntity].includes(l.type)?l.abstract&&i.push(new Q({id:`${d.id}--${a}--${q.InvalidExtendsReference}`,code:q.InvalidExtendsReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`,issue:null})):i.push(new Q({id:`${d.id}--${a}--${q.InvalidExtendsReference}`,code:q.InvalidExtendsReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):i.push(new Q({id:`${d.id}--${a}--${q.ReferencedEntityNotFound}`,code:q.ReferencedEntityNotFound,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${a}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),i}var ky=(d=>(d.Extends="extends",d.Implements="implements",d))(ky||{});const Vt=class Vt extends mr{constructor(i,a){super(i);D(this,"initialData");D(this,"id");D(this,"name");D(this,"codeName",null);D(this,"description",null);D(this,"x");D(this,"y");D(this,"static");D(this,"abstract");D(this,"type",f.DefinitionEntity);D(this,"properties",[]);D(this,"methods",[]);D(this,"abstractMethods",[]);D(this,"extends",[]);D(this,"implements",[]);D(this,"project");D(this,"errors",[]);D(this,"parent");D(this,"detachedDependents",{});D(this,"knownVersions",null);D(this,"activeVersion",!1);D(this,"initialized",!1);D(this,"startedInitialization",!1);D(this,"suggestedProperties",[]);D(this,"suggestedMethods",[]);this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.description=i.description,this.x=i.x,this.y=i.y,this.codeName=i.codeName,this.static=i.static,this.abstract=i.abstract}static new(i=null){return{id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||N().toISOString(),author:(i==null?void 0:i.author)||P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DefinitionEntity,name:"",codeName:null,description:"",static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:null}}static fromGenerationTarget(i,a){let l=a;if(i.parent){const b=W(i.parent);l=a.get(b)}const p=[];i.implements&&i.implements.forEach(b=>{p.push(a.get(b)||a.getBuiltIn(b))});const t=[];i.extends&&i.extends.forEach(b=>{t.push(a.get(b)||a.getBuiltIn(b))});const y={id:i.id,version:P.UUID.uuid(),createdAt:N().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,name:i.name,type:f.DefinitionEntity,codeName:i.codeName||null,description:i.description,static:i.static,abstract:i.abstract,properties:[],methods:[],abstractMethods:[],extends:t,implements:p,x:0,y:0,parent:l},v=ee(y,a);return v.setParent(l,null),v}static validateGenerationTarget(i,a){let l=JSON.parse(JSON.stringify(i));const p=[],t=$0e(l,a),y=ab(l,a);p.push(...t,...y,...Tr(l));const v=l.parent?a.get(l.parent):null;if(v&&v.type===f.DataType){const b=v;b.entity&&p.push(new Q({id:`${i.id}--${q.NewEntityWouldOverriteExisting}`,code:q.NewEntityWouldOverriteExisting,severity:Z.Error,message:`The entity of type '${i.type}' with id '${i.id}' can't be added to the 'parent' entity with id '${b.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
400
+ You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"sync-dependents"))){const a=[],l=[],p=[],t=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),l.push(...v.added),p.push(...v.removed),t.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}onDetachedDependencyRemoved(i,a,l){const p=[],t=[],y=[],v=[];if(a==="declaration"){const{updated:b,added:w,removed:A}=this.remove({ignoreUpstream:!1},l);p.push(...b),t.push(...w),y.push(...A)}if(a==="parent"){const{updated:b,added:w,removed:A}=this.remove({ignoreUpstream:!1},l);p.push(...b),t.push(...w),y.push(...A)}return{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,l){const p=[],t=[],y=[],v=[];if(a==="declaration"){const{updated:b,added:w,removed:A}=this.restore({},l);p.push(...b),t.push(...w),y.push(...A)}if(a==="parent"){const{updated:b,added:w,removed:A}=this.restore({},l);p.push(...b),t.push(...w),y.push(...A)}return{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){var i;return(i=this.parent)==null||i.unsubscribeDependents([{entity:this,field:"parent"}]),this.declaration.unsubscribeDependents([{entity:this,field:"declaration"}]),this}subscribeToDependencies(){var i;return(i=this.parent)==null||i.subscribeDependents([{entity:this,field:"parent"}]),this.declaration.subscribeDependents([{entity:this,field:"declaration"}]),this}increaseVersion(i){if(i&&!N(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&N(i).isSame(N(this.createdAt))?this:(this.previousVersion=this.version,this.version=P.UUID.uuid(),this.createdAt=N(i).toISOString()||N().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new xt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.inputs=[...this.inputs],i.outputs=[...this.outputs],i.error=this.error,i.successCalls=[...this.successCalls],i.errorCalls=[...this.errorCalls],i.process=this.process,i.declaration=this.declaration,i.calledBySuccess=[...this.calledBySuccess],i.calledByError=[...this.calledByError],i.calledByEntry=[...this.calledByEntry],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],l=[],p=[],t=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),l.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}async restoreVersion(i){var v;const a=[],l=[],p=[],t=[];if(this.version===i)return{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this};if(!this.knownVersions){const b=new Map;for(const[w,A]of this.knownVersions||new Map){if(b.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[V,L]of A.knownVersions)b.set(V,L);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const b=await this.APILoadVersion({},i);if(!b)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new xt(b,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.inputs=y.inputs,this.outputs=y.outputs,this.error=y.error,this.successCalls=y.successCalls,this.errorCalls=y.errorCalls,this.process=y.process,this.declaration=y.declaration,this.calledBySuccess=y.calledBySuccess,this.calledByError=y.calledByError,this.calledByEntry=y.calledByEntry,this.parent=y.parent,{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const l=W(i.parent),p=this.project.get(l),t=this.parent;if(t&&t.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(i.declaration){const l=W(i.declaration),p=this.project.get(l);p&&this.setDeclaration(p)}return i.calledByEntry.forEach(l=>{const p=W(l),t=this.project.get(p);t&&(this.addEntryCaller(t,a),t.addCall(this,a))}),[...this.calledByEntry].forEach(l=>{i.calledByEntry.find(t=>W(t)===l.id)||(this.removeCaller(l,a),l.removeCall(this,a))}),i.calledBySuccess.forEach(l=>{const p=W(l),t=this.project.get(p);t&&(this.addSuccessCaller(t,a),t.addSuccessCall(this,a))}),[...this.calledBySuccess].forEach(l=>{i.calledBySuccess.find(t=>W(t)===l.id)||(this.removeCaller(l,a),l.removeCall(this,a))}),i.calledByError.forEach(l=>{const p=W(l),t=this.project.get(p);t&&(this.addErrorCaller(t,a),t.addErrorCall(this,a))}),[...this.calledBySuccess].forEach(l=>{i.calledBySuccess.find(t=>W(t)===l.id)||(this.removeCaller(l,a),l.removeCall(this,a))}),this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],l=[],p=[];if(this.initialData.parent){const t=W(this.initialData.parent),y=this.project.get(t);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${t}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.declaration){const t=W(this.initialData.declaration),y=this.project.get(t);y&&(this.setDeclaration(y),i.push(y))}return this.initialData.calledByEntry.forEach(t=>{const y=W(t),v=this.project.get(y);v&&this.addEntryCaller(v,null)}),this.initialData.calledBySuccess.forEach(t=>{const y=W(t),v=this.project.get(y);v&&this.addSuccessCaller(v,null)}),this.initialData.calledByError.forEach(t=>{const y=W(t),v=this.project.get(y);v&&this.addErrorCaller(v,null)}),{updated:R(i),added:R(a),removed:R(l),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],l=[],p=[],t=[];this.initialized=!0;const{updated:y,added:v,removed:b}=this.syncInputs(i),{updated:w,added:A,removed:V}=this.syncOutputs(i);return a.push(...y,...w),l.push(...v,...A),p.push(...b,...V),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}addSelfToProject(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-self-to-project"))){var y;const a=[this],l=[],p=[],t=[];return this.parent===this.project&&this.project.addFunctionCall(this),(y=this.process)==null||y.writesValues.forEach(v=>{v.setValueWriter(this.process,i),a.push(v)}),this.successCalls.forEach(v=>{v.addSuccessCaller(this,i),a.push(v)}),this.errorCalls.forEach(v=>{v.addErrorCaller(this,i),a.push(v)}),this.calledBySuccess.forEach(v=>{v.addSuccessCall(this,i),a.push(v)}),this.calledByError.forEach(v=>{v.addErrorCall(this,i),a.push(v)}),this.calledByEntry.forEach(v=>{v.addCall(this,i),a.push(v)}),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-input"))){const l=this.inputs.findIndex(p=>p.id===i.id);return l>-1&&(this.inputs.splice(l,1),a&&(a==null||a.add(this,K.Affected))),a==null||a.attemptAutoclose("remove-input",this.id),this}addInput(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-input"))){return this.inputs.includes(i)?(a==null||a.attemptAutoclose("add-input",this.id),this):(this.inputs.push(i),a==null||a.add(this,K.Affected),a==null||a.attemptAutoclose("add-input",this.id),this)}addOutput(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-output"))){return this.outputs.includes(i)?(a==null||a.attemptAutoclose("add-output",this.id),this):(this.outputs.push(i),a==null||a.add(this,K.Affected),a==null||a.attemptAutoclose("add-output",this.id),this)}removeOutput(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-output"))){const l=this.outputs.findIndex(p=>p.id===i.id);return l>-1&&(this.outputs.splice(l,1),a&&(a==null||a.add(this,K.Affected))),a==null||a.attemptAutoclose("remove-output",this.id),this}addValueReader(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-value-reader"))){var l;return this.process&&!this.process.writesValues.includes(i)&&((l=this.process)==null||l.addValueReader(i,a),a==null||a.add(this,K.Affected)),a==null||a.attemptAutoclose("add-value-reader",this.id),this}removeValueReader(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-value-reader"))){var l;return this.process&&this.process.writesValues.includes(i)&&((l=this.process)==null||l.removeValueReader(i,a),a==null||a.add(this,K.Affected)),a==null||a.attemptAutoclose("remove-value-reader",this.id),this}addSuccessCaller(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-success-caller")),l=!1){return this.calledBySuccess.find(p=>p.id===i.id)||(this.calledBySuccess.push(i),a==null||a.add(this,K.Updated),l&&xe(this,a)),a==null||a.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-error-caller")),l=!1){return this.calledByError.find(p=>p.id===i.id)||(this.calledByError.push(i),a==null||a.add(this,K.Updated),l&&xe(this,a)),a==null||a.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-entry-caller")),l=!1){return this.calledByEntry.find(p=>p.id===i.id)||(this.calledByEntry.push(i),a==null||a.add(this,K.Updated),l&&xe(this,a)),a==null||a.attemptAutoclose("add-entry-caller",this.id),this}addErrorCall(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-error-call")),l=!1){return this.errorCalls.find(p=>p.id===i.id)||(this.errorCalls.push(i),l&&xe(this,a),a==null||a.add(this,K.Affected)),a==null||a.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-success-call")),l=!1){return this.successCalls.find(p=>p.id===i.id)||(this.successCalls.push(i),l&&xe(this,a),a==null||a.add(this,K.Affected)),a==null||a.attemptAutoclose("add-success-call",this.id),this}removeCall(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-call")),l=!1){const p=this.successCalls.findIndex(y=>y.id===i.id);p>-1&&(this.successCalls.splice(p,1),a==null||a.add(this,K.Affected));const t=this.errorCalls.findIndex(y=>y.id===i.id);return t>-1&&(this.errorCalls.splice(t,1),a==null||a.add(this,K.Affected)),l&&xe(this,a),a==null||a.attemptAutoclose("remove-call",this.id),this}removeCaller(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-caller")),l=!1){return this.calledBySuccess=this.calledBySuccess.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,K.Updated),a==null||a.add(p,K.Affected),!1)),this.calledByError=this.calledByError.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,K.Updated),a==null||a.add(p,K.Affected),!1)),this.calledByEntry=this.calledByEntry.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,K.Updated),a==null||a.add(p,K.Affected),!1)),l&&xe(this,a),a==null||a.attemptAutoclose("remove-caller",this.id),this}setParent(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"set-parent"))){var l;return((l=this.parent)==null?void 0:l.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,K.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}setDeclaration(i){return this.declaration=i,this}initChildren(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.declaration.type===f.FunctionDeclaration){const a=ee(this.initialData.declaration,this.project);this.declaration=a}else{const a=W(this.initialData.declaration),l=this.project.get(a);this.declaration=l}return this.successCalls=this.initialData.successCalls.map(a=>{const l=ee(a,this.project);if(l.addSuccessCaller(this),[f.BreakStatement,f.ContinueStatement].includes(l.type))l.setParent(this.parent.parent,null),l.initChildren(i);else if(l.type===f.ReturnStatement){const p=Nr(this,this.project);l.setParent(p,null),l.initChildren(i)}else l.type!==f.InternalCall&&(l.setParent(this.parent,null),l.initChildren(i));return l}),this.errorCalls=this.initialData.errorCalls.map(a=>{const l=ee(a,this.project);if(l.addErrorCaller(this),[f.BreakStatement,f.ContinueStatement].includes(l.type))l.setParent(this.parent.parent,null),l.initChildren(i);else if(l.type===f.ReturnStatement){const p=Nr(this,this.project);l.setParent(p,null),l.initChildren(i)}else l.type!==f.InternalCall&&(l.setParent(this.parent,null),l.initChildren(i));return l}),this.inputs=this.initialData.inputs.map(a=>{const l=ee(a,this.project);return l.setParent(this,null),l.initChildren(i),l}),this.initialData.process&&(this.process=ee(this.initialData.process,this.project),this.process.setParent(this,null),this.process.initChildren(i)),this.initialData.error&&(this.error=ee(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(i)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"meta-sync"))){const l=br(this,i),p=this.toMeta();return this.x=i.x||p.x,this.y=i.y||p.y,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,K.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,K.Added):l&&(a==null||a.add(this,K.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ye,...a){return await xt.repository.APILoad(this.id,...a),this}async APICreate(i=ye,...a){return await xt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ye,...a){return await xt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ye,...a){return await xt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ye,...a){return await xt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ye,a,...l){return await xt.repository.APILoadVersion(this.id,a,...l)}removeFromParent(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-from-parent"))){const a=[],l=[],p=[],t=[];return this.parent.type===f.Project?(this.parent.removeFunctionCall(this),t.push(this.parent)):this.parent.detachedChildren.includes(this)&&this.parent.unsubscribeDetachedChild(this),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(l),affected:R(t),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-entity"))){var v;const l=[],p=[],t=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(b=>{const{updated:w,removed:A,added:V}=b.entity.onDetachedDependencyRemoved(this,b.field,a);l.push(...w),p.push(...A),t.push(...V)}),this.process){const{updated:b,removed:w}=(v=this.process)==null?void 0:v.remove({ignoreUpstream:!0},a);l.push(...b),p.push(...w)}if(this.inputs.forEach(b=>{const{updated:w,removed:A}=b.remove({ignoreUpstream:!0},a);l.push(...w),p.push(...A)}),this.outputs.forEach(b=>{const{updated:w,removed:A}=b.remove({ignoreUpstream:!0},a);l.push(...w),p.push(...A)}),this.error){const{updated:b,removed:w}=this.error.remove({ignoreUpstream:!0},a);l.push(...b),p.push(...w)}if(this.successCalls.forEach(b=>{l.push(b),b.removeCaller(this,a)}),this.errorCalls.forEach(b=>{l.push(b),b.removeCaller(this,a)}),!i){const b=this.removeFromParent(a);t.push(...b.added),l.push(...b.updated),p.push(...b.removed),y.push(...b.affected),this.calledBy.forEach(w=>{l.push(w),w.removeCall(this,a)})}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(t),updated:R(l),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"restore-entity"))){const a=[],l=[],p=[],t=[];if(i!=null&&i.hasAdded(this.id))return i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:b,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);l.push(...v),p.push(...b),a.push(...w)}),this.process){const{updated:y}=this.process.restore({},i);l.push(...y)}return this.inputs.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.outputs.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.successCalls.forEach(y=>{l.push(y),y.addSuccessCaller(this,i)}),this.errorCalls.forEach(y=>{l.push(y),y.addErrorCaller(this,i)}),this.calledBySuccess.forEach(y=>{l.push(y),y.addSuccessCall(this,i)}),this.calledByError.forEach(y=>{l.push(y),y.addErrorCall(this,i)}),this.calledByEntry.forEach(y=>{l.push(y),y.addCall(this,i)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(l),removed:R(p),affected:R(t),self:this}}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.successCalls.flatMap(l=>l.toFlat(i)),...this.errorCalls.flatMap(l=>l.toFlat(i)),...this.inputs.flatMap(l=>l.toFlat(i)),...this.outputs.flatMap(l=>l.toFlat(i)),...this.process?this.process.toFlat(i):[],...this.error?this.error.toFlat(i):[],...this.calledBy.flatMap(l=>l.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.successCalls.flatMap(l=>l.toFlatIds(i)),...this.errorCalls.flatMap(l=>l.toFlatIds(i)),...this.inputs.flatMap(l=>l.toFlatIds(i)),...this.outputs.flatMap(l=>l.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(i=new Set){var a,l;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(p=>p.toJSON(i)),errorCalls:this.errorCalls.map(p=>p.toJSON(i)),calledBySuccess:this.calledBySuccess.map(p=>p.toReference()),calledByError:this.calledByError.map(p=>p.toReference()),calledByEntry:this.calledByEntry.map(p=>p.toReference()),process:(a=this.process)==null?void 0:a.toJSON(i),declaration:this.declaration.toJSON(i),inputs:this.inputs.map(p=>p.toJSON(i)),outputs:this.outputs.map(p=>p.toJSON(i)),parent:this.parent.toReference(),error:(l=this.error)==null?void 0:l.toJSON(i)})}toJSONClone(i=Le){var l,p,t,y,v,b,w;let a;return(l=i.seenEntityMaps)!=null&&l.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||wr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(t=i.seenEntities)!=null&&t.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:P.UUID.uuid(),createdAt:i.timestamp||N().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(A=>A.toJSONClone({...i,newId:null})),errorCalls:this.errorCalls.map(A=>A.toJSONClone({...i,newId:null})),calledBySuccess:this.calledBySuccess.map(A=>A.toReference({seenEntityMaps:i.seenEntityMaps})),calledByError:this.calledByError.map(A=>A.toReference({seenEntityMaps:i.seenEntityMaps})),calledByEntry:this.calledByEntry.map(A=>A.toReference({seenEntityMaps:i.seenEntityMaps})),process:(b=this.process)==null?void 0:b.toJSONClone({...i,newId:null}),declaration:this.declaration.toJSONClone({...i,newId:null}),inputs:this.inputs.map(A=>A.toJSONClone({...i,newId:null})),outputs:this.outputs.map(A=>A.toJSONClone({...i,newId:null})),error:(w=this.error)==null?void 0:w.toJSONClone({...i,newId:null}),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=Le){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+P.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=Le){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference(i):null,inputs:this.inputs.map(p=>p.toReference(i)),outputs:this.outputs.map(p=>p.toReference(i)),declaration:this.declaration.toReference(i),successCalls:this.successCalls.map(p=>p.toReference(i)),errorCalls:this.errorCalls.map(p=>p.toReference(i)),calledBySuccess:this.calledBySuccess.map(p=>p.toReference(i)),calledByError:this.calledByError.map(p=>p.toReference(i)),calledByEntry:this.calledByEntry.map(p=>p.toReference(i)),error:this.error?this.error.toReference(i):null,parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(l=>l.toFlatJSON(i)),...this.errorCalls.flatMap(l=>l.toFlatJSON(i)),...this.inputs.flatMap(l=>l.toFlatJSON(i)),...this.outputs.flatMap(l=>l.toFlatJSON(i)),...this.process?this.process.toFlatJSON(i):[],...this.error?this.error.toFlatJSON(i):[]])}toGenerationTarget(){const i=this.parent.type===f.Project?void 0:this.parent.id;return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,calledByEntry:this.calledByEntry.map(a=>a.id),calledBySuccess:this.calledBySuccess.map(a=>a.id),calledByError:this.calledByError.map(a=>a.id),declaration:this.declaration.id,parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(l=>l.toFlatGenerationTarget(i)),...this.errorCalls.flatMap(l=>l.toFlatGenerationTarget(i)),...this.inputs.flatMap(l=>l.toFlatGenerationTarget(i)),...this.outputs.flatMap(l=>l.toFlatGenerationTarget(i)),...this.process?this.process.toFlatGenerationTarget(i):[],...this.error?this.error.toFlatGenerationTarget(i):[]])}clearErrors(){var i,a;return this.errors=[],this.inputs.forEach(l=>l.clearErrors()),this.outputs.forEach(l=>l.clearErrors()),this.successCalls.forEach(l=>l.clearErrors()),this.errorCalls.forEach(l=>l.clearErrors()),(i=this.process)==null||i.clearErrors(),(a=this.error)==null||a.clearErrors(),this}validate(){const i=Kx(this);return this.errors=i,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(a=>a.getErrors()),...this.outputs.flatMap(a=>a.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"clone-entity")),a=null,l=null,p=!0){var j,k;let t=Rr(a,this);const y=this.toJSON(),v=l||P.UUID.uuid();y.inputs=[];const b=v.split("-id"),w=b[b.length-1||0]||v;y.id=v,y.version=P.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||N().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=St(y,t);a?A.setParent(a,null):A.setParent(this.parent,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,K.Added);const V=(j=this.inputs)==null?void 0:j.map((S,H)=>S.clone(i,A,w+"-input-map-"+H+"-id",p));A.inputs=V;const L=(k=this.outputs)==null?void 0:k.map((S,H)=>S.clone(i,A,w+"-output-map-"+H+"-id",p));return A.outputs=L,this.error&&(A.error=this.error.clone(i,A,w+"-error-map-id",p)),this.process&&(A.process=this.process.clone(i,A,w+"-process-id",p)),i==null||i.attemptAutoclose("clone-entity",this.id),A}removeUnrecognizedInputs(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-unrecognized-inputs"))){const a=[],l=[],p=[],t=[];return this.inputs.forEach(v=>{if(!this.declaration.inputs.find(w=>{var A;return w.id===((A=v.declaration)==null?void 0:A.id)})){const w=v.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}}),this.inputs.filter((v,b)=>{const w=this.inputs.findIndex(V=>V.declaration===v.declaration&&V!==v);if(w===-1)return!1;const A=this.inputs[w];return N(A==null?void 0:A.createdAt).isSame(N(v.createdAt))?b>w:!!N(A==null?void 0:A.createdAt).isAfter(v.createdAt)}).forEach(v=>{const b=v.remove({ignoreUpstream:!1},i);p.push(...b.removed),a.push(...b.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-inputs",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}removeUnrecognizedOutputs(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-unrecognized-outputs"))){const a=[],l=[],p=[],t=[];return this.outputs.forEach(v=>{if(!this.declaration.getUniqueReturnDeclarations().find(w=>{var A;return w.id===((A=v.declaration)==null?void 0:A.id)})){const w=v.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}}),this.outputs.filter((v,b)=>{const w=this.outputs.findIndex(V=>V.declaration===v.declaration&&V!==v);if(w===-1)return!1;const A=this.outputs[w];return N(A==null?void 0:A.createdAt).isSame(N(v.createdAt))?b>w:!!N(A==null?void 0:A.createdAt).isAfter(v.createdAt)}).forEach(v=>{const b=v.remove({ignoreUpstream:!1},i);p.push(...b.removed),a.push(...b.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-outputs",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}syncInputs(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"sync-missing-fixed-inputs"))){const a=[],l=[],p=[],t=[],y=this.declaration.inputs.filter(A=>!this.inputs.find(V=>V.declaration.id===A.id));this.inputs.sort((A,V)=>A.index-V.index),y.forEach(A=>{this.inputs.forEach(j=>{j.index>=A.index&&j.metaSync({index:j.index+1},i)});const V={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||N().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.InputMap,declaration:A.toJSON(),readsValue:null,defaultValue:null,index:A.index,name:null,codeName:null,description:null,parent:this.toReference()},L=ee(V,this.project);L.setParent(this,i),L.initChildren(i),i==null||i.add(L,K.Added),L.addSelfToProject(i),l.push(L)}),this.inputs.sort((A,V)=>A.index-V.index);const{updated:v,added:b,removed:w}=this.removeUnrecognizedInputs(i);return a.push(...v),l.push(...b),p.push(...w),i==null||i.attemptAutoclose("sync-missing-fixed-inputs",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}syncOutputs(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"sync-missing-fixed-outputs"))){const a=[],l=[],p=[],t=[],y=[];this.outputs=this.initialData.outputs.reduce((V,L)=>{if(L.type===f.GenericReference){const k=Ri(L,this.project);return k?[...V,k]:V}const j=ee(L,this.project);return y.push(j.index),j.setParent(this,null),j.initChildren(i),[...V,j]},[]);const v=this.declaration.getUniqueReturnDeclarations().filter(V=>!this.outputs.find(L=>L.declaration.id===V.id));this.outputs.sort((V,L)=>V.index-L.index),v.forEach((V,L)=>{this.outputs.forEach(H=>{H.index>=V.index&&H.index++});const j=y.includes(V.index)?this.outputs.length-1+L:V.index,k={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||N().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.OutputMap,declaration:V.toJSON(),defaultValue:null,writesValues:[],index:j,parent:this.toReference()},S=ee(k,this.project);S.setParent(this,i),S.initChildren(i),i==null||i.add(S,K.Added),S.addSelfToProject(i)}),this.outputs.sort((V,L)=>V.index-L.index);const{updated:b,added:w,removed:A}=this.removeUnrecognizedOutputs(i);return a.push(...b),l.push(...w),p.push(...A),i==null||i.attemptAutoclose("sync-missing-fixed-outputs",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}};D(xt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...l)=>null}),D(xt,"type",f.FunctionCall),D(xt,"USER_MANAGED_PARENT_TYPES",[...Ir,f.Project]),D(xt,"PARENT_TYPES",[...xt.USER_MANAGED_PARENT_TYPES]),D(xt,"MUTABLE_BASE_PROPERTIES",[]),D(xt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),D(xt,"BASE_PROPERTIES",[...xt.MUTABLE_BASE_PROPERTIES,...xt.INMUTABLE_BASE_PROPERTIES]),D(xt,"MUTABLE_META_PROPERTIES",["x","y"]),D(xt,"INMUTABLE_META_PROPERTIES",[...xt.INMUTABLE_BASE_PROPERTIES]),D(xt,"META_PROPERTIES",[...xt.MUTABLE_META_PROPERTIES,...xt.INMUTABLE_META_PROPERTIES]),D(xt,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),D(xt,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),D(xt,"UPSTREAM_PROPERTIES",[...xt.MUTABLE_UPSTREAM_PROPERTIES,...xt.INMUTABLE_UPSTREAM_PROPERTIES]),D(xt,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),D(xt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),D(xt,"DOWNSTREAM_PROPERTIES",[...xt.MUTABLE_DOWNSTREAM_PROPERTIES,...xt.INMUTABLE_DOWNSTREAM_PROPERTIES]),D(xt,"PROPERTIES",[...xt.META_PROPERTIES,...xt.UPSTREAM_PROPERTIES,...xt.DOWNSTREAM_PROPERTIES]);let Ha=xt;function Yb(d){return d&&typeof d.then=="function"}function Kme(d){const u=new fa(d[0]),i=d.map(l=>l.id),a={};return d.forEach(l=>{a[l.id]=l}),u.order=i,u.flatRecord=a,u.orderEntities(),u.order.map(l=>u.flatRecord[l])}class fa{constructor(u){D(this,"order",[]);D(this,"flatRecord",{});D(this,"allBuiltInEntityIds",$s());D(this,"onGoingVisits",{});u&&(this.flatten(u),this.orderEntities())}flatten(u){const i=new Set($s()),a=R(he(u,i,{ignoreBuiltInBaseEntities:!0})),l=new Set;for(const p of a)this.flatRecord[p.id]=p,l.add(p.id);this.order=Array.from(l)}moveEntityAfterDependencies(u){const{upstream:i}=_d(u,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});for(const a of Object.keys(i)){const l=this.order.indexOf(a),p=this.order.indexOf(u.id);if(l>p)return this.order.splice(p,1),this.order.splice(l,0,u.id),!0}return!1}orderEntities(){let u=!1;for(let i=0;i<this.order.length;i++){const a=this.order[i],l=this.flatRecord[a];if(l||console.warn(`Entity with id ${a} not found in flatRecord. Skipping...`),this.moveEntityAfterDependencies(l)){u=!0;break}}u&&this.orderEntities()}getUpstreamOngoingDependenciesVisits(u,i){const{upstream:a}=_d(this.flatRecord[u],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}),l={};return Object.entries(this.onGoingVisits[i]||{}).forEach(([p,t])=>{Object.keys(a).includes(p)&&(l[p]=t)}),l}getDownstreamOngoingDependenciesVisits(u,i){const a=Object.keys(this.onGoingVisits[i]||{}),l=new Set(a.flatMap(t=>Object.keys(_d(this.flatRecord[t],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}).downstream))),p={};return Array.from(l).forEach(t=>{t===u&&(p[t]=this.onGoingVisits[i][t])}),p}async settlePromises(u,i){const a=Object.values(u);a.length&&await Promise.all(a),Object.keys(u).forEach(l=>{delete this.onGoingVisits[i][l]})}visit(u){const i=this.order;for(const a of i)u(this.flatRecord[a],this.flatRecord);return this}reverseVisit(u){const i=this.order.slice().reverse();for(const a of i)u(this.flatRecord[a],this.flatRecord);return this}async visitAsync(u){const i=this.order,a=Math.random().toString(36).substring(7);this.onGoingVisits[a]={};for(const l of i){const p=this.getUpstreamOngoingDependenciesVisits(l,a);Object.keys(p).length&&await this.settlePromises(p,a);const t=u(this.flatRecord[l],this.flatRecord);Yb(t)&&(this.onGoingVisits[a][l]=t)}return await this.settlePromises(this.onGoingVisits[a],a),this.onGoingVisits[a]={},this}async reverseVisitAsync(u){const i=this.order.slice().reverse(),a=Math.random().toString(36).substring(7);this.onGoingVisits[a]={};for(const l of i){const p=this.getDownstreamOngoingDependenciesVisits(l,a);Object.keys(p).length&&await this.settlePromises(p,a);const t=u(this.flatRecord[l],this.flatRecord);Yb(t)&&(this.onGoingVisits[a][l]=t)}return await this.settlePromises(this.onGoingVisits[a],a),this.onGoingVisits[a]={},this}}function Sx(d,u){switch(d.id){case me["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const i=d.project.entities.filter(v=>!!v.implements.find(b=>b.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)),a=i.find(v=>{const b=v.properties.find(V=>V.implements&&V.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),w=b==null?void 0:b.getDefaultValue();return(w==null?void 0:w.value)===!0});if(!a&&i.length){const b=i[0].properties.find(A=>A.implements&&A.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),w=b==null?void 0:b.defaultValue;if(w)w.metaSync({value:!0},u);else if(b!=null&&b.dataType){const A={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(u==null?void 0:u.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.LiteralValue,standaloneParent:null,name:X.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:b==null?void 0:b.toReference()},V=ee(A,d.project);return V.setParent(b,u),V.initChildren(u),u==null||u.add(V,K.Added),V.addSelfToProject(u),{newEntities:[V]}}return{newEntities:[]}}else if(a)return{newEntities:[]};const l=d.project.get(me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),p=$y(l,"Main database",u);if(p.errors.length>0)return{newEntities:[]};const t=p.properties.find(v=>v.implements&&v.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),y=t==null?void 0:t.defaultValue;if(y)y.metaSync({value:!0},u);else if(t!=null&&t.dataType){const v={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(u==null?void 0:u.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.LiteralValue,standaloneParent:null,name:X.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:t==null?void 0:t.toReference()},b=ee(v,d.project);b.setParent(t,u),b.initChildren(u),u==null||u.add(b,K.Added),b.addSelfToProject(u)}return{newEntities:[p]}}}return{newEntities:[]}}function qx(d,u){const i=[],a=[],l=[],p=[];return d.implements.filter(y=>y.type===f.BuiltInBaseEntity).forEach(y=>{var v;switch(y.id){case me["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const b=d.project.entities.filter(L=>L.implements.find(j=>j.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));let w=b.find(L=>!!L.properties.find(j=>{var k;return j.implements&&j.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((k=j.getDefaultValue())==null?void 0:k.value)===!0}));if(!w&&b.length)w=b[0];else if(!w&&!b.length){w=d.project.getBuiltIn(me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id).implement("Relational database",u);const j=w.properties.find(k=>{var S;return((S=k.implements)==null?void 0:S.id)===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id});(v=j==null?void 0:j.defaultValue)==null||v.metaSync({value:!0},u),a.push(w)}const A=d.properties.find(L=>L.implements&&L.implements.id===me["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),V=A==null?void 0:A.defaultValue;if(A&&!V){const L={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(u==null?void 0:u.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.LiteralValue,standaloneParent:null,name:X.EntityTemplate,autogeneration:null,value:null,valueAsTypeSingle:(w==null?void 0:w.toJSON())||null,valueAsTypeList:null,parent:A==null?void 0:A.toReference()},j=ee(L,d.project);j.hydrateAncestors(),j.setParent(A,u),j.addSelfToProject(u),j.initChildren(u),u==null||u.add(j,K.Added),a.push(j);return}else V&&!V.valueAsTypeSingle&&V.setValueAsTypeSingle(w||null,u);return}}}),{self:d,updated:R(i),added:R(a),removed:R(l),affected:R(p)}}function $y(d,u,i,a){const l=a||P.UUID.uuid(),p=P.UUID.uuid(),t={id:l,version:p,createdAt:(i==null?void 0:i.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,name:u,type:f.DefinitionEntity,codeName:null,description:null,static:d.static,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[d.toJSON()],x:0,y:0,parent:d.project.toReference()};Sx(d,i);const y=ee(t,d.project);return y.hydrateAncestors(),i==null||i.add(y,K.Added),y.addSelfToProject(i),y.addImplementation(d),y.setParent(d.project,i),y.initChildren(i),qx(y,i),y}function zb(d,u){return u.entities.find(l=>{const p=l.properties,t=p.map(A=>A.name),y=d.every(A=>t.includes(A)),v=t.filter(A=>!d.includes(A)),b=p.every(A=>!v.includes(A.name)||!A.required);return y&&b})||null}function Zx(d,u,i,a=Yr.OrDataTypeGroup){const l=[],p=[],t=[],y=[],b={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,entity:d.toJSON(),isList:!1,asType:!1,andChildrenGroup:null,orChildrenGroup:null,staticEntities:null,interactiveEntities:null,actionEntities:null,like:!0,inferred:!1,parentRelationType:a,parent:u.toReference()},w=ee(b,d.project);return p.push(w),w.setParent(u,i),w.initChildren(i),i==null||i.add(w,K.Added),w.setEntity(d,i),w.addSelfToProject(i),{updated:R(l),added:R(p),removed:R(t),affected:R(y),self:w}}function Xb(d,u,i,a,l){var b,w,A,V,L,j,k,S;const p=[],t=[],y=[],v=[];switch(typeof d){case"string":let H=!1;const ie=new Date(d);if(ie instanceof Date&&!isNaN(ie.valueOf())&&(H=!0),H){const te=u.project.getBuiltIn(me[f.PrimitiveEntity][X.Date].id);u.setEntity(te,a);break}else{const te=u.project.getBuiltIn(me[f.PrimitiveEntity][X.String].id);u.setEntity(te,a);break}case"number":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Number].id),a);break;case"boolean":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Boolean].id),a);break;case"object":if(d===null){u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Null].id),a);break}else if(Array.isArray(d))if(u.metaSync({isList:!0},a),d.length>0){const te=d.slice(0,5).filter(ne=>ne!==void 0);if(te.every(ne=>typeof ne==typeof te[0])&&(typeof te[0]!="object"||te[0]===null))switch(typeof te[0]){case"string":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.String].id),a);break;case"number":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Number].id),a);break;case"boolean":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Boolean].id),a);break;case"object":u.setEntity(u.project.getBuiltIn(me[f.PrimitiveEntity][X.Null].id),a);break}else{const ne=[];let ve=!1;te.forEach(ae=>{var ce,Y,ue,Ee;if(Array.isArray(ae)&&(ve=!0),typeof ae=="object"&&!Array.isArray(ae)&&ae!==null){const Ve=Py(ae,u.project,{...i,id:P.UUID.uuid()},a,l);Ve.hasCreated&&ne.push((ce=Ve.changeSet)==null?void 0:ce.self),p.push(...(Y=Ve.changeSet)==null?void 0:Y.updated),t.push(...(ue=Ve.changeSet)==null?void 0:ue.added),y.push(...(Ee=Ve.changeSet)==null?void 0:Ee.removed)}});const J=R(ne);if(!J.length&&!ve){te.forEach(ae=>{const ce={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:!1,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parentRelationType:Yr.OrDataTypeGroup,parent:u.toReference()},Y=ee(ce,u.project);switch(Y.setParent(u,a),Y.initChildren(a),a==null||a.add(Y,K.Added),Y.addSelfToProject(a),typeof ae){case"string":Y.setEntity(Y.project.getBuiltIn(me[f.PrimitiveEntity][X.String].id),a);break;case"number":Y.setEntity(Y.project.getBuiltIn(me[f.PrimitiveEntity][X.Number].id),a);break;case"boolean":Y.setEntity(Y.project.getBuiltIn(me[f.PrimitiveEntity][X.Boolean].id),a);break;case"object":Y.setEntity(Y.project.getBuiltIn(me[f.PrimitiveEntity][X.Null].id),a);break}});break}else J.length===1&&!ve?u.setEntity(J[0],a):te.forEach(ae=>{if(typeof ae=="object"&&!Array.isArray(ae)&&ae!==null){const ce=zb(Object.keys(ae),u.project);if(ce){const Y=Zx(ce||J[0],u,a,Yr.OrDataTypeGroup);p.push(...Y.updated),t.push(...Y.added),y.push(...Y.removed)}}else{const ce={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,options:null,implementationChooseOne:!1,entity:null,isList:Array.isArray(ae),asType:!1,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parentRelationType:Yr.OrDataTypeGroup,parent:u.toReference()},Y=ee(ce,u.project);Y.setParent(u,a),Y.initChildren(a),a==null||a.add(Y,K.Added),Y.addSelfToProject(a);const ue=Xb(ae,Y,{...i,id:P.UUID.uuid()},a,l);p.push(...ue.updated),t.push(...ue.added),y.push(...ue.removed)}})}}else{const te=Py(d[0],u.project,{...i},a,l);u.setEntity((b=te.changeSet)==null?void 0:b.self,a),p.push(...(w=te.changeSet)==null?void 0:w.updated),t.push(...(A=te.changeSet)==null?void 0:A.added),y.push(...(V=te.changeSet)==null?void 0:V.removed);break}else{const te=Py(d,u.project,{...i},a,l);u.setEntity((L=te.changeSet)==null?void 0:L.self,a),p.push(...(j=te.changeSet)==null?void 0:j.updated),t.push(...(k=te.changeSet)==null?void 0:k.added),y.push(...(S=te.changeSet)==null?void 0:S.removed);break}}return{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:u}}function Py(d,u,i,a,l){const p=[],t=[],y=[],v=[],b=Object.keys(d),w=zb(b,u);if(w)return{hasCreated:!1,changeSet:{updated:[],added:[],removed:[],affected:[],self:w}};const A=l?i.name+" of "+l.name:i.name,L={id:i.id||P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,name:A,codeName:null,type:f.DefinitionEntity,description:i.description||null,static:i.static||!1,abstract:i.abstract||!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:u.toReference()},j=ee(L,u);return j.setParent(u,a),j.initChildren(a),a==null||a.add(j,K.Added),j.addSelfToProject(a),t.push(j),b.forEach((k,S)=>{const ie={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,name:k,type:f.Property,codeName:k,description:null,static:!1,abstract:!1,defaultValue:null,constant:!1,interactive:!0,dataType:null,implements:null,extends:null,index:S,hidden:!1,private:!1,required:!0,parent:j.toReference()},te=ee(ie,u);te.setParent(j,a),te.initChildren(a),a==null||a.add(te,K.Added),te.addSelfToProject(a),t.push(te);const pe=d[k],ve={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:!1,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parent:te.toReference()},J=ee(ve,u);J.setParent(te,a),J.initChildren(a),a==null||a.add(J,K.Added),J.addSelfToProject(a),t.push(J);const ae=Xb(pe,J,{...i,name:k,id:P.UUID.uuid()},a,l||j);p.push(...ae.updated),t.push(...ae.added),y.push(...ae.removed)}),{hasCreated:!0,changeSet:{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:j}}}function ha(d,u,i,a){const l=[];return!d.length||!u.length?{errors:l,overlap:!1}:(d.length>u.length?d.forEach(p=>{const t=u.find(v=>v.name===p.name),y=u.find(v=>{var b,w;return!!p.implements&&((b=v.implements)==null?void 0:b.id)===((w=p.implements)==null?void 0:w.id)});if(t){const v=new Zt({id:p.id+"--"+t.id+"--"+a,message:`Entity of type ${p.type} named "${p.name}" with id "${p.id}" overrides a base ${t.type} ${t.name} with id "${t.id}" that has the same name`,issue:null,severity:Z.Error,code:a,entity:p,firstRelationship:t});l.push(v)}if(y){const v=new Zt({id:p.id+"--"+y.id+"--"+i,message:`Entity of type ${p.type} named "${p.name}" with id "${p.id}" overrides a base ${y.type} ${y.name} with id "${y.id}" that implements the same base descriptor`,issue:null,severity:Z.Error,code:i,entity:p,firstRelationship:y});l.push(v)}}):u.forEach(p=>{var v;const t=d.find(b=>b.name===p.name),y=d.find(b=>{var w,A;return!!b.implements&&((w=b.implements)==null?void 0:w.id)===((A=p.implements)==null?void 0:A.id)});if(t){const b=new Zt({id:t.id+"--"+p.id+"--"+a,message:`Entity of type ${t.type} named "${t.name}" with id "${t.id}" overrides a base entity ${p.name} with id "${p.id}" that has the same name`,issue:null,severity:Z.Error,code:a,entity:t,firstRelationship:p});l.push(b)}if(y){const b=new Zt({id:y.id+"--"+p.id+"--"+i,message:`Entity of type ${y.type} named "${y.name}" with id "${y.id}" overrides a base entity ${p.name} with id "${p.id}" that implements the same base ${(v=y==null?void 0:y.implements)==null?void 0:v.type}`,issue:null,severity:Z.Error,code:i,entity:y,firstRelationship:p});l.push(b)}}),{errors:l,overlap:!!l.length})}function kme(d,u){return d.abstract||(d.properties.forEach(a=>{a.abstract||a.metaSync({abstract:!0},u)}),Object.values(d.detachedDependents).forEach(a=>{a.field===Eb.Entity&&a.entity.remove({ignoreUpstream:!1},u)}),d.metaSync({abstract:!0},u)),d}function Sme(d,u){return d.abstract&&(d.properties.forEach(a=>{a.abstract&&a.metaSync({abstract:!1},u)}),Object.values(d.detachedDependents).forEach(a=>{(a.field===ky.Implements||a.field===ky.Extends)&&a.entity.onDetachedDependencyRemoved(d,a.field,u)}),d.metaSync({abstract:!1},u)),d}function qme(d,u){return d.static||(d.properties.forEach(a=>{a.static||a.metaSync({static:!0},u)}),d.metaSync({static:!0},u)),d}function Zme(d,u){return d.static&&d.metaSync({static:!1},u),d}var Jx=(d=>(d.StringValueMustNotHaveSpaces="string-value-must-not-have-spaces",d.StringValueMustNotHaveDashes="string-value-must-not-have-dashes",d))(Jx||{});function Wx(d,u){const i=[],a=u;if(!a)return{errors:i,override:u};if(typeof a!="string")return{errors:[],override:u};if(a.includes(" ")){const l=new Zt({id:d.id+"--string-value-must-not-have-spaces",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value cannot contain spaces.`,issue:null,severity:Z.Error,code:"string-value-must-not-have-spaces",entity:d});i.push(l)}return{errors:i,override:a.replace(/\s/g,"-")}}function Hx(d,u){const i=[],a=u;if(!a)return{errors:i,override:u};if(typeof a!="string")return{errors:[],override:u};if(a.includes(" ")){const l=new Zt({id:d.id+"--string-value-must-not-have-spaces",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value cannot contain spaces or dashes.`,issue:null,severity:Z.Error,code:"string-value-must-not-have-spaces",entity:d});i.push(l)}if(a.includes("-")){const l=new Zt({id:d.id+"--string-value-must-not-have-dashes",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value cannot contain spaces or dashes.`,issue:null,severity:Z.Error,code:"string-value-must-not-have-dashes",entity:d});i.push(l)}return{errors:i,override:a.replace(/\s|-/g,"_")}}function Qb(d,u){var i;if(d.type===f.LiteralValue){let a=(i=d.value)==null?void 0:i.toString();try{a=JSON.stringify(d.value,null,2)}catch{}return`${d.type}: ${d.id} (${re(d,u)}) = ${a}`}if(d.type===f.DataType){if(d instanceof Wi||d.increaseVersion)return`${d.type}: ${d.id} (${vd(d)})`;try{const a=vd(d);return`${d.type}: ${d.id} (${a})`}catch{}}return`${d.type}: ${d.id} (${re(d,u)})`}function gd(d,u){const i=Ya(d);if(i.length===0)return{list:[],last:null};let a=null;return{list:i.flatMap(p=>{if(p===u)return a=p,[p];const t=gd(p,u);return t.last&&(a=t.last),[p,...t.list]}),last:a}}function eA(d){const u=d.calledBy;if(u.length===0)return d.project;const i=u.reduce((a,l)=>{const p=wi(l,d.project);return!p||p.type===f.Project?a:a.type===f.Project||gd(p,a).last?p:(gd(a,p).last,a)},d.project);return i.type===f.FunctionDeclaration&&i.parent.type===f.Loop?i.parent:i}function xe(d,u){var l,p;let i=eA(d);if(d.type===f.InternalCall)(l=d.parent)==null||l.setParent(i,u),(p=d.parent)==null||p.addSelfToProject(u);else if((d.type===f.ContinueStatement||d.type===f.BreakStatement)&&i.type!==f.Loop){d.remove({ignoreUpstream:!1},u);return}else if(d.type===f.ReturnStatement&&!Ir.includes(i.type)){d.remove({ignoreUpstream:!1},u);return}else d.setParent(i,u),d.addSelfToProject(u);if(sr.includes(d.type))return;ft(d).forEach(t=>{var v,b;const y=eA(t);if(t.type===f.InternalCall)(v=t.parent)==null||v.setParent(y,u),(b=t.parent)==null||b.addSelfToProject(u);else if((t.type===f.ContinueStatement||t.type===f.BreakStatement)&&y.type!==f.Loop){t.remove({ignoreUpstream:!1},u);return}else if(t.type===f.ReturnStatement&&!Ir.includes(y.type)){t.remove({ignoreUpstream:!1},u);return}else t.setParent(y,u),t.addSelfToProject(u)})}function Vy(d,u,i=new Set){const a=Qs(d),l=Qs(u),p=a.filter(v=>!l.includes(v)),t=a.filter(v=>l.includes(v)),y=p.reduce((v,b)=>i.has(b.id)?v:(i.add(b.id),R([...v,...Vy(b,u,i)])),[]);return R([...t,...y])}function Ho(d,u){const i=gd(d,u);return i.last===u&&i.list.length>0&&i.list[0]!==u}function tA(d,u){return!!gd(d,u).last}function Jme(d){if(Yt.includes(d.type))return d;if([...Gs,f.VariableDeclaration].includes(d.type)){const u=d.parent;return Yt.includes(u.type)?u:null}return null}function rA(d,u){if(!d||!u)throw new Error("Both entities must be defined to find a common ancestor");if(d===u)return d;const i=d.parent;if(i){if(i===u)return u;if(i.type===f.Project)return null}else return null;const a=u.parent;if(a){if(a===d)return d;if(a.type===f.Project)return null}else return null;return rA(i,a)}function pr(d){if(Pf.includes(d.type)){if(d.type===f.FunctionDeclaration){const u=d.parent;if(u.type===f.DefinitionEntity)return pr(u);if(u.type===f.Loop)return u}return d.type===f.DefinitionEntity&&d.parent.type===f.DataType?pr(d.parent):d}else{const u=d.parent;return u?pr(u):null}}function Ny(d,u){const i=Ap(d,u);if(!i)return null;if(Pf.includes(i.type)){if(i.type===f.FunctionDeclaration){const a=Ap(i.parent,u);if(a){if(a.type===f.DefinitionEntity)return a;if(a.type===f.Loop)return a}}return i}else{const a=i.parent?Ap(i.parent,u):null;return a?Ny(a,u):null}}function Yx(d){if(!d)return null;if(Gs.includes(d.type))return d;const u=d.parent;return u?Yx(u):null}function zx(d){if(!d)return null;if(er.includes(d.type))return d;const u=d.parent;return u?zx(u):null}function Xx(d){if(!d)return null;if(Ks.includes(d.type))return d;const u=d.parent;return u?Xx(u):null}function Qx(d){return d.type===f.VariableDeclaration?[d]:er.includes(d.type)?[...d.inputs,...d.outputs||[]]:sr.includes(d.type)?d.outputs:Cl.includes(d.type)||d.type===f.FunctionDeclaration?d.inputs:[]}function Wme(d){const u=Qs(d),i=[],a=[];n1.includes(d.type)&&i.push(...Ly(d));const l=u.filter(p=>{const t=i.includes(p);return t?!1:Gs.includes(p.type)&&!t?(a.push(p),!1):!0});return i.sort((p,t)=>Ho(t,p)?-1:0),a.sort((p,t)=>Ho(t,p)?-1:0),[...i,...a,...l]}function e6(d){return[...d].sort((u,i)=>Ho(i,u)?-1:0)}function iA(d){const u=e6(d),i=[];return u.forEach(a=>{const l=i[i.length-1];if(l){const p=l[l.length-1];Ho(a,p)?i.push([a]):l.push(a)}else i.push([a])}),i}function ti(d){const u=d.map(i=>pr(i));return R(u)}function Ly(d){return er.includes(d.type)?[...ti(d.successCalls),...ti(d.errorCalls)]:Yt.includes(d.type)?ti(d.calls):[]}function Hme(d,u){return Ly(d).includes(u)}function sA(d){return d.writesValues||[]}function Yme(d,u){return sA(d).includes(u)}function t6(d){var u;return nt.includes((u=d==null?void 0:d.readsValue)==null?void 0:u.type)?d.readsValue:null}function zme(d){return d.writesValues}function r6(d=[]){return d.map(t6).filter(u=>!!u)}function By(d=[]){return d.map(u=>u.writesValues).flat().filter(u=>nt.includes(u.type))}function i6(d=[]){return d.map(u=>u.readsValue).filter(u=>!!u&&nt.includes(u.type))}function s6(d){return nt.includes(d.type)?d:null}function n6(d){return d.writesValues.map(s6).filter(u=>!!u)}function a6(d=[]){return d.reduce((u,i)=>i.type===f.OutputMap?[...u,...n6(i)]:u,[])}function ft(d){return d.type===f.Loop?R([...Cs(ti(d.successCalls)),...Cs(ti(d.errorCalls)),...d.body?ft(d.body):[]]):er.includes(d.type)?R([...Cs(ti(d.successCalls)),...Cs(ti(d.errorCalls))]):Yt.includes(d.type)?R(Cs(ti(d.calls))):[]}function Xme(d){return er.includes(d.type)?[...Cs(ti(d.successCalls)),...Cs(ti(d.errorCalls))]:Yt.includes(d.type)?Cs(ti(d.calls)):[]}function o6(d,u=new Set){return d.writesValues.filter(a=>nt.includes(a.type)&&!u.has(a.id)).reduce((a,l)=>u.has(l.id)?a:[...a,...Xt(l,u)],[])}function l6(d,u=new Set){var a;return(((a=d.readsValue)==null?void 0:a.writesValues)||[]).filter(l=>nt.includes(l.type)&&!u.has(l.id)).reduce((l,p)=>u.has(p.id)?l:[...l,...Xt(p,u)],[])}function Xt(d,u=new Set){if(u.has(d.id))return[];if(d.type===f.ReturnStatement)return i6(d.outputs).reduce((a,l)=>[...a,...Xt(l,u)],[]);if(d.type===f.FunctionCall||d.type===f.Operation||d.type===f.Condition)return[...ft(d).reduce((p,t)=>{const y=pr(t);return[...p,...Xt(y||t,u)]},[]),...r6(d.inputs),...a6(d.outputs)].reduce((p,t)=>[...p,...Xt(t,u)],[]);if(Cl.includes(d.type)){const i=By(d.inputs),l=ft(d).reduce((p,t)=>{const y=pr(t);return[...p,...Xt(y||t,u)]},[]);return i.push(...l),i.reduce((p,t)=>[...p,...Xt(t,u)],[])}if(d.type===f.FunctionDeclaration){const i=[...By(d.inputs)],l=ft(d).reduce((p,t)=>{const y=pr(t);return[...p,...Xt(y||t,u)]},[]);return i.push(...l),i.reduce((p,t)=>[...p,...Xt(t)],[])}if(nt.includes(d.type)){u.add(d.id);const a=ft(d).reduce((l,p)=>{const t=pr(p);return[...l,...Xt(t||p,u)]},[]);return[d,...a,...l6(d,u),...o6(d,u)]}return[]}function Yi(d,u=new Set){return u.has(d.id)?[]:(u.add(d.id),[...Qs(d).reduce((l,p)=>[...l,p,...Yi(p,u)],[])])}function Cs(d){return d.reduce((u,i)=>i.type===f.ReturnStatement||i.type===f.ContinueStatement||i.type===f.BreakStatement?[...u,i]:[...u,i,...ft(i)],[])}function d6(d){const u=d.entities||[],i=[...u,...d.functions||[],...d.events||[],...d.projects||[]],a=u.reduce((v,b)=>[...v,...b.properties],[]),l=u.reduce((v,b)=>[...v,...b.methods],[]),p=l.reduce((v,b)=>[...v,...By(b.inputs),...Cs(ti(b.calls)),...b.returnStatements],[]),t=d.functions.reduce((v,b)=>[...v,...Cs(ti(b.calls)),...b.returnStatements],[]),y=d.events.reduce((v,b)=>[...v,...Cs(ti(b.calls)),...b.returnStatements],[]);return[...i,...a,...l,...p,...t,...y]}function u6(d,u){return u.filter(a=>{if(!a)return!1;switch(a.type){case f.FunctionCall:return a.inputs.find(l=>l.id===d.id)!==void 0||a.outputs.find(l=>l.id===d.id)!==void 0;case f.Condition:return a.successCalls.find(l=>l.id===d.id)!==void 0||a.errorCalls.find(l=>l.id===d.id)!==void 0||a.inputs.find(l=>l.id===d.id)!==void 0;case f.Operation:return a.outputs.find(l=>l.id===d.id)!==void 0;case f.VariableDeclaration:return er.includes(d.type)?x6(d).find(p=>{var t;return((t=p.readsValue)==null?void 0:t.id)===a.id})!==void 0:!1;case f.DefinitionEntity:return a.properties.find(l=>l.id===d.id)!==void 0||a.methods.find(l=>l.id===d.id)!==void 0;case f.FunctionDeclaration:return a.inputs.find(l=>l.id===d.id)!==void 0||(a.returnStatements.map(l=>l.outputs).flat()||[]).find(l=>l.id===d.id)!==void 0;default:return!1}})}function Qme(d){const u=d6(d.project);return u6(d,u)}function Ap(d,u){return d?typeof d=="string"?u[d]:d.type===f.GenericReference?u[d.entityId]:u[d.id]?u[d.id]:null:null}function c6(d={},u){const i={};return Object.keys(d).forEach(a=>{const l=u.get(a)||a,p=d[a];i[l]=p}),i}function _d(d,u={},i={}){const a={ignoreBuiltInBaseEntities:!1,allBuiltInEntityIds:[],entityMaps:new Map,...i};if(a.ignoreBuiltInBaseEntities&&(Gi.includes(d.type)||(a.allBuiltInEntityIds||[]).includes(d.id)))return{upstream:{},downstream:{}};const l=d,p=d,t=d,y=d,v=d,b=d,w=d,A=d,V=d,L=d,j=d,k=d,S=d,H=[...S.readsValue?[S.readsValue]:[],...S.declaration?[S.declaration]:[],...(k.calledByEntry||[]).flatMap(ne=>ne),...(k.calledBySuccess||[]).flatMap(ne=>ne),...(k.calledByError||[]).flatMap(ne=>ne),...L.parent?[L.parent]:[]];Array.isArray(t.implements)?H.push(...t.implements.flatMap(ne=>ne)):V.implements&&H.push(V.implements),Array.isArray(t.extends)?H.push(...t.extends.flatMap(ne=>ne)):V.extends&&H.push(V.extends),v.valueAsTypeList&&Array.isArray(v.valueAsTypeList)&&H.push(...v.valueAsTypeList.flatMap(ne=>ne)),v.valueAsTypeSingle&&H.push(v.valueAsTypeSingle);const ie=[...(l.inputs||[]).flatMap(ne=>ne),...(j.inputsDeclarations||[]).flatMap(ne=>ne),...(l.outputs||[]).flatMap(ne=>ne),...(j.outputsDeclarations||[]).flatMap(ne=>ne),...(S.internalCalls||[]).flatMap(ne=>ne),...S.writesValues||[],...k.dataType?[k.dataType]:[],...b.body?[b.body]:[],...k.defaultValue?[k.defaultValue]:[],...(k.successCalls||[]).flatMap(ne=>ne),...(k.errorCalls||[]).flatMap(ne=>ne),...(t.properties||[]).flatMap(ne=>ne),...(t.methods||[]).flatMap(ne=>ne),...(t.abstractMethods||[]).flatMap(ne=>ne),...w.error?[w.error]:[],...w.process?[w.process]:[],...L.throws?[L.throws]:[],...(p.andChildrenGroup||[]).flatMap(ne=>ne),...(p.orChildrenGroup||[]).flatMap(ne=>ne),...(A.entities||[]).flatMap(ne=>ne),...(A.functions||[]).flatMap(ne=>ne),...(A.functionCalls||[]).flatMap(ne=>ne),...(A.events||[]).flatMap(ne=>ne),...(A.conditions||[]).flatMap(ne=>ne),...(A.operations||[]).flatMap(ne=>ne),...(A.loops||[]).flatMap(ne=>ne),...(A.variableDeclarations||[]).flatMap(ne=>ne),...(A.variableInstances||[]).flatMap(ne=>ne),...(A.searches||[]).flatMap(ne=>ne),...(A.projects||[]).flatMap(ne=>ne),...(y.calls||[]).flatMap(ne=>ne)];d.type===f.DataType&&(p.entity&&u[W(p.entity)]&&u[W(p.entity)].parent&&W(u[W(p.entity)].parent)===d.id?ie.push(p.entity):p.entity&&H.push(p.entity));const te={},pe={};return H.forEach(ne=>{var ae;const ve=W(ne);if(ve&&a.ignoreBuiltInBaseEntities&&(Gi.includes(ne.type)||(a.allBuiltInEntityIds||[]).includes(ve)))return;const J=ne.version;if(ve){const ce=((ae=a.entityMaps)==null?void 0:ae.get(ve))||ve;te[ce]=J}}),ie.forEach(ne=>{var ae;const ve=W(ne);if(ve&&a.ignoreBuiltInBaseEntities&&(Gi.includes(ne.type)||(a.allBuiltInEntityIds||[]).includes(ve)))return;const J=ne.version;if(ve){const ce=((ae=a.entityMaps)==null?void 0:ae.get(ve))||ve;pe[ce]=J}}),{upstream:te,downstream:pe}}function e0e(d,u){const i=[];if(Gs.includes(d.type)){hs(d).forEach(p=>{const t=Ny(p,u);t&&i.push(t)});const l=[...d.inputs||[],...d.outputs||[]].map(p=>{const t=Ap(p,u);return t?G6(t,u):null}).filter(p=>p!==null);i.push(...R(l))}if(nt.includes(d.type)){const a=My(d);a&&i.push(a)}return R(i)}function Ya(d){const u=[];if(Gs.includes(d.type)){d.calledBy.forEach(l=>{const p=pr(l);p&&u.push(p)});const a=[...d.inputs||[],...d.outputs||[]].map(l=>My(l)).filter(l=>l!==null);u.push(...R(a))}if(nt.includes(d.type)){const i=My(d);i&&u.push(i)}return R(u)}function hs(d){return[...d.calledByEntry||[],...d.calledByError||[],...d.calledBySuccess||[]].filter(u=>u.type!==f.GenericReference)}function p6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[d,...d.inputs.flatMap(a=>he(a,u,i)),...d.outputs.flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.parent?he(d.parent,u,i):[]]}function f6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[d,...d.defaultValue?he(d.defaultValue,u):[],...d.writesValues.flatMap(a=>he(a,u,i)),...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function h6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[d,...d.outputs.flatMap(a=>he(a,u,i)),...d.throws?he(d.throws,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function y6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[d,...(d.properties||[]).flatMap(a=>he(a,u,i)),...(d.methods||[]).flatMap(a=>he(a,u,i)),...(d.abstractMethods||[]).flatMap(a=>he(a,u,i)),...(d.extends||[]).flatMap(a=>he(a,u,i))]}function m6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Condition)throw new Error("Entity must be a condition to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function v6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[d,...d.outputs.flatMap(a=>he(a,u,i)),...d.throws?he(d.throws,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function E6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[d,...(d.extends||[]).flatMap(a=>he(a,u,i)),...(d.implements||[]).flatMap(a=>he(a,u,i)),...(d.properties||[]).flatMap(a=>he(a,u,i)),...(d.methods||[]).flatMap(a=>he(a,u,i)),...(d.abstractMethods||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function T6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.DataType)throw new Error("Entity must be a data type to be flattened");return[d,...(d.andChildrenGroup||[]).flatMap(a=>he(a,u,i)),...(d.orChildrenGroup||[]).flatMap(a=>he(a,u,i)),...d.entity?he(d.entity,u,i):[],...d.parent?he(d.parent,u,i):[]]}function b6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.process?he(d.process,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function A6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.calls||[]).flatMap(a=>he(a,u,i)),...d.implements?he(d.implements,u,i):[],...d.parent?he(d.parent,u,i):[]]}function I6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.calls||[]).flatMap(a=>he(a,u,i)),...d.implements?he(d.implements,u,i):[],...d.parent?he(d.parent,u,i):[]]}function w6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.InputMap)throw new Error("Entity must be an input map to be flattened");return[d,...d.readsValue?he(d.readsValue,u,i):[],...d.declaration?he(d.declaration,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...d.parent?he(d.parent,u,i):[]]}function R6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[d,...(d.functions||[]).flatMap(a=>he(a,u,i)),...(d.events||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function g6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.process?he(d.process,u,i):[],...d.parent?he(d.parent,u,i):[]]}function _6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[d,...d.valueAsTypeSingle?he(d.valueAsTypeSingle,u,i):[],...d.valueAsTypeList&&Array.isArray(d.valueAsTypeList)?d.valueAsTypeList.flatMap(a=>he(a,u,i)):[],...d.parent?he(d.parent,u,i):[]]}function D6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Loop)throw new Error("Entity must be a loop to be flattened");return[d,...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.process?he(d.process,u,i):[],...d.body?he(d.body,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function O6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Operation)throw new Error("Entity must be an operation to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...d.process?he(d.process,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function C6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.OutputMap)throw new Error("Entity must be an output map to be flattened");return[d,...(d.writesValues||[]).flatMap(a=>he(a,u,i)),...d.declaration?he(d.declaration,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...d.parent?he(d.parent,u,i):[]]}function $6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[d,...(d.properties||[]).flatMap(a=>he(a,u,i)),...(d.methods||[]).flatMap(a=>he(a,u,i)),...(d.abstractMethods||[]).flatMap(a=>he(a,u,i))]}function P6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Project)throw new Error("Entity must be a project to be flattened");return[d,...(d.entities||[]).flatMap(a=>he(a,u,i)),...(d.functions||[]).flatMap(a=>he(a,u,i)),...(d.events||[]).flatMap(a=>he(a,u,i)),...(d.projects||[]).flatMap(a=>he(a,u,i)),...(d.variableDeclarations||[]).flatMap(a=>he(a,u,i)),...(d.variableInstances||[]).flatMap(a=>he(a,u,i)),...(d.operations||[]).flatMap(a=>he(a,u,i)),...(d.conditions||[]).flatMap(a=>he(a,u,i)),...(d.functionCalls||[]).flatMap(a=>he(a,u,i)),...(d.projects||[]).flatMap(a=>he(a,u,i)),...(d.loops||[]).flatMap(a=>he(a,u,i)),...(d.searches||[]).flatMap(a=>he(a,u,i))]}function V6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Property)throw new Error("Entity must be a property to be flattened");return[d,...d.defaultValue?he(d.defaultValue,u,i):[],...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function N6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ReturnDeclaration)throw new Error("Entity must be a return declaration to be flattened");return[d,...d.readsValue?he(d.readsValue,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function L6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[d,...(d.outputs||[]).flatMap(a=>he(a,u,i)),...d.throws?he(d.throws,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function B6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.Search)throw new Error("Entity must be a search to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputsDeclarations||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputsDeclarations||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...d.error?he(d.error,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.parent?he(d.parent,u,i):[]]}function M6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[d,...d.defaultValue?he(d.defaultValue,u,i):[],...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function U6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...(d.internalCalls||[]).flatMap(a=>he(a,u,i)),...(d.writesValues||[]).flatMap(a=>he(a,u,i)),...d.readsValue?he(d.readsValue,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.dataType?he(d.dataType,u,i):[],...d.parent?he(d.parent,u,i):[]]}function j6(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(u.has(d.id))return[];if(u.add(d.id),d.type!==f.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[d,...(d.successCalls||[]).flatMap(a=>he(a,u,i)),...(d.errorCalls||[]).flatMap(a=>he(a,u,i)),...(d.inputs||[]).flatMap(a=>he(a,u,i)),...(d.outputs||[]).flatMap(a=>he(a,u,i)),...(d.internalCalls||[]).flatMap(a=>he(a,u,i)),...(d.writesValues||[]).flatMap(a=>he(a,u,i)),...d.readsValue?he(d.readsValue,u,i):[],...d.defaultValue?he(d.defaultValue,u,i):[],...(hs(d)||[]).flatMap(a=>he(a,u,i)),...d.declaration?he(d.declaration,u,i):[],...d.parent?he(d.parent,u,i):[]]}function $s(){const d=new Set,u=YN.flatMap(i=>he(i,d)).map(i=>i.id);if(!u.includes("http-request-error-return-delaration-id"))throw new Error("Built-in base entities must be included in the list");return u}function he(d,u=new Set,i={ignoreBuiltInBaseEntities:!1}){if(!d)throw new Error("Entity must be defined to be flattened");if(d.type===f.GenericReference)return[];if(i.ignoreBuiltInBaseEntities&&(Gi.includes(d.type)||$s().includes(d.id)))return[];if(u.has(d.id))return[];switch(d.type){case f.FunctionCall:return b6(d,u,i);case f.Operation:return O6(d,u,i);case f.Condition:return m6(d,u,i);case f.Loop:return D6(d,u,i);case f.Search:return B6(d,u,i);case f.GlobalEvent:return I6(d,u,i);case f.ReturnStatement:return L6(d,u,i);case f.ContinueStatement:return v6(d,u,i);case f.BreakStatement:return h6(d,u,i);case f.VariableDeclaration:return U6(d,u,i);case f.DefinitionEntity:return E6(d,u,i);case f.FunctionDeclaration:return A6(d,u,i);case f.Project:return P6(d,u,i);case f.ActionDescriptor:return p6(d,u,i);case f.ArgumentDeclaration:return f6(d,u,i);case f.ReturnDeclaration:return N6(d,u,i);case f.ValueDescriptor:return M6(d,u,i);case f.InputMap:return w6(d,u,i);case f.OutputMap:return C6(d,u,i);case f.DataType:return T6(d,u,i);case f.InstalledProject:return R6(d,u,i);case f.InternalCall:return g6(d,u,i);case f.LiteralValue:return _6(d,u,i);case f.Property:return V6(d,u,i);case f.VariableInstance:return j6(d,u,i);case f.BuiltInBaseEntity:return i.ignoreBuiltInBaseEntities?[]:y6(d,u,i);case f.PrimitiveEntity:return i.ignoreBuiltInBaseEntities?[]:$6(d,u,i)}return[]}function nA(d){return d.type===f.FunctionCall||d.type===f.InternalCall||[f.Operation,f.Condition,f.Loop].includes(d.type)?d.declaration.inputs:d.type===f.FunctionDeclaration||Cl.includes(d.type)?d.inputs:d.type===f.Search?d.inputsDeclarations:[]}function t0e(d,u){return u.type===f.Condition?u.inputs.find(i=>i.declaration.id===d.id):u.type===f.FunctionCall||u.type===f.Operation?u.inputs.find(i=>i.declaration.id===d.id):null}function x6(d){return er.includes(d.type)?d.inputs:[]}function F6(d){var u;return d.type===f.FunctionCall?((u=d.declaration.returnStatements[0])==null?void 0:u.outputs)||[]:[f.Operation,f.Condition,f.Loop].includes(d.type)?d.declaration.outputs:d.type===f.Search?d.outputsDeclarations:sr.includes(d.type)?d.outputs:[]}function r0e(d,u){return u.type===f.Condition?null:u.type===f.FunctionCall||u.type===f.Operation?u.outputs.find(i=>i.declaration.id===d.id):null}function i0e(d){return d.type===f.Condition?[]:er.includes(d.type)?d.outputs:[]}function My(d){const u=d.readsValue;return u?pr(u):null}function G6(d,u){const i=d.readsValue;return i?Ny(i,u):null}function K6(d){const u=d.internalCalls||[];return R(ti(R(u.flatMap(i=>[...i.successCalls,...i.errorCalls]))))}function Dd(d){const u=sA(d),i=[];return u.forEach(a=>{if(nt.includes(a.type))i.push(a);else if(Zn.includes(a.type)){const l=a.parent;i.push(l)}}),i}function R(d){const u=new Set;return d.filter(i=>!i||u.has(i.id)?!1:(u.add(i.id),!0))}function Qs(d,u=!1){const i=[];if(d.type===f.Project&&i.push(...(d==null?void 0:d.entities)||[],...(d==null?void 0:d.functions)||[],...(d==null?void 0:d.variableDeclarations)||[],...(d==null?void 0:d.variableInstances)||[],...(d==null?void 0:d.searches)||[],...(d==null?void 0:d.loops)||[],...(d==null?void 0:d.operations)||[],...(d==null?void 0:d.conditions)||[],...(d==null?void 0:d.functionCalls)||[],...(d==null?void 0:d.events)||[],...(d==null?void 0:d.projects)||[]),Ir.includes(d.type)&&i.push(...(d==null?void 0:d.detachedChildren)||[]),d.type===f.DefinitionEntity){const a=[...d.suggestedMethods,...d.methods].flatMap(l=>l.collapsed&&u?[]:Qs(l));i.push(...a)}if(d.type===f.Condition){const a=d.successCalls.map(p=>pr(p)),l=d.errorCalls.map(p=>pr(p));i.push(...a,...l)}if(Cl.includes(d.type)){if(d.collapsed&&u)return[];const a=d.inputs.map(p=>Dd(p)).flat(),l=d.calls.map(p=>pr(p));i.push(...R(a),...l)}if(er.includes(d.type)&&d.type!==f.Condition&&d.type!==f.Loop){const a=d==null?void 0:d.outputs.map(t=>Dd(t)).flat(),l=d.successCalls.map(t=>pr(t)),p=d.errorCalls.map(t=>pr(t));i.push(...R(a),...l,...p)}if(nt.includes(d.type)){const a=Dd(d),l=K6(d);i.push(...a,...l)}if(d.type===f.Loop){const a=d.outputs.map(t=>Dd(t)).flat();if(d.body){const t=Qs(d.body,u);i.push(...t)}const l=d.errorCalls.map(t=>pr(t)),p=d.successCalls.map(t=>pr(t));i.push(...R(a),...p,...l)}if(d.type===f.FunctionDeclaration){if(d.collapsed&&u)return[];const a=d.inputs.map(p=>Dd(p)).flat(),l=d.calls.map(p=>pr(p));i.push(...R(a),...l)}return R(i)}function Uy(d,u=!1){const i=Qs(d,u),a=[...i,...i.reduce((l,p)=>[...l,...Uy(p,u)],[])];return R(a)}function k6(d){const u=Ya(d),i=[...u,...u.reduce((a,l)=>[...a,...k6(l)],[])];return R(i)}function Ip(d){return d.implements.reduce((u,i)=>i.type===f.DefinitionEntity?[...u,f.DefinitionEntity,...Ip(i),...wp(i)]:[...u,i.name],[])}function wp(d){return d.extends.reduce((u,i)=>i.type===f.DefinitionEntity?[...u,f.DefinitionEntity,...wp(i),...Ip(i)]:[...u,i.name],[])}function aA(d){return d.extends.reduce((u,i)=>i.type===f.DefinitionEntity?[...u,i,...aA(i),...oA(i)]:[...u,i],[])}function oA(d){return d.implements.reduce((u,i)=>i.type===f.DefinitionEntity?[...u,i,...oA(i),...aA(i)]:[...u,i],[])}function Od(d){return[...wp(d),...Ip(d)].filter((i,a,l)=>l.indexOf(i)===a)}function lA(d){return d.implements.length===0&&d.extends.length===0?null:d.implements.find(a=>a.type===f.BuiltInBaseEntity&&a.name===Ce.PERSISTED_ENTITY)?d:[...d.implements,...d.extends].reduce((a,l)=>{if(l.type===f.DefinitionEntity){const p=lA(l);if(p)return p}return a},null)}function s0e(d){const u=d.extends.find(i=>i.type===f.BuiltInBaseEntity);return u&&u.type===f.BuiltInBaseEntity?u:null}function n0e(d){const u=d.implements.find(i=>i.type===f.BuiltInBaseEntity);return u&&u.type===f.BuiltInBaseEntity?u:null}function jy(d){const u=d.extends.find(i=>i.type===f.DefinitionEntity);return u&&u.type===f.DefinitionEntity?u:null}function Ii(d){if(d.type===f.BuiltInBaseEntity)return[d];const u=[...d.implements,...d.extends].reduce((i,a)=>a.type===f.BuiltInBaseEntity?[...i,a]:a.type===f.DefinitionEntity?[...i,...Ii(a)]:i,[]);return R(u)}function Rp(d){return d.type===f.PrimitiveEntity?!0:d.type===f.BuiltInBaseEntity?d.interactive:!Ii(d).find(a=>!a.interactive)}function a0e(d){return d.parent===d.project&&d.project.variableDeclarations.includes(d)}function dA(d){return d.parent!==d.project?!1:f.VariableDeclaration===d.type?d.project.variableDeclarations.includes(d):f.VariableInstance===d.type?d.project.variableInstances.includes(d):f.FunctionCall===d.type?d.project.functionCalls.includes(d):f.Condition===d.type?d.project.conditions.includes(d):f.Operation===d.type?d.project.operations.includes(d):f.Loop===d.type?d.project.loops.includes(d):f.Search===d.type?d.project.searches.includes(d):!1}function S6(d){if([...Yt,f.DefinitionEntity,f.InstalledProject,f.Project].includes(d.type)||dA(d))return!1;const u=Ya(d);return u.length===0?!0:u.some(i=>S6(i))}function uA(d){return[...Yt,f.DefinitionEntity,f.InstalledProject,f.Project].includes(d.type)||dA(d)?!1:Ya(d).length===0}function q6(d,u=0){if(uA(d)){const i=Ya(d);return i.length===0?d:i.map(l=>q6(l,u+1)).reduce((l,p)=>l?p&&p.x<l.x?p:l:p,null)}return null}function Z6(d){const u=[];if(uA(d))u.push(d);else return[];return Ya(d).forEach(a=>{u.push(...Z6(a))}),u}function cA(d){return d.type===f.FunctionDeclaration&&d.parent!==d.project&&!![f.DefinitionEntity,f.Loop,f.InstalledProject].includes(d.parent.type)}function o0e(d,u){const i=new Map;return d.forEach(a=>{i.set(a.id,a)}),u.forEach(a=>{i.set(a.id,a)}),Array.from(i.values())}function gp(d){switch(d){case f.DefinitionEntity:return ya;case f.FunctionDeclaration:return Ba;case f.VariableDeclaration:return Ga;case f.VariableInstance:return Fa;case f.FunctionCall:return Ha;case f.Operation:return Ma;case f.Condition:return xa;case f.ReturnStatement:return Ua;case f.Loop:return bi;case f.Search:return Ka;case f.InputMap:return Os;case f.OutputMap:return zs;case f.ArgumentDeclaration:return ca;case f.ReturnDeclaration:return Vi;case f.Property:return da;case f.InstalledProject:return ka;case f.Project:return P;case f.DataType:return Wi;case f.GlobalEvent:return ja;case f.InternalCall:return Sa;case f.ValueDescriptor:return Xs;case f.BuiltInBaseEntity:return On;case f.PrimitiveEntity:return Ni;case f.ActionDescriptor:return dt;case f.LiteralValue:return Ti;case f.ContinueStatement:return ci;case f.BreakStatement:return qa;default:return null}}function wi(d,u,i=null){const a=d!=null&&d.parent?W(d==null?void 0:d.parent):null;let l=a?u.get(a):null,p=i||d;if(d.type===f.ReturnStatement)return Nr(d,u,p);if(d.type===f.FunctionDeclaration&&(l==null?void 0:l.type)===f.Loop)return l;if(Yt.includes(d.type))return d;if(d.type===f.Loop)return p.id===d.id?l:d;if(Gi.includes(d.type))return null;const t=d.parent;if(!t)return null;if(t.type===f.GenericReference){const y=W(t);if(!y)return null;const v=u.get(y);return v?wi(v,u,p):null}else return t===u?u:wi(t,u,p)}function Nr(d,u,i=null){const a=d!=null&&d.parent?W(d==null?void 0:d.parent):null;let l=a?u.get(a):null,p=i||d;if(d.type===f.FunctionDeclaration&&(l==null?void 0:l.type)===f.Loop)return Nr(l.parent,u,p);if(Yt.includes(d.type))return d;if(Gi.includes(d.type))return null;const t=d.parent;if(!t)return null;if(t.type===f.GenericReference){const y=W(t);if(!y)return null;const v=u.get(y);return v?Nr(v,u,p):null}else return t===u?u:Nr(t,u,p)}function pA(d,u){if(Gi.includes(d.type)||u.getBuiltIn(d.id))return null;const i=Ri(d.parent,u);return i?i===u?Ir.includes(d.type)?d:null:i.type===f.DefinitionEntity?d:pA(i,u):null}function xy(d,u,i){if(d===u||u===i||d===i)return!1;const a=wi(u.parent,i);return a===d?!0:xy(a,u,i)}var Fy=(d=>(d.SameBothLocal="same-both-local",d.AInB="a-in-b",d.BInA="b-in-a",d.ParallelInCommonParent="parallel-in-common-parent",d.ParallelInProject="parallel-in-project",d.AIsGlobalBIsNot="a-is-global-b-is-not",d.BIsGlobalAIsNot="b-is-global-a-is-not",d.SameBothGlobal="same-both-global",d))(Fy||{});function _p(d,u,i){const a=wi(d,i),l=wi(u,i);if(!a)throw new Error("Could not find scope owner for the entity: "+d.id);if(!l)throw new Error("Could not find scope owner for the entity: "+u.id);if(a===l&&a.type!==f.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:a};if(a===l&&a.type===f.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:a};if(a.type===f.Project&&l.type!==f.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:a};if(a.type!==f.Project&&l.type===f.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:l};if(xy(a,l,i))return{compatible:!0,type:"b-in-a",commonAncestorScope:a};if(xy(l,a,i))return{compatible:!0,type:"a-in-b",commonAncestorScope:l};const y=rA(a,l);return y===i?{compatible:!1,type:"parallel-in-project",commonAncestorScope:y}:y?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:wi(y,i)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:i}}function J6(d,u,i){const a=_p(d,u,i);if(!a.compatible||a.type!=="same-both-local")return null;if(d===u)return d;let l=wi(d.parent,i);if(l){if(l===u)return u;if(l.type===f.Project)return d}else return d;for(;l;){if(l){if(l===u)return u;if(l.type===f.Project)return d}else return d;l=wi(l.parent,i)}let p=wi(u.parent,i);if(p){if(p===d)return d;if(p.type===f.Project)return u}else return u;for(;p;){if(p){if(p===d)return d;if(p.type===f.Project)return u}else return u;p=wi(p.parent,i)}return null}function W6(d){return d.length===0?null:d.length===1?d[0]:d.reduce((i,a)=>{const l=J6(i,a,a.project);return!l||l===a?i:a},d[0])}function Ri(d,u){if(!d)return null;let i;return typeof d=="string"?i=d:d.type===f.GenericReference?i=W(d):i=d.id,i===u.id?u:u.get(i)}function za(d){if(!d)return null;if(Gi.includes(d.type))return d;if(d.type===f.Project)return null;if(d.project.getBuiltIn(d.id))return d;const u=d.parent;return!u||u.type===f.Project?null:za(u)}function Dp(d){const u=[];function i(p,t){return u.some(y=>y.blockedByCaller===p&&y.blockedByCalling===t)}function a(p,t){i(p,t)||u.push({blockedByCaller:p,blockedByCalling:t})}const l=pA(d,d.project);return d.calledBySuccess.forEach(p=>{[...p.successCalls||[]].forEach(v=>{sr.includes(v.type)&&v!==d&&(ft(d).find(A=>A===v)||a(p,v))});let y;if(er.includes(p.type)&&(y=p),y){const v=Dp(y);v.reachable||ft(d).find(A=>A===p)||v.blocks.forEach(A=>{a(p,A.blockedByCalling)})}}),d.calledByError.forEach(p=>{[...p.errorCalls||[]].forEach(v=>{sr.includes(v.type)&&v!==d&&(ft(d).find(A=>A===v)||a(p,v))});let y;if(er.includes(p.type)&&(y=p),y){const v=Dp(y);v.reachable||ft(d).find(A=>A===p)||v.blocks.forEach(A=>{a(p,A.blockedByCalling)})}}),d.calledByEntry.forEach(p=>{if([...p.calls||[]].forEach(v=>{sr.includes(v.type)&&v!==d&&(ft(d).find(A=>A===v)||a(p,v))}),p===l)return;let y;if(p.type===f.FunctionDeclaration){const v=pr(p);if(v.type===f.DefinitionEntity)return;v.type===f.Loop&&(y=v)}if(y){const v=Dp(y);v.reachable||v.blocks.forEach(b=>{a(p,b.blockedByCalling)})}}),{reachable:u.length===0,entryPoint:l,blocks:u}}function l0e(d){return Pf.includes(d.type)?d.type===f.FunctionDeclaration?!cA(d):!0:!1}function d0e(d){if(f.ActionDescriptor===d.type){if(d.project.operationDeclarations.find(p=>p.id===d.id))return f.Operation;if(d.project.globalEventActionDescriptors.find(p=>p.id===d.id))return f.GlobalEvent;if(d.project.loopDeclarations.find(p=>p.id===d.id))return f.Loop;if(d.project.conditionDeclarations.find(p=>p.id===d.id))return f.Condition}return d.type}function Gy(d,u){return d.type===f.BuiltInBaseEntity?d.name===u:!!wp(d).includes(u)}function u0e(d,u){return d.type===f.BuiltInBaseEntity?d.name===u:!!Ip(d).includes(u)}function zi(d,u){return d.type===f.BuiltInBaseEntity?d.name===u:!!Od(d).includes(u)}function c0e(d){const u=[];return d.entities.forEach(i=>{if(Gy(i,Ce.PERSISTED_ENTITY)){u.push(i);return}}),R(u)}function p0e(d){const u=[];return d.entities.forEach(i=>{if(Gy(i,Ce.RELATIONAL_DATABASE)){u.push(i);return}}),R(u)}function f0e(d){return d.type!==f.DefinitionEntity||d.abstract||!Gy(d,Ce.PERSISTED_ENTITY)?null:(d==null?void 0:d.properties.find(i=>{var a;return((a=i.implements)==null?void 0:a.id)===me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties.primaryKey.id&&!i.abstract}))||null}function H6(d){var a;const u=lA(d);if(!u)return null;const i=u.properties.find(l=>{var p;return((p=l.implements)==null?void 0:p.id)===me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties.database.id});return i?(a=i.getDefaultValue())==null?void 0:a.valueAsType:null}function Cd(d){if(d.type!==f.DefinitionEntity)return[];if(d.abstract)return[];if(!zi(d,Ce.PERSISTED_ENTITY))return[];const u=[],i=d.properties.filter(a=>{var l;return((l=a.implements)==null?void 0:l.id)!==me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties.database.id&&!a.abstract});return u.push(...i),u}function h0e(d){var i;if(!d||d.type!==f.DefinitionEntity||!zi(d,Ce.PERSISTED_ENTITY))return null;const u=d.properties.find(a=>{var l;return((l=a.implements)==null?void 0:l.id)===me[f.BuiltInBaseEntity][Ce.PERSISTED_ENTITY].properties.database.id});return(i=u==null?void 0:u.getDefaultValue())==null?void 0:i.valueAsTypeSingle}function Rr(d,u){var a;if(!l1.includes(u.type)||!d)return u.project||null;let i=u.project;return d.type===f.Project?i=d:((a=u.project)==null?void 0:a.id)!==d.project.id&&(i=d.project),i}function y0e(d){switch(d){case f.Project:return P;case f.InstalledProject:return ka;case f.DefinitionEntity:return ya;case f.FunctionDeclaration:return Ba;case f.GlobalEvent:return ja;case f.VariableInstance:return Fa;case f.VariableDeclaration:return Ga;case f.InputMap:return Os;case f.OutputMap:return zs;case f.Condition:return xa;case f.Operation:return Ma;case f.FunctionCall:return Ha;case f.ReturnDeclaration:return Vi;case f.ArgumentDeclaration:return ca;case f.PrimitiveEntity:return Ni;case f.DataType:return Wi;case f.Property:return da;case f.ActionDescriptor:return dt;case f.ReturnStatement:return Ua;case f.ContinueStatement:return ci;case f.BreakStatement:return qa;case f.Loop:return bi;case f.Search:return Ka;case f.ValueDescriptor:return Xs;case f.InternalCall:return Sa;case f.LiteralValue:return Ti}return null}function m0e(d){const u={added:{},updated:{},removed:{},affected:[],seenEntities:[],self:d==null?void 0:d.self};return d==null||d.added.forEach(i=>{u.added[i.id]=i}),d==null||d.updated.forEach(i=>{u.updated[i.id]=i}),d==null||d.removed.forEach(i=>{u.removed[i.id]=i}),u.affected=Array.from(new Set(d==null?void 0:d.affected.map(i=>i.id))),u}function br(d,u){const i=gp(d.type);return i?!i.MUTABLE_META_PROPERTIES.every(l=>{const p=d[l],t=u[l];return t===void 0||p===t?!0:Array.isArray(p)&&Array.isArray(t)?p.length!==t.length?!1:p.every((y,v)=>y===t[v]):!1}):!1}function Ky(d,u={}){if(d.type===f.Project)return[];if(!d.parent)return[];const i=W(d.parent);if(!i)return[];const a=u[i];return a?[a.id,...Ky(a,u)]:[]}function v0e(d){const u=[],i=new Set;return[...d.listAdded,...d.listUpdated,...d.listAffected].forEach(a=>{const l=pr(a);!l||i.has(l.id)||(i.add(l.id),u.push(l))}),R(u)}function E0e(d){if(d.type===f.Condition)return null;if(d.type===f.Search)return d.project.getBuiltIn(me["value-descriptor"][$l.SearchErrorOutputDescriptor].id)||null;if(d.type===f.Operation)return d.declaration.error;if(d.type===f.FunctionCall){const i=d.declaration.returnStatements.find(a=>!!a.throws);return(i==null?void 0:i.throws)||null}return null}function Y6(d){const u=d.entities.filter(l=>!!l.implements.find(p=>p.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)),i=u.find(l=>{const p=l.properties.find(v=>v.implements&&v.implements.id===me["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),t=p==null?void 0:p.getDefaultValue();return(t==null?void 0:t.value)===!0});return i||u[0]||null}function fA(d,u){const i=Array.from(new Set([...u.getAllBuiltInIds(),...$s()]));return!!(i.includes(d.id)||!Ky(d,{...u.instances,...u.builtInInstances}).every(p=>!i.includes(p)))}function z6(d){if(!d)return null;if(d.type===f.Project)return d.id;const u=d.parent;return u?z6(u):d.id}function X6(d){const u=lpe(),i=d.toJSON();u.safeParse(i).success;const l=d.implements.flatMap(w=>T0e(d,w)),p=d.extends.flatMap(w=>b0e(d,w)),t=I0e(d),y=A0e(d);d.methods.flatMap(w=>w.validate());const v=[...l,...p,...t,...y];return Qt(d.errors,v)}function Q6(d,u){const i=u.properties.filter(p=>p.abstract),a=[];let l=[...d.properties];return i.forEach(p=>{const t=l.find(y=>{var v;return((v=y.implements)==null?void 0:v.id)===p.id});t?l=l.filter(y=>y.id!==t.id):a.push(p)}),a}function eF(d,u){const i=u.abstractMethods,a=[];let l=[...d.methods];return i.forEach(p=>{const t=l.find(y=>{var v;return((v=y.implements)==null?void 0:v.id)===p.id});t?l=l.filter(y=>y.id!==t.id):a.push(p)}),a}function T0e(d,u){const i=[];if(!u.abstract){const w=lt({id:d.id+"--"+se.ImplementingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is implementing a non-abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.ImplementingNonAbstractEntity,entity:d});return i.push(w.error),i}const a=u.properties.filter(w=>w.abstract),l=[];let p=[...d.properties];a.forEach(w=>{const A=p.find(V=>{var L;return((L=V.implements)==null?void 0:L.id)===w.id});A?p=p.filter(V=>V.id!==A.id):l.push(w)}),l.length&&l.forEach(w=>{const A=lt({id:d.id+"--"+se.MissingPropertyImplementation+"--"+w.id,message:`Property "${w.name}" with id "${w.id}" of entity "${u.name}" with id "${u.id}" is not implemented when entity "${d.name}" with id "${d.id}" implements it`,issue:null,severity:Z.Error,code:se.MissingPropertyImplementation,entity:d});i.push(A.error)});const t=[];let y=[...d.methods];u.abstractMethods.forEach(w=>{const A=y.find(V=>{var L;return((L=V.implements)==null?void 0:L.id)===w.id});A?y=y.filter(V=>V.id!==A.id):t.push(w)}),t.length&&t.forEach(w=>{const A=lt({id:d.id+"--"+se.MissingMethodImplementation+"--"+w.id,message:`Method "${w.name}" with id "${w.id}" of entity "${u.name}" with id "${u.id}" is not implemented when entity "${d.name}" with id "${d.id}" implements it`,issue:null,severity:Z.Error,code:se.MissingMethodImplementation,entity:d});i.push(A.error)});const v=[];u.properties.forEach(w=>{const A=p.find(V=>V.name===w.name);A&&v.push([A,w])}),v.length&&v.forEach(([w])=>{const A=lt({id:d.id+"--"+le.PropertyOverwritesOtherSiblingWithSameName+"--"+w.id,message:`Property "${w.name}" with id "${w.id}" of entity "${d.name}" with id "${d.id}" overwrites the property with the same name from the base entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:le.PropertyOverwritesOtherSiblingWithSameName,entity:d});i.push(A.error)});const b=[];return u.methods.forEach(w=>{const A=y.find(V=>V.name===w.name);A&&b.push([A,w])}),b.length&&b.forEach(([w])=>{const A=lt({id:d.id+"--"+le.MethodOverwritesOtherSiblingWithSameName+"--"+w.id,message:`Method "${w.name}" with id "${w.id}" of entity "${d.name}" with id "${d.id}" overwrites the method with the same name from the base entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:le.MethodOverwritesOtherSiblingWithSameName,entity:d});i.push(A.error)}),i}function b0e(d,u){const i=[],a=[];if(!d.abstract&&u.abstract){const p=lt({id:d.id+"--"+u.id+"--"+se.NonAbstractExtendingAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is not-abstract but is extending an abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.NonAbstractExtendingAbstractEntity,entity:d,firstRelationship:u});return i.push(p.error),i}if(d.abstract&&!u.abstract){const p=lt({id:d.id+"--"+u.id+"--"+se.AbstractExtendingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is abstract but is extending an non-abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.AbstractExtendingNonAbstractEntity,entity:d,firstRelationship:u});return i.push(p.error),i}d.properties.forEach(p=>{var y;const t=u.properties.find(v=>{var b;return v.name===p.name&&((b=p.extends)==null?void 0:b.id)!==v.id});((y=p.implements)==null?void 0:y.id)!==(t==null?void 0:t.id)&&t&&a.push(p)}),a.length&&a.forEach(p=>{const t=lt({id:d.id+"--"+le.PropertyOverwritesOtherSiblingWithSameName,message:`Property "${p.name}" with id "${p.id}" of entity "${d.name}" with id "${d.id}" overwrites the property with the same name from the extended entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:le.PropertyOverwritesOtherSiblingWithSameName,entity:d});i.push(t.error)});const l=[];return d.methods.forEach(p=>{var y;const t=u.methods.find(v=>{var b;return v.name===p.name&&((b=p.extends)==null?void 0:b.id)!==v.id});((y=p.implements)==null?void 0:y.id)!==(t==null?void 0:t.id)&&t&&l.push(p)}),l.length&&l.forEach(p=>{const t=lt({id:d.id+"--"+le.MethodOverwritesOtherSiblingWithSameName,message:`Method "${p.name}" with id "${p.id}" of entity "${d.name}" with id "${d.id}" overwrites the method with the same name from the extended entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:le.MethodOverwritesOtherSiblingWithSameName,entity:d});i.push(t.error)}),i}function A0e(d){const u=[];if(!d.properties.length){const i=lt({id:d.id+"--"+se.NoProperties,message:"No properties implemented",issue:null,severity:Z.Warning,code:se.NoProperties,entity:d});u.push(i.error)}return d.properties.forEach(i=>{i.validate()}),u}function I0e(d){const u=[];if(d.abstract){if(d.methods.length){const i=lt({id:d.id+"--"+se.AbstractEntityWithNonAbstractMethods,message:`Entity "${d.name}" with id "${d.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:Z.Error,code:se.AbstractEntityWithNonAbstractMethods,entity:d});u.push(i.error)}if(d.properties.some(i=>!i.abstract)){const i=lt({id:d.id+"--"+se.AbstractEntityWithNonAbstractProperties,message:`Entity "${d.name}" with id "${d.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:Z.Error,code:se.AbstractEntityWithNonAbstractProperties,entity:d});u.push(i.error),d.properties.forEach(a=>{if(!a.abstract){const l=lt({id:d.id+"--"+se.StaticEntityWithNonStaticProperties+"--"+a.id,message:`Property "${a.name}" with id "${a.id}" of entity "${d.name}" with id "${d.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:Z.Error,code:se.StaticEntityWithNonStaticProperties,entity:d});u.push(l.error)}})}}else{if(d.abstractMethods.length){const i=lt({id:d.id+"--"+se.AbstractPropertyInNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is not marked as abstract but has abstract methods`,issue:null,severity:Z.Error,code:se.AbstractPropertyInNonAbstractEntity,entity:d});u.push(i.error)}d.properties.some(i=>i.abstract)&&d.properties.forEach(i=>{if(i.abstract){const a=lt({id:d.id+"--"+se.AbstractPropertyInNonAbstractEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${d.name}" with id "${d.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:Z.Error,code:se.AbstractPropertyInNonAbstractEntity,entity:d,firstRelationship:i});u.push(a.error)}})}return d.static&&d.properties.some(i=>!i.static)&&d.properties.forEach(i=>{if(!i.static){const a=lt({id:d.id+"--"+se.NonStaticPropertyInStaticEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${d.name}" with id "${d.id}" is not marked as static but the entity is marked as static`,issue:null,severity:Z.Error,code:se.NonStaticPropertyInStaticEntity,entity:d,firstRelationship:i});u.push(a.error)}}),u}function w0e(d,u){const i=[],a=Ii(u);if(!u.abstract){const t=new Zt({id:d.id+"--"+u.id+"--"+se.ImplementingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is implementing a non-abstract built-in entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.ImplementingNonAbstractEntity,entity:d,firstRelationship:u});i.push(t)}const l=d.implements.filter(t=>t.id!==u.id);if(d.abstract){const t=new Zt({id:d.id+"--"+u.id+"--"+se.AbstractEntityImplements,message:`Entity "${d.name}" with id "${d.id}" is marked as abstract and cannot implement built-in entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.AbstractEntityImplements,entity:d,firstRelationship:u});i.push(t)}if(d.static&&!u.static){const t=new Zt({id:d.id+"--"+u.id+"--"+se.StaticImplementingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is marked as static and cannot implement non-static built-in entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.StaticImplementingNonStaticEntity,entity:d,firstRelationship:u});i.push(t)}if(!d.static&&u.static){const t=new Zt({id:d.id+"--"+u.id+"--"+se.NonStaticImplementingStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is not marked as static and cannot implement static built-in entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.NonStaticImplementingStaticEntity,entity:d,firstRelationship:u});i.push(t)}return l.length&&l.forEach(t=>{if(t.type===f.BuiltInBaseEntity){const y=a.filter(v=>v.id!==t.id);y.length&&y.forEach(v=>{if(v.id!==t.id){const b=new Zt({id:d.id+"--"+v.id+"--"+t.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${v.name}" with id "${v.id}" but also implements entity "${t.name}" with id "${t.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:v,secondRelationship:t});i.push(b)}})}else{Ii(t).forEach(w=>{const A=a.filter(V=>V.id!==w.id);A.length&&A.forEach(V=>{if(V.id!==w.id){const L=new Zt({id:d.id+"--"+V.id+"--"+w.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${w.name}" with id "${w.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:V,secondRelationship:w});i.push(L)}})});const v=ha(u.ownDeclaredProperties,t.ownDeclaredProperties,le.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,le.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);i.push(...v.errors);const b=ha(u.abstractMethods,[...t.abstractMethods,...t.methods],le.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,le.MethodOverwritesOtherImplementedEntitysMethodWithSameName);i.push(...b.errors)}}),R(d.extends.flatMap(t=>Ii(t))).forEach(t=>{if(!a.find(y=>y.id===t.id)){const y=new Zt({id:d.id+"--"+u.id+"--"+t.id+"--"+se.ExtendsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${u.name}" with id "${u.id}" but also extends entity "${t.name}" with id "${t.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ExtendsIncompatibleEntities,entity:d,firstRelationship:u,secondRelationship:t});i.push(y)}}),i}function R0e(d,u,i=!1){const a=[],l=Ii(u);if(!d.abstract&&u.abstract){const w=lt({id:d.id+"--"+u.id+"--"+se.NonAbstractExtendingAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is not-abstract but is extending an abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.NonAbstractExtendingAbstractEntity,entity:d,firstRelationship:u});a.push(w.error)}if(d.abstract&&!u.abstract){const w=lt({id:d.id+"--"+u.id+"--"+se.AbstractExtendingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is abstract but is extending an non-abstract entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.AbstractExtendingNonAbstractEntity,entity:d,firstRelationship:u});a.push(w.error)}if(!d.static&&u.static){const w=lt({id:d.id+"--"+u.id+"--"+se.NonStaticExtendingStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is not static but is extending a static entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.NonStaticExtendingStaticEntity,entity:d,firstRelationship:u});a.push(w.error)}if(d.static&&!u.static){const w=lt({id:d.id+"--"+u.id+"--"+se.StaticExtendingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is static but is extending an non-static entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.StaticExtendingNonStaticEntity,entity:d,firstRelationship:u});a.push(w.error)}if(!Rp(u)){const w=lt({id:d.id+"--"+u.id+"--"+se.ExtendingNonInteractiveEntity,message:`Entity "${d.name}" with id "${d.id}" is extending an non-interactive entity "${u.name}" with id "${u.id}"`,issue:null,severity:Z.Error,code:se.ExtendingNonInteractiveEntity,entity:d,firstRelationship:u});a.push(w.error)}const t=d.extends.filter(w=>w.id!==u.id);t.length&&t.forEach(w=>{if(w.type===f.BuiltInBaseEntity){const A=l.filter(V=>V.id!==w.id);A.length&&A.forEach(V=>{if(V.id!==w.id){const L=lt({id:d.id+"--"+V.id+"--"+w.id+"--"+se.ExtendsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is extending built-in entity "${V.name}" with id "${V.id}" but also extends entity "${w.name}" with id "${w.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ExtendsIncompatibleEntities,entity:d,firstRelationship:V,secondRelationship:w});a.push(L.error)}})}else{Ii(w).forEach(H=>{const ie=l.filter(te=>te.id!==H.id);ie.length&&ie.forEach(te=>{if(te.id!==H.id){const pe=new Zt({id:d.id+"--"+te.id+"--"+H.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is extending built-in entity "${te.name}" with id "${te.id}" but also extends or implements entity "${H.name}" with id "${H.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:te,secondRelationship:H});a.push(pe)}})});const V=!!Ii(w).find(H=>H.id===u.id);let L=[...w.properties];V&&(L=L.filter(H=>!u.properties.find(ie=>{var te;return ie.id===H.id||ie.name===H.name||ie.id===((te=H.implements)==null?void 0:te.id)})));let j=[...w.methods];V&&(j=j.filter(H=>!u.methods.find(ie=>{var te;return ie.id===H.id||ie.name===H.name||ie.id===((te=H.implements)==null?void 0:te.id)})));const k=ha(u.ownDeclaredProperties,L,le.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation,le.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName);a.push(...k.errors);const S=ha(u.abstractMethods,j,le.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation,le.MethodOverwritesOtherExtendedEntitysMethodWithSameName);a.push(...S.errors)}}),i&&console.log("self.implements.length",d.implements.length),d.implements.length&&d.implements.forEach(w=>{if(w.type===f.BuiltInBaseEntity){const A=l.filter(V=>V.id!==w.id);A.length&&A.forEach(V=>{if(V.id!==w.id){const L=new Zt({id:d.id+"--"+V.id+"--"+w.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${w.name}" with id "${w.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:V,secondRelationship:w});a.push(L)}})}else{Ii(w).forEach(j=>{const k=l.filter(S=>S.id!==j.id);k.length&&k.forEach(S=>{if(S.id!==j.id){const H=new Zt({id:d.id+"--"+S.id+"--"+j.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${S.name}" with id "${S.id}" but also implements entity "${j.name}" with id "${j.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:S,secondRelationship:j});a.push(H)}})});const V=ha(u.ownDeclaredProperties,w.ownDeclaredProperties,le.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,le.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);a.push(...V.errors);const L=ha(u.abstractMethods,[...w.abstractMethods,...w.methods],le.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,le.MethodOverwritesOtherImplementedEntitysMethodWithSameName);a.push(...L.errors)}});const y=ha(d.ownDeclaredProperties,u.ownDeclaredProperties,le.PropertyOverwritesOtherSiblingWithSameImplementation,le.PropertyOverwritesOtherSiblingWithSameName);a.push(...y.errors);const v=ha(u.methods,u.abstractMethods,le.MethodOverwritesOtherSiblingWithSameImplementation,le.MethodOverwritesOtherSiblingWithSameName);return a.push(...v.errors),R(d.extends.flatMap(w=>Ii(w))).forEach(w=>{if(!l.find(A=>A.id===w.id)){const A=new Zt({id:d.id+"--"+u.id+"--"+w.id+"--"+se.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is extending built-in entity "${u.name}" with id "${u.id}" but also extends entity "${w.name}" with id "${w.id}" which is incompatible`,issue:null,severity:Z.Error,code:se.ImplementsIncompatibleEntities,entity:d,firstRelationship:u,secondRelationship:w});a.push(A)}}),a}function g0e(d){const u=[];return d.implements.forEach(i=>{if(!i.static){const a=new Zt({id:d.id+"--"+i.id+"--"+se.StaticImplementingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is static but implements entity "${i.name}" with id "${i.id}" which is non-static`,issue:null,severity:Z.Error,code:se.StaticImplementingNonStaticEntity,entity:d,firstRelationship:i});u.push(a)}}),d.extends.forEach(i=>{if(!i.static){const a=new Zt({id:d.id+"--"+i.id+"--"+se.StaticExtendingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is static but extends entity "${i.name}" with id "${i.id}" which is non-static`,issue:null,severity:Z.Error,code:se.StaticExtendingNonStaticEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function _0e(d){const u=[];if(d.implements.length){const i=new Zt({id:d.id+"--"+se.AbstractEntityImplements,message:`Entity "${d.name}" with id "${d.id}" cannot be marked as abstract because it implements other entities`,issue:null,severity:Z.Error,code:se.AbstractEntityImplements,entity:d});u.push(i)}return d.extends.forEach(i=>{if(!i.abstract){const a=new Zt({id:d.id+"--"+i.id+"--"+se.AbstractExtendingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is abstract but extends entity "${i.name}" with id "${i.id}" which is non-abstract`,issue:null,severity:Z.Error,code:se.AbstractExtendingNonAbstractEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function D0e(d){const u=[];return d.extends.forEach(i=>{if(i.static){const a=new Zt({id:d.id+"--"+i.id+"--"+se.NonStaticExtendingStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is non-static but extends entity "${i.name}" with id "${i.id}" which is static`,issue:null,severity:Z.Error,code:se.NonStaticExtendingStaticEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function O0e(d){const u=[];return d.extends.forEach(i=>{if(i.abstract){const a=new Zt({id:d.id+"--"+i.id+"--"+se.NonAbstractExtendingAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is non-abstract but extends entity "${i.name}" with id "${i.id}" which is abstract`,issue:null,severity:Z.Error,code:se.NonAbstractExtendingAbstractEntity,entity:d,firstRelationship:i});u.push(a)}}),u}const C0e=Object.freeze(Object.defineProperty({__proto__:null,getBaseMethodsNotImplemented:eF,getBasePropertiesNotImplemented:Q6,validate:X6,validateCanBecomeAbstract:_0e,validateCanBecomeNonAbstract:O0e,validateCanBecomeNonStatic:D0e,validateCanBecomeStatic:g0e,validateCanExtendEntity:R0e,validateCanImplementEntity:w0e},Symbol.toStringTag,{value:"Module"}));function $0e(d,u){const i=[];if(d.parent)if(d.id===d.parent)i.push(new Q({id:`${d.id}--${d.parent}--${q.SelfReference}`,code:q.SelfReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));else{const a=u.get(d.parent);a?[f.Project,f.DataType].includes(a.type)||i.push(new Q({id:`${d.id}--${d.parent}--${q.InvalidParentReference}`,code:q.InvalidParentReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):i.push(new Q({id:`${d.id}--${d.parent}--${q.ReferencedEntityNotFound}`,code:q.ReferencedEntityNotFound,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${d.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return d.implements&&Array.isArray(d.implements)?d.implements.forEach(a=>{if(d.id===a){i.push(new Q({id:`${d.id}--${a}--${q.SelfReference}`,code:q.SelfReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));return}const l=u.get(a);l?[f.DefinitionEntity,f.BuiltInBaseEntity].includes(l.type)?l.abstract||i.push(new Q({id:`${d.id}--${a}--${q.InvalidImplementsReference}`,code:q.InvalidImplementsReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):i.push(new Q({id:`${d.id}--${a}--${q.InvalidImplementsReference}`,code:q.InvalidImplementsReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):i.push(new Q({id:`${d.id}--${a}--${q.ReferencedEntityNotFound}`,code:q.ReferencedEntityNotFound,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${a}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):i.push(new Q({id:`${d.id}--${le.InvalidObjectStructure}`,code:le.InvalidObjectStructure,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'implements' property that isn't an array.`,issue:null})),d.extends&&Array.isArray(d.extends)&&d.extends.forEach(a=>{const l=u.get(a);l?[f.DefinitionEntity,f.BuiltInBaseEntity].includes(l.type)?l.abstract&&i.push(new Q({id:`${d.id}--${a}--${q.InvalidExtendsReference}`,code:q.InvalidExtendsReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`,issue:null})):i.push(new Q({id:`${d.id}--${a}--${q.InvalidExtendsReference}`,code:q.InvalidExtendsReference,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):i.push(new Q({id:`${d.id}--${a}--${q.ReferencedEntityNotFound}`,code:q.ReferencedEntityNotFound,severity:Z.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${a}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),i}var ky=(d=>(d.Extends="extends",d.Implements="implements",d))(ky||{});const Vt=class Vt extends mr{constructor(i,a){super(i);D(this,"initialData");D(this,"id");D(this,"name");D(this,"codeName",null);D(this,"description",null);D(this,"x");D(this,"y");D(this,"static");D(this,"abstract");D(this,"type",f.DefinitionEntity);D(this,"properties",[]);D(this,"methods",[]);D(this,"abstractMethods",[]);D(this,"extends",[]);D(this,"implements",[]);D(this,"project");D(this,"errors",[]);D(this,"parent");D(this,"detachedDependents",{});D(this,"knownVersions",null);D(this,"activeVersion",!1);D(this,"initialized",!1);D(this,"startedInitialization",!1);D(this,"suggestedProperties",[]);D(this,"suggestedMethods",[]);this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.description=i.description,this.x=i.x,this.y=i.y,this.codeName=i.codeName,this.static=i.static,this.abstract=i.abstract}static new(i=null){return{id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||N().toISOString(),author:(i==null?void 0:i.author)||P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DefinitionEntity,name:"",codeName:null,description:"",static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:null}}static fromGenerationTarget(i,a){let l=a;if(i.parent){const b=W(i.parent);l=a.get(b)}const p=[];i.implements&&i.implements.forEach(b=>{p.push(a.get(b)||a.getBuiltIn(b))});const t=[];i.extends&&i.extends.forEach(b=>{t.push(a.get(b)||a.getBuiltIn(b))});const y={id:i.id,version:P.UUID.uuid(),createdAt:N().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,name:i.name,type:f.DefinitionEntity,codeName:i.codeName||null,description:i.description,static:i.static,abstract:i.abstract,properties:[],methods:[],abstractMethods:[],extends:t,implements:p,x:0,y:0,parent:l},v=ee(y,a);return v.setParent(l,null),v}static validateGenerationTarget(i,a){let l=JSON.parse(JSON.stringify(i));const p=[],t=$0e(l,a),y=ab(l,a);p.push(...t,...y,...Tr(l));const v=l.parent?a.get(l.parent):null;if(v&&v.type===f.DataType){const b=v;b.entity&&p.push(new Q({id:`${i.id}--${q.NewEntityWouldOverriteExisting}`,code:q.NewEntityWouldOverriteExisting,severity:Z.Error,message:`The entity of type '${i.type}' with id '${i.id}' can't be added to the 'parent' entity with id '${b.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
401
401
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
402
402
  ${Dn({describe_entity:b.entity.id})}
403
403
  Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:p,modifiedData:l}}get interactive(){return this.implements.length?this.implements.every(i=>i.interactive):!0}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[]),...this.implements.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[]),...this.implements.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R([...this.extends.reduce((i,a)=>[...[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract),...i],[]),...this.implements.reduce((i,a)=>[...[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract),...i],[])])}get allBaseMethodsFromExtendedAndImplementedEntities(){return R([...this.extends.reduce((i,a)=>a.type!==f.DefinitionEntity?[]:[...[...a.ownDeclaredMethods,...a.allBaseMethodsFromExtendedAndImplementedEntities].filter(p=>p.type!==f.ActionDescriptor),...i],[]),...this.implements.reduce((i,a)=>a.type!==f.DefinitionEntity?a.abstractMethods:[...[...a.ownDeclaredMethods,...a.allBaseMethodsFromExtendedAndImplementedEntities].filter(p=>p.type!==f.ActionDescriptor),...i],[])])}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...l]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const l=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(t=>!!t.abstract&&!l.find(y=>y.name===t.name));return[...l,...p,...i]},[]),...this.implements.reduce((i,a)=>{const l=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(t=>!!t.abstract&&!l.find(y=>y.name===t.name));return[...l,...p,...i]},[])].filter(i=>!!i.abstract))}get extendedMethodsFromOriginalParents(){return R(this.extends.reduce((i,a)=>{if(a.type!==f.DefinitionEntity)return[];const l=[...a.ownDeclaredMethods,...a.extendedMethodsFromOriginalParents].filter(p=>p.type!==f.ActionDescriptor);return[...i,...l]},[]))}get implementedMethodsFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const l=a.type===f.DefinitionEntity?a.methods:[],p=[...a.abstractMethods].filter(t=>!l.find(y=>y.name===t.name));return[...l,...p,...i]},[]),...this.implements.reduce((i,a)=>[...a.abstractMethods,...i],[])].filter(i=>i.type===f.ActionDescriptor))}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}get extendedMethods(){return this.methods.filter(i=>i.isExtendedMethod)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new Q({id:`${this.id}--${q.InvalidParentUpdate}`,code:q.InvalidParentUpdate,severity:Z.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`,issue:null})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"sync-dependents"))){const a=[],l=[],p=[],t=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),l.push(...v.added),p.push(...v.removed),t.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}onDetachedDependencyRemoved(i,a,l){const p=[],t=[],y=[],v=[];return a==="implements"&&this.removeImplementation(i),a==="extends"&&this.removeExtension(i),{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,l){const p=[],t=[],y=[],v=[];return a==="implements"&&this.addImplementation(i),a==="extends"&&this.addExtension(i),{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this.implements.forEach(i=>{Gi.includes(i.type)||i.unsubscribeDependents([{entity:this,field:"implements"}])}),this}subscribeToDependencies(){return this.implements.forEach(i=>{Gi.includes(i.type)||i.subscribeDependents([{entity:this,field:"implements"}])}),this.extends.forEach(i=>{Gi.includes(i.type)||i.subscribeDependents([{entity:this,field:"extends"}])}),this}increaseVersion(i){if(i&&!N(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&N(i).isSame(N(this.createdAt))?this:(this.previousVersion=this.version,this.version=P.UUID.uuid(),this.createdAt=N(i).toISOString()||N().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new Vt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.properties=[...this.properties],i.methods=[...this.methods],i.abstractMethods=[...this.abstractMethods],i.extends=[...this.extends],i.implements=[...this.implements],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],l=[],p=[],t=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),l.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}async restoreVersion(i){var v;const a=[],l=[],p=[],t=[];if(this.version===i)return{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this};if(!this.knownVersions){const b=new Map;for(const[w,A]of this.knownVersions||new Map){if(b.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[V,L]of A.knownVersions)b.set(V,L);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const b=await this.APILoadVersion({},i);if(!b)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Vt(b,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.properties=y.properties,this.methods=y.methods,this.abstractMethods=y.abstractMethods,this.extends=y.extends,this.implements=y.implements,this.parent=y.parent,{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const l=W(i.parent),p=this.project.get(l),t=this.parent;if(t&&t.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return i.extends.forEach(l=>{const p=W(l),t=this.project.get(p);t&&this.addExtension(t)}),i.implements.forEach(l=>{const p=W(l),t=this.project.get(p);t&&this.addImplementation(t)}),this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],l=[],p=[];if(this.initialData.parent){const t=W(this.initialData.parent),y=this.project.get(t);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${t}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.extends.forEach(t=>{const y=W(t),v=this.project.get(y);v&&(this.addExtension(v),v.type!==f.BuiltInBaseEntity&&i.push(v))}),this.initialData.implements.forEach(t=>{const y=W(t),v=this.project.get(y);v&&(this.addImplementation(v),v.type!==f.BuiltInBaseEntity&&i.push(v))}),{updated:R(i),added:R(a),removed:R(l),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],l=[],p=[],t=[];this.initialized=!0;const{updated:y,added:v,removed:b,affected:w}=this.syncImplementationProperties(i);a.push(...y),l.push(...v),p.push(...b),t.push(...w);const{updated:A,added:V,removed:L,affected:j}=this.addExtendedProperties(i);a.push(...A),l.push(...V),p.push(...L),t.push(...j);const{updated:k,added:S,removed:H}=this.removeUnrecognizedProperties(i);a.push(...k),l.push(...S),p.push(...H);const{updated:ie,added:te,removed:pe,affected:ne}=this.syncImplementationMethods(i);a.push(...ie),l.push(...te),p.push(...pe),t.push(...ne);const{updated:ve,added:J,removed:ae,affected:ce}=this.addExtendedMethods(i);a.push(...ve),l.push(...J),p.push(...ae),t.push(...ce);const{updated:Y,added:ue,removed:Ee}=this.removeUnrecognizedMethods(i);return a.push(...Y),l.push(...ue),p.push(...Ee),this.addSuggestions(),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}addSelfToProject(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-self-to-project"))){const a=[this],l=[],p=[],t=[];if(this.parent.type===f.DataType){const y=this.parent;y.entity=this,a.push(y)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}setParent(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"set-parent"))){var l;return((l=this.parent)==null?void 0:l.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,K.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}addExtension(i){return this.extends.includes(i)||this.extends.push(i),this}removeExtension(i){return this.extends=this.extends.filter(a=>a.id!==i.id),this}addImplementation(i){return this.implements.includes(i)||this.implements.push(i),this}removeImplementation(i){return this.implements=this.implements.filter(a=>a.id!==i.id),this}removeProperty(i){return this.properties=this.properties.filter(a=>a.id!==i.id),this}addMethod(i){return this.methods.includes(i)||(this.methods.push(i),this.suggestedMethods=this.suggestedMethods.filter(a=>a.name!==i.name)),this}removeMethod(i){return this.methods=this.methods.filter(a=>a.id!==i.id),this}addProperty(i){return this.properties.includes(i)||(this.properties.push(i),this.suggestedProperties=this.suggestedProperties.filter(a=>a.name!==i.name)),this}addSuggestedProperty(i){return this.suggestedProperties.includes(i)||this.suggestedProperties.push(i),this}addSuggestedMethod(i){return this.suggestedMethods.includes(i)||this.suggestedMethods.push(i),this}removeSuggestedProperty(i){return this.suggestedProperties=this.suggestedProperties.filter(a=>a.id!==i.id),this}removeSuggestedMethod(i){return this.suggestedMethods=this.suggestedMethods.filter(a=>a.id!==i.id),this}addAbstractMethod(i){return this.abstractMethods.includes(i)||this.abstractMethods.push(i),this}removeAbstractMethod(i){return this.abstractMethods=this.abstractMethods.filter(a=>a.id!==i.id),this}initChildren(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.properties=this.initialData.properties.map(a=>{const l=ee(a,this.project);return l.setParent(this,null),l.initChildren(i),l}),this.methods=this.initialData.methods.map(a=>{const l=ee(a,this.project);return l.setParent(this,null),l.initChildren(i),l}),this.abstractMethods=this.initialData.abstractMethods.map(a=>{const l=ee(a,this.project);return l.setParent(this,null),l.initChildren(i),l}),this.extends=this.initialData.extends.map(a=>ee(a,this.project)),this.implements=this.initialData.implements.map(a=>ee(a,this.project)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}removeUnrecognizedProperties(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-unrecognized-properties"))){const a=[],l=[],p=[],t=[];let y=[...this.properties];y=y.filter(b=>b.parent.id===this.id),y=y.filter(b=>!b.isExtendedProperty);const v=this.implementedPropertiesFromOriginalParents;return y=y.filter(b=>this.interactive&&!b.implements?!1:!v.find(w=>{var A;return w.id===((A=b.implements)==null?void 0:A.id)})),y.forEach(b=>{const w=b.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-properties",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}removeUnrecognizedMethods(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-unrecognized-methods"))){const a=[],l=[],p=[],t=[];let y=[...this.methods];y=y.filter(b=>b.parent.id===this.id),y=y.filter(b=>!b.isExtendedMethod);const v=this.implementedMethodsFromOriginalParents;return y=y.filter(b=>this.interactive&&!b.implements?!1:!v.find(w=>{var A;return w.id===((A=b.implements)==null?void 0:A.id)})),y.forEach(b=>{const w=b.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-methods",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}syncImplementationMethods(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"sync-implementation-methods"))){const a=[],l=[],p=[],t=[],y=this.methods,v=this.implementedMethodsFromOriginalParents,b=[...this.allBaseMethodsFromExtendedAndImplementedEntities,...y];return v.filter(A=>!b.find(L=>{var j;return((j=L.implements)==null?void 0:j.id)===A.id})).forEach(A=>{if(this.methods.find(k=>{var S;return((S=k.implements)==null?void 0:S.id)===A.id}))return;const L=this.methods.find(k=>{var pe,ne;if(k.name===A.name&&!k.implements)return!0;const S=zi(this,Ce.CRON_JOB),H=zi(this,Ce.HTTP_ENDPOINT),ie=((pe=k.implements)==null?void 0:pe.id)===me["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id,te=((ne=k.implements)==null?void 0:ne.id)===me["built-in-base-entity"].BUILT_IN_CRON_JOB_ENTITY.methods.handler.id;return!!(S&&!te&&!H&&ie||H&&!ie&&!S&&te)});if(L&&L.type===f.FunctionDeclaration){L.setImplements(A),L.metaSync({name:A.name},i),i==null||i.add(L,K.Updated),i==null||i.add(this,K.Updated);return}const j=A.implementAsFunctionDeclaration(i,this);l.push(j),i==null||i.add(j,K.Added),this.addMethod(j)}),i==null||i.attemptAutoclose("sync-implementation-methods",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}syncImplementationProperties(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"sync-implementation-properties"))){const a=[],l=[],p=[],t=[],y=this.properties,v=this.implementedPropertiesFromOriginalParents,b=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...y];return v.filter(A=>!b.find(L=>{var j;return((j=L.implements)==null?void 0:j.id)===A.id})).forEach(A=>{if(this.properties.find(k=>{var S;return((S=k.implements)==null?void 0:S.id)===A.id}))return;const L=this.properties.find(k=>k.name===A.name&&!!k.abstract&&!k.implements);if(L){L.setImplements(A,i),L.metaSync({abstract:!1},i),L.afterAllChildrenInitialized(i);return}const j=A.implement(this,i,P.UUID.uuid());l.push(j),i==null||i.add(j,K.Added)}),i==null||i.attemptAutoclose("sync-implementation-properties",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}addExtendedMethods(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-extended-methods"))){const a=[],l=[],p=[],t=[],y=this.methods,b=this.extendedMethodsFromOriginalParents.filter(A=>A.type===f.FunctionDeclaration),w=new Set(y.filter(A=>{var V;return!!((V=A.extends)!=null&&V.id)}).map(A=>A.extends.id));return b.forEach(A=>{if(w.has(A.id))return;w.add(A.id);const V=A.clone(i,this,P.UUID.uuid());V.setExtends(A,i),V.initChildren(i),l.push(V),i==null||i.add(V,K.Added),this.addMethod(V)}),i==null||i.attemptAutoclose("add-extended-methods",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}addExtendedProperties(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"add-extended-properties"))){const a=[],l=[],p=[],t=[],y=this.properties,v=this.extendedPropertiesFromOriginalParents,b=v.filter(A=>v.find(L=>{var j;return((j=L.implements)==null?void 0:j.id)===A.id})?!1:!A.abstract),w=new Set(y.filter(A=>{var V;return!!((V=A.extends)!=null&&V.id)}).map(A=>A.extends.id));return b.forEach(A=>{if(w.has(A.id))return;w.add(A.id);const V=A.clone(i,this,P.UUID.uuid());V.setExtends(A,i),V.initChildren(i),l.push(V),i==null||i.add(V,K.Added),this.addProperty(V)}),i==null||i.attemptAutoclose("add-extended-properties",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}addSuggestions(){return this.implements.forEach(i=>{Q6(this,i).forEach(p=>{const t=p.toJSON();t.id=`_suggestion--parent--${this.id}--${p.id}`;const y=ee(t,this.project);y.suggestion=!0,y.setParent(this,null),y.initChildren(null),this.addSuggestedProperty(y)}),eF(this,i).forEach(p=>{const t=`_suggestion--parent--${this.id}--${p.id}`,y=p.implementAsFunctionDeclaration(null,this,t),v=ee(y,this.project);if(v.suggestion=!0,v.setParent(this,null),v.initChildren(null),this.methods=this.methods.filter(b=>b.id!==t),v.inputs.forEach(b=>{b.suggestion=!0}),v.returnStatements.length){const b=v.returnStatements[0];b.suggestion=!0,b.outputs.forEach(w=>{w.suggestion=!0})}this.addSuggestedMethod(v)})}),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"meta-sync"))){const l=br(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.codeName=i.codeName!==void 0?i.codeName:p.codeName,this.description=i.description!==void 0?i.description:p.description,this.x=i.x||p.x,this.y=i.y||p.y,this.static=i.static!==void 0?i.static:this.static,this.abstract=i.abstract!==void 0?i.abstract:this.abstract,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,K.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,K.Added):l&&(a==null||a.add(this,K.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ye,...a){return await Vt.repository.APILoad(this.id,...a),this}async APICreate(i=ye,...a){return await Vt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ye,...a){return await Vt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ye,...a){return await Vt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ye,...a){return await Vt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ye,a,...l){return await Vt.repository.APILoadVersion(this.id,a,...l)}removeFromParent(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-from-parent"))){const a=[],l=[],p=[],t=[];if(this.parent.type===f.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===f.DataType&&this.parent.entity&&this.parent.entity.id===this.id){const y=this.parent.setEntity(null,i);a.push(y)}return i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(l),affected:R(t),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"remove-entity"))){const l=[],p=[],t=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:b,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);l.push(...b),p.push(...w),t.push(...A)}),this.properties.forEach(v=>{const{updated:b,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...b),p.push(...w)}),this.methods.forEach(v=>{const{updated:b,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...b),p.push(...w)}),this.abstractMethods.forEach(v=>{const{updated:b,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...b),p.push(...w)}),this.suggestedProperties.forEach(v=>{const{updated:b,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...b),p.push(...w)}),this.suggestedMethods.forEach(v=>{const{updated:b,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...b),p.push(...w)}),!i){const v=this.removeFromParent(a);t.push(...v.added),l.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(t),updated:R(l),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"restore-entity"))){const a=[],l=[],p=[],t=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:b,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);l.push(...v),p.push(...b),a.push(...w)}),this.properties.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.methods.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.abstractMethods.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.suggestedProperties.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.suggestedMethods.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(l),removed:R(p),affected:R(t),self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.extends.flatMap(l=>l.toFlat(i)),...this.implements.flatMap(l=>l.toFlat(i)),...this.properties.flatMap(l=>l.toFlat(i)),...this.methods.flatMap(l=>l.toFlat(i)),...this.abstractMethods.flatMap(l=>l.toFlat(i)),...this.parent.toFlat(i)])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.extends.flatMap(l=>l.toFlatIds(i)),...this.implements.flatMap(l=>l.toFlatIds(i)),...this.properties.flatMap(l=>l.toFlatIds(i)),...this.methods.flatMap(l=>l.toFlatIds(i)),...this.abstractMethods.flatMap(l=>l.toFlatIds(i)),...this.parent.toFlatIds(i)])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,static:this.static,abstract:this.abstract,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),implements:this.implements.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i)),parent:this.parent.toReference()})}toJSONClone(i=Le){var l,p,t,y,v;let a;return(l=i.seenEntityMaps)!=null&&l.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||wr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(t=i.seenEntities)!=null&&t.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:P.UUID.uuid(),createdAt:i.timestamp||N().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(b=>b.toJSONClone({...i,newId:null})),methods:this.methods.map(b=>b.toJSONClone({...i,newId:null})),abstractMethods:this.abstractMethods.map(b=>b.toJSONClone({...i,newId:null})),implements:this.implements.map(b=>b.type===f.BuiltInBaseEntity?b.toJSON():b.toJSONClone({...i,newId:null})),extends:this.extends.map(b=>b.type===f.BuiltInBaseEntity?b.toJSON():b.toJSONClone({...i,newId:null})),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=Le){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+P.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=Le){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,codeName:this.codeName,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(p=>p.toReference(i)),methods:this.methods.map(p=>p.toReference(i)),abstractMethods:this.abstractMethods.map(p=>p.toReference(i)),implements:this.implements.map(p=>p.toReference(i)),extends:this.extends.map(p=>p.toReference(i)),parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(l=>l.toFlatJSON(i)),...this.methods.flatMap(l=>l.toFlatJSON(i)),...this.abstractMethods.flatMap(l=>l.toFlatJSON(i)),...this.implements.flatMap(l=>l.toFlatJSON(i)),...this.extends.flatMap(l=>l.toFlatJSON(i)),...this.parent.toFlatJSON(i)])}toGenerationTarget(){const i=this.parent.type===f.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,static:this.static,abstract:this.abstract,extends:this.extends.map(a=>a.id),implements:this.implements.map(a=>a.id),parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(l=>l.toFlatGenerationTarget(i)),...this.methods.flatMap(l=>l.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(l=>l.toFlatGenerationTarget(i)),...this.implements.filter(l=>l.type===f.DefinitionEntity).flatMap(l=>l.toFlatGenerationTarget(i)),...this.implements.filter(l=>l.type===f.DefinitionEntity).flatMap(l=>l.toFlatGenerationTarget(i)),...this.parent.toFlatGenerationTarget(i)])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){return this.errors=X6(this),{success:!0,error:null,data:null}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"clone-entity")),a=null,l=null,p=!0){var k,S,H;let t=Rr(a,this);const y=this.toJSON(),v=l||P.UUID.uuid();y.properties=[],y.methods=[],y.abstractMethods=[];const b=v.split("-id"),w=b[b.length-1||0]||v;y.id=v,y.version=P.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||N().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=St(y,t);a&&A.setParent(a,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,K.Added);const V=(k=this.properties)==null?void 0:k.map(ie=>ie.clone(i,A,P.UUID.uuid(),p));A.properties=V;const L=(S=this.methods)==null?void 0:S.map((ie,te)=>ie.clone(i,A,w+"-method-"+te+"-id",p));A.methods=L;const j=(H=this.abstractMethods)==null?void 0:H.map((ie,te)=>ie.clone(i,A,w+"-abstract-method-"+te+"-id",p));return A.abstractMethods=j,i==null||i.attemptAutoclose("clone-entity",this.id),A}getFunctionDeclaration(i){return this.methods.find(a=>a.id===i)}implement(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"implement-definition-entity")),l){const p=$y(this,i,a,l);return a==null||a.attemptAutoclose("implement-definition-entity",this.id),p}getAllInteractiveMethods(){const i=this.implements.filter(l=>l.type===f.DefinitionEntity||l.type===f.BuiltInBaseEntity&&l.interactive);return R([...this.methods,...this.extends.flatMap(l=>l.getAllInteractiveMethods()),...i.flatMap(l=>l.getAllInteractiveMethods())])}inferFromInputs(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const l=[],p=[],t=[],y=[];if(this.parent.type!==f.DataType||!this.parent.inferred)return a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const v=[];i.forEach(A=>{v.find(L=>re(L,this.project)===re(A,this.project))||v.push(A)});const b=this.properties.filter(A=>!A.dataType);v.forEach(A=>{var H,ie;const V=b.find(te=>re(te,this.project)===re(A,this.project));if(!V)return;const j=ui(A.parent).getMasterInputWithValueWritterFromAllInstances(A),k=Hs(j,a),S=k==null?void 0:k.clone(a,V,P.UUID.uuid(),!0);S&&((H=V.dataType)==null||H.merge(S,a),S.id!==((ie=V.dataType)==null?void 0:ie.id)&&S.remove({ignoreUpstream:!1},a),V.dataType&&(V.dataType.metaSync({inferred:!0,like:!0},a),V.setDataType(V.dataType,a),a==null||a.add(V,K.Affected))),A.setDeclaration(V),a==null||a.add(A,K.Updated)});const w=[];return v.forEach(A=>{if(!A.declaration){w.push(A);return}}),w.length===0?(a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(w.forEach(A=>{var te,pe,ne,ve;const V=this.properties.find(J=>re(J,this.project)===re(A,this.project));if(V){if(A.setDeclaration(V),!V.getDataType(a)){const ae=ui(A.parent).getMasterInputWithValueWritterFromAllInstances(A),ce=Hs(ae),Y=ce==null?void 0:ce.clone(a,V,P.UUID.uuid(),!0);Y&&((te=V.dataType)==null||te.merge(Y,a),Y.id!==((pe=V.dataType)==null?void 0:pe.id)&&Y.remove({ignoreUpstream:!1},a),V.dataType&&(V.dataType.metaSync({inferred:!0,like:!0},a),V.setDataType(V.dataType,a),a==null||a.add(V,K.Affected)))}return}const L={id:P.UUID.uuid(),type:f.Property,version:P.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||N().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,name:re(A,this.project),codeName:A.codeName,description:A.description,defaultValue:null,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,constant:!0,interactive:!0,index:A.index,implements:null,extends:null,dataType:null,parent:this.toReference()},j=ee(L,this.project);j.setParent(this,a),j.initChildren(a),a==null||a.add(j,K.Added);const S=ui(A.parent).getMasterInputWithValueWritterFromAllInstances(A),H=Hs(S),ie=H==null?void 0:H.clone(a,j,P.UUID.uuid(),!0);return ie&&((ne=j.dataType)==null||ne.merge(ie,a),ie.id!==((ve=j.dataType)==null?void 0:ve.id)&&ie.remove({ignoreUpstream:!1},a),j.dataType&&(j.dataType.metaSync({inferred:!0,like:!0},a),j.setDataType(j.dataType,a),a==null||a.add(j,K.Affected))),this.addProperty(j),A.setDeclaration(j),a==null||a.add(A,K.Updated),j}),a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:R(l),updated:R(p),removed:R(t),affected:R(y),self:this})}getRawDefaultValue(){const i={};return this.properties.forEach(a=>{var p;const l=Jr(a.name);i[l]=((p=a.getDefaultValue())==null?void 0:p.value)||null}),i}getActiveRawDefaultValue(){const i={};return this.properties.forEach(a=>{const l=Jr(a.name),p=this.project.requestActiveValue(a);i[l]=(p==null?void 0:p.value)||null}),i}};D(Vt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...l)=>null}),D(Vt,"type",f.DefinitionEntity),D(Vt,"USER_MANAGED_PARENT_TYPES",[f.Project,f.DataType]),D(Vt,"PARENT_TYPES",[...Vt.USER_MANAGED_PARENT_TYPES]),D(Vt,"MUTABLE_BASE_PROPERTIES",["name","codeName","description","static","abstract"]),D(Vt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),D(Vt,"BASE_PROPERTIES",[...Vt.MUTABLE_BASE_PROPERTIES,...Vt.INMUTABLE_BASE_PROPERTIES]),D(Vt,"MUTABLE_META_PROPERTIES",[...Vt.MUTABLE_BASE_PROPERTIES,"x","y"]),D(Vt,"INMUTABLE_META_PROPERTIES",[...Vt.INMUTABLE_BASE_PROPERTIES]),D(Vt,"META_PROPERTIES",[...Vt.MUTABLE_META_PROPERTIES,...Vt.INMUTABLE_META_PROPERTIES]),D(Vt,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),D(Vt,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),D(Vt,"UPSTREAM_PROPERTIES",[...Vt.MUTABLE_UPSTREAM_PROPERTIES,...Vt.INMUTABLE_UPSTREAM_PROPERTIES]),D(Vt,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),D(Vt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),D(Vt,"DOWNSTREAM_PROPERTIES",[...Vt.MUTABLE_DOWNSTREAM_PROPERTIES,...Vt.INMUTABLE_DOWNSTREAM_PROPERTIES]),D(Vt,"PROPERTIES",[...Vt.META_PROPERTIES,...Vt.UPSTREAM_PROPERTIES,...Vt.DOWNSTREAM_PROPERTIES]);let ya=Vt;function P0e(d){const u=Gde(),i=d.toJSON();u.safeParse(i).success;const l=[];return Qt(d.errors,l)}const xp=class xp extends mr{constructor(i,a){super(i);D(this,"initialData");D(this,"id");D(this,"version");D(this,"name");D(this,"description",null);D(this,"type",f.BuiltInBaseEntity);D(this,"abstract",!1);D(this,"static");D(this,"properties",[]);D(this,"methods",[]);D(this,"abstractMethods",[]);D(this,"extends",[]);D(this,"interactive",!1);D(this,"errors",[]);D(this,"project");this.initialData=this.initialData||i,this.project=this.project||a,this.id=this.id||i.id,this.version=this.version||i.version,this.name=this.name||i.name,this.static=this.static||i.static,this.interactive=this.interactive||i.interactive,this.abstract=i.abstract,this.properties=this.initialData.properties.map(l=>{const p=ee(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(l=>{const p=ee(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.abstractMethods=this.initialData.abstractMethods.map(l=>{const p=ee(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.extends=this.initialData.extends.map(l=>ee(l,this.project))}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract);return[...i,...l]},[]))}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...l]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const l=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(t=>!!t.abstract&&!l.find(y=>y.name===t.name));return[...l,...p,...i]},[])])}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(i=ye,...a){return await xp.repository.APILoad(this.id,...a),this}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.properties.flatMap(l=>l.toFlat(i)),...this.methods.flatMap(l=>l.toFlat(i)),...this.abstractMethods.flatMap(l=>l.toFlat(i)),...this.extends.flatMap(l=>l.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.properties.flatMap(l=>l.toFlatIds(i)),...this.methods.flatMap(l=>l.toFlatIds(i)),...this.abstractMethods.flatMap(l=>l.toFlatIds(i)),...this.extends.flatMap(l=>l.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,interactive:this.interactive,abstract:this.abstract,static:this.static,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i))})}toReference(i=Le){return{id:this.id+"--"+P.UUID.uuid()+"--ref",type:f.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(i=Le){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(a=>a.toReference()),methods:this.methods.map(a=>a.toReference()),abstractMethods:this.abstractMethods.map(a=>a.toReference()),extends:this.extends.map(a=>a.toReference())}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(l=>l.toFlatJSON(i)),...this.methods.flatMap(l=>l.toFlatJSON(i)),...this.abstractMethods.flatMap(l=>l.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,interactive:this.interactive,extends:this.extends.map(i=>i.id)}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(l=>l.toFlatGenerationTarget(i)),...this.methods.flatMap(l=>l.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(l=>l.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){const i=P0e(this);return this.errors=i,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}implement(i,a=this.project.addChangeSet(new G(this.project,P.sessionAuthor,N().toISOString(),null,!0,"implement-built-in-base-entity")),l){const p=$y(this,i,a,l);return a==null||a.attemptAutoclose("implement-built-in-base-entity",this.id),p}getAllInteractiveMethods(){const i=[];return this.interactive&&(i.push(...this.methods),this.extends.filter(l=>l.type===f.BuiltInBaseEntity&&l.interactive||l.type===f.PrimitiveEntity).forEach(l=>{l instanceof xp&&i.push(...l.getAllInteractiveMethods())})),R(i)}};D(xp,"repository",{APILoad:async(i,...a)=>null});let On=xp;function V0e(d){const u=Vde(),i=d.toJSON();u.safeParse(i).success;const l=[];return Qt(d.errors,l)}const tm=class tm extends mr{constructor(i,a){super(i);D(this,"initialData");D(this,"id");D(this,"name");D(this,"description",null);D(this,"type",f.PrimitiveEntity);D(this,"static");D(this,"abstract");D(this,"properties",[]);D(this,"methods",[]);D(this,"abstractMethods",[]);D(this,"extends",[]);D(this,"errors",[]);D(this,"project");this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.static=i.static,this.abstract=i.abstract,this.properties=this.initialData.properties.map(l=>{const p=ee(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(l=>{const p=ee(l,this.project);return p.parent=this,p}),this.abstractMethods=this.initialData.abstractMethods.map(l=>{const p=ee(l,this.project);return p.parent=this,p})}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract);return[...i,...l]},[]))}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...l]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const l=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(t=>!!t.abstract&&!l.find(y=>y.name===t.name));return[...l,...p,...i]},[])])}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(i=ye,...a){return await tm.repository.APILoad(this.id,...a),this}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.properties.flatMap(l=>l.toFlat(i)),...this.methods.flatMap(l=>l.toFlat(i)),...this.abstractMethods.flatMap(l=>l.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.properties.flatMap(l=>l.toFlatIds(i)),...this.methods.flatMap(l=>l.toFlatIds(i)),...this.abstractMethods.flatMap(l=>l.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i))})}toReference(i=Le){return{id:this.id+"--"+P.UUID.uuid()+"--ref",type:f.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(i=Le){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(a=>a.toReference()),methods:this.methods.map(a=>a.toReference()),abstractMethods:this.abstractMethods.map(a=>a.toReference()),extends:this.extends.map(a=>a.toReference())}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(l=>l.toFlatJSON(i)),...this.methods.flatMap(l=>l.toFlatJSON(i)),...this.abstractMethods.flatMap(l=>l.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(i=>i.id)}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(l=>l.toFlatGenerationTarget(i)),...this.methods.flatMap(l=>l.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(l=>l.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){const i=V0e(this);return this.errors=i,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const i=[];return i.push(...this.methods),this.extends.filter(l=>l.type===f.BuiltInBaseEntity&&l.interactive||l.type===f.PrimitiveEntity).forEach(l=>{l instanceof On&&i.push(...l.getAllInteractiveMethods())}),R(i)}};D(tm,"repository",{APILoad:async(i,...a)=>null});let Ni=tm;function St(d,u){if(!d)throw new Error("Entity is null");const i=u.get(d.id);switch(d.type){case f.LiteralValue:return i||new Ti(d,u);case f.DefinitionEntity:return i||new ya(d,u);case f.PrimitiveEntity:return i||new Ni(d,u);case f.FunctionDeclaration:return i||new Ba(d,u);case f.GlobalEvent:return i||new ja(d,u);case f.DataType:return i||new Wi(d,u);case f.Property:return i||new da(d,u);case f.FunctionCall:return i||new Ha(d,u);case f.Condition:return i||new xa(d,u);case f.Operation:return i||new Ma(d,u);case f.VariableDeclaration:return i||new Ga(d,u);case f.VariableInstance:return i||new Fa(d,u);case f.OutputMap:return i||new zs(d,u);case f.ReturnDeclaration:return i||new Vi(d,u);case f.ArgumentDeclaration:return i||new ca(d,u);case f.InputMap:return i||new Os(d,u);case f.Project:return i||new P(d);case f.InstalledProject:return i||new ka(d,u);case f.ActionDescriptor:return i||new dt(d,u);case f.ReturnStatement:return i||new Ua(d,u);case f.Loop:return i||new bi(d,u);case f.Search:return i||new Ka(d,u);case f.ValueDescriptor:return i||new Xs(d,u);case f.BuiltInBaseEntity:return i||new On(d,u);case f.InternalCall:return i||new Sa(d,u);case f.ContinueStatement:return i||new ci(d,u);case f.BreakStatement:return i||new qa(d,u);case f.GenericReference:return u.get(d.entityId);default:throw new Error("Invalid entity type: "+d.type)}}function ee(d,u){if(!d)throw new Error("Entity is null");const i=St(d,u);return i.subscribe(),i}function N0e(d,u){if(!d)throw new Error("Entity is null");switch(d.type){case f.LiteralValue:return Ti.fromGenerationTarget(d,u);case f.DefinitionEntity:return ya.fromGenerationTarget(d,u);case f.FunctionDeclaration:return Ba.fromGenerationTarget(d,u);case f.GlobalEvent:return ja.fromGenerationTarget(d,u);case f.DataType:return Wi.fromGenerationTarget(d,u);case f.Property:return da.fromGenerationTarget(d,u);case f.FunctionCall:return Ha.fromGenerationTarget(d,u);case f.Condition:return xa.fromGenerationTarget(d,u);case f.Operation:return Ma.fromGenerationTarget(d,u);case f.VariableDeclaration:return Ga.fromGenerationTarget(d,u);case f.VariableInstance:return Fa.fromGenerationTarget(d,u);case f.OutputMap:return zs.fromGenerationTarget(d,u);case f.ReturnDeclaration:return Vi.fromGenerationTarget(d,u);case f.ArgumentDeclaration:return ca.fromGenerationTarget(d,u);case f.InputMap:return Os.fromGenerationTarget(d,u);case f.InstalledProject:return ka.fromGenerationTarget(d,u);case f.ReturnStatement:return Ua.fromGenerationTarget(d,u);case f.Loop:return bi.fromGenerationTarget(d,u);case f.Search:return Ka.fromGenerationTarget(d,u);case f.ActionDescriptor:return dt.fromGenerationTarget(d,u);case f.ValueDescriptor:return Xs.fromGenerationTarget(d,u);case f.InternalCall:return Sa.fromGenerationTarget(d,u);case f.ContinueStatement:return ci.fromGenerationTarget(d,u);case f.BreakStatement:return qa.fromGenerationTarget(d,u);default:throw new Error("Invalid entity type: "+d.type)}}const Le={seenEntityMaps:new Map,seenEntities:new Set,timestamp:N().toISOString()};class tF{constructor(){D(this,"initialData")}}const ye={cascade:!1},rF={APILoad:async(d,...u)=>null},L0e={APICreate:async(d,...u)=>d,APIUpdate:async(d,...u)=>d,APIDelete:async(d,...u)=>d,APIClone:async(d,...u)=>{},APILoadVersion:async(d,u,...i)=>null,...rF};class B0e{}class M0e extends tF{}class U0e{}class j0e{}class x0e{}class hA{}class F0e extends hA{}class G0e extends hA{}class K0e{}class Op{static initReadsValue(u){if(u.initialData.readsValue&&u.initialData.readsValue.type!==f.GenericReference)u.readsValue=ee(u.initialData.readsValue,u.project);else if(u.initialData.readsValue&&u.initialData.readsValue.type===f.GenericReference){const i=Ri(u.initialData.readsValue,u.project);i&&(u.readsValue=i)}if(u.readsValue){if(nt.includes(u.readsValue.type)){let i=u.parent;Ir.includes(i.type)||(i=i.parent);const a=u.type===f.InputMap&&u.parent.type===f.Loop;a&&(i=u.parent.parent),u.readsValue.setParent(i,null),u.readsValue.initChildren(null),i&&i.type!==f.Project&&!a&&i.detachedChildren.includes(u)?i.replaceDetachedChild(u,u.readsValue):i&&i.type!==f.Project&&!a&&i.subscribeDetachedChild(u.readsValue)}u.readsValue.addValueReader(u,null)}return u.readsValue}}class Cp{static initWritesValues(u,i){const a=u.initialData.writesValues.reduce((p,t)=>{if(t.type===f.GenericReference||u.writesValues.some(v=>v.id===t.id))return p;const y=ee(t,u.project);return y.setValueWriter(u,null),nt.includes(y.type)&&(y.setParent(i,null),y.initChildren(null)),[...p,y]},[]),l=[...u.writesValues];return u.writesValues=R([...l,...a]),u.writesValues}}class k0e{}var S0e=Object.defineProperty,q0e=(d,u,i)=>u in d?S0e(d,u,{enumerable:!0,configurable:!0,writable:!0,value:i}):d[u]=i,Yo=(d,u,i)=>(q0e(d,typeof u!="symbol"?u+"":u,i),i);let Z0e=class{constructor(u){Yo(this,"eventName"),Yo(this,"callbacks",[]),this.eventName=u,this.on=this.on.bind(this),this.off=this.off.bind(this),this.destroy=this.destroy.bind(this)}on(u){if(typeof u!="function")throw new Error("Event callback must be a function");this.callbacks.includes(u)||this.callbacks.push(u)}off(u){if(typeof u!="function")throw new Error("Event callback must be a function");this.callbacks=this.callbacks.filter(i=>i!==u)}destroy(){this.callbacks=[]}},yA=class{constructor(){Yo(this,"subscribedEvents",{}),Yo(this,"on",this._on),Yo(this,"emit",this._emit),Yo(this,"off",this._off),Yo(this,"destroy",this._destroy),this.getEvent=this.getEvent.bind(this),this._on=this._on.bind(this),this._emit=this._emit.bind(this),this._off=this._off.bind(this),this._destroy=this._destroy.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.off=this.off.bind(this),this.destroy=this.destroy.bind(this)}getEvent(u){return this.subscribedEvents[u]||(this.subscribedEvents[u]=new Z0e(u)),this.subscribedEvents[u]}_on(u,i){this.getEvent(u).on(i)}_emit(u,...i){const a=this.getEvent(u);a&&a.callbacks.forEach(l=>{l.apply(null,i)})}_off(u,i){const a=this.getEvent(u);a&&(i?a.off(i):(a.destroy(),delete this.subscribedEvents[u]))}_destroy(){Object.keys(this.subscribedEvents).forEach(u=>{this._off(u)}),this.subscribedEvents={}}};var vr=(d=>(d.PROJECT_INITIALIZED="project-initialized",d.CHANGE_SET_CLOSED="change-set-closed",d.EXPLICIT_DEFINITION_ENTITY_ADDED="explicit-definition-entity-added",d.EXPLICIT_DEFINITION_ENTITY_REMOVED="explicit-definition-entity-removed",d.EXPLICIT_DEFINITION_ENTITY_UPDATED="explicit-definition-entity-updated",d.PERSISTED_DEFINITION_ENTITY_ADDED="persisted-definition-entity-added",d.PERSISTED_DEFINITION_ENTITY_REMOVED="persisted-definition-entity-removed",d.PERSISTED_DEFINITION_ENTITY_UPDATED="persisted-definition-entity-updated",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED="relational-database-definition-entity-added",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED="relational-database-definition-entity-removed",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED="relational-database-definition-entity-updated",d))(vr||{});const He=class He extends mr{constructor(i){super(i);D(this,"initialData");D(this,"id");D(this,"type",f.Project);D(this,"name",null);D(this,"description",null);D(this,"x");D(this,"y");D(this,"entities",[]);D(this,"projects",[]);D(this,"functions",[]);D(this,"events",[]);D(this,"variableDeclarations",[]);D(this,"variableInstances",[]);D(this,"conditions",[]);D(this,"operations",[]);D(this,"functionCalls",[]);D(this,"loops",[]);D(this,"searches",[]);D(this,"primitives",[]);D(this,"builtInBaseEntities",[]);D(this,"operationDeclarations",[]);D(this,"globalEventActionDescriptors",[]);D(this,"loopDeclarations",[]);D(this,"loopDeclarationsBodies",[]);D(this,"conditionDeclarations",[]);D(this,"valueDescriptors",[]);D(this,"dataTypes",[]);D(this,"project");D(this,"instances",{});D(this,"builtInInstances",{});D(this,"deletedInstances",{});D(this,"errors",[]);D(this,"references",[]);D(this,"history",[]);D(this,"undoableStackValueIndex",-1);D(this,"detachedDependents",{});D(this,"knownVersions",null);D(this,"activeVersion",!1);D(this,"initialized",!1);D(this,"startedInitialization",!1);D(this,"_eventsHub",new yA);D(this,"onCloseChangeSetCallback",null);D(this,"onAddChangeSetCallback",null);D(this,"onDiscardChangeSetCallback",null);D(this,"onRequestActiveValueCallback",null);if(this.initialData=i,this.id=i.id,this.name=i.name,this.description=i.description,this.x=0,this.y=0,this.instances[this.id]=this,!He.UUID)throw new Error("UUID module is already initialized. Please inject a valid UUID module.")}static get UUID(){return this._UUIDModule}static injectUUIDModule(i){this._UUIDModule=i}static new(i=null){return{id:He.UUID.uuid(),version:He.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||N().toISOString(),author:(i==null?void 0:i.author)||He.sessionAuthor,previousVersion:null,deleted:!1,type:f.Project,name:"",description:"",entities:[],functions:[],events:[],projects:[],variableDeclarations:[],variableInstances:[],conditions:[],operations:[],functionCalls:[],loops:[],searches:[]}}static validateGenerationTarget(i,a){let l=JSON.parse(JSON.stringify(i));const p=[];return p.push(...Tr(l)),{errors:p,modifiedData:l}}get off(){return this._eventsHub.off}get on(){return this._eventsHub.on}get emit(){return this._eventsHub.emit}async closePendingChangeSets(){const i=this.history.find(a=>a.dirty&&!a.open);i&&await this.closeChangeSet(i)}onRequestActiveValue(i){this.onRequestActiveValueCallback=i}async onCloseChangeSet(i){this.onCloseChangeSetCallback=i,await this.closePendingChangeSets()}onAddChangeSet(i){this.onAddChangeSetCallback=i}onDiscardChangeSet(i){this.onDiscardChangeSetCallback=i}async closeChangeSet(i){const a=this.history.findIndex(t=>t.id===i.id),l=this.history.slice(0,a),p=l[l.length-1];if(!(p!=null&&p.dirty)&&this.onCloseChangeSetCallback){(await this.onCloseChangeSetCallback(i)).success&&(i.dirty=!1,this.emit("change-set-closed",i),this.closePendingChangeSets());return}}toLatestChangeSet(i,a,l,p=!1,t="here-this"){if(!this.history.length)return new G(this,i,a,l,p,t);const y=this.history[this.history.length-1];return y.open?y:this.addChangeSet(new G(this,i,a,l,p,t))}addChangeSet(i){var p,t;if(!this.history.length)return this.undoableStackValueIndex=vb(this.undoableStackValueIndex,this.history,i),(p=this.onAddChangeSetCallback)==null||p.call(this,i,this.undoableStackValueIndex),i;const a=this.history.find(y=>y.id===(i==null?void 0:i.id));if(a)return a;const l=this.history.find(y=>y.open);if(l)throw console.warn("Previous still open: ",l),console.warn("New change set: ",i),new Error(`There is already an open change-set with id '${l.id}'.`);return this.undoableStackValueIndex=vb(this.undoableStackValueIndex,this.history,i),(t=this.onAddChangeSetCallback)==null||t.call(this,i,this.undoableStackValueIndex),i}discardChangeSet(i){var l;const a=this.history.findIndex(p=>p.id===(i==null?void 0:i.id));return a!==-1&&(this.history.splice(a,1),this.undoableStackValueIndex=this.undoableStackValueIndex-1,(l=this.onDiscardChangeSetCallback)==null||l.call(this,i)),this}async inject(...i){return await Promise.all(i.map(a=>new Promise(async l=>{await a.init(this),l(null)}))),this}validateGeneratedUpdate(i){return{errors:[],modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new G(this.project,He.sessionAuthor,N().toISOString(),this,!0,"sync-dependents"))){const a=[],l=[],p=[],t=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),l.push(...v.added),p.push(...v.removed),t.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}onDetachedDependencyRemoved(i,a,l){const p=[],t=[],y=[],v=[];return{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,l){const p=[],t=[],y=[],v=[];return{updated:R(p),added:R(t),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!N(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&N(i).isSame(N(this.createdAt))?this:(this.previousVersion=this.version,this.version=He.UUID.uuid(),this.createdAt=N(i).toISOString()||N().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new He(this);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.entities=[...this.entities],i.projects=[...this.projects],i.functions=[...this.functions],i.events=[...this.events],i.variableDeclarations=[...this.variableDeclarations],i.variableInstances=[...this.variableInstances],i.conditions=[...this.conditions],i.operations=[...this.operations],i.functionCalls=[...this.functionCalls],i.loops=[...this.loops],i.searches=[...this.searches],this}recursiveCaptureUpstreamVersions(i){const a=[],l=[],p=[],t=[];return{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}async restoreVersion(i){var v;const a=[],l=[],p=[],t=[];if(this.version===i)return{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this};if(!this.knownVersions){const b=new Map;for(const[w,A]of this.knownVersions||new Map){if(b.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[V,L]of A.knownVersions)b.set(V,L);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const b=await this.APILoadVersion({},i);if(!b)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new He(b)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.entities=y.entities,this.projects=y.projects,this.functions=y.functions,this.events=y.events,this.variableDeclarations=y.variableDeclarations,this.variableInstances=y.variableInstances,this.conditions=y.conditions,this.operations=y.operations,this.functionCalls=y.functionCalls,this.loops=y.loops,this.searches=y.searches,{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new G(this.project,He.sessionAuthor,N().toISOString(),this,!0,"update-with-shallow-transfer"))){return this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],l=[],p=[];return{updated:R(i),added:R(a),removed:R(l),affected:R(p),self:this}}afterAllChildrenInitialized(i=null){const a=[],l=[],p=[],t=[];return this.initialized||(this.initialized=!0,this.emit("project-initialized",this,i)),this.validate(),this.captureVersion(),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}addSelfToProject(i){const a=[],l=[],p=[],t=[];return this.subscribe(),this.subscribeToDependencies(),{updated:R(a),added:R(l),removed:R(p),affected:R(t),self:this}}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(i){return this.operationDeclarations.includes(i)}isGlobalEventActionDescriptor(i){return this.globalEventActionDescriptors.includes(i)}isLoopDeclaration(i){return this.loopDeclarations.includes(i)}isConditionDeclaration(i){return this.conditionDeclarations.includes(i)}initChildren(i=this.project.addChangeSet(new G(this.project,He.sessionAuthor,N().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.projects=this.initialData.projects.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.variableDeclarations=this.initialData.variableDeclarations.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.variableInstances=this.initialData.variableInstances.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.conditions=this.initialData.conditions.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.operations=this.initialData.operations.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.functions=this.initialData.functions.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.events=this.initialData.events.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.functionCalls=this.initialData.functionCalls.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.loops=this.initialData.loops.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.searches=this.initialData.searches.map(a=>{const l=ee(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribeInstance(i){return(!this.instances[i.id]||this.instances[i.id]!==i)&&(this.instances[i.id]=i),this}subscribeDeletedInstance(i){return(!this.deletedInstances[i.id]||this.deletedInstances[i.id]!==i)&&(this.deletedInstances[i.id]=i),this}subscribeBuiltInInstance(i){return(!this.builtInInstances[i.id]||this.builtInInstances[i.id]!==i)&&(this.builtInInstances[i.id]=i),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(i){return delete this.instances[i.id],this}unsubscribeDeletedInstance(i){return delete this.deletedInstances[i.id],this}findSubscribedBuiltInInstance(i){return this.builtInInstances[i.id]||null}get(i){return this.instances[i]||this.builtInInstances[i]||null}getDeleted(i){return this.deletedInstances[i]||null}getManaged(i){return this.getBuiltIn(i)?null:this.instances[i]||null}getBuiltIn(i){return this.builtInInstances[i]||null}findSubscribedInstanceFromReference(i){return this.instances[i.entityId]||null}findSubscribedBuiltInInstanceFromReference(i){return this.builtInInstances[i.entityId]||null}metaSync(i,a=this.project.addChangeSet(new G(this.project,He.sessionAuthor,N().toISOString(),this,!0,"meta-sync"))){const l=br(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.description=i.description!==void 0?i.description:p.description,this.x=i.x||p.x,this.y=i.y||p.y,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,K.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,K.Added):l&&(a==null||a.add(this,K.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ye,...a){return await He.repository.APILoad(this.id,...a),this}async APICreate(i=ye,...a){return await He.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ye,...a){return await He.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ye,...a){return await He.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ye,...a){return await He.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ye,a,...l){return await He.repository.APILoadVersion(this.id,a,...l)}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new G(this.project,He.sessionAuthor,N().toISOString(),this,!0,"remove-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},i=this.project.addChangeSet(new G(this.project,He.sessionAuthor,N().toISOString(),this,!0,"restore-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const i=new Set;return[...this.primitives.flatMap(a=>a.toFlatIds(i)),...this.builtInBaseEntities.flatMap(a=>a.toFlatIds(i)),...this.operationDeclarations.flatMap(a=>a.toFlatIds(i)),...this.globalEventActionDescriptors.flatMap(a=>a.toFlatIds(i)),...this.loopDeclarations.flatMap(a=>a.toFlatIds(i)),...this.conditionDeclarations.flatMap(a=>a.toFlatIds(i)),...this.valueDescriptors.flatMap(a=>a.toFlatIds(i)),...this.dataTypes.flatMap(a=>a.toFlatIds(i))]}getAllBuiltIn(){const i=new Set;return[...this.primitives.flatMap(a=>a.toFlat(i)),...this.builtInBaseEntities.flatMap(a=>a.toFlat(i)),...this.operationDeclarations.flatMap(a=>a.toFlat(i)),...this.globalEventActionDescriptors.flatMap(a=>a.toFlat(i)),...this.loopDeclarations.flatMap(a=>a.toFlat(i)),...this.conditionDeclarations.flatMap(a=>a.toFlat(i)),...this.valueDescriptors.flatMap(a=>a.toFlat(i)),...this.dataTypes.flatMap(a=>a.toFlat(i))]}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.entities.flatMap(l=>l.toFlat(i)),...this.functions.flatMap(l=>l.toFlat(i)),...this.events.flatMap(l=>l.toFlat(i)),...this.projects.flatMap(l=>l.toFlat(i)),...this.variableDeclarations.flatMap(l=>l.toFlat(i)),...this.variableInstances.flatMap(l=>l.toFlat(i)),...this.conditions.flatMap(l=>l.toFlat(i)),...this.operations.flatMap(l=>l.toFlat(i)),...this.functionCalls.flatMap(l=>l.toFlat(i)),...this.loops.flatMap(l=>l.toFlat(i)),...this.searches.flatMap(l=>l.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.entities.flatMap(l=>l.toFlatIds(i)),...this.functions.flatMap(l=>l.toFlatIds(i)),...this.events.flatMap(l=>l.toFlatIds(i)),...this.projects.flatMap(l=>l.toFlatIds(i)),...this.variableDeclarations.flatMap(l=>l.toFlatIds(i)),...this.variableInstances.flatMap(l=>l.toFlatIds(i)),...this.conditions.flatMap(l=>l.toFlatIds(i)),...this.operations.flatMap(l=>l.toFlatIds(i)),...this.functionCalls.flatMap(l=>l.toFlatIds(i)),...this.loops.flatMap(l=>l.toFlatIds(i)),...this.searches.flatMap(l=>l.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(a=>a.toJSON(i)),variableDeclarations:this.variableDeclarations.map(a=>a.toJSON(i)),variableInstances:this.variableInstances.map(a=>a.toJSON(i)),conditions:this.conditions.map(a=>a.toJSON(i)),operations:this.operations.map(a=>a.toJSON(i)),loops:this.loops.map(a=>a.toJSON(i)),searches:this.searches.map(a=>a.toJSON(i)),functions:this.functions.map(a=>a.toJSON(i)),events:this.events.map(a=>a.toJSON(i)),projects:this.projects.map(a=>a.toJSON(i)),functionCalls:this.functionCalls.map(a=>a.toJSON(i))})}toJSONClone(i={uuidStrategy:"uuid"}){const a=new Map,l=new Set,p=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(t=>{if(p.includes(t)){a.set(t,t);return}a.set(t,He.UUID.uuid())}),l.add(this.id),{id:a.get(this.id),version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),projects:this.projects.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),variableDeclarations:this.variableDeclarations.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),variableInstances:this.variableInstances.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),conditions:this.conditions.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),operations:this.operations.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),functions:this.functions.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),events:this.events.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),functionCalls:this.functionCalls.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),loops:this.loops.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),searches:this.searches.map(t=>t.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null}))}}toReference(i=Le){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+He.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=Le){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(p=>p.toReference(i)),functions:this.functions.map(p=>p.toReference(i)),events:this.events.map(p=>p.toReference(i)),projects:this.projects.map(p=>p.toReference(i)),variableDeclarations:this.variableDeclarations.map(p=>p.toReference(i)),variableInstances:this.variableInstances.map(p=>p.toReference(i)),conditions:this.conditions.map(p=>p.toReference(i)),operations:this.operations.map(p=>p.toReference(i)),functionCalls:this.functionCalls.map(p=>p.toReference(i)),loops:this.loops.map(p=>p.toReference(i)),searches:this.searches.map(p=>p.toReference(i))}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(l=>l.toFlatJSON(i)),...this.functions.flatMap(l=>l.toFlatJSON(i)),...this.events.flatMap(l=>l.toFlatJSON(i)),...this.projects.flatMap(l=>l.toFlatJSON(i)),...this.variableDeclarations.flatMap(l=>l.toFlatJSON(i)),...this.variableInstances.flatMap(l=>l.toFlatJSON(i)),...this.conditions.flatMap(l=>l.toFlatJSON(i)),...this.operations.flatMap(l=>l.toFlatJSON(i)),...this.functionCalls.flatMap(l=>l.toFlatJSON(i)),...this.loops.flatMap(l=>l.toFlatJSON(i)),...this.searches.flatMap(l=>l.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[...this.entities.flatMap(l=>l.toFlatGenerationTarget(i)),...this.functions.flatMap(l=>l.toFlatGenerationTarget(i)),...this.events.flatMap(l=>l.toFlatGenerationTarget(i)),...this.projects.flatMap(l=>l.toFlatGenerationTarget(i)),...this.variableDeclarations.flatMap(l=>l.toFlatGenerationTarget(i)),...this.variableInstances.flatMap(l=>l.toFlatGenerationTarget(i)),...this.conditions.flatMap(l=>l.toFlatGenerationTarget(i)),...this.operations.flatMap(l=>l.toFlatGenerationTarget(i)),...this.functionCalls.flatMap(l=>l.toFlatGenerationTarget(i)),...this.loops.flatMap(l=>l.toFlatGenerationTarget(i)),...this.searches.flatMap(l=>l.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.entities.forEach(i=>i.clearErrors()),this.projects.forEach(i=>i.clearErrors()),this.functions.forEach(i=>i.clearErrors()),this.events.forEach(i=>i.clearErrors()),this.variableDeclarations.forEach(i=>i.clearErrors()),this.variableInstances.forEach(i=>i.clearErrors()),this.conditions.forEach(i=>i.clearErrors()),this.operations.forEach(i=>i.clearErrors()),this.functionCalls.forEach(i=>i.clearErrors()),this.loops.forEach(i=>i.clearErrors()),this.searches.forEach(i=>i.clearErrors()),this}validate(){const i=ipe(),a=this.toJSON();return i.safeParse(a),this.validateChildren(),{success:!0,error:null,data:a}}validateChildren(){this.entities.forEach(i=>i.validate()),this.projects.forEach(i=>i.validate()),this.functions.forEach(i=>i.validate()),this.events.forEach(i=>i.validate()),this.variableDeclarations.forEach(i=>i.validate()),this.variableInstances.forEach(i=>i.validate()),this.conditions.forEach(i=>i.validate()),this.operations.forEach(i=>i.validate()),this.functionCalls.forEach(i=>i.validate()),this.loops.forEach(i=>i.validate()),this.searches.forEach(i=>i.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(a=>a.getErrors()),...this.projects.flatMap(a=>a.getErrors()),...this.functions.flatMap(a=>a.getErrors()),...this.events.flatMap(a=>a.getErrors()),...this.variableDeclarations.flatMap(a=>a.getErrors()),...this.variableInstances.flatMap(a=>a.getErrors()),...this.conditions.flatMap(a=>a.getErrors()),...this.operations.flatMap(a=>a.getErrors()),...this.functionCalls.flatMap(a=>a.getErrors()),...this.loops.flatMap(a=>a.getErrors()),...this.searches.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(){return this}getDefinitionEntity(i){return this.entities.find(a=>a.id===i)||null}addDefinitionEntity(i){return this.entities.includes(i)||this.entities.push(i),i}addFunctionDeclaration(i){return this.functions.includes(i)||this.functions.push(i),i}addFunctionCall(i){return this.functionCalls.includes(i)||this.functionCalls.push(i),i}addVariableDeclaration(i){return this.variableDeclarations.includes(i)||this.variableDeclarations.push(i),i}addVariableInstance(i){return this.variableInstances.includes(i)||this.variableInstances.push(i),i}addInstalledProject(i){return this.projects.includes(i)||this.projects.push(i),this}addGlobalEvent(i){return this.events.includes(i)||this.events.push(i),this}addCondition(i){return this.conditions.includes(i)||this.conditions.push(i),this}addOperation(i){return this.operations.includes(i)||this.operations.push(i),this}addLoop(i){return this.loops.includes(i)||this.loops.push(i),this}addSearch(i){return this.searches.includes(i)||this.searches.push(i),this}removeDefinitionEntity(i){const a=this.entities.findIndex(l=>l.id===i.id);if(a>-1){const l=this.entities[a];return this.entities.splice(a,1),l}return null}removeCondition(i){const a=this.conditions.findIndex(l=>l.id===i.id);if(a>-1){const l=this.conditions[a];return this.conditions.splice(a,1),l}return null}removeOperation(i){const a=this.operations.findIndex(l=>l.id===i.id);if(a>-1){const l=this.operations[a];return this.operations.splice(a,1),l}return null}removeLoop(i){const a=this.loops.findIndex(l=>l.id===i.id);if(a>-1){const l=this.loops[a];return this.loops.splice(a,1),l}return null}removeSearch(i){const a=this.searches.findIndex(l=>l.id===i.id);if(a>-1){const l=this.searches[a];return this.searches.splice(a,1),l}return null}removeFunctionCall(i){const a=this.functionCalls.findIndex(l=>l.id===i.id);if(a>-1){const l=this.functionCalls[a];return this.functionCalls.splice(a,1),l}return null}removeVariableInstance(i){const a=this.variableInstances.findIndex(l=>l.id===i.id);if(a>-1){const l=this.variableInstances[a];return this.variableInstances.splice(a,1),l}return null}removeVariableDeclaration(i){const a=this.variableDeclarations.findIndex(l=>l.id===i.id);if(a>-1){const l=this.variableDeclarations[a];return this.variableDeclarations.splice(a,1),l}return null}removeFunctionDeclaration(i){const a=this.functions.findIndex(l=>l.id===i.id);if(a>-1){const l=this.functions[a];return this.functions.splice(a,1),l}return null}removeInstalledProject(i){const a=this.projects.findIndex(l=>l.id===i.id);if(a>-1){const l=this.projects[a];return this.projects.splice(a,1),l}return null}removeGlobalEvent(i){const a=this.events.findIndex(l=>l.id===i.id);if(a>-1){const l=this.events[a];return this.events.splice(a,1),l}return null}removeTopLevelVariableDeclaration(i){if(i.type!==f.VariableDeclaration)return null;const a=this.variableDeclarations.findIndex(l=>l.id===i.id);if(a>-1){const l=this.variableDeclarations[a];return this.variableDeclarations.splice(a,1),l}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(a=>a.methods)]}getTerminationStatements(){return[...this.getEntryPoints().reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.ReturnStatement||t.type===f.ContinueStatement||t.type===f.BreakStatement)]},[])]}getFunctionDeclaration(i){return this.functions.find(a=>a.id===i)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Condition)]},[]),...this.functionCalls.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Condition)]},[]),...this.operations.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Condition)]},[]),...this.loops.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Condition)]},[]),...this.searches.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Operation)]},[]),...this.functionCalls.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Operation)]},[]),...this.conditions.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Operation)]},[]),...this.loops.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Operation)]},[]),...this.searches.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.FunctionCall)]},[]),...this.conditions.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.FunctionCall)]},[]),...this.operations.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.FunctionCall)]},[]),...this.loops.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.FunctionCall)]},[]),...this.searches.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((a,l)=>{const p=Xt(l);return[...a,...p]},[]),...this.functionCalls.reduce((a,l)=>{const p=Xt(l);return[...a,...p]},[]),...this.conditions.reduce((a,l)=>{const p=Xt(l);return[...a,...p]},[]),...this.operations.reduce((a,l)=>{const p=Xt(l);return[...a,...p]},[]),...this.loops.reduce((a,l)=>{const p=Xt(l);return[...a,...p]},[]),...this.searches.reduce((a,l)=>{const p=Xt(l);return[...a,...p]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableInstance);return[...a,...t]},[]),...this.functionCalls.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableInstance);return[...a,...t]},[]),...this.conditions.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableInstance);return[...a,...t]},[]),...this.operations.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableInstance);return[...a,...t]},[]),...this.loops.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableInstance);return[...a,...t]},[]),...this.searches.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableInstance);return[...a,...t]},[])]}getVariableDeclarations(){return R([...this.variableDeclarations,...this.getEntryPoints().reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...t]},[]),...this.functionCalls.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...t]},[]),...this.conditions.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...t]},[]),...this.operations.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...t]},[]),...this.loops.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...t]},[]),...this.searches.reduce((a,l)=>{const t=Xt(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...t]},[])])}getLoops(){return[...this.loops,...this.getEntryPoints().reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Loop)]},[]),...this.functionCalls.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Loop)]},[]),...this.conditions.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Loop)]},[]),...this.operations.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Loop)]},[]),...this.searches.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Loop)]},[])]}getSearches(){return[...this.searches,...this.getEntryPoints().reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Search)]},[]),...this.functionCalls.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Search)]},[]),...this.conditions.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Search)]},[]),...this.operations.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Search)]},[]),...this.loops.reduce((a,l)=>{const p=ft(l);return[...a,...p.filter(t=>t.type===f.Search)]},[])]}attachOrphanReferences(){const i=this.getVariableInstances(),a=this.getVariableDeclarations();return i.forEach(l=>{if(!l.declaration){const p=l.initialData,t=p.declaration.entityId||p.declaration.id,y=a.find(v=>v.id===t);y&&l.setDeclaration(y)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(i=>i.name===Ce.PERSISTED_ENTITY)||null}requestActiveValue(i){var l;const a=(l=this.onRequestActiveValueCallback)==null?void 0:l.call(this,i);return a?a||null:i.getDefaultValue()}undo(){console.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex-1,console.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex+1],a=this.history[this.undoableStackValueIndex];return console.log("Current change set: ",i),console.log("Change set to restore: ",a==null?void 0:a.toJSON()),yb(i||"initial",a||"initial",this)}redo(){console.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex+1,console.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex-1],a=this.history[this.undoableStackValueIndex];return console.log("Current change set: ",i),console.log("Change set to restore: ",a.toJSON()),yb(i||"initial",a||"initial",this)}applyExternalChangeSet(i){const a=i.payload,l=this.addChangeSet(new G(this,i.userAuthor,i.emittedAt,this)),p=a.updated[this.id];if(!p)throw new Error("Project root not found in change set transfer. Cannot apply changes.");const t={...a.added,...a.updated,...a.removed},y=[...Object.keys(a.added),...Object.keys(a.updated),...Object.keys(a.removed)];y.forEach(b=>{var w;if(!t[b]){console.warn(`Entity '${b}' not found in change set transfer. Cannot apply changes.`);const A=(w=this.get(b))==null?void 0:w.toShallowJSON();throw A?console.warn("Entity in project: ",A):console.warn("Entity not in project"),new Error(`Entity '${b}' not found in change set transfer. Cannot apply changes.`)}});const v=new fa(p);return v.flatRecord=t,v.order=y,v.orderEntities(),console.log("All entities: ",v.order.map((b,w)=>`${w+1}: ${t[b].type} - ${b}`).join(`,