@elyx-code/project-logic-tree 0.0.6185 → 0.0.6187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +151 -136
- package/dist/index.umd.cjs +6 -6
- package/dist/tree/state/change-set.d.ts +1 -0
- package/dist/tree/utils/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(y,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(y=typeof globalThis<"u"?globalThis:y||self,n(y["@elyx-code/project-logic-tree"]={}))})(this,function(y){"use strict";var ZJ=Object.defineProperty;var qJ=(y,n,Y)=>n in y?ZJ(y,n,{enumerable:!0,configurable:!0,writable:!0,value:Y}):y[n]=Y;var f=(y,n,Y)=>(qJ(y,typeof n!="symbol"?n+"":n,Y),Y);var n=(i=>(i.DefinitionEntity="definition-entity",i.BuiltInBaseEntity="built-in-base-entity",i.Project="project",i.InstalledProject="installed-project",i.GlobalEvent="global-event",i.DataType="data-type",i.FunctionCall="function-call",i.FunctionDeclaration="function-declaration",i.ActionDescriptor="action-descriptor",i.ValueDescriptor="value-descriptor",i.ArgumentDeclaration="argument-declaration",i.InputMap="input-map",i.ReturnStatement="return-statement",i.BreakStatement="break-statement",i.ContinueStatement="continue-statement",i.ReturnDeclaration="return-declaration",i.OutputMap="output-map",i.PrimitiveEntity="primitive-entity",i.LiteralValue="literal-value",i.Property="property",i.Operation="operation",i.Condition="condition",i.VariableDeclaration="variable-declaration",i.VariableInstance="variable-instance",i.Search="search",i.Loop="loop",i.InternalCall="internal-call",i.GenericReference="generic-reference",i))(n||{}),Y=(i=>(i.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",i.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",i.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",i.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",i.EXECUTION="BUILT_IN_EXECUTION_ENTITY",i.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",i))(Y||{}),yt=(i=>(i.CurrentDateAndTime="current-date-and-time",i.Unique="unique",i.Random="random",i))(yt||{}),g=(i=>(i.EntityTemplate="entity-template",i.ActionDescriptor="action-descriptor",i.String="string",i.Number="number",i.Boolean="boolean",i.Null="null",i.Enum="enum",i.KeyValue="key-value",i.Date="date",i.UUID="uuid",i.File="file",i.Untyped="untyped",i))(g||{}),Xe=(i=>(i.Addition="addition",i.Subtraction="subtraction",i.Multiplication="multiplication",i.Division="division",i.Remainder="remainder",i.Exponentiation="exponentiation",i))(Xe||{}),Ee=(i=>(i.Join="string-join",i.Split="string-split",i.DeleteLast="string-delete-last",i.DeleteFirst="string-delete-first",i.DeleteIndex="string-delete-index",i.AddIndex="string-add-index",i.ReplaceFirst="string-replace-first",i.ReplaceLast="string-replace-last",i.ReplaceIndex="string-replace-index",i.ReplaceSingleMatch="string-replace-single-match",i.ReplaceAllMatches="string-replace-all-matches",i.GetIndex="string-get-index",i.GetFirst="string-get-first",i.GetLast="string-get-last",i.Append="string-append",i.Prepend="string-prepend",i))(Ee||{}),fe=(i=>(i.Join="list-join",i.Split="list-split",i.DeleteLast="list-delete-last",i.DeleteFirst="list-delete-first",i.DeleteIndex="list-delete-index",i.AddIndex="list-add-index",i.ReplaceFirst="list-replace-first",i.ReplaceLast="list-replace-last",i.ReplaceIndex="list-replace-index",i.ReplaceSingleMatch="list-replace-single-match",i.ReplaceAllMatches="list-replace-all-matches",i.GetIndex="list-get-index",i.GetFirst="list-get-first",i.GetLast="list-get-last",i.Append="list-append",i.Prepend="list-prepend",i))(fe||{}),He=(i=>(i.Parallel="parallel",i.Sequential="sequential",i.Wait="wait",i))(He||{}),Ke=(i=>(i.CreateNewInstance="create-new-instance",i.Validate="validate",i))(Ke||{}),Ct=(i=>(i.HttpRequest="base-http-request",i))(Ct||{}),pt=(i=>(i.Equal="equal",i.NotEqual="not-equal",i.And="and",i.Or="or",i.LessThan="less-than",i.MoreThan="more-than",i.LessThanOrEqual="less-than-or-equal",i.MoreThanOrEqual="more-than-or-equal",i))(pt||{}),yr=(i=>(i.Empty="empty",i.NotEmpty="not-empty",i))(yr||{}),X=(i=>(i.ManualFlow="manual-flow-loop",i.Counted="counted-loop",i.List="list-loop",i.ObjectKeys="object-keys-loop",i.ObjectValues="object-values-loop",i.String="string-loop",i))(X||{}),M=(i=>(i.FixedArguments="fixed-arguments",i.FixedReturns="fixed-returns",i.ReturnedError="returned-error",i.OngoingProcessExecution="ongoing-process-execution",i.DynamicArgument="dynamic-argument-types",i.DynamicReturn="dynamic-return-types",i))(M||{}),bt=(i=>(i.OrDataTypeGroup="or-data-type-group",i.AndDataTypeGroup="and-data-type-group",i))(bt||{}),Hr=(i=>(i.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",i))(Hr||{}),or=(i=>(i.DeletePersistedEntity="base-delete-persisted-entity",i.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",i.AbortExecution="base-abort-execution",i))(or||{}),Un=(i=>(i.Error="error",i.Task="task",i.Return="return",i))(Un||{});const hi=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],ht=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],Kc=[...hi,...ht],Qe=[n.VariableDeclaration,n.VariableInstance],LP=[n.FunctionDeclaration,n.Condition,n.Loop,n.Operation,n.FunctionCall,n.Search,n.InternalCall,n.GlobalEvent,n.DefinitionEntity,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableDeclaration,n.VariableInstance,n.LiteralValue,n.ActionDescriptor,n.ValueDescriptor,n.Property,n.DataType,n.InstalledProject,n.ArgumentDeclaration,n.InputMap,n.OutputMap,n.ReturnDeclaration],UP=[n.FunctionDeclaration,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration],Xc=[n.FunctionCall,n.VariableInstance,n.InputMap,n.OutputMap,n.InternalCall],$P=[...Xc,n.Condition,n.Loop,n.Operation,n.Condition],$n=[n.GlobalEvent],nl=[n.Operation,n.FunctionCall,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],Qc=[...nl,n.InternalCall],js=[...nl,n.Condition],nt=[...js,n.InternalCall],at=[n.FunctionDeclaration,...$n],Cr=[...nt,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],al=[...js,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Br=[...nt,...at],ef=[...js,...at],jP=[...Cr,...at],GP=[...al,...at],mt=[...at,n.Loop],st=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],FP=[n.DefinitionEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.LiteralValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Gs=[n.DefinitionEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],tf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],hr=[n.BuiltInBaseEntity,n.PrimitiveEntity],rf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.LiteralValue,n.InternalCall];var Fs=(i=>(i.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",i))(Fs||{});const x={[n.PrimitiveEntity]:{[g.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[g.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[g.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[g.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[g.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"}}}}},[g.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[g.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[g.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[g.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[Y.KEY_VALUE_PARAM]:{id:Y.KEY_VALUE_PARAM},[Y.HTTP_ENDPOINT]:{id:Y.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"}}},[Y.PERSISTED_ENTITY]:{id:Y.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[Y.RELATIONAL_DATABASE]:{id:Y.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"}}},[Y.CRON_JOB]:{id:Y.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[n.Operation]:{[Ee.Join]:{id:Ee.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"}}},[Ee.Split]:{id:Ee.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"}}},[Xe.Addition]:{id:Xe.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"}}},[Xe.Subtraction]:{id:Xe.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"}}},[Ct.HttpRequest]:{id:Ct.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"}}},[Ke.Validate]:{id:Ke.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"}}},[He.Parallel]:{id:He.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"}}}},[n.Loop]:{[X.List]:{id:X.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"}}}},[X.String]:{id:X.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"}}}},[X.ObjectKeys]:{id:X.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"}}}},[X.ObjectValues]:{id:X.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"}}}},[X.ManualFlow]:{id:X.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"}}}},[X.Counted]:{id:X.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"}}}}},[n.Condition]:{[pt.MoreThanOrEqual]:{id:pt.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"}}}},[yr.NotEmpty]:{id:yr.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[Hr.PROJECT_PUBLICATION_COMPLETED]:{id:Hr.PROJECT_PUBLICATION_COMPLETED}}},dr=x[n.PrimitiveEntity],ne={type:n.PrimitiveEntity,id:dr.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Kr={type:n.PrimitiveEntity,id:dr.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},me={type:n.PrimitiveEntity,id:dr.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},sl={type:n.PrimitiveEntity,id:dr.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Rt={type:n.PrimitiveEntity,id:dr.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:g.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},nf={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:dr.enum.properties.options.id,version:"1",entityType:n.Property},af={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:n.Property},sf={like:!1,inferred:!1,id:dr.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ne,asType:!1,parent:af},of={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:n.PrimitiveEntity},df={constant:!1,hidden:!1,required:!0,id:dr.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:dr.enum.properties.options.dataType.defaultValue.id,type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:nf},dataType:sf,description:"Options for the enum. Each option is a text value.",parent:of},Xr={type:n.PrimitiveEntity,id:dr.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:g.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[df],methods:[]},_r={type:n.PrimitiveEntity,id:dr.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Qr={type:n.PrimitiveEntity,id:dr.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:g.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[ne],properties:[],methods:[]},jn={type:n.PrimitiveEntity,id:dr[g.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:g.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},lf=[ne,Kr,me,sl,Rt,Xr,_r,Qr,jn],Mr=x[n.Operation][Xe.Addition],uf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Mr.inputs.firstSummand.id,version:"1",entityType:n.ValueDescriptor},pf={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:uf},cf={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Mr.inputs.secondSummand.id,version:"1",entityType:n.ValueDescriptor},ff={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:cf},yf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Mr.outputs.result.id,version:"1",entityType:n.ValueDescriptor},hf={like:!1,inferred:!1,id:Mr.outputs.result.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:yf},mf={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Xe.Addition,version:"1",entityType:n.ActionDescriptor},ol={id:Mr.inputs.firstSummand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:pf,required:!0,parentRelationType:M.FixedArguments,index:0,parent:mf},vf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Xe.Addition,version:"1",entityType:n.ActionDescriptor},dl={id:Mr.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:ff,required:!0,parentRelationType:M.FixedArguments,index:1,parent:vf},ll={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Xe.Addition,version:"1",entityType:n.ActionDescriptor},ul={parentRelationType:M.FixedReturns,id:Mr.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:hf,required:!0,index:0,parent:ll},Tf={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:Xe.Addition,version:"1",entityType:n.ActionDescriptor},Ef={parentRelationType:M.FixedReturns,id:Mr.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Tf},If={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:Mr.inputs.dynamicSummand.id,version:"1",entityType:n.ValueDescriptor},Af={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:If},bf={parentRelationType:M.DynamicArgument,id:Mr.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Af,required:!0,index:2,parent:ll},xs={id:Xe.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Xe.Addition,inputs:[ol,dl,bf],error:Ef,outputs:[ul],parent:null},gr=x[n.Operation][Xe.Subtraction],Rf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:gr.inputs.minuend.id,version:"1",entityType:n.ValueDescriptor},Df={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:Rf},Of={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:gr.inputs.subtrahend.id,version:"1",entityType:n.ValueDescriptor},Pf={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:Of},wf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:gr.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Vf={like:!1,inferred:!1,id:gr.outputs.result.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:wf},pl={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Xe.Subtraction,version:"1",entityType:n.ActionDescriptor},Cf={id:gr.inputs.minuend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:Df,required:!0,parentRelationType:M.FixedArguments,index:0,parent:pl},Bf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Xe.Subtraction,version:"1",entityType:n.ActionDescriptor},_f={id:gr.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",defaultValue:null,dataType:Pf,required:!0,parentRelationType:M.FixedArguments,index:1,parent:Bf},Mf={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Xe.Subtraction,version:"1",entityType:n.ActionDescriptor},gf={parentRelationType:M.FixedReturns,id:gr.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Vf,required:!0,index:0,parent:Mf},Nf={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:Xe.Subtraction,version:"1",entityType:n.ActionDescriptor},Lf={parentRelationType:M.FixedReturns,id:gr.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Nf},Uf={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:gr.inputs.dynamicSubtrahend.id,version:"1",entityType:n.ValueDescriptor},$f={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:Uf},jf={id:gr.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:$f,required:!0,parentRelationType:M.DynamicArgument,index:2,parent:pl},cl={id:Xe.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Xe.Subtraction,inputs:[Cf,_f,jf],error:Lf,outputs:[gf],parent:null},Gf={[Xe.Addition]:xs,[Xe.Subtraction]:cl},mr=x[n.Operation][Ee.Join],Ff={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:mr.inputs.first.id,version:"1",entityType:n.ValueDescriptor},xf={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Ff},Sf={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:mr.inputs.second.id,version:"1",entityType:n.ValueDescriptor},kf={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Sf},Zf={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:mr.outputs.result.id,version:"1",entityType:n.ValueDescriptor},qf={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Zf},Jf={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ss={id:mr.inputs.first.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:xf,parentRelationType:M.FixedArguments,required:!0,index:1,parent:Jf},Wf={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:mr.inputs.first.id,version:"1",entityType:n.ValueDescriptor},zf={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:mr.inputs.separator.id,version:"1",entityType:n.ValueDescriptor},Yf={type:n.LiteralValue,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:g.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:zf},Hf={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Wf},Kf={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Xf={id:mr.inputs.separator.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:Yf,dataType:Hf,parentRelationType:M.FixedArguments,required:!1,index:0,parent:Kf},Qf={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},ks={id:mr.inputs.second.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:kf,parentRelationType:M.FixedArguments,required:!0,index:2,parent:Qf},ey={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Oa={parentRelationType:M.FixedReturns,id:mr.outputs.result.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:qf,required:!0,index:0,parent:ey},ty={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},ry={parentRelationType:M.FixedReturns,id:mr.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ty},iy={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:mr.inputs.dynamicString.id,version:"1",entityType:n.ValueDescriptor},ny={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:iy},ay={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},sy={id:mr.inputs.dynamicString.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:ny,parentRelationType:M.DynamicArgument,required:!0,index:3,parent:ay},Pa={id:Ee.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Join,description:"Join text values together, to form a single resulting text value.",inputs:[Xf,Ss,ks,sy],outputs:[Oa],error:ry,parent:null},ei=x[n.Operation][Ee.Split],oy={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:ei.inputs.stringValue.id,version:"1",entityType:n.ValueDescriptor},dy={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:oy},ly={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:ei.inputs.indexLocation.id,version:"1",entityType:n.ValueDescriptor},uy={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:ly},py={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:ei.outputs.firstPartResult.id,version:"1",entityType:n.ValueDescriptor},cy={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:py},fy={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:ei.outputs.secondPartResult.id,version:"1",entityType:n.ValueDescriptor},yy={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:fy},hy={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},my={id:ei.inputs.stringValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:dy,parentRelationType:M.FixedArguments,required:!0,index:0,parent:hy},vy={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ty={id:ei.inputs.indexLocation.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:uy,parentRelationType:M.FixedArguments,required:!0,index:1,parent:vy},Ey={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},xP={parentRelationType:M.FixedReturns,id:ei.outputs.secondPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:yy,required:!0,index:1,parent:Ey},Iy={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ay={parentRelationType:M.FixedReturns,id:ei.outputs.firstPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:cy,required:!0,index:0,parent:Iy},by={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ry={parentRelationType:M.FixedReturns,id:ei.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:by},fl={id:Ee.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Split,description:"Split a text into two, at the given index location.",inputs:[my,Ty],outputs:[Ay],error:Ry,parent:null},Dy={[Ee.Join]:Pa,[Ee.Split]:fl};var Oy=(i=>(i.FirstInputList="join-list-first-list-argument-declaration",i.SecondInputList="join-list-second-list-argument-declaration",i))(Oy||{}),Py=(i=>(i.ResultList="join-list-result-list-return-delaration",i.Error="join-list-error-return-delaration",i))(Py||{});const wy={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},Vy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,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:wy},Cy={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},By={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,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:Cy},_y={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},My={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:_y},gy={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:fe.Join,version:"1",entityType:n.ActionDescriptor},Ny={id:"join-list-first-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Vy,parentRelationType:M.FixedArguments,required:!0,index:0,parent:gy},Ly={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:fe.Join,version:"1",entityType:n.ActionDescriptor},Uy={id:"join-list-second-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:By,parentRelationType:M.FixedArguments,required:!0,index:1,parent:Ly},$y={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:fe.Join,version:"1",entityType:n.ActionDescriptor},jy={parentRelationType:M.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:My,required:!0,index:0,parent:$y},Gy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:fe.Join,version:"1",entityType:n.ActionDescriptor},Fy={parentRelationType:M.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Gy},yl={id:fe.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:fe.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[Ny,Uy],error:Fy,outputs:[jy],parent:null};var xy=(i=>(i.InputList="list-to-split-argument-declaration",i.SplitIndex="split-list-index-argument-declaration",i))(xy||{}),Sy=(i=>(i.FirstOutputList="split-list-first-output-list-return-delaration",i.SecondOutputList="split-list-second-output-list-return-delaration",i.Error="split-list-error-return-delaration",i))(Sy||{});const ky={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:n.ValueDescriptor},Zy={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:ky},qy={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:n.ValueDescriptor},Jy={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:qy},hl={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Wy={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:hl},zy={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},Yy={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Zy,parentRelationType:M.FixedArguments,required:!0,index:0,parent:zy},Hy={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},Ky={id:"split-list-index-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Jy,parentRelationType:M.FixedArguments,required:!0,index:1,parent:Hy},Xy={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},Qy={parentRelationType:M.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:Wy,required:!0,index:0,parent:Xy},eh={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:hl},th={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},rh={parentRelationType:M.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:eh,required:!0,index:0,parent:th},ih={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},nh={parentRelationType:M.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ih},ml={id:fe.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:fe.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:[Yy,Ky],outputs:[Qy,rh],error:nh,parent:null};var ah=(i=>(i.InputList="get-last-in-list-input-list-argument-declaration",i))(ah||{}),sh=(i=>(i.OutputElement="get-last-in-list-output-element-return-delaration",i.Error="get-last-in-list-error-return-delaration",i))(sh||{});const oh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},dh={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,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:oh},lh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:n.ValueDescriptor},uh={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:lh},ph={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:fe.GetLast,version:"1",entityType:n.ActionDescriptor},ch={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:dh,parentRelationType:M.FixedArguments,required:!0,index:0,parent:ph},fh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:fe.GetLast,version:"1",entityType:n.ActionDescriptor},yh={parentRelationType:M.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:uh,required:!0,index:0,parent:fh},hh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:fe.GetLast,version:"1",entityType:n.ActionDescriptor},mh={parentRelationType:M.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:hh},vl={id:fe.GetLast,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:fe.GetLast,description:"Outputs the last element of a given list.",inputs:[ch],outputs:[yh],error:mh,parent:null};var vh=(i=>(i.List="append-to-list-lsit-argument-declaration",i.ElementToAppend="append-to-list-element-to-append-argument-declaration",i))(vh||{}),Th=(i=>(i.ResultList="append-to-list-result-list-return-delaration",i.Error="append-to-list-error-return-delaration",i))(Th||{});const Eh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:n.ValueDescriptor},Ih={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,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:Eh},Ah={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:n.ValueDescriptor},bh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,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:Ah},Rh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Dh={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:Rh},Oh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:fe.Append,version:"1",entityType:n.ActionDescriptor},Tl={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:Ih,parentRelationType:M.FixedArguments,required:!0,index:0,parent:Oh},Ph={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:fe.Append,version:"1",entityType:n.ActionDescriptor},El={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:bh,parentRelationType:M.FixedArguments,required:!0,index:1,parent:Ph},wh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:fe.Append,version:"1",entityType:n.ActionDescriptor},Vh={parentRelationType:M.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Dh,required:!0,index:0,parent:wh},Ch={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:fe.Append,version:"1",entityType:n.ActionDescriptor},Bh={parentRelationType:M.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Ch},Zs={id:fe.Append,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:fe.Append,description:"Adds a given element to the end of a list value.",inputs:[Tl,El],error:Bh,outputs:[Vh],parent:null},_h={[fe.Join]:yl,[fe.Split]:ml,[fe.GetLast]:vl,[fe.Append]:Zs},Gn=x[n.Operation][He.Parallel],Mh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},gh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Mh,parentRelationType:M.DynamicArgument},Nh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},Lh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Nh,parentRelationType:M.DynamicArgument},Uh={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:n.DataType},$h={id:"parallel-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Lh],outputs:[gh],error:null,parent:Uh},jh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Gn.inputs.listOfActions.id,version:"1",entityType:n.ValueDescriptor},Gh={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$h,asType:!1,isList:!0,parent:jh},Fh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Gn.outputs.results.id,version:"1",entityType:n.ValueDescriptor},xh={like:!1,inferred:!1,id:Gn.outputs.results.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!0,parent:Fh},Sh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:He.Parallel,version:"1",entityType:n.ActionDescriptor},Il={id:Gn.inputs.listOfActions.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Gh,defaultValue:null,required:!0,index:0,parent:Sh,parentRelationType:M.FixedArguments},kh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:He.Parallel,version:"1",entityType:n.ActionDescriptor},Al={id:Gn.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:xh,defaultValue:null,required:!0,index:0,parent:kh,parentRelationType:M.FixedReturns},Zh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:He.Parallel,version:"1",entityType:n.ActionDescriptor},qh={id:Gn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Zh,parentRelationType:M.ReturnedError},br={id:He.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:He.Parallel,inputs:[Il],outputs:[Al],error:qh,parent:null};var Jh=(i=>(i.MillisecondsNumber="wait-milliseconds-number-argument-declaration",i))(Jh||{}),Wh=(i=>(i.Error="wait-operation-error-return-delaration",i))(Wh||{});const zh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Yh={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:zh},Hh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:n.ActionDescriptor,entityId:He.Wait},Ki={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:Yh,required:!0,index:0,parent:Hh,parentRelationType:M.FixedArguments},Kh={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:He.Wait,version:"1",entityType:n.ActionDescriptor},Xh={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Kh,parentRelationType:M.ReturnedError},Ft={id:He.Wait,type:n.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,name:He.Wait,inputs:[Ki],outputs:[],error:Xh,parent:null};var Qh=(i=>(i.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",i))(Qh||{}),em=(i=>(i.ListOfExecutionResults="sequential-execution-result-return-delaration",i.Error="sequential-execution-error-return-delaration",i))(em||{});const tm={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument},rm={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument},im={id:"sequential-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[rm],outputs:[tm],error:null,parent:null},nm={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:n.ValueDescriptor},am={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:im,asType:!1,isList:!0,parent:nm},sm={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:n.ValueDescriptor},om={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!0,parent:sm},dm={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:He.Sequential,version:"1",entityType:n.ActionDescriptor},bl={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:am,required:!0,index:0,parent:dm,parentRelationType:M.FixedArguments},lm={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:He.Sequential,version:"1",entityType:n.ActionDescriptor},Rl={id:"sequential-execution-result-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:om,required:!0,index:0,parent:lm,parentRelationType:M.FixedReturns},um={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:He.Sequential,version:"1",entityType:n.ActionDescriptor},pm={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:um,parentRelationType:M.ReturnedError},ti={id:He.Sequential,type:n.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,name:He.Sequential,inputs:[bl],outputs:[Rl],error:pm,parent:null},cm={[He.Parallel]:br,[He.Wait]:Ft,[He.Sequential]:ti};var fm=(i=>(i.EntityToInstanciate="entity-to-instanciate-argument-declaration",i.NewEntityData="new-entity-data-argument-declaration",i))(fm||{}),ym=(i=>(i.Error="create-new-instance-error-return-delaration",i))(ym||{});const hm={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Ke.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},mm={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:n.ValueDescriptor},vm={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,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:mm},Tm={id:"new-entity-data-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:vm,required:!0,defaultValue:null,parentRelationType:M.FixedArguments,index:1,parent:hm},Em={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Im={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,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:Em},Am={type:n.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:n.ActionDescriptor,entityId:Ke.CreateNewInstance},bm={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:Im,required:!0,parentRelationType:M.FixedArguments,index:0,parent:Am},Rm={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ke.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Dm={parentRelationType:M.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:Rm,required:!0,index:0},Om={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ke.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Pm={parentRelationType:M.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Om},Xi={id:Ke.CreateNewInstance,type:n.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,name:Ke.CreateNewInstance,inputs:[bm,Tm],outputs:[Dm],error:Pm,parent:null},Fn=x[n.Operation][Ke.Validate],wm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Fn.inputs.dataToValidate.id},Vm={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,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:wm},Cm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:Ke.Validate},Bm={id:Fn.inputs.dataToValidate.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:Vm,required:!0,parentRelationType:M.FixedArguments,index:0,parent:Cm},_m={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Fn.inputs.entityToMatch.id},Mm={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,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:_m},gm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:Ke.Validate},Nm={id:Fn.inputs.entityToMatch.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to match",description:"The entity to match the data against",dataType:Mm,defaultValue:null,required:!0,index:0,parentRelationType:M.FixedArguments,parent:gm},Lm={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ke.Validate,version:"1",entityType:n.ActionDescriptor},Um={id:Fn.outputs.outputEntity.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:Lm,required:!0,index:0,parentRelationType:M.FixedReturns},$m={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ke.Validate,version:"1",entityType:n.ActionDescriptor},jm={id:Fn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:$m,parentRelationType:M.ReturnedError},Qi={id:Ke.Validate,type:n.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,name:Ke.Validate,inputs:[Nm,Bm],outputs:[Um],error:jm,parent:null},Gm={[Ke.CreateNewInstance]:Xi,[Ke.Validate]:Qi},Tt=x[n.Operation]["base-http-request"],Fm={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:n.ValueDescriptor,entityId:Tt.inputs.url.id},xm={id:"http-request-url-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:g.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:Fm,autogeneration:null},Sm={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Tt.inputs.url.id,version:"1",entityType:n.ValueDescriptor},km={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Sm},Zm={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Tt.inputs.query.id,version:"1",entityType:n.ValueDescriptor},qm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Zm},Jm={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:n.ValueDescriptor,entityId:Tt.inputs.method.id},Wm={id:"http-request-method-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:g.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:Jm,autogeneration:null},zm={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Tt.inputs.method.id,version:"1",entityType:n.ValueDescriptor},Ym={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Xr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:zm},Hm={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Tt.inputs.headers.id,version:"1",entityType:n.ValueDescriptor},Km={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,asType:!1,isList:!1,parent:Hm},Xm={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Tt.inputs.body.id,version:"1",entityType:n.ValueDescriptor},Qm={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,asType:!1,isList:!1,parent:Xm},e0={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.code.id},t0={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:e0},r0={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.headers.id},i0={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.headers.id},n0={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,isList:!1,asType:!1,parent:i0},a0={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.body.id},s0={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.body.id},o0={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,isList:!1,asType:!1,parent:s0},d0={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},qs={id:Tt.inputs.method.id,type:n.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,name:"Method",defaultValue:Wm,dataType:Ym,required:!1,index:0,parentRelationType:M.FixedArguments,parent:d0},l0={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Js={id:Tt.inputs.url.id,type:n.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,name:"URL",dataType:km,defaultValue:xm,required:!1,index:1,parentRelationType:M.FixedArguments,parent:l0},u0={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Dl={id:Tt.inputs.query.id,type:n.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,name:"Query Params",defaultValue:null,dataType:qm,required:!1,index:2,parentRelationType:M.FixedArguments,parent:u0},p0={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Ws={id:Tt.inputs.headers.id,type:n.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,name:"Headers",defaultValue:null,dataType:Km,required:!1,index:3,parent:p0,parentRelationType:M.FixedArguments},c0={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},zs={id:Tt.inputs.body.id,type:n.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,name:"Body",dataType:Qm,defaultValue:null,required:!1,index:4,parentRelationType:M.FixedArguments,parent:c0},f0={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Ys={id:Tt.outputs.code.id,type:n.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,name:"Code",defaultValue:null,dataType:t0,required:!0,index:0,parentRelationType:M.FixedReturns,parent:f0},y0={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Hs={parentRelationType:M.FixedReturns,id:Tt.outputs.headers.id,type:n.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,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:g.KeyValue,parent:r0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:n0,required:!0,index:1,parent:y0},h0={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Ks={id:Tt.outputs.body.id,type:n.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,name:"Body",parentRelationType:M.FixedReturns,dataType:o0,defaultValue:{id:"http-response-body-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:g.KeyValue,parent:a0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:h0},m0={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},v0={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.error.id},T0={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,isList:!1,asType:!1,parent:v0},Ol={parentRelationType:M.ReturnedError,id:Tt.outputs.error.id,type:n.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,name:"Error",defaultValue:null,dataType:T0,required:!0,index:0,parent:m0},wa={type:n.ActionDescriptor,id:Ct.HttpRequest,name:Ct.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:[qs,Js,Dl,Ws,zs],outputs:[Ys,Hs,Ks],error:Ol,parent:null},E0={[Ct.HttpRequest]:wa},I0={...Dy,...Gf,..._h,...cm,...Gm,...E0},A0=Object.values(I0),SP=x[n.Loop]["manual-flow-loop"],b0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ManualFlow,version:"1",entityType:n.ActionDescriptor},R0={id:SP.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:b0,parentRelationType:M.DynamicReturn},Xs={id:X.ManualFlow,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.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:[R0],error:null,parent:null},Va=x[n.Loop]["manual-flow-loop"],D0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},O0={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:D0},P0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Va.body.id,version:"1",entityType:n.ActionDescriptor},Pl={id:Va.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:O0,required:!0,index:0,parentRelationType:M.FixedArguments,parent:P0},w0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Va.body.id,version:"1",entityType:n.ActionDescriptor},V0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:w0},C0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Va.body.id,version:"1",entityType:n.ActionDescriptor},B0={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:C0},Qs={id:Va.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[Pl,V0],outputs:[B0],error:null,parent:null},_0=x[n.Loop]["string-loop"],M0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},g0={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ne,asType:!1,parent:M0},N0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.String,version:"1",entityType:n.ActionDescriptor},L0={id:_0.inputs.string.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:g0,index:0,parent:N0,parentRelationType:M.FixedArguments},U0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.String,version:"1",entityType:n.ActionDescriptor},$0={id:_0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:U0,parentRelationType:M.DynamicReturn},Ca={id:X.String,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,description:"Iterates over a string of entities",inputs:[L0],outputs:[$0],error:null,parent:null},en=x[n.Loop]["string-loop"],j0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},G0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ne,asType:!1,parent:j0},F0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:en.body.id,version:"1",entityType:n.ActionDescriptor},wl={id:en.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:G0,required:!0,index:1,parentRelationType:M.FixedArguments,parent:F0},x0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},S0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:x0},k0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:en.body.id,version:"1",entityType:n.ActionDescriptor},Vl={id:en.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:S0,required:!0,index:0,parentRelationType:M.FixedArguments,parent:k0},Z0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:en.body.id,version:"1",entityType:n.ActionDescriptor},q0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:Z0},J0={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:en.body.id,version:"1",entityType:n.ActionDescriptor},W0={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:J0},eo={id:en.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Vl,wl,q0],outputs:[W0],error:null,parent:null},z0=x[n.Loop]["list-loop"],Y0={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},H0={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,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:Y0},K0={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.List,version:"1",entityType:n.ActionDescriptor},X0={id:z0.inputs.list.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:H0,index:0,parent:K0,parentRelationType:M.FixedArguments},Q0={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.List,version:"1",entityType:n.ActionDescriptor},ev={id:z0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:Q0,parentRelationType:M.DynamicReturn},mi={id:X.List,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.List,description:"Iterates over a list of entities",inputs:[X0],outputs:[ev],error:null,parent:null},tn=x[n.Loop]["list-loop"],tv={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},rv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,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:tv},iv={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:tn.body.id,version:"1",entityType:n.ActionDescriptor},to={id:tn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:rv,required:!0,index:1,parentRelationType:M.FixedArguments,parent:iv},nv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},av={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:nv},sv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:tn.body.id,version:"1",entityType:n.ActionDescriptor},ov={id:tn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:av,required:!0,index:0,parentRelationType:M.FixedArguments,parent:sv},dv={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:tn.body.id,version:"1",entityType:n.ActionDescriptor},lv={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:dv},uv={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:tn.body.id,version:"1",entityType:n.ActionDescriptor},pv={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:uv},Ba={id:tn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[ov,to,lv],outputs:[pv],error:null,parent:null},cv=x[n.Loop]["object-keys-loop"],fv={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},yv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Rt,asType:!1,parent:fv},hv={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ObjectKeys,version:"1",entityType:n.ActionDescriptor},mv={id:cv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:yv,index:0,parent:hv,parentRelationType:M.FixedArguments},vv={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Tv={id:cv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:vv,parentRelationType:M.DynamicReturn},xn={id:X.ObjectKeys,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.ObjectKeys,description:"Iterates over a object of entities",inputs:[mv],outputs:[Tv],error:null,parent:null},rn=x[n.Loop]["object-keys-loop"],Ev={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Iv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ne,asType:!1,parent:Ev},Av={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:rn.body.id,version:"1",entityType:n.ActionDescriptor},Cl={id:rn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Iv,required:!0,index:1,parentRelationType:M.FixedArguments,parent:Av},bv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Rv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:bv},Dv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:rn.body.id,version:"1",entityType:n.ActionDescriptor},Ov={id:rn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Rv,required:!0,index:0,parentRelationType:M.FixedArguments,parent:Dv},Pv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:rn.body.id,version:"1",entityType:n.ActionDescriptor},wv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:Pv},Vv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:rn.body.id,version:"1",entityType:n.ActionDescriptor},Cv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:Vv},Bl={id:rn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[Ov,Cl,wv],outputs:[Cv],error:null,parent:null},Bv=x[n.Loop]["object-values-loop"],_v={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Mv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Rt,asType:!1,parent:_v},gv={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ObjectValues,version:"1",entityType:n.ActionDescriptor},Nv={id:Bv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Mv,index:0,parent:gv,parentRelationType:M.FixedArguments},Lv={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ObjectValues,version:"1",entityType:n.ActionDescriptor},Uv={id:Bv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Lv,parentRelationType:M.DynamicReturn},Sn={id:X.ObjectValues,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.ObjectValues,description:"Iterates over a object of entities",inputs:[Nv],outputs:[Uv],error:null,parent:null},nn=x[n.Loop]["object-values-loop"],$v={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},jv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,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,like:!1,inferred:!1,parent:$v},Gv={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},_l={id:nn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:jv,required:!0,index:1,parentRelationType:M.FixedArguments,parent:Gv},Fv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},xv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:Fv},Sv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},kv={id:nn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:xv,required:!0,index:0,parentRelationType:M.FixedArguments,parent:Sv},Zv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},qv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:Zv},Jv={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},Wv={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:Jv},Ml={id:nn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[kv,_l,qv],outputs:[Wv],error:null,parent:null},gl=x[n.Loop]["counted-loop"],zv={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:gl.inputs.number.id,version:"1",entityType:n.ValueDescriptor},Yv={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.LiteralValue,name:g.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:zv},Hv={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Kv={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:Hv},Xv={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.Counted,version:"1",entityType:n.ActionDescriptor},Qv={id:gl.inputs.number.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:Kv,defaultValue:Yv,index:0,parent:Xv,parentRelationType:M.FixedArguments},eT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.Counted,version:"1",entityType:n.ActionDescriptor},tT={id:gl.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:eT,parentRelationType:M.DynamicReturn},_a={id:X.Counted,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Counted,description:"Iterates a given number of times",inputs:[Qv],outputs:[tT],error:null,parent:null},Ma=x[n.Loop]["counted-loop"],rT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},iT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:rT},nT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ma.body.id,version:"1",entityType:n.ActionDescriptor},Nl={id:Ma.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:iT,required:!0,index:0,parentRelationType:M.FixedArguments,parent:nT},aT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Ma.body.id,version:"1",entityType:n.ActionDescriptor},sT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:aT},oT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Ma.body.id,version:"1",entityType:n.ActionDescriptor},dT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:oT},ro={id:Ma.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Nl,sT],outputs:[dT],error:null,parent:null},lT=[Xs,mi,Ca,xn,Sn,_a],uT=[Qs,Ba,eo,Bl,Ml,ro],vi=x[n.BuiltInBaseEntity][Y.HTTP_ENDPOINT].properties,pT={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:vi.cors.id},cT={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:vi.cors.id},fT={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ne,asType:!1,parent:cT},yT={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},hT={constant:!1,hidden:!0,required:!0,id:vi.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:fT,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:["*"],parent:pT,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:yT},mT={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:vi.path.id},vT={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:vi.path.id},TT={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:vT},ET={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},Ll={constant:!1,id:vi.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:TT,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"/",parent:mT,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:ET},IT={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:vi.method.id},AT={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},bT={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Xr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:AT},RT={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},Ul={constant:!1,hidden:!1,required:!0,id:vi.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:g.Enum,parent:IT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:bT,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:RT},DT={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},OT={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},PT={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Rt,asType:!1,parent:OT},wT={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},VT={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Rt,parent:wT},CT={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},BT={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},_T={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:jn,parent:BT},MT={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},gT={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},NT={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:jn,asType:!1,parent:gT},LT={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},$l={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:n.ValueDescriptor,name:"Request headers",dataType:PT,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:DT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:M.FixedArguments,parent:LT},UT={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},jl={id:"endpointPathParamsArgumentDeclaration",type:n.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,name:"Path parameters",dataType:NT,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:[],parent:MT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:M.FixedArguments,parent:UT},$T={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Gl={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:n.ValueDescriptor,name:"Request query params",dataType:_T,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:[],parent:CT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:M.FixedArguments,parent:$T},jT={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Fl={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:n.ValueDescriptor,name:"Request body",dataType:VT,defaultValue:null,index:3,required:!0,parentRelationType:M.FixedArguments,parent:jT},GT={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},FT={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:GT},xT={id:"endpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},xl={id:"endpointResponseCodeReturnDeclaration",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:n.ValueDescriptor,name:"Response code",dataType:FT,defaultValue:null,required:!0,index:0,parentRelationType:M.FixedReturns,parent:xT},ST={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointResponseHeadersReturnDeclaration"},kT={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},ZT={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Rt,asType:!1,parent:kT},qT={id:"endpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Sl={id:"endpointResponseHeadersReturnDeclaration",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:n.ValueDescriptor,name:"Response headers",dataType:ZT,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:ST,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:M.FixedReturns,parent:qT},JT={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},WT={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Rt,parent:JT},zT={id:"endpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},kl={id:"endpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:WT,defaultValue:null,required:!1,index:2,parentRelationType:M.FixedReturns,parent:zT},YT={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},Zl={id:"endpointReachedTriggerActionDescriptor",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[$l,jl,Gl,Fl],outputs:[xl,Sl,kl],error:null,parent:YT},ga={id:Y.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:Y.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[hT,Ll,Ul],abstractMethods:[Zl],extends:[],methods:[]},Bt=x[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,HT={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},KT={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},XT={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:KT},kn={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:Y.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},io={constant:!1,id:Bt.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:null,parent:HT,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:XT,description:"The name of the main database inside of the server instance where the data will be stored.",parent:kn},kP={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:n.Property},QT={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},eE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:QT},no={constant:!1,hidden:!1,required:!0,id:Bt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:eE,description:"The username that will be used to connect to the database.",parent:kn},ZP={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:n.Property},tE={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},rE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:tE},ao={constant:!1,hidden:!1,required:!0,id:Bt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:null,dataType:rE,description:"The password that will be used to connect to the database.",parent:kn},iE={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},nE={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},aE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:nE},so={constant:!1,hidden:!0,required:!0,id:Bt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,value:6,parent:iE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:aE,description:"The minimum size of the database in GB.",parent:kn},sE={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},oE={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},dE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Kr,asType:!1,parent:oE},ql={constant:!1,hidden:!0,required:!0,id:Bt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,value:!1,parent:sE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:dE,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:kn},lE={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},uE={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},pE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Kr,asType:!1,parent:lE},cE={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:Y.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Jl={constant:!1,hidden:!0,required:!0,id:Bt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,value:!1,parent:uE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:pE,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:cE},Nr={id:Y.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:Y.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[io,no,ao,so,ql,Jl],abstractMethods:[],methods:[],extends:[]},fE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:or.DeletePersistedEntity},Wl={type:n.FunctionDeclaration,id:or.DeletePersistedEntity,name:or.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:fE,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},yE=x[n.BuiltInBaseEntity][Y.PERSISTED_ENTITY].properties,qP={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:n.DataType},hE={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:n.Property},mE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:hE},vE={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:Y.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Zn={constant:!1,hidden:!0,required:!0,id:yE.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:mE,description:"The database that the entity belongs to.",parent:vE},TE={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},EE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parentRelationType:bt.OrDataTypeGroup,parent:TE},IE={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},AE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parentRelationType:bt.OrDataTypeGroup,parent:IE},bE={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},RE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parentRelationType:bt.OrDataTypeGroup,parent:bE},DE={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:n.Property},OE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:[RE,AE,EE],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:DE},PE={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:Y.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},qn={constant:!1,hidden:!1,required:!0,id:yE.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:OE,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:PE},Ot={id:Y.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:Y.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Zn,qn],methods:[Wl],extends:[]},wE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:or.SoftDeletePersistedEntity},JP={type:n.FunctionDeclaration,id:or.SoftDeletePersistedEntity,name:or.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:wE,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},VE={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},zl={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:VE},CE=x[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,WP={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:n.DataType},BE={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:CE.properties.expression.id,version:"1",entityType:n.Property},zP={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:BE},_E={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:Y.CRON_JOB,version:"1",entityType:n.BuiltInBaseEntity},ME={constant:!1,hidden:!1,required:!0,id:CE.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:zP,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:_E},oo={id:Y.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:Y.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[ME],methods:[],abstractMethods:[zl],extends:[]},gE={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Yl={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:or.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:gE},lo={id:Y.EXECUTION,type:n.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Y.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:[Yl],abstractMethods:[]},NE=[ga,Nr,Ot,oo,lo],YP=x[n.Condition]["not-empty"],LE={type:n.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:n.ActionDescriptor,entityId:yr.NotEmpty},UE={id:YP.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!0,parentRelationType:M.FixedArguments,index:0,parent:LE},an={type:n.ActionDescriptor,id:yr.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:yr.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[UE],outputs:[],error:null},$E={[yr.NotEmpty]:an},Jn=x[n.Condition]["more-than-or-equal"],jE={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.leftHand.id},GE={type:n.DataType,id:Jn.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:jE},FE={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:pt.MoreThanOrEqual},xE={id:Jn.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:GE,required:!0,parentRelationType:M.FixedArguments,index:0,parent:FE},SE={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.rightHand.id},kE={type:n.DataType,id:Jn.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:SE},ZE={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:pt.MoreThanOrEqual},qE={id:Jn.inputs.rightHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:kE,required:!0,parentRelationType:M.FixedArguments,index:1,parent:ZE},Wn={type:n.ActionDescriptor,id:pt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:pt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[xE,qE],outputs:[],error:null},JE={[pt.MoreThanOrEqual]:Wn},WE={...$E,...JE},zE=Object.values(WE),uo={type:n.ActionDescriptor,id:Hr.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Hr.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},YE={[Hr.PROJECT_PUBLICATION_COMPLETED]:uo},HE=Object.values(YE),Hl=x[n.ValueDescriptor][Fs.ActionOngoingProcessOutputValue],KE={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:Hl.id},XE={like:!1,inferred:!1,id:Hl.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:lo,asType:!1,isList:!1,parent:KE},po={id:Hl.id,type:n.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,name:"Process",defaultValue:null,dataType:XE,required:!0,index:0,parent:null,parentRelationType:M.OngoingProcessExecution},QE=[po],eI=[...lf,...A0,...lT,...uT,...NE,...zE,...HE,...QE];var Je;(function(i){i.assertEqual=r=>r;function s(r){}i.assertIs=s;function e(r){throw new Error}i.assertNever=e,i.arrayToEnum=r=>{const a={};for(const d of r)a[d]=d;return a},i.getValidEnumValues=r=>{const a=i.objectKeys(r).filter(o=>typeof r[r[o]]!="number"),d={};for(const o of a)d[o]=r[o];return i.objectValues(d)},i.objectValues=r=>i.objectKeys(r).map(function(a){return r[a]}),i.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const a=[];for(const d in r)Object.prototype.hasOwnProperty.call(r,d)&&a.push(d);return a},i.find=(r,a)=>{for(const d of r)if(a(d))return d},i.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function t(r,a=" | "){return r.map(d=>typeof d=="string"?`'${d}'`:d).join(a)}i.joinValues=t,i.jsonStringifyReplacer=(r,a)=>typeof a=="bigint"?a.toString():a})(Je||(Je={}));var Kl;(function(i){i.mergeShapes=(s,e)=>({...s,...e})})(Kl||(Kl={}));const H=Je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ri=i=>{switch(typeof i){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(i)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(i)?H.array:i===null?H.null:i.then&&typeof i.then=="function"&&i.catch&&typeof i.catch=="function"?H.promise:typeof Map<"u"&&i instanceof Map?H.map:typeof Set<"u"&&i instanceof Set?H.set:typeof Date<"u"&&i instanceof Date?H.date:H.object;default:return H.unknown}},S=Je.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"]),HP=i=>JSON.stringify(i,null,2).replace(/"([^"]+)":/g,"$1:");class Kt extends Error{get errors(){return this.issues}constructor(s){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=s}format(s){const e=s||function(a){return a.message},t={_errors:[]},r=a=>{for(const d of a.issues)if(d.code==="invalid_union")d.unionErrors.map(r);else if(d.code==="invalid_return_type")r(d.returnTypeError);else if(d.code==="invalid_arguments")r(d.argumentsError);else if(d.path.length===0)t._errors.push(e(d));else{let o=t,l=0;for(;l<d.path.length;){const u=d.path[l];l===d.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(e(d))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return r(this),t}static assert(s){if(!(s instanceof Kt))throw new Error(`Not a ZodError: ${s}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(s=e=>e.message){const e={},t=[];for(const r of this.issues)r.path.length>0?(e[r.path[0]]=e[r.path[0]]||[],e[r.path[0]].push(s(r))):t.push(s(r));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}Kt.create=i=>new Kt(i);const zn=(i,s)=>{let e;switch(i.code){case S.invalid_type:i.received===H.undefined?e="Required":e=`Expected ${i.expected}, received ${i.received}`;break;case S.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(i.expected,Je.jsonStringifyReplacer)}`;break;case S.unrecognized_keys:e=`Unrecognized key(s) in object: ${Je.joinValues(i.keys,", ")}`;break;case S.invalid_union:e="Invalid input";break;case S.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${Je.joinValues(i.options)}`;break;case S.invalid_enum_value:e=`Invalid enum value. Expected ${Je.joinValues(i.options)}, received '${i.received}'`;break;case S.invalid_arguments:e="Invalid function arguments";break;case S.invalid_return_type:e="Invalid function return type";break;case S.invalid_date:e="Invalid date";break;case S.invalid_string:typeof i.validation=="object"?"includes"in i.validation?(e=`Invalid input: must include "${i.validation.includes}"`,typeof i.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${i.validation.position}`)):"startsWith"in i.validation?e=`Invalid input: must start with "${i.validation.startsWith}"`:"endsWith"in i.validation?e=`Invalid input: must end with "${i.validation.endsWith}"`:Je.assertNever(i.validation):i.validation!=="regex"?e=`Invalid ${i.validation}`:e="Invalid";break;case S.too_small:i.type==="array"?e=`Array must contain ${i.exact?"exactly":i.inclusive?"at least":"more than"} ${i.minimum} element(s)`:i.type==="string"?e=`String must contain ${i.exact?"exactly":i.inclusive?"at least":"over"} ${i.minimum} character(s)`:i.type==="number"?e=`Number must be ${i.exact?"exactly equal to ":i.inclusive?"greater than or equal to ":"greater than "}${i.minimum}`:i.type==="date"?e=`Date must be ${i.exact?"exactly equal to ":i.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(i.minimum))}`:e="Invalid input";break;case S.too_big:i.type==="array"?e=`Array must contain ${i.exact?"exactly":i.inclusive?"at most":"less than"} ${i.maximum} element(s)`:i.type==="string"?e=`String must contain ${i.exact?"exactly":i.inclusive?"at most":"under"} ${i.maximum} character(s)`:i.type==="number"?e=`Number must be ${i.exact?"exactly":i.inclusive?"less than or equal to":"less than"} ${i.maximum}`:i.type==="bigint"?e=`BigInt must be ${i.exact?"exactly":i.inclusive?"less than or equal to":"less than"} ${i.maximum}`:i.type==="date"?e=`Date must be ${i.exact?"exactly":i.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(i.maximum))}`:e="Invalid input";break;case S.custom:e="Invalid input";break;case S.invalid_intersection_types:e="Intersection results could not be merged";break;case S.not_multiple_of:e=`Number must be a multiple of ${i.multipleOf}`;break;case S.not_finite:e="Number must be finite";break;default:e=s.defaultError,Je.assertNever(i)}return{message:e}};let tI=zn;function KP(i){tI=i}function co(){return tI}const fo=i=>{const{data:s,path:e,errorMaps:t,issueData:r}=i,a=[...e,...r.path||[]],d={...r,path:a};if(r.message!==void 0)return{...r,path:a,message:r.message};let o="";const l=t.filter(u=>!!u).slice().reverse();for(const u of l)o=u(d,{data:s,defaultError:o}).message;return{...r,path:a,message:o}},XP=[];function W(i,s){const e=co(),t=fo({issueData:s,data:i.data,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,e,e===zn?void 0:zn].filter(r=>!!r)});i.common.issues.push(t)}class Mt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(s,e){const t=[];for(const r of e){if(r.status==="aborted")return ce;r.status==="dirty"&&s.dirty(),t.push(r.value)}return{status:s.value,value:t}}static async mergeObjectAsync(s,e){const t=[];for(const r of e){const a=await r.key,d=await r.value;t.push({key:a,value:d})}return Mt.mergeObjectSync(s,t)}static mergeObjectSync(s,e){const t={};for(const r of e){const{key:a,value:d}=r;if(a.status==="aborted"||d.status==="aborted")return ce;a.status==="dirty"&&s.dirty(),d.status==="dirty"&&s.dirty(),a.value!=="__proto__"&&(typeof d.value<"u"||r.alwaysSet)&&(t[a.value]=d.value)}return{status:s.value,value:t}}}const ce=Object.freeze({status:"aborted"}),Yn=i=>({status:"dirty",value:i}),xt=i=>({status:"valid",value:i}),Xl=i=>i.status==="aborted",Ql=i=>i.status==="dirty",sn=i=>i.status==="valid",Na=i=>typeof Promise<"u"&&i instanceof Promise;function yo(i,s,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?i!==s||!t:!s.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(i):t?t.value:s.get(i)}function rI(i,s,e,t,r){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof s=="function"?i!==s||!r:!s.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?r.call(i,e):r?r.value=e:s.set(i,e),e}typeof SuppressedError=="function"&&SuppressedError;var re;(function(i){i.errToObj=s=>typeof s=="string"?{message:s}:s||{},i.toString=s=>typeof s=="string"?s:s==null?void 0:s.message})(re||(re={}));var La,Ua;class Lr{constructor(s,e,t,r){this._cachedPath=[],this.parent=s,this.data=e,this._path=t,this._key=r}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 iI=(i,s)=>{if(sn(s))return{success:!0,data:s.value};if(!i.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new Kt(i.common.issues);return this._error=e,this._error}}};function ve(i){if(!i)return{};const{errorMap:s,invalid_type_error:e,required_error:t,description:r}=i;if(s&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return s?{errorMap:s,description:r}:{errorMap:(d,o)=>{var l,u;const{message:h}=i;return d.code==="invalid_enum_value"?{message:h??o.defaultError}:typeof o.data>"u"?{message:(l=h??t)!==null&&l!==void 0?l:o.defaultError}:d.code!=="invalid_type"?{message:o.defaultError}:{message:(u=h??e)!==null&&u!==void 0?u:o.defaultError}},description:r}}class je{get description(){return this._def.description}_getType(s){return ri(s.data)}_getOrReturnCtx(s,e){return e||{common:s.parent.common,data:s.data,parsedType:ri(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}_processInputParams(s){return{status:new Mt,ctx:{common:s.parent.common,data:s.data,parsedType:ri(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}}_parseSync(s){const e=this._parse(s);if(Na(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(s){const e=this._parse(s);return Promise.resolve(e)}parse(s,e){const t=this.safeParse(s,e);if(t.success)return t.data;throw t.error}safeParse(s,e){var t;const r={common:{issues:[],async:(t=e==null?void 0:e.async)!==null&&t!==void 0?t:!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:ri(s)},a=this._parseSync({data:s,path:r.path,parent:r});return iI(r,a)}"~validate"(s){var e,t;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:ri(s)};if(!this["~standard"].async)try{const a=this._parseSync({data:s,path:[],parent:r});return sn(a)?{value:a.value}:{issues:r.common.issues}}catch(a){!((t=(e=a==null?void 0:a.message)===null||e===void 0?void 0:e.toLowerCase())===null||t===void 0)&&t.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:s,path:[],parent:r}).then(a=>sn(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(s,e){const t=await this.safeParseAsync(s,e);if(t.success)return t.data;throw t.error}async safeParseAsync(s,e){const t={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:ri(s)},r=this._parse({data:s,path:t.path,parent:t}),a=await(Na(r)?r:Promise.resolve(r));return iI(t,a)}refine(s,e){const t=r=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(r):e;return this._refinement((r,a)=>{const d=s(r),o=()=>a.addIssue({code:S.custom,...t(r)});return typeof Promise<"u"&&d instanceof Promise?d.then(l=>l?!0:(o(),!1)):d?!0:(o(),!1)})}refinement(s,e){return this._refinement((t,r)=>s(t)?!0:(r.addIssue(typeof e=="function"?e(t,r):e),!1))}_refinement(s){return new Or({schema:this,typeName:le.ZodEffects,effect:{type:"refinement",refinement:s}})}superRefine(s){return this._refinement(s)}constructor(s){this.spa=this.safeParseAsync,this._def=s,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:e=>this["~validate"](e)}}optional(){return $r.create(this,this._def)}nullable(){return Ai.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dr.create(this)}promise(){return Qn.create(this,this._def)}or(s){return Fa.create([this,s],this._def)}and(s){return xa.create(this,s,this._def)}transform(s){return new Or({...ve(this._def),schema:this,typeName:le.ZodEffects,effect:{type:"transform",transform:s}})}default(s){const e=typeof s=="function"?s:()=>s;return new Ja({...ve(this._def),innerType:this,defaultValue:e,typeName:le.ZodDefault})}brand(){return new ru({typeName:le.ZodBranded,type:this,...ve(this._def)})}catch(s){const e=typeof s=="function"?s:()=>s;return new Wa({...ve(this._def),innerType:this,catchValue:e,typeName:le.ZodCatch})}describe(s){const e=this.constructor;return new e({...this._def,description:s})}pipe(s){return za.create(this,s)}readonly(){return Ya.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const QP=/^c[^\s-]{8,}$/i,ew=/^[0-9a-z]+$/,tw=/^[0-9A-HJKMNP-TV-Z]{26}$/i,rw=/^[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,iw=/^[a-z0-9_-]{21}$/i,nw=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aw=/^[-+]?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)?)??$/,sw=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ow="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let eu;const dw=/^(?:(?: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])$/,lw=/^(?:(?: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])$/,uw=/^(([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]))$/,pw=/^(([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])$/,cw=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fw=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nI="((\\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])))",yw=new RegExp(`^${nI}$`);function aI(i){let s="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return i.precision?s=`${s}\\.\\d{${i.precision}}`:i.precision==null&&(s=`${s}(\\.\\d+)?`),s}function hw(i){return new RegExp(`^${aI(i)}$`)}function sI(i){let s=`${nI}T${aI(i)}`;const e=[];return e.push(i.local?"Z?":"Z"),i.offset&&e.push("([+-]\\d{2}:?\\d{2})"),s=`${s}(${e.join("|")})`,new RegExp(`^${s}$`)}function mw(i,s){return!!((s==="v4"||!s)&&dw.test(i)||(s==="v6"||!s)&&uw.test(i))}function vw(i,s){if(!nw.test(i))return!1;try{const[e]=i.split("."),t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),r=JSON.parse(atob(t));return!(typeof r!="object"||r===null||!r.typ||!r.alg||s&&r.alg!==s)}catch{return!1}}function Tw(i,s){return!!((s==="v4"||!s)&&lw.test(i)||(s==="v6"||!s)&&pw.test(i))}class Rr extends je{_parse(s){if(this._def.coerce&&(s.data=String(s.data)),this._getType(s)!==H.string){const a=this._getOrReturnCtx(s);return W(a,{code:S.invalid_type,expected:H.string,received:a.parsedType}),ce}const t=new Mt;let r;for(const a of this._def.checks)if(a.kind==="min")s.data.length<a.value&&(r=this._getOrReturnCtx(s,r),W(r,{code:S.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if(a.kind==="max")s.data.length>a.value&&(r=this._getOrReturnCtx(s,r),W(r,{code:S.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if(a.kind==="length"){const d=s.data.length>a.value,o=s.data.length<a.value;(d||o)&&(r=this._getOrReturnCtx(s,r),d?W(r,{code:S.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&W(r,{code:S.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if(a.kind==="email")sw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"email",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="emoji")eu||(eu=new RegExp(ow,"u")),eu.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"emoji",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="uuid")rw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"uuid",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="nanoid")iw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"nanoid",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="cuid")QP.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"cuid",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="cuid2")ew.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"cuid2",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="ulid")tw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"ulid",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="url")try{new URL(s.data)}catch{r=this._getOrReturnCtx(s,r),W(r,{validation:"url",code:S.invalid_string,message:a.message}),t.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"regex",code:S.invalid_string,message:a.message}),t.dirty())):a.kind==="trim"?s.data=s.data.trim():a.kind==="includes"?s.data.includes(a.value,a.position)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):a.kind==="toLowerCase"?s.data=s.data.toLowerCase():a.kind==="toUpperCase"?s.data=s.data.toUpperCase():a.kind==="startsWith"?s.data.startsWith(a.value)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):a.kind==="endsWith"?s.data.endsWith(a.value)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):a.kind==="datetime"?sI(a).test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:"datetime",message:a.message}),t.dirty()):a.kind==="date"?yw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:"date",message:a.message}),t.dirty()):a.kind==="time"?hw(a).test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:"time",message:a.message}),t.dirty()):a.kind==="duration"?aw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"duration",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="ip"?mw(s.data,a.version)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"ip",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="jwt"?vw(s.data,a.alg)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"jwt",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="cidr"?Tw(s.data,a.version)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"cidr",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="base64"?cw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"base64",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="base64url"?fw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"base64url",code:S.invalid_string,message:a.message}),t.dirty()):Je.assertNever(a);return{status:t.value,value:s.data}}_regex(s,e,t){return this.refinement(r=>s.test(r),{validation:e,code:S.invalid_string,...re.errToObj(t)})}_addCheck(s){return new Rr({...this._def,checks:[...this._def.checks,s]})}email(s){return this._addCheck({kind:"email",...re.errToObj(s)})}url(s){return this._addCheck({kind:"url",...re.errToObj(s)})}emoji(s){return this._addCheck({kind:"emoji",...re.errToObj(s)})}uuid(s){return this._addCheck({kind:"uuid",...re.errToObj(s)})}nanoid(s){return this._addCheck({kind:"nanoid",...re.errToObj(s)})}cuid(s){return this._addCheck({kind:"cuid",...re.errToObj(s)})}cuid2(s){return this._addCheck({kind:"cuid2",...re.errToObj(s)})}ulid(s){return this._addCheck({kind:"ulid",...re.errToObj(s)})}base64(s){return this._addCheck({kind:"base64",...re.errToObj(s)})}base64url(s){return this._addCheck({kind:"base64url",...re.errToObj(s)})}jwt(s){return this._addCheck({kind:"jwt",...re.errToObj(s)})}ip(s){return this._addCheck({kind:"ip",...re.errToObj(s)})}cidr(s){return this._addCheck({kind:"cidr",...re.errToObj(s)})}datetime(s){var e,t;return typeof s=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:s}):this._addCheck({kind:"datetime",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,offset:(e=s==null?void 0:s.offset)!==null&&e!==void 0?e:!1,local:(t=s==null?void 0:s.local)!==null&&t!==void 0?t:!1,...re.errToObj(s==null?void 0:s.message)})}date(s){return this._addCheck({kind:"date",message:s})}time(s){return typeof s=="string"?this._addCheck({kind:"time",precision:null,message:s}):this._addCheck({kind:"time",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,...re.errToObj(s==null?void 0:s.message)})}duration(s){return this._addCheck({kind:"duration",...re.errToObj(s)})}regex(s,e){return this._addCheck({kind:"regex",regex:s,...re.errToObj(e)})}includes(s,e){return this._addCheck({kind:"includes",value:s,position:e==null?void 0:e.position,...re.errToObj(e==null?void 0:e.message)})}startsWith(s,e){return this._addCheck({kind:"startsWith",value:s,...re.errToObj(e)})}endsWith(s,e){return this._addCheck({kind:"endsWith",value:s,...re.errToObj(e)})}min(s,e){return this._addCheck({kind:"min",value:s,...re.errToObj(e)})}max(s,e){return this._addCheck({kind:"max",value:s,...re.errToObj(e)})}length(s,e){return this._addCheck({kind:"length",value:s,...re.errToObj(e)})}nonempty(s){return this.min(1,re.errToObj(s))}trim(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(s=>s.kind==="datetime")}get isDate(){return!!this._def.checks.find(s=>s.kind==="date")}get isTime(){return!!this._def.checks.find(s=>s.kind==="time")}get isDuration(){return!!this._def.checks.find(s=>s.kind==="duration")}get isEmail(){return!!this._def.checks.find(s=>s.kind==="email")}get isURL(){return!!this._def.checks.find(s=>s.kind==="url")}get isEmoji(){return!!this._def.checks.find(s=>s.kind==="emoji")}get isUUID(){return!!this._def.checks.find(s=>s.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(s=>s.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(s=>s.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(s=>s.kind==="cuid2")}get isULID(){return!!this._def.checks.find(s=>s.kind==="ulid")}get isIP(){return!!this._def.checks.find(s=>s.kind==="ip")}get isCIDR(){return!!this._def.checks.find(s=>s.kind==="cidr")}get isBase64(){return!!this._def.checks.find(s=>s.kind==="base64")}get isBase64url(){return!!this._def.checks.find(s=>s.kind==="base64url")}get minLength(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxLength(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}}Rr.create=i=>{var s;return new Rr({checks:[],typeName:le.ZodString,coerce:(s=i==null?void 0:i.coerce)!==null&&s!==void 0?s:!1,...ve(i)})};function Ew(i,s){const e=(i.toString().split(".")[1]||"").length,t=(s.toString().split(".")[1]||"").length,r=e>t?e:t,a=parseInt(i.toFixed(r).replace(".","")),d=parseInt(s.toFixed(r).replace(".",""));return a%d/Math.pow(10,r)}class Ti extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(s){if(this._def.coerce&&(s.data=Number(s.data)),this._getType(s)!==H.number){const a=this._getOrReturnCtx(s);return W(a,{code:S.invalid_type,expected:H.number,received:a.parsedType}),ce}let t;const r=new Mt;for(const a of this._def.checks)a.kind==="int"?Je.isInteger(s.data)||(t=this._getOrReturnCtx(s,t),W(t,{code:S.invalid_type,expected:"integer",received:"float",message:a.message}),r.dirty()):a.kind==="min"?(a.inclusive?s.data<a.value:s.data<=a.value)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?s.data>a.value:s.data>=a.value)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="multipleOf"?Ew(s.data,a.value)!==0&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):a.kind==="finite"?Number.isFinite(s.data)||(t=this._getOrReturnCtx(s,t),W(t,{code:S.not_finite,message:a.message}),r.dirty()):Je.assertNever(a);return{status:r.value,value:s.data}}gte(s,e){return this.setLimit("min",s,!0,re.toString(e))}gt(s,e){return this.setLimit("min",s,!1,re.toString(e))}lte(s,e){return this.setLimit("max",s,!0,re.toString(e))}lt(s,e){return this.setLimit("max",s,!1,re.toString(e))}setLimit(s,e,t,r){return new Ti({...this._def,checks:[...this._def.checks,{kind:s,value:e,inclusive:t,message:re.toString(r)}]})}_addCheck(s){return new Ti({...this._def,checks:[...this._def.checks,s]})}int(s){return this._addCheck({kind:"int",message:re.toString(s)})}positive(s){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(s)})}negative(s){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(s)})}multipleOf(s,e){return this._addCheck({kind:"multipleOf",value:s,message:re.toString(e)})}finite(s){return this._addCheck({kind:"finite",message:re.toString(s)})}safe(s){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(s)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(s)})}get minValue(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxValue(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}get isInt(){return!!this._def.checks.find(s=>s.kind==="int"||s.kind==="multipleOf"&&Je.isInteger(s.value))}get isFinite(){let s=null,e=null;for(const t of this._def.checks){if(t.kind==="finite"||t.kind==="int"||t.kind==="multipleOf")return!0;t.kind==="min"?(e===null||t.value>e)&&(e=t.value):t.kind==="max"&&(s===null||t.value<s)&&(s=t.value)}return Number.isFinite(e)&&Number.isFinite(s)}}Ti.create=i=>new Ti({checks:[],typeName:le.ZodNumber,coerce:(i==null?void 0:i.coerce)||!1,...ve(i)});class Ei extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(s){if(this._def.coerce)try{s.data=BigInt(s.data)}catch{return this._getInvalidInput(s)}if(this._getType(s)!==H.bigint)return this._getInvalidInput(s);let t;const r=new Mt;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?s.data<a.value:s.data<=a.value)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?s.data>a.value:s.data>=a.value)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="multipleOf"?s.data%a.value!==BigInt(0)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):Je.assertNever(a);return{status:r.value,value:s.data}}_getInvalidInput(s){const e=this._getOrReturnCtx(s);return W(e,{code:S.invalid_type,expected:H.bigint,received:e.parsedType}),ce}gte(s,e){return this.setLimit("min",s,!0,re.toString(e))}gt(s,e){return this.setLimit("min",s,!1,re.toString(e))}lte(s,e){return this.setLimit("max",s,!0,re.toString(e))}lt(s,e){return this.setLimit("max",s,!1,re.toString(e))}setLimit(s,e,t,r){return new Ei({...this._def,checks:[...this._def.checks,{kind:s,value:e,inclusive:t,message:re.toString(r)}]})}_addCheck(s){return new Ei({...this._def,checks:[...this._def.checks,s]})}positive(s){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(s)})}negative(s){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(s)})}multipleOf(s,e){return this._addCheck({kind:"multipleOf",value:s,message:re.toString(e)})}get minValue(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxValue(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}}Ei.create=i=>{var s;return new Ei({checks:[],typeName:le.ZodBigInt,coerce:(s=i==null?void 0:i.coerce)!==null&&s!==void 0?s:!1,...ve(i)})};class $a extends je{_parse(s){if(this._def.coerce&&(s.data=!!s.data),this._getType(s)!==H.boolean){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.boolean,received:t.parsedType}),ce}return xt(s.data)}}$a.create=i=>new $a({typeName:le.ZodBoolean,coerce:(i==null?void 0:i.coerce)||!1,...ve(i)});class on extends je{_parse(s){if(this._def.coerce&&(s.data=new Date(s.data)),this._getType(s)!==H.date){const a=this._getOrReturnCtx(s);return W(a,{code:S.invalid_type,expected:H.date,received:a.parsedType}),ce}if(isNaN(s.data.getTime())){const a=this._getOrReturnCtx(s);return W(a,{code:S.invalid_date}),ce}const t=new Mt;let r;for(const a of this._def.checks)a.kind==="min"?s.data.getTime()<a.value&&(r=this._getOrReturnCtx(s,r),W(r,{code:S.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),t.dirty()):a.kind==="max"?s.data.getTime()>a.value&&(r=this._getOrReturnCtx(s,r),W(r,{code:S.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),t.dirty()):Je.assertNever(a);return{status:t.value,value:new Date(s.data.getTime())}}_addCheck(s){return new on({...this._def,checks:[...this._def.checks,s]})}min(s,e){return this._addCheck({kind:"min",value:s.getTime(),message:re.toString(e)})}max(s,e){return this._addCheck({kind:"max",value:s.getTime(),message:re.toString(e)})}get minDate(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s!=null?new Date(s):null}get maxDate(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s!=null?new Date(s):null}}on.create=i=>new on({checks:[],coerce:(i==null?void 0:i.coerce)||!1,typeName:le.ZodDate,...ve(i)});class ho extends je{_parse(s){if(this._getType(s)!==H.symbol){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.symbol,received:t.parsedType}),ce}return xt(s.data)}}ho.create=i=>new ho({typeName:le.ZodSymbol,...ve(i)});class ja extends je{_parse(s){if(this._getType(s)!==H.undefined){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.undefined,received:t.parsedType}),ce}return xt(s.data)}}ja.create=i=>new ja({typeName:le.ZodUndefined,...ve(i)});class Ga extends je{_parse(s){if(this._getType(s)!==H.null){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.null,received:t.parsedType}),ce}return xt(s.data)}}Ga.create=i=>new Ga({typeName:le.ZodNull,...ve(i)});class Hn extends je{constructor(){super(...arguments),this._any=!0}_parse(s){return xt(s.data)}}Hn.create=i=>new Hn({typeName:le.ZodAny,...ve(i)});class dn extends je{constructor(){super(...arguments),this._unknown=!0}_parse(s){return xt(s.data)}}dn.create=i=>new dn({typeName:le.ZodUnknown,...ve(i)});class ii extends je{_parse(s){const e=this._getOrReturnCtx(s);return W(e,{code:S.invalid_type,expected:H.never,received:e.parsedType}),ce}}ii.create=i=>new ii({typeName:le.ZodNever,...ve(i)});class mo extends je{_parse(s){if(this._getType(s)!==H.undefined){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.void,received:t.parsedType}),ce}return xt(s.data)}}mo.create=i=>new mo({typeName:le.ZodVoid,...ve(i)});class Dr extends je{_parse(s){const{ctx:e,status:t}=this._processInputParams(s),r=this._def;if(e.parsedType!==H.array)return W(e,{code:S.invalid_type,expected:H.array,received:e.parsedType}),ce;if(r.exactLength!==null){const d=e.data.length>r.exactLength.value,o=e.data.length<r.exactLength.value;(d||o)&&(W(e,{code:d?S.too_big:S.too_small,minimum:o?r.exactLength.value:void 0,maximum:d?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),t.dirty())}if(r.minLength!==null&&e.data.length<r.minLength.value&&(W(e,{code:S.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),t.dirty()),r.maxLength!==null&&e.data.length>r.maxLength.value&&(W(e,{code:S.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),t.dirty()),e.common.async)return Promise.all([...e.data].map((d,o)=>r.type._parseAsync(new Lr(e,d,e.path,o)))).then(d=>Mt.mergeArray(t,d));const a=[...e.data].map((d,o)=>r.type._parseSync(new Lr(e,d,e.path,o)));return Mt.mergeArray(t,a)}get element(){return this._def.type}min(s,e){return new Dr({...this._def,minLength:{value:s,message:re.toString(e)}})}max(s,e){return new Dr({...this._def,maxLength:{value:s,message:re.toString(e)}})}length(s,e){return new Dr({...this._def,exactLength:{value:s,message:re.toString(e)}})}nonempty(s){return this.min(1,s)}}Dr.create=(i,s)=>new Dr({type:i,minLength:null,maxLength:null,exactLength:null,typeName:le.ZodArray,...ve(s)});function Kn(i){if(i instanceof vt){const s={};for(const e in i.shape){const t=i.shape[e];s[e]=$r.create(Kn(t))}return new vt({...i._def,shape:()=>s})}else return i instanceof Dr?new Dr({...i._def,type:Kn(i.element)}):i instanceof $r?$r.create(Kn(i.unwrap())):i instanceof Ai?Ai.create(Kn(i.unwrap())):i instanceof Ur?Ur.create(i.items.map(s=>Kn(s))):i}class vt extends je{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const s=this._def.shape(),e=Je.objectKeys(s);return this._cached={shape:s,keys:e}}_parse(s){if(this._getType(s)!==H.object){const u=this._getOrReturnCtx(s);return W(u,{code:S.invalid_type,expected:H.object,received:u.parsedType}),ce}const{status:t,ctx:r}=this._processInputParams(s),{shape:a,keys:d}=this._getCached(),o=[];if(!(this._def.catchall instanceof ii&&this._def.unknownKeys==="strip"))for(const u in r.data)d.includes(u)||o.push(u);const l=[];for(const u of d){const h=a[u],c=r.data[u];l.push({key:{status:"valid",value:u},value:h._parse(new Lr(r,c,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof ii){const u=this._def.unknownKeys;if(u==="passthrough")for(const h of o)l.push({key:{status:"valid",value:h},value:{status:"valid",value:r.data[h]}});else if(u==="strict")o.length>0&&(W(r,{code:S.unrecognized_keys,keys:o}),t.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const h of o){const c=r.data[h];l.push({key:{status:"valid",value:h},value:u._parse(new Lr(r,c,r.path,h)),alwaysSet:h in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const u=[];for(const h of l){const c=await h.key,v=await h.value;u.push({key:c,value:v,alwaysSet:h.alwaysSet})}return u}).then(u=>Mt.mergeObjectSync(t,u)):Mt.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(s){return re.errToObj,new vt({...this._def,unknownKeys:"strict",...s!==void 0?{errorMap:(e,t)=>{var r,a,d,o;const l=(d=(a=(r=this._def).errorMap)===null||a===void 0?void 0:a.call(r,e,t).message)!==null&&d!==void 0?d:t.defaultError;return e.code==="unrecognized_keys"?{message:(o=re.errToObj(s).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new vt({...this._def,unknownKeys:"strip"})}passthrough(){return new vt({...this._def,unknownKeys:"passthrough"})}extend(s){return new vt({...this._def,shape:()=>({...this._def.shape(),...s})})}merge(s){return new vt({unknownKeys:s._def.unknownKeys,catchall:s._def.catchall,shape:()=>({...this._def.shape(),...s._def.shape()}),typeName:le.ZodObject})}setKey(s,e){return this.augment({[s]:e})}catchall(s){return new vt({...this._def,catchall:s})}pick(s){const e={};return Je.objectKeys(s).forEach(t=>{s[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new vt({...this._def,shape:()=>e})}omit(s){const e={};return Je.objectKeys(this.shape).forEach(t=>{s[t]||(e[t]=this.shape[t])}),new vt({...this._def,shape:()=>e})}deepPartial(){return Kn(this)}partial(s){const e={};return Je.objectKeys(this.shape).forEach(t=>{const r=this.shape[t];s&&!s[t]?e[t]=r:e[t]=r.optional()}),new vt({...this._def,shape:()=>e})}required(s){const e={};return Je.objectKeys(this.shape).forEach(t=>{if(s&&!s[t])e[t]=this.shape[t];else{let a=this.shape[t];for(;a instanceof $r;)a=a._def.innerType;e[t]=a}}),new vt({...this._def,shape:()=>e})}keyof(){return oI(Je.objectKeys(this.shape))}}vt.create=(i,s)=>new vt({shape:()=>i,unknownKeys:"strip",catchall:ii.create(),typeName:le.ZodObject,...ve(s)}),vt.strictCreate=(i,s)=>new vt({shape:()=>i,unknownKeys:"strict",catchall:ii.create(),typeName:le.ZodObject,...ve(s)}),vt.lazycreate=(i,s)=>new vt({shape:i,unknownKeys:"strip",catchall:ii.create(),typeName:le.ZodObject,...ve(s)});class Fa extends je{_parse(s){const{ctx:e}=this._processInputParams(s),t=this._def.options;function r(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const d=a.map(o=>new Kt(o.ctx.common.issues));return W(e,{code:S.invalid_union,unionErrors:d}),ce}if(e.common.async)return Promise.all(t.map(async a=>{const d={...e,common:{...e.common,issues:[]},parent:null};return{result:await a._parseAsync({data:e.data,path:e.path,parent:d}),ctx:d}})).then(r);{let a;const d=[];for(const l of t){const u={...e,common:{...e.common,issues:[]},parent:null},h=l._parseSync({data:e.data,path:e.path,parent:u});if(h.status==="valid")return h;h.status==="dirty"&&!a&&(a={result:h,ctx:u}),u.common.issues.length&&d.push(u.common.issues)}if(a)return e.common.issues.push(...a.ctx.common.issues),a.result;const o=d.map(l=>new Kt(l));return W(e,{code:S.invalid_union,unionErrors:o}),ce}}get options(){return this._def.options}}Fa.create=(i,s)=>new Fa({options:i,typeName:le.ZodUnion,...ve(s)});const ni=i=>i instanceof ka?ni(i.schema):i instanceof Or?ni(i.innerType()):i instanceof Za?[i.value]:i instanceof Ii?i.options:i instanceof qa?Je.objectValues(i.enum):i instanceof Ja?ni(i._def.innerType):i instanceof ja?[void 0]:i instanceof Ga?[null]:i instanceof $r?[void 0,...ni(i.unwrap())]:i instanceof Ai?[null,...ni(i.unwrap())]:i instanceof ru||i instanceof Ya?ni(i.unwrap()):i instanceof Wa?ni(i._def.innerType):[];class vo extends je{_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==H.object)return W(e,{code:S.invalid_type,expected:H.object,received:e.parsedType}),ce;const t=this.discriminator,r=e.data[t],a=this.optionsMap.get(r);return a?e.common.async?a._parseAsync({data:e.data,path:e.path,parent:e}):a._parseSync({data:e.data,path:e.path,parent:e}):(W(e,{code:S.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ce)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(s,e,t){const r=new Map;for(const a of e){const d=ni(a.shape[s]);if(!d.length)throw new Error(`A discriminator value for key \`${s}\` could not be extracted from all schema options`);for(const o of d){if(r.has(o))throw new Error(`Discriminator property ${String(s)} has duplicate value ${String(o)}`);r.set(o,a)}}return new vo({typeName:le.ZodDiscriminatedUnion,discriminator:s,options:e,optionsMap:r,...ve(t)})}}function tu(i,s){const e=ri(i),t=ri(s);if(i===s)return{valid:!0,data:i};if(e===H.object&&t===H.object){const r=Je.objectKeys(s),a=Je.objectKeys(i).filter(o=>r.indexOf(o)!==-1),d={...i,...s};for(const o of a){const l=tu(i[o],s[o]);if(!l.valid)return{valid:!1};d[o]=l.data}return{valid:!0,data:d}}else if(e===H.array&&t===H.array){if(i.length!==s.length)return{valid:!1};const r=[];for(let a=0;a<i.length;a++){const d=i[a],o=s[a],l=tu(d,o);if(!l.valid)return{valid:!1};r.push(l.data)}return{valid:!0,data:r}}else return e===H.date&&t===H.date&&+i==+s?{valid:!0,data:i}:{valid:!1}}class xa extends je{_parse(s){const{status:e,ctx:t}=this._processInputParams(s),r=(a,d)=>{if(Xl(a)||Xl(d))return ce;const o=tu(a.value,d.value);return o.valid?((Ql(a)||Ql(d))&&e.dirty(),{status:e.value,value:o.data}):(W(t,{code:S.invalid_intersection_types}),ce)};return t.common.async?Promise.all([this._def.left._parseAsync({data:t.data,path:t.path,parent:t}),this._def.right._parseAsync({data:t.data,path:t.path,parent:t})]).then(([a,d])=>r(a,d)):r(this._def.left._parseSync({data:t.data,path:t.path,parent:t}),this._def.right._parseSync({data:t.data,path:t.path,parent:t}))}}xa.create=(i,s,e)=>new xa({left:i,right:s,typeName:le.ZodIntersection,...ve(e)});class Ur extends je{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==H.array)return W(t,{code:S.invalid_type,expected:H.array,received:t.parsedType}),ce;if(t.data.length<this._def.items.length)return W(t,{code:S.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ce;!this._def.rest&&t.data.length>this._def.items.length&&(W(t,{code:S.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const a=[...t.data].map((d,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new Lr(t,d,t.path,o)):null}).filter(d=>!!d);return t.common.async?Promise.all(a).then(d=>Mt.mergeArray(e,d)):Mt.mergeArray(e,a)}get items(){return this._def.items}rest(s){return new Ur({...this._def,rest:s})}}Ur.create=(i,s)=>{if(!Array.isArray(i))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ur({items:i,typeName:le.ZodTuple,rest:null,...ve(s)})};class Sa extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==H.object)return W(t,{code:S.invalid_type,expected:H.object,received:t.parsedType}),ce;const r=[],a=this._def.keyType,d=this._def.valueType;for(const o in t.data)r.push({key:a._parse(new Lr(t,o,t.path,o)),value:d._parse(new Lr(t,t.data[o],t.path,o)),alwaysSet:o in t.data});return t.common.async?Mt.mergeObjectAsync(e,r):Mt.mergeObjectSync(e,r)}get element(){return this._def.valueType}static create(s,e,t){return e instanceof je?new Sa({keyType:s,valueType:e,typeName:le.ZodRecord,...ve(t)}):new Sa({keyType:Rr.create(),valueType:s,typeName:le.ZodRecord,...ve(e)})}}class To extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==H.map)return W(t,{code:S.invalid_type,expected:H.map,received:t.parsedType}),ce;const r=this._def.keyType,a=this._def.valueType,d=[...t.data.entries()].map(([o,l],u)=>({key:r._parse(new Lr(t,o,t.path,[u,"key"])),value:a._parse(new Lr(t,l,t.path,[u,"value"]))}));if(t.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of d){const u=await l.key,h=await l.value;if(u.status==="aborted"||h.status==="aborted")return ce;(u.status==="dirty"||h.status==="dirty")&&e.dirty(),o.set(u.value,h.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const l of d){const u=l.key,h=l.value;if(u.status==="aborted"||h.status==="aborted")return ce;(u.status==="dirty"||h.status==="dirty")&&e.dirty(),o.set(u.value,h.value)}return{status:e.value,value:o}}}}To.create=(i,s,e)=>new To({valueType:s,keyType:i,typeName:le.ZodMap,...ve(e)});class ln extends je{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==H.set)return W(t,{code:S.invalid_type,expected:H.set,received:t.parsedType}),ce;const r=this._def;r.minSize!==null&&t.data.size<r.minSize.value&&(W(t,{code:S.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),e.dirty()),r.maxSize!==null&&t.data.size>r.maxSize.value&&(W(t,{code:S.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),e.dirty());const a=this._def.valueType;function d(l){const u=new Set;for(const h of l){if(h.status==="aborted")return ce;h.status==="dirty"&&e.dirty(),u.add(h.value)}return{status:e.value,value:u}}const o=[...t.data.values()].map((l,u)=>a._parse(new Lr(t,l,t.path,u)));return t.common.async?Promise.all(o).then(l=>d(l)):d(o)}min(s,e){return new ln({...this._def,minSize:{value:s,message:re.toString(e)}})}max(s,e){return new ln({...this._def,maxSize:{value:s,message:re.toString(e)}})}size(s,e){return this.min(s,e).max(s,e)}nonempty(s){return this.min(1,s)}}ln.create=(i,s)=>new ln({valueType:i,minSize:null,maxSize:null,typeName:le.ZodSet,...ve(s)});class Xn extends je{constructor(){super(...arguments),this.validate=this.implement}_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==H.function)return W(e,{code:S.invalid_type,expected:H.function,received:e.parsedType}),ce;function t(o,l){return fo({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,co(),zn].filter(u=>!!u),issueData:{code:S.invalid_arguments,argumentsError:l}})}function r(o,l){return fo({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,co(),zn].filter(u=>!!u),issueData:{code:S.invalid_return_type,returnTypeError:l}})}const a={errorMap:e.common.contextualErrorMap},d=e.data;if(this._def.returns instanceof Qn){const o=this;return xt(async function(...l){const u=new Kt([]),h=await o._def.args.parseAsync(l,a).catch(E=>{throw u.addIssue(t(l,E)),u}),c=await Reflect.apply(d,this,h);return await o._def.returns._def.type.parseAsync(c,a).catch(E=>{throw u.addIssue(r(c,E)),u})})}else{const o=this;return xt(function(...l){const u=o._def.args.safeParse(l,a);if(!u.success)throw new Kt([t(l,u.error)]);const h=Reflect.apply(d,this,u.data),c=o._def.returns.safeParse(h,a);if(!c.success)throw new Kt([r(h,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...s){return new Xn({...this._def,args:Ur.create(s).rest(dn.create())})}returns(s){return new Xn({...this._def,returns:s})}implement(s){return this.parse(s)}strictImplement(s){return this.parse(s)}static create(s,e,t){return new Xn({args:s||Ur.create([]).rest(dn.create()),returns:e||dn.create(),typeName:le.ZodFunction,...ve(t)})}}class ka extends je{get schema(){return this._def.getter()}_parse(s){const{ctx:e}=this._processInputParams(s);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}ka.create=(i,s)=>new ka({getter:i,typeName:le.ZodLazy,...ve(s)});class Za extends je{_parse(s){if(s.data!==this._def.value){const e=this._getOrReturnCtx(s);return W(e,{received:e.data,code:S.invalid_literal,expected:this._def.value}),ce}return{status:"valid",value:s.data}}get value(){return this._def.value}}Za.create=(i,s)=>new Za({value:i,typeName:le.ZodLiteral,...ve(s)});function oI(i,s){return new Ii({values:i,typeName:le.ZodEnum,...ve(s)})}class Ii extends je{constructor(){super(...arguments),La.set(this,void 0)}_parse(s){if(typeof s.data!="string"){const e=this._getOrReturnCtx(s),t=this._def.values;return W(e,{expected:Je.joinValues(t),received:e.parsedType,code:S.invalid_type}),ce}if(yo(this,La,"f")||rI(this,La,new Set(this._def.values),"f"),!yo(this,La,"f").has(s.data)){const e=this._getOrReturnCtx(s),t=this._def.values;return W(e,{received:e.data,code:S.invalid_enum_value,options:t}),ce}return xt(s.data)}get options(){return this._def.values}get enum(){const s={};for(const e of this._def.values)s[e]=e;return s}get Values(){const s={};for(const e of this._def.values)s[e]=e;return s}get Enum(){const s={};for(const e of this._def.values)s[e]=e;return s}extract(s,e=this._def){return Ii.create(s,{...this._def,...e})}exclude(s,e=this._def){return Ii.create(this.options.filter(t=>!s.includes(t)),{...this._def,...e})}}La=new WeakMap,Ii.create=oI;class qa extends je{constructor(){super(...arguments),Ua.set(this,void 0)}_parse(s){const e=Je.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(s);if(t.parsedType!==H.string&&t.parsedType!==H.number){const r=Je.objectValues(e);return W(t,{expected:Je.joinValues(r),received:t.parsedType,code:S.invalid_type}),ce}if(yo(this,Ua,"f")||rI(this,Ua,new Set(Je.getValidEnumValues(this._def.values)),"f"),!yo(this,Ua,"f").has(s.data)){const r=Je.objectValues(e);return W(t,{received:t.data,code:S.invalid_enum_value,options:r}),ce}return xt(s.data)}get enum(){return this._def.values}}Ua=new WeakMap,qa.create=(i,s)=>new qa({values:i,typeName:le.ZodNativeEnum,...ve(s)});class Qn extends je{unwrap(){return this._def.type}_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==H.promise&&e.common.async===!1)return W(e,{code:S.invalid_type,expected:H.promise,received:e.parsedType}),ce;const t=e.parsedType===H.promise?e.data:Promise.resolve(e.data);return xt(t.then(r=>this._def.type.parseAsync(r,{path:e.path,errorMap:e.common.contextualErrorMap})))}}Qn.create=(i,s)=>new Qn({type:i,typeName:le.ZodPromise,...ve(s)});class Or extends je{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===le.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(s){const{status:e,ctx:t}=this._processInputParams(s),r=this._def.effect||null,a={addIssue:d=>{W(t,d),d.fatal?e.abort():e.dirty()},get path(){return t.path}};if(a.addIssue=a.addIssue.bind(a),r.type==="preprocess"){const d=r.transform(t.data,a);if(t.common.async)return Promise.resolve(d).then(async o=>{if(e.value==="aborted")return ce;const l=await this._def.schema._parseAsync({data:o,path:t.path,parent:t});return l.status==="aborted"?ce:l.status==="dirty"||e.value==="dirty"?Yn(l.value):l});{if(e.value==="aborted")return ce;const o=this._def.schema._parseSync({data:d,path:t.path,parent:t});return o.status==="aborted"?ce:o.status==="dirty"||e.value==="dirty"?Yn(o.value):o}}if(r.type==="refinement"){const d=o=>{const l=r.refinement(o,a);if(t.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return o.status==="aborted"?ce:(o.status==="dirty"&&e.dirty(),d(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>o.status==="aborted"?ce:(o.status==="dirty"&&e.dirty(),d(o.value).then(()=>({status:e.value,value:o.value}))))}if(r.type==="transform")if(t.common.async===!1){const d=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!sn(d))return d;const o=r.transform(d.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(d=>sn(d)?Promise.resolve(r.transform(d.value,a)).then(o=>({status:e.value,value:o})):d);Je.assertNever(r)}}Or.create=(i,s,e)=>new Or({schema:i,typeName:le.ZodEffects,effect:s,...ve(e)}),Or.createWithPreprocess=(i,s,e)=>new Or({schema:s,effect:{type:"preprocess",transform:i},typeName:le.ZodEffects,...ve(e)});class $r extends je{_parse(s){return this._getType(s)===H.undefined?xt(void 0):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}$r.create=(i,s)=>new $r({innerType:i,typeName:le.ZodOptional,...ve(s)});class Ai extends je{_parse(s){return this._getType(s)===H.null?xt(null):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}Ai.create=(i,s)=>new Ai({innerType:i,typeName:le.ZodNullable,...ve(s)});class Ja extends je{_parse(s){const{ctx:e}=this._processInputParams(s);let t=e.data;return e.parsedType===H.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Ja.create=(i,s)=>new Ja({innerType:i,typeName:le.ZodDefault,defaultValue:typeof s.default=="function"?s.default:()=>s.default,...ve(s)});class Wa extends je{_parse(s){const{ctx:e}=this._processInputParams(s),t={...e,common:{...e.common,issues:[]}},r=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return Na(r)?r.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Kt(t.common.issues)},input:t.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Kt(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}Wa.create=(i,s)=>new Wa({innerType:i,typeName:le.ZodCatch,catchValue:typeof s.catch=="function"?s.catch:()=>s.catch,...ve(s)});class Eo extends je{_parse(s){if(this._getType(s)!==H.nan){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.nan,received:t.parsedType}),ce}return{status:"valid",value:s.data}}}Eo.create=i=>new Eo({typeName:le.ZodNaN,...ve(i)});const Iw=Symbol("zod_brand");class ru extends je{_parse(s){const{ctx:e}=this._processInputParams(s),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class za extends je{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return a.status==="aborted"?ce:a.status==="dirty"?(e.dirty(),Yn(a.value)):this._def.out._parseAsync({data:a.value,path:t.path,parent:t})})();{const r=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return r.status==="aborted"?ce:r.status==="dirty"?(e.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:t.path,parent:t})}}static create(s,e){return new za({in:s,out:e,typeName:le.ZodPipeline})}}class Ya extends je{_parse(s){const e=this._def.innerType._parse(s),t=r=>(sn(r)&&(r.value=Object.freeze(r.value)),r);return Na(e)?e.then(r=>t(r)):t(e)}unwrap(){return this._def.innerType}}Ya.create=(i,s)=>new Ya({innerType:i,typeName:le.ZodReadonly,...ve(s)});function dI(i,s={},e){return i?Hn.create().superRefine((t,r)=>{var a,d;if(!i(t)){const o=typeof s=="function"?s(t):typeof s=="string"?{message:s}:s,l=(d=(a=o.fatal)!==null&&a!==void 0?a:e)!==null&&d!==void 0?d:!0,u=typeof o=="string"?{message:o}:o;r.addIssue({code:"custom",...u,fatal:l})}}):Hn.create()}const Aw={object:vt.lazycreate};var le;(function(i){i.ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly"})(le||(le={}));const bw=(i,s={message:`Input not instance of ${i.name}`})=>dI(e=>e instanceof i,s),Io=Rr.create,iu=Ti.create,Rw=Eo.create,Dw=Ei.create,nu=$a.create,lI=on.create,Ow=ho.create,Pw=ja.create,uI=Ga.create,ww=Hn.create,Ao=dn.create,Vw=ii.create,Cw=mo.create,Bw=Dr.create,pI=vt.create,_w=vt.strictCreate,Mw=Fa.create,gw=vo.create,Nw=xa.create,Lw=Ur.create,cI=Sa.create,Uw=To.create,$w=ln.create,jw=Xn.create,Gw=ka.create,Fw=Za.create,fI=Ii.create,xw=qa.create,Sw=Qn.create,yI=Or.create,kw=$r.create,Zw=Ai.create,qw=Or.createWithPreprocess,Jw=za.create;var m=Object.freeze({__proto__:null,defaultErrorMap:zn,setErrorMap:KP,getErrorMap:co,makeIssue:fo,EMPTY_PATH:XP,addIssueToContext:W,ParseStatus:Mt,INVALID:ce,DIRTY:Yn,OK:xt,isAborted:Xl,isDirty:Ql,isValid:sn,isAsync:Na,get util(){return Je},get objectUtil(){return Kl},ZodParsedType:H,getParsedType:ri,ZodType:je,datetimeRegex:sI,ZodString:Rr,ZodNumber:Ti,ZodBigInt:Ei,ZodBoolean:$a,ZodDate:on,ZodSymbol:ho,ZodUndefined:ja,ZodNull:Ga,ZodAny:Hn,ZodUnknown:dn,ZodNever:ii,ZodVoid:mo,ZodArray:Dr,ZodObject:vt,ZodUnion:Fa,ZodDiscriminatedUnion:vo,ZodIntersection:xa,ZodTuple:Ur,ZodRecord:Sa,ZodMap:To,ZodSet:ln,ZodFunction:Xn,ZodLazy:ka,ZodLiteral:Za,ZodEnum:Ii,ZodNativeEnum:qa,ZodPromise:Qn,ZodEffects:Or,ZodTransformer:Or,ZodOptional:$r,ZodNullable:Ai,ZodDefault:Ja,ZodCatch:Wa,ZodNaN:Eo,BRAND:Iw,ZodBranded:ru,ZodPipeline:za,ZodReadonly:Ya,custom:dI,Schema:je,ZodSchema:je,late:Aw,get ZodFirstPartyTypeKind(){return le},coerce:{string:i=>Rr.create({...i,coerce:!0}),number:i=>Ti.create({...i,coerce:!0}),boolean:i=>$a.create({...i,coerce:!0}),bigint:i=>Ei.create({...i,coerce:!0}),date:i=>on.create({...i,coerce:!0})},any:ww,array:Bw,bigint:Dw,boolean:nu,date:lI,discriminatedUnion:gw,effect:yI,enum:fI,function:jw,instanceof:bw,intersection:Nw,lazy:Gw,literal:Fw,map:Uw,nan:Rw,nativeEnum:xw,never:Vw,null:uI,nullable:Zw,number:iu,object:pI,oboolean:()=>nu().optional(),onumber:()=>iu().optional(),optional:kw,ostring:()=>Io().optional(),pipeline:Jw,preprocess:qw,promise:Sw,record:cI,set:$w,strictObject:_w,string:Io,symbol:Ow,transformer:yI,tuple:Lw,undefined:Pw,union:Mw,unknown:Ao,void:Cw,NEVER:ce,ZodIssueCode:S,quotelessJson:HP,ZodError:Kt});function hI(i){var r,a,d;if(!(i!=null&&i.dataType))return Ao();const s=!i.required,e=i.dataType.isList||!1;let t=Ao();if(((r=i.dataType.entity)==null?void 0:r.type)===n.PrimitiveEntity)switch(i.dataType.entity.name){case g.String:t=Io();break;case g.KeyValue:t=cI(Ao());break;case g.Number:t=iu();break;case g.Boolean:t=nu();break;case g.Date:t=lI();break;case g.Enum:{const o=i.dataType.options||[];if(o.length===0)throw new Error(`Enum property ${i.name} has no options`);t=fI(o);break}case g.Null:t=uI();break;case g.UUID:t=Io().uuid();break}else if(((a=i.dataType.entity)==null?void 0:a.type)===n.DefinitionEntity)t=mI(i.dataType.entity);else throw new Error(`Unsupported data type validation: ${(d=i.dataType.entity)==null?void 0:d.type}`);return s&&(t=t.nullable()),e&&(t=t.array()),t}function mI(i){const s=pI({});for(const e of i.properties){const t=hI(e);s.shape[e.name]=t}return s}function vI(i){const s=i.rangeStart;return new Date(s.getTime()+Math.random()*(Date.now()-s.getTime()))}function TI(i){const s=i.rangeEnd;return new Date(Math.random()*s.getTime())}function EI(i){const s=i.rangeStart,e=i.rangeEnd;return new Date(s.getTime()+Math.random()*(e.getTime()-s.getTime()))}function II(i){return i.rangeStart&&i.rangeEnd?EI(i):i.rangeStart?vI(i):i.rangeEnd?TI(i):new Date}var Ww=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AI(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var bI={},bo={},Ro={};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=Yw;let Do;const zw=new Uint8Array(16);function Yw(){if(!Do&&(Do=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Do))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Do(zw)}var bi={},un={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var Hw=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Oo.default=Hw,Object.defineProperty(un,"__esModule",{value:!0}),un.default=void 0;var Kw=Xw(Oo);function Xw(i){return i&&i.__esModule?i:{default:i}}function Qw(i){return typeof i=="string"&&Kw.default.test(i)}var eV=Qw;un.default=eV,Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=void 0,bi.unsafeStringify=RI;var tV=rV(un);function rV(i){return i&&i.__esModule?i:{default:i}}const _t=[];for(let i=0;i<256;++i)_t.push((i+256).toString(16).slice(1));function RI(i,s=0){return _t[i[s+0]]+_t[i[s+1]]+_t[i[s+2]]+_t[i[s+3]]+"-"+_t[i[s+4]]+_t[i[s+5]]+"-"+_t[i[s+6]]+_t[i[s+7]]+"-"+_t[i[s+8]]+_t[i[s+9]]+"-"+_t[i[s+10]]+_t[i[s+11]]+_t[i[s+12]]+_t[i[s+13]]+_t[i[s+14]]+_t[i[s+15]]}function iV(i,s=0){const e=RI(i,s);if(!(0,tV.default)(e))throw TypeError("Stringified UUID is invalid");return e}var nV=iV;bi.default=nV,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var aV=oV(Ro),sV=bi;function oV(i){return i&&i.__esModule?i:{default:i}}let DI,au,su=0,ou=0;function dV(i,s,e){let t=s&&e||0;const r=s||new Array(16);i=i||{};let a=i.node||DI,d=i.clockseq!==void 0?i.clockseq:au;if(a==null||d==null){const v=i.random||(i.rng||aV.default)();a==null&&(a=DI=[v[0]|1,v[1],v[2],v[3],v[4],v[5]]),d==null&&(d=au=(v[6]<<8|v[7])&16383)}let o=i.msecs!==void 0?i.msecs:Date.now(),l=i.nsecs!==void 0?i.nsecs:ou+1;const u=o-su+(l-ou)/1e4;if(u<0&&i.clockseq===void 0&&(d=d+1&16383),(u<0||o>su)&&i.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");su=o,ou=l,au=d,o+=122192928e5;const h=((o&268435455)*1e4+l)%4294967296;r[t++]=h>>>24&255,r[t++]=h>>>16&255,r[t++]=h>>>8&255,r[t++]=h&255;const c=o/4294967296*1e4&268435455;r[t++]=c>>>8&255,r[t++]=c&255,r[t++]=c>>>24&15|16,r[t++]=c>>>16&255,r[t++]=d>>>8|128,r[t++]=d&255;for(let v=0;v<6;++v)r[t+v]=a[v];return s||(0,sV.unsafeStringify)(r)}var lV=dV;bo.default=lV;var Po={},Ri={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=void 0;var uV=pV(un);function pV(i){return i&&i.__esModule?i:{default:i}}function cV(i){if(!(0,uV.default)(i))throw TypeError("Invalid UUID");let s;const e=new Uint8Array(16);return e[0]=(s=parseInt(i.slice(0,8),16))>>>24,e[1]=s>>>16&255,e[2]=s>>>8&255,e[3]=s&255,e[4]=(s=parseInt(i.slice(9,13),16))>>>8,e[5]=s&255,e[6]=(s=parseInt(i.slice(14,18),16))>>>8,e[7]=s&255,e[8]=(s=parseInt(i.slice(19,23),16))>>>8,e[9]=s&255,e[10]=(s=parseInt(i.slice(24,36),16))/1099511627776&255,e[11]=s/4294967296&255,e[12]=s>>>24&255,e[13]=s>>>16&255,e[14]=s>>>8&255,e[15]=s&255,e}var fV=cV;Ha.default=fV,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.URL=Ri.DNS=void 0,Ri.default=TV;var yV=bi,hV=mV(Ha);function mV(i){return i&&i.__esModule?i:{default:i}}function vV(i){i=unescape(encodeURIComponent(i));const s=[];for(let e=0;e<i.length;++e)s.push(i.charCodeAt(e));return s}const OI="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Ri.DNS=OI;const PI="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Ri.URL=PI;function TV(i,s,e){function t(r,a,d,o){var l;if(typeof r=="string"&&(r=vV(r)),typeof a=="string"&&(a=(0,hV.default)(a)),((l=a)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+r.length);if(u.set(a),u.set(r,a.length),u=e(u),u[6]=u[6]&15|s,u[8]=u[8]&63|128,d){o=o||0;for(let h=0;h<16;++h)d[o+h]=u[h];return d}return(0,yV.unsafeStringify)(u)}try{t.name=i}catch{}return t.DNS=OI,t.URL=PI,t}var wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0;function EV(i){if(typeof i=="string"){const s=unescape(encodeURIComponent(i));i=new Uint8Array(s.length);for(let e=0;e<s.length;++e)i[e]=s.charCodeAt(e)}return IV(AV(bV(i),i.length*8))}function IV(i){const s=[],e=i.length*32,t="0123456789abcdef";for(let r=0;r<e;r+=8){const a=i[r>>5]>>>r%32&255,d=parseInt(t.charAt(a>>>4&15)+t.charAt(a&15),16);s.push(d)}return s}function wI(i){return(i+64>>>9<<4)+14+1}function AV(i,s){i[s>>5]|=128<<s%32,i[wI(s)-1]=s;let e=1732584193,t=-271733879,r=-1732584194,a=271733878;for(let d=0;d<i.length;d+=16){const o=e,l=t,u=r,h=a;e=gt(e,t,r,a,i[d],7,-680876936),a=gt(a,e,t,r,i[d+1],12,-389564586),r=gt(r,a,e,t,i[d+2],17,606105819),t=gt(t,r,a,e,i[d+3],22,-1044525330),e=gt(e,t,r,a,i[d+4],7,-176418897),a=gt(a,e,t,r,i[d+5],12,1200080426),r=gt(r,a,e,t,i[d+6],17,-1473231341),t=gt(t,r,a,e,i[d+7],22,-45705983),e=gt(e,t,r,a,i[d+8],7,1770035416),a=gt(a,e,t,r,i[d+9],12,-1958414417),r=gt(r,a,e,t,i[d+10],17,-42063),t=gt(t,r,a,e,i[d+11],22,-1990404162),e=gt(e,t,r,a,i[d+12],7,1804603682),a=gt(a,e,t,r,i[d+13],12,-40341101),r=gt(r,a,e,t,i[d+14],17,-1502002290),t=gt(t,r,a,e,i[d+15],22,1236535329),e=Nt(e,t,r,a,i[d+1],5,-165796510),a=Nt(a,e,t,r,i[d+6],9,-1069501632),r=Nt(r,a,e,t,i[d+11],14,643717713),t=Nt(t,r,a,e,i[d],20,-373897302),e=Nt(e,t,r,a,i[d+5],5,-701558691),a=Nt(a,e,t,r,i[d+10],9,38016083),r=Nt(r,a,e,t,i[d+15],14,-660478335),t=Nt(t,r,a,e,i[d+4],20,-405537848),e=Nt(e,t,r,a,i[d+9],5,568446438),a=Nt(a,e,t,r,i[d+14],9,-1019803690),r=Nt(r,a,e,t,i[d+3],14,-187363961),t=Nt(t,r,a,e,i[d+8],20,1163531501),e=Nt(e,t,r,a,i[d+13],5,-1444681467),a=Nt(a,e,t,r,i[d+2],9,-51403784),r=Nt(r,a,e,t,i[d+7],14,1735328473),t=Nt(t,r,a,e,i[d+12],20,-1926607734),e=Lt(e,t,r,a,i[d+5],4,-378558),a=Lt(a,e,t,r,i[d+8],11,-2022574463),r=Lt(r,a,e,t,i[d+11],16,1839030562),t=Lt(t,r,a,e,i[d+14],23,-35309556),e=Lt(e,t,r,a,i[d+1],4,-1530992060),a=Lt(a,e,t,r,i[d+4],11,1272893353),r=Lt(r,a,e,t,i[d+7],16,-155497632),t=Lt(t,r,a,e,i[d+10],23,-1094730640),e=Lt(e,t,r,a,i[d+13],4,681279174),a=Lt(a,e,t,r,i[d],11,-358537222),r=Lt(r,a,e,t,i[d+3],16,-722521979),t=Lt(t,r,a,e,i[d+6],23,76029189),e=Lt(e,t,r,a,i[d+9],4,-640364487),a=Lt(a,e,t,r,i[d+12],11,-421815835),r=Lt(r,a,e,t,i[d+15],16,530742520),t=Lt(t,r,a,e,i[d+2],23,-995338651),e=Ut(e,t,r,a,i[d],6,-198630844),a=Ut(a,e,t,r,i[d+7],10,1126891415),r=Ut(r,a,e,t,i[d+14],15,-1416354905),t=Ut(t,r,a,e,i[d+5],21,-57434055),e=Ut(e,t,r,a,i[d+12],6,1700485571),a=Ut(a,e,t,r,i[d+3],10,-1894986606),r=Ut(r,a,e,t,i[d+10],15,-1051523),t=Ut(t,r,a,e,i[d+1],21,-2054922799),e=Ut(e,t,r,a,i[d+8],6,1873313359),a=Ut(a,e,t,r,i[d+15],10,-30611744),r=Ut(r,a,e,t,i[d+6],15,-1560198380),t=Ut(t,r,a,e,i[d+13],21,1309151649),e=Ut(e,t,r,a,i[d+4],6,-145523070),a=Ut(a,e,t,r,i[d+11],10,-1120210379),r=Ut(r,a,e,t,i[d+2],15,718787259),t=Ut(t,r,a,e,i[d+9],21,-343485551),e=Di(e,o),t=Di(t,l),r=Di(r,u),a=Di(a,h)}return[e,t,r,a]}function bV(i){if(i.length===0)return[];const s=i.length*8,e=new Uint32Array(wI(s));for(let t=0;t<s;t+=8)e[t>>5]|=(i[t/8]&255)<<t%32;return e}function Di(i,s){const e=(i&65535)+(s&65535);return(i>>16)+(s>>16)+(e>>16)<<16|e&65535}function RV(i,s){return i<<s|i>>>32-s}function Vo(i,s,e,t,r,a){return Di(RV(Di(Di(s,i),Di(t,a)),r),e)}function gt(i,s,e,t,r,a,d){return Vo(s&e|~s&t,i,s,r,a,d)}function Nt(i,s,e,t,r,a,d){return Vo(s&t|e&~t,i,s,r,a,d)}function Lt(i,s,e,t,r,a,d){return Vo(s^e^t,i,s,r,a,d)}function Ut(i,s,e,t,r,a,d){return Vo(e^(s|~t),i,s,r,a,d)}var DV=EV;wo.default=DV,Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=void 0;var OV=VI(Ri),PV=VI(wo);function VI(i){return i&&i.__esModule?i:{default:i}}var wV=(0,OV.default)("v3",48,PV.default);Po.default=wV;var Co={},Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var VV={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Bo.default=VV,Object.defineProperty(Co,"__esModule",{value:!0}),Co.default=void 0;var CI=BI(Bo),CV=BI(Ro),BV=bi;function BI(i){return i&&i.__esModule?i:{default:i}}function _V(i,s,e){if(CI.default.randomUUID&&!s&&!i)return CI.default.randomUUID();i=i||{};const t=i.random||(i.rng||CV.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,s){e=e||0;for(let r=0;r<16;++r)s[e+r]=t[r];return s}return(0,BV.unsafeStringify)(t)}var MV=_V;Co.default=MV;var _o={},Mo={};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=void 0;function gV(i,s,e,t){switch(i){case 0:return s&e^~s&t;case 1:return s^e^t;case 2:return s&e^s&t^e&t;case 3:return s^e^t}}function du(i,s){return i<<s|i>>>32-s}function NV(i){const s=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){const d=unescape(encodeURIComponent(i));i=[];for(let o=0;o<d.length;++o)i.push(d.charCodeAt(o))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);const t=i.length/4+2,r=Math.ceil(t/16),a=new Array(r);for(let d=0;d<r;++d){const o=new Uint32Array(16);for(let l=0;l<16;++l)o[l]=i[d*64+l*4]<<24|i[d*64+l*4+1]<<16|i[d*64+l*4+2]<<8|i[d*64+l*4+3];a[d]=o}a[r-1][14]=(i.length-1)*8/Math.pow(2,32),a[r-1][14]=Math.floor(a[r-1][14]),a[r-1][15]=(i.length-1)*8&4294967295;for(let d=0;d<r;++d){const o=new Uint32Array(80);for(let E=0;E<16;++E)o[E]=a[d][E];for(let E=16;E<80;++E)o[E]=du(o[E-3]^o[E-8]^o[E-14]^o[E-16],1);let l=e[0],u=e[1],h=e[2],c=e[3],v=e[4];for(let E=0;E<80;++E){const O=Math.floor(E/20),w=du(l,5)+gV(O,u,h,c)+v+s[O]+o[E]>>>0;v=c,c=h,h=du(u,30)>>>0,u=l,l=w}e[0]=e[0]+l>>>0,e[1]=e[1]+u>>>0,e[2]=e[2]+h>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+v>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var LV=NV;Mo.default=LV,Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0;var UV=_I(Ri),$V=_I(Mo);function _I(i){return i&&i.__esModule?i:{default:i}}var jV=(0,UV.default)("v5",80,$V.default);_o.default=jV;var go={};Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var GV="00000000-0000-0000-0000-000000000000";go.default=GV;var No={};Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var FV=xV(un);function xV(i){return i&&i.__esModule?i:{default:i}}function SV(i){if(!(0,FV.default)(i))throw TypeError("Invalid UUID");return parseInt(i.slice(14,15),16)}var kV=SV;No.default=kV,function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(i,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(i,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(i,"v1",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(i,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(i,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(i,"v5",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(i,"validate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"version",{enumerable:!0,get:function(){return d.default}});var s=h(bo),e=h(Po),t=h(Co),r=h(_o),a=h(go),d=h(No),o=h(un),l=h(bi),u=h(Ha);function h(c){return c&&c.__esModule?c:{default:c}}}(bI);function lu(i,s){if(!i||!s||!i.length||!s.length)throw new Error("Bad alphabet");this.srcAlphabet=i,this.dstAlphabet=s}lu.prototype.convert=function(i){var s,e,t,r={},a=this.srcAlphabet.length,d=this.dstAlphabet.length,o=i.length,l=typeof i=="string"?"":[];if(!this.isValid(i))throw new Error('Number "'+i+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return i;for(s=0;s<o;s++)r[s]=this.srcAlphabet.indexOf(i[s]);do{for(e=0,t=0,s=0;s<o;s++)e=e*a+r[s],e>=d?(r[t++]=parseInt(e/d,10),e=e%d):t>0&&(r[t++]=0);o=t,l=this.dstAlphabet.slice(e,e+1).concat(l)}while(t!==0);return l},lu.prototype.isValid=function(i){for(var s=0;s<i.length;++s)if(this.srcAlphabet.indexOf(i[s])===-1)return!1;return!0};var ZV=lu,qV=ZV;function Ka(i,s){var e=new qV(i,s);return function(t){return e.convert(t)}}Ka.BIN="01",Ka.OCT="01234567",Ka.DEC="0123456789",Ka.HEX="0123456789abcdef";var JV=Ka;const{v4:uu,validate:WV}=bI,Lo=JV,pu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},zV={consistentLength:!0};let cu;const MI=(i,s,e)=>{const t=s(i.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},gI=(i,s)=>{const t=s(i).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[t[1],t[2],t[3],t[4],t[5]].join("-")},YV=i=>Math.ceil(Math.log(2**128)/Math.log(i));var HV=(()=>{const i=(s,e)=>{const t=s||pu.flickrBase58,r={...zV,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const a=YV(t.length),d={shortIdLength:a,consistentLength:r.consistentLength,paddingChar:t[0]},o=Lo(Lo.HEX,t),l=Lo(t,Lo.HEX),u=()=>MI(uu(),o,d),c={alphabet:t,fromUUID:v=>MI(v,o,d),maxLength:a,generate:u,new:u,toUUID:v=>gI(v,l),uuid:uu,validate:(v,E=!1)=>{if(!v||typeof v!="string")return!1;const O=r.consistentLength?v.length===a:v.length<=a,w=v.split("").every(C=>t.includes(C));return E===!1?O&&w:O&&w&&WV(gI(v,l))}};return Object.freeze(c),c};return i.constants=pu,i.uuid=uu,i.generate=()=>(cu||(cu=i(pu.flickrBase58).generate),cu()),i})();const Uo=AI(HV);function NI(){return Uo().uuid()}function LI(i){return i.rangeStart+Math.random()}function UI(i){const s=i.rangeEnd;return Math.random()*s}function $I(i){const s=i.rangeStart,e=i.rangeEnd;return Math.random()*(e-s)+s}function jI(i){return i.rangeStart&&i.rangeEnd?$I(i):i.rangeStart?LI(i):i.rangeEnd?UI(i):Math.random()}function GI(i){const s=i.rangeStart;return Math.random().toString(36).substring(s)}function FI(i){const s=i.rangeEnd;return Math.random().toString(36).substring(0,s)}function xI(i){const s=i.rangeStart,e=i.rangeEnd;return Math.random().toString(36).substring(s,e)}function SI(i){return i.rangeStart&&i.rangeEnd?xI(i):i.rangeStart?GI(i):i.rangeEnd?FI(i):Math.random().toString(36)}function kI(i){return Math.random()>=.5}function KV(i){if(!i||!i.autogeneration)return null;switch(i.autogeneration.type){case yt.CurrentDateAndTime:if(i.name===g.Date)return new Date;case yt.Random:{if(i.name===g.Date)return II(i.autogeneration);if(i.name===g.Number)return jI(i.autogeneration);if(i.name===g.String)return SI(i.autogeneration);if(i.name===g.Boolean)return kI(i.autogeneration)}case yt.Unique:if(i.name===g.UUID)return NI();default:throw new Error(`Generating a ${i.autogeneration.type} value for a ${i.name} is not supported`)}}const ue="e7eb5382-3d99-44fd-972a-b8b1e819f6be",ZI="global-user-variable-id",fu="last-executed-timestamp-variable-id",XV={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.ValueDescriptor},QV={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},eC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:QV},$o={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},tC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:io,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:null,parent:XV,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:eC,description:"The name of the main database inside of the server instance where the data will be stored.",parent:$o};n.GenericReference,n.ValueDescriptor;const rC={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:n.Property},iC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:rC},nC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:no,static:!0,index:1,defaultValue:null,dataType:iC,description:"The username that will be used to connect to the database.",parent:$o};n.GenericReference,n.ValueDescriptor;const aC={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:n.Property},sC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:aC},oC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ao,static:!0,index:2,defaultValue:null,dataType:sC,description:"The password that will be used to connect to the database.",parent:$o},dC={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.ValueDescriptor},lC={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},uC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:lC},pC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:so,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,value:6,parent:dC,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:uC,description:"The minimum size of the database in GB.",parent:$o},cC={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},yu={id:"alternative-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[tC,nC,oC,pC],methods:[],abstractMethods:[],extends:[],implements:[Nr],x:0,y:0,parent:cC},fC={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},yC={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},hC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:fC},mC={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:n.DefinitionEntity},vC={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Zn,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:yu,autogeneration:null,parent:yC},dataType:hC,description:"The database that the entity belongs to.",parent:mC},TC={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},EC={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:TC},IC={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},AC={constant:!1,hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the animal",defaultValue:null,implements:qn,static:!1,private:!1,index:0,dataType:EC,abstract:!1,parent:IC},bC={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:n.Project,entityId:ue},RC={type:n.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[vC,AC],methods:[],extends:[],implements:[Ot],x:0,y:0,parent:bC},Xa="base-table-entity",qI="base-table-entity-identifier-property-id";n.GenericReference,n.Property,n.GenericReference,n.Property;const DC={id:"base-table-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:qI,version:"1",entityType:n.Property},OC={id:"base-table-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:n.Property},PC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parent:OC},wC={id:"base-table-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:Xa,version:"1",entityType:n.DefinitionEntity};n.Property,n.LiteralValue,g.UUID,yt.Unique,n.GenericReference,n.Property;const VC={id:"base-table-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:n.Property},CC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:_r,asType:!1,parent:VC},BC={id:"base-table-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:Xa,version:"1",entityType:n.DefinitionEntity},_C={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:CC,description:"The date and time when the entity was deleted.",parent:BC};n.GenericReference,n.Property;const MC={id:"base-table-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:n.Property},gC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:_r,asType:!1,parent:MC},NC={id:"base-table-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:Xa,version:"1",entityType:n.DefinitionEntity},LC={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:gC,description:"The date and time when the entity was created.",parent:NC};n.GenericReference,n.Property;const UC={id:"base-table-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:n.Property},$C={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:_r,asType:!1,parent:UC},jC={id:"base-table-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:Xa,version:"1",entityType:n.DefinitionEntity},GC={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:$C,description:"The date and time when the entity was last updated.",parent:jC},FC={id:"base-table-entity-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},lr={id:Xa,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:"Base database table format",type:n.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[_C,LC,GC],methods:[],extends:[],x:0,y:0,parent:FC},xC={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},SC={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},kC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:SC},ea={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},ZC={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:io,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"main",parent:xC,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:kC,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ea};n.GenericReference,n.Property;const qC={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},JC={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},WC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:qC},zC={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:no,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"root",parent:JC,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:WC,description:"The username that will be used to connect to the database.",parent:ea};n.GenericReference,n.Property;const YC={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},HC={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},KC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:YC},XC={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ao,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"password",parent:HC,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:KC,description:"The password that will be used to connect to the database.",parent:ea},QC={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},eB={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},tB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:eB},rB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:so,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,value:6,parent:QC,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:tB,description:"The minimum size of the database in GB.",parent:ea},iB={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},nB={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},aB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:nB},sB={constant:!1,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,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:n.Property,private:!1,abstract:!1,implements:ql,static:!0,index:4,dataType:aB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,value:!0,parent:iB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:ea},oB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},dB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},lB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:dB},uB={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jl,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,value:!0,parent:oB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:lB,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ea},pB={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},hu={id:"default-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[sB,uB,ZC,zC,XC,rB],methods:[],abstractMethods:[],extends:[],implements:[Nr],x:0,y:0,parent:pB},cB={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},fB={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},yB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:fB},hB={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},mB={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Zn,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:hu,autogeneration:null,parent:cB},dataType:yB,description:"The database that the entity belongs to.",parent:hB},vB={type:n.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},TB={id:"user-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},EB={id:"user-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},IB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parent:EB},AB={id:"user-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},bB={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:qn,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.UUID,value:null,parent:TB,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:IB,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:AB},mu={type:n.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"User",description:"A user of the application",implements:[Ot,lr],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[mB,bB],methods:[],x:0,y:0,parent:vB},RB={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"person-date-of-birth-property-id"},DB={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:_r,isList:!1,asType:!1,parent:RB},OB={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},PB={constant:!1,hidden:!1,required:!0,type:n.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:DB,abstract:!1,parent:OB},wB={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},VB={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:wB},CB={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},BB={constant:!1,hidden:!1,required:!0,type:n.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:VB,abstract:!1,parent:CB},_B={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:n.Project,entityId:ue},St={type:n.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:[BB,PB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[mu],x:0,y:0,parent:_B},MB={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},gB={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},NB={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},LB={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},UB={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:LB},vu={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:UB,implements:null,readsValue:NB,required:!0,index:0,parent:gB},$B={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},jB={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},GB={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vu],calledByError:[],calledByEntry:[$B],calledBySuccess:[],throws:null,x:0,y:0,parent:jB},FB={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},xB={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:FB},JI={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",description:null,defaultValue:null,dataType:xB,implements:null,required:!0,writesValues:[vu],index:0,parent:MB},SB={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},WI={type:n.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",description:null,implements:null,inputs:[JI],calls:[GB],index:0,collapsed:!1,private:!1,x:0,y:0,parent:SB},kB={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},ZB={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,asType:!1,isList:!1,parent:kB},qB={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},JB={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},WB={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:ZB,readsValue:qB,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:JB},zB={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},YB={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vu,defaultValue:null,writesValues:[WB],index:0,parent:zB},HB={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},KB={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},XB={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},QB={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,asType:!1,isList:!1,parent:XB},e_={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},t_={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},r_={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},i_={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},zI={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:JI,name:null,description:null,readsValue:i_,defaultValue:null,index:0,parent:r_},n_={constant:!0,required:!0,type:n.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",description:null,defaultValue:null,dataType:QB,readsValue:e_,writesValues:[zI],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:t_},a_={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:WI,inputs:[zI],outputs:[YB],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[HB],calledBySuccess:[],parent:KB,error:null,x:0,y:0},s_={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},o_={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,asType:!1,isList:!1,parent:s_},d_={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},l_={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"New Company Owner",defaultValue:null,dataType:o_,implements:null,required:!0,index:0,writesValues:[n_],parent:d_},u_={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},p_={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Change Account Owner",inputs:[l_],collapsed:!0,calls:[a_],private:!1,index:0,implements:null,x:0,y:0,parent:u_},c_={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},f_={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:c_},y_={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},h_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:null,private:!0,defaultValue:null,implements:qn,static:!1,index:0,dataType:f_,abstract:!1,parent:y_},m_={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},v_={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:m_},T_={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},E_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:v_,implements:null,static:!1,private:!0,abstract:!1,parent:T_},I_={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:n.Project,entityId:ue},ta={type:n.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[h_,E_],methods:[WI,p_],extends:[],implements:[Ot,lr],x:0,y:0,parent:I_},Qa="bitcoin-api-response-id",YI="time-property-id",HI="disclaimer-property-id",KI="chart-name-property-id",XI="bpi-property-id",jo="bpi-entity-id",QI="usd-property-id",eA="gbp-property-id",tA="eur-property-id",ra="currency-entity-id",rA="currency-code-property-id",iA="currency-symbol-property-id",nA="currency-rate-property-id",aA="currency-description-property-id",sA="currency-rate-number-property-id",A_={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:rA},b_={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Xr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:A_},R_={type:n.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},D_={constant:!1,hidden:!1,required:!0,type:n.Property,id:rA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:b_,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:R_},O_={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:iA},P_={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Xr,isList:!1,asType:!1,options:["$","£","€"],parent:O_},w_={type:n.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},V_={constant:!1,hidden:!1,required:!0,type:n.Property,id:iA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:P_,implements:null,static:!1,private:!1,abstract:!1,parent:w_},C_={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:nA},B_={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:C_},__={type:n.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},M_={constant:!1,hidden:!1,required:!0,type:n.Property,id:nA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:B_,implements:null,static:!1,private:!1,abstract:!1,parent:__},g_={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:aA},N_={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:g_},L_={type:n.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},U_={constant:!1,hidden:!1,required:!0,type:n.Property,id:aA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:N_,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:L_},$_={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:sA},j_={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:$_},G_={type:n.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},F_={constant:!1,hidden:!1,required:!0,type:n.Property,id:sA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:j_,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:G_},x_={type:n.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},Go={type:n.DefinitionEntity,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[D_,V_,M_,U_,F_],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:x_},S_={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:QI},k_={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Go,isList:!1,asType:!1,parent:S_},Z_={type:n.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:jo},q_={constant:!1,hidden:!1,required:!0,id:QI,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:k_,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:Z_},J_={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:eA},W_={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Go,isList:!1,asType:!1,parent:J_},z_={type:n.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:jo},Y_={constant:!1,hidden:!1,required:!0,id:eA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:W_,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:z_},H_={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:tA},K_={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Go,isList:!1,asType:!1,parent:H_},X_={type:n.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:jo},Q_={constant:!1,hidden:!1,required:!0,id:tA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:K_,private:!1,abstract:!1,parent:X_},eM={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},oA={type:n.DefinitionEntity,id:jo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[q_,Y_,Q_],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:eM},tM={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:YI},rM={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,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:tM},iM={type:n.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:Qa},nM={constant:!1,hidden:!1,required:!0,type:n.Property,id:YI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:rM,implements:null,static:!1,private:!1,abstract:!1,parent:iM},aM={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:HI},sM={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:aM},oM={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:Qa},dM={constant:!1,hidden:!1,required:!0,type:n.Property,id:HI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:sM,implements:null,static:!1,private:!1,abstract:!1,parent:oM},lM={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:KI},uM={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:lM},pM={type:n.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:Qa},cM={constant:!1,hidden:!1,required:!0,type:n.Property,id:KI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:uM,implements:null,static:!1,private:!1,abstract:!1,parent:pM},fM={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:XI},yM={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:oA,isList:!1,asType:!1,parent:fM},hM={type:n.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:Qa},mM={constant:!1,hidden:!1,required:!0,type:n.Property,id:XI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:yM,static:!1,private:!1,abstract:!1,parent:hM},vM={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},dA={type:n.DefinitionEntity,id:Qa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[nM,dM,cM,mM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:vM},TM={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},EM={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:TM},IM={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},AM={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},bM={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:AM},RM={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},lA={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:bM,readsValue:RM,required:!0,index:0,parent:IM},DM={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},OM={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:EM,writesValues:[lA],required:!0,index:0,parent:DM},PM={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},wM={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},VM={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},CM={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[lA],calledByError:[],calledByEntry:[wM],calledBySuccess:[],throws:null,x:0,y:0,parent:VM},BM={type:n.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[OM],calls:[CM],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:PM},_M={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},MM={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},gM={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},NM={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},LM={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},UM={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Kr,asType:!1,isList:!1,parent:LM},Tu={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:UM,implements:null,readsValue:NM,required:!0,index:0,parent:gM},$M={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},uA={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Tu],calledByError:[],calledByEntry:[],calledBySuccess:[_M,$M],throws:null,x:0,y:0,parent:MM},jM={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},GM={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},pA={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Dl,name:null,description:null,readsValue:GM,defaultValue:null,parent:jM,index:2},FM={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},xM={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Kr,isList:!1,asType:!1,parent:FM},SM={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},kM={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},ZM={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},cA={constant:!0,required:!0,type:n.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:xM,readsValue:kM,writesValues:[Tu],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ZM],successCalls:[uA],errorCalls:[],internalCalls:[],x:0,y:0,parent:SM},qM={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},JM={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},WM={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Js,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:g.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:qM,autogeneration:null},index:1,parent:JM},zM={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},YM={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ks,index:2,writesValues:[cA],parent:zM},HM={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},KM={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:qs,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:HM},XM={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},QM={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ws,index:3,readsValue:null,defaultValue:null,parent:XM},eg={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},tg={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:zs,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:eg},rg={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ig={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Hs,index:1,writesValues:[],parent:rg},ng={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ag={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ys,index:0,writesValues:[],parent:ng},sg={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},og={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},dg={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},lg={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ug={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},pg={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,asType:!1,isList:!1,parent:ug},cg={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},fA={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:pg,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:cg},fg={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[lg],calledByEntry:[],calledBySuccess:[],throws:fA,x:0,y:0,parent:dg},yg={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},hg={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:Ol,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[fA],index:0,parentRelationType:Un.Error,parent:yg},mg={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wa,inputs:[KM,WM,pA,QM,tg],outputs:[ag,ig,YM],process:null,calledByError:[],calledByEntry:[sg],calledBySuccess:[],successCalls:[uA,cA],errorCalls:[fg],error:hg,x:0,y:0,parent:og},vg={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},Tg={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Eg={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ss,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:g.String,parent:vg,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:Tg},Ig={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Ag={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},bg={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},Rg={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:bg},Dg={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},Og={type:n.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},yA={constant:!0,required:!0,type:n.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Rg,readsValue:Dg,writesValues:[pA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Og],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Ag},Pg={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[yA],declaration:Oa,index:0,parent:Ig},wg={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},Vg={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},Cg={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:n.ArgumentDeclaration},Bg={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},hA={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ks,name:null,description:null,readsValue:Cg,defaultValue:null,index:1,parent:Bg},_g={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Pa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[hA,Eg],outputs:[Pg],process:null,calledByError:[],calledByEntry:[wg],calledBySuccess:[],successCalls:[yA],errorCalls:[],error:null,x:0,y:0,parent:Vg},Mg={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},gg={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Mg},Ng={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},mA={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:gg,defaultValue:null,implements:null,required:!1,writesValues:[hA],index:0,parent:Ng},Lg={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:n.Project,entityId:ue},vA={type:n.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:[mA],calls:[_g,mg],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Lg},Ug={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},$g={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},jg={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},Gg={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},TA={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mA,name:null,description:null,readsValue:jg,defaultValue:null,index:0,parent:Gg},Fg={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},xg={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},Sg={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Kr,asType:!1,isList:!1,parent:xg},kg={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Zg={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},qg={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},EA={constant:!0,required:!0,type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:Sg,readsValue:kg,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[qg],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Zg},Jg={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tu,defaultValue:null,writesValues:[EA],index:0,parent:Fg},Wg={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vA,inputs:[TA],outputs:[Jg],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[Ug],successCalls:[EA],errorCalls:[],error:null,x:0,y:0,parent:$g},zg={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},Yg={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},Hg={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},Kg={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},IA={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:an.inputs[0],name:null,description:null,readsValue:Hg,defaultValue:null,index:0,parent:Kg},Xg={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:an,inputs:[IA],calledByError:[],calledByEntry:[zg],calledBySuccess:[],successCalls:[Wg],errorCalls:[],x:0,y:0,parent:Yg},Qg={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},eN={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},tN={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ta,asType:!1,isList:!1,parent:eN},rN={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},iN={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},nN={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},AA={constant:!0,required:!0,type:n.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:tN,readsValue:iN,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[nN],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:rN},aN={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},sN={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ta,asType:!1,isList:!1,parent:aN},oN={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new bank account of the company",dataType:sN,implements:null,defaultValue:null,required:!0,index:1,writesValues:[AA],parent:Qg},dN={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},lN={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},uN={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},pN={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:uN},cN={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:pN,implements:null,defaultValue:null,required:!0,index:0,writesValues:[IA,TA],parent:lN},fN={type:n.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[cN,oN],calls:[Xg,AA],index:1,private:!1,implements:null,x:0,y:0,parent:dN},yN={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},hN={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-manager-property-id"},mN={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:yN,isList:!1,asType:!1,parent:hN},vN={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},TN={constant:!1,required:!0,hidden:!1,type:n.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:mN,abstract:!1,parent:vN},EN={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-start-date-property-id"},IN={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:_r,isList:!1,asType:!1,parent:EN},AN={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},bN={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:IN,abstract:!1,parent:AN},RN={type:n.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:n.Property,entityId:"employee-department-property-id"},DN={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Xr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:RN},ON={type:n.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},PN={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:DN,abstract:!1,parent:ON},wN={type:n.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},vr={type:n.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"A entity that represents an employee in the company",properties:[PN,bN,TN],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[St],x:0,y:0,parent:wN},VN={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},CN={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:VN},BN={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},_N={constant:!1,hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:CN,abstract:!1,parent:BN},MN={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},gN={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ta,isList:!1,asType:!1,parent:MN},NN={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Eu={constant:!1,hidden:!1,required:!0,type:n.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:gN,abstract:!1,parent:NN},LN={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},UN={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:LN},$N={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},jN={constant:!1,hidden:!1,required:!0,type:n.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:UN,private:!0,abstract:!1,parent:$N},GN={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},FN={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,isList:!0,asType:!1,parent:GN},xN={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},SN={constant:!1,hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employees",description:null,index:3,defaultValue:null,dataType:FN,implements:null,private:!0,static:!1,abstract:!1,parent:xN},kN={id:"company-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},ZN={id:"company-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},qN={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parent:ZN},JN={id:"company-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:n.DefinitionEntity},WN={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:qn,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.UUID,value:null,parent:kN,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:qN,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:JN},zN={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:n.Project,entityId:ue},Tr={type:n.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:null,properties:[_N,Eu,jN,SN,WN],static:!1,abstract:!1,abstractMethods:[],methods:[BM,fN],extends:[],implements:[Ot,lr],x:0,y:0,parent:zN},YN={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:n.Project,entityId:ue},Iu={type:n.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:YN};n.GenericReference,n.DataType;const HN={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:n.Property},KN={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:HN},XN={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},QN={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:KN,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:XN},eL={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},tL={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},rL={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:n.FunctionCall,declaration:Iu,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[eL],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:tL},iL={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},nL={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:zl,calls:[rL],collapsed:!1,index:0,x:0,y:0,parent:iL},aL={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},sL={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[QN],static:!0,abstract:!1,abstractMethods:[],extends:[oo],implements:[],methods:[nL],x:0,y:0,parent:aL},oL={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:n.Project,entityId:ue},dL={type:n.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[ga],x:0,y:0,parent:oL},Fo="f558fbf8-67de-4545-9804-6ae621e0b2d4",lL={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},uL={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},pL={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ne,asType:!1,parent:uL},cL={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},fL={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},yL={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},hL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Rt,asType:!1,parent:yL},mL={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:n.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:fL,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:hL,implements:$l,required:!0,index:0,parent:cL},vL={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},TL={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.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,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:lL,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:pL,implements:jl,required:!0,index:1,parent:vL},EL={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},IL={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},AL={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},bL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:ne,parent:AL},RL={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:n.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:IL,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:bL,implements:Gl,required:!0,index:2,parent:EL},DL={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},OL={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},PL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Rt,parent:OL},wL={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:n.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:PL,implements:Fl,index:3,required:!0,parent:DL},VL={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},CL={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:VL},BL={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},_L={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:n.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:CL,implements:xl,readsValue:null,required:!0,index:0,parent:BL},ML={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},gL={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},NL={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Rt,asType:!1,parent:gL},LL={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},UL={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:n.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:ML,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:NL,implements:Sl,readsValue:null,required:!0,index:1,parent:LL},$L={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},jL={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Rt,parent:$L},GL={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},FL={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:n.ReturnDeclaration,name:"Response body",implements:kl,defaultValue:null,dataType:jL,readsValue:null,required:!0,index:2,parent:GL},xL={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:n.FunctionDeclaration},SL={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};n.ReturnStatement;const kL={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Fo},ZL={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,inputs:[mL,TL,RL,wL],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Zl,index:0,private:!1,x:0,y:0,parent:kL},qL={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},JL={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},WL={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:JL},zL={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:Fo},YL={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Ll,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"/company/{id}",parent:qL,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:WL,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:zL},HL={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},KL={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},XL={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Xr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:KL},QL={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:Fo},eU={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Ul,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:g.Enum,parent:HL,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:XL,description:null,parent:QL},tU={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:n.Project,entityId:ue},rU={type:n.DefinitionEntity,id:Fo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get given company data by id",description:null,properties:[YL,eU],methods:[ZL],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[ga],x:0,y:0,parent:tU},iU={id:"plant-prototype-database-property-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},nU={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},aU={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:iU},sU={id:"plant-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"plant-entity-id",version:"1",entityType:n.DefinitionEntity},oU={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Zn,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:yu,autogeneration:null,parent:nU},dataType:aU,description:"The database that the entity belongs to.",parent:sU},dU={type:n.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:n.Property,entityId:"plant-name-property-id"},lU={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:dU},uU={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"plant-entity-id"},pU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:lU,abstract:!1,parent:uU},cU={type:n.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},fU={type:n.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[oU,pU],methods:[],extends:[],implements:[Ot],x:0,y:0,parent:cU},yU={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},hU={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},mU={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:yU},vU={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},TU={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Zn,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:hu,autogeneration:null,parent:hU},dataType:mU,description:"The database that the entity belongs to.",parent:vU},EU={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},IU={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:EU},AU={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:n.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},bU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:IU,abstract:!1,parent:AU},RU={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:n.Project,entityId:ue},DU={id:"product-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},OU={id:"product-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},PU={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parent:OU},wU={id:"product-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},VU={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.UUID,value:null,parent:DU,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:PU,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:wU},CU={type:n.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Product",description:"A product that can be sold",implements:[Ot,lr],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[VU,TU,bU],methods:[],x:0,y:0,parent:RU},ia="project-loaded-event-id",ai="get-bitcoin-price-http-call-operation-id",bA="get-bitcoin-price-http-call-response-body-id",xo="validate-bitcoin-price-response-operation-ids",BU={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bA},_U={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:xo},RA={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qi.inputs[1],name:null,description:null,readsValue:BU,defaultValue:null,index:0,parent:_U},MU={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},gU={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:xo},NU={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qi.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:dA,value:null,parent:MU,autogeneration:null},index:0,parent:gU},LU={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:xo},UU={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Qi.outputs[0],writesValues:[],index:0,parent:LU},$U={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:n.GlobalEvent,entityId:ia},jU={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:n.Operation,entityId:ai},GU={type:n.Operation,id:xo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qi,inputs:[NU,RA],outputs:[UU],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[jU],parent:$U},FU={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:n.FunctionCall,entityId:ai},xU={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:qs,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:FU},SU={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:n.FunctionCall,entityId:ai},kU={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},ZU={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Js,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.LiteralValue,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:g.String,parent:kU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:SU},qU={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:n.FunctionCall,entityId:ai},JU={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ws,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:qU},WU={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:n.FunctionCall,entityId:ai},zU={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:zs,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:WU},YU={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:n.FunctionCall,entityId:ai},HU={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Hs,writesValues:[],index:1,parent:YU},KU={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:n.FunctionCall,entityId:ai},XU={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Ys,writesValues:[],index:0,parent:KU},QU={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:n.FunctionCall,entityId:ai},e2={id:bA,type:n.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ks,writesValues:[RA],index:2,parent:QU},t2={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:n.GlobalEvent,entityId:ia},r2={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:n.GlobalEvent,entityId:ia},i2={type:n.Operation,id:ai,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wa,inputs:[xU,ZU,JU,zU],outputs:[XU,HU,e2],process:null,parent:r2,calledByError:[],calledByEntry:[t2],calledBySuccess:[],successCalls:[GU],errorCalls:[],error:null,x:0,y:0},n2={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:n.GlobalEvent,entityId:ia},a2={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:n.GlobalEvent,entityId:ia},s2={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Iu,inputs:[],outputs:[],calledByError:[],calledByEntry:[n2],calledBySuccess:[],parent:a2,successCalls:[],errorCalls:[],error:null,x:0,y:0},o2={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,version:"1",entityType:n.Project,entityId:ue},d2={type:n.GlobalEvent,id:ia,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Hr.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:uo,parent:o2,inputs:[],calls:[s2,i2],x:0,y:0},ur="abort-execution-func-declaration-id",es="abort-execution-func-exec-var-declaration-id",Au="abort-execution-func-small-wait-op-id",bu="abort-execution-func-long-wait-op-id",DA="abort-execution-func-long-wait-process-output-id",OA="abort-execution-func-exec-var-instance-write-id",PA="abort-execution-func-long-wait-return-stmt-id",wA="abort-execution-func-small-wait-return-stmt-id",l2="abort-execution-func-exec-var-instance-abort-call-id",Ru="abort-execution-func-exec-var-instance-abort-internal-call-id",Du="abort-execution-func-exec-second-wait-op-id",u2={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},p2={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},c2={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:u2},f2={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:wA},y2={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:p2},dataType:c2,implements:null,readsValue:null,required:!0,index:0,parent:f2},h2={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Du},m2={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},v2={type:n.ReturnStatement,id:wA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[y2],calledByError:[],calledByEntry:[],calledBySuccess:[h2],throws:null,x:0,y:0,parent:m2},T2={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},E2={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Du},I2={id:"second-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:g.Number,parent:T2},index:0,parent:E2},A2={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},b2={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Ru},R2={id:Du,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ft,inputs:[I2],outputs:[],process:null,successCalls:[v2],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[b2],error:null,parent:A2},D2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:n.VariableInstance,entityId:OA},O2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:Au},P2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},w2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:n.VariableDeclaration,entityId:es},V2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Ru},C2={id:l2,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:w2,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[V2],parent:P2},VA={id:Ru,type:n.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:Yl,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[D2,O2],successCalls:[R2],errorCalls:[],error:null,index:0,parent:C2},B2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},_2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:es},M2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},g2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:es},N2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:DA},Ou={id:OA,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:g2,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[M2],calledBySuccess:[_2],successCalls:[VA],errorCalls:[],x:0,y:0,readsValue:N2,writesValues:[],internalCalls:[],parent:B2},L2={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:es};n.GenericReference,n.DataType;const U2={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:lo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:L2},$2={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},j2={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},G2={constant:!0,required:!0,id:es,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:U2,inputs:[],outputs:[],calledByError:[],calledByEntry:[j2],calledBySuccess:[],successCalls:[Ou],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:$2},F2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},x2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},S2={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:F2},k2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:PA},Z2={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:x2},dataType:S2,readsValue:null,required:!0,index:0,parent:k2},q2={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:bu},J2={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},W2={type:n.ReturnStatement,id:PA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Z2],calledByError:[],calledByEntry:[],calledBySuccess:[q2],throws:null,x:0,y:0,parent:J2},z2={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"long-argument-map-id"},CA={type:n.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:bu},Y2={id:"long-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:g.Number,parent:z2},index:0,parent:CA},H2={type:n.GenericReference,id:"long-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},K2={type:n.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},X2={id:DA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:po,writesValues:[Ou],index:0,parent:CA},Q2={id:bu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ft,inputs:[Y2],outputs:[],process:X2,successCalls:[W2],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[K2],calledBySuccess:[],error:null,parent:H2},e4={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},t4={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Au},r4={id:"small-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:g.Number,parent:e4},index:0,parent:t4},i4={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},n4={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},a4={id:Au,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ft,inputs:[r4],outputs:[],process:null,successCalls:[VA],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[n4],calledBySuccess:[],error:null,parent:i4},s4={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},BA={id:ur,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[a4,G2,Ou,Q2],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:s4},o4={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},d4={id:"call-execution-abort-func-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:BA,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:o4},So="manual-hello-world-loop-func-decl-id",_A="manual-hello-world-loop-func-return-statement-id",jr="manual-hello-world-loop-id",ts="manual-hello-world-loop-body-id",Pu="manual-hello-world-loop-break-statement-id",rs="manual-hello-world-loop-current-iteration-number-output-map-id",wu="manual-hello-world-loop-previous-iterations-results-output-map-id",Vu="assembled-hello-world-text-output-id",l4="assembled-hello-world-list-output-id",is="iteration-number-is-equal-or-greater-than-10-condition-id",ko="join-hello-world-and-number-operation-id",Zo="append-string-to-list-operation-id",MA="hello-world-loop-output-map-id",u4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:n.ReturnStatement,entityId:_A},p4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},c4={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!0,asType:!1,parent:p4},f4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:n.OutputMap,entityId:MA},gA={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:n.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:c4,implements:null,readsValue:f4,required:!0,index:0,parent:u4},y4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:n.Loop,entityId:jr},h4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:So},m4={type:n.ReturnStatement,id:_A,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[gA],calledByError:[],calledByEntry:[],calledBySuccess:[y4],parent:h4,throws:null,x:0,y:0},v4={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:n.BreakStatement,entityId:Pu},NA={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:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:v4},T4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:rs},E4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:n.BreakStatement,entityId:Pu},LA={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:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:T4,required:!0,index:1,parent:E4},I4={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:is},A4={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},b4={type:n.BreakStatement,id:Pu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[NA,LA],calledByError:[],calledByEntry:[],calledBySuccess:[I4],parent:A4,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const R4={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Zo},D4={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:wu},UA={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tl,name:null,description:null,readsValue:D4,defaultValue:null,index:0,parent:R4},O4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Zo},P4={id:l4,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[NA],declaration:Oa,index:0,parent:O4},w4={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:n.Condition,entityId:is},V4={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Vu},C4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Zo},$A={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:El,name:null,description:null,readsValue:V4,defaultValue:null,index:1,parent:C4},B4={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:jr},_4={type:n.Operation,id:Zo,declaration:Zs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[UA,$A],outputs:[P4],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[w4],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:B4},M4={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},g4={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},N4={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,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:g4},L4={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Vu},jA={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:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:N4,readsValue:L4,required:!0,index:0,parent:M4},U4={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:is},$4={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},j4={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[jA],calledBySuccess:[],calledByError:[U4],calledByEntry:[],parent:$4,throws:null,x:0,y:0},G4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ts},F4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},x4={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:rs},GA={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:is},S4={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Wn.inputs[0],name:null,description:null,readsValue:x4,index:0,defaultValue:null,parent:GA},k4={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},Z4={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Wn.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:k4},parent:GA},q4={type:n.Condition,id:is,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wn,inputs:[S4,Z4],calledByError:[],calledByEntry:[G4],calledBySuccess:[],successCalls:[b4,_4],errorCalls:[j4],x:0,y:0,parent:F4},J4={type:n.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},W4={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:ko},z4={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ss,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:g.String,parent:J4,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:W4},Y4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:ko},H4={id:Vu,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[$A,jA],declaration:Oa,index:0,parent:Y4},K4={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ts},X4={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:rs},Q4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:ko},FA={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ks,name:null,description:null,readsValue:X4,defaultValue:null,index:1,parent:Q4},e$={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:jr},t$={type:n.Operation,id:ko,declaration:Pa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[z4,FA],outputs:[H4],process:null,calledByError:[],calledByEntry:[K4],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:e$},r$={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:wu,version:"1",entityType:n.ArgumentDeclaration},i$={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,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:r$},n$={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:ts,version:"1",entityType:n.FunctionDeclaration},a$={constant:!0,id:wu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:i$,implements:null,writesValues:[UA],index:1,parent:n$},s$={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:ts,version:"1",entityType:n.FunctionDeclaration},o$={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:rs,version:"1",entityType:n.ArgumentDeclaration};n.DataType;const d$={constant:!0,id:rs,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:Pl,defaultValue:null,dataType:null,writesValues:[FA,LA],index:0,parent:s$},l$={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:jr,version:"1",entityType:n.Loop},u$={id:ts,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[d$,a$],calls:[q4,t$],implements:Qs,collapsed:!1,private:!1,index:0,x:0,y:0,parent:l$},p$={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},xA={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:n.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:M.FixedReturns,index:0,parent:p$},c$={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},f$={type:n.OutputMap,id:MA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:xA,writesValues:[gA],index:0,parent:c$},y$={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:So,version:"1",entityType:n.FunctionDeclaration},h$={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:So,version:"1",entityType:n.FunctionDeclaration},m$={id:jr,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xs,inputs:[],outputsDeclarations:[xA],outputs:[f$],body:u$,successCalls:[m4],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[h$],calledBySuccess:[],x:0,y:0,parent:y$},v$={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},SA={type:n.FunctionDeclaration,id:So,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[m$],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:v$},T$={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},E$={id:"call-hello-world-loop-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:SA,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:T$},si="company-dto-function-declaration-id",Cu="company-dto-func-declaration-argument-dcl-id",Gr="company-dto-function-company-variable-id",Oi="company-dto-function-company-dto-variable-id",na="iterate-over-employee-list-loop-id",kA="iterate-over-employee-list-loop-employee-dto-output-map-id",Bu="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",qo="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",ZA="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",qA="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",JA="iterate-over-employee-list-continue-statement-id",Jo="iterate-over-employee-list-loop-body-id",WA="company-dto-func-declaration-return-statement-id",zA="company-dto-func-declaration-return-decl-id",YA="company-dto-func-declaration-company-variable-id-output-map-id",HA="company-dto-func-declaration-company-variable-employess-output-map-id",KA="company-dto-func-declaration-company-variable-name-output-map-id",I$="company-dto-func-declaration-company-dto-variable-input-map-id",A$="company-dto-func-declaration-company-dto-variable-employess-input-map-id",b$="company-dto-func-declaration-company-dto-variable-name-input-map-id",Wo="company-dto-func-declaration-owner-variable-id",R$="company-dto-func-declaration-company-dto-variable-owner-input-map-id",XA="company-dto-func-declaration-company-variable-owner-output-map-id",QA="company-dto-func-declaration-owner-variable-id-output-map-id",zo="company-dto-func-declaration-bank-account-variable-id",D$="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",eb="company-dto-func-declaration-company-variable-bank-account-output-map-id",tb="company-dto-func-declaration-bank-account-variable-id-output-map-id",O$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:QA},P$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},rb={id:R$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:O$,parent:P$},w$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:tb},V$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},ib={id:D$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:w$,parent:V$},C$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:KA},B$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},nb={id:b$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:C$,parent:B$},_$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:kA},M$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},ab={id:A$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:_$,parent:M$},g$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:YA},N$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},sb={id:I$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:g$,parent:N$},L$={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:zA},U$={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,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:L$},$$={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:WA},j$={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},ob={constant:!0,isError:!1,id:zA,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:U$,readsValue:j$,required:!0,index:0,parent:$$},G$={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Oi},F$={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si},db={type:n.ReturnStatement,id:WA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ob],calledByError:[],calledByEntry:[],calledBySuccess:[G$],throws:null,x:0,y:0,parent:F$},x$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si},S$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:zo},k$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:Wo},Z$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:n.VariableDeclaration,entityId:na},_u={constant:!0,required:!0,id:Oi,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[S$,k$,Z$],successCalls:[db],errorCalls:[],readsValue:null,writesValues:[ob],inputs:[sb,nb,ib,rb,ab],outputs:[],internalCalls:[],parent:x$,x:0,y:0},pn="employee-dto-func-declaration-id",Mu="employee-dto-func-declaration-argument-dcl-id",lb="employee-dto-func-declaration-return-statement-id",ub="employee-dto-func-declaration-return-decl-id",cn="employee-dto-func-declaration-employee-variable-id",fn="employee-dto-func-declaration-employee-dto-variable-id",Yo="employee-dto-func-declaration-manager-variable-id",pb="employee-dto-func-declaration-employee-variable-id-output-map-id",cb="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",fb="employee-dto-func-declaration-employee-variable-department-output-map-id",yb="employee-dto-func-declaration-employee-variable-manager-output-map-id",hb="employee-dto-func-declaration-manager-variable-id-output-map-id",q$="employee-dto-func-declaration-employee-dto-variable-input-map-id",J$="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",W$="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",z$="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",Y$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:hb},H$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},mb={id:z$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:Y$,parent:H$},K$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:fb},X$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},vb={id:W$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:K$,parent:X$},Q$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:cb},ej={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},Tb={id:J$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:Q$,parent:ej},tj={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:pb},rj={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},Eb={id:q$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:tj,parent:rj},ij={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:ub},nj={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,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:ij},aj={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:lb},sj={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},Ib={constant:!0,isError:!1,id:ub,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:nj,implements:null,readsValue:sj,required:!0,index:0,parent:aj},oj={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:fn},dj={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn},Ab={type:n.ReturnStatement,id:lb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ib],calledByError:[],calledByEntry:[],calledBySuccess:[oj],throws:null,x:0,y:0,parent:dj},lj={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn},uj={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Yo},pj={constant:!0,required:!0,id:fn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[uj],successCalls:[Ab],errorCalls:[],readsValue:null,writesValues:[Ib],inputs:[Eb,Tb,vb,mb],outputs:[],internalCalls:[],parent:lj,x:0,y:0},cj={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Yo},fj={id:hb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[mb],parent:cj},yj={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Yo},hj={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,asType:!1,isList:!1,parent:yj},mj={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:yb},vj={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn};n.GenericReference,n.VariableDeclaration;const bb={constant:!0,required:!0,id:Yo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:hj,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[pj],errorCalls:[],readsValue:mj,writesValues:[],inputs:[],outputs:[fj],internalCalls:[],parent:vj,x:0,y:0},Tj={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},Ej={id:yb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vr.properties[2],index:3,writesValues:[bb],parent:Tj},Ij={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},Aj={id:fb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vr.properties[0],index:2,writesValues:[vb],parent:Ij},bj={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},Rj={id:cb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:St.properties[1],index:1,writesValues:[Tb],parent:bj},Dj={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},Oj={id:pb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[Eb],parent:Dj},Pj={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},wj={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,asType:!1,isList:!1,parent:Pj},Vj={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn},Cj={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Mu},Bj={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn},Rb={constant:!0,required:!0,id:cn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:wj,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[Bj],calledBySuccess:[],successCalls:[bb],errorCalls:[],readsValue:Cj,writesValues:[],inputs:[],outputs:[Oj,Rj,Aj,Ej],internalCalls:[],parent:Vj,x:0,y:0},_j={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Mu,version:"1",entityType:n.ArgumentDeclaration},Mj={type:n.DataType,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:vr,asType:!1,isList:!1,like:!1,inferred:!1,parent:_j},gj={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:pn,version:"1",entityType:n.FunctionDeclaration},Nj={constant:!0,type:n.ArgumentDeclaration,id:Mu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:Mj,index:0,writesValues:[Rb],parent:gj},Lj={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},gu={type:n.FunctionDeclaration,id:pn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[Nj],calls:[Rb],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:Lj},Uj={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:ZA,version:"1",entityType:n.ReturnDeclaration},$j={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,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:Uj},jj={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:qA,version:"1",entityType:n.OutputMap},Gj={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:JA,version:"1",entityType:n.ContinueStatement},Db={constant:!0,isError:!1,id:ZA,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:jj,dataType:$j,implements:null,required:!0,index:0,parent:Gj},Fj={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:qo,version:"1",entityType:n.FunctionCall},xj={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:na,version:"1",entityType:n.Loop},Sj={id:JA,type:n.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[Fj],outputs:[Db],throws:null,x:0,y:0,parent:xj},kj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:qo,version:"1",entityType:n.FunctionCall},Zj={id:qA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ab.outputs[0],writesValues:[Db],index:0,parent:kj},qj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Bu,version:"1",entityType:n.ArgumentDeclaration},Jj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:qo,version:"1",entityType:n.FunctionCall},Ob={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:gu.inputs[0],readsValue:qj,index:0,defaultValue:null,parent:Jj},Wj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},zj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},Yj={id:qo,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gu,inputs:[Ob],process:null,outputs:[Zj],calledByError:[],calledByEntry:[Wj],calledBySuccess:[],successCalls:[Sj],errorCalls:[],error:null,x:0,y:0,parent:zj},Hj={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Bu,version:"1",entityType:n.ArgumentDeclaration},Kj={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,isList:!1,asType:!1,parent:Hj},Xj={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},Qj={constant:!0,id:Bu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:Kj,required:!0,implements:to,index:0,writesValues:[Ob],parent:Xj},eG={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:na,version:"1",entityType:n.Loop},tG={id:Jo,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Qj],calls:[Yj],implements:Ba,collapsed:!1,private:!1,index:0,x:0,y:0,parent:eG},rG={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:na,version:"1",entityType:n.Loop},iG={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:HA,version:"1",entityType:n.OutputMap},Pb={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:mi.inputs[0],defaultValue:null,readsValue:iG,index:0,parent:rG},nG={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:si,version:"1",entityType:n.FunctionDeclaration},aG={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:na,version:"1",entityType:n.Loop},sG={id:kA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.outputs[0],writesValues:[ab],index:0,parent:aG},oG={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},dG={id:na,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi,inputs:[Pb],successCalls:[_u],errorCalls:[],outputsDeclarations:[],outputs:[sG],body:tG,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[oG],error:null,x:0,y:0,parent:nG},lG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zo},uG={id:tb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[ib],parent:lG},pG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zo},cG={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,asType:!1,isList:!1,parent:pG},fG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:eb},yG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si};n.GenericReference,n.VariableDeclaration;const wb={constant:!0,required:!0,id:zo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:cG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[_u],errorCalls:[],readsValue:fG,writesValues:[],inputs:[],outputs:[uG],internalCalls:[],parent:yG,x:0,y:0},hG={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wo},mG={id:QA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:lr.properties[0],index:0,defaultValue:null,writesValues:[rb],parent:hG},vG={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wo},TG={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,asType:!1,isList:!1,parent:vG},EG={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:XA},IG={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si};n.GenericReference,n.VariableDeclaration;const Vb={constant:!0,required:!0,id:Wo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:TG,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[_u],errorCalls:[],readsValue:EG,writesValues:[],inputs:[],outputs:[mG],internalCalls:[],parent:IG,x:0,y:0},AG={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},bG={id:XA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tr.properties[2],index:4,writesValues:[Vb],parent:AG},RG={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},DG={id:eb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tr.properties[2],index:3,writesValues:[wb],parent:RG},OG={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},PG={id:KA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tr.properties[0],index:2,writesValues:[nb],parent:OG},wG={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},VG={id:HA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tr.properties[3],index:1,writesValues:[Pb],parent:wG},CG={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},BG={id:YA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[sb],parent:CG},_G={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},MG={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,asType:!1,isList:!1,parent:_G},gG={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si},NG={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Cu},LG={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:si},Cb={constant:!0,required:!0,id:Gr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:MG,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[LG],calledBySuccess:[],successCalls:[wb,Vb,dG],errorCalls:[],readsValue:NG,writesValues:[],inputs:[],outputs:[BG,VG,PG,DG,bG],internalCalls:[],parent:gG,x:0,y:0},UG={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Cu,version:"1",entityType:n.ArgumentDeclaration},$G={type:n.DataType,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:Tr,asType:!1,isList:!1,like:!1,inferred:!1,parent:UG},jG={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:si,version:"1",entityType:n.FunctionDeclaration},GG={constant:!0,type:n.ArgumentDeclaration,id:Cu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:$G,index:0,writesValues:[Cb],parent:jG},FG={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},Nu={type:n.FunctionDeclaration,id:si,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[GG],calls:[Cb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:FG},ns="exec-in-parallel-operation-call-id",as="exec-sequentially-operation-call-id",kt="concurrency-and-wait-function-declaration-id",Bb="concurrency-and-wait-return-statement-id",_b="concurrency-and-wait-return-declaration-id",Lu="exec-in-parallel-argument-map-id",Mb="exec-sequentially-argument-map-id",Uu="wait-for-2-seconds-operation-id",gb="wait-for-2-seconds-argument-map-id",$u="map-company-dto-function-call-id",Nb="map-company-dto-function-call-company-dto-output-map-id",Ho="company-dto-variable-one-id",ju="company-dto-variable-one-instance-id",Lb="company-dto-variable-two-id",xG={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:_b},SG={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,asType:!1,isList:!1,parent:xG},kG={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Bb},ZG={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lb},Ub={constant:!0,isError:!1,id:_b,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:SG,implements:null,readsValue:ZG,required:!0,index:0,parent:kG},qG={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Uu},JG={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},WG={type:n.ReturnStatement,id:Bb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ub],calledByError:[],calledByEntry:[],calledBySuccess:[qG],throws:null,x:0,y:0,parent:JG},zG={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:n.VariableInstance,entityId:ju},YG={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:n.VariableInstance,entityId:ju},HG={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},$b={constant:!0,required:!0,id:Lb,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[zG],internalCalls:[],writesValues:[Ub],readsValue:YG,x:0,y:0,parent:HG},KG={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ho},XG={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ho},QG={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},eF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ho},jb={id:ju,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eF,inputs:[],outputs:[],successCalls:[$b],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[KG],internalCalls:[],writesValues:[$b],readsValue:XG,x:0,y:0,parent:QG},tF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:n.FunctionCall,entityId:$u},rF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Nb},iF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},Gb={constant:!0,required:!0,id:Ho,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[jb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[tF],internalCalls:[],writesValues:[jb],readsValue:rF,x:0,y:0,parent:iF},Fb={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:n.FunctionCall,entityId:$u},nF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nu.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Fb},aF={id:Nb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:db.outputs[0],writesValues:[Gb],index:0,parent:Fb},sF={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:kt},oF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:kt},dF={id:$u,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nu,successCalls:[Gb],process:null,errorCalls:[],inputs:[nF],outputs:[aF],calledByError:[],calledByEntry:[sF],calledBySuccess:[],parent:oF,x:0,y:0,error:null},lF={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fu},uF={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fu},pF={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:_r,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:lF},cF={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:n.Project,entityId:ue},Gu={constant:!0,required:!0,id:fu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Date,value:null,autogeneration:{type:yt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:uF},dataType:pF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:cF},fF={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:gb},yF={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Uu},hF={id:gb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:g.Number,parent:fF},index:0,parent:yF},mF={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},vF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:n.Operation,entityId:as},TF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:ns},xb={id:Uu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:br,inputs:[hF],outputs:[],process:null,successCalls:[WG],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[vF,TF],error:null,parent:mF},EF={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},IF={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:"wait-for-random-amount-id"},AF={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:yt.Random,rangeStart:1e3,rangeEnd:4e3},name:g.Number,parent:EF},index:0,parent:IF},bF={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},aa={id:"wait-for-random-amount-id",type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:br,inputs:[AF],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:bF},Fu="list-of-functions-variable-id",RF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},DF={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:RF},OF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},PF={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:OF},wF={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fu},VF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},CF={id:"list-of-functions-variable-action-descriptor-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[DF],error:null,outputs:[PF],parent:VF},BF={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fu},_F={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:CF,asType:!1,isList:!0,parent:wF},MF={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt};n.GenericReference,n.InputMap;const gF={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:n.InputMap,entityId:Mb},NF={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:n.InputMap,entityId:Lu},Sb={constant:!0,required:!0,id:Fu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[aa,aa,aa,aa,aa],autogeneration:null,parent:BF},dataType:_F,parent:MF,readsValue:null,writesValues:[gF,NF],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},LF={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:ns},UF={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},$F={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},jF={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:ns},kb={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gu,readsValue:$F,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[jF],successCalls:[],errorCalls:[],internalCalls:[],parent:UF,x:0,y:0},GF={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Al,writesValues:[kb],index:0,parent:LF},FF={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:ns},xF={id:Lu,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Il,name:null,description:null,readsValue:Sb,defaultValue:null,index:0,parent:FF},SF={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},kF={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},ZF={process:null,id:ns,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:br,inputs:[xF],outputs:[GF],successCalls:[xb,kb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[kF],calledBySuccess:[],error:null,parent:SF},qF={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:as},JF={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},WF={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},zF={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:as},Zb={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gu,readsValue:WF,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[zF],successCalls:[],errorCalls:[],internalCalls:[],parent:JF,x:0,y:0},YF={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rl,writesValues:[Zb],index:0,parent:qF},HF={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:as},KF={id:Mb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:bl,name:null,description:null,readsValue:Sb,defaultValue:null,index:0,parent:HF},XF={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},QF={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},ex={id:as,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ti,inputs:[KF],process:null,outputs:[YF],successCalls:[xb,Zb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[QF],calledBySuccess:[],error:null,parent:XF},tx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},rx={type:n.FunctionDeclaration,id:kt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:[ex,ZF,dF],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:tx},ix={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},nx={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,isList:!1,asType:!1,parent:ix},ax={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},sx={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:nx,readsValue:null,required:!0,index:0,parent:ax},ox={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},dx={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},lx={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[sx],calledByError:[],calledByEntry:[dx],calledBySuccess:[],throws:null,x:0,y:0,parent:ox},ux={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:n.Project,entityId:ue},px={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Create new company",description:null,inputs:[],calls:[lx],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:ux},xu="get-current-date-and-time-func-decl-id",qb="get-current-date-and-time-return-statement-id",Su="get-current-date-and-time-return-declaration-id",cx="get-current-date-and-time-return-declaration-data-type-id",fx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Su},yx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Su},hx={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:cx,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:_r,asType:!1,isList:!1,like:!1,inferred:!1,parent:yx},mx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:qb};n.ReturnDeclaration,n.LiteralValue,g.Date,yt.CurrentDateAndTime;const vx={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:xu},Tx={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:xu};n.ReturnStatement;const Ex={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},Ix={type:n.FunctionDeclaration,id:xu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Ex},Ax={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},bx={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:Ax},Rx={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Dx={type:n.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Ox={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Jb={constant:!0,required:!0,type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",dataType:bx,description:null,defaultValue:null,readsValue:Ox,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Dx],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Rx},Px={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},wx={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Vx={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},Cx={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:Vx},Bx={type:n.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Wb={constant:!0,required:!0,type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Bx],successCalls:[],errorCalls:[],dataType:Cx,readsValue:wx,writesValues:[],internalCalls:[],parent:Px,x:0,y:0},zb="do-math-return-statement-id",ku="do-math-return-declaration-id",_x={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},Mx={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:_x},gx={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Nx={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:ku},Lx={constant:!0,required:!0,type:n.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,name:"Fixed result",defaultValue:null,dataType:Mx,readsValue:null,writesValues:[Nx],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:gx},Ux={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:n.ReturnStatement,entityId:zb},$x={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:n.ReturnDeclaration,entityId:ku},jx={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:$x},Gx={constant:!0,isError:!1,id:ku,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:jx,readsValue:Lx,required:!0,index:0,parent:Ux},Fx={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},xx={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Sx={type:n.ReturnStatement,id:zb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Gx],calledByError:[],calledByEntry:[],calledBySuccess:[Fx],parent:xx,throws:null,x:0,y:0},Yb={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},kx={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Zx={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},qx={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Hb={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ol,name:null,description:null,readsValue:qx,defaultValue:null,index:0,parent:Zx},Jx={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ul,writesValues:[Jb,Wb],index:0,parent:kx},Wx={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},zx={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Kb={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:dl,name:null,description:null,readsValue:zx,defaultValue:null,index:1,parent:Wx},Yx={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:xs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Hb,Kb],outputs:[Jx],calledByError:[],calledByEntry:[Yb],calledBySuccess:[],process:null,successCalls:[Sx,Jb,Wb],errorCalls:[],parent:Yb,error:null,x:0,y:0},Hx={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Kx={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:n.ArgumentDeclaration},Xb={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:Kx},Xx={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},Qx={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},eS={type:n.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Qb={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:g.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Hx},dataType:Xb,inputs:[],outputs:[],calledByError:[],calledByEntry:[eS],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Xx,writesValues:[Kb],internalCalls:[],x:0,y:0,parent:Qx},tS={version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},rS={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:"The number to add",defaultValue:null,dataType:Xb,implements:null,writesValues:[Qb],required:!0,index:1,parent:tS},iS={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:n.Project,entityId:ue},nS={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},aS={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:n.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},sS={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:n.ArgumentDeclaration},oS={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:sS},dS={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:oS,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:g.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:aS},writesValues:[Hb],required:!0,index:0,parent:nS},lS={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Do math",description:"This function does math",inputs:[dS,rS],calls:[Yx,Qb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:iS},Zt="replace-bank-account-in-company-func-declaration-id",Zu="company-entity-to-modify-arg-declaration-id",qu="account-number-to-create-arg-decl-id",sa="company-main-variable-id",oa="search-person-by-id-id",eR="new-bank-account-owner-arg-decl-id",tR="search-person-by-id-output-declaration-id",Ju="search-person-by-id-output-entity-map-id",ss="person-not-empty-condition-id",Ko="create-new-bank-account-instance-operation-id",rR="create-new-bank-account-instance-operation-output-entity-map-id",iR="company-bank-account-output-map-id",Wu="old-bank-account-var-declaration-id",nR="old-bank-account-var-instance-id",aR="company-variable-instance-id",zu="delete-bank-account-internal-call-id",os="new-bank-account-data-variable-declaration-id",uS={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},pS={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:n.InternalCall,entityId:zu},cS={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},fS={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:aR},yS={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:rR},sR={type:n.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:yS,declaration:Eu,name:null,description:null,index:0,defaultValue:null,parent:fS},hS={type:n.VariableInstance,id:aR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cS,inputs:[sR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[pS],successCalls:[],errorCalls:[],internalCalls:[],parent:uS,readsValue:null,writesValues:[],x:0,y:0},mS={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},vS={type:n.DataType,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:ta,asType:!1,isList:!1,like:!1,inferred:!1,parent:mS},TS={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:iR},ES={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},IS={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},AS={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Ko};n.GenericReference,n.VariableInstance;const bS={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},RS={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},DS={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},OS={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:n.InternalCall,entityId:zu},PS={type:n.VariableInstance,id:nR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:RS,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[OS],errorCalls:[],parent:DS,readsValue:null,writesValues:[],x:0,y:0},oR={process:null,type:n.InternalCall,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wl,index:0,successCalls:[hS],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[AS,bS],parent:PS},dR={constant:!0,required:!0,type:n.VariableDeclaration,id:Wu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:vS,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[IS],successCalls:[oR],internalCalls:[],errorCalls:[],parent:ES,readsValue:TS,writesValues:[],x:0,y:0},wS={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},VS={type:n.DataType,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:Tr,asType:!1,isList:!1,like:!1,inferred:!1,parent:wS},CS={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Zu},BS={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},_S={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},MS={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},gS={id:iR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Eu,index:0,parent:MS,writesValues:[dR]},lR={constant:!0,required:!0,type:n.VariableDeclaration,id:sa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:VS,inputs:[],outputs:[gS],calledByError:[],calledByEntry:[_S],calledBySuccess:[],successCalls:[dR],errorCalls:[],parent:BS,internalCalls:[],readsValue:CS,writesValues:[],x:0,y:0},NS={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:os},LS={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.OutputMap,entityId:Ju},uR={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:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:LS,index:1,defaultValue:null,parent:NS},US={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:qu},$S={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:os},pR={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:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:US,defaultValue:null,index:0,parent:$S},cR={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},jS={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:n.InputMap,declaration:Xi.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:n.LiteralValue,name:g.EntityTemplate,value:null,valueAsTypeSingle:ta,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:n.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:n.GenericReference}},parent:cR},GS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:os},fR={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:n.InputMap,declaration:Xi.inputs[1],name:null,description:null,index:1,readsValue:GS,defaultValue:null,parent:cR},FS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},xS={id:rR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Xi.outputs[0],index:0,writesValues:[sR],parent:FS},SS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ss},kS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:os},ZS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},yR={process:null,id:Ko,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xi,inputs:[jS,fR],error:null,outputs:[xS],successCalls:[oR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[kS,SS],parent:ZS,x:0,y:0},qS={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},JS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ss},WS={constant:!0,required:!0,id:os,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[pR,uR],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[fR],successCalls:[yR],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[JS],calledByEntry:[],x:0,y:0,parent:qS},zS={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},YS={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},HS={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:YS},KS={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:n.ReturnStatement},XS={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:HS,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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:g.String,parent:zS,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:KS,implements:null,required:!0,index:0,readsValue:null},QS={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ss,version:"1",entityType:n.Condition},ek={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:Zt,version:"1",entityType:n.FunctionDeclaration},tk={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:XS,outputs:[],calledBySuccess:[],calledByError:[QS],calledByEntry:[],x:0,y:0,parent:ek},rk={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:n.Search,entityId:oa},ik={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},nk={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ju},ak={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:ss},hR={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:an.inputs[0],name:null,description:null,readsValue:nk,index:0,defaultValue:null,parent:ak},sk={type:n.Condition,id:ss,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:an,inputs:[hR],calledByError:[],calledByEntry:[],calledBySuccess:[rk],successCalls:[WS,yR],errorCalls:[tk],x:0,y:0,parent:ik},ok={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:n.ValueDescriptor,entityId:tR},dk={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:St,parent:ok},lk={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:oa},mR={id:tR,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:dk,name:"Found person",description:"The person entity that was found",parent:lk,required:!0,index:0},uk={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:n.Search,entityId:oa},pk={type:n.OutputMap,id:Ju,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mR,parent:uk,writesValues:[hR,uR],index:0},ck={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:n.ArgumentDeclaration};n.DataType;const fk={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:oa},vR={id:"search-person-by-id-input-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:M.FixedArguments,index:0,required:!0,parent:fk},yk={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:n.Search,entityId:oa},hk={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:eR,version:"1",entityType:n.ArgumentDeclaration},TR={type:n.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vR,name:null,description:null,readsValue:hk,defaultValue:null,parent:yk,index:0},mk="SELECT * FROM Person WHERE id = your_id;",vk={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},Tk={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},Ek={type:n.Search,id:oa,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:mk,inputsDeclarations:[vR],inputs:[TR],outputsDeclarations:[mR],outputs:[pk],calledByError:[],calledByEntry:[Tk],calledBySuccess:[],error:null,successCalls:[sk],errorCalls:[],parent:vk,x:0,y:0};n.GenericReference,n.DataType;const Ik={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:qu,version:"1",entityType:n.ArgumentDeclaration},Ak={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:Ik},bk={version:"1",entityType:n.FunctionDeclaration,entityId:Zt,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},Rk={constant:!0,id:qu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:Ak,implements:null,writesValues:[pR],required:!0,index:1,parent:bk};n.GenericReference,n.DataType;const Dk={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:n.ArgumentDeclaration},Ok={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Qr,isList:!1,asType:!1,parent:Dk},Pk={version:"1",entityType:n.FunctionDeclaration,entityId:Zt,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},wk={constant:!0,id:eR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Ok,implements:null,writesValues:[TR],required:!1,index:1,parent:Pk},Vk={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:n.Project,entityId:ue},Ck={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Zt};n.GenericReference,n.DataType;const Bk={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Zu,version:"1",entityType:n.ArgumentDeclaration},_k={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:Bk},Mk={constant:!0,id:Zu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:_k,implements:null,description:"The company to replace the bank account for",writesValues:[lR],required:!0,index:0,parent:Ck},gk={type:n.FunctionDeclaration,id:Zt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:[Mk,Rk,wk],index:null,implements:null,calls:[Ek,lR],collapsed:!1,private:!1,x:0,y:0,parent:Vk},Nk={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},Lk={type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:Nk,x:0,y:0},Uk={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:n.Project,entityId:ue},$k={type:n.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[Lk],events:[],implements:null,parent:Uk,x:0,y:0},Yu="global-counted-test-loop-id",ER="global-counted-test-loop-body-id",IR="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",jk={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:IR,version:"1",entityType:n.ArgumentDeclaration},Gk={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:jk},Fk={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ER,version:"1",entityType:n.FunctionDeclaration},xk={constant:!0,id:IR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:Gk,implements:Nl,required:!0,index:0,writesValues:[],parent:Fk},Sk={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Yu,version:"1",entityType:n.Loop},kk={id:ER,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[xk],calls:[],implements:ro,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Sk},da="random-company-employee-test-variable-id",Hu="manager-global-variable-id",AR="global-user-instance-id",Fr="employee-mapped-dto-variable-id",yn="employee-mapped-dto-variable-instance-id",bR="random-employee-id-output-map-id",RR="random-employee-birth-date-output-map-id",DR="random-employee-department-output-map-id",OR="random-employee-manager-output-map-id",PR="manager-global-id-output-map-id",wR="global-user-instance-id-output-map-id",Zk="employee-mapped-dto-requester-id-input-map-id",VR="employee-mapped-dto-now-timestamp-input-map-id",qk="employee-mapped-dto-id-input-map-id",Jk="employee-mapped-dto-birth-date-input-map-id",Wk="employee-mapped-dto-department-input-map-id",zk="employee-mapped-dto-manager-input-map-id",Yk={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:Yu,version:"1",entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const Hk={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:_a.inputs[0],defaultValue:null,readsValue:null,index:0,parent:Yk},Kk={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},Xk={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:yn,version:"1",entityType:n.VariableDeclaration},CR={id:Yu,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_a,inputs:[Hk],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:kk,calledByError:[],calledByEntry:[],calledBySuccess:[Xk],error:null,x:0,y:0,parent:Kk},Ku="global-object-keys-test-loop-id",BR="global-object-keys-test-loop-body-id",_R="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",Qk={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:_R,version:"1",entityType:n.ArgumentDeclaration},e8={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:Qk},t8={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:BR,version:"1",entityType:n.FunctionDeclaration},r8={constant:!0,id:_R,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:e8,implements:Cl,required:!0,index:0,writesValues:[],parent:t8},i8={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Ku,version:"1",entityType:n.Loop},n8={id:BR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[r8],calls:[],implements:xn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:i8},a8={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Ku,version:"1",entityType:n.Loop},s8={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Fr,version:"1",entityType:n.VariableDeclaration},MR={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:xn.inputs[0],defaultValue:null,readsValue:s8,index:0,parent:a8},o8={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},d8={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:yn,version:"1",entityType:n.VariableDeclaration},l8={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:Fr,version:"1",entityType:n.VariableDeclaration},Xu={id:Ku,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xn,inputs:[MR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:n8,calledByError:[],calledByEntry:[],calledBySuccess:[l8,d8],error:null,x:0,y:0,parent:o8},Qu="global-object-values-test-loop-id",gR="global-object-values-test-loop-body-id",NR="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",u8={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:NR,version:"1",entityType:n.ArgumentDeclaration},p8={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:u8},c8={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:gR,version:"1",entityType:n.FunctionDeclaration},f8={constant:!0,id:NR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:p8,implements:_l,required:!0,index:0,writesValues:[],parent:c8},y8={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Qu,version:"1",entityType:n.Loop},h8={id:gR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[f8],calls:[],implements:Sn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:y8},m8={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Qu,version:"1",entityType:n.Loop},v8={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:yn,version:"1",entityType:n.VariableDeclaration},LR={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Sn.inputs[0],defaultValue:null,readsValue:v8,index:0,parent:m8},T8={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},E8={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:yn,version:"1",entityType:n.VariableInstance},UR={id:Qu,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sn,inputs:[LR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:h8,calledByError:[],calledByEntry:[],calledBySuccess:[E8],error:null,x:0,y:0,parent:T8},ep="global-test-iterate-over-string-loop-id",tp="global-test-iterate-over-string-loop-body-id",Xo="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",$R="global-test-iterate-over-string-loop-iteration-list-input-map-id",I8={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Xo,version:"1",entityType:n.ArgumentDeclaration},A8={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:I8},b8={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:tp,version:"1",entityType:n.FunctionDeclaration},R8={constant:!0,id:Xo,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:A8,implements:wl,required:!0,index:1,writesValues:[],parent:b8},D8={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Xo,version:"1",entityType:n.ArgumentDeclaration},O8={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:D8},P8={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:tp,version:"1",entityType:n.FunctionDeclaration},w8={constant:!0,id:Xo,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:O8,implements:Vl,required:!0,index:0,writesValues:[],parent:P8},V8={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:ep,version:"1",entityType:n.Loop},C8={id:tp,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[w8,R8],calls:[],implements:eo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:V8},B8={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:ep,version:"1",entityType:n.Loop},_8={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:$R,version:"1",entityType:n.InputMap},M8={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.LiteralValue,name:g.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:yt.Random,rangeStart:4,rangeEnd:5},parent:_8},g8={id:$R,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ca.inputs[0],defaultValue:M8,readsValue:null,index:0,parent:B8},N8={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},L8={id:ep,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ca,inputs:[g8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:C8,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:N8},rp="iterate-over-list-loop-id",jR="iterate-over-list-loop-body-id",GR="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",U8={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:GR,version:"1",entityType:n.ArgumentDeclaration},$8={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:U8},j8={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:jR,version:"1",entityType:n.FunctionDeclaration},G8={constant:!0,id:GR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:$8,implements:to,required:!0,index:0,writesValues:[],parent:j8},F8={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:rp,version:"1",entityType:n.Loop},x8={id:jR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[G8],calls:[],implements:Ba,collapsed:!1,private:!1,index:0,x:0,y:0,parent:F8},S8={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:rp,version:"1",entityType:n.Loop},k8={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:mi.inputs[0],defaultValue:null,readsValue:null,index:0,parent:S8},Z8={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},q8={id:rp,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi,inputs:[k8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:x8,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:Z8},J8=`SELECT
|
|
1
|
+
(function(y,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(y=typeof globalThis<"u"?globalThis:y||self,n(y["@elyx-code/project-logic-tree"]={}))})(this,function(y){"use strict";var qJ=Object.defineProperty;var JJ=(y,n,Y)=>n in y?qJ(y,n,{enumerable:!0,configurable:!0,writable:!0,value:Y}):y[n]=Y;var f=(y,n,Y)=>(JJ(y,typeof n!="symbol"?n+"":n,Y),Y);var n=(i=>(i.DefinitionEntity="definition-entity",i.BuiltInBaseEntity="built-in-base-entity",i.Project="project",i.InstalledProject="installed-project",i.GlobalEvent="global-event",i.DataType="data-type",i.FunctionCall="function-call",i.FunctionDeclaration="function-declaration",i.ActionDescriptor="action-descriptor",i.ValueDescriptor="value-descriptor",i.ArgumentDeclaration="argument-declaration",i.InputMap="input-map",i.ReturnStatement="return-statement",i.BreakStatement="break-statement",i.ContinueStatement="continue-statement",i.ReturnDeclaration="return-declaration",i.OutputMap="output-map",i.PrimitiveEntity="primitive-entity",i.LiteralValue="literal-value",i.Property="property",i.Operation="operation",i.Condition="condition",i.VariableDeclaration="variable-declaration",i.VariableInstance="variable-instance",i.Search="search",i.Loop="loop",i.InternalCall="internal-call",i.GenericReference="generic-reference",i))(n||{}),Y=(i=>(i.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",i.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",i.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",i.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",i.EXECUTION="BUILT_IN_EXECUTION_ENTITY",i.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",i))(Y||{}),yt=(i=>(i.CurrentDateAndTime="current-date-and-time",i.Unique="unique",i.Random="random",i))(yt||{}),g=(i=>(i.EntityTemplate="entity-template",i.ActionDescriptor="action-descriptor",i.String="string",i.Number="number",i.Boolean="boolean",i.Null="null",i.Enum="enum",i.KeyValue="key-value",i.Date="date",i.UUID="uuid",i.File="file",i.Untyped="untyped",i))(g||{}),Xe=(i=>(i.Addition="addition",i.Subtraction="subtraction",i.Multiplication="multiplication",i.Division="division",i.Remainder="remainder",i.Exponentiation="exponentiation",i))(Xe||{}),Ee=(i=>(i.Join="string-join",i.Split="string-split",i.DeleteLast="string-delete-last",i.DeleteFirst="string-delete-first",i.DeleteIndex="string-delete-index",i.AddIndex="string-add-index",i.ReplaceFirst="string-replace-first",i.ReplaceLast="string-replace-last",i.ReplaceIndex="string-replace-index",i.ReplaceSingleMatch="string-replace-single-match",i.ReplaceAllMatches="string-replace-all-matches",i.GetIndex="string-get-index",i.GetFirst="string-get-first",i.GetLast="string-get-last",i.Append="string-append",i.Prepend="string-prepend",i))(Ee||{}),fe=(i=>(i.Join="list-join",i.Split="list-split",i.DeleteLast="list-delete-last",i.DeleteFirst="list-delete-first",i.DeleteIndex="list-delete-index",i.AddIndex="list-add-index",i.ReplaceFirst="list-replace-first",i.ReplaceLast="list-replace-last",i.ReplaceIndex="list-replace-index",i.ReplaceSingleMatch="list-replace-single-match",i.ReplaceAllMatches="list-replace-all-matches",i.GetIndex="list-get-index",i.GetFirst="list-get-first",i.GetLast="list-get-last",i.Append="list-append",i.Prepend="list-prepend",i))(fe||{}),He=(i=>(i.Parallel="parallel",i.Sequential="sequential",i.Wait="wait",i))(He||{}),Ke=(i=>(i.CreateNewInstance="create-new-instance",i.Validate="validate",i))(Ke||{}),Ct=(i=>(i.HttpRequest="base-http-request",i))(Ct||{}),pt=(i=>(i.Equal="equal",i.NotEqual="not-equal",i.And="and",i.Or="or",i.LessThan="less-than",i.MoreThan="more-than",i.LessThanOrEqual="less-than-or-equal",i.MoreThanOrEqual="more-than-or-equal",i))(pt||{}),yr=(i=>(i.Empty="empty",i.NotEmpty="not-empty",i))(yr||{}),X=(i=>(i.ManualFlow="manual-flow-loop",i.Counted="counted-loop",i.List="list-loop",i.ObjectKeys="object-keys-loop",i.ObjectValues="object-values-loop",i.String="string-loop",i))(X||{}),M=(i=>(i.FixedArguments="fixed-arguments",i.FixedReturns="fixed-returns",i.ReturnedError="returned-error",i.OngoingProcessExecution="ongoing-process-execution",i.DynamicArgument="dynamic-argument-types",i.DynamicReturn="dynamic-return-types",i))(M||{}),bt=(i=>(i.OrDataTypeGroup="or-data-type-group",i.AndDataTypeGroup="and-data-type-group",i))(bt||{}),Hr=(i=>(i.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",i))(Hr||{}),or=(i=>(i.DeletePersistedEntity="base-delete-persisted-entity",i.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",i.AbortExecution="base-abort-execution",i))(or||{}),Un=(i=>(i.Error="error",i.Task="task",i.Return="return",i))(Un||{});const hi=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],ht=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],Kc=[...hi,...ht],Qe=[n.VariableDeclaration,n.VariableInstance],LP=[n.FunctionDeclaration,n.Condition,n.Loop,n.Operation,n.FunctionCall,n.Search,n.InternalCall,n.GlobalEvent,n.DefinitionEntity,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableDeclaration,n.VariableInstance,n.LiteralValue,n.ActionDescriptor,n.ValueDescriptor,n.Property,n.DataType,n.InstalledProject,n.ArgumentDeclaration,n.InputMap,n.OutputMap,n.ReturnDeclaration],UP=[n.FunctionDeclaration,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration],Xc=[n.FunctionCall,n.VariableInstance,n.InputMap,n.OutputMap,n.InternalCall],$P=[...Xc,n.Condition,n.Loop,n.Operation,n.Condition],$n=[n.GlobalEvent],nl=[n.Operation,n.FunctionCall,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],Qc=[...nl,n.InternalCall],js=[...nl,n.Condition],nt=[...js,n.InternalCall],at=[n.FunctionDeclaration,...$n],Cr=[...nt,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],al=[...js,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Br=[...nt,...at],ef=[...js,...at],jP=[...Cr,...at],GP=[...al,...at],mt=[...at,n.Loop],st=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],FP=[n.DefinitionEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.LiteralValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Gs=[n.DefinitionEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],tf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],hr=[n.BuiltInBaseEntity,n.PrimitiveEntity],rf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.LiteralValue,n.InternalCall];var Fs=(i=>(i.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",i))(Fs||{});const x={[n.PrimitiveEntity]:{[g.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[g.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[g.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[g.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[g.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"}}}}},[g.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[g.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[g.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[g.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[Y.KEY_VALUE_PARAM]:{id:Y.KEY_VALUE_PARAM},[Y.HTTP_ENDPOINT]:{id:Y.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"}}},[Y.PERSISTED_ENTITY]:{id:Y.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[Y.RELATIONAL_DATABASE]:{id:Y.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"}}},[Y.CRON_JOB]:{id:Y.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[n.Operation]:{[Ee.Join]:{id:Ee.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"}}},[Ee.Split]:{id:Ee.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"}}},[Xe.Addition]:{id:Xe.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"}}},[Xe.Subtraction]:{id:Xe.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"}}},[Ct.HttpRequest]:{id:Ct.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"}}},[Ke.Validate]:{id:Ke.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"}}},[He.Parallel]:{id:He.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"}}}},[n.Loop]:{[X.List]:{id:X.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"}}}},[X.String]:{id:X.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"}}}},[X.ObjectKeys]:{id:X.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"}}}},[X.ObjectValues]:{id:X.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"}}}},[X.ManualFlow]:{id:X.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"}}}},[X.Counted]:{id:X.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"}}}}},[n.Condition]:{[pt.MoreThanOrEqual]:{id:pt.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"}}}},[yr.NotEmpty]:{id:yr.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[Hr.PROJECT_PUBLICATION_COMPLETED]:{id:Hr.PROJECT_PUBLICATION_COMPLETED}}},dr=x[n.PrimitiveEntity],ne={type:n.PrimitiveEntity,id:dr.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Kr={type:n.PrimitiveEntity,id:dr.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},me={type:n.PrimitiveEntity,id:dr.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},sl={type:n.PrimitiveEntity,id:dr.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Rt={type:n.PrimitiveEntity,id:dr.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:g.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},nf={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:dr.enum.properties.options.id,version:"1",entityType:n.Property},af={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:n.Property},sf={like:!1,inferred:!1,id:dr.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ne,asType:!1,parent:af},of={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:n.PrimitiveEntity},df={constant:!1,hidden:!1,required:!0,id:dr.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:dr.enum.properties.options.dataType.defaultValue.id,type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:nf},dataType:sf,description:"Options for the enum. Each option is a text value.",parent:of},Xr={type:n.PrimitiveEntity,id:dr.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:g.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[df],methods:[]},_r={type:n.PrimitiveEntity,id:dr.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Qr={type:n.PrimitiveEntity,id:dr.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:g.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[ne],properties:[],methods:[]},jn={type:n.PrimitiveEntity,id:dr[g.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:g.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},lf=[ne,Kr,me,sl,Rt,Xr,_r,Qr,jn],Mr=x[n.Operation][Xe.Addition],uf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Mr.inputs.firstSummand.id,version:"1",entityType:n.ValueDescriptor},pf={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:uf},cf={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Mr.inputs.secondSummand.id,version:"1",entityType:n.ValueDescriptor},ff={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:cf},yf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Mr.outputs.result.id,version:"1",entityType:n.ValueDescriptor},hf={like:!1,inferred:!1,id:Mr.outputs.result.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:yf},mf={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Xe.Addition,version:"1",entityType:n.ActionDescriptor},ol={id:Mr.inputs.firstSummand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:pf,required:!0,parentRelationType:M.FixedArguments,index:0,parent:mf},vf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Xe.Addition,version:"1",entityType:n.ActionDescriptor},dl={id:Mr.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:ff,required:!0,parentRelationType:M.FixedArguments,index:1,parent:vf},ll={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Xe.Addition,version:"1",entityType:n.ActionDescriptor},ul={parentRelationType:M.FixedReturns,id:Mr.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:hf,required:!0,index:0,parent:ll},Tf={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:Xe.Addition,version:"1",entityType:n.ActionDescriptor},Ef={parentRelationType:M.FixedReturns,id:Mr.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Tf},If={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:Mr.inputs.dynamicSummand.id,version:"1",entityType:n.ValueDescriptor},Af={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:If},bf={parentRelationType:M.DynamicArgument,id:Mr.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Af,required:!0,index:2,parent:ll},xs={id:Xe.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Xe.Addition,inputs:[ol,dl,bf],error:Ef,outputs:[ul],parent:null},gr=x[n.Operation][Xe.Subtraction],Rf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:gr.inputs.minuend.id,version:"1",entityType:n.ValueDescriptor},Df={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:Rf},Of={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:gr.inputs.subtrahend.id,version:"1",entityType:n.ValueDescriptor},Pf={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:Of},wf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:gr.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Vf={like:!1,inferred:!1,id:gr.outputs.result.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:wf},pl={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Xe.Subtraction,version:"1",entityType:n.ActionDescriptor},Cf={id:gr.inputs.minuend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:Df,required:!0,parentRelationType:M.FixedArguments,index:0,parent:pl},Bf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Xe.Subtraction,version:"1",entityType:n.ActionDescriptor},_f={id:gr.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",defaultValue:null,dataType:Pf,required:!0,parentRelationType:M.FixedArguments,index:1,parent:Bf},Mf={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Xe.Subtraction,version:"1",entityType:n.ActionDescriptor},gf={parentRelationType:M.FixedReturns,id:gr.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Vf,required:!0,index:0,parent:Mf},Nf={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:Xe.Subtraction,version:"1",entityType:n.ActionDescriptor},Lf={parentRelationType:M.FixedReturns,id:gr.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Nf},Uf={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:gr.inputs.dynamicSubtrahend.id,version:"1",entityType:n.ValueDescriptor},$f={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:Uf},jf={id:gr.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:$f,required:!0,parentRelationType:M.DynamicArgument,index:2,parent:pl},cl={id:Xe.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Xe.Subtraction,inputs:[Cf,_f,jf],error:Lf,outputs:[gf],parent:null},Gf={[Xe.Addition]:xs,[Xe.Subtraction]:cl},mr=x[n.Operation][Ee.Join],Ff={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:mr.inputs.first.id,version:"1",entityType:n.ValueDescriptor},xf={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Ff},Sf={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:mr.inputs.second.id,version:"1",entityType:n.ValueDescriptor},kf={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Sf},Zf={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:mr.outputs.result.id,version:"1",entityType:n.ValueDescriptor},qf={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Zf},Jf={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ss={id:mr.inputs.first.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:xf,parentRelationType:M.FixedArguments,required:!0,index:1,parent:Jf},Wf={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:mr.inputs.first.id,version:"1",entityType:n.ValueDescriptor},zf={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:mr.inputs.separator.id,version:"1",entityType:n.ValueDescriptor},Yf={type:n.LiteralValue,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:g.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:zf},Hf={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Wf},Kf={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Xf={id:mr.inputs.separator.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:Yf,dataType:Hf,parentRelationType:M.FixedArguments,required:!1,index:0,parent:Kf},Qf={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},ks={id:mr.inputs.second.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:kf,parentRelationType:M.FixedArguments,required:!0,index:2,parent:Qf},ey={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Oa={parentRelationType:M.FixedReturns,id:mr.outputs.result.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:qf,required:!0,index:0,parent:ey},ty={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},ry={parentRelationType:M.FixedReturns,id:mr.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ty},iy={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:mr.inputs.dynamicString.id,version:"1",entityType:n.ValueDescriptor},ny={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:iy},ay={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},sy={id:mr.inputs.dynamicString.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:ny,parentRelationType:M.DynamicArgument,required:!0,index:3,parent:ay},Pa={id:Ee.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Join,description:"Join text values together, to form a single resulting text value.",inputs:[Xf,Ss,ks,sy],outputs:[Oa],error:ry,parent:null},ei=x[n.Operation][Ee.Split],oy={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:ei.inputs.stringValue.id,version:"1",entityType:n.ValueDescriptor},dy={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:oy},ly={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:ei.inputs.indexLocation.id,version:"1",entityType:n.ValueDescriptor},uy={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:ly},py={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:ei.outputs.firstPartResult.id,version:"1",entityType:n.ValueDescriptor},cy={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:py},fy={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:ei.outputs.secondPartResult.id,version:"1",entityType:n.ValueDescriptor},yy={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:fy},hy={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},my={id:ei.inputs.stringValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:dy,parentRelationType:M.FixedArguments,required:!0,index:0,parent:hy},vy={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ty={id:ei.inputs.indexLocation.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:uy,parentRelationType:M.FixedArguments,required:!0,index:1,parent:vy},Ey={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},xP={parentRelationType:M.FixedReturns,id:ei.outputs.secondPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:yy,required:!0,index:1,parent:Ey},Iy={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ay={parentRelationType:M.FixedReturns,id:ei.outputs.firstPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:cy,required:!0,index:0,parent:Iy},by={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ry={parentRelationType:M.FixedReturns,id:ei.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:by},fl={id:Ee.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Split,description:"Split a text into two, at the given index location.",inputs:[my,Ty],outputs:[Ay],error:Ry,parent:null},Dy={[Ee.Join]:Pa,[Ee.Split]:fl};var Oy=(i=>(i.FirstInputList="join-list-first-list-argument-declaration",i.SecondInputList="join-list-second-list-argument-declaration",i))(Oy||{}),Py=(i=>(i.ResultList="join-list-result-list-return-delaration",i.Error="join-list-error-return-delaration",i))(Py||{});const wy={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},Vy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,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:wy},Cy={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},By={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,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:Cy},_y={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},My={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:_y},gy={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:fe.Join,version:"1",entityType:n.ActionDescriptor},Ny={id:"join-list-first-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Vy,parentRelationType:M.FixedArguments,required:!0,index:0,parent:gy},Ly={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:fe.Join,version:"1",entityType:n.ActionDescriptor},Uy={id:"join-list-second-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:By,parentRelationType:M.FixedArguments,required:!0,index:1,parent:Ly},$y={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:fe.Join,version:"1",entityType:n.ActionDescriptor},jy={parentRelationType:M.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:My,required:!0,index:0,parent:$y},Gy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:fe.Join,version:"1",entityType:n.ActionDescriptor},Fy={parentRelationType:M.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Gy},yl={id:fe.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:fe.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[Ny,Uy],error:Fy,outputs:[jy],parent:null};var xy=(i=>(i.InputList="list-to-split-argument-declaration",i.SplitIndex="split-list-index-argument-declaration",i))(xy||{}),Sy=(i=>(i.FirstOutputList="split-list-first-output-list-return-delaration",i.SecondOutputList="split-list-second-output-list-return-delaration",i.Error="split-list-error-return-delaration",i))(Sy||{});const ky={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:n.ValueDescriptor},Zy={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:ky},qy={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:n.ValueDescriptor},Jy={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:qy},hl={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Wy={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:hl},zy={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},Yy={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Zy,parentRelationType:M.FixedArguments,required:!0,index:0,parent:zy},Hy={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},Ky={id:"split-list-index-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Jy,parentRelationType:M.FixedArguments,required:!0,index:1,parent:Hy},Xy={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},Qy={parentRelationType:M.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:Wy,required:!0,index:0,parent:Xy},eh={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:hl},th={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},rh={parentRelationType:M.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:eh,required:!0,index:0,parent:th},ih={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:fe.Split,version:"1",entityType:n.ActionDescriptor},nh={parentRelationType:M.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ih},ml={id:fe.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:fe.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:[Yy,Ky],outputs:[Qy,rh],error:nh,parent:null};var ah=(i=>(i.InputList="get-last-in-list-input-list-argument-declaration",i))(ah||{}),sh=(i=>(i.OutputElement="get-last-in-list-output-element-return-delaration",i.Error="get-last-in-list-error-return-delaration",i))(sh||{});const oh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},dh={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,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:oh},lh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:n.ValueDescriptor},uh={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:lh},ph={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:fe.GetLast,version:"1",entityType:n.ActionDescriptor},ch={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:dh,parentRelationType:M.FixedArguments,required:!0,index:0,parent:ph},fh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:fe.GetLast,version:"1",entityType:n.ActionDescriptor},yh={parentRelationType:M.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:uh,required:!0,index:0,parent:fh},hh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:fe.GetLast,version:"1",entityType:n.ActionDescriptor},mh={parentRelationType:M.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:hh},vl={id:fe.GetLast,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:fe.GetLast,description:"Outputs the last element of a given list.",inputs:[ch],outputs:[yh],error:mh,parent:null};var vh=(i=>(i.List="append-to-list-lsit-argument-declaration",i.ElementToAppend="append-to-list-element-to-append-argument-declaration",i))(vh||{}),Th=(i=>(i.ResultList="append-to-list-result-list-return-delaration",i.Error="append-to-list-error-return-delaration",i))(Th||{});const Eh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:n.ValueDescriptor},Ih={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,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:Eh},Ah={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:n.ValueDescriptor},bh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,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:Ah},Rh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Dh={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!0,parent:Rh},Oh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:fe.Append,version:"1",entityType:n.ActionDescriptor},Tl={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:Ih,parentRelationType:M.FixedArguments,required:!0,index:0,parent:Oh},Ph={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:fe.Append,version:"1",entityType:n.ActionDescriptor},El={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:bh,parentRelationType:M.FixedArguments,required:!0,index:1,parent:Ph},wh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:fe.Append,version:"1",entityType:n.ActionDescriptor},Vh={parentRelationType:M.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Dh,required:!0,index:0,parent:wh},Ch={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:fe.Append,version:"1",entityType:n.ActionDescriptor},Bh={parentRelationType:M.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Ch},Zs={id:fe.Append,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:fe.Append,description:"Adds a given element to the end of a list value.",inputs:[Tl,El],error:Bh,outputs:[Vh],parent:null},_h={[fe.Join]:yl,[fe.Split]:ml,[fe.GetLast]:vl,[fe.Append]:Zs},Gn=x[n.Operation][He.Parallel],Mh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},gh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Mh,parentRelationType:M.DynamicArgument},Nh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},Lh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Nh,parentRelationType:M.DynamicArgument},Uh={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:n.DataType},$h={id:"parallel-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Lh],outputs:[gh],error:null,parent:Uh},jh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Gn.inputs.listOfActions.id,version:"1",entityType:n.ValueDescriptor},Gh={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$h,asType:!1,isList:!0,parent:jh},Fh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Gn.outputs.results.id,version:"1",entityType:n.ValueDescriptor},xh={like:!1,inferred:!1,id:Gn.outputs.results.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!0,parent:Fh},Sh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:He.Parallel,version:"1",entityType:n.ActionDescriptor},Il={id:Gn.inputs.listOfActions.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Gh,defaultValue:null,required:!0,index:0,parent:Sh,parentRelationType:M.FixedArguments},kh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:He.Parallel,version:"1",entityType:n.ActionDescriptor},Al={id:Gn.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:xh,defaultValue:null,required:!0,index:0,parent:kh,parentRelationType:M.FixedReturns},Zh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:He.Parallel,version:"1",entityType:n.ActionDescriptor},qh={id:Gn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Zh,parentRelationType:M.ReturnedError},br={id:He.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:He.Parallel,inputs:[Il],outputs:[Al],error:qh,parent:null};var Jh=(i=>(i.MillisecondsNumber="wait-milliseconds-number-argument-declaration",i))(Jh||{}),Wh=(i=>(i.Error="wait-operation-error-return-delaration",i))(Wh||{});const zh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Yh={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:zh},Hh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:n.ActionDescriptor,entityId:He.Wait},Ki={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:Yh,required:!0,index:0,parent:Hh,parentRelationType:M.FixedArguments},Kh={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:He.Wait,version:"1",entityType:n.ActionDescriptor},Xh={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Kh,parentRelationType:M.ReturnedError},Ft={id:He.Wait,type:n.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,name:He.Wait,inputs:[Ki],outputs:[],error:Xh,parent:null};var Qh=(i=>(i.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",i))(Qh||{}),em=(i=>(i.ListOfExecutionResults="sequential-execution-result-return-delaration",i.Error="sequential-execution-error-return-delaration",i))(em||{});const tm={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument},rm={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument},im={id:"sequential-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[rm],outputs:[tm],error:null,parent:null},nm={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:n.ValueDescriptor},am={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:im,asType:!1,isList:!0,parent:nm},sm={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:n.ValueDescriptor},om={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!0,parent:sm},dm={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:He.Sequential,version:"1",entityType:n.ActionDescriptor},bl={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:am,required:!0,index:0,parent:dm,parentRelationType:M.FixedArguments},lm={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:He.Sequential,version:"1",entityType:n.ActionDescriptor},Rl={id:"sequential-execution-result-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:om,required:!0,index:0,parent:lm,parentRelationType:M.FixedReturns},um={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:He.Sequential,version:"1",entityType:n.ActionDescriptor},pm={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:um,parentRelationType:M.ReturnedError},ti={id:He.Sequential,type:n.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,name:He.Sequential,inputs:[bl],outputs:[Rl],error:pm,parent:null},cm={[He.Parallel]:br,[He.Wait]:Ft,[He.Sequential]:ti};var fm=(i=>(i.EntityToInstanciate="entity-to-instanciate-argument-declaration",i.NewEntityData="new-entity-data-argument-declaration",i))(fm||{}),ym=(i=>(i.Error="create-new-instance-error-return-delaration",i))(ym||{});const hm={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Ke.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},mm={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:n.ValueDescriptor},vm={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,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:mm},Tm={id:"new-entity-data-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:vm,required:!0,defaultValue:null,parentRelationType:M.FixedArguments,index:1,parent:hm},Em={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Im={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,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:Em},Am={type:n.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:n.ActionDescriptor,entityId:Ke.CreateNewInstance},bm={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:Im,required:!0,parentRelationType:M.FixedArguments,index:0,parent:Am},Rm={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ke.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Dm={parentRelationType:M.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:Rm,required:!0,index:0},Om={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ke.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Pm={parentRelationType:M.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Om},Xi={id:Ke.CreateNewInstance,type:n.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,name:Ke.CreateNewInstance,inputs:[bm,Tm],outputs:[Dm],error:Pm,parent:null},Fn=x[n.Operation][Ke.Validate],wm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Fn.inputs.dataToValidate.id},Vm={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,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:wm},Cm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:Ke.Validate},Bm={id:Fn.inputs.dataToValidate.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:Vm,required:!0,parentRelationType:M.FixedArguments,index:0,parent:Cm},_m={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Fn.inputs.entityToMatch.id},Mm={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,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:_m},gm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:Ke.Validate},Nm={id:Fn.inputs.entityToMatch.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to match",description:"The entity to match the data against",dataType:Mm,defaultValue:null,required:!0,index:0,parentRelationType:M.FixedArguments,parent:gm},Lm={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ke.Validate,version:"1",entityType:n.ActionDescriptor},Um={id:Fn.outputs.outputEntity.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:Lm,required:!0,index:0,parentRelationType:M.FixedReturns},$m={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ke.Validate,version:"1",entityType:n.ActionDescriptor},jm={id:Fn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:$m,parentRelationType:M.ReturnedError},Qi={id:Ke.Validate,type:n.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,name:Ke.Validate,inputs:[Nm,Bm],outputs:[Um],error:jm,parent:null},Gm={[Ke.CreateNewInstance]:Xi,[Ke.Validate]:Qi},Tt=x[n.Operation]["base-http-request"],Fm={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:n.ValueDescriptor,entityId:Tt.inputs.url.id},xm={id:"http-request-url-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:g.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:Fm,autogeneration:null},Sm={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Tt.inputs.url.id,version:"1",entityType:n.ValueDescriptor},km={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Sm},Zm={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Tt.inputs.query.id,version:"1",entityType:n.ValueDescriptor},qm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Zm},Jm={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:n.ValueDescriptor,entityId:Tt.inputs.method.id},Wm={id:"http-request-method-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:g.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:Jm,autogeneration:null},zm={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Tt.inputs.method.id,version:"1",entityType:n.ValueDescriptor},Ym={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Xr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:zm},Hm={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Tt.inputs.headers.id,version:"1",entityType:n.ValueDescriptor},Km={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,asType:!1,isList:!1,parent:Hm},Xm={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Tt.inputs.body.id,version:"1",entityType:n.ValueDescriptor},Qm={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,asType:!1,isList:!1,parent:Xm},e0={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.code.id},t0={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:e0},r0={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.headers.id},i0={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.headers.id},n0={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,isList:!1,asType:!1,parent:i0},a0={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.body.id},s0={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.body.id},o0={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,isList:!1,asType:!1,parent:s0},d0={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},qs={id:Tt.inputs.method.id,type:n.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,name:"Method",defaultValue:Wm,dataType:Ym,required:!1,index:0,parentRelationType:M.FixedArguments,parent:d0},l0={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Js={id:Tt.inputs.url.id,type:n.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,name:"URL",dataType:km,defaultValue:xm,required:!1,index:1,parentRelationType:M.FixedArguments,parent:l0},u0={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Dl={id:Tt.inputs.query.id,type:n.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,name:"Query Params",defaultValue:null,dataType:qm,required:!1,index:2,parentRelationType:M.FixedArguments,parent:u0},p0={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Ws={id:Tt.inputs.headers.id,type:n.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,name:"Headers",defaultValue:null,dataType:Km,required:!1,index:3,parent:p0,parentRelationType:M.FixedArguments},c0={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},zs={id:Tt.inputs.body.id,type:n.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,name:"Body",dataType:Qm,defaultValue:null,required:!1,index:4,parentRelationType:M.FixedArguments,parent:c0},f0={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Ys={id:Tt.outputs.code.id,type:n.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,name:"Code",defaultValue:null,dataType:t0,required:!0,index:0,parentRelationType:M.FixedReturns,parent:f0},y0={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Hs={parentRelationType:M.FixedReturns,id:Tt.outputs.headers.id,type:n.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,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:g.KeyValue,parent:r0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:n0,required:!0,index:1,parent:y0},h0={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},Ks={id:Tt.outputs.body.id,type:n.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,name:"Body",parentRelationType:M.FixedReturns,dataType:o0,defaultValue:{id:"http-response-body-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:g.KeyValue,parent:a0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:h0},m0={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:n.ActionDescriptor,entityId:Ct.HttpRequest},v0={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:n.ValueDescriptor,entityId:Tt.outputs.error.id},T0={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,isList:!1,asType:!1,parent:v0},Ol={parentRelationType:M.ReturnedError,id:Tt.outputs.error.id,type:n.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,name:"Error",defaultValue:null,dataType:T0,required:!0,index:0,parent:m0},wa={type:n.ActionDescriptor,id:Ct.HttpRequest,name:Ct.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:[qs,Js,Dl,Ws,zs],outputs:[Ys,Hs,Ks],error:Ol,parent:null},E0={[Ct.HttpRequest]:wa},I0={...Dy,...Gf,..._h,...cm,...Gm,...E0},A0=Object.values(I0),SP=x[n.Loop]["manual-flow-loop"],b0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ManualFlow,version:"1",entityType:n.ActionDescriptor},R0={id:SP.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:b0,parentRelationType:M.DynamicReturn},Xs={id:X.ManualFlow,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.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:[R0],error:null,parent:null},Va=x[n.Loop]["manual-flow-loop"],D0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},O0={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:D0},P0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Va.body.id,version:"1",entityType:n.ActionDescriptor},Pl={id:Va.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:O0,required:!0,index:0,parentRelationType:M.FixedArguments,parent:P0},w0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Va.body.id,version:"1",entityType:n.ActionDescriptor},V0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:w0},C0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Va.body.id,version:"1",entityType:n.ActionDescriptor},B0={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:C0},Qs={id:Va.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[Pl,V0],outputs:[B0],error:null,parent:null},_0=x[n.Loop]["string-loop"],M0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},g0={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ne,asType:!1,parent:M0},N0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.String,version:"1",entityType:n.ActionDescriptor},L0={id:_0.inputs.string.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:g0,index:0,parent:N0,parentRelationType:M.FixedArguments},U0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.String,version:"1",entityType:n.ActionDescriptor},$0={id:_0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:U0,parentRelationType:M.DynamicReturn},Ca={id:X.String,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.String,description:"Iterates over a string of entities",inputs:[L0],outputs:[$0],error:null,parent:null},en=x[n.Loop]["string-loop"],j0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},G0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ne,asType:!1,parent:j0},F0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:en.body.id,version:"1",entityType:n.ActionDescriptor},wl={id:en.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:G0,required:!0,index:1,parentRelationType:M.FixedArguments,parent:F0},x0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},S0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:x0},k0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:en.body.id,version:"1",entityType:n.ActionDescriptor},Vl={id:en.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:S0,required:!0,index:0,parentRelationType:M.FixedArguments,parent:k0},Z0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:en.body.id,version:"1",entityType:n.ActionDescriptor},q0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:Z0},J0={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:en.body.id,version:"1",entityType:n.ActionDescriptor},W0={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:J0},eo={id:en.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Vl,wl,q0],outputs:[W0],error:null,parent:null},z0=x[n.Loop]["list-loop"],Y0={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},H0={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,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:Y0},K0={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.List,version:"1",entityType:n.ActionDescriptor},X0={id:z0.inputs.list.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:H0,index:0,parent:K0,parentRelationType:M.FixedArguments},Q0={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.List,version:"1",entityType:n.ActionDescriptor},ev={id:z0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:Q0,parentRelationType:M.DynamicReturn},mi={id:X.List,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.List,description:"Iterates over a list of entities",inputs:[X0],outputs:[ev],error:null,parent:null},tn=x[n.Loop]["list-loop"],tv={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},rv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,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:tv},iv={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:tn.body.id,version:"1",entityType:n.ActionDescriptor},to={id:tn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:rv,required:!0,index:1,parentRelationType:M.FixedArguments,parent:iv},nv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},av={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:nv},sv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:tn.body.id,version:"1",entityType:n.ActionDescriptor},ov={id:tn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:av,required:!0,index:0,parentRelationType:M.FixedArguments,parent:sv},dv={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:tn.body.id,version:"1",entityType:n.ActionDescriptor},lv={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:dv},uv={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:tn.body.id,version:"1",entityType:n.ActionDescriptor},pv={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:uv},Ba={id:tn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[ov,to,lv],outputs:[pv],error:null,parent:null},cv=x[n.Loop]["object-keys-loop"],fv={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},yv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Rt,asType:!1,parent:fv},hv={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ObjectKeys,version:"1",entityType:n.ActionDescriptor},mv={id:cv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:yv,index:0,parent:hv,parentRelationType:M.FixedArguments},vv={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Tv={id:cv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:vv,parentRelationType:M.DynamicReturn},xn={id:X.ObjectKeys,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.ObjectKeys,description:"Iterates over a object of entities",inputs:[mv],outputs:[Tv],error:null,parent:null},rn=x[n.Loop]["object-keys-loop"],Ev={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Iv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ne,asType:!1,parent:Ev},Av={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:rn.body.id,version:"1",entityType:n.ActionDescriptor},Cl={id:rn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Iv,required:!0,index:1,parentRelationType:M.FixedArguments,parent:Av},bv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Rv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:bv},Dv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:rn.body.id,version:"1",entityType:n.ActionDescriptor},Ov={id:rn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Rv,required:!0,index:0,parentRelationType:M.FixedArguments,parent:Dv},Pv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:rn.body.id,version:"1",entityType:n.ActionDescriptor},wv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:Pv},Vv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:rn.body.id,version:"1",entityType:n.ActionDescriptor},Cv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:Vv},Bl={id:rn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[Ov,Cl,wv],outputs:[Cv],error:null,parent:null},Bv=x[n.Loop]["object-values-loop"],_v={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Mv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Rt,asType:!1,parent:_v},gv={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ObjectValues,version:"1",entityType:n.ActionDescriptor},Nv={id:Bv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Mv,index:0,parent:gv,parentRelationType:M.FixedArguments},Lv={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.ObjectValues,version:"1",entityType:n.ActionDescriptor},Uv={id:Bv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Lv,parentRelationType:M.DynamicReturn},Sn={id:X.ObjectValues,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.ObjectValues,description:"Iterates over a object of entities",inputs:[Nv],outputs:[Uv],error:null,parent:null},nn=x[n.Loop]["object-values-loop"],$v={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},jv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,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,like:!1,inferred:!1,parent:$v},Gv={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},_l={id:nn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:jv,required:!0,index:1,parentRelationType:M.FixedArguments,parent:Gv},Fv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},xv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:Fv},Sv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},kv={id:nn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:xv,required:!0,index:0,parentRelationType:M.FixedArguments,parent:Sv},Zv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},qv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:Zv},Jv={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},Wv={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:Jv},Ml={id:nn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[kv,_l,qv],outputs:[Wv],error:null,parent:null},gl=x[n.Loop]["counted-loop"],zv={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:gl.inputs.number.id,version:"1",entityType:n.ValueDescriptor},Yv={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.LiteralValue,name:g.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:zv},Hv={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Kv={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:Hv},Xv={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:X.Counted,version:"1",entityType:n.ActionDescriptor},Qv={id:gl.inputs.number.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:Kv,defaultValue:Yv,index:0,parent:Xv,parentRelationType:M.FixedArguments},eT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:X.Counted,version:"1",entityType:n.ActionDescriptor},tT={id:gl.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:eT,parentRelationType:M.DynamicReturn},_a={id:X.Counted,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:X.Counted,description:"Iterates a given number of times",inputs:[Qv],outputs:[tT],error:null,parent:null},Ma=x[n.Loop]["counted-loop"],rT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},iT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:me,asType:!1,parent:rT},nT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ma.body.id,version:"1",entityType:n.ActionDescriptor},Nl={id:Ma.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:iT,required:!0,index:0,parentRelationType:M.FixedArguments,parent:nT},aT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Ma.body.id,version:"1",entityType:n.ActionDescriptor},sT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:M.DynamicArgument,parent:aT},oT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Ma.body.id,version:"1",entityType:n.ActionDescriptor},dT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:M.DynamicReturn,parent:oT},ro={id:Ma.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Nl,sT],outputs:[dT],error:null,parent:null},lT=[Xs,mi,Ca,xn,Sn,_a],uT=[Qs,Ba,eo,Bl,Ml,ro],vi=x[n.BuiltInBaseEntity][Y.HTTP_ENDPOINT].properties,pT={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:vi.cors.id},cT={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:vi.cors.id},fT={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ne,asType:!1,parent:cT},yT={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},hT={constant:!1,hidden:!0,required:!0,id:vi.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:fT,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:["*"],parent:pT,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:yT},mT={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:vi.path.id},vT={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:vi.path.id},TT={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:vT},ET={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},Ll={constant:!1,id:vi.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:TT,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"/",parent:mT,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:ET},IT={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:vi.method.id},AT={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},bT={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Xr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:AT},RT={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},Ul={constant:!1,hidden:!1,required:!0,id:vi.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:g.Enum,parent:IT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:bT,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:RT},DT={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},OT={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},PT={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Rt,asType:!1,parent:OT},wT={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},VT={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Rt,parent:wT},CT={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},BT={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},_T={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:jn,parent:BT},MT={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},gT={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},NT={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:jn,asType:!1,parent:gT},LT={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},$l={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:n.ValueDescriptor,name:"Request headers",dataType:PT,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:DT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:M.FixedArguments,parent:LT},UT={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},jl={id:"endpointPathParamsArgumentDeclaration",type:n.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,name:"Path parameters",dataType:NT,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:[],parent:MT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:M.FixedArguments,parent:UT},$T={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Gl={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:n.ValueDescriptor,name:"Request query params",dataType:_T,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:[],parent:CT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:M.FixedArguments,parent:$T},jT={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Fl={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:n.ValueDescriptor,name:"Request body",dataType:VT,defaultValue:null,index:3,required:!0,parentRelationType:M.FixedArguments,parent:jT},GT={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},FT={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:GT},xT={id:"endpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},xl={id:"endpointResponseCodeReturnDeclaration",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:n.ValueDescriptor,name:"Response code",dataType:FT,defaultValue:null,required:!0,index:0,parentRelationType:M.FixedReturns,parent:xT},ST={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointResponseHeadersReturnDeclaration"},kT={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},ZT={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Rt,asType:!1,parent:kT},qT={id:"endpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Sl={id:"endpointResponseHeadersReturnDeclaration",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:n.ValueDescriptor,name:"Response headers",dataType:ZT,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:ST,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:M.FixedReturns,parent:qT},JT={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},WT={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Rt,parent:JT},zT={id:"endpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},kl={id:"endpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:WT,defaultValue:null,required:!1,index:2,parentRelationType:M.FixedReturns,parent:zT},YT={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},Zl={id:"endpointReachedTriggerActionDescriptor",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[$l,jl,Gl,Fl],outputs:[xl,Sl,kl],error:null,parent:YT},ga={id:Y.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:Y.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[hT,Ll,Ul],abstractMethods:[Zl],extends:[],methods:[]},Bt=x[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,HT={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},KT={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},XT={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:KT},kn={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:Y.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},io={constant:!1,id:Bt.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:null,parent:HT,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:XT,description:"The name of the main database inside of the server instance where the data will be stored.",parent:kn},kP={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:n.Property},QT={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},eE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:QT},no={constant:!1,hidden:!1,required:!0,id:Bt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:eE,description:"The username that will be used to connect to the database.",parent:kn},ZP={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:n.Property},tE={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},rE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:tE},ao={constant:!1,hidden:!1,required:!0,id:Bt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:null,dataType:rE,description:"The password that will be used to connect to the database.",parent:kn},iE={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},nE={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},aE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:nE},so={constant:!1,hidden:!0,required:!0,id:Bt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,value:6,parent:iE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:aE,description:"The minimum size of the database in GB.",parent:kn},sE={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},oE={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},dE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Kr,asType:!1,parent:oE},ql={constant:!1,hidden:!0,required:!0,id:Bt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,value:!1,parent:sE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:dE,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:kn},lE={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},uE={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},pE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Kr,asType:!1,parent:lE},cE={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:Y.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Jl={constant:!1,hidden:!0,required:!0,id:Bt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,value:!1,parent:uE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:pE,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:cE},Nr={id:Y.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:Y.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[io,no,ao,so,ql,Jl],abstractMethods:[],methods:[],extends:[]},fE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:or.DeletePersistedEntity},Wl={type:n.FunctionDeclaration,id:or.DeletePersistedEntity,name:or.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:fE,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},yE=x[n.BuiltInBaseEntity][Y.PERSISTED_ENTITY].properties,qP={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:n.DataType},hE={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:n.Property},mE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:hE},vE={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:Y.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Zn={constant:!1,hidden:!0,required:!0,id:yE.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:mE,description:"The database that the entity belongs to.",parent:vE},TE={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},EE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parentRelationType:bt.OrDataTypeGroup,parent:TE},IE={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},AE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parentRelationType:bt.OrDataTypeGroup,parent:IE},bE={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},RE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parentRelationType:bt.OrDataTypeGroup,parent:bE},DE={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:n.Property},OE={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:[RE,AE,EE],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:DE},PE={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:Y.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},qn={constant:!1,hidden:!1,required:!0,id:yE.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:OE,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:PE},Pt={id:Y.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:Y.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Zn,qn],methods:[Wl],extends:[]},wE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:or.SoftDeletePersistedEntity},JP={type:n.FunctionDeclaration,id:or.SoftDeletePersistedEntity,name:or.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:wE,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},VE={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Y.HTTP_ENDPOINT},zl={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:VE},CE=x[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,WP={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:n.DataType},BE={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:CE.properties.expression.id,version:"1",entityType:n.Property},zP={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:BE},_E={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:Y.CRON_JOB,version:"1",entityType:n.BuiltInBaseEntity},ME={constant:!1,hidden:!1,required:!0,id:CE.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:zP,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:_E},oo={id:Y.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:Y.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[ME],methods:[],abstractMethods:[zl],extends:[]},gE={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Yl={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:or.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:gE},lo={id:Y.EXECUTION,type:n.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Y.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:[Yl],abstractMethods:[]},NE=[ga,Nr,Pt,oo,lo],YP=x[n.Condition]["not-empty"],LE={type:n.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:n.ActionDescriptor,entityId:yr.NotEmpty},UE={id:YP.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!0,parentRelationType:M.FixedArguments,index:0,parent:LE},an={type:n.ActionDescriptor,id:yr.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:yr.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[UE],outputs:[],error:null},$E={[yr.NotEmpty]:an},Jn=x[n.Condition]["more-than-or-equal"],jE={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.leftHand.id},GE={type:n.DataType,id:Jn.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:jE},FE={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:pt.MoreThanOrEqual},xE={id:Jn.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:GE,required:!0,parentRelationType:M.FixedArguments,index:0,parent:FE},SE={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.rightHand.id},kE={type:n.DataType,id:Jn.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:SE},ZE={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:pt.MoreThanOrEqual},qE={id:Jn.inputs.rightHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:kE,required:!0,parentRelationType:M.FixedArguments,index:1,parent:ZE},Wn={type:n.ActionDescriptor,id:pt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:pt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[xE,qE],outputs:[],error:null},JE={[pt.MoreThanOrEqual]:Wn},WE={...$E,...JE},zE=Object.values(WE),uo={type:n.ActionDescriptor,id:Hr.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Hr.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},YE={[Hr.PROJECT_PUBLICATION_COMPLETED]:uo},HE=Object.values(YE),Hl=x[n.ValueDescriptor][Fs.ActionOngoingProcessOutputValue],KE={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:Hl.id},XE={like:!1,inferred:!1,id:Hl.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:lo,asType:!1,isList:!1,parent:KE},po={id:Hl.id,type:n.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,name:"Process",defaultValue:null,dataType:XE,required:!0,index:0,parent:null,parentRelationType:M.OngoingProcessExecution},QE=[po],eI=[...lf,...A0,...lT,...uT,...NE,...zE,...HE,...QE];var Je;(function(i){i.assertEqual=r=>r;function s(r){}i.assertIs=s;function e(r){throw new Error}i.assertNever=e,i.arrayToEnum=r=>{const a={};for(const d of r)a[d]=d;return a},i.getValidEnumValues=r=>{const a=i.objectKeys(r).filter(o=>typeof r[r[o]]!="number"),d={};for(const o of a)d[o]=r[o];return i.objectValues(d)},i.objectValues=r=>i.objectKeys(r).map(function(a){return r[a]}),i.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const a=[];for(const d in r)Object.prototype.hasOwnProperty.call(r,d)&&a.push(d);return a},i.find=(r,a)=>{for(const d of r)if(a(d))return d},i.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function t(r,a=" | "){return r.map(d=>typeof d=="string"?`'${d}'`:d).join(a)}i.joinValues=t,i.jsonStringifyReplacer=(r,a)=>typeof a=="bigint"?a.toString():a})(Je||(Je={}));var Kl;(function(i){i.mergeShapes=(s,e)=>({...s,...e})})(Kl||(Kl={}));const H=Je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ri=i=>{switch(typeof i){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(i)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(i)?H.array:i===null?H.null:i.then&&typeof i.then=="function"&&i.catch&&typeof i.catch=="function"?H.promise:typeof Map<"u"&&i instanceof Map?H.map:typeof Set<"u"&&i instanceof Set?H.set:typeof Date<"u"&&i instanceof Date?H.date:H.object;default:return H.unknown}},S=Je.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"]),HP=i=>JSON.stringify(i,null,2).replace(/"([^"]+)":/g,"$1:");class Kt extends Error{get errors(){return this.issues}constructor(s){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=s}format(s){const e=s||function(a){return a.message},t={_errors:[]},r=a=>{for(const d of a.issues)if(d.code==="invalid_union")d.unionErrors.map(r);else if(d.code==="invalid_return_type")r(d.returnTypeError);else if(d.code==="invalid_arguments")r(d.argumentsError);else if(d.path.length===0)t._errors.push(e(d));else{let o=t,l=0;for(;l<d.path.length;){const u=d.path[l];l===d.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(e(d))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return r(this),t}static assert(s){if(!(s instanceof Kt))throw new Error(`Not a ZodError: ${s}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(s=e=>e.message){const e={},t=[];for(const r of this.issues)r.path.length>0?(e[r.path[0]]=e[r.path[0]]||[],e[r.path[0]].push(s(r))):t.push(s(r));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}Kt.create=i=>new Kt(i);const zn=(i,s)=>{let e;switch(i.code){case S.invalid_type:i.received===H.undefined?e="Required":e=`Expected ${i.expected}, received ${i.received}`;break;case S.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(i.expected,Je.jsonStringifyReplacer)}`;break;case S.unrecognized_keys:e=`Unrecognized key(s) in object: ${Je.joinValues(i.keys,", ")}`;break;case S.invalid_union:e="Invalid input";break;case S.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${Je.joinValues(i.options)}`;break;case S.invalid_enum_value:e=`Invalid enum value. Expected ${Je.joinValues(i.options)}, received '${i.received}'`;break;case S.invalid_arguments:e="Invalid function arguments";break;case S.invalid_return_type:e="Invalid function return type";break;case S.invalid_date:e="Invalid date";break;case S.invalid_string:typeof i.validation=="object"?"includes"in i.validation?(e=`Invalid input: must include "${i.validation.includes}"`,typeof i.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${i.validation.position}`)):"startsWith"in i.validation?e=`Invalid input: must start with "${i.validation.startsWith}"`:"endsWith"in i.validation?e=`Invalid input: must end with "${i.validation.endsWith}"`:Je.assertNever(i.validation):i.validation!=="regex"?e=`Invalid ${i.validation}`:e="Invalid";break;case S.too_small:i.type==="array"?e=`Array must contain ${i.exact?"exactly":i.inclusive?"at least":"more than"} ${i.minimum} element(s)`:i.type==="string"?e=`String must contain ${i.exact?"exactly":i.inclusive?"at least":"over"} ${i.minimum} character(s)`:i.type==="number"?e=`Number must be ${i.exact?"exactly equal to ":i.inclusive?"greater than or equal to ":"greater than "}${i.minimum}`:i.type==="date"?e=`Date must be ${i.exact?"exactly equal to ":i.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(i.minimum))}`:e="Invalid input";break;case S.too_big:i.type==="array"?e=`Array must contain ${i.exact?"exactly":i.inclusive?"at most":"less than"} ${i.maximum} element(s)`:i.type==="string"?e=`String must contain ${i.exact?"exactly":i.inclusive?"at most":"under"} ${i.maximum} character(s)`:i.type==="number"?e=`Number must be ${i.exact?"exactly":i.inclusive?"less than or equal to":"less than"} ${i.maximum}`:i.type==="bigint"?e=`BigInt must be ${i.exact?"exactly":i.inclusive?"less than or equal to":"less than"} ${i.maximum}`:i.type==="date"?e=`Date must be ${i.exact?"exactly":i.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(i.maximum))}`:e="Invalid input";break;case S.custom:e="Invalid input";break;case S.invalid_intersection_types:e="Intersection results could not be merged";break;case S.not_multiple_of:e=`Number must be a multiple of ${i.multipleOf}`;break;case S.not_finite:e="Number must be finite";break;default:e=s.defaultError,Je.assertNever(i)}return{message:e}};let tI=zn;function KP(i){tI=i}function co(){return tI}const fo=i=>{const{data:s,path:e,errorMaps:t,issueData:r}=i,a=[...e,...r.path||[]],d={...r,path:a};if(r.message!==void 0)return{...r,path:a,message:r.message};let o="";const l=t.filter(u=>!!u).slice().reverse();for(const u of l)o=u(d,{data:s,defaultError:o}).message;return{...r,path:a,message:o}},XP=[];function W(i,s){const e=co(),t=fo({issueData:s,data:i.data,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,e,e===zn?void 0:zn].filter(r=>!!r)});i.common.issues.push(t)}class Mt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(s,e){const t=[];for(const r of e){if(r.status==="aborted")return ce;r.status==="dirty"&&s.dirty(),t.push(r.value)}return{status:s.value,value:t}}static async mergeObjectAsync(s,e){const t=[];for(const r of e){const a=await r.key,d=await r.value;t.push({key:a,value:d})}return Mt.mergeObjectSync(s,t)}static mergeObjectSync(s,e){const t={};for(const r of e){const{key:a,value:d}=r;if(a.status==="aborted"||d.status==="aborted")return ce;a.status==="dirty"&&s.dirty(),d.status==="dirty"&&s.dirty(),a.value!=="__proto__"&&(typeof d.value<"u"||r.alwaysSet)&&(t[a.value]=d.value)}return{status:s.value,value:t}}}const ce=Object.freeze({status:"aborted"}),Yn=i=>({status:"dirty",value:i}),xt=i=>({status:"valid",value:i}),Xl=i=>i.status==="aborted",Ql=i=>i.status==="dirty",sn=i=>i.status==="valid",Na=i=>typeof Promise<"u"&&i instanceof Promise;function yo(i,s,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?i!==s||!t:!s.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(i):t?t.value:s.get(i)}function rI(i,s,e,t,r){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof s=="function"?i!==s||!r:!s.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?r.call(i,e):r?r.value=e:s.set(i,e),e}typeof SuppressedError=="function"&&SuppressedError;var re;(function(i){i.errToObj=s=>typeof s=="string"?{message:s}:s||{},i.toString=s=>typeof s=="string"?s:s==null?void 0:s.message})(re||(re={}));var La,Ua;class Lr{constructor(s,e,t,r){this._cachedPath=[],this.parent=s,this.data=e,this._path=t,this._key=r}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 iI=(i,s)=>{if(sn(s))return{success:!0,data:s.value};if(!i.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new Kt(i.common.issues);return this._error=e,this._error}}};function ve(i){if(!i)return{};const{errorMap:s,invalid_type_error:e,required_error:t,description:r}=i;if(s&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return s?{errorMap:s,description:r}:{errorMap:(d,o)=>{var l,u;const{message:h}=i;return d.code==="invalid_enum_value"?{message:h??o.defaultError}:typeof o.data>"u"?{message:(l=h??t)!==null&&l!==void 0?l:o.defaultError}:d.code!=="invalid_type"?{message:o.defaultError}:{message:(u=h??e)!==null&&u!==void 0?u:o.defaultError}},description:r}}class je{get description(){return this._def.description}_getType(s){return ri(s.data)}_getOrReturnCtx(s,e){return e||{common:s.parent.common,data:s.data,parsedType:ri(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}_processInputParams(s){return{status:new Mt,ctx:{common:s.parent.common,data:s.data,parsedType:ri(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}}_parseSync(s){const e=this._parse(s);if(Na(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(s){const e=this._parse(s);return Promise.resolve(e)}parse(s,e){const t=this.safeParse(s,e);if(t.success)return t.data;throw t.error}safeParse(s,e){var t;const r={common:{issues:[],async:(t=e==null?void 0:e.async)!==null&&t!==void 0?t:!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:ri(s)},a=this._parseSync({data:s,path:r.path,parent:r});return iI(r,a)}"~validate"(s){var e,t;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:ri(s)};if(!this["~standard"].async)try{const a=this._parseSync({data:s,path:[],parent:r});return sn(a)?{value:a.value}:{issues:r.common.issues}}catch(a){!((t=(e=a==null?void 0:a.message)===null||e===void 0?void 0:e.toLowerCase())===null||t===void 0)&&t.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:s,path:[],parent:r}).then(a=>sn(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(s,e){const t=await this.safeParseAsync(s,e);if(t.success)return t.data;throw t.error}async safeParseAsync(s,e){const t={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:ri(s)},r=this._parse({data:s,path:t.path,parent:t}),a=await(Na(r)?r:Promise.resolve(r));return iI(t,a)}refine(s,e){const t=r=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(r):e;return this._refinement((r,a)=>{const d=s(r),o=()=>a.addIssue({code:S.custom,...t(r)});return typeof Promise<"u"&&d instanceof Promise?d.then(l=>l?!0:(o(),!1)):d?!0:(o(),!1)})}refinement(s,e){return this._refinement((t,r)=>s(t)?!0:(r.addIssue(typeof e=="function"?e(t,r):e),!1))}_refinement(s){return new Or({schema:this,typeName:le.ZodEffects,effect:{type:"refinement",refinement:s}})}superRefine(s){return this._refinement(s)}constructor(s){this.spa=this.safeParseAsync,this._def=s,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:e=>this["~validate"](e)}}optional(){return $r.create(this,this._def)}nullable(){return Ai.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dr.create(this)}promise(){return Qn.create(this,this._def)}or(s){return Fa.create([this,s],this._def)}and(s){return xa.create(this,s,this._def)}transform(s){return new Or({...ve(this._def),schema:this,typeName:le.ZodEffects,effect:{type:"transform",transform:s}})}default(s){const e=typeof s=="function"?s:()=>s;return new Ja({...ve(this._def),innerType:this,defaultValue:e,typeName:le.ZodDefault})}brand(){return new ru({typeName:le.ZodBranded,type:this,...ve(this._def)})}catch(s){const e=typeof s=="function"?s:()=>s;return new Wa({...ve(this._def),innerType:this,catchValue:e,typeName:le.ZodCatch})}describe(s){const e=this.constructor;return new e({...this._def,description:s})}pipe(s){return za.create(this,s)}readonly(){return Ya.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const QP=/^c[^\s-]{8,}$/i,ew=/^[0-9a-z]+$/,tw=/^[0-9A-HJKMNP-TV-Z]{26}$/i,rw=/^[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,iw=/^[a-z0-9_-]{21}$/i,nw=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aw=/^[-+]?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)?)??$/,sw=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ow="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let eu;const dw=/^(?:(?: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])$/,lw=/^(?:(?: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])$/,uw=/^(([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]))$/,pw=/^(([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])$/,cw=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fw=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nI="((\\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])))",yw=new RegExp(`^${nI}$`);function aI(i){let s="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return i.precision?s=`${s}\\.\\d{${i.precision}}`:i.precision==null&&(s=`${s}(\\.\\d+)?`),s}function hw(i){return new RegExp(`^${aI(i)}$`)}function sI(i){let s=`${nI}T${aI(i)}`;const e=[];return e.push(i.local?"Z?":"Z"),i.offset&&e.push("([+-]\\d{2}:?\\d{2})"),s=`${s}(${e.join("|")})`,new RegExp(`^${s}$`)}function mw(i,s){return!!((s==="v4"||!s)&&dw.test(i)||(s==="v6"||!s)&&uw.test(i))}function vw(i,s){if(!nw.test(i))return!1;try{const[e]=i.split("."),t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),r=JSON.parse(atob(t));return!(typeof r!="object"||r===null||!r.typ||!r.alg||s&&r.alg!==s)}catch{return!1}}function Tw(i,s){return!!((s==="v4"||!s)&&lw.test(i)||(s==="v6"||!s)&&pw.test(i))}class Rr extends je{_parse(s){if(this._def.coerce&&(s.data=String(s.data)),this._getType(s)!==H.string){const a=this._getOrReturnCtx(s);return W(a,{code:S.invalid_type,expected:H.string,received:a.parsedType}),ce}const t=new Mt;let r;for(const a of this._def.checks)if(a.kind==="min")s.data.length<a.value&&(r=this._getOrReturnCtx(s,r),W(r,{code:S.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if(a.kind==="max")s.data.length>a.value&&(r=this._getOrReturnCtx(s,r),W(r,{code:S.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if(a.kind==="length"){const d=s.data.length>a.value,o=s.data.length<a.value;(d||o)&&(r=this._getOrReturnCtx(s,r),d?W(r,{code:S.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&W(r,{code:S.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if(a.kind==="email")sw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"email",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="emoji")eu||(eu=new RegExp(ow,"u")),eu.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"emoji",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="uuid")rw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"uuid",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="nanoid")iw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"nanoid",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="cuid")QP.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"cuid",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="cuid2")ew.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"cuid2",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="ulid")tw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"ulid",code:S.invalid_string,message:a.message}),t.dirty());else if(a.kind==="url")try{new URL(s.data)}catch{r=this._getOrReturnCtx(s,r),W(r,{validation:"url",code:S.invalid_string,message:a.message}),t.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"regex",code:S.invalid_string,message:a.message}),t.dirty())):a.kind==="trim"?s.data=s.data.trim():a.kind==="includes"?s.data.includes(a.value,a.position)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):a.kind==="toLowerCase"?s.data=s.data.toLowerCase():a.kind==="toUpperCase"?s.data=s.data.toUpperCase():a.kind==="startsWith"?s.data.startsWith(a.value)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):a.kind==="endsWith"?s.data.endsWith(a.value)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):a.kind==="datetime"?sI(a).test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:"datetime",message:a.message}),t.dirty()):a.kind==="date"?yw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:"date",message:a.message}),t.dirty()):a.kind==="time"?hw(a).test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{code:S.invalid_string,validation:"time",message:a.message}),t.dirty()):a.kind==="duration"?aw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"duration",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="ip"?mw(s.data,a.version)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"ip",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="jwt"?vw(s.data,a.alg)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"jwt",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="cidr"?Tw(s.data,a.version)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"cidr",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="base64"?cw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"base64",code:S.invalid_string,message:a.message}),t.dirty()):a.kind==="base64url"?fw.test(s.data)||(r=this._getOrReturnCtx(s,r),W(r,{validation:"base64url",code:S.invalid_string,message:a.message}),t.dirty()):Je.assertNever(a);return{status:t.value,value:s.data}}_regex(s,e,t){return this.refinement(r=>s.test(r),{validation:e,code:S.invalid_string,...re.errToObj(t)})}_addCheck(s){return new Rr({...this._def,checks:[...this._def.checks,s]})}email(s){return this._addCheck({kind:"email",...re.errToObj(s)})}url(s){return this._addCheck({kind:"url",...re.errToObj(s)})}emoji(s){return this._addCheck({kind:"emoji",...re.errToObj(s)})}uuid(s){return this._addCheck({kind:"uuid",...re.errToObj(s)})}nanoid(s){return this._addCheck({kind:"nanoid",...re.errToObj(s)})}cuid(s){return this._addCheck({kind:"cuid",...re.errToObj(s)})}cuid2(s){return this._addCheck({kind:"cuid2",...re.errToObj(s)})}ulid(s){return this._addCheck({kind:"ulid",...re.errToObj(s)})}base64(s){return this._addCheck({kind:"base64",...re.errToObj(s)})}base64url(s){return this._addCheck({kind:"base64url",...re.errToObj(s)})}jwt(s){return this._addCheck({kind:"jwt",...re.errToObj(s)})}ip(s){return this._addCheck({kind:"ip",...re.errToObj(s)})}cidr(s){return this._addCheck({kind:"cidr",...re.errToObj(s)})}datetime(s){var e,t;return typeof s=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:s}):this._addCheck({kind:"datetime",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,offset:(e=s==null?void 0:s.offset)!==null&&e!==void 0?e:!1,local:(t=s==null?void 0:s.local)!==null&&t!==void 0?t:!1,...re.errToObj(s==null?void 0:s.message)})}date(s){return this._addCheck({kind:"date",message:s})}time(s){return typeof s=="string"?this._addCheck({kind:"time",precision:null,message:s}):this._addCheck({kind:"time",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,...re.errToObj(s==null?void 0:s.message)})}duration(s){return this._addCheck({kind:"duration",...re.errToObj(s)})}regex(s,e){return this._addCheck({kind:"regex",regex:s,...re.errToObj(e)})}includes(s,e){return this._addCheck({kind:"includes",value:s,position:e==null?void 0:e.position,...re.errToObj(e==null?void 0:e.message)})}startsWith(s,e){return this._addCheck({kind:"startsWith",value:s,...re.errToObj(e)})}endsWith(s,e){return this._addCheck({kind:"endsWith",value:s,...re.errToObj(e)})}min(s,e){return this._addCheck({kind:"min",value:s,...re.errToObj(e)})}max(s,e){return this._addCheck({kind:"max",value:s,...re.errToObj(e)})}length(s,e){return this._addCheck({kind:"length",value:s,...re.errToObj(e)})}nonempty(s){return this.min(1,re.errToObj(s))}trim(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(s=>s.kind==="datetime")}get isDate(){return!!this._def.checks.find(s=>s.kind==="date")}get isTime(){return!!this._def.checks.find(s=>s.kind==="time")}get isDuration(){return!!this._def.checks.find(s=>s.kind==="duration")}get isEmail(){return!!this._def.checks.find(s=>s.kind==="email")}get isURL(){return!!this._def.checks.find(s=>s.kind==="url")}get isEmoji(){return!!this._def.checks.find(s=>s.kind==="emoji")}get isUUID(){return!!this._def.checks.find(s=>s.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(s=>s.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(s=>s.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(s=>s.kind==="cuid2")}get isULID(){return!!this._def.checks.find(s=>s.kind==="ulid")}get isIP(){return!!this._def.checks.find(s=>s.kind==="ip")}get isCIDR(){return!!this._def.checks.find(s=>s.kind==="cidr")}get isBase64(){return!!this._def.checks.find(s=>s.kind==="base64")}get isBase64url(){return!!this._def.checks.find(s=>s.kind==="base64url")}get minLength(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxLength(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}}Rr.create=i=>{var s;return new Rr({checks:[],typeName:le.ZodString,coerce:(s=i==null?void 0:i.coerce)!==null&&s!==void 0?s:!1,...ve(i)})};function Ew(i,s){const e=(i.toString().split(".")[1]||"").length,t=(s.toString().split(".")[1]||"").length,r=e>t?e:t,a=parseInt(i.toFixed(r).replace(".","")),d=parseInt(s.toFixed(r).replace(".",""));return a%d/Math.pow(10,r)}class Ti extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(s){if(this._def.coerce&&(s.data=Number(s.data)),this._getType(s)!==H.number){const a=this._getOrReturnCtx(s);return W(a,{code:S.invalid_type,expected:H.number,received:a.parsedType}),ce}let t;const r=new Mt;for(const a of this._def.checks)a.kind==="int"?Je.isInteger(s.data)||(t=this._getOrReturnCtx(s,t),W(t,{code:S.invalid_type,expected:"integer",received:"float",message:a.message}),r.dirty()):a.kind==="min"?(a.inclusive?s.data<a.value:s.data<=a.value)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?s.data>a.value:s.data>=a.value)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="multipleOf"?Ew(s.data,a.value)!==0&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):a.kind==="finite"?Number.isFinite(s.data)||(t=this._getOrReturnCtx(s,t),W(t,{code:S.not_finite,message:a.message}),r.dirty()):Je.assertNever(a);return{status:r.value,value:s.data}}gte(s,e){return this.setLimit("min",s,!0,re.toString(e))}gt(s,e){return this.setLimit("min",s,!1,re.toString(e))}lte(s,e){return this.setLimit("max",s,!0,re.toString(e))}lt(s,e){return this.setLimit("max",s,!1,re.toString(e))}setLimit(s,e,t,r){return new Ti({...this._def,checks:[...this._def.checks,{kind:s,value:e,inclusive:t,message:re.toString(r)}]})}_addCheck(s){return new Ti({...this._def,checks:[...this._def.checks,s]})}int(s){return this._addCheck({kind:"int",message:re.toString(s)})}positive(s){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(s)})}negative(s){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(s)})}multipleOf(s,e){return this._addCheck({kind:"multipleOf",value:s,message:re.toString(e)})}finite(s){return this._addCheck({kind:"finite",message:re.toString(s)})}safe(s){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(s)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(s)})}get minValue(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxValue(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}get isInt(){return!!this._def.checks.find(s=>s.kind==="int"||s.kind==="multipleOf"&&Je.isInteger(s.value))}get isFinite(){let s=null,e=null;for(const t of this._def.checks){if(t.kind==="finite"||t.kind==="int"||t.kind==="multipleOf")return!0;t.kind==="min"?(e===null||t.value>e)&&(e=t.value):t.kind==="max"&&(s===null||t.value<s)&&(s=t.value)}return Number.isFinite(e)&&Number.isFinite(s)}}Ti.create=i=>new Ti({checks:[],typeName:le.ZodNumber,coerce:(i==null?void 0:i.coerce)||!1,...ve(i)});class Ei extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(s){if(this._def.coerce)try{s.data=BigInt(s.data)}catch{return this._getInvalidInput(s)}if(this._getType(s)!==H.bigint)return this._getInvalidInput(s);let t;const r=new Mt;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?s.data<a.value:s.data<=a.value)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?s.data>a.value:s.data>=a.value)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="multipleOf"?s.data%a.value!==BigInt(0)&&(t=this._getOrReturnCtx(s,t),W(t,{code:S.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):Je.assertNever(a);return{status:r.value,value:s.data}}_getInvalidInput(s){const e=this._getOrReturnCtx(s);return W(e,{code:S.invalid_type,expected:H.bigint,received:e.parsedType}),ce}gte(s,e){return this.setLimit("min",s,!0,re.toString(e))}gt(s,e){return this.setLimit("min",s,!1,re.toString(e))}lte(s,e){return this.setLimit("max",s,!0,re.toString(e))}lt(s,e){return this.setLimit("max",s,!1,re.toString(e))}setLimit(s,e,t,r){return new Ei({...this._def,checks:[...this._def.checks,{kind:s,value:e,inclusive:t,message:re.toString(r)}]})}_addCheck(s){return new Ei({...this._def,checks:[...this._def.checks,s]})}positive(s){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(s)})}negative(s){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(s)})}multipleOf(s,e){return this._addCheck({kind:"multipleOf",value:s,message:re.toString(e)})}get minValue(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxValue(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}}Ei.create=i=>{var s;return new Ei({checks:[],typeName:le.ZodBigInt,coerce:(s=i==null?void 0:i.coerce)!==null&&s!==void 0?s:!1,...ve(i)})};class $a extends je{_parse(s){if(this._def.coerce&&(s.data=!!s.data),this._getType(s)!==H.boolean){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.boolean,received:t.parsedType}),ce}return xt(s.data)}}$a.create=i=>new $a({typeName:le.ZodBoolean,coerce:(i==null?void 0:i.coerce)||!1,...ve(i)});class on extends je{_parse(s){if(this._def.coerce&&(s.data=new Date(s.data)),this._getType(s)!==H.date){const a=this._getOrReturnCtx(s);return W(a,{code:S.invalid_type,expected:H.date,received:a.parsedType}),ce}if(isNaN(s.data.getTime())){const a=this._getOrReturnCtx(s);return W(a,{code:S.invalid_date}),ce}const t=new Mt;let r;for(const a of this._def.checks)a.kind==="min"?s.data.getTime()<a.value&&(r=this._getOrReturnCtx(s,r),W(r,{code:S.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),t.dirty()):a.kind==="max"?s.data.getTime()>a.value&&(r=this._getOrReturnCtx(s,r),W(r,{code:S.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),t.dirty()):Je.assertNever(a);return{status:t.value,value:new Date(s.data.getTime())}}_addCheck(s){return new on({...this._def,checks:[...this._def.checks,s]})}min(s,e){return this._addCheck({kind:"min",value:s.getTime(),message:re.toString(e)})}max(s,e){return this._addCheck({kind:"max",value:s.getTime(),message:re.toString(e)})}get minDate(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s!=null?new Date(s):null}get maxDate(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s!=null?new Date(s):null}}on.create=i=>new on({checks:[],coerce:(i==null?void 0:i.coerce)||!1,typeName:le.ZodDate,...ve(i)});class ho extends je{_parse(s){if(this._getType(s)!==H.symbol){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.symbol,received:t.parsedType}),ce}return xt(s.data)}}ho.create=i=>new ho({typeName:le.ZodSymbol,...ve(i)});class ja extends je{_parse(s){if(this._getType(s)!==H.undefined){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.undefined,received:t.parsedType}),ce}return xt(s.data)}}ja.create=i=>new ja({typeName:le.ZodUndefined,...ve(i)});class Ga extends je{_parse(s){if(this._getType(s)!==H.null){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.null,received:t.parsedType}),ce}return xt(s.data)}}Ga.create=i=>new Ga({typeName:le.ZodNull,...ve(i)});class Hn extends je{constructor(){super(...arguments),this._any=!0}_parse(s){return xt(s.data)}}Hn.create=i=>new Hn({typeName:le.ZodAny,...ve(i)});class dn extends je{constructor(){super(...arguments),this._unknown=!0}_parse(s){return xt(s.data)}}dn.create=i=>new dn({typeName:le.ZodUnknown,...ve(i)});class ii extends je{_parse(s){const e=this._getOrReturnCtx(s);return W(e,{code:S.invalid_type,expected:H.never,received:e.parsedType}),ce}}ii.create=i=>new ii({typeName:le.ZodNever,...ve(i)});class mo extends je{_parse(s){if(this._getType(s)!==H.undefined){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.void,received:t.parsedType}),ce}return xt(s.data)}}mo.create=i=>new mo({typeName:le.ZodVoid,...ve(i)});class Dr extends je{_parse(s){const{ctx:e,status:t}=this._processInputParams(s),r=this._def;if(e.parsedType!==H.array)return W(e,{code:S.invalid_type,expected:H.array,received:e.parsedType}),ce;if(r.exactLength!==null){const d=e.data.length>r.exactLength.value,o=e.data.length<r.exactLength.value;(d||o)&&(W(e,{code:d?S.too_big:S.too_small,minimum:o?r.exactLength.value:void 0,maximum:d?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),t.dirty())}if(r.minLength!==null&&e.data.length<r.minLength.value&&(W(e,{code:S.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),t.dirty()),r.maxLength!==null&&e.data.length>r.maxLength.value&&(W(e,{code:S.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),t.dirty()),e.common.async)return Promise.all([...e.data].map((d,o)=>r.type._parseAsync(new Lr(e,d,e.path,o)))).then(d=>Mt.mergeArray(t,d));const a=[...e.data].map((d,o)=>r.type._parseSync(new Lr(e,d,e.path,o)));return Mt.mergeArray(t,a)}get element(){return this._def.type}min(s,e){return new Dr({...this._def,minLength:{value:s,message:re.toString(e)}})}max(s,e){return new Dr({...this._def,maxLength:{value:s,message:re.toString(e)}})}length(s,e){return new Dr({...this._def,exactLength:{value:s,message:re.toString(e)}})}nonempty(s){return this.min(1,s)}}Dr.create=(i,s)=>new Dr({type:i,minLength:null,maxLength:null,exactLength:null,typeName:le.ZodArray,...ve(s)});function Kn(i){if(i instanceof vt){const s={};for(const e in i.shape){const t=i.shape[e];s[e]=$r.create(Kn(t))}return new vt({...i._def,shape:()=>s})}else return i instanceof Dr?new Dr({...i._def,type:Kn(i.element)}):i instanceof $r?$r.create(Kn(i.unwrap())):i instanceof Ai?Ai.create(Kn(i.unwrap())):i instanceof Ur?Ur.create(i.items.map(s=>Kn(s))):i}class vt extends je{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const s=this._def.shape(),e=Je.objectKeys(s);return this._cached={shape:s,keys:e}}_parse(s){if(this._getType(s)!==H.object){const u=this._getOrReturnCtx(s);return W(u,{code:S.invalid_type,expected:H.object,received:u.parsedType}),ce}const{status:t,ctx:r}=this._processInputParams(s),{shape:a,keys:d}=this._getCached(),o=[];if(!(this._def.catchall instanceof ii&&this._def.unknownKeys==="strip"))for(const u in r.data)d.includes(u)||o.push(u);const l=[];for(const u of d){const h=a[u],c=r.data[u];l.push({key:{status:"valid",value:u},value:h._parse(new Lr(r,c,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof ii){const u=this._def.unknownKeys;if(u==="passthrough")for(const h of o)l.push({key:{status:"valid",value:h},value:{status:"valid",value:r.data[h]}});else if(u==="strict")o.length>0&&(W(r,{code:S.unrecognized_keys,keys:o}),t.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const h of o){const c=r.data[h];l.push({key:{status:"valid",value:h},value:u._parse(new Lr(r,c,r.path,h)),alwaysSet:h in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const u=[];for(const h of l){const c=await h.key,v=await h.value;u.push({key:c,value:v,alwaysSet:h.alwaysSet})}return u}).then(u=>Mt.mergeObjectSync(t,u)):Mt.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(s){return re.errToObj,new vt({...this._def,unknownKeys:"strict",...s!==void 0?{errorMap:(e,t)=>{var r,a,d,o;const l=(d=(a=(r=this._def).errorMap)===null||a===void 0?void 0:a.call(r,e,t).message)!==null&&d!==void 0?d:t.defaultError;return e.code==="unrecognized_keys"?{message:(o=re.errToObj(s).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new vt({...this._def,unknownKeys:"strip"})}passthrough(){return new vt({...this._def,unknownKeys:"passthrough"})}extend(s){return new vt({...this._def,shape:()=>({...this._def.shape(),...s})})}merge(s){return new vt({unknownKeys:s._def.unknownKeys,catchall:s._def.catchall,shape:()=>({...this._def.shape(),...s._def.shape()}),typeName:le.ZodObject})}setKey(s,e){return this.augment({[s]:e})}catchall(s){return new vt({...this._def,catchall:s})}pick(s){const e={};return Je.objectKeys(s).forEach(t=>{s[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new vt({...this._def,shape:()=>e})}omit(s){const e={};return Je.objectKeys(this.shape).forEach(t=>{s[t]||(e[t]=this.shape[t])}),new vt({...this._def,shape:()=>e})}deepPartial(){return Kn(this)}partial(s){const e={};return Je.objectKeys(this.shape).forEach(t=>{const r=this.shape[t];s&&!s[t]?e[t]=r:e[t]=r.optional()}),new vt({...this._def,shape:()=>e})}required(s){const e={};return Je.objectKeys(this.shape).forEach(t=>{if(s&&!s[t])e[t]=this.shape[t];else{let a=this.shape[t];for(;a instanceof $r;)a=a._def.innerType;e[t]=a}}),new vt({...this._def,shape:()=>e})}keyof(){return oI(Je.objectKeys(this.shape))}}vt.create=(i,s)=>new vt({shape:()=>i,unknownKeys:"strip",catchall:ii.create(),typeName:le.ZodObject,...ve(s)}),vt.strictCreate=(i,s)=>new vt({shape:()=>i,unknownKeys:"strict",catchall:ii.create(),typeName:le.ZodObject,...ve(s)}),vt.lazycreate=(i,s)=>new vt({shape:i,unknownKeys:"strip",catchall:ii.create(),typeName:le.ZodObject,...ve(s)});class Fa extends je{_parse(s){const{ctx:e}=this._processInputParams(s),t=this._def.options;function r(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const d=a.map(o=>new Kt(o.ctx.common.issues));return W(e,{code:S.invalid_union,unionErrors:d}),ce}if(e.common.async)return Promise.all(t.map(async a=>{const d={...e,common:{...e.common,issues:[]},parent:null};return{result:await a._parseAsync({data:e.data,path:e.path,parent:d}),ctx:d}})).then(r);{let a;const d=[];for(const l of t){const u={...e,common:{...e.common,issues:[]},parent:null},h=l._parseSync({data:e.data,path:e.path,parent:u});if(h.status==="valid")return h;h.status==="dirty"&&!a&&(a={result:h,ctx:u}),u.common.issues.length&&d.push(u.common.issues)}if(a)return e.common.issues.push(...a.ctx.common.issues),a.result;const o=d.map(l=>new Kt(l));return W(e,{code:S.invalid_union,unionErrors:o}),ce}}get options(){return this._def.options}}Fa.create=(i,s)=>new Fa({options:i,typeName:le.ZodUnion,...ve(s)});const ni=i=>i instanceof ka?ni(i.schema):i instanceof Or?ni(i.innerType()):i instanceof Za?[i.value]:i instanceof Ii?i.options:i instanceof qa?Je.objectValues(i.enum):i instanceof Ja?ni(i._def.innerType):i instanceof ja?[void 0]:i instanceof Ga?[null]:i instanceof $r?[void 0,...ni(i.unwrap())]:i instanceof Ai?[null,...ni(i.unwrap())]:i instanceof ru||i instanceof Ya?ni(i.unwrap()):i instanceof Wa?ni(i._def.innerType):[];class vo extends je{_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==H.object)return W(e,{code:S.invalid_type,expected:H.object,received:e.parsedType}),ce;const t=this.discriminator,r=e.data[t],a=this.optionsMap.get(r);return a?e.common.async?a._parseAsync({data:e.data,path:e.path,parent:e}):a._parseSync({data:e.data,path:e.path,parent:e}):(W(e,{code:S.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ce)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(s,e,t){const r=new Map;for(const a of e){const d=ni(a.shape[s]);if(!d.length)throw new Error(`A discriminator value for key \`${s}\` could not be extracted from all schema options`);for(const o of d){if(r.has(o))throw new Error(`Discriminator property ${String(s)} has duplicate value ${String(o)}`);r.set(o,a)}}return new vo({typeName:le.ZodDiscriminatedUnion,discriminator:s,options:e,optionsMap:r,...ve(t)})}}function tu(i,s){const e=ri(i),t=ri(s);if(i===s)return{valid:!0,data:i};if(e===H.object&&t===H.object){const r=Je.objectKeys(s),a=Je.objectKeys(i).filter(o=>r.indexOf(o)!==-1),d={...i,...s};for(const o of a){const l=tu(i[o],s[o]);if(!l.valid)return{valid:!1};d[o]=l.data}return{valid:!0,data:d}}else if(e===H.array&&t===H.array){if(i.length!==s.length)return{valid:!1};const r=[];for(let a=0;a<i.length;a++){const d=i[a],o=s[a],l=tu(d,o);if(!l.valid)return{valid:!1};r.push(l.data)}return{valid:!0,data:r}}else return e===H.date&&t===H.date&&+i==+s?{valid:!0,data:i}:{valid:!1}}class xa extends je{_parse(s){const{status:e,ctx:t}=this._processInputParams(s),r=(a,d)=>{if(Xl(a)||Xl(d))return ce;const o=tu(a.value,d.value);return o.valid?((Ql(a)||Ql(d))&&e.dirty(),{status:e.value,value:o.data}):(W(t,{code:S.invalid_intersection_types}),ce)};return t.common.async?Promise.all([this._def.left._parseAsync({data:t.data,path:t.path,parent:t}),this._def.right._parseAsync({data:t.data,path:t.path,parent:t})]).then(([a,d])=>r(a,d)):r(this._def.left._parseSync({data:t.data,path:t.path,parent:t}),this._def.right._parseSync({data:t.data,path:t.path,parent:t}))}}xa.create=(i,s,e)=>new xa({left:i,right:s,typeName:le.ZodIntersection,...ve(e)});class Ur extends je{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==H.array)return W(t,{code:S.invalid_type,expected:H.array,received:t.parsedType}),ce;if(t.data.length<this._def.items.length)return W(t,{code:S.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ce;!this._def.rest&&t.data.length>this._def.items.length&&(W(t,{code:S.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const a=[...t.data].map((d,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new Lr(t,d,t.path,o)):null}).filter(d=>!!d);return t.common.async?Promise.all(a).then(d=>Mt.mergeArray(e,d)):Mt.mergeArray(e,a)}get items(){return this._def.items}rest(s){return new Ur({...this._def,rest:s})}}Ur.create=(i,s)=>{if(!Array.isArray(i))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ur({items:i,typeName:le.ZodTuple,rest:null,...ve(s)})};class Sa extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==H.object)return W(t,{code:S.invalid_type,expected:H.object,received:t.parsedType}),ce;const r=[],a=this._def.keyType,d=this._def.valueType;for(const o in t.data)r.push({key:a._parse(new Lr(t,o,t.path,o)),value:d._parse(new Lr(t,t.data[o],t.path,o)),alwaysSet:o in t.data});return t.common.async?Mt.mergeObjectAsync(e,r):Mt.mergeObjectSync(e,r)}get element(){return this._def.valueType}static create(s,e,t){return e instanceof je?new Sa({keyType:s,valueType:e,typeName:le.ZodRecord,...ve(t)}):new Sa({keyType:Rr.create(),valueType:s,typeName:le.ZodRecord,...ve(e)})}}class To extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==H.map)return W(t,{code:S.invalid_type,expected:H.map,received:t.parsedType}),ce;const r=this._def.keyType,a=this._def.valueType,d=[...t.data.entries()].map(([o,l],u)=>({key:r._parse(new Lr(t,o,t.path,[u,"key"])),value:a._parse(new Lr(t,l,t.path,[u,"value"]))}));if(t.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of d){const u=await l.key,h=await l.value;if(u.status==="aborted"||h.status==="aborted")return ce;(u.status==="dirty"||h.status==="dirty")&&e.dirty(),o.set(u.value,h.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const l of d){const u=l.key,h=l.value;if(u.status==="aborted"||h.status==="aborted")return ce;(u.status==="dirty"||h.status==="dirty")&&e.dirty(),o.set(u.value,h.value)}return{status:e.value,value:o}}}}To.create=(i,s,e)=>new To({valueType:s,keyType:i,typeName:le.ZodMap,...ve(e)});class ln extends je{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==H.set)return W(t,{code:S.invalid_type,expected:H.set,received:t.parsedType}),ce;const r=this._def;r.minSize!==null&&t.data.size<r.minSize.value&&(W(t,{code:S.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),e.dirty()),r.maxSize!==null&&t.data.size>r.maxSize.value&&(W(t,{code:S.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),e.dirty());const a=this._def.valueType;function d(l){const u=new Set;for(const h of l){if(h.status==="aborted")return ce;h.status==="dirty"&&e.dirty(),u.add(h.value)}return{status:e.value,value:u}}const o=[...t.data.values()].map((l,u)=>a._parse(new Lr(t,l,t.path,u)));return t.common.async?Promise.all(o).then(l=>d(l)):d(o)}min(s,e){return new ln({...this._def,minSize:{value:s,message:re.toString(e)}})}max(s,e){return new ln({...this._def,maxSize:{value:s,message:re.toString(e)}})}size(s,e){return this.min(s,e).max(s,e)}nonempty(s){return this.min(1,s)}}ln.create=(i,s)=>new ln({valueType:i,minSize:null,maxSize:null,typeName:le.ZodSet,...ve(s)});class Xn extends je{constructor(){super(...arguments),this.validate=this.implement}_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==H.function)return W(e,{code:S.invalid_type,expected:H.function,received:e.parsedType}),ce;function t(o,l){return fo({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,co(),zn].filter(u=>!!u),issueData:{code:S.invalid_arguments,argumentsError:l}})}function r(o,l){return fo({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,co(),zn].filter(u=>!!u),issueData:{code:S.invalid_return_type,returnTypeError:l}})}const a={errorMap:e.common.contextualErrorMap},d=e.data;if(this._def.returns instanceof Qn){const o=this;return xt(async function(...l){const u=new Kt([]),h=await o._def.args.parseAsync(l,a).catch(E=>{throw u.addIssue(t(l,E)),u}),c=await Reflect.apply(d,this,h);return await o._def.returns._def.type.parseAsync(c,a).catch(E=>{throw u.addIssue(r(c,E)),u})})}else{const o=this;return xt(function(...l){const u=o._def.args.safeParse(l,a);if(!u.success)throw new Kt([t(l,u.error)]);const h=Reflect.apply(d,this,u.data),c=o._def.returns.safeParse(h,a);if(!c.success)throw new Kt([r(h,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...s){return new Xn({...this._def,args:Ur.create(s).rest(dn.create())})}returns(s){return new Xn({...this._def,returns:s})}implement(s){return this.parse(s)}strictImplement(s){return this.parse(s)}static create(s,e,t){return new Xn({args:s||Ur.create([]).rest(dn.create()),returns:e||dn.create(),typeName:le.ZodFunction,...ve(t)})}}class ka extends je{get schema(){return this._def.getter()}_parse(s){const{ctx:e}=this._processInputParams(s);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}ka.create=(i,s)=>new ka({getter:i,typeName:le.ZodLazy,...ve(s)});class Za extends je{_parse(s){if(s.data!==this._def.value){const e=this._getOrReturnCtx(s);return W(e,{received:e.data,code:S.invalid_literal,expected:this._def.value}),ce}return{status:"valid",value:s.data}}get value(){return this._def.value}}Za.create=(i,s)=>new Za({value:i,typeName:le.ZodLiteral,...ve(s)});function oI(i,s){return new Ii({values:i,typeName:le.ZodEnum,...ve(s)})}class Ii extends je{constructor(){super(...arguments),La.set(this,void 0)}_parse(s){if(typeof s.data!="string"){const e=this._getOrReturnCtx(s),t=this._def.values;return W(e,{expected:Je.joinValues(t),received:e.parsedType,code:S.invalid_type}),ce}if(yo(this,La,"f")||rI(this,La,new Set(this._def.values),"f"),!yo(this,La,"f").has(s.data)){const e=this._getOrReturnCtx(s),t=this._def.values;return W(e,{received:e.data,code:S.invalid_enum_value,options:t}),ce}return xt(s.data)}get options(){return this._def.values}get enum(){const s={};for(const e of this._def.values)s[e]=e;return s}get Values(){const s={};for(const e of this._def.values)s[e]=e;return s}get Enum(){const s={};for(const e of this._def.values)s[e]=e;return s}extract(s,e=this._def){return Ii.create(s,{...this._def,...e})}exclude(s,e=this._def){return Ii.create(this.options.filter(t=>!s.includes(t)),{...this._def,...e})}}La=new WeakMap,Ii.create=oI;class qa extends je{constructor(){super(...arguments),Ua.set(this,void 0)}_parse(s){const e=Je.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(s);if(t.parsedType!==H.string&&t.parsedType!==H.number){const r=Je.objectValues(e);return W(t,{expected:Je.joinValues(r),received:t.parsedType,code:S.invalid_type}),ce}if(yo(this,Ua,"f")||rI(this,Ua,new Set(Je.getValidEnumValues(this._def.values)),"f"),!yo(this,Ua,"f").has(s.data)){const r=Je.objectValues(e);return W(t,{received:t.data,code:S.invalid_enum_value,options:r}),ce}return xt(s.data)}get enum(){return this._def.values}}Ua=new WeakMap,qa.create=(i,s)=>new qa({values:i,typeName:le.ZodNativeEnum,...ve(s)});class Qn extends je{unwrap(){return this._def.type}_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==H.promise&&e.common.async===!1)return W(e,{code:S.invalid_type,expected:H.promise,received:e.parsedType}),ce;const t=e.parsedType===H.promise?e.data:Promise.resolve(e.data);return xt(t.then(r=>this._def.type.parseAsync(r,{path:e.path,errorMap:e.common.contextualErrorMap})))}}Qn.create=(i,s)=>new Qn({type:i,typeName:le.ZodPromise,...ve(s)});class Or extends je{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===le.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(s){const{status:e,ctx:t}=this._processInputParams(s),r=this._def.effect||null,a={addIssue:d=>{W(t,d),d.fatal?e.abort():e.dirty()},get path(){return t.path}};if(a.addIssue=a.addIssue.bind(a),r.type==="preprocess"){const d=r.transform(t.data,a);if(t.common.async)return Promise.resolve(d).then(async o=>{if(e.value==="aborted")return ce;const l=await this._def.schema._parseAsync({data:o,path:t.path,parent:t});return l.status==="aborted"?ce:l.status==="dirty"||e.value==="dirty"?Yn(l.value):l});{if(e.value==="aborted")return ce;const o=this._def.schema._parseSync({data:d,path:t.path,parent:t});return o.status==="aborted"?ce:o.status==="dirty"||e.value==="dirty"?Yn(o.value):o}}if(r.type==="refinement"){const d=o=>{const l=r.refinement(o,a);if(t.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return o.status==="aborted"?ce:(o.status==="dirty"&&e.dirty(),d(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>o.status==="aborted"?ce:(o.status==="dirty"&&e.dirty(),d(o.value).then(()=>({status:e.value,value:o.value}))))}if(r.type==="transform")if(t.common.async===!1){const d=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!sn(d))return d;const o=r.transform(d.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(d=>sn(d)?Promise.resolve(r.transform(d.value,a)).then(o=>({status:e.value,value:o})):d);Je.assertNever(r)}}Or.create=(i,s,e)=>new Or({schema:i,typeName:le.ZodEffects,effect:s,...ve(e)}),Or.createWithPreprocess=(i,s,e)=>new Or({schema:s,effect:{type:"preprocess",transform:i},typeName:le.ZodEffects,...ve(e)});class $r extends je{_parse(s){return this._getType(s)===H.undefined?xt(void 0):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}$r.create=(i,s)=>new $r({innerType:i,typeName:le.ZodOptional,...ve(s)});class Ai extends je{_parse(s){return this._getType(s)===H.null?xt(null):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}Ai.create=(i,s)=>new Ai({innerType:i,typeName:le.ZodNullable,...ve(s)});class Ja extends je{_parse(s){const{ctx:e}=this._processInputParams(s);let t=e.data;return e.parsedType===H.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Ja.create=(i,s)=>new Ja({innerType:i,typeName:le.ZodDefault,defaultValue:typeof s.default=="function"?s.default:()=>s.default,...ve(s)});class Wa extends je{_parse(s){const{ctx:e}=this._processInputParams(s),t={...e,common:{...e.common,issues:[]}},r=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return Na(r)?r.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Kt(t.common.issues)},input:t.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Kt(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}Wa.create=(i,s)=>new Wa({innerType:i,typeName:le.ZodCatch,catchValue:typeof s.catch=="function"?s.catch:()=>s.catch,...ve(s)});class Eo extends je{_parse(s){if(this._getType(s)!==H.nan){const t=this._getOrReturnCtx(s);return W(t,{code:S.invalid_type,expected:H.nan,received:t.parsedType}),ce}return{status:"valid",value:s.data}}}Eo.create=i=>new Eo({typeName:le.ZodNaN,...ve(i)});const Iw=Symbol("zod_brand");class ru extends je{_parse(s){const{ctx:e}=this._processInputParams(s),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class za extends je{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return a.status==="aborted"?ce:a.status==="dirty"?(e.dirty(),Yn(a.value)):this._def.out._parseAsync({data:a.value,path:t.path,parent:t})})();{const r=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return r.status==="aborted"?ce:r.status==="dirty"?(e.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:t.path,parent:t})}}static create(s,e){return new za({in:s,out:e,typeName:le.ZodPipeline})}}class Ya extends je{_parse(s){const e=this._def.innerType._parse(s),t=r=>(sn(r)&&(r.value=Object.freeze(r.value)),r);return Na(e)?e.then(r=>t(r)):t(e)}unwrap(){return this._def.innerType}}Ya.create=(i,s)=>new Ya({innerType:i,typeName:le.ZodReadonly,...ve(s)});function dI(i,s={},e){return i?Hn.create().superRefine((t,r)=>{var a,d;if(!i(t)){const o=typeof s=="function"?s(t):typeof s=="string"?{message:s}:s,l=(d=(a=o.fatal)!==null&&a!==void 0?a:e)!==null&&d!==void 0?d:!0,u=typeof o=="string"?{message:o}:o;r.addIssue({code:"custom",...u,fatal:l})}}):Hn.create()}const Aw={object:vt.lazycreate};var le;(function(i){i.ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly"})(le||(le={}));const bw=(i,s={message:`Input not instance of ${i.name}`})=>dI(e=>e instanceof i,s),Io=Rr.create,iu=Ti.create,Rw=Eo.create,Dw=Ei.create,nu=$a.create,lI=on.create,Ow=ho.create,Pw=ja.create,uI=Ga.create,ww=Hn.create,Ao=dn.create,Vw=ii.create,Cw=mo.create,Bw=Dr.create,pI=vt.create,_w=vt.strictCreate,Mw=Fa.create,gw=vo.create,Nw=xa.create,Lw=Ur.create,cI=Sa.create,Uw=To.create,$w=ln.create,jw=Xn.create,Gw=ka.create,Fw=Za.create,fI=Ii.create,xw=qa.create,Sw=Qn.create,yI=Or.create,kw=$r.create,Zw=Ai.create,qw=Or.createWithPreprocess,Jw=za.create;var m=Object.freeze({__proto__:null,defaultErrorMap:zn,setErrorMap:KP,getErrorMap:co,makeIssue:fo,EMPTY_PATH:XP,addIssueToContext:W,ParseStatus:Mt,INVALID:ce,DIRTY:Yn,OK:xt,isAborted:Xl,isDirty:Ql,isValid:sn,isAsync:Na,get util(){return Je},get objectUtil(){return Kl},ZodParsedType:H,getParsedType:ri,ZodType:je,datetimeRegex:sI,ZodString:Rr,ZodNumber:Ti,ZodBigInt:Ei,ZodBoolean:$a,ZodDate:on,ZodSymbol:ho,ZodUndefined:ja,ZodNull:Ga,ZodAny:Hn,ZodUnknown:dn,ZodNever:ii,ZodVoid:mo,ZodArray:Dr,ZodObject:vt,ZodUnion:Fa,ZodDiscriminatedUnion:vo,ZodIntersection:xa,ZodTuple:Ur,ZodRecord:Sa,ZodMap:To,ZodSet:ln,ZodFunction:Xn,ZodLazy:ka,ZodLiteral:Za,ZodEnum:Ii,ZodNativeEnum:qa,ZodPromise:Qn,ZodEffects:Or,ZodTransformer:Or,ZodOptional:$r,ZodNullable:Ai,ZodDefault:Ja,ZodCatch:Wa,ZodNaN:Eo,BRAND:Iw,ZodBranded:ru,ZodPipeline:za,ZodReadonly:Ya,custom:dI,Schema:je,ZodSchema:je,late:Aw,get ZodFirstPartyTypeKind(){return le},coerce:{string:i=>Rr.create({...i,coerce:!0}),number:i=>Ti.create({...i,coerce:!0}),boolean:i=>$a.create({...i,coerce:!0}),bigint:i=>Ei.create({...i,coerce:!0}),date:i=>on.create({...i,coerce:!0})},any:ww,array:Bw,bigint:Dw,boolean:nu,date:lI,discriminatedUnion:gw,effect:yI,enum:fI,function:jw,instanceof:bw,intersection:Nw,lazy:Gw,literal:Fw,map:Uw,nan:Rw,nativeEnum:xw,never:Vw,null:uI,nullable:Zw,number:iu,object:pI,oboolean:()=>nu().optional(),onumber:()=>iu().optional(),optional:kw,ostring:()=>Io().optional(),pipeline:Jw,preprocess:qw,promise:Sw,record:cI,set:$w,strictObject:_w,string:Io,symbol:Ow,transformer:yI,tuple:Lw,undefined:Pw,union:Mw,unknown:Ao,void:Cw,NEVER:ce,ZodIssueCode:S,quotelessJson:HP,ZodError:Kt});function hI(i){var r,a,d;if(!(i!=null&&i.dataType))return Ao();const s=!i.required,e=i.dataType.isList||!1;let t=Ao();if(((r=i.dataType.entity)==null?void 0:r.type)===n.PrimitiveEntity)switch(i.dataType.entity.name){case g.String:t=Io();break;case g.KeyValue:t=cI(Ao());break;case g.Number:t=iu();break;case g.Boolean:t=nu();break;case g.Date:t=lI();break;case g.Enum:{const o=i.dataType.options||[];if(o.length===0)throw new Error(`Enum property ${i.name} has no options`);t=fI(o);break}case g.Null:t=uI();break;case g.UUID:t=Io().uuid();break}else if(((a=i.dataType.entity)==null?void 0:a.type)===n.DefinitionEntity)t=mI(i.dataType.entity);else throw new Error(`Unsupported data type validation: ${(d=i.dataType.entity)==null?void 0:d.type}`);return s&&(t=t.nullable()),e&&(t=t.array()),t}function mI(i){const s=pI({});for(const e of i.properties){const t=hI(e);s.shape[e.name]=t}return s}function vI(i){const s=i.rangeStart;return new Date(s.getTime()+Math.random()*(Date.now()-s.getTime()))}function TI(i){const s=i.rangeEnd;return new Date(Math.random()*s.getTime())}function EI(i){const s=i.rangeStart,e=i.rangeEnd;return new Date(s.getTime()+Math.random()*(e.getTime()-s.getTime()))}function II(i){return i.rangeStart&&i.rangeEnd?EI(i):i.rangeStart?vI(i):i.rangeEnd?TI(i):new Date}var Ww=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AI(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var bI={},bo={},Ro={};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=Yw;let Do;const zw=new Uint8Array(16);function Yw(){if(!Do&&(Do=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Do))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Do(zw)}var bi={},un={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var Hw=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Oo.default=Hw,Object.defineProperty(un,"__esModule",{value:!0}),un.default=void 0;var Kw=Xw(Oo);function Xw(i){return i&&i.__esModule?i:{default:i}}function Qw(i){return typeof i=="string"&&Kw.default.test(i)}var eV=Qw;un.default=eV,Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=void 0,bi.unsafeStringify=RI;var tV=rV(un);function rV(i){return i&&i.__esModule?i:{default:i}}const _t=[];for(let i=0;i<256;++i)_t.push((i+256).toString(16).slice(1));function RI(i,s=0){return _t[i[s+0]]+_t[i[s+1]]+_t[i[s+2]]+_t[i[s+3]]+"-"+_t[i[s+4]]+_t[i[s+5]]+"-"+_t[i[s+6]]+_t[i[s+7]]+"-"+_t[i[s+8]]+_t[i[s+9]]+"-"+_t[i[s+10]]+_t[i[s+11]]+_t[i[s+12]]+_t[i[s+13]]+_t[i[s+14]]+_t[i[s+15]]}function iV(i,s=0){const e=RI(i,s);if(!(0,tV.default)(e))throw TypeError("Stringified UUID is invalid");return e}var nV=iV;bi.default=nV,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var aV=oV(Ro),sV=bi;function oV(i){return i&&i.__esModule?i:{default:i}}let DI,au,su=0,ou=0;function dV(i,s,e){let t=s&&e||0;const r=s||new Array(16);i=i||{};let a=i.node||DI,d=i.clockseq!==void 0?i.clockseq:au;if(a==null||d==null){const v=i.random||(i.rng||aV.default)();a==null&&(a=DI=[v[0]|1,v[1],v[2],v[3],v[4],v[5]]),d==null&&(d=au=(v[6]<<8|v[7])&16383)}let o=i.msecs!==void 0?i.msecs:Date.now(),l=i.nsecs!==void 0?i.nsecs:ou+1;const u=o-su+(l-ou)/1e4;if(u<0&&i.clockseq===void 0&&(d=d+1&16383),(u<0||o>su)&&i.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");su=o,ou=l,au=d,o+=122192928e5;const h=((o&268435455)*1e4+l)%4294967296;r[t++]=h>>>24&255,r[t++]=h>>>16&255,r[t++]=h>>>8&255,r[t++]=h&255;const c=o/4294967296*1e4&268435455;r[t++]=c>>>8&255,r[t++]=c&255,r[t++]=c>>>24&15|16,r[t++]=c>>>16&255,r[t++]=d>>>8|128,r[t++]=d&255;for(let v=0;v<6;++v)r[t+v]=a[v];return s||(0,sV.unsafeStringify)(r)}var lV=dV;bo.default=lV;var Po={},Ri={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=void 0;var uV=pV(un);function pV(i){return i&&i.__esModule?i:{default:i}}function cV(i){if(!(0,uV.default)(i))throw TypeError("Invalid UUID");let s;const e=new Uint8Array(16);return e[0]=(s=parseInt(i.slice(0,8),16))>>>24,e[1]=s>>>16&255,e[2]=s>>>8&255,e[3]=s&255,e[4]=(s=parseInt(i.slice(9,13),16))>>>8,e[5]=s&255,e[6]=(s=parseInt(i.slice(14,18),16))>>>8,e[7]=s&255,e[8]=(s=parseInt(i.slice(19,23),16))>>>8,e[9]=s&255,e[10]=(s=parseInt(i.slice(24,36),16))/1099511627776&255,e[11]=s/4294967296&255,e[12]=s>>>24&255,e[13]=s>>>16&255,e[14]=s>>>8&255,e[15]=s&255,e}var fV=cV;Ha.default=fV,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.URL=Ri.DNS=void 0,Ri.default=TV;var yV=bi,hV=mV(Ha);function mV(i){return i&&i.__esModule?i:{default:i}}function vV(i){i=unescape(encodeURIComponent(i));const s=[];for(let e=0;e<i.length;++e)s.push(i.charCodeAt(e));return s}const OI="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Ri.DNS=OI;const PI="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Ri.URL=PI;function TV(i,s,e){function t(r,a,d,o){var l;if(typeof r=="string"&&(r=vV(r)),typeof a=="string"&&(a=(0,hV.default)(a)),((l=a)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+r.length);if(u.set(a),u.set(r,a.length),u=e(u),u[6]=u[6]&15|s,u[8]=u[8]&63|128,d){o=o||0;for(let h=0;h<16;++h)d[o+h]=u[h];return d}return(0,yV.unsafeStringify)(u)}try{t.name=i}catch{}return t.DNS=OI,t.URL=PI,t}var wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0;function EV(i){if(typeof i=="string"){const s=unescape(encodeURIComponent(i));i=new Uint8Array(s.length);for(let e=0;e<s.length;++e)i[e]=s.charCodeAt(e)}return IV(AV(bV(i),i.length*8))}function IV(i){const s=[],e=i.length*32,t="0123456789abcdef";for(let r=0;r<e;r+=8){const a=i[r>>5]>>>r%32&255,d=parseInt(t.charAt(a>>>4&15)+t.charAt(a&15),16);s.push(d)}return s}function wI(i){return(i+64>>>9<<4)+14+1}function AV(i,s){i[s>>5]|=128<<s%32,i[wI(s)-1]=s;let e=1732584193,t=-271733879,r=-1732584194,a=271733878;for(let d=0;d<i.length;d+=16){const o=e,l=t,u=r,h=a;e=gt(e,t,r,a,i[d],7,-680876936),a=gt(a,e,t,r,i[d+1],12,-389564586),r=gt(r,a,e,t,i[d+2],17,606105819),t=gt(t,r,a,e,i[d+3],22,-1044525330),e=gt(e,t,r,a,i[d+4],7,-176418897),a=gt(a,e,t,r,i[d+5],12,1200080426),r=gt(r,a,e,t,i[d+6],17,-1473231341),t=gt(t,r,a,e,i[d+7],22,-45705983),e=gt(e,t,r,a,i[d+8],7,1770035416),a=gt(a,e,t,r,i[d+9],12,-1958414417),r=gt(r,a,e,t,i[d+10],17,-42063),t=gt(t,r,a,e,i[d+11],22,-1990404162),e=gt(e,t,r,a,i[d+12],7,1804603682),a=gt(a,e,t,r,i[d+13],12,-40341101),r=gt(r,a,e,t,i[d+14],17,-1502002290),t=gt(t,r,a,e,i[d+15],22,1236535329),e=Nt(e,t,r,a,i[d+1],5,-165796510),a=Nt(a,e,t,r,i[d+6],9,-1069501632),r=Nt(r,a,e,t,i[d+11],14,643717713),t=Nt(t,r,a,e,i[d],20,-373897302),e=Nt(e,t,r,a,i[d+5],5,-701558691),a=Nt(a,e,t,r,i[d+10],9,38016083),r=Nt(r,a,e,t,i[d+15],14,-660478335),t=Nt(t,r,a,e,i[d+4],20,-405537848),e=Nt(e,t,r,a,i[d+9],5,568446438),a=Nt(a,e,t,r,i[d+14],9,-1019803690),r=Nt(r,a,e,t,i[d+3],14,-187363961),t=Nt(t,r,a,e,i[d+8],20,1163531501),e=Nt(e,t,r,a,i[d+13],5,-1444681467),a=Nt(a,e,t,r,i[d+2],9,-51403784),r=Nt(r,a,e,t,i[d+7],14,1735328473),t=Nt(t,r,a,e,i[d+12],20,-1926607734),e=Lt(e,t,r,a,i[d+5],4,-378558),a=Lt(a,e,t,r,i[d+8],11,-2022574463),r=Lt(r,a,e,t,i[d+11],16,1839030562),t=Lt(t,r,a,e,i[d+14],23,-35309556),e=Lt(e,t,r,a,i[d+1],4,-1530992060),a=Lt(a,e,t,r,i[d+4],11,1272893353),r=Lt(r,a,e,t,i[d+7],16,-155497632),t=Lt(t,r,a,e,i[d+10],23,-1094730640),e=Lt(e,t,r,a,i[d+13],4,681279174),a=Lt(a,e,t,r,i[d],11,-358537222),r=Lt(r,a,e,t,i[d+3],16,-722521979),t=Lt(t,r,a,e,i[d+6],23,76029189),e=Lt(e,t,r,a,i[d+9],4,-640364487),a=Lt(a,e,t,r,i[d+12],11,-421815835),r=Lt(r,a,e,t,i[d+15],16,530742520),t=Lt(t,r,a,e,i[d+2],23,-995338651),e=Ut(e,t,r,a,i[d],6,-198630844),a=Ut(a,e,t,r,i[d+7],10,1126891415),r=Ut(r,a,e,t,i[d+14],15,-1416354905),t=Ut(t,r,a,e,i[d+5],21,-57434055),e=Ut(e,t,r,a,i[d+12],6,1700485571),a=Ut(a,e,t,r,i[d+3],10,-1894986606),r=Ut(r,a,e,t,i[d+10],15,-1051523),t=Ut(t,r,a,e,i[d+1],21,-2054922799),e=Ut(e,t,r,a,i[d+8],6,1873313359),a=Ut(a,e,t,r,i[d+15],10,-30611744),r=Ut(r,a,e,t,i[d+6],15,-1560198380),t=Ut(t,r,a,e,i[d+13],21,1309151649),e=Ut(e,t,r,a,i[d+4],6,-145523070),a=Ut(a,e,t,r,i[d+11],10,-1120210379),r=Ut(r,a,e,t,i[d+2],15,718787259),t=Ut(t,r,a,e,i[d+9],21,-343485551),e=Di(e,o),t=Di(t,l),r=Di(r,u),a=Di(a,h)}return[e,t,r,a]}function bV(i){if(i.length===0)return[];const s=i.length*8,e=new Uint32Array(wI(s));for(let t=0;t<s;t+=8)e[t>>5]|=(i[t/8]&255)<<t%32;return e}function Di(i,s){const e=(i&65535)+(s&65535);return(i>>16)+(s>>16)+(e>>16)<<16|e&65535}function RV(i,s){return i<<s|i>>>32-s}function Vo(i,s,e,t,r,a){return Di(RV(Di(Di(s,i),Di(t,a)),r),e)}function gt(i,s,e,t,r,a,d){return Vo(s&e|~s&t,i,s,r,a,d)}function Nt(i,s,e,t,r,a,d){return Vo(s&t|e&~t,i,s,r,a,d)}function Lt(i,s,e,t,r,a,d){return Vo(s^e^t,i,s,r,a,d)}function Ut(i,s,e,t,r,a,d){return Vo(e^(s|~t),i,s,r,a,d)}var DV=EV;wo.default=DV,Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=void 0;var OV=VI(Ri),PV=VI(wo);function VI(i){return i&&i.__esModule?i:{default:i}}var wV=(0,OV.default)("v3",48,PV.default);Po.default=wV;var Co={},Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var VV={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Bo.default=VV,Object.defineProperty(Co,"__esModule",{value:!0}),Co.default=void 0;var CI=BI(Bo),CV=BI(Ro),BV=bi;function BI(i){return i&&i.__esModule?i:{default:i}}function _V(i,s,e){if(CI.default.randomUUID&&!s&&!i)return CI.default.randomUUID();i=i||{};const t=i.random||(i.rng||CV.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,s){e=e||0;for(let r=0;r<16;++r)s[e+r]=t[r];return s}return(0,BV.unsafeStringify)(t)}var MV=_V;Co.default=MV;var _o={},Mo={};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=void 0;function gV(i,s,e,t){switch(i){case 0:return s&e^~s&t;case 1:return s^e^t;case 2:return s&e^s&t^e&t;case 3:return s^e^t}}function du(i,s){return i<<s|i>>>32-s}function NV(i){const s=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){const d=unescape(encodeURIComponent(i));i=[];for(let o=0;o<d.length;++o)i.push(d.charCodeAt(o))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);const t=i.length/4+2,r=Math.ceil(t/16),a=new Array(r);for(let d=0;d<r;++d){const o=new Uint32Array(16);for(let l=0;l<16;++l)o[l]=i[d*64+l*4]<<24|i[d*64+l*4+1]<<16|i[d*64+l*4+2]<<8|i[d*64+l*4+3];a[d]=o}a[r-1][14]=(i.length-1)*8/Math.pow(2,32),a[r-1][14]=Math.floor(a[r-1][14]),a[r-1][15]=(i.length-1)*8&4294967295;for(let d=0;d<r;++d){const o=new Uint32Array(80);for(let E=0;E<16;++E)o[E]=a[d][E];for(let E=16;E<80;++E)o[E]=du(o[E-3]^o[E-8]^o[E-14]^o[E-16],1);let l=e[0],u=e[1],h=e[2],c=e[3],v=e[4];for(let E=0;E<80;++E){const O=Math.floor(E/20),w=du(l,5)+gV(O,u,h,c)+v+s[O]+o[E]>>>0;v=c,c=h,h=du(u,30)>>>0,u=l,l=w}e[0]=e[0]+l>>>0,e[1]=e[1]+u>>>0,e[2]=e[2]+h>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+v>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var LV=NV;Mo.default=LV,Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0;var UV=_I(Ri),$V=_I(Mo);function _I(i){return i&&i.__esModule?i:{default:i}}var jV=(0,UV.default)("v5",80,$V.default);_o.default=jV;var go={};Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var GV="00000000-0000-0000-0000-000000000000";go.default=GV;var No={};Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var FV=xV(un);function xV(i){return i&&i.__esModule?i:{default:i}}function SV(i){if(!(0,FV.default)(i))throw TypeError("Invalid UUID");return parseInt(i.slice(14,15),16)}var kV=SV;No.default=kV,function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(i,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(i,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(i,"v1",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(i,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(i,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(i,"v5",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(i,"validate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"version",{enumerable:!0,get:function(){return d.default}});var s=h(bo),e=h(Po),t=h(Co),r=h(_o),a=h(go),d=h(No),o=h(un),l=h(bi),u=h(Ha);function h(c){return c&&c.__esModule?c:{default:c}}}(bI);function lu(i,s){if(!i||!s||!i.length||!s.length)throw new Error("Bad alphabet");this.srcAlphabet=i,this.dstAlphabet=s}lu.prototype.convert=function(i){var s,e,t,r={},a=this.srcAlphabet.length,d=this.dstAlphabet.length,o=i.length,l=typeof i=="string"?"":[];if(!this.isValid(i))throw new Error('Number "'+i+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return i;for(s=0;s<o;s++)r[s]=this.srcAlphabet.indexOf(i[s]);do{for(e=0,t=0,s=0;s<o;s++)e=e*a+r[s],e>=d?(r[t++]=parseInt(e/d,10),e=e%d):t>0&&(r[t++]=0);o=t,l=this.dstAlphabet.slice(e,e+1).concat(l)}while(t!==0);return l},lu.prototype.isValid=function(i){for(var s=0;s<i.length;++s)if(this.srcAlphabet.indexOf(i[s])===-1)return!1;return!0};var ZV=lu,qV=ZV;function Ka(i,s){var e=new qV(i,s);return function(t){return e.convert(t)}}Ka.BIN="01",Ka.OCT="01234567",Ka.DEC="0123456789",Ka.HEX="0123456789abcdef";var JV=Ka;const{v4:uu,validate:WV}=bI,Lo=JV,pu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},zV={consistentLength:!0};let cu;const MI=(i,s,e)=>{const t=s(i.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},gI=(i,s)=>{const t=s(i).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[t[1],t[2],t[3],t[4],t[5]].join("-")},YV=i=>Math.ceil(Math.log(2**128)/Math.log(i));var HV=(()=>{const i=(s,e)=>{const t=s||pu.flickrBase58,r={...zV,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const a=YV(t.length),d={shortIdLength:a,consistentLength:r.consistentLength,paddingChar:t[0]},o=Lo(Lo.HEX,t),l=Lo(t,Lo.HEX),u=()=>MI(uu(),o,d),c={alphabet:t,fromUUID:v=>MI(v,o,d),maxLength:a,generate:u,new:u,toUUID:v=>gI(v,l),uuid:uu,validate:(v,E=!1)=>{if(!v||typeof v!="string")return!1;const O=r.consistentLength?v.length===a:v.length<=a,w=v.split("").every(C=>t.includes(C));return E===!1?O&&w:O&&w&&WV(gI(v,l))}};return Object.freeze(c),c};return i.constants=pu,i.uuid=uu,i.generate=()=>(cu||(cu=i(pu.flickrBase58).generate),cu()),i})();const Uo=AI(HV);function NI(){return Uo().uuid()}function LI(i){return i.rangeStart+Math.random()}function UI(i){const s=i.rangeEnd;return Math.random()*s}function $I(i){const s=i.rangeStart,e=i.rangeEnd;return Math.random()*(e-s)+s}function jI(i){return i.rangeStart&&i.rangeEnd?$I(i):i.rangeStart?LI(i):i.rangeEnd?UI(i):Math.random()}function GI(i){const s=i.rangeStart;return Math.random().toString(36).substring(s)}function FI(i){const s=i.rangeEnd;return Math.random().toString(36).substring(0,s)}function xI(i){const s=i.rangeStart,e=i.rangeEnd;return Math.random().toString(36).substring(s,e)}function SI(i){return i.rangeStart&&i.rangeEnd?xI(i):i.rangeStart?GI(i):i.rangeEnd?FI(i):Math.random().toString(36)}function kI(i){return Math.random()>=.5}function KV(i){if(!i||!i.autogeneration)return null;switch(i.autogeneration.type){case yt.CurrentDateAndTime:if(i.name===g.Date)return new Date;case yt.Random:{if(i.name===g.Date)return II(i.autogeneration);if(i.name===g.Number)return jI(i.autogeneration);if(i.name===g.String)return SI(i.autogeneration);if(i.name===g.Boolean)return kI(i.autogeneration)}case yt.Unique:if(i.name===g.UUID)return NI();default:throw new Error(`Generating a ${i.autogeneration.type} value for a ${i.name} is not supported`)}}const ue="e7eb5382-3d99-44fd-972a-b8b1e819f6be",ZI="global-user-variable-id",fu="last-executed-timestamp-variable-id",XV={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.ValueDescriptor},QV={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},eC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:QV},$o={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},tC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:io,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:null,parent:XV,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:eC,description:"The name of the main database inside of the server instance where the data will be stored.",parent:$o};n.GenericReference,n.ValueDescriptor;const rC={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:n.Property},iC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:rC},nC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:no,static:!0,index:1,defaultValue:null,dataType:iC,description:"The username that will be used to connect to the database.",parent:$o};n.GenericReference,n.ValueDescriptor;const aC={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:n.Property},sC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:aC},oC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ao,static:!0,index:2,defaultValue:null,dataType:sC,description:"The password that will be used to connect to the database.",parent:$o},dC={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.ValueDescriptor},lC={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},uC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:lC},pC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:so,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,value:6,parent:dC,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:uC,description:"The minimum size of the database in GB.",parent:$o},cC={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},yu={id:"alternative-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[tC,nC,oC,pC],methods:[],abstractMethods:[],extends:[],implements:[Nr],x:0,y:0,parent:cC},fC={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},yC={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},hC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:fC},mC={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:n.DefinitionEntity},vC={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Zn,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:yu,autogeneration:null,parent:yC},dataType:hC,description:"The database that the entity belongs to.",parent:mC},TC={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},EC={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:TC},IC={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},AC={constant:!1,hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the animal",defaultValue:null,implements:qn,static:!1,private:!1,index:0,dataType:EC,abstract:!1,parent:IC},bC={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:n.Project,entityId:ue},RC={type:n.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[vC,AC],methods:[],extends:[],implements:[Pt],x:0,y:0,parent:bC},Xa="base-table-entity",qI="base-table-entity-identifier-property-id";n.GenericReference,n.Property,n.GenericReference,n.Property;const DC={id:"base-table-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:qI,version:"1",entityType:n.Property},OC={id:"base-table-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:n.Property},PC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parent:OC},wC={id:"base-table-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:Xa,version:"1",entityType:n.DefinitionEntity};n.Property,n.LiteralValue,g.UUID,yt.Unique,n.GenericReference,n.Property;const VC={id:"base-table-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:n.Property},CC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:_r,asType:!1,parent:VC},BC={id:"base-table-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:Xa,version:"1",entityType:n.DefinitionEntity},_C={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:CC,description:"The date and time when the entity was deleted.",parent:BC};n.GenericReference,n.Property;const MC={id:"base-table-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:n.Property},gC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:_r,asType:!1,parent:MC},NC={id:"base-table-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:Xa,version:"1",entityType:n.DefinitionEntity},LC={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:gC,description:"The date and time when the entity was created.",parent:NC};n.GenericReference,n.Property;const UC={id:"base-table-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:n.Property},$C={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:_r,asType:!1,parent:UC},jC={id:"base-table-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:Xa,version:"1",entityType:n.DefinitionEntity},GC={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:$C,description:"The date and time when the entity was last updated.",parent:jC},FC={id:"base-table-entity-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},lr={id:Xa,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:"Base database table format",type:n.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[_C,LC,GC],methods:[],extends:[],x:0,y:0,parent:FC},xC={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},SC={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},kC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:SC},ea={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},ZC={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:io,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"main",parent:xC,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:kC,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ea};n.GenericReference,n.Property;const qC={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},JC={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},WC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:qC},zC={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:no,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"root",parent:JC,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:WC,description:"The username that will be used to connect to the database.",parent:ea};n.GenericReference,n.Property;const YC={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},HC={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},KC={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:YC},XC={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ao,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"password",parent:HC,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:KC,description:"The password that will be used to connect to the database.",parent:ea},QC={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},eB={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},tB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:eB},rB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:so,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,value:6,parent:QC,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:tB,description:"The minimum size of the database in GB.",parent:ea},iB={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},nB={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},aB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:nB},sB={constant:!1,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,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:n.Property,private:!1,abstract:!1,implements:ql,static:!0,index:4,dataType:aB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,value:!0,parent:iB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:ea},oB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},dB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},lB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:me,asType:!1,parent:dB},uB={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jl,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Boolean,value:!0,parent:oB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:lB,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ea},pB={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},hu={id:"default-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[sB,uB,ZC,zC,XC,rB],methods:[],abstractMethods:[],extends:[],implements:[Nr],x:0,y:0,parent:pB},cB={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},fB={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},yB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:fB},hB={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},mB={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Zn,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:hu,autogeneration:null,parent:cB},dataType:yB,description:"The database that the entity belongs to.",parent:hB},vB={type:n.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},TB={id:"user-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},EB={id:"user-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},IB={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parent:EB},AB={id:"user-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},bB={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:qn,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.UUID,value:null,parent:TB,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:IB,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:AB},mu={type:n.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"User",description:"A user of the application",implements:[Pt,lr],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[mB,bB],methods:[],x:0,y:0,parent:vB},RB={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"person-date-of-birth-property-id"},DB={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:_r,isList:!1,asType:!1,parent:RB},OB={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},PB={constant:!1,hidden:!1,required:!0,type:n.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:DB,abstract:!1,parent:OB},wB={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},VB={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:wB},CB={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},BB={constant:!1,hidden:!1,required:!0,type:n.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:VB,abstract:!1,parent:CB},_B={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:n.Project,entityId:ue},St={type:n.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:[BB,PB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[mu],x:0,y:0,parent:_B},MB={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},gB={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},NB={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},LB={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},UB={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:LB},vu={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:UB,implements:null,readsValue:NB,required:!0,index:0,parent:gB},$B={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},jB={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},GB={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vu],calledByError:[],calledByEntry:[$B],calledBySuccess:[],throws:null,x:0,y:0,parent:jB},FB={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},xB={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:FB},JI={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",description:null,defaultValue:null,dataType:xB,implements:null,required:!0,writesValues:[vu],index:0,parent:MB},SB={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},WI={type:n.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",description:null,implements:null,inputs:[JI],calls:[GB],index:0,collapsed:!1,private:!1,x:0,y:0,parent:SB},kB={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},ZB={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,asType:!1,isList:!1,parent:kB},qB={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},JB={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},WB={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:ZB,readsValue:qB,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:JB},zB={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},YB={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vu,defaultValue:null,writesValues:[WB],index:0,parent:zB},HB={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},KB={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},XB={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},QB={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,asType:!1,isList:!1,parent:XB},e_={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},t_={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},r_={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},i_={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},zI={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:JI,name:null,description:null,readsValue:i_,defaultValue:null,index:0,parent:r_},n_={constant:!0,required:!0,type:n.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",description:null,defaultValue:null,dataType:QB,readsValue:e_,writesValues:[zI],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:t_},a_={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:WI,inputs:[zI],outputs:[YB],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[HB],calledBySuccess:[],parent:KB,error:null,x:0,y:0},s_={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},o_={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,asType:!1,isList:!1,parent:s_},d_={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},l_={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"New Company Owner",defaultValue:null,dataType:o_,implements:null,required:!0,index:0,writesValues:[n_],parent:d_},u_={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},p_={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Change Account Owner",inputs:[l_],collapsed:!0,calls:[a_],private:!1,index:0,implements:null,x:0,y:0,parent:u_},c_={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},f_={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:c_},y_={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},h_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:null,private:!0,defaultValue:null,implements:qn,static:!1,index:0,dataType:f_,abstract:!1,parent:y_},m_={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},v_={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:m_},T_={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},E_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:v_,implements:null,static:!1,private:!0,abstract:!1,parent:T_},I_={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:n.Project,entityId:ue},ta={type:n.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[h_,E_],methods:[WI,p_],extends:[],implements:[Pt,lr],x:0,y:0,parent:I_},Qa="bitcoin-api-response-id",YI="time-property-id",HI="disclaimer-property-id",KI="chart-name-property-id",XI="bpi-property-id",jo="bpi-entity-id",QI="usd-property-id",eA="gbp-property-id",tA="eur-property-id",ra="currency-entity-id",rA="currency-code-property-id",iA="currency-symbol-property-id",nA="currency-rate-property-id",aA="currency-description-property-id",sA="currency-rate-number-property-id",A_={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:rA},b_={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Xr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:A_},R_={type:n.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},D_={constant:!1,hidden:!1,required:!0,type:n.Property,id:rA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:b_,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:R_},O_={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:iA},P_={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Xr,isList:!1,asType:!1,options:["$","£","€"],parent:O_},w_={type:n.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},V_={constant:!1,hidden:!1,required:!0,type:n.Property,id:iA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:P_,implements:null,static:!1,private:!1,abstract:!1,parent:w_},C_={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:nA},B_={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:C_},__={type:n.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},M_={constant:!1,hidden:!1,required:!0,type:n.Property,id:nA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:B_,implements:null,static:!1,private:!1,abstract:!1,parent:__},g_={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:aA},N_={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:g_},L_={type:n.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},U_={constant:!1,hidden:!1,required:!0,type:n.Property,id:aA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:N_,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:L_},$_={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:sA},j_={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:$_},G_={type:n.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},F_={constant:!1,hidden:!1,required:!0,type:n.Property,id:sA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:j_,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:G_},x_={type:n.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},Go={type:n.DefinitionEntity,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[D_,V_,M_,U_,F_],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:x_},S_={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:QI},k_={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Go,isList:!1,asType:!1,parent:S_},Z_={type:n.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:jo},q_={constant:!1,hidden:!1,required:!0,id:QI,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:k_,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:Z_},J_={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:eA},W_={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Go,isList:!1,asType:!1,parent:J_},z_={type:n.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:jo},Y_={constant:!1,hidden:!1,required:!0,id:eA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:W_,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:z_},H_={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:tA},K_={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Go,isList:!1,asType:!1,parent:H_},X_={type:n.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:jo},Q_={constant:!1,hidden:!1,required:!0,id:tA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:K_,private:!1,abstract:!1,parent:X_},eM={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},oA={type:n.DefinitionEntity,id:jo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[q_,Y_,Q_],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:eM},tM={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:YI},rM={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,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:tM},iM={type:n.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:Qa},nM={constant:!1,hidden:!1,required:!0,type:n.Property,id:YI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:rM,implements:null,static:!1,private:!1,abstract:!1,parent:iM},aM={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:HI},sM={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:aM},oM={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:Qa},dM={constant:!1,hidden:!1,required:!0,type:n.Property,id:HI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:sM,implements:null,static:!1,private:!1,abstract:!1,parent:oM},lM={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:KI},uM={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:lM},pM={type:n.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:Qa},cM={constant:!1,hidden:!1,required:!0,type:n.Property,id:KI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:uM,implements:null,static:!1,private:!1,abstract:!1,parent:pM},fM={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:XI},yM={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:oA,isList:!1,asType:!1,parent:fM},hM={type:n.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:Qa},mM={constant:!1,hidden:!1,required:!0,type:n.Property,id:XI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:yM,static:!1,private:!1,abstract:!1,parent:hM},vM={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},dA={type:n.DefinitionEntity,id:Qa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[nM,dM,cM,mM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:vM},TM={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},EM={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:TM},IM={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},AM={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},bM={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:AM},RM={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},lA={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:bM,readsValue:RM,required:!0,index:0,parent:IM},DM={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},OM={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:EM,writesValues:[lA],required:!0,index:0,parent:DM},PM={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},wM={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},VM={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},CM={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[lA],calledByError:[],calledByEntry:[wM],calledBySuccess:[],throws:null,x:0,y:0,parent:VM},BM={type:n.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[OM],calls:[CM],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:PM},_M={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},MM={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},gM={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},NM={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},LM={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},UM={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Kr,asType:!1,isList:!1,parent:LM},Tu={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:UM,implements:null,readsValue:NM,required:!0,index:0,parent:gM},$M={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},uA={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Tu],calledByError:[],calledByEntry:[],calledBySuccess:[_M,$M],throws:null,x:0,y:0,parent:MM},jM={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},GM={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},pA={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Dl,name:null,description:null,readsValue:GM,defaultValue:null,parent:jM,index:2},FM={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},xM={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Kr,isList:!1,asType:!1,parent:FM},SM={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},kM={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},ZM={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},cA={constant:!0,required:!0,type:n.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:xM,readsValue:kM,writesValues:[Tu],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ZM],successCalls:[uA],errorCalls:[],internalCalls:[],x:0,y:0,parent:SM},qM={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},JM={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},WM={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Js,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:g.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:qM,autogeneration:null},index:1,parent:JM},zM={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},YM={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ks,index:2,writesValues:[cA],parent:zM},HM={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},KM={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:qs,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:HM},XM={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},QM={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ws,index:3,readsValue:null,defaultValue:null,parent:XM},eg={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},tg={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:zs,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:eg},rg={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ig={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Hs,index:1,writesValues:[],parent:rg},ng={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ag={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ys,index:0,writesValues:[],parent:ng},sg={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},og={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},dg={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},lg={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ug={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},pg={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Rt,asType:!1,isList:!1,parent:ug},cg={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},fA={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:pg,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:cg},fg={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[lg],calledByEntry:[],calledBySuccess:[],throws:fA,x:0,y:0,parent:dg},yg={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},hg={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:Ol,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[fA],index:0,parentRelationType:Un.Error,parent:yg},mg={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wa,inputs:[KM,WM,pA,QM,tg],outputs:[ag,ig,YM],process:null,calledByError:[],calledByEntry:[sg],calledBySuccess:[],successCalls:[uA,cA],errorCalls:[fg],error:hg,x:0,y:0,parent:og},vg={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},Tg={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Eg={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ss,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:g.String,parent:vg,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:Tg},Ig={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Ag={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},bg={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},Rg={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:bg},Dg={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},Og={type:n.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},yA={constant:!0,required:!0,type:n.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Rg,readsValue:Dg,writesValues:[pA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Og],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Ag},Pg={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[yA],declaration:Oa,index:0,parent:Ig},wg={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},Vg={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},Cg={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:n.ArgumentDeclaration},Bg={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},hA={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ks,name:null,description:null,readsValue:Cg,defaultValue:null,index:1,parent:Bg},_g={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Pa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[hA,Eg],outputs:[Pg],process:null,calledByError:[],calledByEntry:[wg],calledBySuccess:[],successCalls:[yA],errorCalls:[],error:null,x:0,y:0,parent:Vg},Mg={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},gg={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:Mg},Ng={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},mA={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:gg,defaultValue:null,implements:null,required:!1,writesValues:[hA],index:0,parent:Ng},Lg={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:n.Project,entityId:ue},vA={type:n.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:[mA],calls:[_g,mg],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Lg},Ug={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},$g={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},jg={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},Gg={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},TA={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mA,name:null,description:null,readsValue:jg,defaultValue:null,index:0,parent:Gg},Fg={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},xg={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},Sg={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Kr,asType:!1,isList:!1,parent:xg},kg={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Zg={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},qg={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},EA={constant:!0,required:!0,type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:Sg,readsValue:kg,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[qg],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Zg},Jg={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tu,defaultValue:null,writesValues:[EA],index:0,parent:Fg},Wg={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vA,inputs:[TA],outputs:[Jg],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[Ug],successCalls:[EA],errorCalls:[],error:null,x:0,y:0,parent:$g},zg={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},Yg={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},Hg={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},Kg={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},IA={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:an.inputs[0],name:null,description:null,readsValue:Hg,defaultValue:null,index:0,parent:Kg},Xg={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:an,inputs:[IA],calledByError:[],calledByEntry:[zg],calledBySuccess:[],successCalls:[Wg],errorCalls:[],x:0,y:0,parent:Yg},Qg={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},eN={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},tN={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ta,asType:!1,isList:!1,parent:eN},rN={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},iN={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},nN={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},AA={constant:!0,required:!0,type:n.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:tN,readsValue:iN,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[nN],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:rN},aN={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},sN={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ta,asType:!1,isList:!1,parent:aN},oN={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new bank account of the company",dataType:sN,implements:null,defaultValue:null,required:!0,index:1,writesValues:[AA],parent:Qg},dN={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},lN={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},uN={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},pN={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:uN},cN={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:pN,implements:null,defaultValue:null,required:!0,index:0,writesValues:[IA,TA],parent:lN},fN={type:n.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[cN,oN],calls:[Xg,AA],index:1,private:!1,implements:null,x:0,y:0,parent:dN},yN={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},hN={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-manager-property-id"},mN={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:yN,isList:!1,asType:!1,parent:hN},vN={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},TN={constant:!1,required:!0,hidden:!1,type:n.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:mN,abstract:!1,parent:vN},EN={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-start-date-property-id"},IN={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:_r,isList:!1,asType:!1,parent:EN},AN={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},bN={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:IN,abstract:!1,parent:AN},RN={type:n.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:n.Property,entityId:"employee-department-property-id"},DN={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Xr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:RN},ON={type:n.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},PN={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:DN,abstract:!1,parent:ON},wN={type:n.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},vr={type:n.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"A entity that represents an employee in the company",properties:[PN,bN,TN],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[St],x:0,y:0,parent:wN},VN={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},CN={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:VN},BN={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},_N={constant:!1,hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:CN,abstract:!1,parent:BN},MN={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},gN={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ta,isList:!1,asType:!1,parent:MN},NN={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Eu={constant:!1,hidden:!1,required:!0,type:n.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:gN,abstract:!1,parent:NN},LN={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},UN={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:St,isList:!1,asType:!1,parent:LN},$N={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},jN={constant:!1,hidden:!1,required:!0,type:n.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:UN,private:!0,abstract:!1,parent:$N},GN={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},FN={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,isList:!0,asType:!1,parent:GN},xN={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},SN={constant:!1,hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employees",description:null,index:3,defaultValue:null,dataType:FN,implements:null,private:!0,static:!1,abstract:!1,parent:xN},kN={id:"company-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},ZN={id:"company-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},qN={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parent:ZN},JN={id:"company-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:n.DefinitionEntity},WN={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:qn,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.UUID,value:null,parent:kN,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:qN,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:JN},zN={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:n.Project,entityId:ue},Tr={type:n.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:null,properties:[_N,Eu,jN,SN,WN],static:!1,abstract:!1,abstractMethods:[],methods:[BM,fN],extends:[],implements:[Pt,lr],x:0,y:0,parent:zN},YN={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:n.Project,entityId:ue},Iu={type:n.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:YN};n.GenericReference,n.DataType;const HN={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:n.Property},KN={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:HN},XN={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},QN={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:KN,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:XN},eL={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},tL={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},rL={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:n.FunctionCall,declaration:Iu,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[eL],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:tL},iL={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},nL={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:zl,calls:[rL],collapsed:!1,index:0,x:0,y:0,parent:iL},aL={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},sL={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[QN],static:!0,abstract:!1,abstractMethods:[],extends:[oo],implements:[],methods:[nL],x:0,y:0,parent:aL},oL={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:n.Project,entityId:ue},dL={type:n.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[ga],x:0,y:0,parent:oL},Fo="f558fbf8-67de-4545-9804-6ae621e0b2d4",lL={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},uL={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},pL={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ne,asType:!1,parent:uL},cL={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},fL={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},yL={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},hL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Rt,asType:!1,parent:yL},mL={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:n.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:fL,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:hL,implements:$l,required:!0,index:0,parent:cL},vL={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},TL={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.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,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:lL,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:pL,implements:jl,required:!0,index:1,parent:vL},EL={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},IL={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},AL={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},bL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:ne,parent:AL},RL={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:n.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:IL,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:bL,implements:Gl,required:!0,index:2,parent:EL},DL={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},OL={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},PL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Rt,parent:OL},wL={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:n.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:PL,implements:Fl,index:3,required:!0,parent:DL},VL={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},CL={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:VL},BL={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},_L={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:n.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:CL,implements:xl,readsValue:null,required:!0,index:0,parent:BL},ML={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},gL={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},NL={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Rt,asType:!1,parent:gL},LL={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},UL={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:n.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.KeyValue,value:{},parent:ML,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:NL,implements:Sl,readsValue:null,required:!0,index:1,parent:LL},$L={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},jL={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Rt,parent:$L},GL={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},FL={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:n.ReturnDeclaration,name:"Response body",implements:kl,defaultValue:null,dataType:jL,readsValue:null,required:!0,index:2,parent:GL},xL={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:n.FunctionDeclaration},SL={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};n.ReturnStatement;const kL={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Fo},ZL={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,inputs:[mL,TL,RL,wL],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Zl,index:0,private:!1,x:0,y:0,parent:kL},qL={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},JL={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},WL={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ne,asType:!1,parent:JL},zL={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:Fo},YL={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Ll,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"/company/{id}",parent:qL,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:WL,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:zL},HL={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},KL={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},XL={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Xr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:KL},QL={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:Fo},eU={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Ul,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:g.Enum,parent:HL,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:XL,description:null,parent:QL},tU={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:n.Project,entityId:ue},rU={type:n.DefinitionEntity,id:Fo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get given company data by id",description:null,properties:[YL,eU],methods:[ZL],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[ga],x:0,y:0,parent:tU},iU={id:"plant-prototype-database-property-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},nU={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},aU={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:iU},sU={id:"plant-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"plant-entity-id",version:"1",entityType:n.DefinitionEntity},oU={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Zn,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:yu,autogeneration:null,parent:nU},dataType:aU,description:"The database that the entity belongs to.",parent:sU},dU={type:n.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:n.Property,entityId:"plant-name-property-id"},lU={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:dU},uU={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"plant-entity-id"},pU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:lU,abstract:!1,parent:uU},cU={type:n.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},fU={type:n.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[oU,pU],methods:[],extends:[],implements:[Pt],x:0,y:0,parent:cU},yU={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},hU={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},mU={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Nr,asType:!1,parent:yU},vU={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},TU={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Zn,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:hu,autogeneration:null,parent:hU},dataType:mU,description:"The database that the entity belongs to.",parent:vU},EU={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},IU={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:EU},AU={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:n.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},bU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:IU,abstract:!1,parent:AU},RU={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:n.Project,entityId:ue},DU={id:"product-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},OU={id:"product-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},PU={like:!1,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:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Qr,asType:!1,parent:OU},wU={id:"product-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},VU={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.UUID,value:null,parent:DU,autogeneration:{type:yt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:PU,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:wU},CU={type:n.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Product",description:"A product that can be sold",implements:[Pt,lr],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[VU,TU,bU],methods:[],x:0,y:0,parent:RU},ia="project-loaded-event-id",ai="get-bitcoin-price-http-call-operation-id",bA="get-bitcoin-price-http-call-response-body-id",xo="validate-bitcoin-price-response-operation-ids",BU={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bA},_U={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:xo},RA={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qi.inputs[1],name:null,description:null,readsValue:BU,defaultValue:null,index:0,parent:_U},MU={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},gU={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:xo},NU={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qi.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:dA,value:null,parent:MU,autogeneration:null},index:0,parent:gU},LU={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:xo},UU={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Qi.outputs[0],writesValues:[],index:0,parent:LU},$U={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:n.GlobalEvent,entityId:ia},jU={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:n.Operation,entityId:ai},GU={type:n.Operation,id:xo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qi,inputs:[NU,RA],outputs:[UU],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[jU],parent:$U},FU={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:n.FunctionCall,entityId:ai},xU={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:qs,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:FU},SU={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:n.FunctionCall,entityId:ai},kU={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},ZU={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Js,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.LiteralValue,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:g.String,parent:kU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:SU},qU={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:n.FunctionCall,entityId:ai},JU={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ws,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:qU},WU={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:n.FunctionCall,entityId:ai},zU={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:zs,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:WU},YU={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:n.FunctionCall,entityId:ai},HU={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Hs,writesValues:[],index:1,parent:YU},KU={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:n.FunctionCall,entityId:ai},XU={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Ys,writesValues:[],index:0,parent:KU},QU={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:n.FunctionCall,entityId:ai},e2={id:bA,type:n.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ks,writesValues:[RA],index:2,parent:QU},t2={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:n.GlobalEvent,entityId:ia},r2={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:n.GlobalEvent,entityId:ia},i2={type:n.Operation,id:ai,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wa,inputs:[xU,ZU,JU,zU],outputs:[XU,HU,e2],process:null,parent:r2,calledByError:[],calledByEntry:[t2],calledBySuccess:[],successCalls:[GU],errorCalls:[],error:null,x:0,y:0},n2={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:n.GlobalEvent,entityId:ia},a2={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:n.GlobalEvent,entityId:ia},s2={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Iu,inputs:[],outputs:[],calledByError:[],calledByEntry:[n2],calledBySuccess:[],parent:a2,successCalls:[],errorCalls:[],error:null,x:0,y:0},o2={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,version:"1",entityType:n.Project,entityId:ue},d2={type:n.GlobalEvent,id:ia,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Hr.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:uo,parent:o2,inputs:[],calls:[s2,i2],x:0,y:0},ur="abort-execution-func-declaration-id",es="abort-execution-func-exec-var-declaration-id",Au="abort-execution-func-small-wait-op-id",bu="abort-execution-func-long-wait-op-id",DA="abort-execution-func-long-wait-process-output-id",OA="abort-execution-func-exec-var-instance-write-id",PA="abort-execution-func-long-wait-return-stmt-id",wA="abort-execution-func-small-wait-return-stmt-id",l2="abort-execution-func-exec-var-instance-abort-call-id",Ru="abort-execution-func-exec-var-instance-abort-internal-call-id",Du="abort-execution-func-exec-second-wait-op-id",u2={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},p2={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},c2={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:u2},f2={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:wA},y2={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:p2},dataType:c2,implements:null,readsValue:null,required:!0,index:0,parent:f2},h2={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Du},m2={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},v2={type:n.ReturnStatement,id:wA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[y2],calledByError:[],calledByEntry:[],calledBySuccess:[h2],throws:null,x:0,y:0,parent:m2},T2={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},E2={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Du},I2={id:"second-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:g.Number,parent:T2},index:0,parent:E2},A2={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},b2={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Ru},R2={id:Du,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ft,inputs:[I2],outputs:[],process:null,successCalls:[v2],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[b2],error:null,parent:A2},D2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:n.VariableInstance,entityId:OA},O2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:Au},P2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},w2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:n.VariableDeclaration,entityId:es},V2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Ru},C2={id:l2,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:w2,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[V2],parent:P2},VA={id:Ru,type:n.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:Yl,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[D2,O2],successCalls:[R2],errorCalls:[],error:null,index:0,parent:C2},B2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},_2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:es},M2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},g2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:es},N2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:DA},Ou={id:OA,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:g2,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[M2],calledBySuccess:[_2],successCalls:[VA],errorCalls:[],x:0,y:0,readsValue:N2,writesValues:[],internalCalls:[],parent:B2},L2={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:es};n.GenericReference,n.DataType;const U2={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:lo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:L2},$2={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},j2={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},G2={constant:!0,required:!0,id:es,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:U2,inputs:[],outputs:[],calledByError:[],calledByEntry:[j2],calledBySuccess:[],successCalls:[Ou],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:$2},F2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},x2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},S2={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,asType:!1,isList:!1,parent:F2},k2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:PA},Z2={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:x2},dataType:S2,readsValue:null,required:!0,index:0,parent:k2},q2={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:bu},J2={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},W2={type:n.ReturnStatement,id:PA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Z2],calledByError:[],calledByEntry:[],calledBySuccess:[q2],throws:null,x:0,y:0,parent:J2},z2={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"long-argument-map-id"},CA={type:n.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:bu},Y2={id:"long-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:g.Number,parent:z2},index:0,parent:CA},H2={type:n.GenericReference,id:"long-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},K2={type:n.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},X2={id:DA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:po,writesValues:[Ou],index:0,parent:CA},Q2={id:bu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ft,inputs:[Y2],outputs:[],process:X2,successCalls:[W2],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[K2],calledBySuccess:[],error:null,parent:H2},e4={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},t4={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Au},r4={id:"small-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:g.Number,parent:e4},index:0,parent:t4},i4={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},n4={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ur},a4={id:Au,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ft,inputs:[r4],outputs:[],process:null,successCalls:[VA],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[n4],calledBySuccess:[],error:null,parent:i4},s4={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},BA={id:ur,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[a4,G2,Ou,Q2],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:s4},o4={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},d4={id:"call-execution-abort-func-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:BA,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:o4},So="manual-hello-world-loop-func-decl-id",_A="manual-hello-world-loop-func-return-statement-id",jr="manual-hello-world-loop-id",ts="manual-hello-world-loop-body-id",Pu="manual-hello-world-loop-break-statement-id",rs="manual-hello-world-loop-current-iteration-number-output-map-id",wu="manual-hello-world-loop-previous-iterations-results-output-map-id",Vu="assembled-hello-world-text-output-id",l4="assembled-hello-world-list-output-id",is="iteration-number-is-equal-or-greater-than-10-condition-id",ko="join-hello-world-and-number-operation-id",Zo="append-string-to-list-operation-id",MA="hello-world-loop-output-map-id",u4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:n.ReturnStatement,entityId:_A},p4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},c4={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!0,asType:!1,parent:p4},f4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:n.OutputMap,entityId:MA},gA={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:n.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:c4,implements:null,readsValue:f4,required:!0,index:0,parent:u4},y4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:n.Loop,entityId:jr},h4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:So},m4={type:n.ReturnStatement,id:_A,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[gA],calledByError:[],calledByEntry:[],calledBySuccess:[y4],parent:h4,throws:null,x:0,y:0},v4={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:n.BreakStatement,entityId:Pu},NA={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:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:v4},T4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:rs},E4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:n.BreakStatement,entityId:Pu},LA={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:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:T4,required:!0,index:1,parent:E4},I4={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:is},A4={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},b4={type:n.BreakStatement,id:Pu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[NA,LA],calledByError:[],calledByEntry:[],calledBySuccess:[I4],parent:A4,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const R4={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Zo},D4={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:wu},UA={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tl,name:null,description:null,readsValue:D4,defaultValue:null,index:0,parent:R4},O4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Zo},P4={id:l4,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[NA],declaration:Oa,index:0,parent:O4},w4={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:n.Condition,entityId:is},V4={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Vu},C4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Zo},$A={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:El,name:null,description:null,readsValue:V4,defaultValue:null,index:1,parent:C4},B4={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:jr},_4={type:n.Operation,id:Zo,declaration:Zs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[UA,$A],outputs:[P4],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[w4],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:B4},M4={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},g4={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},N4={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,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:g4},L4={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Vu},jA={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:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:N4,readsValue:L4,required:!0,index:0,parent:M4},U4={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:is},$4={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},j4={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[jA],calledBySuccess:[],calledByError:[U4],calledByEntry:[],parent:$4,throws:null,x:0,y:0},G4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ts},F4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},x4={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:rs},GA={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:is},S4={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Wn.inputs[0],name:null,description:null,readsValue:x4,index:0,defaultValue:null,parent:GA},k4={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},Z4={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Wn.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:k4},parent:GA},q4={type:n.Condition,id:is,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wn,inputs:[S4,Z4],calledByError:[],calledByEntry:[G4],calledBySuccess:[],successCalls:[b4,_4],errorCalls:[j4],x:0,y:0,parent:F4},J4={type:n.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},W4={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:ko},z4={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ss,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:g.String,parent:J4,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:W4},Y4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:ko},H4={id:Vu,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[$A,jA],declaration:Oa,index:0,parent:Y4},K4={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ts},X4={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:rs},Q4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:ko},FA={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ks,name:null,description:null,readsValue:X4,defaultValue:null,index:1,parent:Q4},e$={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:jr},t$={type:n.Operation,id:ko,declaration:Pa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[z4,FA],outputs:[H4],process:null,calledByError:[],calledByEntry:[K4],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:e$},r$={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:wu,version:"1",entityType:n.ArgumentDeclaration},i$={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,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:r$},n$={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:ts,version:"1",entityType:n.FunctionDeclaration},a$={constant:!0,id:wu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:i$,implements:null,writesValues:[UA],index:1,parent:n$},s$={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:ts,version:"1",entityType:n.FunctionDeclaration},o$={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:rs,version:"1",entityType:n.ArgumentDeclaration};n.DataType;const d$={constant:!0,id:rs,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:Pl,defaultValue:null,dataType:null,writesValues:[FA,LA],index:0,parent:s$},l$={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:jr,version:"1",entityType:n.Loop},u$={id:ts,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[d$,a$],calls:[q4,t$],implements:Qs,collapsed:!1,private:!1,index:0,x:0,y:0,parent:l$},p$={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},xA={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:n.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:M.FixedReturns,index:0,parent:p$},c$={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:n.Loop,entityId:jr},f$={type:n.OutputMap,id:MA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:xA,writesValues:[gA],index:0,parent:c$},y$={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:So,version:"1",entityType:n.FunctionDeclaration},h$={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:So,version:"1",entityType:n.FunctionDeclaration},m$={id:jr,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xs,inputs:[],outputsDeclarations:[xA],outputs:[f$],body:u$,successCalls:[m4],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[h$],calledBySuccess:[],x:0,y:0,parent:y$},v$={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},SA={type:n.FunctionDeclaration,id:So,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[m$],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:v$},T$={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},E$={id:"call-hello-world-loop-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:SA,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:T$},si="company-dto-function-declaration-id",Cu="company-dto-func-declaration-argument-dcl-id",Gr="company-dto-function-company-variable-id",Oi="company-dto-function-company-dto-variable-id",na="iterate-over-employee-list-loop-id",kA="iterate-over-employee-list-loop-employee-dto-output-map-id",Bu="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",qo="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",ZA="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",qA="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",JA="iterate-over-employee-list-continue-statement-id",Jo="iterate-over-employee-list-loop-body-id",WA="company-dto-func-declaration-return-statement-id",zA="company-dto-func-declaration-return-decl-id",YA="company-dto-func-declaration-company-variable-id-output-map-id",HA="company-dto-func-declaration-company-variable-employess-output-map-id",KA="company-dto-func-declaration-company-variable-name-output-map-id",I$="company-dto-func-declaration-company-dto-variable-input-map-id",A$="company-dto-func-declaration-company-dto-variable-employess-input-map-id",b$="company-dto-func-declaration-company-dto-variable-name-input-map-id",Wo="company-dto-func-declaration-owner-variable-id",R$="company-dto-func-declaration-company-dto-variable-owner-input-map-id",XA="company-dto-func-declaration-company-variable-owner-output-map-id",QA="company-dto-func-declaration-owner-variable-id-output-map-id",zo="company-dto-func-declaration-bank-account-variable-id",D$="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",eb="company-dto-func-declaration-company-variable-bank-account-output-map-id",tb="company-dto-func-declaration-bank-account-variable-id-output-map-id",O$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:QA},P$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},rb={id:R$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:O$,parent:P$},w$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:tb},V$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},ib={id:D$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:w$,parent:V$},C$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:KA},B$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},nb={id:b$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:C$,parent:B$},_$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:kA},M$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},ab={id:A$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:_$,parent:M$},g$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:YA},N$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},sb={id:I$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:g$,parent:N$},L$={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:zA},U$={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,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:L$},$$={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:WA},j$={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Oi},ob={constant:!0,isError:!1,id:zA,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:U$,readsValue:j$,required:!0,index:0,parent:$$},G$={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Oi},F$={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si},db={type:n.ReturnStatement,id:WA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ob],calledByError:[],calledByEntry:[],calledBySuccess:[G$],throws:null,x:0,y:0,parent:F$},x$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si},S$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:zo},k$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:Wo},Z$={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:n.VariableDeclaration,entityId:na},_u={constant:!0,required:!0,id:Oi,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[S$,k$,Z$],successCalls:[db],errorCalls:[],readsValue:null,writesValues:[ob],inputs:[sb,nb,ib,rb,ab],outputs:[],internalCalls:[],parent:x$,x:0,y:0},pn="employee-dto-func-declaration-id",Mu="employee-dto-func-declaration-argument-dcl-id",lb="employee-dto-func-declaration-return-statement-id",ub="employee-dto-func-declaration-return-decl-id",cn="employee-dto-func-declaration-employee-variable-id",fn="employee-dto-func-declaration-employee-dto-variable-id",Yo="employee-dto-func-declaration-manager-variable-id",pb="employee-dto-func-declaration-employee-variable-id-output-map-id",cb="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",fb="employee-dto-func-declaration-employee-variable-department-output-map-id",yb="employee-dto-func-declaration-employee-variable-manager-output-map-id",hb="employee-dto-func-declaration-manager-variable-id-output-map-id",q$="employee-dto-func-declaration-employee-dto-variable-input-map-id",J$="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",W$="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",z$="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",Y$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:hb},H$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},mb={id:z$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:Y$,parent:H$},K$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:fb},X$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},vb={id:W$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:K$,parent:X$},Q$={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:cb},ej={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},Tb={id:J$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:Q$,parent:ej},tj={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:pb},rj={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},Eb={id:q$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:tj,parent:rj},ij={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:ub},nj={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,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:ij},aj={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:lb},sj={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fn},Ib={constant:!0,isError:!1,id:ub,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:nj,implements:null,readsValue:sj,required:!0,index:0,parent:aj},oj={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:fn},dj={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn},Ab={type:n.ReturnStatement,id:lb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ib],calledByError:[],calledByEntry:[],calledBySuccess:[oj],throws:null,x:0,y:0,parent:dj},lj={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn},uj={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Yo},pj={constant:!0,required:!0,id:fn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[uj],successCalls:[Ab],errorCalls:[],readsValue:null,writesValues:[Ib],inputs:[Eb,Tb,vb,mb],outputs:[],internalCalls:[],parent:lj,x:0,y:0},cj={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Yo},fj={id:hb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[mb],parent:cj},yj={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Yo},hj={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,asType:!1,isList:!1,parent:yj},mj={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:yb},vj={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn};n.GenericReference,n.VariableDeclaration;const bb={constant:!0,required:!0,id:Yo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:hj,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[pj],errorCalls:[],readsValue:mj,writesValues:[],inputs:[],outputs:[fj],internalCalls:[],parent:vj,x:0,y:0},Tj={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},Ej={id:yb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vr.properties[2],index:3,writesValues:[bb],parent:Tj},Ij={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},Aj={id:fb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vr.properties[0],index:2,writesValues:[vb],parent:Ij},bj={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},Rj={id:cb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:St.properties[1],index:1,writesValues:[Tb],parent:bj},Dj={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},Oj={id:pb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[Eb],parent:Dj},Pj={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:cn},wj={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,asType:!1,isList:!1,parent:Pj},Vj={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn},Cj={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Mu},Bj={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:pn},Rb={constant:!0,required:!0,id:cn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:wj,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[Bj],calledBySuccess:[],successCalls:[bb],errorCalls:[],readsValue:Cj,writesValues:[],inputs:[],outputs:[Oj,Rj,Aj,Ej],internalCalls:[],parent:Vj,x:0,y:0},_j={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Mu,version:"1",entityType:n.ArgumentDeclaration},Mj={type:n.DataType,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:vr,asType:!1,isList:!1,like:!1,inferred:!1,parent:_j},gj={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:pn,version:"1",entityType:n.FunctionDeclaration},Nj={constant:!0,type:n.ArgumentDeclaration,id:Mu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:Mj,index:0,writesValues:[Rb],parent:gj},Lj={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},gu={type:n.FunctionDeclaration,id:pn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[Nj],calls:[Rb],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:Lj},Uj={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:ZA,version:"1",entityType:n.ReturnDeclaration},$j={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,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:Uj},jj={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:qA,version:"1",entityType:n.OutputMap},Gj={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:JA,version:"1",entityType:n.ContinueStatement},Db={constant:!0,isError:!1,id:ZA,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:jj,dataType:$j,implements:null,required:!0,index:0,parent:Gj},Fj={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:qo,version:"1",entityType:n.FunctionCall},xj={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:na,version:"1",entityType:n.Loop},Sj={id:JA,type:n.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[Fj],outputs:[Db],throws:null,x:0,y:0,parent:xj},kj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:qo,version:"1",entityType:n.FunctionCall},Zj={id:qA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ab.outputs[0],writesValues:[Db],index:0,parent:kj},qj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Bu,version:"1",entityType:n.ArgumentDeclaration},Jj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:qo,version:"1",entityType:n.FunctionCall},Ob={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:gu.inputs[0],readsValue:qj,index:0,defaultValue:null,parent:Jj},Wj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},zj={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},Yj={id:qo,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gu,inputs:[Ob],process:null,outputs:[Zj],calledByError:[],calledByEntry:[Wj],calledBySuccess:[],successCalls:[Sj],errorCalls:[],error:null,x:0,y:0,parent:zj},Hj={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Bu,version:"1",entityType:n.ArgumentDeclaration},Kj={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,isList:!1,asType:!1,parent:Hj},Xj={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},Qj={constant:!0,id:Bu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:Kj,required:!0,implements:to,index:0,writesValues:[Ob],parent:Xj},eG={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:na,version:"1",entityType:n.Loop},tG={id:Jo,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Qj],calls:[Yj],implements:Ba,collapsed:!1,private:!1,index:0,x:0,y:0,parent:eG},rG={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:na,version:"1",entityType:n.Loop},iG={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:HA,version:"1",entityType:n.OutputMap},Pb={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:mi.inputs[0],defaultValue:null,readsValue:iG,index:0,parent:rG},nG={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:si,version:"1",entityType:n.FunctionDeclaration},aG={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:na,version:"1",entityType:n.Loop},sG={id:kA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.outputs[0],writesValues:[ab],index:0,parent:aG},oG={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},dG={id:na,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi,inputs:[Pb],successCalls:[_u],errorCalls:[],outputsDeclarations:[],outputs:[sG],body:tG,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[oG],error:null,x:0,y:0,parent:nG},lG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zo},uG={id:tb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[ib],parent:lG},pG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zo},cG={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,asType:!1,isList:!1,parent:pG},fG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:eb},yG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si};n.GenericReference,n.VariableDeclaration;const wb={constant:!0,required:!0,id:zo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:cG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[_u],errorCalls:[],readsValue:fG,writesValues:[],inputs:[],outputs:[uG],internalCalls:[],parent:yG,x:0,y:0},hG={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wo},mG={id:QA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:lr.properties[0],index:0,defaultValue:null,writesValues:[rb],parent:hG},vG={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wo},TG={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,asType:!1,isList:!1,parent:vG},EG={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:XA},IG={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si};n.GenericReference,n.VariableDeclaration;const Vb={constant:!0,required:!0,id:Wo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:TG,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[_u],errorCalls:[],readsValue:EG,writesValues:[],inputs:[],outputs:[mG],internalCalls:[],parent:IG,x:0,y:0},AG={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},bG={id:XA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tr.properties[2],index:4,writesValues:[Vb],parent:AG},RG={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},DG={id:eb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tr.properties[2],index:3,writesValues:[wb],parent:RG},OG={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},PG={id:KA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tr.properties[0],index:2,writesValues:[nb],parent:OG},wG={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},VG={id:HA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tr.properties[3],index:1,writesValues:[Pb],parent:wG},CG={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},BG={id:YA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[sb],parent:CG},_G={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Gr},MG={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,asType:!1,isList:!1,parent:_G},gG={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:si},NG={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Cu},LG={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:si},Cb={constant:!0,required:!0,id:Gr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:MG,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[LG],calledBySuccess:[],successCalls:[wb,Vb,dG],errorCalls:[],readsValue:NG,writesValues:[],inputs:[],outputs:[BG,VG,PG,DG,bG],internalCalls:[],parent:gG,x:0,y:0},UG={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Cu,version:"1",entityType:n.ArgumentDeclaration},$G={type:n.DataType,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:Tr,asType:!1,isList:!1,like:!1,inferred:!1,parent:UG},jG={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:si,version:"1",entityType:n.FunctionDeclaration},GG={constant:!0,type:n.ArgumentDeclaration,id:Cu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:$G,index:0,writesValues:[Cb],parent:jG},FG={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},Nu={type:n.FunctionDeclaration,id:si,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[GG],calls:[Cb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:FG},ns="exec-in-parallel-operation-call-id",as="exec-sequentially-operation-call-id",kt="concurrency-and-wait-function-declaration-id",Bb="concurrency-and-wait-return-statement-id",_b="concurrency-and-wait-return-declaration-id",Lu="exec-in-parallel-argument-map-id",Mb="exec-sequentially-argument-map-id",Uu="wait-for-2-seconds-operation-id",gb="wait-for-2-seconds-argument-map-id",$u="map-company-dto-function-call-id",Nb="map-company-dto-function-call-company-dto-output-map-id",Ho="company-dto-variable-one-id",ju="company-dto-variable-one-instance-id",Lb="company-dto-variable-two-id",xG={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:_b},SG={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,asType:!1,isList:!1,parent:xG},kG={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Bb},ZG={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lb},Ub={constant:!0,isError:!1,id:_b,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:SG,implements:null,readsValue:ZG,required:!0,index:0,parent:kG},qG={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Uu},JG={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},WG={type:n.ReturnStatement,id:Bb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ub],calledByError:[],calledByEntry:[],calledBySuccess:[qG],throws:null,x:0,y:0,parent:JG},zG={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:n.VariableInstance,entityId:ju},YG={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:n.VariableInstance,entityId:ju},HG={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},$b={constant:!0,required:!0,id:Lb,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[zG],internalCalls:[],writesValues:[Ub],readsValue:YG,x:0,y:0,parent:HG},KG={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ho},XG={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ho},QG={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},eF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ho},jb={id:ju,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eF,inputs:[],outputs:[],successCalls:[$b],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[KG],internalCalls:[],writesValues:[$b],readsValue:XG,x:0,y:0,parent:QG},tF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:n.FunctionCall,entityId:$u},rF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Nb},iF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},Gb={constant:!0,required:!0,id:Ho,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[jb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[tF],internalCalls:[],writesValues:[jb],readsValue:rF,x:0,y:0,parent:iF},Fb={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:n.FunctionCall,entityId:$u},nF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nu.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Fb},aF={id:Nb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:db.outputs[0],writesValues:[Gb],index:0,parent:Fb},sF={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:kt},oF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:kt},dF={id:$u,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nu,successCalls:[Gb],process:null,errorCalls:[],inputs:[nF],outputs:[aF],calledByError:[],calledByEntry:[sF],calledBySuccess:[],parent:oF,x:0,y:0,error:null},lF={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fu},uF={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fu},pF={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:_r,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:lF},cF={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:n.Project,entityId:ue},Gu={constant:!0,required:!0,id:fu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.Date,value:null,autogeneration:{type:yt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:uF},dataType:pF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:cF},fF={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:gb},yF={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Uu},hF={id:gb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:g.Number,parent:fF},index:0,parent:yF},mF={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},vF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:n.Operation,entityId:as},TF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:ns},xb={id:Uu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:br,inputs:[hF],outputs:[],process:null,successCalls:[WG],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[vF,TF],error:null,parent:mF},EF={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},IF={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:"wait-for-random-amount-id"},AF={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ki,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:yt.Random,rangeStart:1e3,rangeEnd:4e3},name:g.Number,parent:EF},index:0,parent:IF},bF={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},aa={id:"wait-for-random-amount-id",type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:br,inputs:[AF],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:bF},Fu="list-of-functions-variable-id",RF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},DF={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:RF},OF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},PF={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:OF},wF={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fu},VF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},CF={id:"list-of-functions-variable-action-descriptor-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[DF],error:null,outputs:[PF],parent:VF},BF={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fu},_F={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:CF,asType:!1,isList:!0,parent:wF},MF={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt};n.GenericReference,n.InputMap;const gF={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:n.InputMap,entityId:Mb},NF={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:n.InputMap,entityId:Lu},Sb={constant:!0,required:!0,id:Fu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:g.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[aa,aa,aa,aa,aa],autogeneration:null,parent:BF},dataType:_F,parent:MF,readsValue:null,writesValues:[gF,NF],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},LF={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:ns},UF={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},$F={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},jF={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:ns},kb={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gu,readsValue:$F,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[jF],successCalls:[],errorCalls:[],internalCalls:[],parent:UF,x:0,y:0},GF={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Al,writesValues:[kb],index:0,parent:LF},FF={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:ns},xF={id:Lu,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Il,name:null,description:null,readsValue:Sb,defaultValue:null,index:0,parent:FF},SF={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},kF={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},ZF={process:null,id:ns,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:br,inputs:[xF],outputs:[GF],successCalls:[xb,kb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[kF],calledBySuccess:[],error:null,parent:SF},qF={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:as},JF={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},WF={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},zF={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:as},Zb={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gu,readsValue:WF,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[zF],successCalls:[],errorCalls:[],internalCalls:[],parent:JF,x:0,y:0},YF={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Rl,writesValues:[Zb],index:0,parent:qF},HF={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:as},KF={id:Mb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:bl,name:null,description:null,readsValue:Sb,defaultValue:null,index:0,parent:HF},XF={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},QF={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:kt},ex={id:as,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ti,inputs:[KF],process:null,outputs:[YF],successCalls:[xb,Zb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[QF],calledBySuccess:[],error:null,parent:XF},tx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},rx={type:n.FunctionDeclaration,id:kt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:[ex,ZF,dF],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:tx},ix={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},nx={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Tr,isList:!1,asType:!1,parent:ix},ax={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},sx={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:nx,readsValue:null,required:!0,index:0,parent:ax},ox={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},dx={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},lx={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[sx],calledByError:[],calledByEntry:[dx],calledBySuccess:[],throws:null,x:0,y:0,parent:ox},ux={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:n.Project,entityId:ue},px={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Create new company",description:null,inputs:[],calls:[lx],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:ux},xu="get-current-date-and-time-func-decl-id",qb="get-current-date-and-time-return-statement-id",Su="get-current-date-and-time-return-declaration-id",cx="get-current-date-and-time-return-declaration-data-type-id",fx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Su},yx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Su},hx={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:cx,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:_r,asType:!1,isList:!1,like:!1,inferred:!1,parent:yx},mx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:qb};n.ReturnDeclaration,n.LiteralValue,g.Date,yt.CurrentDateAndTime;const vx={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:xu},Tx={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:xu};n.ReturnStatement;const Ex={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},Ix={type:n.FunctionDeclaration,id:xu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Ex},Ax={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},bx={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:Ax},Rx={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Dx={type:n.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Ox={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Jb={constant:!0,required:!0,type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",dataType:bx,description:null,defaultValue:null,readsValue:Ox,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Dx],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Rx},Px={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},wx={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Vx={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},Cx={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:Vx},Bx={type:n.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Wb={constant:!0,required:!0,type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Bx],successCalls:[],errorCalls:[],dataType:Cx,readsValue:wx,writesValues:[],internalCalls:[],parent:Px,x:0,y:0},zb="do-math-return-statement-id",ku="do-math-return-declaration-id",_x={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},Mx={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,asType:!1,isList:!1,parent:_x},gx={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Nx={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:ku},Lx={constant:!0,required:!0,type:n.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,name:"Fixed result",defaultValue:null,dataType:Mx,readsValue:null,writesValues:[Nx],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:gx},Ux={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:n.ReturnStatement,entityId:zb},$x={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:n.ReturnDeclaration,entityId:ku},jx={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:$x},Gx={constant:!0,isError:!1,id:ku,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:jx,readsValue:Lx,required:!0,index:0,parent:Ux},Fx={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},xx={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Sx={type:n.ReturnStatement,id:zb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Gx],calledByError:[],calledByEntry:[],calledBySuccess:[Fx],parent:xx,throws:null,x:0,y:0},Yb={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},kx={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Zx={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},qx={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Hb={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ol,name:null,description:null,readsValue:qx,defaultValue:null,index:0,parent:Zx},Jx={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ul,writesValues:[Jb,Wb],index:0,parent:kx},Wx={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},zx={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Kb={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:dl,name:null,description:null,readsValue:zx,defaultValue:null,index:1,parent:Wx},Yx={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:xs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Hb,Kb],outputs:[Jx],calledByError:[],calledByEntry:[Yb],calledBySuccess:[],process:null,successCalls:[Sx,Jb,Wb],errorCalls:[],parent:Yb,error:null,x:0,y:0},Hx={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Kx={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:n.ArgumentDeclaration},Xb={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:Kx},Xx={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},Qx={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},eS={type:n.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Qb={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:g.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Hx},dataType:Xb,inputs:[],outputs:[],calledByError:[],calledByEntry:[eS],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Xx,writesValues:[Kb],internalCalls:[],x:0,y:0,parent:Qx},tS={version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},rS={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:"The number to add",defaultValue:null,dataType:Xb,implements:null,writesValues:[Qb],required:!0,index:1,parent:tS},iS={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:n.Project,entityId:ue},nS={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},aS={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:n.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},sS={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:n.ArgumentDeclaration},oS={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:sS},dS={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:oS,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:g.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:aS},writesValues:[Hb],required:!0,index:0,parent:nS},lS={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Do math",description:"This function does math",inputs:[dS,rS],calls:[Yx,Qb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:iS},Zt="replace-bank-account-in-company-func-declaration-id",Zu="company-entity-to-modify-arg-declaration-id",qu="account-number-to-create-arg-decl-id",sa="company-main-variable-id",oa="search-person-by-id-id",eR="new-bank-account-owner-arg-decl-id",tR="search-person-by-id-output-declaration-id",Ju="search-person-by-id-output-entity-map-id",ss="person-not-empty-condition-id",Ko="create-new-bank-account-instance-operation-id",rR="create-new-bank-account-instance-operation-output-entity-map-id",iR="company-bank-account-output-map-id",Wu="old-bank-account-var-declaration-id",nR="old-bank-account-var-instance-id",aR="company-variable-instance-id",zu="delete-bank-account-internal-call-id",os="new-bank-account-data-variable-declaration-id",uS={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},pS={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:n.InternalCall,entityId:zu},cS={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},fS={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:aR},yS={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:rR},sR={type:n.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:yS,declaration:Eu,name:null,description:null,index:0,defaultValue:null,parent:fS},hS={type:n.VariableInstance,id:aR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cS,inputs:[sR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[pS],successCalls:[],errorCalls:[],internalCalls:[],parent:uS,readsValue:null,writesValues:[],x:0,y:0},mS={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},vS={type:n.DataType,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:ta,asType:!1,isList:!1,like:!1,inferred:!1,parent:mS},TS={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:iR},ES={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},IS={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},AS={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Ko};n.GenericReference,n.VariableInstance;const bS={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},RS={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},DS={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},OS={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:n.InternalCall,entityId:zu},PS={type:n.VariableInstance,id:nR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:RS,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[OS],errorCalls:[],parent:DS,readsValue:null,writesValues:[],x:0,y:0},oR={process:null,type:n.InternalCall,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wl,index:0,successCalls:[hS],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[AS,bS],parent:PS},dR={constant:!0,required:!0,type:n.VariableDeclaration,id:Wu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:vS,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[IS],successCalls:[oR],internalCalls:[],errorCalls:[],parent:ES,readsValue:TS,writesValues:[],x:0,y:0},wS={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},VS={type:n.DataType,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:Tr,asType:!1,isList:!1,like:!1,inferred:!1,parent:wS},CS={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Zu},BS={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},_S={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},MS={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:sa},gS={id:iR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Eu,index:0,parent:MS,writesValues:[dR]},lR={constant:!0,required:!0,type:n.VariableDeclaration,id:sa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:VS,inputs:[],outputs:[gS],calledByError:[],calledByEntry:[_S],calledBySuccess:[],successCalls:[dR],errorCalls:[],parent:BS,internalCalls:[],readsValue:CS,writesValues:[],x:0,y:0},NS={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:os},LS={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.OutputMap,entityId:Ju},uR={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:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:LS,index:1,defaultValue:null,parent:NS},US={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:qu},$S={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:os},pR={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:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:US,defaultValue:null,index:0,parent:$S},cR={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},jS={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:n.InputMap,declaration:Xi.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:n.LiteralValue,name:g.EntityTemplate,value:null,valueAsTypeSingle:ta,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:n.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:n.GenericReference}},parent:cR},GS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:os},fR={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:n.InputMap,declaration:Xi.inputs[1],name:null,description:null,index:1,readsValue:GS,defaultValue:null,parent:cR},FS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},xS={id:rR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Xi.outputs[0],index:0,writesValues:[sR],parent:FS},SS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ss},kS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:os},ZS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},yR={process:null,id:Ko,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xi,inputs:[jS,fR],error:null,outputs:[xS],successCalls:[oR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[kS,SS],parent:ZS,x:0,y:0},qS={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},JS={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ss},WS={constant:!0,required:!0,id:os,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[pR,uR],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[fR],successCalls:[yR],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[JS],calledByEntry:[],x:0,y:0,parent:qS},zS={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},YS={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},HS={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:YS},KS={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:n.ReturnStatement},XS={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:HS,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:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:g.String,parent:zS,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:KS,implements:null,required:!0,index:0,readsValue:null},QS={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ss,version:"1",entityType:n.Condition},ek={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:Zt,version:"1",entityType:n.FunctionDeclaration},tk={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:XS,outputs:[],calledBySuccess:[],calledByError:[QS],calledByEntry:[],x:0,y:0,parent:ek},rk={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:n.Search,entityId:oa},ik={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},nk={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ju},ak={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:ss},hR={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:an.inputs[0],name:null,description:null,readsValue:nk,index:0,defaultValue:null,parent:ak},sk={type:n.Condition,id:ss,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:an,inputs:[hR],calledByError:[],calledByEntry:[],calledBySuccess:[rk],successCalls:[WS,yR],errorCalls:[tk],x:0,y:0,parent:ik},ok={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:n.ValueDescriptor,entityId:tR},dk={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:St,parent:ok},lk={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:oa},mR={id:tR,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:dk,name:"Found person",description:"The person entity that was found",parent:lk,required:!0,index:0},uk={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:n.Search,entityId:oa},pk={type:n.OutputMap,id:Ju,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mR,parent:uk,writesValues:[hR,uR],index:0},ck={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:n.ArgumentDeclaration};n.DataType;const fk={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:oa},vR={id:"search-person-by-id-input-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:M.FixedArguments,index:0,required:!0,parent:fk},yk={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:n.Search,entityId:oa},hk={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:eR,version:"1",entityType:n.ArgumentDeclaration},TR={type:n.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:vR,name:null,description:null,readsValue:hk,defaultValue:null,parent:yk,index:0},mk="SELECT * FROM Person WHERE id = your_id;",vk={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},Tk={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Zt},Ek={type:n.Search,id:oa,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:mk,inputsDeclarations:[vR],inputs:[TR],outputsDeclarations:[mR],outputs:[pk],calledByError:[],calledByEntry:[Tk],calledBySuccess:[],error:null,successCalls:[sk],errorCalls:[],parent:vk,x:0,y:0};n.GenericReference,n.DataType;const Ik={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:qu,version:"1",entityType:n.ArgumentDeclaration},Ak={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ne,isList:!1,asType:!1,parent:Ik},bk={version:"1",entityType:n.FunctionDeclaration,entityId:Zt,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},Rk={constant:!0,id:qu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:Ak,implements:null,writesValues:[pR],required:!0,index:1,parent:bk};n.GenericReference,n.DataType;const Dk={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:n.ArgumentDeclaration},Ok={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Qr,isList:!1,asType:!1,parent:Dk},Pk={version:"1",entityType:n.FunctionDeclaration,entityId:Zt,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},wk={constant:!0,id:eR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:Ok,implements:null,writesValues:[TR],required:!1,index:1,parent:Pk},Vk={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:n.Project,entityId:ue},Ck={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Zt};n.GenericReference,n.DataType;const Bk={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Zu,version:"1",entityType:n.ArgumentDeclaration},_k={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:me,isList:!1,asType:!1,parent:Bk},Mk={constant:!0,id:Zu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:_k,implements:null,description:"The company to replace the bank account for",writesValues:[lR],required:!0,index:0,parent:Ck},gk={type:n.FunctionDeclaration,id:Zt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:[Mk,Rk,wk],index:null,implements:null,calls:[Ek,lR],collapsed:!1,private:!1,x:0,y:0,parent:Vk},Nk={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},Lk={type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:Nk,x:0,y:0},Uk={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:n.Project,entityId:ue},$k={type:n.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[Lk],events:[],implements:null,parent:Uk,x:0,y:0},Yu="global-counted-test-loop-id",ER="global-counted-test-loop-body-id",IR="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",jk={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:IR,version:"1",entityType:n.ArgumentDeclaration},Gk={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:jk},Fk={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ER,version:"1",entityType:n.FunctionDeclaration},xk={constant:!0,id:IR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:Gk,implements:Nl,required:!0,index:0,writesValues:[],parent:Fk},Sk={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Yu,version:"1",entityType:n.Loop},kk={id:ER,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[xk],calls:[],implements:ro,collapsed:!1,private:!1,index:0,x:0,y:0,parent:Sk},da="random-company-employee-test-variable-id",Hu="manager-global-variable-id",AR="global-user-instance-id",Fr="employee-mapped-dto-variable-id",yn="employee-mapped-dto-variable-instance-id",bR="random-employee-id-output-map-id",RR="random-employee-birth-date-output-map-id",DR="random-employee-department-output-map-id",OR="random-employee-manager-output-map-id",PR="manager-global-id-output-map-id",wR="global-user-instance-id-output-map-id",Zk="employee-mapped-dto-requester-id-input-map-id",VR="employee-mapped-dto-now-timestamp-input-map-id",qk="employee-mapped-dto-id-input-map-id",Jk="employee-mapped-dto-birth-date-input-map-id",Wk="employee-mapped-dto-department-input-map-id",zk="employee-mapped-dto-manager-input-map-id",Yk={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:Yu,version:"1",entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const Hk={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:_a.inputs[0],defaultValue:null,readsValue:null,index:0,parent:Yk},Kk={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},Xk={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:yn,version:"1",entityType:n.VariableDeclaration},CR={id:Yu,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_a,inputs:[Hk],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:kk,calledByError:[],calledByEntry:[],calledBySuccess:[Xk],error:null,x:0,y:0,parent:Kk},Ku="global-object-keys-test-loop-id",BR="global-object-keys-test-loop-body-id",_R="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",Qk={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:_R,version:"1",entityType:n.ArgumentDeclaration},e8={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:Qk},t8={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:BR,version:"1",entityType:n.FunctionDeclaration},r8={constant:!0,id:_R,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:e8,implements:Cl,required:!0,index:0,writesValues:[],parent:t8},i8={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Ku,version:"1",entityType:n.Loop},n8={id:BR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[r8],calls:[],implements:xn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:i8},a8={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Ku,version:"1",entityType:n.Loop},s8={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Fr,version:"1",entityType:n.VariableDeclaration},MR={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:xn.inputs[0],defaultValue:null,readsValue:s8,index:0,parent:a8},o8={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},d8={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:yn,version:"1",entityType:n.VariableDeclaration},l8={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:Fr,version:"1",entityType:n.VariableDeclaration},Xu={id:Ku,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xn,inputs:[MR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:n8,calledByError:[],calledByEntry:[],calledBySuccess:[l8,d8],error:null,x:0,y:0,parent:o8},Qu="global-object-values-test-loop-id",gR="global-object-values-test-loop-body-id",NR="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",u8={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:NR,version:"1",entityType:n.ArgumentDeclaration},p8={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:u8},c8={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:gR,version:"1",entityType:n.FunctionDeclaration},f8={constant:!0,id:NR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:p8,implements:_l,required:!0,index:0,writesValues:[],parent:c8},y8={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Qu,version:"1",entityType:n.Loop},h8={id:gR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[f8],calls:[],implements:Sn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:y8},m8={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Qu,version:"1",entityType:n.Loop},v8={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:yn,version:"1",entityType:n.VariableDeclaration},LR={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Sn.inputs[0],defaultValue:null,readsValue:v8,index:0,parent:m8},T8={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},E8={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:yn,version:"1",entityType:n.VariableInstance},UR={id:Qu,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sn,inputs:[LR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:h8,calledByError:[],calledByEntry:[],calledBySuccess:[E8],error:null,x:0,y:0,parent:T8},ep="global-test-iterate-over-string-loop-id",tp="global-test-iterate-over-string-loop-body-id",Xo="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",$R="global-test-iterate-over-string-loop-iteration-list-input-map-id",I8={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Xo,version:"1",entityType:n.ArgumentDeclaration},A8={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:I8},b8={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:tp,version:"1",entityType:n.FunctionDeclaration},R8={constant:!0,id:Xo,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:A8,implements:wl,required:!0,index:1,writesValues:[],parent:b8},D8={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Xo,version:"1",entityType:n.ArgumentDeclaration},O8={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:D8},P8={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:tp,version:"1",entityType:n.FunctionDeclaration},w8={constant:!0,id:Xo,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:O8,implements:Vl,required:!0,index:0,writesValues:[],parent:P8},V8={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:ep,version:"1",entityType:n.Loop},C8={id:tp,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[w8,R8],calls:[],implements:eo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:V8},B8={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:ep,version:"1",entityType:n.Loop},_8={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:$R,version:"1",entityType:n.InputMap},M8={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.LiteralValue,name:g.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:yt.Random,rangeStart:4,rangeEnd:5},parent:_8},g8={id:$R,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ca.inputs[0],defaultValue:M8,readsValue:null,index:0,parent:B8},N8={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},L8={id:ep,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ca,inputs:[g8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:C8,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:N8},rp="iterate-over-list-loop-id",jR="iterate-over-list-loop-body-id",GR="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",U8={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:GR,version:"1",entityType:n.ArgumentDeclaration},$8={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,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:U8},j8={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:jR,version:"1",entityType:n.FunctionDeclaration},G8={constant:!0,id:GR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:$8,implements:to,required:!0,index:0,writesValues:[],parent:j8},F8={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:rp,version:"1",entityType:n.Loop},x8={id:jR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[G8],calls:[],implements:Ba,collapsed:!1,private:!1,index:0,x:0,y:0,parent:F8},S8={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:rp,version:"1",entityType:n.Loop},k8={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:mi.inputs[0],defaultValue:null,readsValue:null,index:0,parent:S8},Z8={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},q8={id:rp,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi,inputs:[k8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:x8,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:Z8},J8=`SELECT
|
|
2
2
|
Employee.identifier AS EmployeeID,
|
|
3
3
|
Employee.startDate AS startDate,
|
|
4
4
|
User.identifier AS userID,
|
|
@@ -21,7 +21,7 @@ WHERE
|
|
|
21
21
|
AND Employee.manager IS NOT NULL
|
|
22
22
|
OR (Employee.manager = User.identifier AND User.identifier IS NOT NULL)
|
|
23
23
|
ORDER BY Employee.startDate DESC, Employee.department ASC
|
|
24
|
-
LIMIT 10 OFFSET 0;`,W8={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},z8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},FR={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"companies",description:"List of companies with multiple employees and an existing bank account",defaultValue:null,dataType:null,required:!0,parentRelationType:M.FixedReturns,index:0,parent:z8},Y8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},H8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:FR,writesValues:[],index:0,parent:Y8},K8={id:"find-companies-with-multiple-employees-and-bank-account",type:n.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:[FR],inputs:[],outputs:[H8],query:J8,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:W8},X8={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:PR},Q8={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},xR={id:zk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:X8,parent:Q8},e9={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:DR},t9={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},SR={id:Wk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:e9,parent:t9},r9={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:RR},i9={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},kR={id:Jk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:r9,parent:i9},n9={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bR},a9={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},ZR={id:qk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:n9,parent:a9},s9={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:wR},o9={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},qR={id:Zk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:s9,parent:o9},d9={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Hu},l9={id:PR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:lr.properties[0],defaultValue:null,index:0,writesValues:[xR],parent:d9},u9={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Hu},p9={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,asType:!1,isList:!1,parent:u9},c9={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:OR},f9={type:n.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},JR={constant:!0,required:!0,id:Hu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",dataType:p9,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:c9,writesValues:[],inputs:[],outputs:[l9],internalCalls:[],parent:f9,x:0,y:0},y9={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},h9={id:OR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vr.properties[2],index:3,writesValues:[JR],parent:y9},m9={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},v9={id:DR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vr.properties[0],index:2,writesValues:[SR],parent:m9},T9={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},E9={id:RR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:St.properties[1],index:1,writesValues:[kR],parent:T9},I9={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},A9={id:bR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[ZR],parent:I9},b9={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},R9={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,asType:!1,isList:!1,parent:b9},D9={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},O9={constant:!0,required:!0,id:da,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:R9,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[A9,E9,v9,h9],internalCalls:[],parent:D9,x:0,y:0},P9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:VR},w9={type:n.LiteralValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:g.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsTypeList:null,valueAsTypeSingle:null,value:null,autogeneration:{type:yt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:P9},V9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:yn},C9={id:VR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:w9,index:5,readsValue:null,parent:V9},B9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},_9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},M9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},g9={id:yn,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:B9,calledByError:[],calledByEntry:[],calledBySuccess:[_9],successCalls:[Xu,UR,CR],errorCalls:[],readsValue:null,writesValues:[LR],inputs:[C9],outputs:[],internalCalls:[],parent:M9,x:0,y:0},N9={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},L9={constant:!0,required:!0,id:Fr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Xu,g9],errorCalls:[],readsValue:null,writesValues:[MR],inputs:[qR,ZR,kR,SR,xR],outputs:[],internalCalls:[],parent:N9,x:0,y:0},U9={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:n.VariableDeclaration,entityId:ZI},$9={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:mu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:U9},j9={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:n.Project,entityId:ue},WR={constant:!0,required:!0,id:ZI,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current user",description:"The user that is currently logged in",defaultValue:null,dataType:$9,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:j9},G9={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:AR},F9={id:wR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[qR],parent:G9},x9={type:n.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},S9={id:AR,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:WR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[F9],internalCalls:[],parent:x9,x:0,y:0},k9={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},Z9={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},q9={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Kr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:k9},J9={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:n.Project,entityId:ue},zR={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:g.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:n.LiteralValue,autogeneration:{type:yt.Random,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:Z9},dataType:q9,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:J9},W9={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},z9={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:zR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:W9,x:0,y:0},ip={type:n.Project,id:ue,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:[$k],entities:[hu,lr,mu,St,CU,vr,Go,oA,dA,ta,dL,Tr,rU,yu,RC,fU,sL],functions:[rx,BA,gu,px,Ix,SA,Nu,Iu,gk,vA,lS],events:[d2],variableDeclarations:[zR,WR,Gu,O9,JR,L9],variableInstances:[z9,S9],conditions:[],operations:[aa],functionCalls:[d4,E$],loops:[q8,Xu,UR,L8,CR],searches:[K8]};var YR={exports:{}};(function(i,s){(function(e,t){i.exports=t()})(Ww,function(){var e=1e3,t=6e4,r=36e5,a="millisecond",d="second",o="minute",l="hour",u="day",h="week",c="month",v="quarter",E="year",O="date",w="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|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,G={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(he){var te=["th","st","nd","rd"],z=he%100;return"["+he+(te[(z-20)%10]||te[z]||te[0])+"]"}},_=function(he,te,z){var de=String(he);return!de||de.length>=te?he:""+Array(te+1-de.length).join(z)+he},$={s:_,z:function(he){var te=-he.utcOffset(),z=Math.abs(te),de=Math.floor(z/60),Q=z%60;return(te<=0?"+":"-")+_(de,2,"0")+":"+_(Q,2,"0")},m:function he(te,z){if(te.date()<z.date())return-he(z,te);var de=12*(z.year()-te.year())+(z.month()-te.month()),Q=te.clone().add(de,c),Ue=z-Q<0,$e=te.clone().add(de+(Ue?-1:1),c);return+(-(de+(z-Q)/(Ue?Q-$e:$e-Q))||0)},a:function(he){return he<0?Math.ceil(he)||0:Math.floor(he)},p:function(he){return{M:c,y:E,w:h,d:u,D:O,h:l,m:o,s:d,ms:a,Q:v}[he]||String(he||"").toLowerCase().replace(/s$/,"")},u:function(he){return he===void 0}},k="en",J={};J[k]=G;var ee="$isDayjsObject",pe=function(he){return he instanceof Ht||!(!he||!he[ee])},Te=function he(te,z,de){var Q;if(!te)return k;if(typeof te=="string"){var Ue=te.toLowerCase();J[Ue]&&(Q=Ue),z&&(J[Ue]=z,Q=Ue);var $e=te.split("-");if(!Q&&$e.length>1)return he($e[0])}else{var ut=te.name;J[ut]=te,Q=ut}return!de&&Q&&(k=Q),Q||!de&&k},K=function(he,te){if(pe(he))return he.clone();var z=typeof te=="object"?te:{};return z.date=he,z.args=arguments,new Ht(z)},se=$;se.l=Te,se.i=pe,se.w=function(he,te){return K(he,{locale:te.$L,utc:te.$u,x:te.$x,$offset:te.$offset})};var Ht=function(){function he(z){this.$L=Te(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[ee]=!0}var te=he.prototype;return te.parse=function(z){this.$d=function(de){var Q=de.date,Ue=de.utc;if(Q===null)return new Date(NaN);if(se.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var $e=Q.match(C);if($e){var ut=$e[2]-1||0,It=($e[7]||"0").substring(0,3);return Ue?new Date(Date.UTC($e[1],ut,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,It)):new Date($e[1],ut,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,It)}}return new Date(Q)}(z),this.init()},te.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},te.$utils=function(){return se},te.isValid=function(){return this.$d.toString()!==w},te.isSame=function(z,de){var Q=K(z);return this.startOf(de)<=Q&&Q<=this.endOf(de)},te.isAfter=function(z,de){return K(z)<this.startOf(de)},te.isBefore=function(z,de){return this.endOf(de)<K(z)},te.$g=function(z,de,Q){return se.u(z)?this[de]:this.set(Q,z)},te.unix=function(){return Math.floor(this.valueOf()/1e3)},te.valueOf=function(){return this.$d.getTime()},te.startOf=function(z,de){var Q=this,Ue=!!se.u(de)||de,$e=se.p(z),ut=function(Ln,sr){var Hi=se.w(Q.$u?Date.UTC(Q.$y,sr,Ln):new Date(Q.$y,sr,Ln),Q);return Ue?Hi:Hi.endOf(u)},It=function(Ln,sr){return se.w(Q.toDate()[Ln].apply(Q.toDate("s"),(Ue?[0,0,0,0]:[23,59,59,999]).slice(sr)),Q)},Vt=this.$W,Gt=this.$M,Ar=this.$D,Da="set"+(this.$u?"UTC":"");switch($e){case E:return Ue?ut(1,0):ut(31,11);case c:return Ue?ut(1,Gt):ut(0,Gt+1);case h:var Nn=this.$locale().weekStart||0,Us=(Vt<Nn?Vt+7:Vt)-Nn;return ut(Ue?Ar-Us:Ar+(6-Us),Gt);case u:case O:return It(Da+"Hours",0);case l:return It(Da+"Minutes",1);case o:return It(Da+"Seconds",2);case d:return It(Da+"Milliseconds",3);default:return this.clone()}},te.endOf=function(z){return this.startOf(z,!1)},te.$set=function(z,de){var Q,Ue=se.p(z),$e="set"+(this.$u?"UTC":""),ut=(Q={},Q[u]=$e+"Date",Q[O]=$e+"Date",Q[c]=$e+"Month",Q[E]=$e+"FullYear",Q[l]=$e+"Hours",Q[o]=$e+"Minutes",Q[d]=$e+"Seconds",Q[a]=$e+"Milliseconds",Q)[Ue],It=Ue===u?this.$D+(de-this.$W):de;if(Ue===c||Ue===E){var Vt=this.clone().set(O,1);Vt.$d[ut](It),Vt.init(),this.$d=Vt.set(O,Math.min(this.$D,Vt.daysInMonth())).$d}else ut&&this.$d[ut](It);return this.init(),this},te.set=function(z,de){return this.clone().$set(z,de)},te.get=function(z){return this[se.p(z)]()},te.add=function(z,de){var Q,Ue=this;z=Number(z);var $e=se.p(de),ut=function(Gt){var Ar=K(Ue);return se.w(Ar.date(Ar.date()+Math.round(Gt*z)),Ue)};if($e===c)return this.set(c,this.$M+z);if($e===E)return this.set(E,this.$y+z);if($e===u)return ut(1);if($e===h)return ut(7);var It=(Q={},Q[o]=t,Q[l]=r,Q[d]=e,Q)[$e]||1,Vt=this.$d.getTime()+z*It;return se.w(Vt,this)},te.subtract=function(z,de){return this.add(-1*z,de)},te.format=function(z){var de=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||w;var Ue=z||"YYYY-MM-DDTHH:mm:ssZ",$e=se.z(this),ut=this.$H,It=this.$m,Vt=this.$M,Gt=Q.weekdays,Ar=Q.months,Da=Q.meridiem,Nn=function(sr,Hi,$s,il){return sr&&(sr[Hi]||sr(de,Ue))||$s[Hi].slice(0,il)},Us=function(sr){return se.s(ut%12||12,sr,"0")},Ln=Da||function(sr,Hi,$s){var il=sr<12?"AM":"PM";return $s?il.toLowerCase():il};return Ue.replace(U,function(sr,Hi){return Hi||function($s){switch($s){case"YY":return String(de.$y).slice(-2);case"YYYY":return se.s(de.$y,4,"0");case"M":return Vt+1;case"MM":return se.s(Vt+1,2,"0");case"MMM":return Nn(Q.monthsShort,Vt,Ar,3);case"MMMM":return Nn(Ar,Vt);case"D":return de.$D;case"DD":return se.s(de.$D,2,"0");case"d":return String(de.$W);case"dd":return Nn(Q.weekdaysMin,de.$W,Gt,2);case"ddd":return Nn(Q.weekdaysShort,de.$W,Gt,3);case"dddd":return Gt[de.$W];case"H":return String(ut);case"HH":return se.s(ut,2,"0");case"h":return Us(1);case"hh":return Us(2);case"a":return Ln(ut,It,!0);case"A":return Ln(ut,It,!1);case"m":return String(It);case"mm":return se.s(It,2,"0");case"s":return String(de.$s);case"ss":return se.s(de.$s,2,"0");case"SSS":return se.s(de.$ms,3,"0");case"Z":return $e}return null}(sr)||$e.replace(":","")})},te.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},te.diff=function(z,de,Q){var Ue,$e=this,ut=se.p(de),It=K(z),Vt=(It.utcOffset()-this.utcOffset())*t,Gt=this-It,Ar=function(){return se.m($e,It)};switch(ut){case E:Ue=Ar()/12;break;case c:Ue=Ar();break;case v:Ue=Ar()/3;break;case h:Ue=(Gt-Vt)/6048e5;break;case u:Ue=(Gt-Vt)/864e5;break;case l:Ue=Gt/r;break;case o:Ue=Gt/t;break;case d:Ue=Gt/e;break;default:Ue=Gt}return Q?Ue:se.a(Ue)},te.daysInMonth=function(){return this.endOf(c).$D},te.$locale=function(){return J[this.$L]},te.locale=function(z,de){if(!z)return this.$L;var Q=this.clone(),Ue=Te(z,de,!0);return Ue&&(Q.$L=Ue),Q},te.clone=function(){return se.w(this.$d,this)},te.toDate=function(){return new Date(this.valueOf())},te.toJSON=function(){return this.isValid()?this.toISOString():null},te.toISOString=function(){return this.$d.toISOString()},te.toString=function(){return this.$d.toUTCString()},he}(),Yr=Ht.prototype;return K.prototype=Yr,[["$ms",a],["$s",d],["$m",o],["$H",l],["$W",u],["$M",c],["$y",E],["$D",O]].forEach(function(he){Yr[he[1]]=function(te){return this.$g(te,he[0],he[1])}}),K.extend=function(he,te){return he.$i||(he(te,Ht,K),he.$i=!0),K},K.locale=Te,K.isDayjs=pe,K.unix=function(he){return K(1e3*he)},K.en=J[k],K.Ls=J,K.p={},K})})(YR);var Y9=YR.exports;const T=AI(Y9);var D=(i=>(i.Error="error",i.Warning="warning",i))(D||{}),j=(i=>(i.InvalidObjectStructure="invalid-object-structure",i.NameNotUniqueInScope="name-not-unique-in-scope",i.EmptyName="empty-name",i.MissingCaller="missing-caller",i.PropertyOverwrite="property-overwrite",i.MethodOverwrite="method-overwrite",i.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",i.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",i.UnreachableEntity="unreachable-entity",i.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",i.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",i.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",i.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",i.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",i))(j||{}),A=(i=>(i.RootReference="root-reference",i.ReferencedEntityNotFound="referenced-entity-not-found",i.EntityIdNotUnique="entity-id-not-unique",i.BuiltInEntityGenerated="built-in-entity-generated",i.BuiltInEntityUpdated="built-in-entity-updated",i.BuiltInEntityDeleted="built-in-entity-deleted",i.UnknownEntityType="unknown-entity-type",i.MissingTypeProperty="missing-type-property",i.MissingIdProperty="missing-id-property",i.BuiltInEntityParent="built-in-entity-parent",i.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",i.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",i.RecommendedImplementOperationAction="recommended-implement-operation-action",i.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",i.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",i.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",i.RecommendedImplementConditionAction="recommended-implement-condition-action",i.InvalidReferenceObjectStructure="invalid-reference-object-structure",i.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",i.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",i.InvalidParentReference="invalid-parent-reference",i.InvalidImplementsReference="invalid-implements-reference",i.InvalidExtendsReference="invalid-extends-reference",i.InvalidGenerationActionPayload="invalid-generation-action-payload",i.InvalidReference="invalid-reference",i.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",i.InvalidUpdateEntityOperation="invalid-update-entity-operation",i.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",i.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",i.UnrecognizedProperty="unrecognized-property",i.SelfReference="self-reference",i.DuplicateReference="duplicate-reference",i.CallerWithIncompatibleScope="caller-with-incompatible-scope",i.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",i.InvalidInputMapDeclaration="invalid-input-map-declaration",i.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",i.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",i.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",i.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",i.OutputOverwrite="output-overwrite",i.InputOverwrite="input-overwrite",i.IncompatibleScope="incompatible-scope",i.InvalidParentUpdate="invalid-parent-update",i.NonInteractiveEntityReferenced="non-interactive-entity-referenced",i.InvalidParentRelationType="invalid-parent-relation-type",i))(A||{}),q=(i=>(i.NoPrimaryKeyProperty="no-primary-key-property",i.ScopeWithoutLogic="scope-without-logic",i.ExtendingAbstractEntity="extending-abstract-entity",i.ImplementingNonAbstractEntity="implementing-non-abstract-entity",i.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",i.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",i.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",i.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",i.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",i.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",i.IncorrectEntityImplementation="incorrect-entity-implementation",i.IncorrectMethodImplementation="incorrect-method-implementation",i.IncorrectPropertyImplementation="incorrect-property-implementation",i.PropertyImplementsNonAbstact="property-implements-non-abstract",i.NonStaticPropertyImplementsStatic="non-static-property-implements-static",i.StaticPropertyImplementsNonStatic="static-property-implements-non-static",i.PropertyImplementsIncompatibleType="property-implements-incompatible-type",i.MissingPropertyImplementation="missing-property-implementation",i.MissingMethodImplementation="missing-method-implementation",i.NoProperties="no-properties",i.ReadingFromIncompatibleType="reading-from-incompatible-type",i.WritingToIncompatibleType="writing-to-incompatible-type",i.InvalidPropertiesCombination="invalid-properties-combination",i.DisconnectedCallableEntity="disconnected-callable-entity",i.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",i.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",i.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",i.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",i.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",i.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",i))(q||{});class P{constructor(s){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");this.id=s.id,this.message=s.message,this.issue=s.issue,this.severity=s.severity,this.code=s.code}toEntityError(s){return this.code in j?new hn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:s}):null}}class hn{constructor(s){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");f(this,"entity");this.id=s.id,this.message=s.message,this.issue=s.issue,this.severity=s.severity,this.code=s.code,this.entity=s.entity}clone(){return new hn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function H9(i){const s=new Set;return i.filter(e=>s.has(e.id)?!1:(s.add(e.id),!0))}function ye(i){const s=i.entity.errors.find(t=>t.id===i.id);return s?{new:!1,error:s}:{new:!0,error:new hn(i)}}function K9(i,s){const e=new Map;return i.forEach(t=>{e.set(t.id,t)}),s.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function ze(i,s){const e=[];return s.forEach(t=>{const r=i.find(a=>a.id===t.id);r?e.push(r):e.push(t)}),e}const ds=m.union([m.string(),m.number(),m.boolean(),m.date()]),HR=m.enum([yt.CurrentDateAndTime,yt.Random,yt.Unique]),Qo=m.object({type:HR,rangeStart:ds.nullable(),rangeEnd:ds.nullable()}),ls=Qo.extend({type:m.literal(yt.Random),rangeStart:ds,rangeEnd:ds}),np=Qo.extend({type:m.literal(yt.Unique),rangeStart:m.null(),rangeEnd:m.null()}),KR=Qo.extend({type:m.literal(yt.CurrentDateAndTime),rangeStart:m.null(),rangeEnd:m.null()}),ed=ls.extend({rangeStart:m.number().nullable(),rangeEnd:m.number().nullable()}),XR=ed.extend({rangeStart:m.number(),rangeEnd:m.null()}),QR=ed.extend({rangeStart:m.null(),rangeEnd:m.number()}),eD=ed.extend({rangeStart:m.number(),rangeEnd:m.number()}),td=ls.extend({rangeStart:m.number().nullable(),rangeEnd:m.number().nullable()}),tD=td.extend({rangeStart:m.number(),rangeEnd:m.null()}),rD=td.extend({rangeStart:m.null(),rangeEnd:m.number()}),iD=td.extend({rangeStart:m.number(),rangeEnd:m.number()}),rd=ls.extend({rangeStart:m.date().nullable(),rangeEnd:m.date().nullable()}),nD=rd.extend({rangeStart:m.date(),rangeEnd:m.null()}),aD=rd.extend({rangeStart:m.null(),rangeEnd:m.date()}),sD=rd.extend({rangeStart:m.date(),rangeEnd:m.date()}),ap=ls.extend({rangeStart:m.null(),rangeEnd:m.null()}),sp=m.union([tD,rD,iD]),op=m.union([XR,QR,eD]),dp=m.union([nD,aD,sD,KR]),lp=m.union([sp,op,dp,np,ap]);function us(){return m.union([m.object({type:m.literal(n.ValueDescriptor)}),m.record(m.string(),m.any())])}function oD(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ValueDescriptor)})}function up(){return m.object({id:m.string(),type:m.literal(n.ValueDescriptor),name:m.string(),required:m.boolean()})}function X9(){return up().merge(m.object({version:m.number(),index:m.number()}))}function Q9(){return up().merge(m.object({}))}function e6(){return m.object({dataType:En(),parent:vn()})}function t6(){return X9().merge(e6())}function id(){return m.union([m.object({type:m.literal(n.PrimitiveEntity)}),m.record(m.string(),m.any())])}function nd(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.PrimitiveEntity)})}function ad(){return m.object({id:m.string(),type:m.literal(n.PrimitiveEntity),name:m.string(),description:m.string().nullable(),static:m.boolean(),abstract:m.boolean()})}function r6(){return ad().merge(m.object({version:m.number()}))}function i6(){return ad().merge(m.object({}))}function n6(){return m.object({properties:m.array(mn()),methods:m.array(pr()),abstractMethods:m.array(xr()),extends:m.array(m.union([id(),la()]))})}function a6(){return r6().merge(n6())}function mn(){return m.union([m.object({type:m.literal(n.Property)}),m.record(m.string(),m.any())])}function dD(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Property)})}function pp(){return m.object({id:m.string(),type:m.literal(n.Property),name:m.string(),description:m.string().nullable(),private:m.boolean(),static:m.boolean(),required:m.boolean(),abstract:m.boolean()})}function s6(){return pp().merge(m.object({version:m.number(),index:m.number()}))}function o6(){return pp().merge(m.object({}))}function d6(){return m.object({dataType:En(),implements:mn().nullable(),parent:m.union([bn(),nd(),sd()])})}function l6(){return s6().merge(d6())}function u6(){return m.enum([Y.CRON_JOB,Y.EXECUTION,Y.HTTP_ENDPOINT,Y.PERSISTED_ENTITY,Y.RELATIONAL_DATABASE])}function la(){return m.union([m.object({type:m.literal(n.BuiltInBaseEntity)}),m.record(m.string(),m.any())])}function sd(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.BuiltInBaseEntity)})}function cp(){return m.object({id:m.string(),version:m.number(),type:m.literal(n.BuiltInBaseEntity),name:u6(),description:m.string().nullable(),abstract:m.boolean(),static:m.boolean()})}function p6(){return cp()}function c6(){return cp().merge(m.object({}))}function f6(){return m.object({properties:m.array(mn()),methods:m.array(pr()),abstractMethods:m.array(xr()),extends:m.array(m.union([la(),id()]))})}function y6(){return p6().merge(f6())}function xr(){return m.union([m.object({type:m.literal(n.ActionDescriptor)}),m.record(m.string(),m.any())])}function vn(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ActionDescriptor)})}function od(){return m.object({id:m.string(),type:m.literal(n.ActionDescriptor),name:m.string(),description:m.string().nullable()})}function h6(){return od().merge(m.object({version:m.number()}))}function m6(){return od().merge(m.object({}))}function v6(){return m.object({inputs:m.array(us()),outputs:m.array(us()),parent:m.union([Xt(),bn(),sd(),nd()]).nullable()})}function lD(){return h6().merge(v6())}function ua(){return m.union([m.object({type:m.literal(n.Loop)}),m.record(m.string(),m.any())])}function Sr(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Loop)})}function uD(){return m.object({id:m.string(),type:m.literal(n.Loop)})}function T6(){return uD().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function E6(){return uD().merge(m.object({declaration:m.union([m.string(),pr()])}))}function I6(){return m.object({calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),declaration:xr(),inputs:m.array(Pr()),outputs:m.array(qt()),outputsDeclarations:m.array(us()),successCalls:m.array(Dt()),errorCalls:m.array(Dt()),error:qt(),body:pr(),parent:m.union([ui(),Xt()]),breakStatements:m.array(ya()),continueStatements:m.array(pa())})}function A6(){return T6().merge(I6())}function pa(){return m.union([m.object({type:m.literal(n.ContinueStatement)}),m.record(m.string(),m.any())])}function ca(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ContinueStatement)})}function fp(){return m.object({id:m.string(),type:m.literal(n.ContinueStatement)})}function b6(){return fp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function R6(){return fp().merge(m.object({}))}function D6(){return m.object({calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),outputs:m.array(oi()),throws:m.optional(oi()),parent:Sr()})}function O6(){return b6().merge(D6())}function Tn(){return m.union([m.object({type:m.literal(n.ReturnStatement)}),m.record(m.string(),m.any())])}function fa(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ReturnStatement)})}function yp(){return m.object({id:m.string(),type:m.literal(n.ReturnStatement)})}function P6(){return yp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function w6(){return yp().merge(m.object({}))}function V6(){return m.object({calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),outputs:m.array(oi()),throws:m.optional(oi()),parent:ui()})}function C6(){return P6().merge(V6())}function oi(){return m.union([m.object({type:m.literal(n.ReturnDeclaration)}),m.record(m.string(),m.any())])}function pD(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ReturnDeclaration)})}function hp(){return m.object({id:m.string(),type:m.literal(n.ReturnDeclaration),name:m.string(),description:m.string().nullable(),isError:m.boolean()})}function B6(){return hp().merge(m.object({version:m.number(),index:m.number()}))}function _6(){return hp().merge(m.object({}))}function M6(){return m.object({dataType:En().nullable(),readsValue:ms().nullable(),parent:m.union([fa(),vn(),di(),ca()])})}function g6(){return B6().merge(M6())}function ya(){return m.union([m.object({type:m.literal(n.BreakStatement)}),m.record(m.string(),m.any())])}function di(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.BreakStatement)})}function mp(){return m.object({id:m.string(),type:m.literal(n.BreakStatement)})}function N6(){return mp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function L6(){return mp().merge(m.object({}))}function U6(){return m.object({calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),outputs:m.array(oi()),throws:m.optional(oi()),parent:Sr()})}function $6(){return N6().merge(U6())}function qt(){return m.union([m.object({type:m.literal(n.OutputMap)}),m.record(m.string(),m.any())])}function vp(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.OutputMap)})}function Tp(){return m.object({id:m.string(),type:m.literal(n.OutputMap)})}function j6(){return Tp().merge(m.object({version:m.number(),index:m.number()}))}function G6(){return Tp().merge(m.object({}))}function F6(){return m.object({writesValues:m.array(li()),declaration:m.union([oi(),mn()]),parent:m.union([et(),Sr(),di()])})}function x6(){return j6().merge(F6())}function ha(){return m.union([m.object({type:m.literal(n.FunctionCall)}),m.record(m.string(),m.any())])}function ps(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.FunctionCall)})}function Ep(){return m.object({id:m.string(),type:m.literal(n.FunctionCall)})}function S6(){return Ep().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function k6(){return Ep().merge(m.object({}))}function Z6(){return m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),writesValues:m.array(li()),declaration:pr(),inputs:m.array(Pr()),outputs:m.array(qt()),error:m.optional(qt()),parent:m.union([ui(),Xt()])})}function q6(){return S6().merge(Z6())}function J6(){return m.enum([pt.Equal,pt.NotEqual,pt.MoreThan,pt.MoreThanOrEqual,pt.LessThan,pt.LessThanOrEqual,pt.And,pt.Or,yr.Empty,yr.NotEmpty])}function cs(){return m.union([m.object({type:m.literal(n.Condition)}),m.record(m.string(),m.any())])}function dd(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Condition)})}function Ip(){return m.object({id:m.string(),type:m.literal(n.Condition)})}function W6(){return Ip().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function z6(){return Ip().merge(m.object({}))}function Y6(){return m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),leftValue:Pr(),rightValue:Pr().nullable(),operator:J6(),parent:m.union([ui(),Xt()])})}function H6(){return W6().merge(Y6())}function fs(){return m.union([m.object({type:m.literal(n.Search)}),m.record(m.string(),m.any())])}function ys(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Search)})}function Ap(){return m.object({id:m.string(),type:m.literal(n.Search),name:m.string(),query:m.any(),description:m.string().nullable()})}function K6(){return Ap().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function X6(){return Ap().merge(m.object({}))}function Q6(){return m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),inputsDeclarations:m.array(An()),inputs:m.array(Pr()),outputsDeclarations:m.array(us()),outputs:m.array(qt()),parent:m.union([ui(),Xt()]),error:qt().nullable()})}function e3(){return K6().merge(Q6())}function hs(){return m.union([m.object({type:m.literal(n.InternalCall)}),m.record(m.string(),m.any())])}function bp(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.InternalCall)})}function Rp(){return m.object({id:m.string(),type:m.literal(n.InternalCall),index:m.number()})}function t3(){return Rp().merge(m.object({version:m.number(),index:m.number()}))}function r3(){return Rp().merge(m.object({declaration:m.union([m.string(),pr()])}))}function i3(){return m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),writesValues:m.array(li()),declaration:pr(),inputs:m.array(Pr()),outputs:m.array(qt()),parent:Pi(),error:m.optional(qt())})}function n3(){return t3().merge(i3())}function Pr(){return m.union([m.object({type:m.literal(n.InputMap)}),m.record(m.string(),m.any())])}function ld(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.InputMap)})}function Dp(){return m.object({id:m.string(),type:m.literal(n.InputMap),name:m.string().nullable().optional(),description:m.string().nullable().optional()})}function a3(){return Dp().merge(m.object({version:m.number(),index:m.number()}))}function s3(){return Dp().merge(m.object({}))}function o3(){return m.object({defaultValue:Op().nullable(),declaration:m.union([An(),mn()]).nullable(),readsValue:ms().nullable(),parent:m.union([et(),ld(),Sr(),di()])})}function d3(){return a3().merge(o3())}function ma(){return m.union([m.object({type:m.literal(n.Operation)}),m.record(m.string(),m.any())])}function va(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Operation)})}function ud(){return m.object({id:m.string(),type:m.literal(n.Operation)})}function l3(){return ud().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function u3(){return ud().merge(m.object({}))}function p3(){return ud().merge(m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),writesValues:m.array(li()),declaration:xr(),inputs:m.array(Pr()),outputs:m.array(qt()),error:m.array(qt()),parent:m.union([ui(),Xt()])}))}function c3(){return l3().merge(p3())}function pd(){return m.union([m.string(),m.number(),m.boolean(),m.null(),m.date()])}function cD(){return m.record(m.string(),pd())}function f3(){return m.array(m.union([pd(),cD()]))}function fD(){return m.union([pd(),cD(),f3()])}function yD(){return m.union([pd(),fD()])}function hD(){return m.enum([g.String,g.Number,g.Boolean,g.Null,g.Date,g.KeyValue,g.Enum,g.File,g.UUID,g.EntityTemplate,g.ActionDescriptor])}function mD(){return m.union([bn(),va(),vs()])}function y3(){return m.object({id:m.string(),name:hD(),type:m.literal(n.LiteralValue),value:yD(),autogeneration:lp.nullable()})}function h3(){return y3().merge(m.object({}))}function wr(){return m.object({id:m.string(),version:m.number(),name:hD(),type:m.literal(n.LiteralValue),value:yD(),valueAsTypeList:m.array(mD()).nullable(),valueAsTypeSingle:mD().nullable(),autogeneration:lp.nullable(),parent:m.union([Pp(),ld()])})}function m3(){return wr().extend({name:m.literal(g.String),value:m.string(),autogeneration:sp.nullable()})}function v3(){return wr().extend({name:m.literal(g.Number),value:m.number(),autogeneration:op.nullable()})}function T3(){return wr().extend({name:m.literal(g.Boolean),value:m.boolean(),autogeneration:ap.nullable()})}function E3(){return wr().extend({name:m.literal(g.Null),value:m.null(),autogeneration:m.null()})}function I3(){return wr().extend({name:m.literal(g.Date),value:m.date(),autogeneration:dp.nullable()})}function A3(){return wr().extend({name:m.literal(g.KeyValue),value:fD(),autogeneration:m.null()})}function b3(){return wr().extend({name:m.literal(g.Enum),value:m.string(),autogeneration:m.null()})}function R3(){return wr().extend({name:m.literal(g.File),value:m.string(),autogeneration:m.null()})}function D3(){return wr().extend({name:m.literal(g.UUID),value:m.string(),autogeneration:np.nullable()})}function O3(){return wr().extend({name:m.literal(g.EntityTemplate),value:bn(),autogeneration:m.null()})}function P3(){return wr().extend({name:m.literal(g.ActionDescriptor),value:vs(),autogeneration:m.null()})}function Op(){return m.union([m3(),v3(),T3(),E3(),I3(),A3(),b3(),R3(),D3(),O3(),P3()])}function En(){return m.union([m.object({type:m.literal(n.DataType)}),m.record(m.string(),m.any())])}function Pp(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.DataType)})}function wp(){return m.object({id:m.string(),type:m.literal(n.DataType),isNullable:m.boolean(),isList:m.boolean(),constant:m.boolean(),asType:m.boolean(),options:m.array(m.string()).optional()})}function w3(){return wp().merge(m.object({version:m.number()}))}function V3(){return wp().merge(m.object({}))}function C3(){return m.object({defaultValue:Op().nullable(),entity:m.union([Ta(),la(),id(),xr()]).nullable(),parent:m.union([dD(),ED(),oD()])})}function B3(){return w3().merge(C3())}function Vp(){return m.union([m.object({type:m.literal(n.VariableDeclaration)}),m.record(m.string(),m.any())])}function _3(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.VariableDeclaration)})}function Cp(){return m.object({id:m.string(),type:m.literal(n.VariableDeclaration),name:m.string(),description:m.string().nullable()})}function M3(){return Cp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function g3(){return Cp().merge(m.object({}))}function N3(){return m.object({dataType:En().nullable(),readsValue:ms().nullable(),writesValues:m.array(li()),inputs:m.array(Pr()),outputs:m.array(qt()),successCalls:m.array(Dt()),errorCalls:m.array(Dt()),internalCalls:m.array(hs()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),parent:m.union([ui(),Xt()])})}function L3(){return M3().merge(N3())}function vD(){return m.union([m.object({type:m.literal(n.VariableInstance)}),m.record(m.string(),m.any())])}function U3(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.VariableInstance)})}function Bp(){return m.object({id:m.string(),type:m.literal(n.VariableInstance)})}function $3(){return Bp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function j3(){return Bp().merge(m.object({}))}function G3(){return m.object({declaration:Vp(),dataType:En().nullable(),readsValue:ms().nullable(),writesValues:m.array(li()),inputs:m.array(Pr()),outputs:m.array(qt()),successCalls:m.array(Dt()),errorCalls:m.array(Dt()),internalCalls:m.array(hs()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),parent:m.union([ui(),Xt()])})}function F3(){return $3().merge(G3())}function _p(){return m.union([m.object({type:m.literal(n.InstalledProject)}),m.record(m.string(),m.any())])}function cd(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.InstalledProject)})}function x3(){return m.object({id:m.string(),type:m.literal(n.InstalledProject)})}function S3(){return m.object({version:m.number(),x:m.number(),y:m.number()})}function k3(){return m.object({})}function Z3(){return m.object({implements:Xt(),description:m.string().nullable(),functions:m.array(pr()),events:m.array(Mp()),parent:Xt()})}function q3(){return S3().merge(Z3())}function Mp(){return m.union([m.object({type:m.literal(n.GlobalEvent)}),m.record(m.string(),m.any())])}function J3(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.GlobalEvent)})}function fd(){return m.object({id:m.string(),type:m.literal(n.GlobalEvent),name:m.string(),collapsed:m.boolean()})}function W3(){return fd().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function z3(){return fd().merge(m.object({}))}function Y3(){return fd().merge(m.object({returnStatements:m.array(Tn()),implements:m.array(lD()),inputs:m.array(An()),calls:m.array(Dt()),parent:m.union([Xt(),cd()])}))}function H3(){return W3().merge(Y3())}function In(){return m.union([Vp(),vD()])}function Pi(){return m.union([_3(),U3()])}function li(){return m.union([In(),Pr(),oi()])}function TD(){return m.union([Pi(),ld(),pD()])}function ms(){return m.union([In(),An(),qt(),ma(),hs(),ha()])}function K3(){return m.union([Pi(),gp(),vp(),va(),bp(),ps()])}function X3(){return m.union([An(),qt(),li()])}function ED(){return m.union([gp(),vp(),TD()])}function yd(){return Mp()}function hd(){return J3()}function md(){return m.union([ma(),ha(),cs(),fs(),In(),hs(),ua()])}function et(){return m.union([va(),ps(),dd(),ys(),Pi(),bp(),Sr()])}function vd(){return m.union([ma(),ha(),cs(),fs(),In(),ua()])}function Td(){return m.union([va(),ps(),dd(),ys(),Pi(),Sr()])}function ID(){return m.union([md(),Tn(),ya(),pa()])}function Dt(){return m.union([et(),fa(),di(),ca()])}function AD(){return m.union([vd(),Tn(),ya(),pa()])}function bD(){return m.union([Td(),fa(),di(),ca()])}function wi(){return m.union([pr(),yd()])}function At(){return m.union([vs(),hd()])}function Q3(){return m.union([md(),wi()])}function e5(){return m.union([et(),At()])}function t5(){return m.union([vd(),wi()])}function r5(){return m.union([Td(),At()])}function i5(){return m.union([ID(),wi()])}function n5(){return m.union([Dt(),At()])}function a5(){return m.union([AD(),wi()])}function s5(){return m.union([bD(),At()])}function o5(){return m.union([wi(),ua()])}function ui(){return m.union([At(),Sr()])}function d5(){return m.union([md(),wi()])}function l5(){return m.union([et(),At()])}function u5(){return m.union([vd(),wi()])}function p5(){return m.union([Td(),At()])}function c5(){return m.union([Tn(),ya(),pa()])}function f5(){return m.union([fa(),di(),ca()])}function y5(){return m.union([la(),P5(),_p(),Ta(),pr(),yd(),In(),Pr(),qt(),cs(),ma(),ha(),oi(),An(),id(),En(),mn(),xr(),Tn(),pa(),ya(),ua(),fs(),xr(),xr(),us(),hs()])}function h5(){return m.union([sd(),Xt(),cd(),bn(),vs(),hd(),Pi(),ld(),vp(),dd(),va(),ps(),pD(),gp(),nd(),Pp(),dD(),vn(),fa(),ca(),di(),Sr(),ys(),vn(),vn(),oD(),bp()])}function m5(){return m.union([_p(),Ta(),pr(),yd(),In(),cs(),ma(),ha(),Tn(),pa(),ya(),ua(),fs()])}function v5(){return m.union([cd(),bn(),vs(),hd(),Pi(),dd(),va(),ps(),fa(),ca(),di(),Sr(),ys()])}function An(){return m.union([m.object({type:m.literal(n.ArgumentDeclaration)}),m.record(m.string(),m.any())])}function gp(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ArgumentDeclaration)})}function Np(){return m.object({id:m.string(),type:m.literal(n.ArgumentDeclaration)})}function T5(){return Np().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function E5(){return Np().merge(m.object({}))}function I5(){return m.object({dataType:En().nullable(),writesValues:m.array(li()),parent:m.union([At(),vn(),vn(),ys(),di()])})}function A5(){return T5().merge(I5())}function pr(){return m.union([m.object({type:m.literal(n.FunctionDeclaration)}),m.record(m.string(),m.any())])}function vs(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.FunctionDeclaration)})}function Lp(){return m.object({id:m.string(),type:m.literal(n.FunctionDeclaration),name:m.string(),description:m.string().nullable()})}function b5(){return Lp().merge(m.object({version:m.number(),x:m.number(),y:m.number(),index:m.number().nullable()}))}function R5(){return Lp()}function D5(){return m.object({inputs:m.array(An()),implements:xr().nullable(),returnStatements:m.array(Tn()),parent:m.union([Xt(),cd(),bn(),Sr(),sd(),nd()])})}function O5(){return b5().merge(D5())}function P5(){return m.union([m.object({type:m.literal(n.Project)}),m.record(m.string(),m.any())])}function Xt(){return m.object({entityType:m.literal(n.Project),entityId:m.string(),id:m.string(),type:m.literal(n.GenericReference)})}function Up(){return m.object({id:m.string(),type:m.literal(n.Project),name:m.string(),description:m.string().nullable()})}function w5(){return Up().merge(m.object({version:m.number()}))}function V5(){return Up()}function C5(){return m.object({entities:m.array(Ta()),functions:m.array(pr()),events:m.array(Mp()),projects:m.array(_p()),variableDeclarations:m.array(Vp()),variableInstances:m.array(vD()),conditions:m.array(cs()),operations:m.array(ma()),functionCalls:m.array(ha()),loops:m.array(ua()),searches:m.array(fs())})}function B5(){return w5().merge(C5())}function Ta(){return m.union([m.object({type:m.literal(n.DefinitionEntity)}),m.record(m.string(),m.any())])}function bn(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.DefinitionEntity)})}function $p(){return m.object({id:m.string(),type:m.literal(n.DefinitionEntity),name:m.string(),description:m.string().nullable(),static:m.boolean(),abstract:m.boolean()})}function _5(){return $p().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function M5(){return $p().merge(m.object({}))}function g5(){return m.union([Xt(),Pp()])}function N5(){return m.object({properties:m.array(mn()),methods:m.array(pr()),abstractMethods:m.array(xr()),extends:m.array(m.union([Ta(),la()])),implements:m.array(m.union([Ta(),la()])),parent:g5()})}function L5(){return _5().merge(N5())}function U5(i){const s=L5(),e=i.toJSON();s.safeParse(e).success;const r=i.implements.flatMap(h=>G5(i,h)),a=i.extends.flatMap(h=>F5(i,h)),d=S5(i),o=x5(i);i.methods.flatMap(h=>h.validate());const l=[...r,...a,...d,...o];return ze(i.errors,l)}function $5(i,s){const e=s.properties.filter(a=>a.abstract),t=[];let r=[...i.properties];return e.forEach(a=>{const d=r.find(o=>{var l;return((l=o.implements)==null?void 0:l.id)===a.id});d?r=r.filter(o=>o.id!==d.id):t.push(a)}),t}function j5(i,s){const e=s.abstractMethods,t=[];let r=[...i.methods];return e.forEach(a=>{const d=r.find(o=>{var l;return((l=o.implements)==null?void 0:l.id)===a.id});d?r=r.filter(o=>o.id!==d.id):t.push(a)}),t}function G5(i,s){const e=[];if(!s.abstract){const h=ye({id:i.id+"--"+q.ImplementingNonAbstractEntity,message:`Entity "${i.name}" with id "${i.id}" is implementing a non-abstract entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:q.ImplementingNonAbstractEntity,entity:i});return e.push(h.error),e}const t=s.properties.filter(h=>h.abstract),r=[];let a=[...i.properties];t.forEach(h=>{const c=a.find(v=>{var E;return((E=v.implements)==null?void 0:E.id)===h.id});c?a=a.filter(v=>v.id!==c.id):r.push(h)}),r.length&&r.forEach(h=>{const c=ye({id:i.id+"--"+q.MissingPropertyImplementation+"--"+h.id,message:`Property "${h.name}" with id "${h.id}" of entity "${s.name}" with id "${s.id}" is not implemented when entity "${i.name}" with id "${i.id}" implements it`,issue:null,severity:D.Error,code:q.MissingPropertyImplementation,entity:i});e.push(c.error)});const d=[];let o=[...i.methods];s.abstractMethods.forEach(h=>{const c=o.find(v=>{var E;return((E=v.implements)==null?void 0:E.id)===h.id});c?o=o.filter(v=>v.id!==c.id):d.push(h)}),d.length&&d.forEach(h=>{const c=ye({id:i.id+"--"+q.MissingMethodImplementation+"--"+h.id,message:`Method "${h.name}" with id "${h.id}" of entity "${s.name}" with id "${s.id}" is not implemented when entity "${i.name}" with id "${i.id}" implements it`,issue:null,severity:D.Error,code:q.MissingMethodImplementation,entity:i});e.push(c.error)});const l=[];s.properties.forEach(h=>{const c=a.find(v=>v.name===h.name);c&&l.push([c,h])}),l.length&&l.forEach(([h])=>{const c=ye({id:i.id+"--"+j.PropertyOverwrite+"--"+h.id,message:`Property "${h.name}" with id "${h.id}" of entity "${i.name}" with id "${i.id}" overwrites the property with the same name from the base entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:j.PropertyOverwrite,entity:i});e.push(c.error)});const u=[];return s.methods.forEach(h=>{const c=o.find(v=>v.name===h.name);c&&u.push([c,h])}),u.length&&u.forEach(([h])=>{const c=ye({id:i.id+"--"+j.MethodOverwrite+"--"+h.id,message:`Method "${h.name}" with id "${h.id}" of entity "${i.name}" with id "${i.id}" overwrites the method with the same name from the base entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:j.MethodOverwrite,entity:i});e.push(c.error)}),e}function F5(i,s){const e=[],t=[];if(s.abstract){const a=ye({id:i.id+"--"+q.ExtendingAbstractEntity,message:`Entity "${i.name}" with id "${i.id}" is extending an abstract entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:q.ExtendingAbstractEntity,entity:i});return e.push(a.error),e}i.properties.forEach(a=>{var o;const d=s.properties.find(l=>l.name===a.name);((o=a.implements)==null?void 0:o.id)!==(d==null?void 0:d.id)&&d&&t.push(a)}),t.length&&t.forEach(a=>{const d=ye({id:i.id+"--"+j.PropertyOverwrite,message:`Property "${a.name}" with id "${a.id}" of entity "${i.name}" with id "${i.id}" overwrites the property with the same name from the extended entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:j.PropertyOverwrite,entity:i});e.push(d.error)});const r=[];return i.methods.forEach(a=>{var o;const d=s.methods.find(l=>l.name===a.name);((o=a.implements)==null?void 0:o.id)!==(d==null?void 0:d.id)&&d&&r.push(a)}),r.length&&r.forEach(a=>{const d=ye({id:i.id+"--"+j.MethodOverwrite,message:`Method "${a.name}" with id "${a.id}" of entity "${i.name}" with id "${i.id}" overwrites the method with the same name from the extended entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:j.MethodOverwrite,entity:i});e.push(d.error)}),e}function x5(i){const s=[];if(!i.properties.length){const e=ye({id:i.id+"--"+q.NoProperties,message:"No properties implemented",issue:null,severity:D.Warning,code:q.NoProperties,entity:i});s.push(e.error)}return i.properties.forEach(e=>{e.validate()}),s}function S5(i){const s=[];if(i.abstract){if(i.methods.length){const e=ye({id:i.id+"--"+q.AbstractEntityWithNonAbstractMethods,message:`Entity "${i.name}" with id "${i.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:D.Error,code:q.AbstractEntityWithNonAbstractMethods,entity:i});s.push(e.error)}if(i.properties.some(e=>!e.abstract)){const e=ye({id:i.id+"--"+q.AbstractEntityWithNonAbstractProperties,message:`Entity "${i.name}" with id "${i.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:D.Error,code:q.AbstractEntityWithNonAbstractProperties,entity:i});s.push(e.error),i.properties.forEach(t=>{if(!t.abstract){const r=ye({id:i.id+"--"+q.StaticEntityWithNonStaticProperties+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:D.Error,code:q.StaticEntityWithNonStaticProperties,entity:i});s.push(r.error)}})}}else{if(i.abstractMethods.length){const e=ye({id:i.id+"--"+q.AbstractPropertyInNonAbstractEntity,message:`Entity "${i.name}" with id "${i.id}" is not marked as abstract but has abstract methods`,issue:null,severity:D.Error,code:q.AbstractPropertyInNonAbstractEntity,entity:i});s.push(e.error)}if(i.properties.some(e=>e.abstract)){const e=ye({id:i.id+"--"+q.AbstractMethodInNonAbstractEntity,message:`Entity "${i.name}" with id "${i.id}" is not marked as abstract but has abstract properties`,issue:null,severity:D.Error,code:q.AbstractMethodInNonAbstractEntity,entity:i});s.push(e.error),i.properties.forEach(t=>{if(t.abstract){const r=ye({id:i.id+"--"+q.AbstractMethodInNonAbstractEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:D.Error,code:q.AbstractMethodInNonAbstractEntity,entity:i});s.push(r.error)}})}}if(i.static&&i.properties.some(e=>!e.static)){const e=ye({id:i.id+"--"+q.StaticEntityWithNonStaticProperties,message:`Entity "${i.name}" with id "${i.id}" is marked as static but has non-static properties`,issue:null,severity:D.Error,code:q.StaticEntityWithNonStaticProperties,entity:i});s.push(e.error),i.properties.forEach(t=>{if(!t.static){const r=ye({id:i.id+"--"+q.NonStaticPropertyInStaticEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is not marked as static but the entity is marked as static`,issue:null,severity:D.Error,code:q.NonStaticPropertyInStaticEntity,entity:i});s.push(r.error)}})}return s}function k5(i){return i instanceof Error&&i.name==="ZodError"&&"issues"in i&&Array.isArray(i.issues)}var Z5=class extends Error{constructor(s,e){super(s,e);f(this,"name");f(this,"details");this.name="ZodValidationError",this.details=q5(e)}toString(){return this.message}};function q5(i){if(i){const s=i.cause;if(k5(s))return s.issues}return[]}function J5(i){return i.length!==0}var W5=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function z5(i){return i.length===1?i[0].toString():i.reduce((s,e)=>{if(typeof e=="number")return s+"["+e.toString()+"]";if(e.includes('"'))return s+'["'+Y5(e)+'"]';if(!W5.test(e))return s+'["'+e+'"]';const t=s.length===0?"":".";return s+t+e},"")}function Y5(i){return i.replace(/"/g,'\\"')}var H5="; ",K5=99,RD="Validation error",X5=": ",Q5=", or ";function eZ(i={}){const{issueSeparator:s=H5,unionSeparator:e=Q5,prefixSeparator:t=X5,prefix:r=RD,includePath:a=!0,maxIssuesInMessage:d=K5}=i;return o=>{const l=o.slice(0,d).map(u=>Ed({issue:u,issueSeparator:s,unionSeparator:e,includePath:a})).join(s);return tZ(l,r,t)}}function Ed(i){const{issue:s,issueSeparator:e,unionSeparator:t,includePath:r}=i;if(s.code===S.invalid_union)return s.unionErrors.reduce((a,d)=>{const o=d.issues.map(l=>Ed({issue:l,issueSeparator:e,unionSeparator:t,includePath:r})).join(e);return a.includes(o)||a.push(o),a},[]).join(t);if(s.code===S.invalid_arguments)return[s.message,...s.argumentsError.issues.map(a=>Ed({issue:a,issueSeparator:e,unionSeparator:t,includePath:r}))].join(e);if(s.code===S.invalid_return_type)return[s.message,...s.returnTypeError.issues.map(a=>Ed({issue:a,issueSeparator:e,unionSeparator:t,includePath:r}))].join(e);if(r&&J5(s.path)){if(s.path.length===1){const a=s.path[0];if(typeof a=="number")return`${s.message} at index ${a}`}return`${s.message} at "${z5(s.path)}"`}return s.message}function tZ(i,s,e){return s!==null?i.length>0?[s,i].join(e):s:i.length>0?i:RD}function rZ(i,s={}){const t=iZ(s)([i]);return new Z5(t,{cause:new Kt([i])})}function iZ(i){return"messageBuilder"in i?i.messageBuilder:eZ(i)}var DD="1.13.7",OD=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Id=Array.prototype,jp=Object.prototype,PD=typeof Symbol<"u"?Symbol.prototype:null,nZ=Id.push,Ts=Id.slice,Es=jp.toString,aZ=jp.hasOwnProperty,wD=typeof ArrayBuffer<"u",sZ=typeof DataView<"u",oZ=Array.isArray,VD=Object.keys,CD=Object.create,BD=wD&&ArrayBuffer.isView,dZ=isNaN,lZ=isFinite,_D=!{toString:null}.propertyIsEnumerable("toString"),MD=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],uZ=Math.pow(2,53)-1;function Qt(i,s){return s=s==null?i.length-1:+s,function(){for(var e=Math.max(arguments.length-s,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+s];switch(s){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var a=Array(s+1);for(r=0;r<s;r++)a[r]=arguments[r];return a[s]=t,i.apply(this,a)}}function Vi(i){var s=typeof i;return s==="function"||s==="object"&&!!i}function pZ(i){return i===null}function gD(i){return i===void 0}function ND(i){return i===!0||i===!1||Es.call(i)==="[object Boolean]"}function cZ(i){return!!(i&&i.nodeType===1)}function $t(i){var s="[object "+i+"]";return function(e){return Es.call(e)===s}}const Gp=$t("String"),LD=$t("Number"),fZ=$t("Date"),yZ=$t("RegExp"),hZ=$t("Error"),UD=$t("Symbol"),$D=$t("ArrayBuffer");var jD=$t("Function"),mZ=OD.document&&OD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof mZ!="function"&&(jD=function(i){return typeof i=="function"||!1});const Jt=jD,GD=$t("Object");var FD=sZ&&(!/\[native code\]/.test(String(DataView))||GD(new DataView(new ArrayBuffer(8)))),Fp=typeof Map<"u"&&GD(new Map),vZ=$t("DataView");function TZ(i){return i!=null&&Jt(i.getInt8)&&$D(i.buffer)}const Ad=FD?TZ:vZ,Rn=oZ||$t("Array");function Ci(i,s){return i!=null&&aZ.call(i,s)}var xp=$t("Arguments");(function(){xp(arguments)||(xp=function(i){return Ci(i,"callee")})})();const Sp=xp;function EZ(i){return!UD(i)&&lZ(i)&&!isNaN(parseFloat(i))}function xD(i){return LD(i)&&dZ(i)}function SD(i){return function(){return i}}function kD(i){return function(s){var e=i(s);return typeof e=="number"&&e>=0&&e<=uZ}}function ZD(i){return function(s){return s==null?void 0:s[i]}}const bd=ZD("byteLength"),IZ=kD(bd);var AZ=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function bZ(i){return BD?BD(i)&&!Ad(i):IZ(i)&&AZ.test(Es.call(i))}const qD=wD?bZ:SD(!1),er=ZD("length");function RZ(i){for(var s={},e=i.length,t=0;t<e;++t)s[i[t]]=!0;return{contains:function(r){return s[r]===!0},push:function(r){return s[r]=!0,i.push(r)}}}function JD(i,s){s=RZ(s);var e=MD.length,t=i.constructor,r=Jt(t)&&t.prototype||jp,a="constructor";for(Ci(i,a)&&!s.contains(a)&&s.push(a);e--;)a=MD[e],a in i&&i[a]!==r[a]&&!s.contains(a)&&s.push(a)}function Pt(i){if(!Vi(i))return[];if(VD)return VD(i);var s=[];for(var e in i)Ci(i,e)&&s.push(e);return _D&&JD(i,s),s}function Is(i){if(i==null)return!0;var s=er(i);return typeof s=="number"&&(Rn(i)||Gp(i)||Sp(i))?s===0:er(Pt(i))===0}function WD(i,s){var e=Pt(s),t=e.length;if(i==null)return!t;for(var r=Object(i),a=0;a<t;a++){var d=e[a];if(s[d]!==r[d]||!(d in r))return!1}return!0}function Ye(i){if(i instanceof Ye)return i;if(!(this instanceof Ye))return new Ye(i);this._wrapped=i}Ye.VERSION=DD,Ye.prototype.value=function(){return this._wrapped},Ye.prototype.valueOf=Ye.prototype.toJSON=Ye.prototype.value,Ye.prototype.toString=function(){return String(this._wrapped)};function zD(i){return new Uint8Array(i.buffer||i,i.byteOffset||0,bd(i))}var YD="[object DataView]";function kp(i,s,e,t){if(i===s)return i!==0||1/i===1/s;if(i==null||s==null)return!1;if(i!==i)return s!==s;var r=typeof i;return r!=="function"&&r!=="object"&&typeof s!="object"?!1:HD(i,s,e,t)}function HD(i,s,e,t){i instanceof Ye&&(i=i._wrapped),s instanceof Ye&&(s=s._wrapped);var r=Es.call(i);if(r!==Es.call(s))return!1;if(FD&&r=="[object Object]"&&Ad(i)){if(!Ad(s))return!1;r=YD}switch(r){case"[object RegExp]":case"[object String]":return""+i==""+s;case"[object Number]":return+i!=+i?+s!=+s:+i==0?1/+i===1/s:+i==+s;case"[object Date]":case"[object Boolean]":return+i==+s;case"[object Symbol]":return PD.valueOf.call(i)===PD.valueOf.call(s);case"[object ArrayBuffer]":case YD:return HD(zD(i),zD(s),e,t)}var a=r==="[object Array]";if(!a&&qD(i)){var d=bd(i);if(d!==bd(s))return!1;if(i.buffer===s.buffer&&i.byteOffset===s.byteOffset)return!0;a=!0}if(!a){if(typeof i!="object"||typeof s!="object")return!1;var o=i.constructor,l=s.constructor;if(o!==l&&!(Jt(o)&&o instanceof o&&Jt(l)&&l instanceof l)&&"constructor"in i&&"constructor"in s)return!1}e=e||[],t=t||[];for(var u=e.length;u--;)if(e[u]===i)return t[u]===s;if(e.push(i),t.push(s),a){if(u=i.length,u!==s.length)return!1;for(;u--;)if(!kp(i[u],s[u],e,t))return!1}else{var h=Pt(i),c;if(u=h.length,Pt(s).length!==u)return!1;for(;u--;)if(c=h[u],!(Ci(s,c)&&kp(i[c],s[c],e,t)))return!1}return e.pop(),t.pop(),!0}function DZ(i,s){return kp(i,s)}function As(i){if(!Vi(i))return[];var s=[];for(var e in i)s.push(e);return _D&&JD(i,s),s}function Zp(i){var s=er(i);return function(e){if(e==null)return!1;var t=As(e);if(er(t))return!1;for(var r=0;r<s;r++)if(!Jt(e[i[r]]))return!1;return i!==QD||!Jt(e[qp])}}var qp="forEach",KD="has",Jp=["clear","delete"],XD=["get",KD,"set"],OZ=Jp.concat(qp,XD),QD=Jp.concat(XD),PZ=["add"].concat(Jp,qp,KD);const wZ=Fp?Zp(OZ):$t("Map"),VZ=Fp?Zp(QD):$t("WeakMap"),CZ=Fp?Zp(PZ):$t("Set"),BZ=$t("WeakSet");function Ea(i){for(var s=Pt(i),e=s.length,t=Array(e),r=0;r<e;r++)t[r]=i[s[r]];return t}function _Z(i){for(var s=Pt(i),e=s.length,t=Array(e),r=0;r<e;r++)t[r]=[s[r],i[s[r]]];return t}function e1(i){for(var s={},e=Pt(i),t=0,r=e.length;t<r;t++)s[i[e[t]]]=e[t];return s}function Wp(i){var s=[];for(var e in i)Jt(i[e])&&s.push(e);return s.sort()}function zp(i,s){return function(e){var t=arguments.length;if(s&&(e=Object(e)),t<2||e==null)return e;for(var r=1;r<t;r++)for(var a=arguments[r],d=i(a),o=d.length,l=0;l<o;l++){var u=d[l];(!s||e[u]===void 0)&&(e[u]=a[u])}return e}}const t1=zp(As),Rd=zp(Pt),r1=zp(As,!0);function MZ(){return function(){}}function i1(i){if(!Vi(i))return{};if(CD)return CD(i);var s=MZ();s.prototype=i;var e=new s;return s.prototype=null,e}function gZ(i,s){var e=i1(i);return s&&Rd(e,s),e}function NZ(i){return Vi(i)?Rn(i)?i.slice():t1({},i):i}function LZ(i,s){return s(i),i}function n1(i){return Rn(i)?i:[i]}Ye.toPath=n1;function bs(i){return Ye.toPath(i)}function Yp(i,s){for(var e=s.length,t=0;t<e;t++){if(i==null)return;i=i[s[t]]}return e?i:void 0}function a1(i,s,e){var t=Yp(i,bs(s));return gD(t)?e:t}function UZ(i,s){s=bs(s);for(var e=s.length,t=0;t<e;t++){var r=s[t];if(!Ci(i,r))return!1;i=i[r]}return!!e}function Hp(i){return i}function Rs(i){return i=Rd({},i),function(s){return WD(s,i)}}function Kp(i){return i=bs(i),function(s){return Yp(s,i)}}function Ds(i,s,e){if(s===void 0)return i;switch(e??3){case 1:return function(t){return i.call(s,t)};case 3:return function(t,r,a){return i.call(s,t,r,a)};case 4:return function(t,r,a,d){return i.call(s,t,r,a,d)}}return function(){return i.apply(s,arguments)}}function s1(i,s,e){return i==null?Hp:Jt(i)?Ds(i,s,e):Vi(i)&&!Rn(i)?Rs(i):Kp(i)}function Xp(i,s){return s1(i,s,1/0)}Ye.iteratee=Xp;function tr(i,s,e){return Ye.iteratee!==Xp?Ye.iteratee(i,s):s1(i,s,e)}function $Z(i,s,e){s=tr(s,e);for(var t=Pt(i),r=t.length,a={},d=0;d<r;d++){var o=t[d];a[o]=s(i[o],o,i)}return a}function o1(){}function jZ(i){return i==null?o1:function(s){return a1(i,s)}}function GZ(i,s,e){var t=Array(Math.max(0,i));s=Ds(s,e,1);for(var r=0;r<i;r++)t[r]=s(r);return t}function Qp(i,s){return s==null&&(s=i,i=0),i+Math.floor(Math.random()*(s-i+1))}const Os=Date.now||function(){return new Date().getTime()};function d1(i){var s=function(a){return i[a]},e="(?:"+Pt(i).join("|")+")",t=RegExp(e),r=RegExp(e,"g");return function(a){return a=a==null?"":""+a,t.test(a)?a.replace(r,s):a}}const l1={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},FZ=d1(l1),xZ=e1(l1),SZ=d1(xZ),kZ=Ye.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ec=/(.)^/,ZZ={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},qZ=/\\|'|\r|\n|\u2028|\u2029/g;function JZ(i){return"\\"+ZZ[i]}var WZ=/^\s*(\w|\$)+\s*$/;function zZ(i,s,e){!s&&e&&(s=e),s=r1({},s,Ye.templateSettings);var t=RegExp([(s.escape||ec).source,(s.interpolate||ec).source,(s.evaluate||ec).source].join("|")+"|$","g"),r=0,a="__p+='";i.replace(t,function(u,h,c,v,E){return a+=i.slice(r,E).replace(qZ,JZ),r=E+u.length,h?a+=`'+
|
|
24
|
+
LIMIT 10 OFFSET 0;`,W8={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:ue,version:"1",entityType:n.Project},z8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},FR={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"companies",description:"List of companies with multiple employees and an existing bank account",defaultValue:null,dataType:null,required:!0,parentRelationType:M.FixedReturns,index:0,parent:z8},Y8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},H8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:FR,writesValues:[],index:0,parent:Y8},K8={id:"find-companies-with-multiple-employees-and-bank-account",type:n.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:[FR],inputs:[],outputs:[H8],query:J8,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:W8},X8={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:PR},Q8={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},xR={id:zk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:X8,parent:Q8},e9={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:DR},t9={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},SR={id:Wk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:e9,parent:t9},r9={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:RR},i9={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},kR={id:Jk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:r9,parent:i9},n9={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bR},a9={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},ZR={id:qk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:n9,parent:a9},s9={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:wR},o9={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},qR={id:Zk,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:s9,parent:o9},d9={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Hu},l9={id:PR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:lr.properties[0],defaultValue:null,index:0,writesValues:[xR],parent:d9},u9={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Hu},p9={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,asType:!1,isList:!1,parent:u9},c9={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:OR},f9={type:n.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},JR={constant:!0,required:!0,id:Hu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",dataType:p9,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:c9,writesValues:[],inputs:[],outputs:[l9],internalCalls:[],parent:f9,x:0,y:0},y9={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},h9={id:OR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vr.properties[2],index:3,writesValues:[JR],parent:y9},m9={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},v9={id:DR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vr.properties[0],index:2,writesValues:[SR],parent:m9},T9={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},E9={id:RR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:St.properties[1],index:1,writesValues:[kR],parent:T9},I9={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},A9={id:bR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[ZR],parent:I9},b9={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:da},R9={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vr,asType:!1,isList:!1,parent:b9},D9={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},O9={constant:!0,required:!0,id:da,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:R9,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[A9,E9,v9,h9],internalCalls:[],parent:D9,x:0,y:0},P9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:VR},w9={type:n.LiteralValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:g.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsTypeList:null,valueAsTypeSingle:null,value:null,autogeneration:{type:yt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:P9},V9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:yn},C9={id:VR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:w9,index:5,readsValue:null,parent:V9},B9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},_9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Fr},M9={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},g9={id:yn,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:B9,calledByError:[],calledByEntry:[],calledBySuccess:[_9],successCalls:[Xu,UR,CR],errorCalls:[],readsValue:null,writesValues:[LR],inputs:[C9],outputs:[],internalCalls:[],parent:M9,x:0,y:0},N9={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},L9={constant:!0,required:!0,id:Fr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Xu,g9],errorCalls:[],readsValue:null,writesValues:[MR],inputs:[qR,ZR,kR,SR,xR],outputs:[],internalCalls:[],parent:N9,x:0,y:0},U9={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:n.VariableDeclaration,entityId:ZI},$9={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:mu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:U9},j9={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:n.Project,entityId:ue},WR={constant:!0,required:!0,id:ZI,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current user",description:"The user that is currently logged in",defaultValue:null,dataType:$9,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:j9},G9={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:AR},F9={id:wR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:lr.properties[0],index:0,writesValues:[qR],parent:G9},x9={type:n.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},S9={id:AR,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:WR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[F9],internalCalls:[],parent:x9,x:0,y:0},k9={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},Z9={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},q9={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Kr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:k9},J9={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:n.Project,entityId:ue},zR={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,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:g.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:n.LiteralValue,autogeneration:{type:yt.Random,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:Z9},dataType:q9,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:J9},W9={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ue},z9={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:zR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:W9,x:0,y:0},ip={type:n.Project,id:ue,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:[$k],entities:[hu,lr,mu,St,CU,vr,Go,oA,dA,ta,dL,Tr,rU,yu,RC,fU,sL],functions:[rx,BA,gu,px,Ix,SA,Nu,Iu,gk,vA,lS],events:[d2],variableDeclarations:[zR,WR,Gu,O9,JR,L9],variableInstances:[z9,S9],conditions:[],operations:[aa],functionCalls:[d4,E$],loops:[q8,Xu,UR,L8,CR],searches:[K8]};var YR={exports:{}};(function(i,s){(function(e,t){i.exports=t()})(Ww,function(){var e=1e3,t=6e4,r=36e5,a="millisecond",d="second",o="minute",l="hour",u="day",h="week",c="month",v="quarter",E="year",O="date",w="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|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,G={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(he){var te=["th","st","nd","rd"],z=he%100;return"["+he+(te[(z-20)%10]||te[z]||te[0])+"]"}},_=function(he,te,z){var de=String(he);return!de||de.length>=te?he:""+Array(te+1-de.length).join(z)+he},$={s:_,z:function(he){var te=-he.utcOffset(),z=Math.abs(te),de=Math.floor(z/60),Q=z%60;return(te<=0?"+":"-")+_(de,2,"0")+":"+_(Q,2,"0")},m:function he(te,z){if(te.date()<z.date())return-he(z,te);var de=12*(z.year()-te.year())+(z.month()-te.month()),Q=te.clone().add(de,c),Ue=z-Q<0,$e=te.clone().add(de+(Ue?-1:1),c);return+(-(de+(z-Q)/(Ue?Q-$e:$e-Q))||0)},a:function(he){return he<0?Math.ceil(he)||0:Math.floor(he)},p:function(he){return{M:c,y:E,w:h,d:u,D:O,h:l,m:o,s:d,ms:a,Q:v}[he]||String(he||"").toLowerCase().replace(/s$/,"")},u:function(he){return he===void 0}},k="en",J={};J[k]=G;var ee="$isDayjsObject",pe=function(he){return he instanceof Ht||!(!he||!he[ee])},Te=function he(te,z,de){var Q;if(!te)return k;if(typeof te=="string"){var Ue=te.toLowerCase();J[Ue]&&(Q=Ue),z&&(J[Ue]=z,Q=Ue);var $e=te.split("-");if(!Q&&$e.length>1)return he($e[0])}else{var ut=te.name;J[ut]=te,Q=ut}return!de&&Q&&(k=Q),Q||!de&&k},K=function(he,te){if(pe(he))return he.clone();var z=typeof te=="object"?te:{};return z.date=he,z.args=arguments,new Ht(z)},se=$;se.l=Te,se.i=pe,se.w=function(he,te){return K(he,{locale:te.$L,utc:te.$u,x:te.$x,$offset:te.$offset})};var Ht=function(){function he(z){this.$L=Te(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[ee]=!0}var te=he.prototype;return te.parse=function(z){this.$d=function(de){var Q=de.date,Ue=de.utc;if(Q===null)return new Date(NaN);if(se.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var $e=Q.match(C);if($e){var ut=$e[2]-1||0,It=($e[7]||"0").substring(0,3);return Ue?new Date(Date.UTC($e[1],ut,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,It)):new Date($e[1],ut,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,It)}}return new Date(Q)}(z),this.init()},te.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},te.$utils=function(){return se},te.isValid=function(){return this.$d.toString()!==w},te.isSame=function(z,de){var Q=K(z);return this.startOf(de)<=Q&&Q<=this.endOf(de)},te.isAfter=function(z,de){return K(z)<this.startOf(de)},te.isBefore=function(z,de){return this.endOf(de)<K(z)},te.$g=function(z,de,Q){return se.u(z)?this[de]:this.set(Q,z)},te.unix=function(){return Math.floor(this.valueOf()/1e3)},te.valueOf=function(){return this.$d.getTime()},te.startOf=function(z,de){var Q=this,Ue=!!se.u(de)||de,$e=se.p(z),ut=function(Ln,sr){var Hi=se.w(Q.$u?Date.UTC(Q.$y,sr,Ln):new Date(Q.$y,sr,Ln),Q);return Ue?Hi:Hi.endOf(u)},It=function(Ln,sr){return se.w(Q.toDate()[Ln].apply(Q.toDate("s"),(Ue?[0,0,0,0]:[23,59,59,999]).slice(sr)),Q)},Vt=this.$W,Gt=this.$M,Ar=this.$D,Da="set"+(this.$u?"UTC":"");switch($e){case E:return Ue?ut(1,0):ut(31,11);case c:return Ue?ut(1,Gt):ut(0,Gt+1);case h:var Nn=this.$locale().weekStart||0,Us=(Vt<Nn?Vt+7:Vt)-Nn;return ut(Ue?Ar-Us:Ar+(6-Us),Gt);case u:case O:return It(Da+"Hours",0);case l:return It(Da+"Minutes",1);case o:return It(Da+"Seconds",2);case d:return It(Da+"Milliseconds",3);default:return this.clone()}},te.endOf=function(z){return this.startOf(z,!1)},te.$set=function(z,de){var Q,Ue=se.p(z),$e="set"+(this.$u?"UTC":""),ut=(Q={},Q[u]=$e+"Date",Q[O]=$e+"Date",Q[c]=$e+"Month",Q[E]=$e+"FullYear",Q[l]=$e+"Hours",Q[o]=$e+"Minutes",Q[d]=$e+"Seconds",Q[a]=$e+"Milliseconds",Q)[Ue],It=Ue===u?this.$D+(de-this.$W):de;if(Ue===c||Ue===E){var Vt=this.clone().set(O,1);Vt.$d[ut](It),Vt.init(),this.$d=Vt.set(O,Math.min(this.$D,Vt.daysInMonth())).$d}else ut&&this.$d[ut](It);return this.init(),this},te.set=function(z,de){return this.clone().$set(z,de)},te.get=function(z){return this[se.p(z)]()},te.add=function(z,de){var Q,Ue=this;z=Number(z);var $e=se.p(de),ut=function(Gt){var Ar=K(Ue);return se.w(Ar.date(Ar.date()+Math.round(Gt*z)),Ue)};if($e===c)return this.set(c,this.$M+z);if($e===E)return this.set(E,this.$y+z);if($e===u)return ut(1);if($e===h)return ut(7);var It=(Q={},Q[o]=t,Q[l]=r,Q[d]=e,Q)[$e]||1,Vt=this.$d.getTime()+z*It;return se.w(Vt,this)},te.subtract=function(z,de){return this.add(-1*z,de)},te.format=function(z){var de=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||w;var Ue=z||"YYYY-MM-DDTHH:mm:ssZ",$e=se.z(this),ut=this.$H,It=this.$m,Vt=this.$M,Gt=Q.weekdays,Ar=Q.months,Da=Q.meridiem,Nn=function(sr,Hi,$s,il){return sr&&(sr[Hi]||sr(de,Ue))||$s[Hi].slice(0,il)},Us=function(sr){return se.s(ut%12||12,sr,"0")},Ln=Da||function(sr,Hi,$s){var il=sr<12?"AM":"PM";return $s?il.toLowerCase():il};return Ue.replace(U,function(sr,Hi){return Hi||function($s){switch($s){case"YY":return String(de.$y).slice(-2);case"YYYY":return se.s(de.$y,4,"0");case"M":return Vt+1;case"MM":return se.s(Vt+1,2,"0");case"MMM":return Nn(Q.monthsShort,Vt,Ar,3);case"MMMM":return Nn(Ar,Vt);case"D":return de.$D;case"DD":return se.s(de.$D,2,"0");case"d":return String(de.$W);case"dd":return Nn(Q.weekdaysMin,de.$W,Gt,2);case"ddd":return Nn(Q.weekdaysShort,de.$W,Gt,3);case"dddd":return Gt[de.$W];case"H":return String(ut);case"HH":return se.s(ut,2,"0");case"h":return Us(1);case"hh":return Us(2);case"a":return Ln(ut,It,!0);case"A":return Ln(ut,It,!1);case"m":return String(It);case"mm":return se.s(It,2,"0");case"s":return String(de.$s);case"ss":return se.s(de.$s,2,"0");case"SSS":return se.s(de.$ms,3,"0");case"Z":return $e}return null}(sr)||$e.replace(":","")})},te.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},te.diff=function(z,de,Q){var Ue,$e=this,ut=se.p(de),It=K(z),Vt=(It.utcOffset()-this.utcOffset())*t,Gt=this-It,Ar=function(){return se.m($e,It)};switch(ut){case E:Ue=Ar()/12;break;case c:Ue=Ar();break;case v:Ue=Ar()/3;break;case h:Ue=(Gt-Vt)/6048e5;break;case u:Ue=(Gt-Vt)/864e5;break;case l:Ue=Gt/r;break;case o:Ue=Gt/t;break;case d:Ue=Gt/e;break;default:Ue=Gt}return Q?Ue:se.a(Ue)},te.daysInMonth=function(){return this.endOf(c).$D},te.$locale=function(){return J[this.$L]},te.locale=function(z,de){if(!z)return this.$L;var Q=this.clone(),Ue=Te(z,de,!0);return Ue&&(Q.$L=Ue),Q},te.clone=function(){return se.w(this.$d,this)},te.toDate=function(){return new Date(this.valueOf())},te.toJSON=function(){return this.isValid()?this.toISOString():null},te.toISOString=function(){return this.$d.toISOString()},te.toString=function(){return this.$d.toUTCString()},he}(),Yr=Ht.prototype;return K.prototype=Yr,[["$ms",a],["$s",d],["$m",o],["$H",l],["$W",u],["$M",c],["$y",E],["$D",O]].forEach(function(he){Yr[he[1]]=function(te){return this.$g(te,he[0],he[1])}}),K.extend=function(he,te){return he.$i||(he(te,Ht,K),he.$i=!0),K},K.locale=Te,K.isDayjs=pe,K.unix=function(he){return K(1e3*he)},K.en=J[k],K.Ls=J,K.p={},K})})(YR);var Y9=YR.exports;const T=AI(Y9);var D=(i=>(i.Error="error",i.Warning="warning",i))(D||{}),j=(i=>(i.InvalidObjectStructure="invalid-object-structure",i.NameNotUniqueInScope="name-not-unique-in-scope",i.EmptyName="empty-name",i.MissingCaller="missing-caller",i.PropertyOverwrite="property-overwrite",i.MethodOverwrite="method-overwrite",i.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",i.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",i.UnreachableEntity="unreachable-entity",i.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",i.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",i.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",i.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",i.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",i))(j||{}),A=(i=>(i.RootReference="root-reference",i.ReferencedEntityNotFound="referenced-entity-not-found",i.EntityIdNotUnique="entity-id-not-unique",i.BuiltInEntityGenerated="built-in-entity-generated",i.BuiltInEntityUpdated="built-in-entity-updated",i.BuiltInEntityDeleted="built-in-entity-deleted",i.UnknownEntityType="unknown-entity-type",i.MissingTypeProperty="missing-type-property",i.MissingIdProperty="missing-id-property",i.BuiltInEntityParent="built-in-entity-parent",i.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",i.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",i.RecommendedImplementOperationAction="recommended-implement-operation-action",i.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",i.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",i.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",i.RecommendedImplementConditionAction="recommended-implement-condition-action",i.InvalidReferenceObjectStructure="invalid-reference-object-structure",i.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",i.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",i.InvalidParentReference="invalid-parent-reference",i.InvalidImplementsReference="invalid-implements-reference",i.InvalidExtendsReference="invalid-extends-reference",i.InvalidGenerationActionPayload="invalid-generation-action-payload",i.InvalidReference="invalid-reference",i.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",i.InvalidUpdateEntityOperation="invalid-update-entity-operation",i.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",i.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",i.UnrecognizedProperty="unrecognized-property",i.SelfReference="self-reference",i.DuplicateReference="duplicate-reference",i.CallerWithIncompatibleScope="caller-with-incompatible-scope",i.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",i.InvalidInputMapDeclaration="invalid-input-map-declaration",i.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",i.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",i.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",i.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",i.OutputOverwrite="output-overwrite",i.InputOverwrite="input-overwrite",i.IncompatibleScope="incompatible-scope",i.InvalidParentUpdate="invalid-parent-update",i.NonInteractiveEntityReferenced="non-interactive-entity-referenced",i.InvalidParentRelationType="invalid-parent-relation-type",i))(A||{}),q=(i=>(i.NoPrimaryKeyProperty="no-primary-key-property",i.ScopeWithoutLogic="scope-without-logic",i.ExtendingAbstractEntity="extending-abstract-entity",i.ImplementingNonAbstractEntity="implementing-non-abstract-entity",i.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",i.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",i.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",i.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",i.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",i.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",i.IncorrectEntityImplementation="incorrect-entity-implementation",i.IncorrectMethodImplementation="incorrect-method-implementation",i.IncorrectPropertyImplementation="incorrect-property-implementation",i.PropertyImplementsNonAbstact="property-implements-non-abstract",i.NonStaticPropertyImplementsStatic="non-static-property-implements-static",i.StaticPropertyImplementsNonStatic="static-property-implements-non-static",i.PropertyImplementsIncompatibleType="property-implements-incompatible-type",i.MissingPropertyImplementation="missing-property-implementation",i.MissingMethodImplementation="missing-method-implementation",i.NoProperties="no-properties",i.ReadingFromIncompatibleType="reading-from-incompatible-type",i.WritingToIncompatibleType="writing-to-incompatible-type",i.InvalidPropertiesCombination="invalid-properties-combination",i.DisconnectedCallableEntity="disconnected-callable-entity",i.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",i.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",i.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",i.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",i.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",i.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",i))(q||{});class P{constructor(s){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");this.id=s.id,this.message=s.message,this.issue=s.issue,this.severity=s.severity,this.code=s.code}toEntityError(s){return this.code in j?new hn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:s}):null}}class hn{constructor(s){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");f(this,"entity");this.id=s.id,this.message=s.message,this.issue=s.issue,this.severity=s.severity,this.code=s.code,this.entity=s.entity}clone(){return new hn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function H9(i){const s=new Set;return i.filter(e=>s.has(e.id)?!1:(s.add(e.id),!0))}function ye(i){const s=i.entity.errors.find(t=>t.id===i.id);return s?{new:!1,error:s}:{new:!0,error:new hn(i)}}function K9(i,s){const e=new Map;return i.forEach(t=>{e.set(t.id,t)}),s.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function ze(i,s){const e=[];return s.forEach(t=>{const r=i.find(a=>a.id===t.id);r?e.push(r):e.push(t)}),e}const ds=m.union([m.string(),m.number(),m.boolean(),m.date()]),HR=m.enum([yt.CurrentDateAndTime,yt.Random,yt.Unique]),Qo=m.object({type:HR,rangeStart:ds.nullable(),rangeEnd:ds.nullable()}),ls=Qo.extend({type:m.literal(yt.Random),rangeStart:ds,rangeEnd:ds}),np=Qo.extend({type:m.literal(yt.Unique),rangeStart:m.null(),rangeEnd:m.null()}),KR=Qo.extend({type:m.literal(yt.CurrentDateAndTime),rangeStart:m.null(),rangeEnd:m.null()}),ed=ls.extend({rangeStart:m.number().nullable(),rangeEnd:m.number().nullable()}),XR=ed.extend({rangeStart:m.number(),rangeEnd:m.null()}),QR=ed.extend({rangeStart:m.null(),rangeEnd:m.number()}),eD=ed.extend({rangeStart:m.number(),rangeEnd:m.number()}),td=ls.extend({rangeStart:m.number().nullable(),rangeEnd:m.number().nullable()}),tD=td.extend({rangeStart:m.number(),rangeEnd:m.null()}),rD=td.extend({rangeStart:m.null(),rangeEnd:m.number()}),iD=td.extend({rangeStart:m.number(),rangeEnd:m.number()}),rd=ls.extend({rangeStart:m.date().nullable(),rangeEnd:m.date().nullable()}),nD=rd.extend({rangeStart:m.date(),rangeEnd:m.null()}),aD=rd.extend({rangeStart:m.null(),rangeEnd:m.date()}),sD=rd.extend({rangeStart:m.date(),rangeEnd:m.date()}),ap=ls.extend({rangeStart:m.null(),rangeEnd:m.null()}),sp=m.union([tD,rD,iD]),op=m.union([XR,QR,eD]),dp=m.union([nD,aD,sD,KR]),lp=m.union([sp,op,dp,np,ap]);function us(){return m.union([m.object({type:m.literal(n.ValueDescriptor)}),m.record(m.string(),m.any())])}function oD(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ValueDescriptor)})}function up(){return m.object({id:m.string(),type:m.literal(n.ValueDescriptor),name:m.string(),required:m.boolean()})}function X9(){return up().merge(m.object({version:m.number(),index:m.number()}))}function Q9(){return up().merge(m.object({}))}function e6(){return m.object({dataType:En(),parent:vn()})}function t6(){return X9().merge(e6())}function id(){return m.union([m.object({type:m.literal(n.PrimitiveEntity)}),m.record(m.string(),m.any())])}function nd(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.PrimitiveEntity)})}function ad(){return m.object({id:m.string(),type:m.literal(n.PrimitiveEntity),name:m.string(),description:m.string().nullable(),static:m.boolean(),abstract:m.boolean()})}function r6(){return ad().merge(m.object({version:m.number()}))}function i6(){return ad().merge(m.object({}))}function n6(){return m.object({properties:m.array(mn()),methods:m.array(pr()),abstractMethods:m.array(xr()),extends:m.array(m.union([id(),la()]))})}function a6(){return r6().merge(n6())}function mn(){return m.union([m.object({type:m.literal(n.Property)}),m.record(m.string(),m.any())])}function dD(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Property)})}function pp(){return m.object({id:m.string(),type:m.literal(n.Property),name:m.string(),description:m.string().nullable(),private:m.boolean(),static:m.boolean(),required:m.boolean(),abstract:m.boolean()})}function s6(){return pp().merge(m.object({version:m.number(),index:m.number()}))}function o6(){return pp().merge(m.object({}))}function d6(){return m.object({dataType:En(),implements:mn().nullable(),parent:m.union([bn(),nd(),sd()])})}function l6(){return s6().merge(d6())}function u6(){return m.enum([Y.CRON_JOB,Y.EXECUTION,Y.HTTP_ENDPOINT,Y.PERSISTED_ENTITY,Y.RELATIONAL_DATABASE])}function la(){return m.union([m.object({type:m.literal(n.BuiltInBaseEntity)}),m.record(m.string(),m.any())])}function sd(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.BuiltInBaseEntity)})}function cp(){return m.object({id:m.string(),version:m.number(),type:m.literal(n.BuiltInBaseEntity),name:u6(),description:m.string().nullable(),abstract:m.boolean(),static:m.boolean()})}function p6(){return cp()}function c6(){return cp().merge(m.object({}))}function f6(){return m.object({properties:m.array(mn()),methods:m.array(pr()),abstractMethods:m.array(xr()),extends:m.array(m.union([la(),id()]))})}function y6(){return p6().merge(f6())}function xr(){return m.union([m.object({type:m.literal(n.ActionDescriptor)}),m.record(m.string(),m.any())])}function vn(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ActionDescriptor)})}function od(){return m.object({id:m.string(),type:m.literal(n.ActionDescriptor),name:m.string(),description:m.string().nullable()})}function h6(){return od().merge(m.object({version:m.number()}))}function m6(){return od().merge(m.object({}))}function v6(){return m.object({inputs:m.array(us()),outputs:m.array(us()),parent:m.union([Xt(),bn(),sd(),nd()]).nullable()})}function lD(){return h6().merge(v6())}function ua(){return m.union([m.object({type:m.literal(n.Loop)}),m.record(m.string(),m.any())])}function Sr(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Loop)})}function uD(){return m.object({id:m.string(),type:m.literal(n.Loop)})}function T6(){return uD().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function E6(){return uD().merge(m.object({declaration:m.union([m.string(),pr()])}))}function I6(){return m.object({calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),declaration:xr(),inputs:m.array(Pr()),outputs:m.array(qt()),outputsDeclarations:m.array(us()),successCalls:m.array(Dt()),errorCalls:m.array(Dt()),error:qt(),body:pr(),parent:m.union([ui(),Xt()]),breakStatements:m.array(ya()),continueStatements:m.array(pa())})}function A6(){return T6().merge(I6())}function pa(){return m.union([m.object({type:m.literal(n.ContinueStatement)}),m.record(m.string(),m.any())])}function ca(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ContinueStatement)})}function fp(){return m.object({id:m.string(),type:m.literal(n.ContinueStatement)})}function b6(){return fp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function R6(){return fp().merge(m.object({}))}function D6(){return m.object({calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),outputs:m.array(oi()),throws:m.optional(oi()),parent:Sr()})}function O6(){return b6().merge(D6())}function Tn(){return m.union([m.object({type:m.literal(n.ReturnStatement)}),m.record(m.string(),m.any())])}function fa(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ReturnStatement)})}function yp(){return m.object({id:m.string(),type:m.literal(n.ReturnStatement)})}function P6(){return yp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function w6(){return yp().merge(m.object({}))}function V6(){return m.object({calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),outputs:m.array(oi()),throws:m.optional(oi()),parent:ui()})}function C6(){return P6().merge(V6())}function oi(){return m.union([m.object({type:m.literal(n.ReturnDeclaration)}),m.record(m.string(),m.any())])}function pD(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ReturnDeclaration)})}function hp(){return m.object({id:m.string(),type:m.literal(n.ReturnDeclaration),name:m.string(),description:m.string().nullable(),isError:m.boolean()})}function B6(){return hp().merge(m.object({version:m.number(),index:m.number()}))}function _6(){return hp().merge(m.object({}))}function M6(){return m.object({dataType:En().nullable(),readsValue:ms().nullable(),parent:m.union([fa(),vn(),di(),ca()])})}function g6(){return B6().merge(M6())}function ya(){return m.union([m.object({type:m.literal(n.BreakStatement)}),m.record(m.string(),m.any())])}function di(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.BreakStatement)})}function mp(){return m.object({id:m.string(),type:m.literal(n.BreakStatement)})}function N6(){return mp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function L6(){return mp().merge(m.object({}))}function U6(){return m.object({calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),outputs:m.array(oi()),throws:m.optional(oi()),parent:Sr()})}function $6(){return N6().merge(U6())}function qt(){return m.union([m.object({type:m.literal(n.OutputMap)}),m.record(m.string(),m.any())])}function vp(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.OutputMap)})}function Tp(){return m.object({id:m.string(),type:m.literal(n.OutputMap)})}function j6(){return Tp().merge(m.object({version:m.number(),index:m.number()}))}function G6(){return Tp().merge(m.object({}))}function F6(){return m.object({writesValues:m.array(li()),declaration:m.union([oi(),mn()]),parent:m.union([et(),Sr(),di()])})}function x6(){return j6().merge(F6())}function ha(){return m.union([m.object({type:m.literal(n.FunctionCall)}),m.record(m.string(),m.any())])}function ps(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.FunctionCall)})}function Ep(){return m.object({id:m.string(),type:m.literal(n.FunctionCall)})}function S6(){return Ep().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function k6(){return Ep().merge(m.object({}))}function Z6(){return m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),writesValues:m.array(li()),declaration:pr(),inputs:m.array(Pr()),outputs:m.array(qt()),error:m.optional(qt()),parent:m.union([ui(),Xt()])})}function q6(){return S6().merge(Z6())}function J6(){return m.enum([pt.Equal,pt.NotEqual,pt.MoreThan,pt.MoreThanOrEqual,pt.LessThan,pt.LessThanOrEqual,pt.And,pt.Or,yr.Empty,yr.NotEmpty])}function cs(){return m.union([m.object({type:m.literal(n.Condition)}),m.record(m.string(),m.any())])}function dd(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Condition)})}function Ip(){return m.object({id:m.string(),type:m.literal(n.Condition)})}function W6(){return Ip().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function z6(){return Ip().merge(m.object({}))}function Y6(){return m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),leftValue:Pr(),rightValue:Pr().nullable(),operator:J6(),parent:m.union([ui(),Xt()])})}function H6(){return W6().merge(Y6())}function fs(){return m.union([m.object({type:m.literal(n.Search)}),m.record(m.string(),m.any())])}function ys(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Search)})}function Ap(){return m.object({id:m.string(),type:m.literal(n.Search),name:m.string(),query:m.any(),description:m.string().nullable()})}function K6(){return Ap().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function X6(){return Ap().merge(m.object({}))}function Q6(){return m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),inputsDeclarations:m.array(An()),inputs:m.array(Pr()),outputsDeclarations:m.array(us()),outputs:m.array(qt()),parent:m.union([ui(),Xt()]),error:qt().nullable()})}function e3(){return K6().merge(Q6())}function hs(){return m.union([m.object({type:m.literal(n.InternalCall)}),m.record(m.string(),m.any())])}function bp(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.InternalCall)})}function Rp(){return m.object({id:m.string(),type:m.literal(n.InternalCall),index:m.number()})}function t3(){return Rp().merge(m.object({version:m.number(),index:m.number()}))}function r3(){return Rp().merge(m.object({declaration:m.union([m.string(),pr()])}))}function i3(){return m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),writesValues:m.array(li()),declaration:pr(),inputs:m.array(Pr()),outputs:m.array(qt()),parent:Pi(),error:m.optional(qt())})}function n3(){return t3().merge(i3())}function Pr(){return m.union([m.object({type:m.literal(n.InputMap)}),m.record(m.string(),m.any())])}function ld(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.InputMap)})}function Dp(){return m.object({id:m.string(),type:m.literal(n.InputMap),name:m.string().nullable().optional(),description:m.string().nullable().optional()})}function a3(){return Dp().merge(m.object({version:m.number(),index:m.number()}))}function s3(){return Dp().merge(m.object({}))}function o3(){return m.object({defaultValue:Op().nullable(),declaration:m.union([An(),mn()]).nullable(),readsValue:ms().nullable(),parent:m.union([et(),ld(),Sr(),di()])})}function d3(){return a3().merge(o3())}function ma(){return m.union([m.object({type:m.literal(n.Operation)}),m.record(m.string(),m.any())])}function va(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.Operation)})}function ud(){return m.object({id:m.string(),type:m.literal(n.Operation)})}function l3(){return ud().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function u3(){return ud().merge(m.object({}))}function p3(){return ud().merge(m.object({successCalls:m.array(Dt()),errorCalls:m.array(Dt()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),writesValues:m.array(li()),declaration:xr(),inputs:m.array(Pr()),outputs:m.array(qt()),error:m.array(qt()),parent:m.union([ui(),Xt()])}))}function c3(){return l3().merge(p3())}function pd(){return m.union([m.string(),m.number(),m.boolean(),m.null(),m.date()])}function cD(){return m.record(m.string(),pd())}function f3(){return m.array(m.union([pd(),cD()]))}function fD(){return m.union([pd(),cD(),f3()])}function yD(){return m.union([pd(),fD()])}function hD(){return m.enum([g.String,g.Number,g.Boolean,g.Null,g.Date,g.KeyValue,g.Enum,g.File,g.UUID,g.EntityTemplate,g.ActionDescriptor])}function mD(){return m.union([bn(),va(),vs()])}function y3(){return m.object({id:m.string(),name:hD(),type:m.literal(n.LiteralValue),value:yD(),autogeneration:lp.nullable()})}function h3(){return y3().merge(m.object({}))}function wr(){return m.object({id:m.string(),version:m.number(),name:hD(),type:m.literal(n.LiteralValue),value:yD(),valueAsTypeList:m.array(mD()).nullable(),valueAsTypeSingle:mD().nullable(),autogeneration:lp.nullable(),parent:m.union([Pp(),ld()])})}function m3(){return wr().extend({name:m.literal(g.String),value:m.string(),autogeneration:sp.nullable()})}function v3(){return wr().extend({name:m.literal(g.Number),value:m.number(),autogeneration:op.nullable()})}function T3(){return wr().extend({name:m.literal(g.Boolean),value:m.boolean(),autogeneration:ap.nullable()})}function E3(){return wr().extend({name:m.literal(g.Null),value:m.null(),autogeneration:m.null()})}function I3(){return wr().extend({name:m.literal(g.Date),value:m.date(),autogeneration:dp.nullable()})}function A3(){return wr().extend({name:m.literal(g.KeyValue),value:fD(),autogeneration:m.null()})}function b3(){return wr().extend({name:m.literal(g.Enum),value:m.string(),autogeneration:m.null()})}function R3(){return wr().extend({name:m.literal(g.File),value:m.string(),autogeneration:m.null()})}function D3(){return wr().extend({name:m.literal(g.UUID),value:m.string(),autogeneration:np.nullable()})}function O3(){return wr().extend({name:m.literal(g.EntityTemplate),value:bn(),autogeneration:m.null()})}function P3(){return wr().extend({name:m.literal(g.ActionDescriptor),value:vs(),autogeneration:m.null()})}function Op(){return m.union([m3(),v3(),T3(),E3(),I3(),A3(),b3(),R3(),D3(),O3(),P3()])}function En(){return m.union([m.object({type:m.literal(n.DataType)}),m.record(m.string(),m.any())])}function Pp(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.DataType)})}function wp(){return m.object({id:m.string(),type:m.literal(n.DataType),isNullable:m.boolean(),isList:m.boolean(),constant:m.boolean(),asType:m.boolean(),options:m.array(m.string()).optional()})}function w3(){return wp().merge(m.object({version:m.number()}))}function V3(){return wp().merge(m.object({}))}function C3(){return m.object({defaultValue:Op().nullable(),entity:m.union([Ta(),la(),id(),xr()]).nullable(),parent:m.union([dD(),ED(),oD()])})}function B3(){return w3().merge(C3())}function Vp(){return m.union([m.object({type:m.literal(n.VariableDeclaration)}),m.record(m.string(),m.any())])}function _3(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.VariableDeclaration)})}function Cp(){return m.object({id:m.string(),type:m.literal(n.VariableDeclaration),name:m.string(),description:m.string().nullable()})}function M3(){return Cp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function g3(){return Cp().merge(m.object({}))}function N3(){return m.object({dataType:En().nullable(),readsValue:ms().nullable(),writesValues:m.array(li()),inputs:m.array(Pr()),outputs:m.array(qt()),successCalls:m.array(Dt()),errorCalls:m.array(Dt()),internalCalls:m.array(hs()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),parent:m.union([ui(),Xt()])})}function L3(){return M3().merge(N3())}function vD(){return m.union([m.object({type:m.literal(n.VariableInstance)}),m.record(m.string(),m.any())])}function U3(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.VariableInstance)})}function Bp(){return m.object({id:m.string(),type:m.literal(n.VariableInstance)})}function $3(){return Bp().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function j3(){return Bp().merge(m.object({}))}function G3(){return m.object({declaration:Vp(),dataType:En().nullable(),readsValue:ms().nullable(),writesValues:m.array(li()),inputs:m.array(Pr()),outputs:m.array(qt()),successCalls:m.array(Dt()),errorCalls:m.array(Dt()),internalCalls:m.array(hs()),calledBySuccess:m.array(et()),calledByError:m.array(et()),calledByEntry:m.array(At()),parent:m.union([ui(),Xt()])})}function F3(){return $3().merge(G3())}function _p(){return m.union([m.object({type:m.literal(n.InstalledProject)}),m.record(m.string(),m.any())])}function cd(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.InstalledProject)})}function x3(){return m.object({id:m.string(),type:m.literal(n.InstalledProject)})}function S3(){return m.object({version:m.number(),x:m.number(),y:m.number()})}function k3(){return m.object({})}function Z3(){return m.object({implements:Xt(),description:m.string().nullable(),functions:m.array(pr()),events:m.array(Mp()),parent:Xt()})}function q3(){return S3().merge(Z3())}function Mp(){return m.union([m.object({type:m.literal(n.GlobalEvent)}),m.record(m.string(),m.any())])}function J3(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.GlobalEvent)})}function fd(){return m.object({id:m.string(),type:m.literal(n.GlobalEvent),name:m.string(),collapsed:m.boolean()})}function W3(){return fd().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function z3(){return fd().merge(m.object({}))}function Y3(){return fd().merge(m.object({returnStatements:m.array(Tn()),implements:m.array(lD()),inputs:m.array(An()),calls:m.array(Dt()),parent:m.union([Xt(),cd()])}))}function H3(){return W3().merge(Y3())}function In(){return m.union([Vp(),vD()])}function Pi(){return m.union([_3(),U3()])}function li(){return m.union([In(),Pr(),oi()])}function TD(){return m.union([Pi(),ld(),pD()])}function ms(){return m.union([In(),An(),qt(),ma(),hs(),ha()])}function K3(){return m.union([Pi(),gp(),vp(),va(),bp(),ps()])}function X3(){return m.union([An(),qt(),li()])}function ED(){return m.union([gp(),vp(),TD()])}function yd(){return Mp()}function hd(){return J3()}function md(){return m.union([ma(),ha(),cs(),fs(),In(),hs(),ua()])}function et(){return m.union([va(),ps(),dd(),ys(),Pi(),bp(),Sr()])}function vd(){return m.union([ma(),ha(),cs(),fs(),In(),ua()])}function Td(){return m.union([va(),ps(),dd(),ys(),Pi(),Sr()])}function ID(){return m.union([md(),Tn(),ya(),pa()])}function Dt(){return m.union([et(),fa(),di(),ca()])}function AD(){return m.union([vd(),Tn(),ya(),pa()])}function bD(){return m.union([Td(),fa(),di(),ca()])}function wi(){return m.union([pr(),yd()])}function At(){return m.union([vs(),hd()])}function Q3(){return m.union([md(),wi()])}function e5(){return m.union([et(),At()])}function t5(){return m.union([vd(),wi()])}function r5(){return m.union([Td(),At()])}function i5(){return m.union([ID(),wi()])}function n5(){return m.union([Dt(),At()])}function a5(){return m.union([AD(),wi()])}function s5(){return m.union([bD(),At()])}function o5(){return m.union([wi(),ua()])}function ui(){return m.union([At(),Sr()])}function d5(){return m.union([md(),wi()])}function l5(){return m.union([et(),At()])}function u5(){return m.union([vd(),wi()])}function p5(){return m.union([Td(),At()])}function c5(){return m.union([Tn(),ya(),pa()])}function f5(){return m.union([fa(),di(),ca()])}function y5(){return m.union([la(),P5(),_p(),Ta(),pr(),yd(),In(),Pr(),qt(),cs(),ma(),ha(),oi(),An(),id(),En(),mn(),xr(),Tn(),pa(),ya(),ua(),fs(),xr(),xr(),us(),hs()])}function h5(){return m.union([sd(),Xt(),cd(),bn(),vs(),hd(),Pi(),ld(),vp(),dd(),va(),ps(),pD(),gp(),nd(),Pp(),dD(),vn(),fa(),ca(),di(),Sr(),ys(),vn(),vn(),oD(),bp()])}function m5(){return m.union([_p(),Ta(),pr(),yd(),In(),cs(),ma(),ha(),Tn(),pa(),ya(),ua(),fs()])}function v5(){return m.union([cd(),bn(),vs(),hd(),Pi(),dd(),va(),ps(),fa(),ca(),di(),Sr(),ys()])}function An(){return m.union([m.object({type:m.literal(n.ArgumentDeclaration)}),m.record(m.string(),m.any())])}function gp(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.ArgumentDeclaration)})}function Np(){return m.object({id:m.string(),type:m.literal(n.ArgumentDeclaration)})}function T5(){return Np().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function E5(){return Np().merge(m.object({}))}function I5(){return m.object({dataType:En().nullable(),writesValues:m.array(li()),parent:m.union([At(),vn(),vn(),ys(),di()])})}function A5(){return T5().merge(I5())}function pr(){return m.union([m.object({type:m.literal(n.FunctionDeclaration)}),m.record(m.string(),m.any())])}function vs(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.FunctionDeclaration)})}function Lp(){return m.object({id:m.string(),type:m.literal(n.FunctionDeclaration),name:m.string(),description:m.string().nullable()})}function b5(){return Lp().merge(m.object({version:m.number(),x:m.number(),y:m.number(),index:m.number().nullable()}))}function R5(){return Lp()}function D5(){return m.object({inputs:m.array(An()),implements:xr().nullable(),returnStatements:m.array(Tn()),parent:m.union([Xt(),cd(),bn(),Sr(),sd(),nd()])})}function O5(){return b5().merge(D5())}function P5(){return m.union([m.object({type:m.literal(n.Project)}),m.record(m.string(),m.any())])}function Xt(){return m.object({entityType:m.literal(n.Project),entityId:m.string(),id:m.string(),type:m.literal(n.GenericReference)})}function Up(){return m.object({id:m.string(),type:m.literal(n.Project),name:m.string(),description:m.string().nullable()})}function w5(){return Up().merge(m.object({version:m.number()}))}function V5(){return Up()}function C5(){return m.object({entities:m.array(Ta()),functions:m.array(pr()),events:m.array(Mp()),projects:m.array(_p()),variableDeclarations:m.array(Vp()),variableInstances:m.array(vD()),conditions:m.array(cs()),operations:m.array(ma()),functionCalls:m.array(ha()),loops:m.array(ua()),searches:m.array(fs())})}function B5(){return w5().merge(C5())}function Ta(){return m.union([m.object({type:m.literal(n.DefinitionEntity)}),m.record(m.string(),m.any())])}function bn(){return m.object({id:m.string(),type:m.literal(n.GenericReference),entityId:m.string(),entityType:m.literal(n.DefinitionEntity)})}function $p(){return m.object({id:m.string(),type:m.literal(n.DefinitionEntity),name:m.string(),description:m.string().nullable(),static:m.boolean(),abstract:m.boolean()})}function _5(){return $p().merge(m.object({version:m.number(),x:m.number(),y:m.number()}))}function M5(){return $p().merge(m.object({}))}function g5(){return m.union([Xt(),Pp()])}function N5(){return m.object({properties:m.array(mn()),methods:m.array(pr()),abstractMethods:m.array(xr()),extends:m.array(m.union([Ta(),la()])),implements:m.array(m.union([Ta(),la()])),parent:g5()})}function L5(){return _5().merge(N5())}function U5(i){const s=L5(),e=i.toJSON();s.safeParse(e).success;const r=i.implements.flatMap(h=>G5(i,h)),a=i.extends.flatMap(h=>F5(i,h)),d=S5(i),o=x5(i);i.methods.flatMap(h=>h.validate());const l=[...r,...a,...d,...o];return ze(i.errors,l)}function $5(i,s){const e=s.properties.filter(a=>a.abstract),t=[];let r=[...i.properties];return e.forEach(a=>{const d=r.find(o=>{var l;return((l=o.implements)==null?void 0:l.id)===a.id});d?r=r.filter(o=>o.id!==d.id):t.push(a)}),t}function j5(i,s){const e=s.abstractMethods,t=[];let r=[...i.methods];return e.forEach(a=>{const d=r.find(o=>{var l;return((l=o.implements)==null?void 0:l.id)===a.id});d?r=r.filter(o=>o.id!==d.id):t.push(a)}),t}function G5(i,s){const e=[];if(!s.abstract){const h=ye({id:i.id+"--"+q.ImplementingNonAbstractEntity,message:`Entity "${i.name}" with id "${i.id}" is implementing a non-abstract entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:q.ImplementingNonAbstractEntity,entity:i});return e.push(h.error),e}const t=s.properties.filter(h=>h.abstract),r=[];let a=[...i.properties];t.forEach(h=>{const c=a.find(v=>{var E;return((E=v.implements)==null?void 0:E.id)===h.id});c?a=a.filter(v=>v.id!==c.id):r.push(h)}),r.length&&r.forEach(h=>{const c=ye({id:i.id+"--"+q.MissingPropertyImplementation+"--"+h.id,message:`Property "${h.name}" with id "${h.id}" of entity "${s.name}" with id "${s.id}" is not implemented when entity "${i.name}" with id "${i.id}" implements it`,issue:null,severity:D.Error,code:q.MissingPropertyImplementation,entity:i});e.push(c.error)});const d=[];let o=[...i.methods];s.abstractMethods.forEach(h=>{const c=o.find(v=>{var E;return((E=v.implements)==null?void 0:E.id)===h.id});c?o=o.filter(v=>v.id!==c.id):d.push(h)}),d.length&&d.forEach(h=>{const c=ye({id:i.id+"--"+q.MissingMethodImplementation+"--"+h.id,message:`Method "${h.name}" with id "${h.id}" of entity "${s.name}" with id "${s.id}" is not implemented when entity "${i.name}" with id "${i.id}" implements it`,issue:null,severity:D.Error,code:q.MissingMethodImplementation,entity:i});e.push(c.error)});const l=[];s.properties.forEach(h=>{const c=a.find(v=>v.name===h.name);c&&l.push([c,h])}),l.length&&l.forEach(([h])=>{const c=ye({id:i.id+"--"+j.PropertyOverwrite+"--"+h.id,message:`Property "${h.name}" with id "${h.id}" of entity "${i.name}" with id "${i.id}" overwrites the property with the same name from the base entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:j.PropertyOverwrite,entity:i});e.push(c.error)});const u=[];return s.methods.forEach(h=>{const c=o.find(v=>v.name===h.name);c&&u.push([c,h])}),u.length&&u.forEach(([h])=>{const c=ye({id:i.id+"--"+j.MethodOverwrite+"--"+h.id,message:`Method "${h.name}" with id "${h.id}" of entity "${i.name}" with id "${i.id}" overwrites the method with the same name from the base entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:j.MethodOverwrite,entity:i});e.push(c.error)}),e}function F5(i,s){const e=[],t=[];if(s.abstract){const a=ye({id:i.id+"--"+q.ExtendingAbstractEntity,message:`Entity "${i.name}" with id "${i.id}" is extending an abstract entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:q.ExtendingAbstractEntity,entity:i});return e.push(a.error),e}i.properties.forEach(a=>{var o;const d=s.properties.find(l=>l.name===a.name);((o=a.implements)==null?void 0:o.id)!==(d==null?void 0:d.id)&&d&&t.push(a)}),t.length&&t.forEach(a=>{const d=ye({id:i.id+"--"+j.PropertyOverwrite,message:`Property "${a.name}" with id "${a.id}" of entity "${i.name}" with id "${i.id}" overwrites the property with the same name from the extended entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:j.PropertyOverwrite,entity:i});e.push(d.error)});const r=[];return i.methods.forEach(a=>{var o;const d=s.methods.find(l=>l.name===a.name);((o=a.implements)==null?void 0:o.id)!==(d==null?void 0:d.id)&&d&&r.push(a)}),r.length&&r.forEach(a=>{const d=ye({id:i.id+"--"+j.MethodOverwrite,message:`Method "${a.name}" with id "${a.id}" of entity "${i.name}" with id "${i.id}" overwrites the method with the same name from the extended entity "${s.name}" with id "${s.id}"`,issue:null,severity:D.Error,code:j.MethodOverwrite,entity:i});e.push(d.error)}),e}function x5(i){const s=[];if(!i.properties.length){const e=ye({id:i.id+"--"+q.NoProperties,message:"No properties implemented",issue:null,severity:D.Warning,code:q.NoProperties,entity:i});s.push(e.error)}return i.properties.forEach(e=>{e.validate()}),s}function S5(i){const s=[];if(i.abstract){if(i.methods.length){const e=ye({id:i.id+"--"+q.AbstractEntityWithNonAbstractMethods,message:`Entity "${i.name}" with id "${i.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:D.Error,code:q.AbstractEntityWithNonAbstractMethods,entity:i});s.push(e.error)}if(i.properties.some(e=>!e.abstract)){const e=ye({id:i.id+"--"+q.AbstractEntityWithNonAbstractProperties,message:`Entity "${i.name}" with id "${i.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:D.Error,code:q.AbstractEntityWithNonAbstractProperties,entity:i});s.push(e.error),i.properties.forEach(t=>{if(!t.abstract){const r=ye({id:i.id+"--"+q.StaticEntityWithNonStaticProperties+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:D.Error,code:q.StaticEntityWithNonStaticProperties,entity:i});s.push(r.error)}})}}else{if(i.abstractMethods.length){const e=ye({id:i.id+"--"+q.AbstractPropertyInNonAbstractEntity,message:`Entity "${i.name}" with id "${i.id}" is not marked as abstract but has abstract methods`,issue:null,severity:D.Error,code:q.AbstractPropertyInNonAbstractEntity,entity:i});s.push(e.error)}if(i.properties.some(e=>e.abstract)){const e=ye({id:i.id+"--"+q.AbstractMethodInNonAbstractEntity,message:`Entity "${i.name}" with id "${i.id}" is not marked as abstract but has abstract properties`,issue:null,severity:D.Error,code:q.AbstractMethodInNonAbstractEntity,entity:i});s.push(e.error),i.properties.forEach(t=>{if(t.abstract){const r=ye({id:i.id+"--"+q.AbstractMethodInNonAbstractEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:D.Error,code:q.AbstractMethodInNonAbstractEntity,entity:i});s.push(r.error)}})}}if(i.static&&i.properties.some(e=>!e.static)){const e=ye({id:i.id+"--"+q.StaticEntityWithNonStaticProperties,message:`Entity "${i.name}" with id "${i.id}" is marked as static but has non-static properties`,issue:null,severity:D.Error,code:q.StaticEntityWithNonStaticProperties,entity:i});s.push(e.error),i.properties.forEach(t=>{if(!t.static){const r=ye({id:i.id+"--"+q.NonStaticPropertyInStaticEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is not marked as static but the entity is marked as static`,issue:null,severity:D.Error,code:q.NonStaticPropertyInStaticEntity,entity:i});s.push(r.error)}})}return s}function k5(i){return i instanceof Error&&i.name==="ZodError"&&"issues"in i&&Array.isArray(i.issues)}var Z5=class extends Error{constructor(s,e){super(s,e);f(this,"name");f(this,"details");this.name="ZodValidationError",this.details=q5(e)}toString(){return this.message}};function q5(i){if(i){const s=i.cause;if(k5(s))return s.issues}return[]}function J5(i){return i.length!==0}var W5=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function z5(i){return i.length===1?i[0].toString():i.reduce((s,e)=>{if(typeof e=="number")return s+"["+e.toString()+"]";if(e.includes('"'))return s+'["'+Y5(e)+'"]';if(!W5.test(e))return s+'["'+e+'"]';const t=s.length===0?"":".";return s+t+e},"")}function Y5(i){return i.replace(/"/g,'\\"')}var H5="; ",K5=99,RD="Validation error",X5=": ",Q5=", or ";function eZ(i={}){const{issueSeparator:s=H5,unionSeparator:e=Q5,prefixSeparator:t=X5,prefix:r=RD,includePath:a=!0,maxIssuesInMessage:d=K5}=i;return o=>{const l=o.slice(0,d).map(u=>Ed({issue:u,issueSeparator:s,unionSeparator:e,includePath:a})).join(s);return tZ(l,r,t)}}function Ed(i){const{issue:s,issueSeparator:e,unionSeparator:t,includePath:r}=i;if(s.code===S.invalid_union)return s.unionErrors.reduce((a,d)=>{const o=d.issues.map(l=>Ed({issue:l,issueSeparator:e,unionSeparator:t,includePath:r})).join(e);return a.includes(o)||a.push(o),a},[]).join(t);if(s.code===S.invalid_arguments)return[s.message,...s.argumentsError.issues.map(a=>Ed({issue:a,issueSeparator:e,unionSeparator:t,includePath:r}))].join(e);if(s.code===S.invalid_return_type)return[s.message,...s.returnTypeError.issues.map(a=>Ed({issue:a,issueSeparator:e,unionSeparator:t,includePath:r}))].join(e);if(r&&J5(s.path)){if(s.path.length===1){const a=s.path[0];if(typeof a=="number")return`${s.message} at index ${a}`}return`${s.message} at "${z5(s.path)}"`}return s.message}function tZ(i,s,e){return s!==null?i.length>0?[s,i].join(e):s:i.length>0?i:RD}function rZ(i,s={}){const t=iZ(s)([i]);return new Z5(t,{cause:new Kt([i])})}function iZ(i){return"messageBuilder"in i?i.messageBuilder:eZ(i)}var DD="1.13.7",OD=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Id=Array.prototype,jp=Object.prototype,PD=typeof Symbol<"u"?Symbol.prototype:null,nZ=Id.push,Ts=Id.slice,Es=jp.toString,aZ=jp.hasOwnProperty,wD=typeof ArrayBuffer<"u",sZ=typeof DataView<"u",oZ=Array.isArray,VD=Object.keys,CD=Object.create,BD=wD&&ArrayBuffer.isView,dZ=isNaN,lZ=isFinite,_D=!{toString:null}.propertyIsEnumerable("toString"),MD=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],uZ=Math.pow(2,53)-1;function Qt(i,s){return s=s==null?i.length-1:+s,function(){for(var e=Math.max(arguments.length-s,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+s];switch(s){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var a=Array(s+1);for(r=0;r<s;r++)a[r]=arguments[r];return a[s]=t,i.apply(this,a)}}function Vi(i){var s=typeof i;return s==="function"||s==="object"&&!!i}function pZ(i){return i===null}function gD(i){return i===void 0}function ND(i){return i===!0||i===!1||Es.call(i)==="[object Boolean]"}function cZ(i){return!!(i&&i.nodeType===1)}function $t(i){var s="[object "+i+"]";return function(e){return Es.call(e)===s}}const Gp=$t("String"),LD=$t("Number"),fZ=$t("Date"),yZ=$t("RegExp"),hZ=$t("Error"),UD=$t("Symbol"),$D=$t("ArrayBuffer");var jD=$t("Function"),mZ=OD.document&&OD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof mZ!="function"&&(jD=function(i){return typeof i=="function"||!1});const Jt=jD,GD=$t("Object");var FD=sZ&&(!/\[native code\]/.test(String(DataView))||GD(new DataView(new ArrayBuffer(8)))),Fp=typeof Map<"u"&&GD(new Map),vZ=$t("DataView");function TZ(i){return i!=null&&Jt(i.getInt8)&&$D(i.buffer)}const Ad=FD?TZ:vZ,Rn=oZ||$t("Array");function Ci(i,s){return i!=null&&aZ.call(i,s)}var xp=$t("Arguments");(function(){xp(arguments)||(xp=function(i){return Ci(i,"callee")})})();const Sp=xp;function EZ(i){return!UD(i)&&lZ(i)&&!isNaN(parseFloat(i))}function xD(i){return LD(i)&&dZ(i)}function SD(i){return function(){return i}}function kD(i){return function(s){var e=i(s);return typeof e=="number"&&e>=0&&e<=uZ}}function ZD(i){return function(s){return s==null?void 0:s[i]}}const bd=ZD("byteLength"),IZ=kD(bd);var AZ=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function bZ(i){return BD?BD(i)&&!Ad(i):IZ(i)&&AZ.test(Es.call(i))}const qD=wD?bZ:SD(!1),er=ZD("length");function RZ(i){for(var s={},e=i.length,t=0;t<e;++t)s[i[t]]=!0;return{contains:function(r){return s[r]===!0},push:function(r){return s[r]=!0,i.push(r)}}}function JD(i,s){s=RZ(s);var e=MD.length,t=i.constructor,r=Jt(t)&&t.prototype||jp,a="constructor";for(Ci(i,a)&&!s.contains(a)&&s.push(a);e--;)a=MD[e],a in i&&i[a]!==r[a]&&!s.contains(a)&&s.push(a)}function wt(i){if(!Vi(i))return[];if(VD)return VD(i);var s=[];for(var e in i)Ci(i,e)&&s.push(e);return _D&&JD(i,s),s}function Is(i){if(i==null)return!0;var s=er(i);return typeof s=="number"&&(Rn(i)||Gp(i)||Sp(i))?s===0:er(wt(i))===0}function WD(i,s){var e=wt(s),t=e.length;if(i==null)return!t;for(var r=Object(i),a=0;a<t;a++){var d=e[a];if(s[d]!==r[d]||!(d in r))return!1}return!0}function Ye(i){if(i instanceof Ye)return i;if(!(this instanceof Ye))return new Ye(i);this._wrapped=i}Ye.VERSION=DD,Ye.prototype.value=function(){return this._wrapped},Ye.prototype.valueOf=Ye.prototype.toJSON=Ye.prototype.value,Ye.prototype.toString=function(){return String(this._wrapped)};function zD(i){return new Uint8Array(i.buffer||i,i.byteOffset||0,bd(i))}var YD="[object DataView]";function kp(i,s,e,t){if(i===s)return i!==0||1/i===1/s;if(i==null||s==null)return!1;if(i!==i)return s!==s;var r=typeof i;return r!=="function"&&r!=="object"&&typeof s!="object"?!1:HD(i,s,e,t)}function HD(i,s,e,t){i instanceof Ye&&(i=i._wrapped),s instanceof Ye&&(s=s._wrapped);var r=Es.call(i);if(r!==Es.call(s))return!1;if(FD&&r=="[object Object]"&&Ad(i)){if(!Ad(s))return!1;r=YD}switch(r){case"[object RegExp]":case"[object String]":return""+i==""+s;case"[object Number]":return+i!=+i?+s!=+s:+i==0?1/+i===1/s:+i==+s;case"[object Date]":case"[object Boolean]":return+i==+s;case"[object Symbol]":return PD.valueOf.call(i)===PD.valueOf.call(s);case"[object ArrayBuffer]":case YD:return HD(zD(i),zD(s),e,t)}var a=r==="[object Array]";if(!a&&qD(i)){var d=bd(i);if(d!==bd(s))return!1;if(i.buffer===s.buffer&&i.byteOffset===s.byteOffset)return!0;a=!0}if(!a){if(typeof i!="object"||typeof s!="object")return!1;var o=i.constructor,l=s.constructor;if(o!==l&&!(Jt(o)&&o instanceof o&&Jt(l)&&l instanceof l)&&"constructor"in i&&"constructor"in s)return!1}e=e||[],t=t||[];for(var u=e.length;u--;)if(e[u]===i)return t[u]===s;if(e.push(i),t.push(s),a){if(u=i.length,u!==s.length)return!1;for(;u--;)if(!kp(i[u],s[u],e,t))return!1}else{var h=wt(i),c;if(u=h.length,wt(s).length!==u)return!1;for(;u--;)if(c=h[u],!(Ci(s,c)&&kp(i[c],s[c],e,t)))return!1}return e.pop(),t.pop(),!0}function DZ(i,s){return kp(i,s)}function As(i){if(!Vi(i))return[];var s=[];for(var e in i)s.push(e);return _D&&JD(i,s),s}function Zp(i){var s=er(i);return function(e){if(e==null)return!1;var t=As(e);if(er(t))return!1;for(var r=0;r<s;r++)if(!Jt(e[i[r]]))return!1;return i!==QD||!Jt(e[qp])}}var qp="forEach",KD="has",Jp=["clear","delete"],XD=["get",KD,"set"],OZ=Jp.concat(qp,XD),QD=Jp.concat(XD),PZ=["add"].concat(Jp,qp,KD);const wZ=Fp?Zp(OZ):$t("Map"),VZ=Fp?Zp(QD):$t("WeakMap"),CZ=Fp?Zp(PZ):$t("Set"),BZ=$t("WeakSet");function Ea(i){for(var s=wt(i),e=s.length,t=Array(e),r=0;r<e;r++)t[r]=i[s[r]];return t}function _Z(i){for(var s=wt(i),e=s.length,t=Array(e),r=0;r<e;r++)t[r]=[s[r],i[s[r]]];return t}function e1(i){for(var s={},e=wt(i),t=0,r=e.length;t<r;t++)s[i[e[t]]]=e[t];return s}function Wp(i){var s=[];for(var e in i)Jt(i[e])&&s.push(e);return s.sort()}function zp(i,s){return function(e){var t=arguments.length;if(s&&(e=Object(e)),t<2||e==null)return e;for(var r=1;r<t;r++)for(var a=arguments[r],d=i(a),o=d.length,l=0;l<o;l++){var u=d[l];(!s||e[u]===void 0)&&(e[u]=a[u])}return e}}const t1=zp(As),Rd=zp(wt),r1=zp(As,!0);function MZ(){return function(){}}function i1(i){if(!Vi(i))return{};if(CD)return CD(i);var s=MZ();s.prototype=i;var e=new s;return s.prototype=null,e}function gZ(i,s){var e=i1(i);return s&&Rd(e,s),e}function NZ(i){return Vi(i)?Rn(i)?i.slice():t1({},i):i}function LZ(i,s){return s(i),i}function n1(i){return Rn(i)?i:[i]}Ye.toPath=n1;function bs(i){return Ye.toPath(i)}function Yp(i,s){for(var e=s.length,t=0;t<e;t++){if(i==null)return;i=i[s[t]]}return e?i:void 0}function a1(i,s,e){var t=Yp(i,bs(s));return gD(t)?e:t}function UZ(i,s){s=bs(s);for(var e=s.length,t=0;t<e;t++){var r=s[t];if(!Ci(i,r))return!1;i=i[r]}return!!e}function Hp(i){return i}function Rs(i){return i=Rd({},i),function(s){return WD(s,i)}}function Kp(i){return i=bs(i),function(s){return Yp(s,i)}}function Ds(i,s,e){if(s===void 0)return i;switch(e??3){case 1:return function(t){return i.call(s,t)};case 3:return function(t,r,a){return i.call(s,t,r,a)};case 4:return function(t,r,a,d){return i.call(s,t,r,a,d)}}return function(){return i.apply(s,arguments)}}function s1(i,s,e){return i==null?Hp:Jt(i)?Ds(i,s,e):Vi(i)&&!Rn(i)?Rs(i):Kp(i)}function Xp(i,s){return s1(i,s,1/0)}Ye.iteratee=Xp;function tr(i,s,e){return Ye.iteratee!==Xp?Ye.iteratee(i,s):s1(i,s,e)}function $Z(i,s,e){s=tr(s,e);for(var t=wt(i),r=t.length,a={},d=0;d<r;d++){var o=t[d];a[o]=s(i[o],o,i)}return a}function o1(){}function jZ(i){return i==null?o1:function(s){return a1(i,s)}}function GZ(i,s,e){var t=Array(Math.max(0,i));s=Ds(s,e,1);for(var r=0;r<i;r++)t[r]=s(r);return t}function Qp(i,s){return s==null&&(s=i,i=0),i+Math.floor(Math.random()*(s-i+1))}const Os=Date.now||function(){return new Date().getTime()};function d1(i){var s=function(a){return i[a]},e="(?:"+wt(i).join("|")+")",t=RegExp(e),r=RegExp(e,"g");return function(a){return a=a==null?"":""+a,t.test(a)?a.replace(r,s):a}}const l1={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},FZ=d1(l1),xZ=e1(l1),SZ=d1(xZ),kZ=Ye.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ec=/(.)^/,ZZ={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},qZ=/\\|'|\r|\n|\u2028|\u2029/g;function JZ(i){return"\\"+ZZ[i]}var WZ=/^\s*(\w|\$)+\s*$/;function zZ(i,s,e){!s&&e&&(s=e),s=r1({},s,Ye.templateSettings);var t=RegExp([(s.escape||ec).source,(s.interpolate||ec).source,(s.evaluate||ec).source].join("|")+"|$","g"),r=0,a="__p+='";i.replace(t,function(u,h,c,v,E){return a+=i.slice(r,E).replace(qZ,JZ),r=E+u.length,h?a+=`'+
|
|
25
25
|
((__t=(`+h+`))==null?'':_.escape(__t))+
|
|
26
26
|
'`:c?a+=`'+
|
|
27
27
|
((__t=(`+c+`))==null?'':__t)+
|
|
@@ -33,14 +33,14 @@ __p+='`),u}),a+=`';
|
|
|
33
33
|
`,d="obj";a=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
|
34
34
|
`+a+`return __p;
|
|
35
35
|
`;var o;try{o=new Function(d,"_",a)}catch(u){throw u.source=a,u}var l=function(u){return o.call(this,u,Ye)};return l.source="function("+d+`){
|
|
36
|
-
`+a+"}",l}function YZ(i,s,e){s=bs(s);var t=s.length;if(!t)return Jt(e)?e.call(i):e;for(var r=0;r<t;r++){var a=i==null?void 0:i[s[r]];a===void 0&&(a=e,r=t),i=Jt(a)?a.call(i):a}return i}var HZ=0;function KZ(i){var s=++HZ+"";return i?i+s:s}function XZ(i){var s=Ye(i);return s._chain=!0,s}function u1(i,s,e,t,r){if(!(t instanceof s))return i.apply(e,r);var a=i1(i.prototype),d=i.apply(a,r);return Vi(d)?d:a}var Ia=Qt(function(i,s){var e=Ia.placeholder,t=function(){for(var r=0,a=s.length,d=Array(a),o=0;o<a;o++)d[o]=s[o]===e?arguments[r++]:s[o];for(;r<arguments.length;)d.push(arguments[r++]);return u1(i,t,this,this,d)};return t});Ia.placeholder=Ye;const p1=Qt(function(i,s,e){if(!Jt(i))throw new TypeError("Bind must be called on a function");var t=Qt(function(r){return u1(i,t,s,this,e.concat(r))});return t}),cr=kD(er);function Dn(i,s,e,t){if(t=t||[],!s&&s!==0)s=1/0;else if(s<=0)return t.concat(i);for(var r=t.length,a=0,d=er(i);a<d;a++){var o=i[a];if(cr(o)&&(Rn(o)||Sp(o)))if(s>1)Dn(o,s-1,e,t),r=t.length;else for(var l=0,u=o.length;l<u;)t[r++]=o[l++];else e||(t[r++]=o)}return t}const QZ=Qt(function(i,s){s=Dn(s,!1,!1);var e=s.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=s[e];i[t]=p1(i[t],i)}return i});function e7(i,s){var e=function(t){var r=e.cache,a=""+(s?s.apply(this,arguments):t);return Ci(r,a)||(r[a]=i.apply(this,arguments)),r[a]};return e.cache={},e}const c1=Qt(function(i,s,e){return setTimeout(function(){return i.apply(null,e)},s)}),t7=Ia(c1,Ye,1);function r7(i,s,e){var t,r,a,d,o=0;e||(e={});var l=function(){o=e.leading===!1?0:Os(),t=null,d=i.apply(r,a),t||(r=a=null)},u=function(){var h=Os();!o&&e.leading===!1&&(o=h);var c=s-(h-o);return r=this,a=arguments,c<=0||c>s?(t&&(clearTimeout(t),t=null),o=h,d=i.apply(r,a),t||(r=a=null)):!t&&e.trailing!==!1&&(t=setTimeout(l,c)),d};return u.cancel=function(){clearTimeout(t),o=0,t=r=a=null},u}function i7(i,s,e){var t,r,a,d,o,l=function(){var h=Os()-r;s>h?t=setTimeout(l,s-h):(t=null,e||(d=i.apply(o,a)),t||(a=o=null))},u=Qt(function(h){return o=this,a=h,r=Os(),t||(t=setTimeout(l,s),e&&(d=i.apply(o,a))),d});return u.cancel=function(){clearTimeout(t),t=a=o=null},u}function n7(i,s){return Ia(s,i)}function tc(i){return function(){return!i.apply(this,arguments)}}function a7(){var i=arguments,s=i.length-1;return function(){for(var e=s,t=i[s].apply(this,arguments);e--;)t=i[e].call(this,t);return t}}function s7(i,s){return function(){if(--i<1)return s.apply(this,arguments)}}function f1(i,s){var e;return function(){return--i>0&&(e=s.apply(this,arguments)),i<=1&&(s=null),e}}const o7=Ia(f1,2);function y1(i,s,e){s=tr(s,e);for(var t=Pt(i),r,a=0,d=t.length;a<d;a++)if(r=t[a],s(i[r],r,i))return r}function h1(i){return function(s,e,t){e=tr(e,t);for(var r=er(s),a=i>0?0:r-1;a>=0&&a<r;a+=i)if(e(s[a],a,s))return a;return-1}}const rc=h1(1),m1=h1(-1);function v1(i,s,e,t){e=tr(e,t,1);for(var r=e(s),a=0,d=er(i);a<d;){var o=Math.floor((a+d)/2);e(i[o])<r?a=o+1:d=o}return a}function T1(i,s,e){return function(t,r,a){var d=0,o=er(t);if(typeof a=="number")i>0?d=a>=0?a:Math.max(a+o,d):o=a>=0?Math.min(a+1,o):a+o+1;else if(e&&a&&o)return a=e(t,r),t[a]===r?a:-1;if(r!==r)return a=s(Ts.call(t,d,o),xD),a>=0?a+d:-1;for(a=i>0?d:o-1;a>=0&&a<o;a+=i)if(t[a]===r)return a;return-1}}const E1=T1(1,rc,v1),d7=T1(-1,m1);function ic(i,s,e){var t=cr(i)?rc:y1,r=t(i,s,e);if(r!==void 0&&r!==-1)return i[r]}function l7(i,s){return ic(i,Rs(s))}function pi(i,s,e){s=Ds(s,e);var t,r;if(cr(i))for(t=0,r=i.length;t<r;t++)s(i[t],t,i);else{var a=Pt(i);for(t=0,r=a.length;t<r;t++)s(i[a[t]],a[t],i)}return i}function On(i,s,e){s=tr(s,e);for(var t=!cr(i)&&Pt(i),r=(t||i).length,a=Array(r),d=0;d<r;d++){var o=t?t[d]:d;a[d]=s(i[o],o,i)}return a}function I1(i){var s=function(e,t,r,a){var d=!cr(e)&&Pt(e),o=(d||e).length,l=i>0?0:o-1;for(a||(r=e[d?d[l]:l],l+=i);l>=0&&l<o;l+=i){var u=d?d[l]:l;r=t(r,e[u],u,e)}return r};return function(e,t,r,a){var d=arguments.length>=3;return s(e,Ds(t,a,4),r,d)}}const nc=I1(1),A1=I1(-1);function Aa(i,s,e){var t=[];return s=tr(s,e),pi(i,function(r,a,d){s(r,a,d)&&t.push(r)}),t}function u7(i,s,e){return Aa(i,tc(tr(s)),e)}function b1(i,s,e){s=tr(s,e);for(var t=!cr(i)&&Pt(i),r=(t||i).length,a=0;a<r;a++){var d=t?t[a]:a;if(!s(i[d],d,i))return!1}return!0}function R1(i,s,e){s=tr(s,e);for(var t=!cr(i)&&Pt(i),r=(t||i).length,a=0;a<r;a++){var d=t?t[a]:a;if(s(i[d],d,i))return!0}return!1}function ci(i,s,e,t){return cr(i)||(i=Ea(i)),(typeof e!="number"||t)&&(e=0),E1(i,s,e)>=0}const p7=Qt(function(i,s,e){var t,r;return Jt(s)?r=s:(s=bs(s),t=s.slice(0,-1),s=s[s.length-1]),On(i,function(a){var d=r;if(!d){if(t&&t.length&&(a=Yp(a,t)),a==null)return;d=a[s]}return d==null?d:d.apply(a,e)})});function ac(i,s){return On(i,Kp(s))}function c7(i,s){return Aa(i,Rs(s))}function D1(i,s,e){var t=-1/0,r=-1/0,a,d;if(s==null||typeof s=="number"&&typeof i[0]!="object"&&i!=null){i=cr(i)?i:Ea(i);for(var o=0,l=i.length;o<l;o++)a=i[o],a!=null&&a>t&&(t=a)}else s=tr(s,e),pi(i,function(u,h,c){d=s(u,h,c),(d>r||d===-1/0&&t===-1/0)&&(t=u,r=d)});return t}function f7(i,s,e){var t=1/0,r=1/0,a,d;if(s==null||typeof s=="number"&&typeof i[0]!="object"&&i!=null){i=cr(i)?i:Ea(i);for(var o=0,l=i.length;o<l;o++)a=i[o],a!=null&&a<t&&(t=a)}else s=tr(s,e),pi(i,function(u,h,c){d=s(u,h,c),(d<r||d===1/0&&t===1/0)&&(t=u,r=d)});return t}var y7=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function O1(i){return i?Rn(i)?Ts.call(i):Gp(i)?i.match(y7):cr(i)?On(i,Hp):Ea(i):[]}function P1(i,s,e){if(s==null||e)return cr(i)||(i=Ea(i)),i[Qp(i.length-1)];var t=O1(i),r=er(t);s=Math.max(Math.min(s,r),0);for(var a=r-1,d=0;d<s;d++){var o=Qp(d,a),l=t[d];t[d]=t[o],t[o]=l}return t.slice(0,s)}function h7(i){return P1(i,1/0)}function m7(i,s,e){var t=0;return s=tr(s,e),ac(On(i,function(r,a,d){return{value:r,index:t++,criteria:s(r,a,d)}}).sort(function(r,a){var d=r.criteria,o=a.criteria;if(d!==o){if(d>o||d===void 0)return 1;if(d<o||o===void 0)return-1}return r.index-a.index}),"value")}function Dd(i,s){return function(e,t,r){var a=s?[[],[]]:{};return t=tr(t,r),pi(e,function(d,o){var l=t(d,o,e);i(a,d,l)}),a}}const v7=Dd(function(i,s,e){Ci(i,e)?i[e].push(s):i[e]=[s]}),T7=Dd(function(i,s,e){i[e]=s}),E7=Dd(function(i,s,e){Ci(i,e)?i[e]++:i[e]=1}),I7=Dd(function(i,s,e){i[e?0:1].push(s)},!0);function A7(i){return i==null?0:cr(i)?i.length:Pt(i).length}function b7(i,s,e){return s in e}const w1=Qt(function(i,s){var e={},t=s[0];if(i==null)return e;Jt(t)?(s.length>1&&(t=Ds(t,s[1])),s=As(i)):(t=b7,s=Dn(s,!1,!1),i=Object(i));for(var r=0,a=s.length;r<a;r++){var d=s[r],o=i[d];t(o,d,i)&&(e[d]=o)}return e}),R7=Qt(function(i,s){var e=s[0],t;return Jt(e)?(e=tc(e),s.length>1&&(t=s[1])):(s=On(Dn(s,!1,!1),String),e=function(r,a){return!ci(s,a)}),w1(i,e,t)});function V1(i,s,e){return Ts.call(i,0,Math.max(0,i.length-(s==null||e?1:s)))}function sc(i,s,e){return i==null||i.length<1?s==null||e?void 0:[]:s==null||e?i[0]:V1(i,i.length-s)}function Od(i,s,e){return Ts.call(i,s==null||e?1:s)}function D7(i,s,e){return i==null||i.length<1?s==null||e?void 0:[]:s==null||e?i[i.length-1]:Od(i,Math.max(0,i.length-s))}function O7(i){return Aa(i,Boolean)}function P7(i,s){return Dn(i,s,!1)}const C1=Qt(function(i,s){return s=Dn(s,!0,!0),Aa(i,function(e){return!ci(s,e)})}),w7=Qt(function(i,s){return C1(i,s)});function oc(i,s,e,t){ND(s)||(t=e,e=s,s=!1),e!=null&&(e=tr(e,t));for(var r=[],a=[],d=0,o=er(i);d<o;d++){var l=i[d],u=e?e(l,d,i):l;s&&!e?((!d||a!==u)&&r.push(l),a=u):e?ci(a,u)||(a.push(u),r.push(l)):ci(r,l)||r.push(l)}return r}const V7=Qt(function(i){return oc(Dn(i,!0,!0))});function C7(i){for(var s=[],e=arguments.length,t=0,r=er(i);t<r;t++){var a=i[t];if(!ci(s,a)){var d;for(d=1;d<e&&ci(arguments[d],a);d++);d===e&&s.push(a)}}return s}function dc(i){for(var s=i&&D1(i,er).length||0,e=Array(s),t=0;t<s;t++)e[t]=ac(i,t);return e}const B7=Qt(dc);function _7(i,s){for(var e={},t=0,r=er(i);t<r;t++)s?e[i[t]]=s[t]:e[i[t][0]]=i[t][1];return e}function M7(i,s,e){s==null&&(s=i||0,i=0),e||(e=s<i?-1:1);for(var t=Math.max(Math.ceil((s-i)/e),0),r=Array(t),a=0;a<t;a++,i+=e)r[a]=i;return r}function g7(i,s){if(s==null||s<1)return[];for(var e=[],t=0,r=i.length;t<r;)e.push(Ts.call(i,t,t+=s));return e}function lc(i,s){return i._chain?Ye(s).chain():s}function B1(i){return pi(Wp(i),function(s){var e=Ye[s]=i[s];Ye.prototype[s]=function(){var t=[this._wrapped];return nZ.apply(t,arguments),lc(this,e.apply(Ye,t))}}),Ye}pi(["pop","push","reverse","shift","sort","splice","unshift"],function(i){var s=Id[i];Ye.prototype[i]=function(){var e=this._wrapped;return e!=null&&(s.apply(e,arguments),(i==="shift"||i==="splice")&&e.length===0&&delete e[0]),lc(this,e)}}),pi(["concat","join","slice"],function(i){var s=Id[i];Ye.prototype[i]=function(){var e=this._wrapped;return e!=null&&(e=s.apply(e,arguments)),lc(this,e)}});var _1=B1(Object.freeze(Object.defineProperty({__proto__:null,VERSION:DD,after:s7,all:b1,allKeys:As,any:R1,assign:Rd,before:f1,bind:p1,bindAll:QZ,chain:XZ,chunk:g7,clone:NZ,collect:On,compact:O7,compose:a7,constant:SD,contains:ci,countBy:E7,create:gZ,debounce:i7,default:Ye,defaults:r1,defer:t7,delay:c1,detect:ic,difference:C1,drop:Od,each:pi,escape:FZ,every:b1,extend:t1,extendOwn:Rd,filter:Aa,find:ic,findIndex:rc,findKey:y1,findLastIndex:m1,findWhere:l7,first:sc,flatten:P7,foldl:nc,foldr:A1,forEach:pi,functions:Wp,get:a1,groupBy:v7,has:UZ,head:sc,identity:Hp,include:ci,includes:ci,indexBy:T7,indexOf:E1,initial:V1,inject:nc,intersection:C7,invert:e1,invoke:p7,isArguments:Sp,isArray:Rn,isArrayBuffer:$D,isBoolean:ND,isDataView:Ad,isDate:fZ,isElement:cZ,isEmpty:Is,isEqual:DZ,isError:hZ,isFinite:EZ,isFunction:Jt,isMap:wZ,isMatch:WD,isNaN:xD,isNull:pZ,isNumber:LD,isObject:Vi,isRegExp:yZ,isSet:CZ,isString:Gp,isSymbol:UD,isTypedArray:qD,isUndefined:gD,isWeakMap:VZ,isWeakSet:BZ,iteratee:Xp,keys:Pt,last:D7,lastIndexOf:d7,map:On,mapObject:$Z,matcher:Rs,matches:Rs,max:D1,memoize:e7,methods:Wp,min:f7,mixin:B1,negate:tc,noop:o1,now:Os,object:_7,omit:R7,once:o7,pairs:_Z,partial:Ia,partition:I7,pick:w1,pluck:ac,property:Kp,propertyOf:jZ,random:Qp,range:M7,reduce:nc,reduceRight:A1,reject:u7,rest:Od,restArguments:Qt,result:YZ,sample:P1,select:Aa,shuffle:h7,size:A7,some:R1,sortBy:m7,sortedIndex:v1,tail:Od,take:sc,tap:LZ,template:zZ,templateSettings:kZ,throttle:r7,times:GZ,toArray:O1,toPath:n1,transpose:dc,unescape:SZ,union:V7,uniq:oc,unique:oc,uniqueId:KZ,unzip:dc,values:Ea,where:c7,without:w7,wrap:n7,zip:B7},Symbol.toStringTag,{value:"Module"})));_1._=_1;function Wt(i){return i.charAt(0).toUpperCase()+i.slice(1)}function Pd(i){return i.charAt(0).toLowerCase()+i.slice(1)}function M1(i,s){if(i.type!==n.Property||s.type!==n.Property)throw new Error(`Expected property entities for comparison. But got ${i.type} and ${s.type}.`);return i===s||i.id===s.id?!0:i.name!==s.name||i.static!==s.static||i.abstract!==s.abstract?!1:Ir(i.dataType,s.dataType).compatible}function g1(i,s){if(i.type!==n.DefinitionEntity||s.type!==n.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${i.type} and ${s.type}.`);if(i===s||i.id===s.id)return!0;if(i.properties.length!==s.properties.length)return!1;let e=[...s.properties];const t=[];for(let r=0;r<i.properties.length;r++){const a=i.properties[r];e.find(o=>{const l=M1(a,o);return l&&(e=e.filter(u=>u.id!==o.id)),l})||t.push(a)}return!(t.length>0)}var Er=(i=>(i.BothUnconstrained="both-unconstrained",i.AConstraintBUnconstrained="a-constraint-b-unconstrained",i.BConstraintAUnconstrained="b-constraint-a-unconstrained",i.Same="same",i.AIsListBIsNot="a-is-list-b-is-not",i.BIsListAIsNot="b-is-list-a-is-not",i.AIsNullableBIsNot="a-is-nullable-b-is-not",i.BIsNullableAIsNot="b-is-nullable-a-is-not",i.AIsTemplateBIsNot="a-is-template-b-is-not",i.BIsTemplateAIsNot="b-is-template-a-is-not",i.BothUntyped="both-untyped",i.AIsUntypedBIsNot="a-is-untyped-b-is-not",i.BIsUntypedAIsNot="b-is-untyped-a-is-not",i.TypeEntityMismatch="type-entity-mismatch",i.SameDefinitionEntities="same-definition-entities",i.CompatibleDefinitionEntities="compatible-definition-entities",i.IncompatibleDefinitionEntities="incompatible-definition-entities",i.SamePrimitiveEntities="same-primitive-entities",i.IncompatiblePrimitiveEntities="incompatible-primitive-entities",i.SameBuiltInBaseEntities="same-built-in-base-entities",i.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",i.CheckUnknown="check-unknown",i))(Er||{});function Ir(i,s){var e,t,r,a,d,o,l,u,h,c,v;if(i&&i.type!==n.DataType||s&&s.type!==n.DataType)throw new Error(`Expected data-type entities for comparison. But got ${i==null?void 0:i.type} and ${s==null?void 0:s.type}.`);if(i===null&&s===null)return{compatible:!0,type:"both-unconstrained"};if(i===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(s===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(i===s)return{compatible:!0,type:"same"};if(i.id===s.id)return{compatible:!0,type:"same"};if(i.isList!==s.isList)return{compatible:!1,type:i.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(i.asType!==s.asType)return{compatible:!1,type:i.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!i.entity&&s.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(i.entity&&!s.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!i.entity&&!s.entity)return{compatible:!0,type:"both-untyped"};if(((e=i.entity)==null?void 0:e.type)!==((t=s.entity)==null?void 0:t.type))return{compatible:!1,type:"type-entity-mismatch"};if(((r=i.entity)==null?void 0:r.type)===n.DefinitionEntity){if(((a=i.entity)==null?void 0:a.id)===((d=s.entity)==null?void 0:d.id))return{compatible:!0,type:"same-definition-entities"};const E=g1(i.entity,s.entity);return{compatible:E,type:E?"compatible-definition-entities":"incompatible-definition-entities"}}return((o=i.entity)==null?void 0:o.type)===n.PrimitiveEntity?((l=i.entity)==null?void 0:l.id)===((u=s.entity)==null?void 0:u.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((h=i.entity)==null?void 0:h.type)===n.BuiltInBaseEntity?((c=i.entity)==null?void 0:c.id)===((v=s.entity)==null?void 0:v.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function N7(i,s){const e=i.project.builtInBaseEntities.find(a=>a.id===Y.EXECUTION),t={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(s==null?void 0:s.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},r=V(t,i.project);return r.inferred=!0,s==null||s.add(r,b.Added),r.metaSync(t,s),r.setParent(i,s),r.entity=e,r}function N1(i,s=null){return i.dataType?i.dataType:null}function uc(i,s=null){var t;const e=(t=i.declaration)==null?void 0:t.getDataType(s);return e&&e.isResolved?e:i.readsValue?kr(i.readsValue,s):null}function pc(i,s=null){return i.dataType&&!i.dataType.inferred&&i.dataType.isResolved?i.dataType:i.readsValue?kr(i.readsValue,s):null}function L1(i,s=null){return kr(i.declaration,s)}function U1(i,s=null){return i.dataType&&!i.dataType.inferred?i.dataType:i.dataType&&i.dataType.inferred||!i.dataType?(i.inferDataTypeAndSyncInstancesInputsAndOutputs(s),i.dataType):null}function cc(i,s=null){var e;return((e=i.declaration)==null?void 0:e.dataType)||null}function $1(i,s=null){return(i==null?void 0:i.dataType)||null}function j1(i,s=null){return(i==null?void 0:i.dataType)||null}function kr(i,s=null){switch(i.type){case n.VariableDeclaration:return U1(i,s);case n.ArgumentDeclaration:return N1(i,s);case n.ReturnDeclaration:return pc(i,s);case n.VariableInstance:return L1(i,s);case n.InputMap:return uc(i,s);case n.OutputMap:return cc(i,s);case n.Property:return $1(i,s);case n.ValueDescriptor:return j1(i,s);default:throw new Error(`Cannot infer data type from entity of type ${i.type}.`)}}function wd(i,s=null){switch(i.type){case n.ArgumentDeclaration:return i.getDataType(s);case n.InputMap:return i.getDataType(s);case n.VariableDeclaration:return i.getDataType(s);case n.VariableInstance:return i.getDataType(s);case n.OutputMap:return i.getDataType(s);case n.ReturnDeclaration:return i.getDataType(s);case n.Property:return i.getDataType(s);case n.ValueDescriptor:return i.getDataType(s);default:return null}}function B(i){if(i){let s=null;return typeof i=="string"?s=i:i.entityId?s=i.entityId:i.type!==n.GenericReference&&(s=i.id),s}return null}function Pn(i){return i.declaration||i}function L7(i){return i.type===n.VariableDeclaration?i.parent===i.project?"global-declaration":"local-declaration":i.declaration.parent===i.project?"global-instance":"local-instance"}function fc(i,s){const e=[];if(i.type===n.Project)e.push(...i.variableDeclarations);else{const r=zt(it(i)).filter(a=>a.type===n.VariableDeclaration);e.push(...r),i.parent&&(mt.includes(i.parent.type)||i.parent.type===n.Project)&&e.push(...fc(i.parent))}return e}function U7(i){return i.split(/[\s-]+/).filter(t=>t.length>0).map((t,r)=>r===0?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function $7(i){return i.split(/[\s-]+/).filter(t=>t.length>0).map(t=>t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function G1(i){var s;return(s=i.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:s.map(e=>e.toLowerCase()).join("-")}function Vd(i){return G1(i).toLowerCase()}function Cd(i){var s,e;if(!i)return"Any data type";if(!i.entity){const t=i.isList;if(!((s=i.andChildrenGroup)!=null&&s.length)&&!((e=i.orChildrenGroup)!=null&&e.length))return t?"List of an any data type":"Any data type";let r="",a=!1,d=!1;return(i.andChildrenGroup||[]).forEach(o=>{const l=Cd(o),u=Pd(l);a&&(r+=" and "),o.isGroup?r+="("+u+")":a?r+=u:r+=l,a=!0,d=!0}),(i.orChildrenGroup||[]).forEach(o=>{const l=Cd(o),u=Pd(l);a&&(d&&(r+=","),r+=" or "),o.isGroup?r+="("+u+")":a?r+=u:r+=l,a=!0}),r}if(i.entity.type===n.PrimitiveEntity){let t=i.entity.name;switch(i.entity.name){case g.String:t="Text";break;case g.KeyValue:t="Data structure";break}return i.isList?`List of ${t}s`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}else if(i.entity.type===n.DefinitionEntity){const t=F(i.entity,i.project);return i.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else if(i.entity.type===n.BuiltInBaseEntity){const t=x1(i.entity);return i.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else return i.isList?`List of ${i.entity.name} entities`:`${i.entity.name.slice(0,1).toUpperCase()+i.entity.name.slice(1)} entity`}function j7(i){if(!i)return"Any data type";const s=i.getDataType(null);return Cd(s)}function Bd(i){switch(i.declaration.id){case pt.Equal:return"is equal to";case pt.NotEqual:return"is not equal to";case pt.MoreThan:return"is greater than";case pt.MoreThanOrEqual:return"is greater than or equal to";case pt.LessThan:return"is less than";case pt.LessThanOrEqual:return"is less than or equal to";case pt.And:return"and";case pt.Or:return"or";case yr.Empty:return"is empty";case yr.NotEmpty:return"is not empty"}}function F1(i){return i.includes(Y.HTTP_ENDPOINT)?"HTTP endpoint":i.includes(Y.PERSISTED_ENTITY)?"Persisted entity":i.includes(Y.CRON_JOB)?"Scheduled execution":i.includes(Y.RELATIONAL_DATABASE)?"Relational database":"Entity"}function x1(i){switch(i.name){case Y.HTTP_ENDPOINT:return"HTTP endpoint";case Y.PERSISTED_ENTITY:return"Persisted entity";case Y.CRON_JOB:return"Scheduled execution";case Y.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function G7(i){const s=qc(i);if(!s){const e=Zc(i);return e.includes(Y.HTTP_ENDPOINT)?"HTTP endpoint":e.includes(Y.PERSISTED_ENTITY)?"Persisted entity":e.includes(Y.CRON_JOB)?"Scheduled execution":e.includes(Y.RELATIONAL_DATABASE)?"Relational database":F(i,i.project)+" entity"}return F(s,i.project)+" entity"}function S1(i){let s="Find ";return i.outputsDeclarations.forEach((e,t)=>{const r=wd(e,null),a=Pd(r&&r.entity?F(r.entity,i.project):"unstructured data");t===0?s+=`${a} `:t===i.outputsDeclarations.length-1?s+=`and ${a} `:s+=`, ${a} `}),s}function k1(i){switch(i.name){case g.String:return"Text";case g.Number:return"Number";case g.Boolean:return"Boolean";case g.KeyValue:return"Data structure";case g.UUID:return"Unique identifier";case g.Date:return"Date";case g.EntityTemplate:return"Entity as template";case g.Enum:return"Enumeration";case g.File:return"File";case g.Null:return"Empty";case g.ActionDescriptor:return"Action descriptor";case g.Untyped:return"Untyped";default:return i.name}}function Z1(i){switch(i.id){case X.List:return"Loop over list items";case X.ManualFlow:return"Manual flow control loop";case X.ObjectKeys:return"Loop over object keys";case X.ObjectValues:return"Loop over object values";case X.Counted:return"Loop given number of times";case X.String:return"Loop over text characters";case Xe.Addition:return"Sum numbers";case Xe.Subtraction:return"Subtract numbers";case Xe.Multiplication:return"Multiply numbers";case Xe.Division:return"Divide numbers";case Xe.Remainder:return"Get remainder of numbers";case Xe.Exponentiation:return"Get exponent of numbers";case Ee.AddIndex:return"Add at index position";case Ee.DeleteFirst:return"Delete first character";case Ee.DeleteLast:return"Delete last character";case Ee.DeleteIndex:return"Delete at index position";case Ee.Join:return"Join texts";case Ee.ReplaceAllMatches:return"Replace all matches";case Ee.ReplaceFirst:return"Replace first match";case Ee.ReplaceLast:return"Replace last match";case Ee.Split:return"Split text";case Ee.ReplaceIndex:return"Replace at index position";case Ee.ReplaceSingleMatch:return"Replace single match";case Ee.GetFirst:return"Get first character";case Ee.GetLast:return"Get last character";case Ee.GetIndex:return"Get at index position";case Ee.Append:return"Add at the end";case Ee.Prepend:return"Add at the start";case He.Wait:return"Wait";case He.Parallel:return"Run in parallel";case He.Sequential:return"Run in sequence";case Ct.HttpRequest:return"HTTP request";case Ke.CreateNewInstance:return"Create new copy of entity";case fe.AddIndex:return"Add item at index position";case fe.DeleteFirst:return"Delete first item";case fe.DeleteLast:return"Delete last item";case fe.DeleteIndex:return"Delete item at index position";case fe.Join:return"Join lists";case fe.ReplaceAllMatches:return"Replace all matches";case fe.ReplaceFirst:return"Replace first match";case fe.ReplaceLast:return"Replace last match";case fe.Split:return"Split list";case fe.ReplaceIndex:return"Replace at index position";case fe.ReplaceSingleMatch:return"Replace single match";case fe.GetFirst:return"Get first item";case fe.GetLast:return"Get last item";case fe.GetIndex:return"Get item at index position";case fe.Append:return"Add item at the end";case fe.Prepend:return"Add item at the start";case Hr.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(i.name.slice(0,1).toUpperCase()+i.name.slice(1)).replaceAll("-"," ")}}function F(i,s){var e;if(n.FunctionDeclaration===i.type){const t=i.name;if(Object.values(or).includes(t))switch(t){case or.AbortExecution:return"Abort execution";case or.DeletePersistedEntity:return"Delete persisted entity";case or.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return Wt(i.type).replaceAll("-"," ")}return t}if(n.BuiltInBaseEntity===i.type)return F1([i.name]);if(tf.includes(i.type)&&i.type!==n.ActionDescriptor)return i.name;switch(i.type){case n.Search:return S1(i);case n.Operation:case n.InternalCall:case n.Loop:const t=nr(i.declaration,s);return F(t,s);case n.ActionDescriptor:return Z1(i);case n.BreakStatement:const r=nr(i.parent,s);return`Stop loop ${F(r,s)}`;case n.ContinueStatement:const a=nr(i.parent,s);return`Execute next iteration of ${F(a,s)}`;case n.FunctionCall:return nr(i.declaration,s).name;case n.Condition:{const o=i;if((e=i.inputs)!=null&&e.length){const l=F(o.inputs[0],o.project);if(o.inputs[1]){const u=o.inputs[1].declaration.name;return`If ${l} ${Bd(o)} ${u}`}return`If ${l} ${Bd(o)}`}else return`If ${Bd(o)}`}case n.ReturnStatement:{const o=nr(i.parent,s);return`Output of ${F(o,s)}`}case n.InputMap:if(i.declaration){const o=nr(i.declaration,s);return F(o,s)||""}else return i.name||"";case n.VariableInstance:{const o=nr(i.declaration,s);return F(o,s)||""}case n.OutputMap:if(i.declaration){const o=nr(i.declaration,s);return(o==null?void 0:o.name)||""}else return"";case n.PrimitiveEntity:case n.LiteralValue:return k1(i);default:return Wt(i.type).replaceAll("-"," ")}}function yc(i,s){const e=[];i.name||e.push(new P({id:`${i.id}--${j.EmptyName}`,message:`Entity with id "${i.id}" and type "${i.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=s.entities.filter(r=>r.name===i.name);return t.length&&e.push(new P({id:`${i.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${i.id}" and type "${i.type}" has a name "${i.name}" that is not unique in the project. Entity with id "${t[0].id}" has the same name.
|
|
36
|
+
`+a+"}",l}function YZ(i,s,e){s=bs(s);var t=s.length;if(!t)return Jt(e)?e.call(i):e;for(var r=0;r<t;r++){var a=i==null?void 0:i[s[r]];a===void 0&&(a=e,r=t),i=Jt(a)?a.call(i):a}return i}var HZ=0;function KZ(i){var s=++HZ+"";return i?i+s:s}function XZ(i){var s=Ye(i);return s._chain=!0,s}function u1(i,s,e,t,r){if(!(t instanceof s))return i.apply(e,r);var a=i1(i.prototype),d=i.apply(a,r);return Vi(d)?d:a}var Ia=Qt(function(i,s){var e=Ia.placeholder,t=function(){for(var r=0,a=s.length,d=Array(a),o=0;o<a;o++)d[o]=s[o]===e?arguments[r++]:s[o];for(;r<arguments.length;)d.push(arguments[r++]);return u1(i,t,this,this,d)};return t});Ia.placeholder=Ye;const p1=Qt(function(i,s,e){if(!Jt(i))throw new TypeError("Bind must be called on a function");var t=Qt(function(r){return u1(i,t,s,this,e.concat(r))});return t}),cr=kD(er);function Dn(i,s,e,t){if(t=t||[],!s&&s!==0)s=1/0;else if(s<=0)return t.concat(i);for(var r=t.length,a=0,d=er(i);a<d;a++){var o=i[a];if(cr(o)&&(Rn(o)||Sp(o)))if(s>1)Dn(o,s-1,e,t),r=t.length;else for(var l=0,u=o.length;l<u;)t[r++]=o[l++];else e||(t[r++]=o)}return t}const QZ=Qt(function(i,s){s=Dn(s,!1,!1);var e=s.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=s[e];i[t]=p1(i[t],i)}return i});function e7(i,s){var e=function(t){var r=e.cache,a=""+(s?s.apply(this,arguments):t);return Ci(r,a)||(r[a]=i.apply(this,arguments)),r[a]};return e.cache={},e}const c1=Qt(function(i,s,e){return setTimeout(function(){return i.apply(null,e)},s)}),t7=Ia(c1,Ye,1);function r7(i,s,e){var t,r,a,d,o=0;e||(e={});var l=function(){o=e.leading===!1?0:Os(),t=null,d=i.apply(r,a),t||(r=a=null)},u=function(){var h=Os();!o&&e.leading===!1&&(o=h);var c=s-(h-o);return r=this,a=arguments,c<=0||c>s?(t&&(clearTimeout(t),t=null),o=h,d=i.apply(r,a),t||(r=a=null)):!t&&e.trailing!==!1&&(t=setTimeout(l,c)),d};return u.cancel=function(){clearTimeout(t),o=0,t=r=a=null},u}function i7(i,s,e){var t,r,a,d,o,l=function(){var h=Os()-r;s>h?t=setTimeout(l,s-h):(t=null,e||(d=i.apply(o,a)),t||(a=o=null))},u=Qt(function(h){return o=this,a=h,r=Os(),t||(t=setTimeout(l,s),e&&(d=i.apply(o,a))),d});return u.cancel=function(){clearTimeout(t),t=a=o=null},u}function n7(i,s){return Ia(s,i)}function tc(i){return function(){return!i.apply(this,arguments)}}function a7(){var i=arguments,s=i.length-1;return function(){for(var e=s,t=i[s].apply(this,arguments);e--;)t=i[e].call(this,t);return t}}function s7(i,s){return function(){if(--i<1)return s.apply(this,arguments)}}function f1(i,s){var e;return function(){return--i>0&&(e=s.apply(this,arguments)),i<=1&&(s=null),e}}const o7=Ia(f1,2);function y1(i,s,e){s=tr(s,e);for(var t=wt(i),r,a=0,d=t.length;a<d;a++)if(r=t[a],s(i[r],r,i))return r}function h1(i){return function(s,e,t){e=tr(e,t);for(var r=er(s),a=i>0?0:r-1;a>=0&&a<r;a+=i)if(e(s[a],a,s))return a;return-1}}const rc=h1(1),m1=h1(-1);function v1(i,s,e,t){e=tr(e,t,1);for(var r=e(s),a=0,d=er(i);a<d;){var o=Math.floor((a+d)/2);e(i[o])<r?a=o+1:d=o}return a}function T1(i,s,e){return function(t,r,a){var d=0,o=er(t);if(typeof a=="number")i>0?d=a>=0?a:Math.max(a+o,d):o=a>=0?Math.min(a+1,o):a+o+1;else if(e&&a&&o)return a=e(t,r),t[a]===r?a:-1;if(r!==r)return a=s(Ts.call(t,d,o),xD),a>=0?a+d:-1;for(a=i>0?d:o-1;a>=0&&a<o;a+=i)if(t[a]===r)return a;return-1}}const E1=T1(1,rc,v1),d7=T1(-1,m1);function ic(i,s,e){var t=cr(i)?rc:y1,r=t(i,s,e);if(r!==void 0&&r!==-1)return i[r]}function l7(i,s){return ic(i,Rs(s))}function pi(i,s,e){s=Ds(s,e);var t,r;if(cr(i))for(t=0,r=i.length;t<r;t++)s(i[t],t,i);else{var a=wt(i);for(t=0,r=a.length;t<r;t++)s(i[a[t]],a[t],i)}return i}function On(i,s,e){s=tr(s,e);for(var t=!cr(i)&&wt(i),r=(t||i).length,a=Array(r),d=0;d<r;d++){var o=t?t[d]:d;a[d]=s(i[o],o,i)}return a}function I1(i){var s=function(e,t,r,a){var d=!cr(e)&&wt(e),o=(d||e).length,l=i>0?0:o-1;for(a||(r=e[d?d[l]:l],l+=i);l>=0&&l<o;l+=i){var u=d?d[l]:l;r=t(r,e[u],u,e)}return r};return function(e,t,r,a){var d=arguments.length>=3;return s(e,Ds(t,a,4),r,d)}}const nc=I1(1),A1=I1(-1);function Aa(i,s,e){var t=[];return s=tr(s,e),pi(i,function(r,a,d){s(r,a,d)&&t.push(r)}),t}function u7(i,s,e){return Aa(i,tc(tr(s)),e)}function b1(i,s,e){s=tr(s,e);for(var t=!cr(i)&&wt(i),r=(t||i).length,a=0;a<r;a++){var d=t?t[a]:a;if(!s(i[d],d,i))return!1}return!0}function R1(i,s,e){s=tr(s,e);for(var t=!cr(i)&&wt(i),r=(t||i).length,a=0;a<r;a++){var d=t?t[a]:a;if(s(i[d],d,i))return!0}return!1}function ci(i,s,e,t){return cr(i)||(i=Ea(i)),(typeof e!="number"||t)&&(e=0),E1(i,s,e)>=0}const p7=Qt(function(i,s,e){var t,r;return Jt(s)?r=s:(s=bs(s),t=s.slice(0,-1),s=s[s.length-1]),On(i,function(a){var d=r;if(!d){if(t&&t.length&&(a=Yp(a,t)),a==null)return;d=a[s]}return d==null?d:d.apply(a,e)})});function ac(i,s){return On(i,Kp(s))}function c7(i,s){return Aa(i,Rs(s))}function D1(i,s,e){var t=-1/0,r=-1/0,a,d;if(s==null||typeof s=="number"&&typeof i[0]!="object"&&i!=null){i=cr(i)?i:Ea(i);for(var o=0,l=i.length;o<l;o++)a=i[o],a!=null&&a>t&&(t=a)}else s=tr(s,e),pi(i,function(u,h,c){d=s(u,h,c),(d>r||d===-1/0&&t===-1/0)&&(t=u,r=d)});return t}function f7(i,s,e){var t=1/0,r=1/0,a,d;if(s==null||typeof s=="number"&&typeof i[0]!="object"&&i!=null){i=cr(i)?i:Ea(i);for(var o=0,l=i.length;o<l;o++)a=i[o],a!=null&&a<t&&(t=a)}else s=tr(s,e),pi(i,function(u,h,c){d=s(u,h,c),(d<r||d===1/0&&t===1/0)&&(t=u,r=d)});return t}var y7=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function O1(i){return i?Rn(i)?Ts.call(i):Gp(i)?i.match(y7):cr(i)?On(i,Hp):Ea(i):[]}function P1(i,s,e){if(s==null||e)return cr(i)||(i=Ea(i)),i[Qp(i.length-1)];var t=O1(i),r=er(t);s=Math.max(Math.min(s,r),0);for(var a=r-1,d=0;d<s;d++){var o=Qp(d,a),l=t[d];t[d]=t[o],t[o]=l}return t.slice(0,s)}function h7(i){return P1(i,1/0)}function m7(i,s,e){var t=0;return s=tr(s,e),ac(On(i,function(r,a,d){return{value:r,index:t++,criteria:s(r,a,d)}}).sort(function(r,a){var d=r.criteria,o=a.criteria;if(d!==o){if(d>o||d===void 0)return 1;if(d<o||o===void 0)return-1}return r.index-a.index}),"value")}function Dd(i,s){return function(e,t,r){var a=s?[[],[]]:{};return t=tr(t,r),pi(e,function(d,o){var l=t(d,o,e);i(a,d,l)}),a}}const v7=Dd(function(i,s,e){Ci(i,e)?i[e].push(s):i[e]=[s]}),T7=Dd(function(i,s,e){i[e]=s}),E7=Dd(function(i,s,e){Ci(i,e)?i[e]++:i[e]=1}),I7=Dd(function(i,s,e){i[e?0:1].push(s)},!0);function A7(i){return i==null?0:cr(i)?i.length:wt(i).length}function b7(i,s,e){return s in e}const w1=Qt(function(i,s){var e={},t=s[0];if(i==null)return e;Jt(t)?(s.length>1&&(t=Ds(t,s[1])),s=As(i)):(t=b7,s=Dn(s,!1,!1),i=Object(i));for(var r=0,a=s.length;r<a;r++){var d=s[r],o=i[d];t(o,d,i)&&(e[d]=o)}return e}),R7=Qt(function(i,s){var e=s[0],t;return Jt(e)?(e=tc(e),s.length>1&&(t=s[1])):(s=On(Dn(s,!1,!1),String),e=function(r,a){return!ci(s,a)}),w1(i,e,t)});function V1(i,s,e){return Ts.call(i,0,Math.max(0,i.length-(s==null||e?1:s)))}function sc(i,s,e){return i==null||i.length<1?s==null||e?void 0:[]:s==null||e?i[0]:V1(i,i.length-s)}function Od(i,s,e){return Ts.call(i,s==null||e?1:s)}function D7(i,s,e){return i==null||i.length<1?s==null||e?void 0:[]:s==null||e?i[i.length-1]:Od(i,Math.max(0,i.length-s))}function O7(i){return Aa(i,Boolean)}function P7(i,s){return Dn(i,s,!1)}const C1=Qt(function(i,s){return s=Dn(s,!0,!0),Aa(i,function(e){return!ci(s,e)})}),w7=Qt(function(i,s){return C1(i,s)});function oc(i,s,e,t){ND(s)||(t=e,e=s,s=!1),e!=null&&(e=tr(e,t));for(var r=[],a=[],d=0,o=er(i);d<o;d++){var l=i[d],u=e?e(l,d,i):l;s&&!e?((!d||a!==u)&&r.push(l),a=u):e?ci(a,u)||(a.push(u),r.push(l)):ci(r,l)||r.push(l)}return r}const V7=Qt(function(i){return oc(Dn(i,!0,!0))});function C7(i){for(var s=[],e=arguments.length,t=0,r=er(i);t<r;t++){var a=i[t];if(!ci(s,a)){var d;for(d=1;d<e&&ci(arguments[d],a);d++);d===e&&s.push(a)}}return s}function dc(i){for(var s=i&&D1(i,er).length||0,e=Array(s),t=0;t<s;t++)e[t]=ac(i,t);return e}const B7=Qt(dc);function _7(i,s){for(var e={},t=0,r=er(i);t<r;t++)s?e[i[t]]=s[t]:e[i[t][0]]=i[t][1];return e}function M7(i,s,e){s==null&&(s=i||0,i=0),e||(e=s<i?-1:1);for(var t=Math.max(Math.ceil((s-i)/e),0),r=Array(t),a=0;a<t;a++,i+=e)r[a]=i;return r}function g7(i,s){if(s==null||s<1)return[];for(var e=[],t=0,r=i.length;t<r;)e.push(Ts.call(i,t,t+=s));return e}function lc(i,s){return i._chain?Ye(s).chain():s}function B1(i){return pi(Wp(i),function(s){var e=Ye[s]=i[s];Ye.prototype[s]=function(){var t=[this._wrapped];return nZ.apply(t,arguments),lc(this,e.apply(Ye,t))}}),Ye}pi(["pop","push","reverse","shift","sort","splice","unshift"],function(i){var s=Id[i];Ye.prototype[i]=function(){var e=this._wrapped;return e!=null&&(s.apply(e,arguments),(i==="shift"||i==="splice")&&e.length===0&&delete e[0]),lc(this,e)}}),pi(["concat","join","slice"],function(i){var s=Id[i];Ye.prototype[i]=function(){var e=this._wrapped;return e!=null&&(e=s.apply(e,arguments)),lc(this,e)}});var _1=B1(Object.freeze(Object.defineProperty({__proto__:null,VERSION:DD,after:s7,all:b1,allKeys:As,any:R1,assign:Rd,before:f1,bind:p1,bindAll:QZ,chain:XZ,chunk:g7,clone:NZ,collect:On,compact:O7,compose:a7,constant:SD,contains:ci,countBy:E7,create:gZ,debounce:i7,default:Ye,defaults:r1,defer:t7,delay:c1,detect:ic,difference:C1,drop:Od,each:pi,escape:FZ,every:b1,extend:t1,extendOwn:Rd,filter:Aa,find:ic,findIndex:rc,findKey:y1,findLastIndex:m1,findWhere:l7,first:sc,flatten:P7,foldl:nc,foldr:A1,forEach:pi,functions:Wp,get:a1,groupBy:v7,has:UZ,head:sc,identity:Hp,include:ci,includes:ci,indexBy:T7,indexOf:E1,initial:V1,inject:nc,intersection:C7,invert:e1,invoke:p7,isArguments:Sp,isArray:Rn,isArrayBuffer:$D,isBoolean:ND,isDataView:Ad,isDate:fZ,isElement:cZ,isEmpty:Is,isEqual:DZ,isError:hZ,isFinite:EZ,isFunction:Jt,isMap:wZ,isMatch:WD,isNaN:xD,isNull:pZ,isNumber:LD,isObject:Vi,isRegExp:yZ,isSet:CZ,isString:Gp,isSymbol:UD,isTypedArray:qD,isUndefined:gD,isWeakMap:VZ,isWeakSet:BZ,iteratee:Xp,keys:wt,last:D7,lastIndexOf:d7,map:On,mapObject:$Z,matcher:Rs,matches:Rs,max:D1,memoize:e7,methods:Wp,min:f7,mixin:B1,negate:tc,noop:o1,now:Os,object:_7,omit:R7,once:o7,pairs:_Z,partial:Ia,partition:I7,pick:w1,pluck:ac,property:Kp,propertyOf:jZ,random:Qp,range:M7,reduce:nc,reduceRight:A1,reject:u7,rest:Od,restArguments:Qt,result:YZ,sample:P1,select:Aa,shuffle:h7,size:A7,some:R1,sortBy:m7,sortedIndex:v1,tail:Od,take:sc,tap:LZ,template:zZ,templateSettings:kZ,throttle:r7,times:GZ,toArray:O1,toPath:n1,transpose:dc,unescape:SZ,union:V7,uniq:oc,unique:oc,uniqueId:KZ,unzip:dc,values:Ea,where:c7,without:w7,wrap:n7,zip:B7},Symbol.toStringTag,{value:"Module"})));_1._=_1;function Wt(i){return i.charAt(0).toUpperCase()+i.slice(1)}function Pd(i){return i.charAt(0).toLowerCase()+i.slice(1)}function M1(i,s){if(i.type!==n.Property||s.type!==n.Property)throw new Error(`Expected property entities for comparison. But got ${i.type} and ${s.type}.`);return i===s||i.id===s.id?!0:i.name!==s.name||i.static!==s.static||i.abstract!==s.abstract?!1:Ir(i.dataType,s.dataType).compatible}function g1(i,s){if(i.type!==n.DefinitionEntity||s.type!==n.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${i.type} and ${s.type}.`);if(i===s||i.id===s.id)return!0;if(i.properties.length!==s.properties.length)return!1;let e=[...s.properties];const t=[];for(let r=0;r<i.properties.length;r++){const a=i.properties[r];e.find(o=>{const l=M1(a,o);return l&&(e=e.filter(u=>u.id!==o.id)),l})||t.push(a)}return!(t.length>0)}var Er=(i=>(i.BothUnconstrained="both-unconstrained",i.AConstraintBUnconstrained="a-constraint-b-unconstrained",i.BConstraintAUnconstrained="b-constraint-a-unconstrained",i.Same="same",i.AIsListBIsNot="a-is-list-b-is-not",i.BIsListAIsNot="b-is-list-a-is-not",i.AIsNullableBIsNot="a-is-nullable-b-is-not",i.BIsNullableAIsNot="b-is-nullable-a-is-not",i.AIsTemplateBIsNot="a-is-template-b-is-not",i.BIsTemplateAIsNot="b-is-template-a-is-not",i.BothUntyped="both-untyped",i.AIsUntypedBIsNot="a-is-untyped-b-is-not",i.BIsUntypedAIsNot="b-is-untyped-a-is-not",i.TypeEntityMismatch="type-entity-mismatch",i.SameDefinitionEntities="same-definition-entities",i.CompatibleDefinitionEntities="compatible-definition-entities",i.IncompatibleDefinitionEntities="incompatible-definition-entities",i.SamePrimitiveEntities="same-primitive-entities",i.IncompatiblePrimitiveEntities="incompatible-primitive-entities",i.SameBuiltInBaseEntities="same-built-in-base-entities",i.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",i.CheckUnknown="check-unknown",i))(Er||{});function Ir(i,s){var e,t,r,a,d,o,l,u,h,c,v;if(i&&i.type!==n.DataType||s&&s.type!==n.DataType)throw new Error(`Expected data-type entities for comparison. But got ${i==null?void 0:i.type} and ${s==null?void 0:s.type}.`);if(i===null&&s===null)return{compatible:!0,type:"both-unconstrained"};if(i===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(s===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(i===s)return{compatible:!0,type:"same"};if(i.id===s.id)return{compatible:!0,type:"same"};if(i.isList!==s.isList)return{compatible:!1,type:i.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(i.asType!==s.asType)return{compatible:!1,type:i.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!i.entity&&s.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(i.entity&&!s.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!i.entity&&!s.entity)return{compatible:!0,type:"both-untyped"};if(((e=i.entity)==null?void 0:e.type)!==((t=s.entity)==null?void 0:t.type))return{compatible:!1,type:"type-entity-mismatch"};if(((r=i.entity)==null?void 0:r.type)===n.DefinitionEntity){if(((a=i.entity)==null?void 0:a.id)===((d=s.entity)==null?void 0:d.id))return{compatible:!0,type:"same-definition-entities"};const E=g1(i.entity,s.entity);return{compatible:E,type:E?"compatible-definition-entities":"incompatible-definition-entities"}}return((o=i.entity)==null?void 0:o.type)===n.PrimitiveEntity?((l=i.entity)==null?void 0:l.id)===((u=s.entity)==null?void 0:u.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((h=i.entity)==null?void 0:h.type)===n.BuiltInBaseEntity?((c=i.entity)==null?void 0:c.id)===((v=s.entity)==null?void 0:v.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function N7(i,s){const e=i.project.builtInBaseEntities.find(a=>a.id===Y.EXECUTION),t={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(s==null?void 0:s.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},r=V(t,i.project);return r.inferred=!0,s==null||s.add(r,b.Added),r.metaSync(t,s),r.setParent(i,s),r.entity=e,r}function N1(i,s=null){return i.dataType?i.dataType:null}function uc(i,s=null){var t;const e=(t=i.declaration)==null?void 0:t.getDataType(s);return e&&e.isResolved?e:i.readsValue?kr(i.readsValue,s):null}function pc(i,s=null){return i.dataType&&!i.dataType.inferred&&i.dataType.isResolved?i.dataType:i.readsValue?kr(i.readsValue,s):null}function L1(i,s=null){return kr(i.declaration,s)}function U1(i,s=null){return i.dataType&&!i.dataType.inferred?i.dataType:i.dataType&&i.dataType.inferred||!i.dataType?(i.inferDataTypeAndSyncInstancesInputsAndOutputs(s),i.dataType):null}function cc(i,s=null){var e;return((e=i.declaration)==null?void 0:e.dataType)||null}function $1(i,s=null){return(i==null?void 0:i.dataType)||null}function j1(i,s=null){return(i==null?void 0:i.dataType)||null}function kr(i,s=null){switch(i.type){case n.VariableDeclaration:return U1(i,s);case n.ArgumentDeclaration:return N1(i,s);case n.ReturnDeclaration:return pc(i,s);case n.VariableInstance:return L1(i,s);case n.InputMap:return uc(i,s);case n.OutputMap:return cc(i,s);case n.Property:return $1(i,s);case n.ValueDescriptor:return j1(i,s);default:throw new Error(`Cannot infer data type from entity of type ${i.type}.`)}}function wd(i,s=null){switch(i.type){case n.ArgumentDeclaration:return i.getDataType(s);case n.InputMap:return i.getDataType(s);case n.VariableDeclaration:return i.getDataType(s);case n.VariableInstance:return i.getDataType(s);case n.OutputMap:return i.getDataType(s);case n.ReturnDeclaration:return i.getDataType(s);case n.Property:return i.getDataType(s);case n.ValueDescriptor:return i.getDataType(s);default:return null}}function B(i){if(i){let s=null;return typeof i=="string"?s=i:i.entityId?s=i.entityId:i.type!==n.GenericReference&&(s=i.id),s}return null}function Pn(i){return i.declaration||i}function L7(i){return i.type===n.VariableDeclaration?i.parent===i.project?"global-declaration":"local-declaration":i.declaration.parent===i.project?"global-instance":"local-instance"}function fc(i,s){const e=[];if(i.type===n.Project)e.push(...i.variableDeclarations);else{const r=zt(it(i)).filter(a=>a.type===n.VariableDeclaration);e.push(...r),i.parent&&(mt.includes(i.parent.type)||i.parent.type===n.Project)&&e.push(...fc(i.parent))}return e}function U7(i){return i.split(/[\s-]+/).filter(t=>t.length>0).map((t,r)=>r===0?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function $7(i){return i.split(/[\s-]+/).filter(t=>t.length>0).map(t=>t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function G1(i){var s;return(s=i.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:s.map(e=>e.toLowerCase()).join("-")}function Vd(i){return G1(i).toLowerCase()}function Cd(i){var s,e;if(!i)return"Any data type";if(!i.entity){const t=i.isList;if(!((s=i.andChildrenGroup)!=null&&s.length)&&!((e=i.orChildrenGroup)!=null&&e.length))return t?"List of an any data type":"Any data type";let r="",a=!1,d=!1;return(i.andChildrenGroup||[]).forEach(o=>{const l=Cd(o),u=Pd(l);a&&(r+=" and "),o.isGroup?r+="("+u+")":a?r+=u:r+=l,a=!0,d=!0}),(i.orChildrenGroup||[]).forEach(o=>{const l=Cd(o),u=Pd(l);a&&(d&&(r+=","),r+=" or "),o.isGroup?r+="("+u+")":a?r+=u:r+=l,a=!0}),r}if(i.entity.type===n.PrimitiveEntity){let t=i.entity.name;switch(i.entity.name){case g.String:t="Text";break;case g.KeyValue:t="Data structure";break}return i.isList?`List of ${t}s`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}else if(i.entity.type===n.DefinitionEntity){const t=F(i.entity,i.project);return i.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else if(i.entity.type===n.BuiltInBaseEntity){const t=x1(i.entity);return i.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else return i.isList?`List of ${i.entity.name} entities`:`${i.entity.name.slice(0,1).toUpperCase()+i.entity.name.slice(1)} entity`}function j7(i){if(!i)return"Any data type";const s=i.getDataType(null);return Cd(s)}function Bd(i){switch(i.declaration.id){case pt.Equal:return"is equal to";case pt.NotEqual:return"is not equal to";case pt.MoreThan:return"is greater than";case pt.MoreThanOrEqual:return"is greater than or equal to";case pt.LessThan:return"is less than";case pt.LessThanOrEqual:return"is less than or equal to";case pt.And:return"and";case pt.Or:return"or";case yr.Empty:return"is empty";case yr.NotEmpty:return"is not empty"}}function F1(i){return i.includes(Y.HTTP_ENDPOINT)?"HTTP endpoint":i.includes(Y.PERSISTED_ENTITY)?"Persisted entity":i.includes(Y.CRON_JOB)?"Scheduled execution":i.includes(Y.RELATIONAL_DATABASE)?"Relational database":"Entity"}function x1(i){switch(i.name){case Y.HTTP_ENDPOINT:return"HTTP endpoint";case Y.PERSISTED_ENTITY:return"Persisted entity";case Y.CRON_JOB:return"Scheduled execution";case Y.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function G7(i){const s=qc(i);if(!s){const e=Zc(i);return e.includes(Y.HTTP_ENDPOINT)?"HTTP endpoint":e.includes(Y.PERSISTED_ENTITY)?"Persisted entity":e.includes(Y.CRON_JOB)?"Scheduled execution":e.includes(Y.RELATIONAL_DATABASE)?"Relational database":F(i,i.project)+" entity"}return F(s,i.project)+" entity"}function S1(i){let s="Find ";return i.outputsDeclarations.forEach((e,t)=>{const r=wd(e,null),a=Pd(r&&r.entity?F(r.entity,i.project):"unstructured data");t===0?s+=`${a} `:t===i.outputsDeclarations.length-1?s+=`and ${a} `:s+=`, ${a} `}),s}function k1(i){switch(i.name){case g.String:return"Text";case g.Number:return"Number";case g.Boolean:return"Boolean";case g.KeyValue:return"Data structure";case g.UUID:return"Unique identifier";case g.Date:return"Date";case g.EntityTemplate:return"Entity as template";case g.Enum:return"Enumeration";case g.File:return"File";case g.Null:return"Empty";case g.ActionDescriptor:return"Action descriptor";case g.Untyped:return"Untyped";default:return i.name}}function Z1(i){switch(i.id){case X.List:return"Loop over list items";case X.ManualFlow:return"Manual flow control loop";case X.ObjectKeys:return"Loop over object keys";case X.ObjectValues:return"Loop over object values";case X.Counted:return"Loop given number of times";case X.String:return"Loop over text characters";case Xe.Addition:return"Sum numbers";case Xe.Subtraction:return"Subtract numbers";case Xe.Multiplication:return"Multiply numbers";case Xe.Division:return"Divide numbers";case Xe.Remainder:return"Get remainder of numbers";case Xe.Exponentiation:return"Get exponent of numbers";case Ee.AddIndex:return"Add at index position";case Ee.DeleteFirst:return"Delete first character";case Ee.DeleteLast:return"Delete last character";case Ee.DeleteIndex:return"Delete at index position";case Ee.Join:return"Join texts";case Ee.ReplaceAllMatches:return"Replace all matches";case Ee.ReplaceFirst:return"Replace first match";case Ee.ReplaceLast:return"Replace last match";case Ee.Split:return"Split text";case Ee.ReplaceIndex:return"Replace at index position";case Ee.ReplaceSingleMatch:return"Replace single match";case Ee.GetFirst:return"Get first character";case Ee.GetLast:return"Get last character";case Ee.GetIndex:return"Get at index position";case Ee.Append:return"Add at the end";case Ee.Prepend:return"Add at the start";case He.Wait:return"Wait";case He.Parallel:return"Run in parallel";case He.Sequential:return"Run in sequence";case Ct.HttpRequest:return"HTTP request";case Ke.CreateNewInstance:return"Create new copy of entity";case fe.AddIndex:return"Add item at index position";case fe.DeleteFirst:return"Delete first item";case fe.DeleteLast:return"Delete last item";case fe.DeleteIndex:return"Delete item at index position";case fe.Join:return"Join lists";case fe.ReplaceAllMatches:return"Replace all matches";case fe.ReplaceFirst:return"Replace first match";case fe.ReplaceLast:return"Replace last match";case fe.Split:return"Split list";case fe.ReplaceIndex:return"Replace at index position";case fe.ReplaceSingleMatch:return"Replace single match";case fe.GetFirst:return"Get first item";case fe.GetLast:return"Get last item";case fe.GetIndex:return"Get item at index position";case fe.Append:return"Add item at the end";case fe.Prepend:return"Add item at the start";case Hr.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(i.name.slice(0,1).toUpperCase()+i.name.slice(1)).replaceAll("-"," ")}}function F(i,s){var e;if(n.FunctionDeclaration===i.type){const t=i.name;if(Object.values(or).includes(t))switch(t){case or.AbortExecution:return"Abort execution";case or.DeletePersistedEntity:return"Delete persisted entity";case or.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return Wt(i.type).replaceAll("-"," ")}return t}if(n.BuiltInBaseEntity===i.type)return F1([i.name]);if(tf.includes(i.type)&&i.type!==n.ActionDescriptor)return i.name;switch(i.type){case n.Search:return S1(i);case n.Operation:case n.InternalCall:case n.Loop:const t=nr(i.declaration,s);return F(t,s);case n.ActionDescriptor:return Z1(i);case n.BreakStatement:const r=nr(i.parent,s);return`Stop loop ${F(r,s)}`;case n.ContinueStatement:const a=nr(i.parent,s);return`Execute next iteration of ${F(a,s)}`;case n.FunctionCall:return nr(i.declaration,s).name;case n.Condition:{const o=i;if((e=i.inputs)!=null&&e.length){const l=F(o.inputs[0],o.project);if(o.inputs[1]){const u=o.inputs[1].declaration.name;return`If ${l} ${Bd(o)} ${u}`}return`If ${l} ${Bd(o)}`}else return`If ${Bd(o)}`}case n.ReturnStatement:{const o=nr(i.parent,s);return`Output of ${F(o,s)}`}case n.InputMap:if(i.declaration){const o=nr(i.declaration,s);return F(o,s)||""}else return i.name||"";case n.VariableInstance:{const o=nr(i.declaration,s);return F(o,s)||""}case n.OutputMap:if(i.declaration){const o=nr(i.declaration,s);return(o==null?void 0:o.name)||""}else return"";case n.PrimitiveEntity:case n.LiteralValue:return k1(i);default:return Wt(i.type).replaceAll("-"," ")}}function yc(i,s){const e=[];i.name||e.push(new P({id:`${i.id}--${j.EmptyName}`,message:`Entity with id "${i.id}" and type "${i.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=s.entities.filter(r=>r.name===i.name);return t.length&&e.push(new P({id:`${i.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${i.id}" and type "${i.type}" has a name "${i.name}" that is not unique in the project. Entity with id "${t[0].id}" has the same name.
|
|
37
37
|
Please provide a unique 'name' string.`,severity:D.Error,code:j.NameNotUniqueInScope,issue:null})),e}function hc(i,s){const e=[];i.name||e.push(new P({id:`${i.id}--${j.EmptyName}`,message:`Entity with id "${i.id}" and type "${i.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=i.parent?B(i.parent):null;let r=s;t&&(r=s.get(t));const a=[];r.type===n.DefinitionEntity?a.push(...r.methods.map(o=>o)):r.type===n.Project?a.push(...r.functions.map(o=>o)):r.type===n.Loop?r.body&&a.push(r.body):r.type===n.InstalledProject&&a.push(...r.functions.map(o=>o));const d=a.filter(o=>o.name===i.name);return d.length&&e.push(new P({id:`${i.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${i.id}" and type "${i.type}" has a name "${i.name}" that is not unique in ${r.type===n.Project?"the globally declared project scope":"its parent entity"}. Entity with id "${d[0].id}" has the same name.
|
|
38
38
|
Please provide a unique 'name' string.`,severity:D.Error,code:j.NameNotUniqueInScope,issue:null})),e}function mc(i,s){const e=[];i.name||e.push(new P({id:`${i.id}--${j.EmptyName}`,message:`Entity with id "${i.id}" and type "${i.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=i.parent&&nr(i.parent,s)||s;if(!t)e.push(new P({id:`${i.id}--parent-reference--${A.ReferencedEntityNotFound}`,message:`The entity with id '${i.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:D.Error,code:A.ReferencedEntityNotFound,issue:null}));else{const a=fc(t).filter(d=>d.name===i.name);a.length&&e.push(new P({id:`${i.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${i.id}" and type "${i.type}" has a name "${i.name}" that is not unique in its scope or higher scopes. Entity with id "${a[0].id}" has the same name.
|
|
39
39
|
Please provide a unique 'name' string.`,severity:D.Error,code:j.NameNotUniqueInScope,issue:null}))}return e}function vc(i,s){const e=[];i.name||e.push(new P({id:`${i.id}--${j.EmptyName}`,message:`Entity with id "${i.id}" and type "${i.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=B(i.parent);if(!t)e.push(new P({id:`${i.id}--parent-reference--${A.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${i.id}" and type "${i.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:D.Error,code:A.InvalidReferenceObjectStructure,issue:null}));else{const r=s.get(t);if(!r)e.push(new P({id:`${i.id}--parent-reference--${A.ReferencedEntityNotFound}`,message:`The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:D.Error,code:A.ReferencedEntityNotFound,issue:null}));else{const d=r.properties.filter(o=>o.name===i.name);d.length&&e.push(new P({id:`${i.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${i.id}" and type "${i.type}" has a name "${i.name}" that is not unique among all properties in the parent entity. Entity with id "${d[0].id}" has the same name.
|
|
40
40
|
Please provide a unique 'name' string.`,severity:D.Error,code:j.NameNotUniqueInScope,issue:null}))}}return e}function Tc(i,s){const e=[];i.name||e.push(new P({id:`${i.id}--${j.EmptyName}`,message:`Entity with id "${i.id}" and type "${i.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=B(i.parent);if(!t)e.push(new P({id:`${i.id}--parent-reference--${A.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${i.id}" and type "${i.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:D.Error,code:A.InvalidReferenceObjectStructure,issue:null}));else{const r=s.get(t);if(!r)e.push(new P({id:`${i.id}--parent-reference--${A.ReferencedEntityNotFound}`,message:`The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:D.Error,code:A.ReferencedEntityNotFound,issue:null}));else{const d=xc(r).filter(o=>o.name===i.name);d.length&&e.push(new P({id:`${i.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${i.id}" and type "${i.type}" has a name "${i.name}" that is not unique among all inputs declared in the parent entity. Entity with id "${d[0].id}" has the same name.
|
|
41
41
|
Please provide a unique 'name' string.`,severity:D.Error,code:j.NameNotUniqueInScope,issue:null}))}}return e}function Ec(i,s){const e=[];i.name||e.push(new P({id:`${i.id}--${j.EmptyName}`,message:`Entity with id "${i.id}" and type "${i.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=B(i.parent);if(!t)e.push(new P({id:`${i.id}--parent-reference--${A.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${i.id}" and type "${i.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:D.Error,code:A.InvalidReferenceObjectStructure,issue:null}));else{const r=s.get(t);if(!r)e.push(new P({id:`${i.id}--parent-reference--${A.ReferencedEntityNotFound}`,message:`The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:D.Error,code:A.ReferencedEntityNotFound,issue:null}));else{const d=fP(r).filter(o=>o.name===i.name);d.length&&e.push(new P({id:`${i.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${i.id}" and type "${i.type}" has a name "${i.name}" that is not unique among all outputs declared in the parent entity. Entity with id "${d[0].id}" has the same name.
|
|
42
42
|
Please provide a unique 'name' string.`,severity:D.Error,code:j.NameNotUniqueInScope,issue:null}))}}return e}function F7(i,s){switch(i.type){case n.DefinitionEntity:return yc(i,s);case n.FunctionDeclaration:return hc(i,s);case n.VariableDeclaration:return mc(i,s);case n.Property:return vc(i,s);case n.ArgumentDeclaration:return Tc(i,s);case n.ReturnDeclaration:return Ec(i,s);default:return[]}}function q1(i,s,e){const r=`${Vd(i)}-${s}-id`;return e.instances[r]?I.UUID.uuid():r}function Ic(i,s){let e="",t=null;if(i.parent){const a=s.get(i.parent);a&&(t=a)}let r="";return t&&(r=`${Vd(F(t,s))}-`),e=`${r}${Vd(F(i,s))}-id`,s.instances[e]?I.UUID.uuid():e}function ct(i,s,e="uuid"){return e==="semantic"?q1(F(i,s),i.type,s):I.UUID.uuid()}function x7(i){var d;const s=l6(),e=i.toJSON();s.safeParse(e).success;const r=S7(i);(d=i.dataType)==null||d.validate();const a=[...r];if(i.id==="80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"){const o=ye({id:`${i.id}--${q.PropertyImplementsNonAbstact}`,message:`Property "${F(i,i.project)}" with id "${i.id}" implements a non-abstract property "${F(i,i.project)}" with id "${i.id}".`,issue:null,severity:D.Error,code:q.PropertyImplementsNonAbstact,entity:i});a.push(o.error)}return a}function S7(i){const s=[];if(!i.implements)return s;const e=i.implements;if(!e.abstract){const r=ye({id:`${i.id}--${q.PropertyImplementsNonAbstact}`,message:`Property "${F(i,i.project)}" with id "${i.id}" implements a non-abstract property "${F(e,i.project)}" with id "${e.id}".`,issue:null,severity:D.Error,code:q.PropertyImplementsNonAbstact,entity:i});s.push(r.error)}if(i.static&&!e.static){const r=ye({id:`${i.id}--${q.NonStaticPropertyImplementsStatic}`,message:`Static property "${F(i,i.project)}" with id "${i.id}" implements a non-static property "${F(e,i.project)}" with id "${e.id}".`,issue:null,severity:D.Error,code:q.NonStaticPropertyImplementsStatic,entity:i});s.push(r.error)}if(!i.static&&e.static){const r=ye({id:`${i.id}--${q.StaticPropertyImplementsNonStatic}`,message:`Non-static property "${F(i,i.project)}" with id "${i.id}" implements a static property "${F(e,i.project)}" with id "${e.id}".`,issue:null,severity:D.Error,code:q.StaticPropertyImplementsNonStatic,entity:i});s.push(r.error)}if(!Ir(i.dataType,e.dataType)){const r=ye({id:`${i.id}--${q.PropertyImplementsIncompatibleType}`,message:`Property "${F(i,i.project)}" with id "${i.id}" implements a property "${F(e,i.project)}" with id "${e.id}" that has an incompatible data type.`,issue:null,severity:D.Error,code:q.PropertyImplementsIncompatibleType,entity:i});s.push(r.error)}return ze(i.errors,s)}function k7(i,s){const e=[];if(i.parent){const r=s.get(i.parent);if(!r)e.push(new P({id:`${i.id}--${i.parent}--${A.ReferencedEntityNotFound}`,code:A.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", is referencing an entity with id "${i.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}));else{const a=zi(r);if(a){const d=r!==a?`The entity of type '${i.type}' with id '${i.id}' have 'parent' with id '${i.parent}' because the entity belongs to a built-in '${a.type}' entity with id '${a.id}' (${F(a,r.project)}) higher up in the tree.`:`The entity of type '${i.type}' with id '${i.id}' have 'parent' with id '${i.parent}' because it is a built-in entity of type ${a.type}.`;e.push(new P({id:`${i.id}--${A.InvalidBuiltInEntityReference}`,code:A.InvalidBuiltInEntityReference,severity:D.Error,message:d,issue:null}))}else if(![n.DefinitionEntity].includes(r.type))e.push(new P({id:`${i.id}--${i.parent}--${A.InvalidParentReference}`,code:A.InvalidParentReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a parent reference that isn't pointing to an entity of type 'definition-entity'.`,issue:null}));else{const o=Wi(r).filter(l=>!l.interactive);if(o.length){let l=o.length>1?`The entity of type '${i.type}' with id '${i.id}' can't be added to the 'parent' entity with id '${r.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${ie(o.map(u=>F(u,u.project)),'", "','" and "')}").`:`The entity of type '${i.type}' with id '${i.id}' can't be added to the 'parent' entity with id '${r.id}' because it extends or implements a '${n.BuiltInBaseEntity}' entity that is non-interactive ("${F(o[0],o[0].project)}").`;l+=`
|
|
43
|
-
${Zi}`,e.push(new P({id:`${i.id}--${A.NonInteractiveEntityReferenced}`,code:A.NonInteractiveEntityReferenced,severity:D.Error,message:l,issue:null}))}else if(i.implements){const l=s.get(i.implements);if(i.id===i.implements)return e.push(new P({id:`${i.id}--${i.implements}--${A.SelfReference}`,code:A.SelfReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a reference to itself at 'implements'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null})),e;if(!l)e.push(new P({id:`${i.id}--${i.implements}--${A.ReferencedEntityNotFound}`,code:A.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", is referencing an entity with id "${i.implements}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}));else{const u=r.properties.find(h=>{var c;return((c=h.implements)==null?void 0:c.id)===i.implements});u?e.push(new P({id:`${i.id}--${j.PropertyOverwrite}`,code:j.PropertyOverwrite,severity:D.Error,message:`The property with id "${i.id}" is trying to implement the property with id "${i.implements}", but the parent entity already has a property with id '${u.id}' that implements the same base property.`,issue:null})):[n.Property].includes(l.type)?l.abstract||e.push(new P({id:`${i.id}--${i.implements}--${A.InvalidImplementsReference}`,code:A.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new P({id:`${i.id}--${i.implements}--${A.InvalidImplementsReference}`,code:A.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' reference that isn't pointing to an entity of type 'property'.`,issue:null}))}}}}}const t=Et(i,{},s);return e.push(...t.errors),e}class rt{constructor(s){f(this,"version");f(this,"previousVersion",null);f(this,"createdAt");f(this,"deleted",!1);f(this,"author");this.version=s.version,this.previousVersion=s.previousVersion,this.createdAt=T(s.createdAt).toISOString(),this.deleted=s.deleted,this.author=s.author}metaSync(s){this.deleted=s.deleted!==void 0?s.deleted:this.deleted}}var Ac=(i=>(i.Manual="manual",i.Automatic="automatic",i))(Ac||{}),b=(i=>(i.Added="added",i.Updated="updated",i.Removed="removed",i.Affected="affected",i))(b||{});class R{constructor(s,e,t,r,a=!1,d=""){f(this,"id",I.UUID.uuid());f(this,"seenEntities",[]);f(this,"added",{});f(this,"updated",{});f(this,"removed",{});f(this,"affected",{});f(this,"self",null);f(this,"author");f(this,"timestamp");f(this,"open",!0);f(this,"dirty",!0);f(this,"type","manual");f(this,"autoclose",!1);f(this,"autoCloseActionName","");f(this,"project");if(this.project=s,this.author=e||I.sessionAuthor||"",this.timestamp=t,this.self=r,this.autoclose=a,this.autoCloseActionName=d,this.autoclose&&!this.autoCloseActionName)throw new Error("Auto-close change-set must have an auto-close action name.")}get isEmpty(){return Object.keys(this.added).length===0&&Object.keys(this.updated).length===0&&Object.keys(this.removed).length===0}get isValid(){var s;return!(this.isEmpty&&this.self&&!this.affected[(s=this.self)==null?void 0:s.id])}get list(){return[...Object.values(this.added),...Object.values(this.updated),...Object.values(this.removed)]}get listAdded(){return Object.values(this.added)}get listUpdated(){return Object.values(this.updated)}get listRemoved(){return Object.values(this.removed)}get addedIds(){return Object.keys(this.added)}get updatedIds(){return Object.keys(this.updated)}get removedIds(){return Object.keys(this.removed)}get affectedIds(){return Object.keys(this.affected)}discardOrphans(){const s=[...this.addedIds,...this.updatedIds],e=this.project.toFlatIds(),t=Vr(),r=e.filter(d=>!t.includes(d));s.filter(d=>!r.includes(d)).forEach(d=>{this.remove(d)})}async attemptAutocloseAsync(s,e){var t;return this.autoclose&&this.autoCloseActionName&&this.autoCloseActionName===s&&(this.self&&e===((t=this.self)==null?void 0:t.id)||!this.self)&&await this.closeAsync(),this}async closeAsync(){return this.open=!1,!this.isValid&&this.self&&!this.added[this.self.id]&&!this.updated[this.self.id]&&this.removed[this.self.id],this.isEmpty?(this.project.discardChangeSet(this),this):(this.discardOrphans(),await this.project.closeChangeSet(this),this)}attemptAutoclose(s,e){var t;return this.autoclose&&this.autoCloseActionName&&this.autoCloseActionName===s&&(this.self&&e===((t=this.self)==null?void 0:t.id)||!this.self)&&this.close(),this}close(){return this.open=!1,!this.isValid&&this.self&&!this.added[this.self.id]&&!this.updated[this.self.id]&&this.removed[this.self.id],this.isEmpty?(this.project.discardChangeSet(this),this):(this.discardOrphans(),this.project.closeChangeSet(this),this)}get(s){return this.added[s]?this.added[s]:this.updated[s]?this.updated[s]:this.removed[s]?this.removed[s]:null}remove(s){return this.has(s)&&(delete this.added[s],delete this.updated[s],delete this.removed[s],delete this.affected[s],this.seenEntities=this.seenEntities.filter(e=>e!==s)),this}add(s,e){if(!this.open||!this.dirty)return this;const t=Array.from(new Set([...this.project.getAllBuiltInIds(),...Vr()]));if(t.includes(s.id))return this;if(!Xd(s,{...this.project.instances,...this.project.builtInInstances}).every(d=>!t.includes(d)))return this;if(this.seenEntities.indexOf(s.id)===-1&&this.seenEntities.push(s.id),(e==="updated"||e==="removed")&&!this.has(s.id)&&s.createdAt!==this.timestamp){s.increaseVersion(this.timestamp);const{added:d,updated:o,removed:l,affected:u}=s.recursiveCaptureUpstreamVersions(this.timestamp);for(const h of d)this.add(h,"added");for(const h of o)this.add(h,"updated");for(const h of l)this.add(h,"removed");for(const h of u)this.add(h,"affected")}if(e==="added"&&!this.has(s.id)&&s.createdAt!==this.timestamp){const{added:d,updated:o,removed:l,affected:u}=s.recursiveCaptureUpstreamVersions(this.timestamp);for(const h of d)this.add(h,"added");for(const h of o)this.add(h,"updated");for(const h of l)this.add(h,"removed");for(const h of u)this.add(h,"affected")}if(e==="removed"){if(this.added[s.id])return delete this.added[s.id],this.seenEntities=this.seenEntities.filter(d=>d!==s.id),delete this.project.deletedInstances[s.id],this;this.updated[s.id]&&delete this.updated[s.id],this.affected[s.id]&&delete this.affected[s.id],this.removed[s.id]=s}if(e==="added"){if(this.removed[s.id])return this;this.updated[s.id]&&delete this.updated[s.id],this.affected[s.id]&&delete this.affected[s.id],this.added[s.id]=s}if(e==="updated"){if(this.removed[s.id])return this;if(this.added[s.id])return this;this.affected[s.id]&&delete this.affected[s.id],this.updated[s.id]=s}if(e==="affected"){if(this.removed[s.id])return this;if(this.added[s.id])return this;if(this.updated[s.id])return this;this.affected[s.id]=s}return this}toJSON(){const s={},e={},t={},r=new Set;for(const a of Object.values(this.added))s[a.id]=a.toShallowJSON();for(const a of Object.values(this.updated))e[a.id]=a.toShallowJSON();for(const a of Object.values(this.removed))t[a.id]=a.toShallowJSON();for(const a of Object.values(this.affected))r.add(a.id);return{added:s,updated:e,removed:t,affected:Array.from(r),self:this.self?this.self.toShallowJSON():null,seenEntities:this.seenEntities}}has(s){return!!this.added[s]||!!this.removed[s]||!!this.updated[s]||!!this.affected[s]}hasAdded(s){return!!this.added[s]}hasUpdated(s){return!!this.updated[s]}hasRemoved(s){return!!this.removed[s]}hasAffected(s){return!!this.affected[s]}}function Z7(i){return new Set([...Object.keys(i.added),...Object.keys(i.updated),...Object.keys(i.removed),...Array.from(i.affected)])}var J1=(i=>(i.Implements="implements",i.DataTypeEntity="data-type-entity",i))(J1||{});const Ie=class Ie extends rt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"private");f(this,"abstract");f(this,"index");f(this,"static");f(this,"required");f(this,"constant",!1);f(this,"type",n.Property);f(this,"hidden",!1);f(this,"defaultValue",null);f(this,"dataType",null);f(this,"implements",null);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.private=e.private,this.abstract=e.abstract,this.index=e.index,this.static=e.static,this.required=e.required||!1,this.hidden=e.hidden||!1,this.constant=e.constant||!1}static fromGenerationTarget(e,t){const r=B(e.parent),a=t.get(r);let d=null;if(e.implements){const u=B(e.implements);d=t.get(u)}const o={id:e.id,version:I.UUID.uuid(),createdAt:T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.Property,index:a.properties.length,private:e.private||!1,abstract:e.abstract||!1,static:e.static||!1,required:e.required||!1,constant:e.constant||!1,hidden:!1,description:e.description,defaultValue:null,implements:d,dataType:null,parent:a},l=V(o,t);return l.setParent(a,null),l.initChildren(null),l}static validateGenerationTarget(e,t){let r=JSON.parse(JSON.stringify(e));const a=[],d=k7(r,t),o=vc(r,t);return a.push(...d,...o,...ot(r)),{errors:a,modifiedData:r}}get isExtendedProperty(){const e=this.parent.allBasePropertiesFromExtendedAndImplementedEntities.find(t=>t.name===this.name);return!!e&&e.id!==this.id&&!e.abstract}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new P({id:`${this.id}--${A.InvalidParentUpdate}`,code:A.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
|
|
43
|
+
${Zi}`,e.push(new P({id:`${i.id}--${A.NonInteractiveEntityReferenced}`,code:A.NonInteractiveEntityReferenced,severity:D.Error,message:l,issue:null}))}else if(i.implements){const l=s.get(i.implements);if(i.id===i.implements)return e.push(new P({id:`${i.id}--${i.implements}--${A.SelfReference}`,code:A.SelfReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a reference to itself at 'implements'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null})),e;if(!l)e.push(new P({id:`${i.id}--${i.implements}--${A.ReferencedEntityNotFound}`,code:A.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", is referencing an entity with id "${i.implements}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}));else{const u=r.properties.find(h=>{var c;return((c=h.implements)==null?void 0:c.id)===i.implements});u?e.push(new P({id:`${i.id}--${j.PropertyOverwrite}`,code:j.PropertyOverwrite,severity:D.Error,message:`The property with id "${i.id}" is trying to implement the property with id "${i.implements}", but the parent entity already has a property with id '${u.id}' that implements the same base property.`,issue:null})):[n.Property].includes(l.type)?l.abstract||e.push(new P({id:`${i.id}--${i.implements}--${A.InvalidImplementsReference}`,code:A.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new P({id:`${i.id}--${i.implements}--${A.InvalidImplementsReference}`,code:A.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' reference that isn't pointing to an entity of type 'property'.`,issue:null}))}}}}}const t=Et(i,{},s);return e.push(...t.errors),e}class rt{constructor(s){f(this,"version");f(this,"previousVersion",null);f(this,"createdAt");f(this,"deleted",!1);f(this,"author");this.version=s.version,this.previousVersion=s.previousVersion,this.createdAt=T(s.createdAt).toISOString(),this.deleted=s.deleted,this.author=s.author}metaSync(s){this.deleted=s.deleted!==void 0?s.deleted:this.deleted}}var Ac=(i=>(i.Manual="manual",i.Automatic="automatic",i))(Ac||{}),b=(i=>(i.Added="added",i.Updated="updated",i.Removed="removed",i.Affected="affected",i))(b||{});class R{constructor(s,e,t,r,a=!1,d=""){f(this,"id",I.UUID.uuid());f(this,"seenEntities",[]);f(this,"added",{});f(this,"updated",{});f(this,"removed",{});f(this,"affected",{});f(this,"self",null);f(this,"author");f(this,"timestamp");f(this,"open",!0);f(this,"dirty",!0);f(this,"type","manual");f(this,"autoclose",!1);f(this,"autoCloseActionName","");f(this,"project");if(this.project=s,this.author=e||I.sessionAuthor||"",this.timestamp=t,this.self=r,this.autoclose=a,this.autoCloseActionName=d,this.autoclose&&!this.autoCloseActionName)throw new Error("Auto-close change-set must have an auto-close action name.")}get isEmpty(){return Object.keys(this.added).length===0&&Object.keys(this.updated).length===0&&Object.keys(this.removed).length===0}get isValid(){var s;return!(this.isEmpty&&this.self&&!this.affected[(s=this.self)==null?void 0:s.id])}get list(){return[...Object.values(this.added),...Object.values(this.updated),...Object.values(this.removed)]}get listAdded(){return Object.values(this.added)}get listUpdated(){return Object.values(this.updated)}get listRemoved(){return Object.values(this.removed)}get listAffected(){return Object.values(this.affected)}get addedIds(){return Object.keys(this.added)}get updatedIds(){return Object.keys(this.updated)}get removedIds(){return Object.keys(this.removed)}get affectedIds(){return Object.keys(this.affected)}discardOrphans(){const s=[...this.addedIds,...this.updatedIds],e=this.project.toFlatIds(),t=Vr(),r=e.filter(d=>!t.includes(d));s.filter(d=>!r.includes(d)).forEach(d=>{this.remove(d)})}async attemptAutocloseAsync(s,e){var t;return this.autoclose&&this.autoCloseActionName&&this.autoCloseActionName===s&&(this.self&&e===((t=this.self)==null?void 0:t.id)||!this.self)&&await this.closeAsync(),this}async closeAsync(){return this.open=!1,!this.isValid&&this.self&&!this.added[this.self.id]&&!this.updated[this.self.id]&&this.removed[this.self.id],this.discardOrphans(),this.isEmpty?(console.warn(`Empty change-set (${this.id}) discarded upon closing.`),this.project.discardChangeSet(this),this):(await this.project.closeChangeSet(this),this)}attemptAutoclose(s,e){var t;return this.autoclose&&this.autoCloseActionName&&this.autoCloseActionName===s&&(this.self&&e===((t=this.self)==null?void 0:t.id)||!this.self)&&this.close(),this}close(){return this.open=!1,!this.isValid&&this.self&&!this.added[this.self.id]&&!this.updated[this.self.id]&&this.removed[this.self.id],this.isEmpty?(this.project.discardChangeSet(this),this):(this.discardOrphans(),this.project.closeChangeSet(this),this)}get(s){return this.added[s]?this.added[s]:this.updated[s]?this.updated[s]:this.removed[s]?this.removed[s]:null}remove(s){return this.has(s)&&(delete this.added[s],delete this.updated[s],delete this.removed[s],delete this.affected[s],this.seenEntities=this.seenEntities.filter(e=>e!==s)),this}add(s,e){if(!this.open||!this.dirty)return this;const t=Array.from(new Set([...this.project.getAllBuiltInIds(),...Vr()]));if(t.includes(s.id))return this;if(!Xd(s,{...this.project.instances,...this.project.builtInInstances}).every(d=>!t.includes(d)))return this;if(this.seenEntities.indexOf(s.id)===-1&&this.seenEntities.push(s.id),(e==="updated"||e==="removed")&&!this.has(s.id)&&s.createdAt!==this.timestamp){s.increaseVersion(this.timestamp);const{added:d,updated:o,removed:l,affected:u}=s.recursiveCaptureUpstreamVersions(this.timestamp);for(const h of d)this.add(h,"added");for(const h of o)this.add(h,"updated");for(const h of l)this.add(h,"removed");for(const h of u)this.add(h,"affected")}if(e==="added"&&!this.has(s.id)&&s.createdAt!==this.timestamp){const{added:d,updated:o,removed:l,affected:u}=s.recursiveCaptureUpstreamVersions(this.timestamp);for(const h of d)this.add(h,"added");for(const h of o)this.add(h,"updated");for(const h of l)this.add(h,"removed");for(const h of u)this.add(h,"affected")}if(e==="removed"){if(this.added[s.id])return delete this.added[s.id],this.seenEntities=this.seenEntities.filter(d=>d!==s.id),delete this.project.deletedInstances[s.id],this;this.updated[s.id]&&delete this.updated[s.id],this.affected[s.id]&&delete this.affected[s.id],this.removed[s.id]=s}if(e==="added"){if(this.removed[s.id])return this;this.updated[s.id]&&delete this.updated[s.id],this.affected[s.id]&&delete this.affected[s.id],this.added[s.id]=s}if(e==="updated"){if(this.removed[s.id])return this;if(this.added[s.id])return this;this.affected[s.id]&&delete this.affected[s.id],this.updated[s.id]=s}if(e==="affected"){if(this.removed[s.id])return this;if(this.added[s.id])return this;if(this.updated[s.id])return this;this.affected[s.id]=s}return this}toJSON(){const s={},e={},t={},r=new Set;for(const a of Object.values(this.added))s[a.id]=a.toShallowJSON();for(const a of Object.values(this.updated))e[a.id]=a.toShallowJSON();for(const a of Object.values(this.removed))t[a.id]=a.toShallowJSON();for(const a of Object.values(this.affected))r.add(a.id);return{added:s,updated:e,removed:t,affected:Array.from(r),self:this.self?this.self.toShallowJSON():null,seenEntities:this.seenEntities}}has(s){return!!this.added[s]||!!this.removed[s]||!!this.updated[s]||!!this.affected[s]}hasAdded(s){return!!this.added[s]}hasUpdated(s){return!!this.updated[s]}hasRemoved(s){return!!this.removed[s]}hasAffected(s){return!!this.affected[s]}}function Z7(i){return new Set([...Object.keys(i.added),...Object.keys(i.updated),...Object.keys(i.removed),...Array.from(i.affected)])}var J1=(i=>(i.Implements="implements",i.DataTypeEntity="data-type-entity",i))(J1||{});const Ie=class Ie extends rt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"private");f(this,"abstract");f(this,"index");f(this,"static");f(this,"required");f(this,"constant",!1);f(this,"type",n.Property);f(this,"hidden",!1);f(this,"defaultValue",null);f(this,"dataType",null);f(this,"implements",null);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.private=e.private,this.abstract=e.abstract,this.index=e.index,this.static=e.static,this.required=e.required||!1,this.hidden=e.hidden||!1,this.constant=e.constant||!1}static fromGenerationTarget(e,t){const r=B(e.parent),a=t.get(r);let d=null;if(e.implements){const u=B(e.implements);d=t.get(u)}const o={id:e.id,version:I.UUID.uuid(),createdAt:T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.Property,index:a.properties.length,private:e.private||!1,abstract:e.abstract||!1,static:e.static||!1,required:e.required||!1,constant:e.constant||!1,hidden:!1,description:e.description,defaultValue:null,implements:d,dataType:null,parent:a},l=V(o,t);return l.setParent(a,null),l.initChildren(null),l}static validateGenerationTarget(e,t){let r=JSON.parse(JSON.stringify(e));const a=[],d=k7(r,t),o=vc(r,t);return a.push(...d,...o,...ot(r)),{errors:a,modifiedData:r}}get isExtendedProperty(){const e=this.parent.allBasePropertiesFromExtendedAndImplementedEntities.find(t=>t.name===this.name);return!!e&&e.id!==this.id&&!e.abstract}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new P({id:`${this.id}--${A.InvalidParentUpdate}`,code:A.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
|
|
44
44
|
This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,issue:null})),(e.readsValue||e.writesValue)&&t.push(new P({id:`${this.id}--${j.InvalidObjectStructure}`,code:j.InvalidObjectStructure,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' is not a value reading or writing entity.
|
|
45
45
|
${Ld}`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],r=[],a=[];return Object.values(this.detachedDependents).forEach(d=>{const o=d.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),r.push(...o.removed),a.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}onDetachedDependencyRemoved(e,t,r){const a=[],d=[],o=[],l=[];return t==="implements"&&(this.setImplements(null,r),a.push(this)),{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,r){const a=[],d=[],o=[],l=[];return t==="implements"&&(this.setImplements(e,r),a.push(this)),{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){var e,t,r,a,d;return(t=(e=this.implements)==null?void 0:e.subscribeDependents)==null||t.call(e,[{entity:this,field:"implements"}]),(d=(a=(r=this.dataType)==null?void 0:r.entity)==null?void 0:a.subscribeDependents)==null||d.call(a,[{entity:this,field:"data-type-entity"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=I.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t,r;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Ie(this,this.project);return(r=this.knownVersions)==null||r.set(this.version,e),e.defaultValue=this.defaultValue,e.dataType=this.dataType,e.implements=this.implements,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],r=[],a=[],d=[];if(this.parent&&this.parent.type!==n.PrimitiveEntity&&this.parent.type!==n.BuiltInBaseEntity){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),r.push(...o.added),a.push(...o.removed)}return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],r=[],a=[],d=[];if(this.version===e)return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[h,c]of this.knownVersions||new Map){if(u.set(h,c),c.activeVersion=!1,c.knownVersions)for(const[v,E]of c.knownVersions)u.set(v,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Ie(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.defaultValue=o.defaultValue,this.dataType=o.dataType,this.implements=o.implements,this.parent=o.parent,{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],r=[],a=[];if(this.initialData.parent){const d=B(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${Wt(this.type)} with id '${this.id}' has a parent reference "${d}" which is missing in the project`)}else throw new Error(`${Wt(this.type)} with id '${this.id}' is missing a parent reference`);if(this.initialData.implements){const d=B(this.initialData.implements),o=this.project.get(d);o&&(this.setImplements(o,null),e.push(o))}return{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],r=[],a=[],d=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],r=[],a=[],d=[];return this.parent.addProperty(this),t.push(this.parent),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}setParent(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"set-parent"))){var r;return((r=this.parent)==null?void 0:r.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setImplements(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"set-implements"))){var r;return((r=this.implements)==null?void 0:r.id)!==(e==null?void 0:e.id)&&(this.implements=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-implements",this.id))),this}initChildren(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.defaultValue&&(this.defaultValue=V(this.initialData.defaultValue,this.project),this.defaultValue.setParent(this,null),this.defaultValue.initChildren(e)),this.initialData.dataType){const t=V(this.initialData.dataType,this.project);t.setParent(this,null),t.initChildren(e),this.dataType=t}if(this.initialData.implements){const t=V(this.initialData.implements,this.project);this.setImplements(t,null)}return this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-meta"))){const r=dt(this,e);return e.deleted===!0&&!this.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&this.deleted?t==null||t.add(this,b.Added):r&&(t==null||t.add(this,b.Updated)),super.metaSync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.abstract=e.abstract!==void 0?e.abstract:this.abstract,this.private=e.private!==void 0?e.private:this.private,this.index=e.index||(e.index!==0?this.index:0),this.static=e.static!==void 0?e.static:this.static,this.hidden=e.hidden!==void 0?e.hidden:this.hidden,this.constant=e.constant!==void 0?e.constant:this.constant,this.required=e.required!==void 0?e.required:this.required,t==null||t.attemptAutoclose("sync-meta",this.id),this}async APILoad(e=L,...t){return await Ie.repository.APILoad(this.id,...t),this}async APICreate(e=L,...t){return await Ie.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=L,...t){return await Ie.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=L,...t){return await Ie.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=L,...t){return await Ie.repository.APIClone(this.id,...t),this}async APILoadVersion(e=L,t,...r){return await Ie.repository.APILoadVersion(this.id,t,...r)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-entity"))){const r=[],a=[],d=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(a.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:h,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);r.push(...u),a.push(...h),d.push(...c)}),this.defaultValue){const{updated:l,removed:u}=this.defaultValue.remove({ignoreUpstream:!0},t);r.push(...l),a.push(...u)}if(this.dataType){const{updated:l,removed:u}=this.dataType.remove({ignoreUpstream:!0},t);r.push(...l),a.push(...u)}return e||this.parent.type===n.DefinitionEntity&&(this.parent.removeProperty(this),r.push(this.parent)),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(r),removed:p(a),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"restore-entity"))){const t=[],r=[],a=[],d=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.defaultValue){const{updated:o}=this.defaultValue.restore({},e);r.push(...o)}if(this.dataType){const{updated:o}=this.dataType.restore({},e);r.push(...o)}return this.parent.type===n.DefinitionEntity&&(this.parent.addProperty(this),r.push(this.parent)),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(r),removed:p(a),affected:p(d),self:this}}toFlat(e=new Set){var r,a;return e.has(this.id)?[]:(e.add(this.id),[this,...((r=this.defaultValue)==null?void 0:r.toFlat(e))||[],...((a=this.dataType)==null?void 0:a.toFlat(e))||[],...this.parent.toFlat(e)])}toFlatIds(e=new Set){var r,a;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((r=this.defaultValue)==null?void 0:r.toFlatIds(e))||[],...((a=this.dataType)==null?void 0:a.toFlatIds(e))||[],...this.parent.toFlatIds(e)])}toJSON(e=new Set){var t,r,a;return e.has(this.id)?this.toReference():(e.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,index:this.index,private:this.private,required:this.required,static:this.static,constant:this.constant,abstract:this.abstract,hidden:this.hidden,defaultValue:((t=this.defaultValue)==null?void 0:t.toJSON(e))||null,dataType:((r=this.dataType)==null?void 0:r.toJSON(e))||null,implements:((a=this.implements)==null?void 0:a.toJSON(e))||null,parent:this.parent.toReference()})}toJSONClone(e=Z){var r,a,d,o,l,u,h;let t;return(r=e.seenEntityMaps)!=null&&r.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ct(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:I.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,required:this.required,static:this.static,constant:this.constant,abstract:this.abstract,hidden:this.hidden,defaultValue:((u=this.defaultValue)==null?void 0:u.toJSONClone({...e,newId:null}))||null,dataType:((h=this.dataType)==null?void 0:h.toJSONClone({...e,newId:null}))||null,implements:(()=>{var c;return this.implements&&this.project.getBuiltIn(this.implements.id)?this.implements.toJSON():((c=this.implements)==null?void 0:c.toJSONClone({...e,newId:null}))||null})(),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+I.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=Z){var r,a,d,o;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,description:this.description,type:this.type,index:this.index,private:this.private,required:this.required,abstract:this.abstract,static:this.static,constant:this.constant,hidden:this.hidden,defaultValue:((a=this.defaultValue)==null?void 0:a.toReference(e))||null,dataType:((d=this.dataType)==null?void 0:d.toReference(e))||null,implements:((o=this.implements)==null?void 0:o.toReference(e))||null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){var r,a,d;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((r=this.defaultValue)==null?void 0:r.toFlatJSON(e))||[],...((a=this.dataType)==null?void 0:a.toFlatJSON(e))||[],...((d=this.implements)==null?void 0:d.toFlatJSON(e))||[],...this.parent.toFlatJSON(e)])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,private:this.private,required:this.required,abstract:this.abstract,static:this.static,implements:((e=this.implements)==null?void 0:e.id)||null,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var r,a;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((r=this.defaultValue)==null?void 0:r.toFlatGenerationTarget(e))||[],...((a=this.dataType)==null?void 0:a.toFlatGenerationTarget(e))||[]])}clearErrors(){var e,t;return this.errors=[],(e=this.defaultValue)==null||e.clearErrors(),(t=this.dataType)==null||t.clearErrors(),this}validate(){return this.errors=x7(this),this.errors.length,{success:!0,error:null,data:null}}getErrors(){var t,r;return[...this.errors,...((t=this.defaultValue)==null?void 0:t.getErrors())||[],...((r=this.dataType)==null?void 0:r.getErrors())||[]]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"clone-entity")),t=null,r=null,a=!0){var E,O;let d=ft(t,this);const o=r||I.UUID.uuid();let l=t||this.parent;const u={hidden:!1,id:o,version:I.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||"1",previousVersion:null,deleted:!1,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,constant:this.constant,required:this.required,abstract:this.abstract,static:this.static,defaultValue:null,dataType:null,implements:this.implements,parent:l},h=lt(u,d);a&&h.subscribe(),h.setParent(l,null),h.initChildren(e),e==null||e.add(h,b.Added);const c=((E=this.dataType)==null?void 0:E.clone(e,h,I.UUID.uuid(),a))||null;c&&h.setDataType(c);const v=(O=this.defaultValue)==null?void 0:O.clone(e,h,I.UUID.uuid(),a);return h.defaultValue=v||null,this.implements&&(h.implements=this.implements),h.addSelfToProject(null),e==null||e.attemptAutoclose("clone-entity",this.id),h}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}getDataType(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"get-data-type"))){return this.dataType}getDefaultValue(){return this.defaultValue}setDefaultValue(e){return this.defaultValue=e,this}};f(Ie,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...r)=>null}),f(Ie,"type",n.Property),f(Ie,"USER_MANAGED_PARENT_TYPES",[n.DefinitionEntity]),f(Ie,"PARENT_TYPES",[...Ie.USER_MANAGED_PARENT_TYPES,n.PrimitiveEntity,n.BuiltInBaseEntity]),f(Ie,"MUTABLE_BASE_PROPERTIES",["name","description","private","abstract","static","required","constant"]),f(Ie,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Ie,"BASE_PROPERTIES",[...Ie.MUTABLE_BASE_PROPERTIES,...Ie.INMUTABLE_BASE_PROPERTIES]),f(Ie,"MUTABLE_META_PROPERTIES",[...Ie.MUTABLE_BASE_PROPERTIES,"index"]),f(Ie,"INMUTABLE_META_PROPERTIES",[...Ie.INMUTABLE_BASE_PROPERTIES]),f(Ie,"META_PROPERTIES",[...Ie.MUTABLE_META_PROPERTIES,...Ie.INMUTABLE_META_PROPERTIES]),f(Ie,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(Ie,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements"]),f(Ie,"UPSTREAM_PROPERTIES",[...Ie.MUTABLE_UPSTREAM_PROPERTIES,...Ie.INMUTABLE_UPSTREAM_PROPERTIES]),f(Ie,"MUTABLE_DOWNSTREAM_PROPERTIES",["dataType"]),f(Ie,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Ie,"DOWNSTREAM_PROPERTIES",[...Ie.MUTABLE_DOWNSTREAM_PROPERTIES,...Ie.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Ie,"PROPERTIES",[...Ie.META_PROPERTIES,...Ie.UPSTREAM_PROPERTIES,...Ie.DOWNSTREAM_PROPERTIES]);let Bi=Ie;function q7(i){var a;const s=g6(),e=i.toJSON();s.safeParse(e).success,(a=i.dataType)==null||a.validate();const r=[];if(i.id==="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id"){const d=ye({id:`${i.id}--${q.PropertyImplementsNonAbstact}`,message:`Property "${F(i,i.project)}" with id "${i.id}" implements a non-abstract property "${F(i,i.project)}" with id "${i.id}".`,issue:null,severity:D.Error,code:q.PropertyImplementsNonAbstact,entity:i});r.push(d.error)}return ze(i.errors,r)}var W1=(i=>(i.Implements="implements",i.DataTypeEntity="data-type-entity",i))(W1||{});const Ae=class Ae extends rt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"index");f(this,"required");f(this,"constant",!0);f(this,"isError");f(this,"type",n.ReturnDeclaration);f(this,"defaultValue",null);f(this,"dataType",null);f(this,"readsValue",null);f(this,"implements",null);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.index=e.index,this.name=e.name,this.description=e.description,this.required=e.required,this.constant=!0,this.isError=e.isError}static fromGenerationTarget(e,t){const r=B(e.parent),a=t.get(r);let d=null;if(e.readsValue){const u=B(e.readsValue);d=t.get(u)}const o={id:e.id,version:I.UUID.uuid(),createdAt:T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.ReturnDeclaration,index:a.outputs.length,isError:!1,description:e.description,defaultValue:null,implements:null,required:e.required,constant:!0,readsValue:d,dataType:null,parent:a},l=V(o,t);return l.setParent(a,null),l.initChildren(null),l}static validateGenerationTarget(e,t){var l,u;let r=JSON.parse(JSON.stringify(e));const a=[],d=Et(r,{parent:{list:!1,types:[n.ReturnStatement,n.Search,n.BreakStatement,n.ContinueStatement]}},t),o=Ec(r,t);if(r=d.modifiedData,r.parent){const h=t.get(B(r.parent));if(h&&[n.BreakStatement,n.ContinueStatement].includes(h.type)){const c=h,v=c.parent,E=[...v.breakStatements.filter(w=>w.id!==h.id),...v.continueStatements.filter(w=>w.id!==h.id)];if(c.outputs.length)a.push(new P({id:`${r.id}--${j.NoOverlapWithImplementedSignature}`,code:j.NoOverlapWithImplementedSignature,severity:D.Error,message:`Entity of type '${n.ReturnDeclaration}' with id '${r.id}' cannot be added to the parent entity of type '${c.type}' with id '${c.id}'. This '${c.type}' already has return declarations.
|
|
46
46
|
${Vc}`,issue:null}));else{const w=(u=(l=E[0])==null?void 0:l.outputs[0])==null?void 0:u.name;w!==r.name&&a.push(new P({id:`${r.id}--${j.NoOverlapWithImplementedSignature}`,code:j.NoOverlapWithImplementedSignature,severity:D.Error,message:`Entity of type '${n.ReturnDeclaration}' with id '${r.id}' cannot be added to the parent entity of type '${c.type}' with id '${c.id}'. This new 'return-declaration' doesn't have the same name "${w}" as the return declarations on the other statements in the same scope.
|
|
@@ -402,7 +402,7 @@ All global 'function-declaration' entity ids are:
|
|
|
402
402
|
The project currently has no global 'function-declaration' entities that can be called as 'function-call' entities.`;a.push(new P({id:`${r.id}--${A.InvalidReference}`,code:A.InvalidReference,severity:D.Error,message:`Entity of type "${n.FunctionCall}" with id "${r.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'function-declaration' entity.
|
|
403
403
|
References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${l}`,issue:null}))}return{errors:a,modifiedData:r}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new P({id:`${this.id}--${A.InvalidParentUpdate}`,code:A.InvalidParentUpdate,severity:D.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.
|
|
404
404
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
405
|
-
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:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],r=[],a=[];return Object.values(this.detachedDependents).forEach(d=>{const o=d.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),r.push(...o.removed),a.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}onDetachedDependencyRemoved(e,t,r){const a=[],d=[],o=[],l=[];if(t==="declaration"){const{updated:u,added:h,removed:c}=this.remove({ignoreUpstream:!1},r);a.push(...u),d.push(...h),o.push(...c)}if(t==="parent"){const{updated:u,added:h,removed:c}=this.remove({ignoreUpstream:!1},r);a.push(...u),d.push(...h),o.push(...c)}return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,r){const a=[],d=[],o=[],l=[];if(t==="declaration"){const{updated:u,added:h,removed:c}=this.restore({},r);a.push(...u),d.push(...h),o.push(...c)}if(t==="parent"){const{updated:u,added:h,removed:c}=this.restore({},r);a.push(...u),d.push(...h),o.push(...c)}return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this.declaration.subscribeDependents([{entity:this,field:"declaration"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=I.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t,r;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new ke(this,this.project);return(r=this.knownVersions)==null||r.set(this.version,e),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.successCalls=this.successCalls,e.errorCalls=this.errorCalls,e.process=this.process,e.declaration=this.declaration,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],r=[],a=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),r.push(...o.added),a.push(...o.removed)}return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],r=[],a=[],d=[];if(this.version===e)return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[h,c]of this.knownVersions||new Map){if(u.set(h,c),c.activeVersion=!1,c.knownVersions)for(const[v,E]of c.knownVersions)u.set(v,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new ke(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.successCalls=o.successCalls,this.errorCalls=o.errorCalls,this.process=o.process,this.declaration=o.declaration,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],r=[],a=[];if(this.initialData.parent){const d=B(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' 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 d=B(this.initialData.declaration),o=this.project.get(d);o&&(this.setDeclaration(o),e.push(o))}return this.initialData.calledByEntry.forEach(d=>{const o=B(d),l=this.project.get(o);l&&(this.addEntryCaller(l,null),e.push(l))}),this.initialData.calledBySuccess.forEach(d=>{const o=B(d),l=this.project.get(o);l&&(this.addSuccessCaller(l,null),e.push(l))}),this.initialData.calledByError.forEach(d=>{const o=B(d),l=this.project.get(o);l&&(this.addErrorCaller(l,null),e.push(l))}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],r=[],a=[],d=[];this.initialized=!0,this.captureVersion();const{updated:o,added:l,removed:u}=this.syncMissingFixedInputs(e),{updated:h,added:c,removed:v}=this.syncMissingFixedOutputs(e);return t.push(...o,...h),r.push(...l,...c),a.push(...u,...v),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-self-to-project"))){var o;const t=[this],r=[],a=[],d=[];return this.parent===this.project&&this.project.addFunctionCall(this),(o=this.process)==null||o.writesValues.forEach(l=>{l.setValueWriter(this.process),t.push(l)}),this.successCalls.forEach(l=>{l.addSuccessCaller(this,e),t.push(l)}),this.errorCalls.forEach(l=>{l.addErrorCaller(this,e),t.push(l)}),this.calledBySuccess.forEach(l=>{l.addSuccessCall(this),t.push(l)}),this.calledByError.forEach(l=>{l.addErrorCall(this),t.push(l)}),this.calledByEntry.forEach(l=>{l.addCall(this),t.push(l)}),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(r=>r.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(r=>r.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addValueReader(e){var t;return(t=this.process)==null||t.addValueReader(e),this}removeValueReader(e){var t;return(t=this.process)==null||t.removeValueReader(e),this}addSuccessCaller(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-success-caller"))){return this.calledBySuccess.find(r=>r.id===e.id)||(this.calledBySuccess.push(e),t&&(t==null||t.add(this,b.Updated),t==null||t.add(e,b.Affected)),t==null||t.attemptAutoclose("add-success-caller",this.id)),this}addErrorCaller(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-error-caller"))){return this.calledByError.find(r=>r.id===e.id)||(this.calledByError.push(e),t&&(t==null||t.add(this,b.Updated),t==null||t.add(e,b.Affected)),t==null||t.attemptAutoclose("add-error-caller",this.id)),this}addEntryCaller(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-entry-caller"))){return this.calledByEntry.find(r=>r.id===e.id)||(this.calledByEntry.push(e),t&&(t==null||t.add(this,b.Updated),t==null||t.add(e,b.Affected)),t==null||t.attemptAutoclose("add-entry-caller",this.id)),this}addErrorCall(e){return this.errorCalls.find(t=>t.id===e.id)||this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.find(t=>t.id===e.id)||this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const r=this.errorCalls.findIndex(a=>a.id===e.id);return r>-1&&this.errorCalls.splice(r,1),this}removeCaller(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-caller"))){return this.calledBySuccess=this.calledBySuccess.filter(r=>r.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(r,b.Affected)),!0):!1),this.calledByError=this.calledByError.filter(r=>r.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(r,b.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(r=>r.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(r,b.Affected)),!0):!1),t==null||t.attemptAutoclose("remove-caller",this.id),this}setParent(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"set-parent"))){var r;return((r=this.parent)==null?void 0:r.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setDeclaration(e){return this.declaration=e,this}initChildren(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.declaration.type===n.FunctionDeclaration){const t=V(this.initialData.declaration,this.project);this.declaration=t}else{const t=B(this.initialData.declaration),r=this.project.get(t);this.declaration=r}return this.successCalls=this.initialData.successCalls.map(t=>{const r=V(t,this.project);return r.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(r.type)?(r.setParent(this.parent.parent,null),r.initChildren(e)):r.type!==n.InternalCall&&(r.setParent(this.parent,null),r.initChildren(e)),r}),this.errorCalls=this.initialData.errorCalls.map(t=>{const r=V(t,this.project);return r.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(r.type)?(r.setParent(this.parent.parent,null),r.initChildren(e)):r.type!==n.InternalCall&&(r.setParent(this.parent,null),r.initChildren(e)),r}),this.inputs=this.initialData.inputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(e),r}),this.initialData.process&&(this.process=V(this.initialData.process,this.project),this.process.setParent(this,null),this.process.initChildren(e)),this.initialData.error&&(this.error=V(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-meta"))){const r=dt(this,e);return e.deleted===!0&&!this.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&this.deleted?t==null||t.add(this,b.Added):r&&(t==null||t.add(this,b.Updated)),super.metaSync(e),this.x=e.x||this.x,this.y=e.y||this.y,t==null||t.attemptAutoclose("sync-meta",this.id),this}async APILoad(e=L,...t){return await ke.repository.APILoad(this.id,...t),this}async APICreate(e=L,...t){return await ke.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=L,...t){return await ke.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=L,...t){return await ke.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=L,...t){return await ke.repository.APIClone(this.id,...t),this}async APILoadVersion(e=L,t,...r){return await ke.repository.APILoadVersion(this.id,t,...r)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-entity"))){var l;const r=[],a=[],d=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(a.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(u=>{const{updated:h,removed:c,added:v}=u.entity.onDetachedDependencyRemoved(this,u.field,t);r.push(...h),a.push(...c),d.push(...v)}),this.process){const{updated:u,removed:h}=(l=this.process)==null?void 0:l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}if(this.inputs.forEach(u=>{const{updated:h,removed:c}=u.remove({ignoreUpstream:!0},t);r.push(...h),a.push(...c)}),this.outputs.forEach(u=>{const{updated:h,removed:c}=u.remove({ignoreUpstream:!0},t);r.push(...h),a.push(...c)}),this.error){const{updated:u,removed:h}=this.error.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}return this.successCalls.forEach(u=>{r.push(u),u.removeCaller(this)}),this.errorCalls.forEach(u=>{r.push(u),u.removeCaller(this)}),e||this.calledBy.forEach(u=>{r.push(u),u.removeCall(this)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(r),removed:p(a),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"restore-entity"))){const t=[],r=[],a=[],d=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.process){const{updated:o}=this.process.restore({},e);r.push(...o)}return this.inputs.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.outputs.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.successCalls.forEach(o=>{r.push(o),o.addSuccessCaller(this)}),this.errorCalls.forEach(o=>{r.push(o),o.addErrorCaller(this)}),this.calledBySuccess.forEach(o=>{r.push(o),o.addSuccessCall(this)}),this.calledByError.forEach(o=>{r.push(o),o.addErrorCall(this)}),this.calledByEntry.forEach(o=>{r.push(o),o.addCall(this)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(r),removed:p(a),affected:p(d),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(r=>r.toFlat(e)),...this.errorCalls.flatMap(r=>r.toFlat(e)),...this.inputs.flatMap(r=>r.toFlat(e)),...this.outputs.flatMap(r=>r.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[],...this.calledBy.flatMap(r=>r.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(r=>r.toFlatIds(e)),...this.errorCalls.flatMap(r=>r.toFlatIds(e)),...this.inputs.flatMap(r=>r.toFlatIds(e)),...this.outputs.flatMap(r=>r.toFlatIds(e))])}toJSON(e=new Set){var t,r;return e.has(this.id)?this.toReference():(e.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(a=>a.toJSON(e)),errorCalls:this.errorCalls.map(a=>a.toJSON(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference()),calledByError:this.calledByError.map(a=>a.toReference()),calledByEntry:this.calledByEntry.map(a=>a.toReference()),process:(t=this.process)==null?void 0:t.toJSON(e),declaration:this.declaration.toJSON(e),inputs:this.inputs.map(a=>a.toJSON(e)),outputs:this.outputs.map(a=>a.toJSON(e)),parent:this.parent.toReference(),error:(r=this.error)==null?void 0:r.toJSON(e)})}toJSONClone(e=Z){var r,a,d,o,l,u,h;let t;return(r=e.seenEntityMaps)!=null&&r.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ct(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:I.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(c=>c.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(c=>c.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),process:(u=this.process)==null?void 0:u.toJSONClone({...e,newId:null}),declaration:this.declaration.toJSONClone({...e,newId:null}),inputs:this.inputs.map(c=>c.toJSONClone({...e,newId:null})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),error:(h=this.error)==null?void 0:h.toJSONClone({...e,newId:null}),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+I.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,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(e):null,inputs:this.inputs.map(a=>a.toReference(e)),outputs:this.outputs.map(a=>a.toReference(e)),declaration:this.declaration.toReference(e),successCalls:this.successCalls.map(a=>a.toReference(e)),errorCalls:this.errorCalls.map(a=>a.toReference(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference(e)),calledByError:this.calledByError.map(a=>a.toReference(e)),calledByEntry:this.calledByEntry.map(a=>a.toReference(e)),error:this.error?this.error.toReference(e):null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(r=>r.toFlatJSON(e)),...this.errorCalls.flatMap(r=>r.toFlatJSON(e)),...this.inputs.flatMap(r=>r.toFlatJSON(e)),...this.outputs.flatMap(r=>r.toFlatJSON(e)),...this.process?this.process.toFlatJSON(e):[],...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.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(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),declaration:this.declaration.id,parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(r=>r.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(r=>r.toFlatGenerationTarget(e)),...this.inputs.flatMap(r=>r.toFlatGenerationTarget(e)),...this.outputs.flatMap(r=>r.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(r=>r.clearErrors()),this.outputs.forEach(r=>r.clearErrors()),this.successCalls.forEach(r=>r.clearErrors()),this.errorCalls.forEach(r=>r.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=Nq(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"clone-entity")),t=null,r=null,a=!0){var O,w;let d=ft(t,this);const o=this.toJSON(),l=r||I.UUID.uuid();o.inputs=[];const u=l.split("-id"),h=u[u.length-1||0]||l;o.id=l,o.version=I.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=lt(o,d);t?c.setParent(t,null):c.setParent(this.parent,null),a&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const v=(O=this.inputs)==null?void 0:O.map((C,U)=>C.clone(e,c,h+"-input-map-"+U+"-id",a));c.inputs=v;const E=(w=this.outputs)==null?void 0:w.map((C,U)=>C.clone(e,c,h+"-output-map-"+U+"-id",a));return c.outputs=E,this.error&&(c.error=this.error.clone(e,c,h+"-error-map-id",a)),this.process&&(c.process=this.process.clone(e,c,h+"-process-id",a)),e==null||e.attemptAutoclose("clone-entity",this.id),c}removeUnrecognizedInputs(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-unrecognized-inputs"))){const t=[],r=[],a=[],d=[];return this.inputs.forEach(o=>{if(!this.declaration.inputs.find(u=>{var h;return u.id===((h=o.declaration)==null?void 0:h.id)})){const u=o.remove({ignoreUpstream:!1},e);a.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-inputs",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}removeUnrecognizedOutputs(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-unrecognized-outputs"))){const t=[],r=[],a=[],d=[];return this.outputs.forEach(o=>{if(!this.declaration.getUniqueReturnDeclarations().find(u=>{var h;return u.id===((h=o.declaration)==null?void 0:h.id)})){const u=o.remove({ignoreUpstream:!1},e);a.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-outputs",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}syncMissingFixedInputs(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-missing-fixed-inputs"))){const t=[],r=[],a=[],d=[],o=this.declaration.inputs.filter(c=>!this.inputs.find(v=>v.declaration.id===c.id));this.inputs.sort((c,v)=>c.index-v.index),o.forEach(c=>{this.inputs.forEach(O=>{O.index>=c.index&&O.metaSync({index:O.index+1},e)});const v={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.InputMap,declaration:c.toJSON(),readsValue:null,defaultValue:null,index:c.index,name:null,description:null,parent:this.toReference()},E=V(v,this.project);E.setParent(this,e),E.initChildren(e),e==null||e.add(E,b.Added),E.addSelfToProject(e),r.push(E)}),this.inputs.sort((c,v)=>c.index-v.index);const{updated:l,added:u,removed:h}=this.removeUnrecognizedInputs(e);return t.push(...l),r.push(...u),a.push(...h),e==null||e.attemptAutoclose("sync-missing-fixed-inputs",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}syncMissingFixedOutputs(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-missing-fixed-outputs"))){const t=[],r=[],a=[],d=[],o=[];this.outputs=this.initialData.outputs.map(v=>{const E=V(v,this.project);return o.push(E.index),E.setParent(this,null),E.initChildren(e),E});const l=this.declaration.getUniqueReturnDeclarations().filter(v=>!this.outputs.find(E=>E.declaration.id===v.id));this.outputs.sort((v,E)=>v.index-E.index),l.forEach((v,E)=>{this.outputs.forEach(U=>{U.index>=v.index&&U.index++});const O=o.includes(v.index)?this.outputs.length-1+E:v.index,w={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.OutputMap,declaration:v.toJSON(),defaultValue:null,writesValues:[],index:O,parent:this.toReference()},C=V(w,this.project);C.setParent(this,e),C.initChildren(e),e==null||e.add(C,b.Added),C.addSelfToProject(e)}),this.outputs.sort((v,E)=>v.index-E.index);const{updated:u,added:h,removed:c}=this.removeUnrecognizedOutputs(e);return t.push(...u),r.push(...h),a.push(...c),e==null||e.attemptAutoclose("sync-missing-fixed-outputs",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}};f(ke,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...r)=>null}),f(ke,"type",n.FunctionCall),f(ke,"USER_MANAGED_PARENT_TYPES",[...mt,n.Project]),f(ke,"PARENT_TYPES",[...ke.USER_MANAGED_PARENT_TYPES]),f(ke,"MUTABLE_BASE_PROPERTIES",[]),f(ke,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(ke,"BASE_PROPERTIES",[...ke.MUTABLE_BASE_PROPERTIES,...ke.INMUTABLE_BASE_PROPERTIES]),f(ke,"MUTABLE_META_PROPERTIES",["x","y"]),f(ke,"INMUTABLE_META_PROPERTIES",[...ke.INMUTABLE_BASE_PROPERTIES]),f(ke,"META_PROPERTIES",[...ke.MUTABLE_META_PROPERTIES,...ke.INMUTABLE_META_PROPERTIES]),f(ke,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),f(ke,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),f(ke,"UPSTREAM_PROPERTIES",[...ke.MUTABLE_UPSTREAM_PROPERTIES,...ke.INMUTABLE_UPSTREAM_PROPERTIES]),f(ke,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),f(ke,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(ke,"DOWNSTREAM_PROPERTIES",[...ke.MUTABLE_DOWNSTREAM_PROPERTIES,...ke.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(ke,"PROPERTIES",[...ke.META_PROPERTIES,...ke.UPSTREAM_PROPERTIES,...ke.DOWNSTREAM_PROPERTIES]);let qi=ke;function Lc(i){return i&&typeof i.then=="function"}class Fd{constructor(s){f(this,"order",[]);f(this,"flatRecord",{});f(this,"allBuiltInEntityIds",Vr());f(this,"onGoingVisits",{});this.flatten(s),this.orderEntities()}flatten(s){const e=new Set(Vr()),t=p(N(s,e,{ignoreBuiltInBaseEntities:!0})),r=new Set;for(const a of t)this.flatRecord[a.id]=a,r.add(a.id);this.order=Array.from(r)}moveEntityAfterDependencies(s){const{upstream:e}=Jd(s,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});for(const t of Object.keys(e)){const r=this.order.indexOf(t),a=this.order.indexOf(s.id);if(r>a)return this.order.splice(a,1),this.order.splice(r,0,s.id),!0}return!1}orderEntities(){let s=!1;for(let e=0;e<this.order.length;e++){const t=this.order[e],r=this.flatRecord[t];if(this.moveEntityAfterDependencies(r)){s=!0;break}}s&&this.orderEntities()}getUpstreamOngoingDependenciesVisits(s,e){const{upstream:t}=Jd(this.flatRecord[s],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}),r={};return Object.entries(this.onGoingVisits[e]||{}).forEach(([a,d])=>{Object.keys(t).includes(a)&&(r[a]=d)}),r}getDownstreamOngoingDependenciesVisits(s,e){const t=Object.keys(this.onGoingVisits[e]||{}),r=new Set(t.flatMap(d=>Object.keys(Jd(this.flatRecord[d],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}).downstream))),a={};return Array.from(r).forEach(d=>{d===s&&(a[d]=this.onGoingVisits[e][d])}),a}async settlePromises(s,e){const t=Object.values(s);t.length&&await Promise.all(t),Object.keys(s).forEach(r=>{delete this.onGoingVisits[e][r]})}visit(s){const e=this.order;for(const t of e)s(this.flatRecord[t],this.flatRecord);return this}reverseVisit(s){const e=this.order.slice().reverse();for(const t of e)s(this.flatRecord[t],this.flatRecord);return this}async visitAsync(s){const e=this.order,t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const r of e){const a=this.getUpstreamOngoingDependenciesVisits(r,t);Object.keys(a).length&&await this.settlePromises(a,t);const d=s(this.flatRecord[r],this.flatRecord);Lc(d)&&(this.onGoingVisits[t][r]=d)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}async reverseVisitAsync(s){const e=this.order.slice().reverse(),t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const r of e){const a=this.getDownstreamOngoingDependenciesVisits(r,t);Object.keys(a).length&&await this.settlePromises(a,t);const d=s(this.flatRecord[r],this.flatRecord);Lc(d)&&(this.onGoingVisits[t][r]=d)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}}function AO(i,s){switch(i.id){case x["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const e=i.project.entities.filter(l=>!!l.implements.find(u=>u.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(e.find(l=>!!l.properties.find(u=>{var h;return u.implements&&u.implements.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((h=u.getDefaultValue())==null?void 0:h.value)===!0}))){const u=e[0].properties.find(c=>c.implements&&c.implements.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),h=u==null?void 0:u.defaultValue;if(h)h.value=!0;else if(u!=null&&u.dataType){const c={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(s==null?void 0:s.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.LiteralValue,name:g.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:u==null?void 0:u.dataType.toReference()},v=V(c,i.project);return v.setParent(u==null?void 0:u.dataType,s),v.initChildren(s),s==null||s.add(v,b.Added),v.addSelfToProject(s),{newEntities:[v]}}return{newEntities:[]}}const r=i.project.get(x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),a=xd(r,"Main database",s);if(a.errors.length>0)return{newEntities:[]};const d=a.implemented.properties.find(l=>l.implements&&l.implements.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),o=d==null?void 0:d.defaultValue;if(o)o.value=!0;else if(d!=null&&d.dataType){const l={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(s==null?void 0:s.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.LiteralValue,name:g.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:d==null?void 0:d.dataType.toReference()},u=V(l,i.project);u.setParent(d==null?void 0:d.dataType,s),u.initChildren(s),s==null||s.add(u,b.Added),u.addSelfToProject(s)}return{newEntities:[a.implemented]}}}return{newEntities:[]}}function bO(i,s){return i.implements.filter(t=>t.type===n.BuiltInBaseEntity).map(t=>{switch(t.id){case x["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const a=i.project.entities.filter(l=>l.implements.find(u=>u.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(l=>!!l.properties.find(u=>{var h;return u.implements&&u.implements.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((h=u.getDefaultValue())==null?void 0:h.value)===!0}));if(!a)return{newEntities:[]};const d=i.properties.find(l=>l.implements&&l.implements.id===x["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),o=d==null?void 0:d.defaultValue;if(d&&(d!=null&&d.dataType)&&!o){const l={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(s==null?void 0:s.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.LiteralValue,name:g.EntityTemplate,autogeneration:null,value:null,valueAsTypeSingle:a,valueAsTypeList:null,parent:d==null?void 0:d.dataType.toReference()},u=V(l,i.project);return u.setParent(d==null?void 0:d.dataType,s),u.initChildren(s),s==null||s.add(u,b.Added),u.addSelfToProject(s),{newEntities:[u]}}return{newEntities:[]}}}}),{newEntities:[]}}function xd(i,s,e,t){const r=t||I.UUID.uuid(),a=I.UUID.uuid(),d={id:r,version:a,createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,name:s,type:n.DefinitionEntity,description:null,static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[i],x:0,y:0,parent:i.project},o=AO(i,e),l=V(d,i.project);l.setParent(i.project,e),l.initChildren(e),e==null||e.add(l,b.Added),i.properties.map(h=>{const c=I.UUID.uuid(),v=h.clone(e,l,c);return v.abstract=!1,v.implements=h,e==null||e.add(v,b.Added),v.setParent(l,e),l.addProperty(v),v}),i.abstractMethods.map(h=>{const c=I.UUID.uuid(),v=h.implementAsFunctionDeclaration(e,l,c);return l.addMethod(v),e==null||e.add(v,b.Added),v}),l.afterAllChildrenInitialized(e);const u=bO(l,e);return{implemented:l,errors:[],entitiesChanges:{new:[l,...o.newEntities,...u.newEntities],updated:[l],deleted:[]}}}function Uc(i,s){return s.entities.find(r=>{const a=r.properties,d=a.map(c=>c.name),o=i.every(c=>d.includes(c)),l=d.filter(c=>!i.includes(c)),u=a.every(c=>!l.includes(c.name)||!c.required);return o&&u})||null}function RO(i,s,e,t=bt.OrDataTypeGroup){const r=[],a=[],d=[],o=[],u={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,entity:i.toJSON(),isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:t,parent:s.toReference()},h=V(u,i.project);return a.push(h),h.setParent(s,e),h.initChildren(e),e==null||e.add(h,b.Added),h.setEntity(i),h.addSelfToProject(e),{updated:p(r),added:p(a),removed:p(d),affected:p(o),self:h}}function $c(i,s,e,t,r){var u,h,c,v,E,O,w,C;const a=[],d=[],o=[],l=[];switch(typeof i){case"string":let U=!1;const G=new Date(i);if(G instanceof Date&&!isNaN(G.valueOf())&&(U=!0),U){const _=s.project.getBuiltIn(x[n.PrimitiveEntity][g.Date].id);s.setEntity(_);break}else{const _=s.project.getBuiltIn(x[n.PrimitiveEntity][g.String].id);s.setEntity(_);break}case"number":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Number].id));break;case"boolean":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Boolean].id));break;case"object":if(i===null){s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Null].id));break}else if(Array.isArray(i))if(s.metaSync({isList:!0},t),i.length>0){const _=i.slice(0,5).filter(k=>k!==void 0);if(_.every(k=>typeof k==typeof _[0])&&(typeof _[0]!="object"||_[0]===null))switch(typeof _[0]){case"string":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.String].id));break;case"number":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Number].id));break;case"boolean":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Boolean].id));break;case"object":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Null].id));break}else{const k=[];let J=!1;_.forEach(pe=>{var Te,K,se,Ht;if(Array.isArray(pe)&&(J=!0),typeof pe=="object"&&!Array.isArray(pe)&&pe!==null){const Yr=Sd(pe,s.project,{...e,id:I.UUID.uuid()},t,r);Yr.hasCreated&&k.push((Te=Yr.changeSet)==null?void 0:Te.self),a.push(...(K=Yr.changeSet)==null?void 0:K.updated),d.push(...(se=Yr.changeSet)==null?void 0:se.added),o.push(...(Ht=Yr.changeSet)==null?void 0:Ht.removed)}});const ee=p(k);if(!ee.length&&!J){_.forEach(pe=>{const Te={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:bt.OrDataTypeGroup,parent:s.toReference()},K=V(Te,s.project);switch(K.setParent(s,t),K.initChildren(t),t==null||t.add(K,b.Added),K.addSelfToProject(t),typeof pe){case"string":K.setEntity(K.project.getBuiltIn(x[n.PrimitiveEntity][g.String].id));break;case"number":K.setEntity(K.project.getBuiltIn(x[n.PrimitiveEntity][g.Number].id));break;case"boolean":K.setEntity(K.project.getBuiltIn(x[n.PrimitiveEntity][g.Boolean].id));break;case"object":K.setEntity(K.project.getBuiltIn(x[n.PrimitiveEntity][g.Null].id));break}});break}else ee.length===1&&!J?s.setEntity(ee[0]):_.forEach(pe=>{if(typeof pe=="object"&&!Array.isArray(pe)&&pe!==null){const Te=Uc(Object.keys(pe),s.project);if(Te){const K=RO(Te||ee[0],s,t,bt.OrDataTypeGroup);a.push(...K.updated),d.push(...K.added),o.push(...K.removed)}}else{const Te={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,entity:null,isList:Array.isArray(pe),asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:bt.OrDataTypeGroup,parent:s.toReference()},K=V(Te,s.project);K.setParent(s,t),K.initChildren(t),t==null||t.add(K,b.Added),K.addSelfToProject(t);const se=$c(pe,K,{...e,id:I.UUID.uuid()},t,r);a.push(...se.updated),d.push(...se.added),o.push(...se.removed)}})}}else{const _=Sd(i[0],s.project,{...e},t,r);s.setEntity((u=_.changeSet)==null?void 0:u.self),a.push(...(h=_.changeSet)==null?void 0:h.updated),d.push(...(c=_.changeSet)==null?void 0:c.added),o.push(...(v=_.changeSet)==null?void 0:v.removed);break}else{const _=Sd(i,s.project,{...e},t,r);s.setEntity((E=_.changeSet)==null?void 0:E.self),a.push(...(O=_.changeSet)==null?void 0:O.updated),d.push(...(w=_.changeSet)==null?void 0:w.added),o.push(...(C=_.changeSet)==null?void 0:C.removed);break}}return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:s}}function Sd(i,s,e,t,r){const a=[],d=[],o=[],l=[],u=Object.keys(i),h=Uc(u,s);if(h)return{hasCreated:!1,changeSet:{updated:[],added:[],removed:[],affected:[],self:h}};const c=r?e.name+" of "+r.name:e.name,E={id:e.id||I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,name:c,type:n.DefinitionEntity,description:e.description||null,static:e.static||!1,abstract:e.abstract||!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:s.toReference()},O=V(E,s);return O.setParent(s,t),O.initChildren(t),t==null||t.add(O,b.Added),O.addSelfToProject(t),d.push(O),u.forEach((w,C)=>{const G={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,name:w,type:n.Property,description:null,static:!1,abstract:!1,defaultValue:null,constant:!1,dataType:null,implements:null,index:C,hidden:!1,private:!1,required:!0,parent:O.toReference()},_=V(G,s);_.setParent(O,t),_.initChildren(t),t==null||t.add(_,b.Added),_.addSelfToProject(t),d.push(_);const $=i[w],J={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parent:_.toReference()},ee=V(J,s);ee.setParent(_,t),ee.initChildren(t),t==null||t.add(ee,b.Added),ee.addSelfToProject(t),d.push(ee);const pe=$c($,ee,{...e,name:w,id:I.UUID.uuid()},t,r||O);a.push(...pe.updated),d.push(...pe.added),o.push(...pe.removed)}),{hasCreated:!0,changeSet:{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:O}}}function kd(i,s){const e=Mn(i);if(e.length===0)return{list:[],last:null};let t=null;return{list:e.flatMap(a=>{if(a===s)return t=a,[a];const d=kd(a,s);return d.last&&(t=d.last),[a,...d.list]}),last:t}}function DO(i,s,e=new Set){const t=Ji(i),r=Ji(s),a=t.filter(l=>!r.includes(l)),d=t.filter(l=>r.includes(l)),o=a.reduce((l,u)=>e.has(u.id)?l:(e.add(u.id),p([...l,...DO(u,s,e)])),[]);return p([...d,...o])}function Vs(i,s){const e=kd(i,s);return e.last===s&&e.list.length>0&&e.list[0]!==s}function Lq(i,s){return!!kd(i,s).last}function Uq(i){if(at.includes(i.type))return i;if([...Cr,n.VariableDeclaration].includes(i.type)){const s=i.parent;return at.includes(s.type)?s:null}return null}function jc(i,s){if(!i||!s)throw new Error("Both entities must be defined to find a common ancestor");if(i===s)return i;const e=i.parent;if(e){if(e===s)return s;if(e.type===n.Project)return null}else return null;const t=s.parent;if(t){if(t===i)return i;if(t.type===n.Project)return null}else return null;return jc(e,t)}function wt(i){if(Gs.includes(i.type)){if(i.type===n.FunctionDeclaration){const s=i.parent;if(s.type===n.DefinitionEntity)return s;if(s.type===n.Loop)return s}return i}else{const s=i.parent;return s?wt(s):null}}function Zd(i,s){const e=Cs(i,s);if(!e)return null;if(Gs.includes(e.type)){if(e.type===n.FunctionDeclaration){const t=Cs(e.parent,s);if(t){if(t.type===n.DefinitionEntity)return t;if(t.type===n.Loop)return t}}return e}else{const t=e.parent?Cs(e.parent,s):null;return t?Zd(t,s):null}}function OO(i){if(!i)return null;if(Cr.includes(i.type))return i;const s=i.parent;return s?OO(s):null}function PO(i){if(!i)return null;if(nt.includes(i.type))return i;const s=i.parent;return s?PO(s):null}function wO(i){if(!i)return null;if(Br.includes(i.type))return i;const s=i.parent;return s?wO(s):null}function $q(i){return i.type===n.VariableDeclaration?[i]:nt.includes(i.type)?[...i.inputs,...i.outputs||[]]:st.includes(i.type)?i.outputs:$n.includes(i.type)||i.type===n.FunctionDeclaration?i.inputs:[]}function jq(i){const s=Ji(i),e=[],t=[];ef.includes(i.type)&&e.push(...Gc(i));const r=s.filter(a=>{const d=e.includes(a);return d?!1:Cr.includes(a.type)&&!d?(t.push(a),!1):!0});return e.sort((a,d)=>Vs(d,a)?-1:0),t.sort((a,d)=>Vs(d,a)?-1:0),[...e,...t,...r]}function VO(i){return[...i].sort((s,e)=>Vs(e,s)?-1:0)}function Gq(i){const s=VO(i),e=[];return s.forEach(t=>{const r=e[e.length-1];if(r){const a=r[r.length-1];Vs(t,a)?e.push([t]):r.push(t)}else e.push([t])}),e}function zt(i){const s=i.map(e=>wt(e));return p(s)}function Gc(i){return nt.includes(i.type)?[...zt(i.successCalls),...zt(i.errorCalls)]:at.includes(i.type)?zt(i.calls):[]}function Fq(i,s){return Gc(i).includes(s)}function Fc(i){return i.writesValues||[]}function xq(i,s){return Fc(i).includes(s)}function CO(i){var s;return Qe.includes((s=i==null?void 0:i.readsValue)==null?void 0:s.type)?i.readsValue:null}function Sq(i){return i.writesValues}function BO(i=[]){return i.map(CO).filter(s=>!!s)}function qd(i=[]){return i.map(s=>s.writesValues).flat().filter(s=>Qe.includes(s.type))}function _O(i=[]){return i.map(s=>s.readsValue).filter(s=>!!s&&Qe.includes(s.type))}function MO(i){return Qe.includes(i.type)?i:null}function gO(i){return i.writesValues.map(MO).filter(s=>!!s)}function NO(i=[]){return i.reduce((s,e)=>e.type===n.OutputMap?[...s,...gO(e)]:s,[])}function it(i){return nt.includes(i.type)?[...Wr(zt(i.successCalls)),...Wr(zt(i.errorCalls))]:at.includes(i.type)?Wr(zt(i.calls)):[]}function kq(i){return nt.includes(i.type)?[...Wr(zt(i.successCalls)),...Wr(zt(i.errorCalls))]:at.includes(i.type)?Wr(zt(i.calls)):[]}function LO(i,s=new Set){return i.writesValues.filter(t=>Qe.includes(t.type)&&!s.has(t.id)).reduce((t,r)=>s.has(r.id)?t:[...t,...We(r,s)],[])}function UO(i,s=new Set){var t;return(((t=i.readsValue)==null?void 0:t.writesValues)||[]).filter(r=>Qe.includes(r.type)&&!s.has(r.id)).reduce((r,a)=>s.has(a.id)?r:[...r,...We(a,s)],[])}function We(i,s=new Set){if(s.has(i.id))return[];if(i.type===n.ReturnStatement)return _O(i.outputs).reduce((t,r)=>[...t,...We(r,s)],[]);if(i.type===n.FunctionCall||i.type===n.Operation||i.type===n.Condition)return[...it(i).reduce((a,d)=>{const o=wt(d);return[...a,...We(o||d,s)]},[]),...BO(i.inputs),...NO(i.outputs)].reduce((a,d)=>[...a,...We(d,s)],[]);if($n.includes(i.type)){const e=qd(i.inputs),r=it(i).reduce((a,d)=>{const o=wt(d);return[...a,...We(o||d,s)]},[]);return e.push(...r),e.reduce((a,d)=>[...a,...We(d,s)],[])}if(i.type===n.FunctionDeclaration){const e=[...qd(i.inputs)],r=it(i).reduce((a,d)=>{const o=wt(d);return[...a,...We(o||d,s)]},[]);return e.push(...r),e.reduce((a,d)=>[...a,...We(d)],[])}if(Qe.includes(i.type)){s.add(i.id);const t=it(i).reduce((r,a)=>{const d=wt(a);return[...r,...We(d||a,s)]},[]);return[i,...t,...UO(i,s),...LO(i,s)]}return[]}function ir(i,s=new Set){return s.has(i.id)?[]:(s.add(i.id),[...Ji(i).reduce((r,a)=>[...r,a,...ir(a,s)],[])])}function Wr(i){return i.reduce((s,e)=>e.type===n.ReturnStatement||e.type===n.ContinueStatement||e.type===n.BreakStatement?[...s,e]:[...s,e,...it(e)],[])}function $O(i){const s=i.entities||[],e=[...s,...i.functions||[],...i.events||[],...i.projects||[]],t=s.reduce((l,u)=>[...l,...u.properties],[]),r=s.reduce((l,u)=>[...l,...u.methods],[]),a=r.reduce((l,u)=>[...l,...qd(u.inputs),...Wr(zt(u.calls)),...u.returnStatements],[]),d=i.functions.reduce((l,u)=>[...l,...Wr(zt(u.calls)),...u.returnStatements],[]),o=i.events.reduce((l,u)=>[...l,...Wr(zt(u.calls)),...u.returnStatements],[]);return[...e,...t,...r,...a,...d,...o]}function jO(i,s){return s.filter(t=>{if(!t)return!1;switch(t.type){case n.FunctionCall:return t.inputs.find(r=>r.id===i.id)!==void 0||t.outputs.find(r=>r.id===i.id)!==void 0;case n.Condition:return t.successCalls.find(r=>r.id===i.id)!==void 0||t.errorCalls.find(r=>r.id===i.id)!==void 0||t.inputs.find(r=>r.id===i.id)!==void 0;case n.Operation:return t.outputs.find(r=>r.id===i.id)!==void 0;case n.VariableDeclaration:return nt.includes(i.type)?cP(i).find(a=>{var d;return((d=a.readsValue)==null?void 0:d.id)===t.id})!==void 0:!1;case n.DefinitionEntity:return t.properties.find(r=>r.id===i.id)!==void 0||t.methods.find(r=>r.id===i.id)!==void 0;case n.FunctionDeclaration:return t.inputs.find(r=>r.id===i.id)!==void 0||(t.returnStatements.map(r=>r.outputs).flat()||[]).find(r=>r.id===i.id)!==void 0;default:return!1}})}function Zq(i){const s=$O(i.project);return jO(i,s)}function Cs(i,s){return i?typeof i=="string"?s[i]:i.type===n.GenericReference?s[i.entityId]:s[i.id]?s[i.id]:null:null}function Jd(i,s={},e={ignoreBuiltInBaseEntities:!1,allBuiltInEntityIds:[]}){if(e.ignoreBuiltInBaseEntities&&(hr.includes(i.type)||(e.allBuiltInEntityIds||[]).includes(i.id)))return{upstream:{},downstream:{}};const t=i,r=i,a=i,d=i,o=i,l=i,u=i,h=i,c=i,v=i,E=i,O=i,w=i,C=[...w.readsValue?[w.readsValue]:[],...w.declaration?[w.declaration]:[],...(O.calledByEntry||[]).flatMap($=>$),...(O.calledBySuccess||[]).flatMap($=>$),...(O.calledByError||[]).flatMap($=>$),...(a.extends||[]).flatMap($=>$),...v.parent?[v.parent]:[]];Array.isArray(a.implements)?C.push(...a.implements.flatMap($=>$)):c.implements&&C.push(c.implements),o.valueAsTypeList&&Array.isArray(o.valueAsTypeList)&&C.push(...o.valueAsTypeList.flatMap($=>$)),o.valueAsTypeSingle&&C.push(o.valueAsTypeSingle);const U=[...(t.inputs||[]).flatMap($=>$),...(E.inputsDeclarations||[]).flatMap($=>$),...(t.outputs||[]).flatMap($=>$),...(E.outputsDeclarations||[]).flatMap($=>$),...(w.internalCalls||[]).flatMap($=>$),...w.writesValues||[],...O.dataType?[O.dataType]:[],...l.body?[l.body]:[],...O.defaultValue?[O.defaultValue]:[],...(O.successCalls||[]).flatMap($=>$),...(O.errorCalls||[]).flatMap($=>$),...(a.properties||[]).flatMap($=>$),...(a.methods||[]).flatMap($=>$),...(a.abstractMethods||[]).flatMap($=>$),...u.error?[u.error]:[],...u.process?[u.process]:[],...v.throws?[v.throws]:[],...(r.andChildrenGroup||[]).flatMap($=>$),...(r.orChildrenGroup||[]).flatMap($=>$),...(h.entities||[]).flatMap($=>$),...(h.functions||[]).flatMap($=>$),...(h.functionCalls||[]).flatMap($=>$),...(h.events||[]).flatMap($=>$),...(h.conditions||[]).flatMap($=>$),...(h.operations||[]).flatMap($=>$),...(h.loops||[]).flatMap($=>$),...(h.variableDeclarations||[]).flatMap($=>$),...(h.variableInstances||[]).flatMap($=>$),...(h.searches||[]).flatMap($=>$),...(h.projects||[]).flatMap($=>$),...(d.calls||[]).flatMap($=>$)];i.type===n.DataType&&(r.entity&&s[B(r.entity)]&&s[B(r.entity)].parent&&B(s[B(r.entity)].parent)===i.id?U.push(r.entity):r.entity&&C.push(r.entity));const G={},_={};return C.forEach($=>{const k=B($);if(k&&e.ignoreBuiltInBaseEntities&&(hr.includes($.type)||(e.allBuiltInEntityIds||[]).includes(k)))return;const J=$.version;k&&(G[k]=J)}),U.forEach($=>{const k=B($);if(k&&e.ignoreBuiltInBaseEntities&&(hr.includes($.type)||(e.allBuiltInEntityIds||[]).includes(k)))return;const J=$.version;k&&(_[k]=J)}),{upstream:G,downstream:_}}function qq(i,s){const e=[];if(Cr.includes(i.type)){fr(i).forEach(a=>{const d=Zd(a,s);d&&e.push(d)});const r=[...i.inputs||[],...i.outputs||[]].map(a=>{const d=Cs(a,s);return d?yP(d,s):null}).filter(a=>a!==null);e.push(...p(r))}if(Qe.includes(i.type)){const t=Wd(i);t&&e.push(t)}return p(e)}function Mn(i){const s=[];if(Cr.includes(i.type)){i.calledBy.forEach(r=>{const a=wt(r);a&&s.push(a)});const t=[...i.inputs||[],...i.outputs||[]].map(r=>Wd(r)).filter(r=>r!==null);s.push(...p(t))}if(Qe.includes(i.type)){const e=Wd(i);e&&s.push(e)}return p(s)}function fr(i){return[...i.calledByEntry||[],...i.calledByError||[],...i.calledBySuccess||[]].filter(s=>s.type!==n.GenericReference)}function GO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[i,...i.inputs.flatMap(t=>N(t,s,e)),...i.outputs.flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.parent?N(i.parent,s,e):[]]}function FO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[i,...i.defaultValue?N(i.defaultValue,s):[],...i.writesValues.flatMap(t=>N(t,s,e)),...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function xO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[i,...i.outputs.flatMap(t=>N(t,s,e)),...i.throws?N(i.throws,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function SO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[i,...(i.properties||[]).flatMap(t=>N(t,s,e)),...(i.methods||[]).flatMap(t=>N(t,s,e)),...(i.abstractMethods||[]).flatMap(t=>N(t,s,e)),...(i.extends||[]).flatMap(t=>N(t,s,e))]}function kO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Condition)throw new Error("Entity must be a condition to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function ZO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[i,...i.outputs.flatMap(t=>N(t,s,e)),...i.throws?N(i.throws,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function qO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[i,...(i.extends||[]).flatMap(t=>N(t,s,e)),...(i.implements||[]).flatMap(t=>N(t,s,e)),...(i.properties||[]).flatMap(t=>N(t,s,e)),...(i.methods||[]).flatMap(t=>N(t,s,e)),...(i.abstractMethods||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function JO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.DataType)throw new Error("Entity must be a data type to be flattened");return[i,...(i.andChildrenGroup||[]).flatMap(t=>N(t,s,e)),...(i.orChildrenGroup||[]).flatMap(t=>N(t,s,e)),...i.entity?N(i.entity,s,e):[],...i.parent?N(i.parent,s,e):[]]}function WO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.process?N(i.process,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function zO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.calls||[]).flatMap(t=>N(t,s,e)),...i.implements?N(i.implements,s,e):[],...i.parent?N(i.parent,s,e):[]]}function YO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.calls||[]).flatMap(t=>N(t,s,e)),...i.implements?N(i.implements,s,e):[],...i.parent?N(i.parent,s,e):[]]}function HO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.InputMap)throw new Error("Entity must be an input map to be flattened");return[i,...i.readsValue?N(i.readsValue,s,e):[],...i.declaration?N(i.declaration,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...i.parent?N(i.parent,s,e):[]]}function KO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[i,...(i.functions||[]).flatMap(t=>N(t,s,e)),...(i.events||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function XO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.process?N(i.process,s,e):[],...i.parent?N(i.parent,s,e):[]]}function QO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[i,...i.valueAsTypeSingle?N(i.valueAsTypeSingle,s,e):[],...i.valueAsTypeList&&Array.isArray(i.valueAsTypeList)?i.valueAsTypeList.flatMap(t=>N(t,s,e)):[],...i.parent?N(i.parent,s,e):[]]}function eP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Loop)throw new Error("Entity must be a loop to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.process?N(i.process,s,e):[],...i.body?N(i.body,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function tP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Operation)throw new Error("Entity must be an operation to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.process?N(i.process,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function rP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.OutputMap)throw new Error("Entity must be an output map to be flattened");return[i,...(i.writesValues||[]).flatMap(t=>N(t,s,e)),...i.declaration?N(i.declaration,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...i.parent?N(i.parent,s,e):[]]}function iP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[i,...(i.properties||[]).flatMap(t=>N(t,s,e)),...(i.methods||[]).flatMap(t=>N(t,s,e)),...(i.abstractMethods||[]).flatMap(t=>N(t,s,e))]}function nP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Project)throw new Error("Entity must be a project to be flattened");return[i,...(i.entities||[]).flatMap(t=>N(t,s,e)),...(i.functions||[]).flatMap(t=>N(t,s,e)),...(i.events||[]).flatMap(t=>N(t,s,e)),...(i.projects||[]).flatMap(t=>N(t,s,e)),...(i.variableDeclarations||[]).flatMap(t=>N(t,s,e)),...(i.variableInstances||[]).flatMap(t=>N(t,s,e)),...(i.operations||[]).flatMap(t=>N(t,s,e)),...(i.conditions||[]).flatMap(t=>N(t,s,e)),...(i.functionCalls||[]).flatMap(t=>N(t,s,e)),...(i.projects||[]).flatMap(t=>N(t,s,e)),...(i.loops||[]).flatMap(t=>N(t,s,e)),...(i.searches||[]).flatMap(t=>N(t,s,e))]}function aP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Property)throw new Error("Entity must be a property to be flattened");return[i,...i.defaultValue?N(i.defaultValue,s,e):[],...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function sP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ReturnDeclaration)throw new Error("Entity must be a return declaration to be flattened");return[i,...i.readsValue?N(i.readsValue,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function oP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[i,...(i.outputs||[]).flatMap(t=>N(t,s,e)),...i.throws?N(i.throws,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function dP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Search)throw new Error("Entity must be a search to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputsDeclarations||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputsDeclarations||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function lP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[i,...i.defaultValue?N(i.defaultValue,s,e):[],...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function uP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...(i.internalCalls||[]).flatMap(t=>N(t,s,e)),...(i.writesValues||[]).flatMap(t=>N(t,s,e)),...i.readsValue?N(i.readsValue,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function pP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...(i.internalCalls||[]).flatMap(t=>N(t,s,e)),...(i.writesValues||[]).flatMap(t=>N(t,s,e)),...i.readsValue?N(i.readsValue,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.declaration?N(i.declaration,s,e):[],...i.parent?N(i.parent,s,e):[]]}function Vr(){const i=new Set,s=eI.flatMap(e=>N(e,i)).map(e=>e.id);if(!s.includes("http-request-error-return-delaration-id"))throw new Error("Built-in base entities must be included in the list");return s}function N(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(!i)throw new Error("Entity must be defined to be flattened");if(i.type===n.GenericReference)return[];if(e.ignoreBuiltInBaseEntities&&(hr.includes(i.type)||Vr().includes(i.id)))return[];if(s.has(i.id))return[];switch(i.type){case n.FunctionCall:return WO(i,s,e);case n.Operation:return tP(i,s,e);case n.Condition:return kO(i,s,e);case n.Loop:return eP(i,s,e);case n.Search:return dP(i,s,e);case n.GlobalEvent:return YO(i,s,e);case n.ReturnStatement:return oP(i,s,e);case n.ContinueStatement:return ZO(i,s,e);case n.BreakStatement:return xO(i,s,e);case n.VariableDeclaration:return uP(i,s,e);case n.DefinitionEntity:return qO(i,s,e);case n.FunctionDeclaration:return zO(i,s,e);case n.Project:return nP(i,s,e);case n.ActionDescriptor:return GO(i,s,e);case n.ArgumentDeclaration:return FO(i,s,e);case n.ReturnDeclaration:return sP(i,s,e);case n.ValueDescriptor:return lP(i,s,e);case n.InputMap:return HO(i,s,e);case n.OutputMap:return rP(i,s,e);case n.DataType:return JO(i,s,e);case n.InstalledProject:return KO(i,s,e);case n.InternalCall:return XO(i,s,e);case n.LiteralValue:return QO(i,s,e);case n.Property:return aP(i,s,e);case n.VariableInstance:return pP(i,s,e);case n.BuiltInBaseEntity:return e.ignoreBuiltInBaseEntities?[]:SO(i,s,e);case n.PrimitiveEntity:return e.ignoreBuiltInBaseEntities?[]:iP(i,s,e)}return[]}function xc(i){return i.type===n.FunctionCall||i.type===n.InternalCall||[n.Operation,n.Condition,n.Loop].includes(i.type)?i.declaration.inputs:i.type===n.FunctionDeclaration||$n.includes(i.type)?i.inputs:i.type===n.Search?i.inputsDeclarations:[]}function Jq(i,s){return s.type===n.Condition?s.inputs.find(e=>e.declaration.id===i.id):s.type===n.FunctionCall||s.type===n.Operation?s.inputs.find(e=>e.declaration.id===i.id):null}function cP(i){return nt.includes(i.type)?i.inputs:[]}function fP(i){var s;return i.type===n.FunctionCall?((s=i.declaration.returnStatements[0])==null?void 0:s.outputs)||[]:[n.Operation,n.Condition,n.Loop].includes(i.type)?i.declaration.outputs:i.type===n.Search?i.outputsDeclarations:st.includes(i.type)?i.outputs:[]}function Wq(i,s){return s.type===n.Condition?null:s.type===n.FunctionCall||s.type===n.Operation?s.outputs.find(e=>e.declaration.id===i.id):null}function zq(i){return i.type===n.Condition?[]:nt.includes(i.type)?i.outputs:[]}function Wd(i){const s=i.readsValue;return s?wt(s):null}function yP(i,s){const e=i.readsValue;return e?Zd(e,s):null}function hP(i){const s=i.internalCalls||[];return p(zt(p(s.flatMap(e=>[...e.successCalls,...e.errorCalls]))))}function ba(i){const s=Fc(i),e=[];return s.forEach(t=>{if(Qe.includes(t.type))e.push(t);else if(hi.includes(t.type)){const r=t.parent;e.push(r)}}),e}function p(i){const s=new Set;return i.filter(e=>!e||s.has(e.id)?!1:(s.add(e.id),!0))}function Ji(i,s=!1){const e=[];if(i.type===n.Project&&e.push(...(i==null?void 0:i.entities)||[],...(i==null?void 0:i.functions)||[],...(i==null?void 0:i.variableDeclarations)||[],...(i==null?void 0:i.variableInstances)||[],...(i==null?void 0:i.searches)||[],...(i==null?void 0:i.loops)||[],...(i==null?void 0:i.operations)||[],...(i==null?void 0:i.conditions)||[],...(i==null?void 0:i.functionCalls)||[],...(i==null?void 0:i.events)||[],...(i==null?void 0:i.projects)||[]),mt.includes(i.type)&&e.push(...(i==null?void 0:i.detachedChildren)||[]),i.type===n.DefinitionEntity){const t=[...i.suggestedMethods,...i.methods].flatMap(r=>r.collapsed&&s?[]:Ji(r));e.push(...t)}if(i.type===n.Condition){const t=i.successCalls.map(a=>wt(a)),r=i.errorCalls.map(a=>wt(a));e.push(...t,...r)}if($n.includes(i.type)){if(i.collapsed&&s)return[];const t=i.inputs.map(a=>ba(a)).flat(),r=i.calls.map(a=>wt(a));e.push(...p(t),...r)}if(nt.includes(i.type)&&i.type!==n.Condition&&i.type!==n.Loop){const t=i==null?void 0:i.outputs.map(d=>ba(d)).flat(),r=i.successCalls.map(d=>wt(d)),a=i.errorCalls.map(d=>wt(d));e.push(...p(t),...r,...a)}if(Qe.includes(i.type)){const t=ba(i),r=hP(i);e.push(...t,...r)}if(i.type===n.Loop){const t=i.outputs.map(d=>ba(d)).flat();if(i.body){const d=Ji(i.body,s);e.push(...d)}const r=i.errorCalls.map(d=>wt(d)),a=i.successCalls.map(d=>wt(d));e.push(...p(t),...a,...r)}if(i.type===n.FunctionDeclaration){if(i.collapsed&&s)return[];const t=i.inputs.map(a=>ba(a)).flat(),r=i.calls.map(a=>wt(a));e.push(...p(t),...r)}return p(e)}function mP(i,s=!1){const e=Ji(i,s),t=[...e,...e.reduce((r,a)=>[...r,...mP(a,s)],[])];return p(t)}function vP(i){const s=Mn(i),e=[...s,...s.reduce((t,r)=>[...t,...vP(r)],[])];return p(e)}function zd(i){return i.implements.reduce((s,e)=>e.type===n.DefinitionEntity?[...s,n.DefinitionEntity,...zd(e),...Yd(e)]:[...s,e.name],[])}function Yd(i){return i.extends.reduce((s,e)=>e.type===n.DefinitionEntity?[...s,n.DefinitionEntity,...Yd(e),...zd(e)]:[...s,e.name],[])}function Sc(i){return i.extends.reduce((s,e)=>e.type===n.DefinitionEntity?[...s,e,...Sc(e),...kc(e)]:[...s,e],[])}function kc(i){return i.implements.reduce((s,e)=>e.type===n.DefinitionEntity?[...s,e,...kc(e),...Sc(e)]:[...s,e],[])}function Zc(i){return[...Yd(i),...zd(i)].filter((e,t,r)=>r.indexOf(e)===t)}function TP(i){return i.implements.length===0&&i.extends.length===0?null:i.implements.find(t=>t.type===n.BuiltInBaseEntity&&t.name===Y.PERSISTED_ENTITY)?i:[...i.implements,...i.extends].reduce((t,r)=>{if(r.type===n.DefinitionEntity){const a=TP(r);if(a)return a}return t},null)}function Yq(i){const s=i.extends.find(e=>e.type===n.BuiltInBaseEntity);return s&&s.type===n.BuiltInBaseEntity?s:null}function Hq(i){const s=i.implements.find(e=>e.type===n.BuiltInBaseEntity);return s&&s.type===n.BuiltInBaseEntity?s:null}function qc(i){const s=i.extends.find(e=>e.type===n.DefinitionEntity);return s&&s.type===n.DefinitionEntity?s:null}function Wi(i){const s=[...i.implements,...i.extends].reduce((e,t)=>t.type===n.BuiltInBaseEntity?[...e,t]:t.type===n.DefinitionEntity?[...e,...Wi(t)]:e,[]);return p(s)}function Jc(i){return i.type===n.PrimitiveEntity?!0:i.type===n.BuiltInBaseEntity?i.interactive:!Wi(i).find(t=>!t.interactive)}function Kq(i){return i.parent===i.project&&i.project.variableDeclarations.includes(i)}function Wc(i){return i.parent!==i.project?!1:n.VariableDeclaration===i.type?i.project.variableDeclarations.includes(i):n.VariableInstance===i.type?i.project.variableInstances.includes(i):n.FunctionCall===i.type?i.project.functionCalls.includes(i):n.Condition===i.type?i.project.conditions.includes(i):n.Operation===i.type?i.project.operations.includes(i):n.Loop===i.type?i.project.loops.includes(i):n.Search===i.type?i.project.searches.includes(i):!1}function EP(i){if([...at,n.DefinitionEntity,n.InstalledProject,n.Project].includes(i.type)||Wc(i))return!1;const s=Mn(i);return s.length===0?!0:s.some(e=>EP(e))}function zc(i){return[...at,n.DefinitionEntity,n.InstalledProject,n.Project].includes(i.type)||Wc(i)?!1:Mn(i).length===0}function IP(i,s=0){if(zc(i)){const e=Mn(i);return e.length===0?i:e.map(r=>IP(r,s+1)).reduce((r,a)=>r?a&&a.x<r.x?a:r:a,null)}return null}function AP(i){const s=[];if(zc(i))s.push(i);else return[];return Mn(i).forEach(t=>{s.push(...AP(t))}),s}function bP(i){return i.type===n.FunctionDeclaration&&i.parent!==i.project&&!![n.DefinitionEntity,n.Loop,n.InstalledProject].includes(i.parent.type)}function Xq(i,s){const e=new Map;return i.forEach(t=>{e.set(t.id,t)}),s.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function Bs(i){switch(i){case n.DefinitionEntity:return Yi;case n.FunctionDeclaration:return Mi;case n.VariableDeclaration:return $i;case n.VariableInstance:return Ui;case n.FunctionCall:return qi;case n.Operation:return gi;case n.Condition:return Li;case n.ReturnStatement:return _i;case n.Loop:return Ni;case n.Search:return ji;case n.InputMap:return Zr;case n.OutputMap:return qr;case n.ArgumentDeclaration:return Fi;case n.ReturnDeclaration:return rr;case n.Property:return Bi;case n.InstalledProject:return Gi;case n.Project:return I;case n.BuiltInBaseEntity:return zr;default:return null}}function Yt(i,s){if(mt.includes(i.type))return i;if(hr.includes(i.type))return null;const e=i.parent;if(!e)return null;if(e.type===n.GenericReference){const t=B(e);if(!t)return null;const r=s.get(t);return r?Yt(r,s):null}else return e===s?s:Yt(e,s)}function Yc(i,s){if(hr.includes(i.type)||s.getBuiltIn(i.id))return null;const e=nr(i.parent,s);return e?e===s?mt.includes(i.type)?i:null:e.type===n.DefinitionEntity?i:Yc(e,s):null}function Hd(i,s,e){if(i===s||s===e||i===e)return!1;const t=Yt(s.parent,e);return t===i?!0:Hd(t,s,e)}var Kd=(i=>(i.SameBothLocal="same-both-local",i.AInB="a-in-b",i.BInA="b-in-a",i.ParallelInCommonParent="parallel-in-common-parent",i.ParallelInProject="parallel-in-project",i.AIsGlobalBIsNot="a-is-global-b-is-not",i.BIsGlobalAIsNot="b-is-global-a-is-not",i.SameBothGlobal="same-both-global",i))(Kd||{});function _s(i,s,e){const t=Yt(i,e),r=Yt(s,e);if(!t)throw new Error("Could not find scope owner for the entity: "+i.id);if(!r)throw new Error("Could not find scope owner for the entity: "+s.id);if(t===r&&t.type!==n.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:t};if(t===r&&t.type===n.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:t};if(t.type===n.Project&&r.type!==n.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:t};if(t.type!==n.Project&&r.type===n.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:r};if(Hd(t,r,e))return{compatible:!0,type:"b-in-a",commonAncestorScope:t};if(Hd(r,t,e))return{compatible:!0,type:"a-in-b",commonAncestorScope:r};const o=jc(t,r);return o===e?{compatible:!1,type:"parallel-in-project",commonAncestorScope:o}:o?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:Yt(o,e)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:e}}function RP(i,s,e){const t=_s(i,s,e);if(!t.compatible||t.type!=="same-both-local")return null;if(i===s)return i;let r=Yt(i.parent,e);if(r){if(r===s)return s;if(r.type===n.Project)return i}else return i;for(;r;){if(r){if(r===s)return s;if(r.type===n.Project)return i}else return i;r=Yt(r.parent,e)}let a=Yt(s.parent,e);if(a){if(a===i)return i;if(a.type===n.Project)return s}else return s;for(;a;){if(a){if(a===i)return i;if(a.type===n.Project)return s}else return s;a=Yt(a.parent,e)}return null}function DP(i){return i.length===0?null:i.length===1?i[0]:i.reduce((e,t)=>{const r=RP(e,t,t.project);return!r||r===t?e:t},i[0])}function nr(i,s){if(!i)return null;let e;return typeof i=="string"?e=i:i.type===n.GenericReference?e=B(i):e=i.id,e===s.id?s:s.get(e)}function zi(i){if(!i)return null;if(hr.includes(i.type))return i;if(i.type===n.Project)return null;if(i.project.getBuiltIn(i.id))return i;const s=i.parent;return!s||s.type===n.Project?null:zi(s)}function Qq(i,s){var e;if(i.readsValue){const t=nr(i.readsValue,s.project);s.setValueWriter(t),t.addValueReader(s)}else i.readsValue===null&&((e=s.readsValue)==null||e.removeValueReader(s),s.readsValue=null);return s}function Ms(i){const s=[];function e(a,d){return s.some(o=>o.blockedByCaller===a&&o.blockedByCalling===d)}function t(a,d){e(a,d)||s.push({blockedByCaller:a,blockedByCalling:d})}const r=Yc(i,i.project);return i.calledBySuccess.forEach(a=>{[...a.successCalls||[]].forEach(l=>{st.includes(l.type)&&l!==i&&(it(i).find(c=>c===l)||t(a,l))});let o;if(nt.includes(a.type)&&(o=a),o){const l=Ms(o);l.reachable||it(i).find(c=>c===a)||l.blocks.forEach(c=>{t(a,c.blockedByCalling)})}}),i.calledByError.forEach(a=>{[...a.errorCalls||[]].forEach(l=>{st.includes(l.type)&&l!==i&&(it(i).find(c=>c===l)||t(a,l))});let o;if(nt.includes(a.type)&&(o=a),o){const l=Ms(o);l.reachable||it(i).find(c=>c===a)||l.blocks.forEach(c=>{t(a,c.blockedByCalling)})}}),i.calledByEntry.forEach(a=>{if([...a.calls||[]].forEach(l=>{st.includes(l.type)&&l!==i&&(it(i).find(c=>c===l)||t(a,l))}),a===r)return;let o;if(a.type===n.FunctionDeclaration){const l=wt(a);if(l.type===n.DefinitionEntity)return;l.type===n.Loop&&(o=l)}if(o){const l=Ms(o);l.reachable||l.blocks.forEach(u=>{t(a,u.blockedByCalling)})}}),{reachable:s.length===0,entryPoint:r,blocks:s}}function eJ(i){return Gs.includes(i.type)?i.type===n.FunctionDeclaration?!bP(i):!0:!1}function tJ(i){if(n.ActionDescriptor===i.type){if(i.project.operationDeclarations.find(a=>a.id===i.id))return n.Operation;if(i.project.globalEventActionDescriptors.find(a=>a.id===i.id))return n.GlobalEvent;if(i.project.loopDeclarations.find(a=>a.id===i.id))return n.Loop;if(i.project.conditionDeclarations.find(a=>a.id===i.id))return n.Condition}return i.type}function Ra(i,s){if(i.type!==n.DefinitionEntity||i.abstract)return!1;const e=qc(i)||i;return!!Zc(e).includes(s)}function rJ(i){const s=[];return i.entities.forEach(e=>{if(Ra(e,Y.PERSISTED_ENTITY)){s.push(e);return}}),p(s)}function iJ(i){const s=[];return i.entities.forEach(e=>{if(Ra(e,Y.RELATIONAL_DATABASE)){s.push(e);return}}),p(s)}function nJ(i){return i.type!==n.DefinitionEntity||i.abstract||!Ra(i,Y.PERSISTED_ENTITY)?null:(i==null?void 0:i.properties.find(e=>{var t;return((t=e.implements)==null?void 0:t.id)===x[n.BuiltInBaseEntity][Y.PERSISTED_ENTITY].properties.primaryKey.id&&!e.abstract}))||null}function aJ(i){if(i.type!==n.DefinitionEntity)return[];if(i.abstract)return[];if(!Ra(i,Y.PERSISTED_ENTITY))return[];const s=[],e=i.properties.filter(t=>{var r;return((r=t.implements)==null?void 0:r.id)!==x[n.BuiltInBaseEntity][Y.PERSISTED_ENTITY].properties.database.id&&!t.abstract});return s.push(...e),s}function sJ(i){var e;if(!i||i.type!==n.DefinitionEntity||!Ra(i,Y.PERSISTED_ENTITY))return null;const s=i.properties.find(t=>{var r;return((r=t.implements)==null?void 0:r.id)===x[n.BuiltInBaseEntity][Y.PERSISTED_ENTITY].properties.database.id});return(e=s==null?void 0:s.getDefaultValue())==null?void 0:e.valueAsTypeSingle}function ft(i,s){var t;if(!rf.includes(s.type)||!i)return s.project||null;let e=s.project;return i.type===n.Project?e=i:((t=s.project)==null?void 0:t.id)!==i.project.id&&(e=i.project),e}function oJ(i){switch(i){case n.Project:return I;case n.InstalledProject:return Gi;case n.DefinitionEntity:return Yi;case n.FunctionDeclaration:return Mi;case n.GlobalEvent:return Vn;case n.VariableInstance:return Ui;case n.VariableDeclaration:return $i;case n.InputMap:return Zr;case n.OutputMap:return qr;case n.Condition:return Li;case n.Operation:return gi;case n.FunctionCall:return qi;case n.ReturnDeclaration:return rr;case n.ArgumentDeclaration:return Fi;case n.PrimitiveEntity:return ar;case n.DataType:return wn;case n.Property:return Bi;case n.ActionDescriptor:return qe;case n.ReturnStatement:return _i;case n.ContinueStatement:return jt;case n.BreakStatement:return Cn;case n.Loop:return Ni;case n.Search:return ji;case n.ValueDescriptor:return xi;case n.InternalCall:return Bn;case n.LiteralValue:return _n}return null}function dJ(i){const s={added:{},updated:{},removed:{},affected:[],seenEntities:[],self:i==null?void 0:i.self};return i==null||i.added.forEach(e=>{s.added[e.id]=e}),i==null||i.updated.forEach(e=>{s.updated[e.id]=e}),i==null||i.removed.forEach(e=>{s.removed[e.id]=e}),s.affected=Array.from(new Set(i==null?void 0:i.affected.map(e=>e.id))),s}function dt(i,s){const e=Bs(i.type);return e?!e.MUTABLE_META_PROPERTIES.every(r=>{const a=i[r],d=s[r];return d===void 0||a===d?!0:Array.isArray(a)&&Array.isArray(d)?a.length!==d.length?!1:a.every((o,l)=>o===d[l]):!1}):!1}function Xd(i,s={}){if(i.type===n.Project)return[];if(!i.parent)return[];const e=B(i.parent);if(!e)return[];const t=s[e];return t?[t.id,...Xd(t,s)]:[]}function lJ(i,s){const e=[];if(i.parent)if(i.id===i.parent)e.push(new P({id:`${i.id}--${i.parent}--${A.SelfReference}`,code:A.SelfReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.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 t=s.get(i.parent);t?[n.Project,n.DataType].includes(t.type)||e.push(new P({id:`${i.id}--${i.parent}--${A.InvalidParentReference}`,code:A.InvalidParentReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):e.push(new P({id:`${i.id}--${i.parent}--${A.ReferencedEntityNotFound}`,code:A.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", is referencing an entity with id "${i.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return i.implements&&Array.isArray(i.implements)?i.implements.forEach(t=>{if(i.id===t){e.push(new P({id:`${i.id}--${t}--${A.SelfReference}`,code:A.SelfReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.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 r=s.get(t);r?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(r.type)?r.abstract||e.push(new P({id:`${i.id}--${t}--${A.InvalidImplementsReference}`,code:A.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new P({id:`${i.id}--${t}--${A.InvalidImplementsReference}`,code:A.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new P({id:`${i.id}--${t}--${A.ReferencedEntityNotFound}`,code:A.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):e.push(new P({id:`${i.id}--${j.InvalidObjectStructure}`,code:j.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' property that isn't an array.`,issue:null})),i.extends&&Array.isArray(i.extends)&&i.extends.forEach(t=>{const r=s.get(t);r?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(r.type)?r.abstract&&e.push(new P({id:`${i.id}--${t}--${A.InvalidExtendsReference}`,code:A.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.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})):e.push(new P({id:`${i.id}--${t}--${A.InvalidExtendsReference}`,code:A.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new P({id:`${i.id}--${t}--${A.ReferencedEntityNotFound}`,code:A.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),e}var OP=(i=>(i.Extends="extends",i.Implements="implements",i))(OP||{});const Le=class Le extends rt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"static");f(this,"abstract");f(this,"type",n.DefinitionEntity);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"implements",[]);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestedProperties",[]);f(this,"suggestedMethods",[]);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.static=e.static,this.abstract=e.abstract}static fromGenerationTarget(e,t){let r=t;if(e.parent){const u=B(e.parent);r=t.get(u)}const a=[];e.implements&&e.implements.forEach(u=>{a.push(t.get(u)||t.getBuiltIn(u))});const d=[];e.extends&&e.extends.forEach(u=>{d.push(t.get(u)||t.getBuiltIn(u))});const o={id:e.id,version:I.UUID.uuid(),createdAt:T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.DefinitionEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:d,implements:a,x:0,y:0,parent:r},l=V(o,t);return l.setParent(r,null),l.initChildren(null),l}static validateGenerationTarget(e,t){let r=JSON.parse(JSON.stringify(e));const a=[],d=lJ(r,t),o=yc(r,t);a.push(...d,...o,...ot(r));const l=r.parent?t.get(r.parent):null;if(l&&l.type===n.DataType){const u=l;u.entity&&a.push(new P({id:`${e.id}--${A.NewEntityWouldOverriteExisting}`,code:A.NewEntityWouldOverriteExisting,severity:D.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${u.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
|
|
405
|
+
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:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],r=[],a=[];return Object.values(this.detachedDependents).forEach(d=>{const o=d.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),r.push(...o.removed),a.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}onDetachedDependencyRemoved(e,t,r){const a=[],d=[],o=[],l=[];if(t==="declaration"){const{updated:u,added:h,removed:c}=this.remove({ignoreUpstream:!1},r);a.push(...u),d.push(...h),o.push(...c)}if(t==="parent"){const{updated:u,added:h,removed:c}=this.remove({ignoreUpstream:!1},r);a.push(...u),d.push(...h),o.push(...c)}return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,r){const a=[],d=[],o=[],l=[];if(t==="declaration"){const{updated:u,added:h,removed:c}=this.restore({},r);a.push(...u),d.push(...h),o.push(...c)}if(t==="parent"){const{updated:u,added:h,removed:c}=this.restore({},r);a.push(...u),d.push(...h),o.push(...c)}return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this.declaration.subscribeDependents([{entity:this,field:"declaration"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=I.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t,r;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new ke(this,this.project);return(r=this.knownVersions)==null||r.set(this.version,e),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.successCalls=this.successCalls,e.errorCalls=this.errorCalls,e.process=this.process,e.declaration=this.declaration,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],r=[],a=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),r.push(...o.added),a.push(...o.removed)}return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],r=[],a=[],d=[];if(this.version===e)return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[h,c]of this.knownVersions||new Map){if(u.set(h,c),c.activeVersion=!1,c.knownVersions)for(const[v,E]of c.knownVersions)u.set(v,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new ke(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.successCalls=o.successCalls,this.errorCalls=o.errorCalls,this.process=o.process,this.declaration=o.declaration,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],r=[],a=[];if(this.initialData.parent){const d=B(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' 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 d=B(this.initialData.declaration),o=this.project.get(d);o&&(this.setDeclaration(o),e.push(o))}return this.initialData.calledByEntry.forEach(d=>{const o=B(d),l=this.project.get(o);l&&(this.addEntryCaller(l,null),e.push(l))}),this.initialData.calledBySuccess.forEach(d=>{const o=B(d),l=this.project.get(o);l&&(this.addSuccessCaller(l,null),e.push(l))}),this.initialData.calledByError.forEach(d=>{const o=B(d),l=this.project.get(o);l&&(this.addErrorCaller(l,null),e.push(l))}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],r=[],a=[],d=[];this.initialized=!0,this.captureVersion();const{updated:o,added:l,removed:u}=this.syncMissingFixedInputs(e),{updated:h,added:c,removed:v}=this.syncMissingFixedOutputs(e);return t.push(...o,...h),r.push(...l,...c),a.push(...u,...v),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-self-to-project"))){var o;const t=[this],r=[],a=[],d=[];return this.parent===this.project&&this.project.addFunctionCall(this),(o=this.process)==null||o.writesValues.forEach(l=>{l.setValueWriter(this.process),t.push(l)}),this.successCalls.forEach(l=>{l.addSuccessCaller(this,e),t.push(l)}),this.errorCalls.forEach(l=>{l.addErrorCaller(this,e),t.push(l)}),this.calledBySuccess.forEach(l=>{l.addSuccessCall(this),t.push(l)}),this.calledByError.forEach(l=>{l.addErrorCall(this),t.push(l)}),this.calledByEntry.forEach(l=>{l.addCall(this),t.push(l)}),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(r=>r.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(r=>r.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addValueReader(e){var t;return(t=this.process)==null||t.addValueReader(e),this}removeValueReader(e){var t;return(t=this.process)==null||t.removeValueReader(e),this}addSuccessCaller(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-success-caller"))){return this.calledBySuccess.find(r=>r.id===e.id)||(this.calledBySuccess.push(e),t&&(t==null||t.add(this,b.Updated),t==null||t.add(e,b.Affected)),t==null||t.attemptAutoclose("add-success-caller",this.id)),this}addErrorCaller(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-error-caller"))){return this.calledByError.find(r=>r.id===e.id)||(this.calledByError.push(e),t&&(t==null||t.add(this,b.Updated),t==null||t.add(e,b.Affected)),t==null||t.attemptAutoclose("add-error-caller",this.id)),this}addEntryCaller(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-entry-caller"))){return this.calledByEntry.find(r=>r.id===e.id)||(this.calledByEntry.push(e),t&&(t==null||t.add(this,b.Updated),t==null||t.add(e,b.Affected)),t==null||t.attemptAutoclose("add-entry-caller",this.id)),this}addErrorCall(e){return this.errorCalls.find(t=>t.id===e.id)||this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.find(t=>t.id===e.id)||this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const r=this.errorCalls.findIndex(a=>a.id===e.id);return r>-1&&this.errorCalls.splice(r,1),this}removeCaller(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-caller"))){return this.calledBySuccess=this.calledBySuccess.filter(r=>r.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(r,b.Affected)),!0):!1),this.calledByError=this.calledByError.filter(r=>r.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(r,b.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(r=>r.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(r,b.Affected)),!0):!1),t==null||t.attemptAutoclose("remove-caller",this.id),this}setParent(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"set-parent"))){var r;return((r=this.parent)==null?void 0:r.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setDeclaration(e){return this.declaration=e,this}initChildren(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.declaration.type===n.FunctionDeclaration){const t=V(this.initialData.declaration,this.project);this.declaration=t}else{const t=B(this.initialData.declaration),r=this.project.get(t);this.declaration=r}return this.successCalls=this.initialData.successCalls.map(t=>{const r=V(t,this.project);return r.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(r.type)?(r.setParent(this.parent.parent,null),r.initChildren(e)):r.type!==n.InternalCall&&(r.setParent(this.parent,null),r.initChildren(e)),r}),this.errorCalls=this.initialData.errorCalls.map(t=>{const r=V(t,this.project);return r.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(r.type)?(r.setParent(this.parent.parent,null),r.initChildren(e)):r.type!==n.InternalCall&&(r.setParent(this.parent,null),r.initChildren(e)),r}),this.inputs=this.initialData.inputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(e),r}),this.initialData.process&&(this.process=V(this.initialData.process,this.project),this.process.setParent(this,null),this.process.initChildren(e)),this.initialData.error&&(this.error=V(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-meta"))){const r=dt(this,e);return e.deleted===!0&&!this.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&this.deleted?t==null||t.add(this,b.Added):r&&(t==null||t.add(this,b.Updated)),super.metaSync(e),this.x=e.x||this.x,this.y=e.y||this.y,t==null||t.attemptAutoclose("sync-meta",this.id),this}async APILoad(e=L,...t){return await ke.repository.APILoad(this.id,...t),this}async APICreate(e=L,...t){return await ke.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=L,...t){return await ke.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=L,...t){return await ke.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=L,...t){return await ke.repository.APIClone(this.id,...t),this}async APILoadVersion(e=L,t,...r){return await ke.repository.APILoadVersion(this.id,t,...r)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-entity"))){var l;const r=[],a=[],d=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(a.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(u=>{const{updated:h,removed:c,added:v}=u.entity.onDetachedDependencyRemoved(this,u.field,t);r.push(...h),a.push(...c),d.push(...v)}),this.process){const{updated:u,removed:h}=(l=this.process)==null?void 0:l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}if(this.inputs.forEach(u=>{const{updated:h,removed:c}=u.remove({ignoreUpstream:!0},t);r.push(...h),a.push(...c)}),this.outputs.forEach(u=>{const{updated:h,removed:c}=u.remove({ignoreUpstream:!0},t);r.push(...h),a.push(...c)}),this.error){const{updated:u,removed:h}=this.error.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}return this.successCalls.forEach(u=>{r.push(u),u.removeCaller(this)}),this.errorCalls.forEach(u=>{r.push(u),u.removeCaller(this)}),e||this.calledBy.forEach(u=>{r.push(u),u.removeCall(this)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(r),removed:p(a),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"restore-entity"))){const t=[],r=[],a=[],d=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.process){const{updated:o}=this.process.restore({},e);r.push(...o)}return this.inputs.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.outputs.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.successCalls.forEach(o=>{r.push(o),o.addSuccessCaller(this)}),this.errorCalls.forEach(o=>{r.push(o),o.addErrorCaller(this)}),this.calledBySuccess.forEach(o=>{r.push(o),o.addSuccessCall(this)}),this.calledByError.forEach(o=>{r.push(o),o.addErrorCall(this)}),this.calledByEntry.forEach(o=>{r.push(o),o.addCall(this)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(r),removed:p(a),affected:p(d),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(r=>r.toFlat(e)),...this.errorCalls.flatMap(r=>r.toFlat(e)),...this.inputs.flatMap(r=>r.toFlat(e)),...this.outputs.flatMap(r=>r.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[],...this.calledBy.flatMap(r=>r.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(r=>r.toFlatIds(e)),...this.errorCalls.flatMap(r=>r.toFlatIds(e)),...this.inputs.flatMap(r=>r.toFlatIds(e)),...this.outputs.flatMap(r=>r.toFlatIds(e))])}toJSON(e=new Set){var t,r;return e.has(this.id)?this.toReference():(e.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(a=>a.toJSON(e)),errorCalls:this.errorCalls.map(a=>a.toJSON(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference()),calledByError:this.calledByError.map(a=>a.toReference()),calledByEntry:this.calledByEntry.map(a=>a.toReference()),process:(t=this.process)==null?void 0:t.toJSON(e),declaration:this.declaration.toJSON(e),inputs:this.inputs.map(a=>a.toJSON(e)),outputs:this.outputs.map(a=>a.toJSON(e)),parent:this.parent.toReference(),error:(r=this.error)==null?void 0:r.toJSON(e)})}toJSONClone(e=Z){var r,a,d,o,l,u,h;let t;return(r=e.seenEntityMaps)!=null&&r.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ct(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:I.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(c=>c.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(c=>c.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),process:(u=this.process)==null?void 0:u.toJSONClone({...e,newId:null}),declaration:this.declaration.toJSONClone({...e,newId:null}),inputs:this.inputs.map(c=>c.toJSONClone({...e,newId:null})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),error:(h=this.error)==null?void 0:h.toJSONClone({...e,newId:null}),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+I.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,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(e):null,inputs:this.inputs.map(a=>a.toReference(e)),outputs:this.outputs.map(a=>a.toReference(e)),declaration:this.declaration.toReference(e),successCalls:this.successCalls.map(a=>a.toReference(e)),errorCalls:this.errorCalls.map(a=>a.toReference(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference(e)),calledByError:this.calledByError.map(a=>a.toReference(e)),calledByEntry:this.calledByEntry.map(a=>a.toReference(e)),error:this.error?this.error.toReference(e):null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(r=>r.toFlatJSON(e)),...this.errorCalls.flatMap(r=>r.toFlatJSON(e)),...this.inputs.flatMap(r=>r.toFlatJSON(e)),...this.outputs.flatMap(r=>r.toFlatJSON(e)),...this.process?this.process.toFlatJSON(e):[],...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.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(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),declaration:this.declaration.id,parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(r=>r.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(r=>r.toFlatGenerationTarget(e)),...this.inputs.flatMap(r=>r.toFlatGenerationTarget(e)),...this.outputs.flatMap(r=>r.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(r=>r.clearErrors()),this.outputs.forEach(r=>r.clearErrors()),this.successCalls.forEach(r=>r.clearErrors()),this.errorCalls.forEach(r=>r.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=Nq(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"clone-entity")),t=null,r=null,a=!0){var O,w;let d=ft(t,this);const o=this.toJSON(),l=r||I.UUID.uuid();o.inputs=[];const u=l.split("-id"),h=u[u.length-1||0]||l;o.id=l,o.version=I.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=lt(o,d);t?c.setParent(t,null):c.setParent(this.parent,null),a&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const v=(O=this.inputs)==null?void 0:O.map((C,U)=>C.clone(e,c,h+"-input-map-"+U+"-id",a));c.inputs=v;const E=(w=this.outputs)==null?void 0:w.map((C,U)=>C.clone(e,c,h+"-output-map-"+U+"-id",a));return c.outputs=E,this.error&&(c.error=this.error.clone(e,c,h+"-error-map-id",a)),this.process&&(c.process=this.process.clone(e,c,h+"-process-id",a)),e==null||e.attemptAutoclose("clone-entity",this.id),c}removeUnrecognizedInputs(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-unrecognized-inputs"))){const t=[],r=[],a=[],d=[];return this.inputs.forEach(o=>{if(!this.declaration.inputs.find(u=>{var h;return u.id===((h=o.declaration)==null?void 0:h.id)})){const u=o.remove({ignoreUpstream:!1},e);a.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-inputs",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}removeUnrecognizedOutputs(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-unrecognized-outputs"))){const t=[],r=[],a=[],d=[];return this.outputs.forEach(o=>{if(!this.declaration.getUniqueReturnDeclarations().find(u=>{var h;return u.id===((h=o.declaration)==null?void 0:h.id)})){const u=o.remove({ignoreUpstream:!1},e);a.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-outputs",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}syncMissingFixedInputs(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-missing-fixed-inputs"))){const t=[],r=[],a=[],d=[],o=this.declaration.inputs.filter(c=>!this.inputs.find(v=>v.declaration.id===c.id));this.inputs.sort((c,v)=>c.index-v.index),o.forEach(c=>{this.inputs.forEach(O=>{O.index>=c.index&&O.metaSync({index:O.index+1},e)});const v={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.InputMap,declaration:c.toJSON(),readsValue:null,defaultValue:null,index:c.index,name:null,description:null,parent:this.toReference()},E=V(v,this.project);E.setParent(this,e),E.initChildren(e),e==null||e.add(E,b.Added),E.addSelfToProject(e),r.push(E)}),this.inputs.sort((c,v)=>c.index-v.index);const{updated:l,added:u,removed:h}=this.removeUnrecognizedInputs(e);return t.push(...l),r.push(...u),a.push(...h),e==null||e.attemptAutoclose("sync-missing-fixed-inputs",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}syncMissingFixedOutputs(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-missing-fixed-outputs"))){const t=[],r=[],a=[],d=[],o=[];this.outputs=this.initialData.outputs.map(v=>{const E=V(v,this.project);return o.push(E.index),E.setParent(this,null),E.initChildren(e),E});const l=this.declaration.getUniqueReturnDeclarations().filter(v=>!this.outputs.find(E=>E.declaration.id===v.id));this.outputs.sort((v,E)=>v.index-E.index),l.forEach((v,E)=>{this.outputs.forEach(U=>{U.index>=v.index&&U.index++});const O=o.includes(v.index)?this.outputs.length-1+E:v.index,w={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.OutputMap,declaration:v.toJSON(),defaultValue:null,writesValues:[],index:O,parent:this.toReference()},C=V(w,this.project);C.setParent(this,e),C.initChildren(e),e==null||e.add(C,b.Added),C.addSelfToProject(e)}),this.outputs.sort((v,E)=>v.index-E.index);const{updated:u,added:h,removed:c}=this.removeUnrecognizedOutputs(e);return t.push(...u),r.push(...h),a.push(...c),e==null||e.attemptAutoclose("sync-missing-fixed-outputs",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}};f(ke,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...r)=>null}),f(ke,"type",n.FunctionCall),f(ke,"USER_MANAGED_PARENT_TYPES",[...mt,n.Project]),f(ke,"PARENT_TYPES",[...ke.USER_MANAGED_PARENT_TYPES]),f(ke,"MUTABLE_BASE_PROPERTIES",[]),f(ke,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(ke,"BASE_PROPERTIES",[...ke.MUTABLE_BASE_PROPERTIES,...ke.INMUTABLE_BASE_PROPERTIES]),f(ke,"MUTABLE_META_PROPERTIES",["x","y"]),f(ke,"INMUTABLE_META_PROPERTIES",[...ke.INMUTABLE_BASE_PROPERTIES]),f(ke,"META_PROPERTIES",[...ke.MUTABLE_META_PROPERTIES,...ke.INMUTABLE_META_PROPERTIES]),f(ke,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),f(ke,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),f(ke,"UPSTREAM_PROPERTIES",[...ke.MUTABLE_UPSTREAM_PROPERTIES,...ke.INMUTABLE_UPSTREAM_PROPERTIES]),f(ke,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),f(ke,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(ke,"DOWNSTREAM_PROPERTIES",[...ke.MUTABLE_DOWNSTREAM_PROPERTIES,...ke.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(ke,"PROPERTIES",[...ke.META_PROPERTIES,...ke.UPSTREAM_PROPERTIES,...ke.DOWNSTREAM_PROPERTIES]);let qi=ke;function Lc(i){return i&&typeof i.then=="function"}class Fd{constructor(s){f(this,"order",[]);f(this,"flatRecord",{});f(this,"allBuiltInEntityIds",Vr());f(this,"onGoingVisits",{});this.flatten(s),this.orderEntities()}flatten(s){const e=new Set(Vr()),t=p(N(s,e,{ignoreBuiltInBaseEntities:!0})),r=new Set;for(const a of t)this.flatRecord[a.id]=a,r.add(a.id);this.order=Array.from(r)}moveEntityAfterDependencies(s){const{upstream:e}=Jd(s,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});for(const t of Object.keys(e)){const r=this.order.indexOf(t),a=this.order.indexOf(s.id);if(r>a)return this.order.splice(a,1),this.order.splice(r,0,s.id),!0}return!1}orderEntities(){let s=!1;for(let e=0;e<this.order.length;e++){const t=this.order[e],r=this.flatRecord[t];if(this.moveEntityAfterDependencies(r)){s=!0;break}}s&&this.orderEntities()}getUpstreamOngoingDependenciesVisits(s,e){const{upstream:t}=Jd(this.flatRecord[s],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}),r={};return Object.entries(this.onGoingVisits[e]||{}).forEach(([a,d])=>{Object.keys(t).includes(a)&&(r[a]=d)}),r}getDownstreamOngoingDependenciesVisits(s,e){const t=Object.keys(this.onGoingVisits[e]||{}),r=new Set(t.flatMap(d=>Object.keys(Jd(this.flatRecord[d],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}).downstream))),a={};return Array.from(r).forEach(d=>{d===s&&(a[d]=this.onGoingVisits[e][d])}),a}async settlePromises(s,e){const t=Object.values(s);t.length&&await Promise.all(t),Object.keys(s).forEach(r=>{delete this.onGoingVisits[e][r]})}visit(s){const e=this.order;for(const t of e)s(this.flatRecord[t],this.flatRecord);return this}reverseVisit(s){const e=this.order.slice().reverse();for(const t of e)s(this.flatRecord[t],this.flatRecord);return this}async visitAsync(s){const e=this.order,t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const r of e){const a=this.getUpstreamOngoingDependenciesVisits(r,t);Object.keys(a).length&&await this.settlePromises(a,t);const d=s(this.flatRecord[r],this.flatRecord);Lc(d)&&(this.onGoingVisits[t][r]=d)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}async reverseVisitAsync(s){const e=this.order.slice().reverse(),t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const r of e){const a=this.getDownstreamOngoingDependenciesVisits(r,t);Object.keys(a).length&&await this.settlePromises(a,t);const d=s(this.flatRecord[r],this.flatRecord);Lc(d)&&(this.onGoingVisits[t][r]=d)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}}function AO(i,s){switch(i.id){case x["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const e=i.project.entities.filter(l=>!!l.implements.find(u=>u.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(e.find(l=>!!l.properties.find(u=>{var h;return u.implements&&u.implements.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((h=u.getDefaultValue())==null?void 0:h.value)===!0}))){const u=e[0].properties.find(c=>c.implements&&c.implements.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),h=u==null?void 0:u.defaultValue;if(h)h.value=!0;else if(u!=null&&u.dataType){const c={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(s==null?void 0:s.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:g.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:u==null?void 0:u.dataType.toReference()},v=V(c,i.project);return v.setParent(u==null?void 0:u.dataType,s),v.initChildren(s),s==null||s.add(v,b.Added),v.addSelfToProject(s),{newEntities:[v]}}return{newEntities:[]}}const r=i.project.get(x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),a=xd(r,"Main database",s);if(a.errors.length>0)return{newEntities:[]};const d=a.implemented.properties.find(l=>l.implements&&l.implements.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),o=d==null?void 0:d.defaultValue;if(o)o.value=!0;else if(d!=null&&d.dataType){const l={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(s==null?void 0:s.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:g.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:d==null?void 0:d.dataType.toReference()},u=V(l,i.project);u.setParent(d==null?void 0:d.dataType,s),u.initChildren(s),s==null||s.add(u,b.Added),u.addSelfToProject(s)}return{newEntities:[a.implemented]}}}return{newEntities:[]}}function bO(i,s){return i.implements.filter(t=>t.type===n.BuiltInBaseEntity).map(t=>{switch(t.id){case x["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const a=i.project.entities.filter(l=>l.implements.find(u=>u.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(l=>!!l.properties.find(u=>{var h;return u.implements&&u.implements.id===x["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((h=u.getDefaultValue())==null?void 0:h.value)===!0}));if(!a)return{newEntities:[]};const d=i.properties.find(l=>l.implements&&l.implements.id===x["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),o=d==null?void 0:d.defaultValue;if(d&&(d!=null&&d.dataType)&&!o){const l={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(s==null?void 0:s.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:g.EntityTemplate,autogeneration:null,value:null,valueAsTypeSingle:a,valueAsTypeList:null,parent:d==null?void 0:d.dataType.toReference()},u=V(l,i.project);return u.setParent(d==null?void 0:d.dataType,s),u.initChildren(s),s==null||s.add(u,b.Added),u.addSelfToProject(s),{newEntities:[u]}}return{newEntities:[]}}}}),{newEntities:[]}}function xd(i,s,e,t){const r=t||I.UUID.uuid(),a=I.UUID.uuid(),d={id:r,version:a,createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:s,type:n.DefinitionEntity,description:null,static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[i],x:0,y:0,parent:i.project},o=AO(i,e),l=V(d,i.project);l.setParent(i.project,e),l.initChildren(e),e==null||e.add(l,b.Added),i.properties.map(h=>{const c=I.UUID.uuid(),v=h.clone(e,l,c);return v.abstract=!1,v.implements=h,e==null||e.add(v,b.Added),v.setParent(l,e),l.addProperty(v),v}),i.abstractMethods.map(h=>{const c=I.UUID.uuid(),v=h.implementAsFunctionDeclaration(e,l,c);return l.addMethod(v),e==null||e.add(v,b.Added),v}),l.afterAllChildrenInitialized(e);const u=bO(l,e);return{implemented:l,errors:[],entitiesChanges:{new:[l,...o.newEntities,...u.newEntities],updated:[l],deleted:[]}}}function Uc(i,s){return s.entities.find(r=>{const a=r.properties,d=a.map(c=>c.name),o=i.every(c=>d.includes(c)),l=d.filter(c=>!i.includes(c)),u=a.every(c=>!l.includes(c.name)||!c.required);return o&&u})||null}function RO(i,s,e,t=bt.OrDataTypeGroup){const r=[],a=[],d=[],o=[],u={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,entity:i.toJSON(),isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:t,parent:s.toReference()},h=V(u,i.project);return a.push(h),h.setParent(s,e),h.initChildren(e),e==null||e.add(h,b.Added),h.setEntity(i),h.addSelfToProject(e),{updated:p(r),added:p(a),removed:p(d),affected:p(o),self:h}}function $c(i,s,e,t,r){var u,h,c,v,E,O,w,C;const a=[],d=[],o=[],l=[];switch(typeof i){case"string":let U=!1;const G=new Date(i);if(G instanceof Date&&!isNaN(G.valueOf())&&(U=!0),U){const _=s.project.getBuiltIn(x[n.PrimitiveEntity][g.Date].id);s.setEntity(_);break}else{const _=s.project.getBuiltIn(x[n.PrimitiveEntity][g.String].id);s.setEntity(_);break}case"number":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Number].id));break;case"boolean":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Boolean].id));break;case"object":if(i===null){s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Null].id));break}else if(Array.isArray(i))if(s.metaSync({isList:!0},t),i.length>0){const _=i.slice(0,5).filter(k=>k!==void 0);if(_.every(k=>typeof k==typeof _[0])&&(typeof _[0]!="object"||_[0]===null))switch(typeof _[0]){case"string":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.String].id));break;case"number":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Number].id));break;case"boolean":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Boolean].id));break;case"object":s.setEntity(s.project.getBuiltIn(x[n.PrimitiveEntity][g.Null].id));break}else{const k=[];let J=!1;_.forEach(pe=>{var Te,K,se,Ht;if(Array.isArray(pe)&&(J=!0),typeof pe=="object"&&!Array.isArray(pe)&&pe!==null){const Yr=Sd(pe,s.project,{...e,id:I.UUID.uuid()},t,r);Yr.hasCreated&&k.push((Te=Yr.changeSet)==null?void 0:Te.self),a.push(...(K=Yr.changeSet)==null?void 0:K.updated),d.push(...(se=Yr.changeSet)==null?void 0:se.added),o.push(...(Ht=Yr.changeSet)==null?void 0:Ht.removed)}});const ee=p(k);if(!ee.length&&!J){_.forEach(pe=>{const Te={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:bt.OrDataTypeGroup,parent:s.toReference()},K=V(Te,s.project);switch(K.setParent(s,t),K.initChildren(t),t==null||t.add(K,b.Added),K.addSelfToProject(t),typeof pe){case"string":K.setEntity(K.project.getBuiltIn(x[n.PrimitiveEntity][g.String].id));break;case"number":K.setEntity(K.project.getBuiltIn(x[n.PrimitiveEntity][g.Number].id));break;case"boolean":K.setEntity(K.project.getBuiltIn(x[n.PrimitiveEntity][g.Boolean].id));break;case"object":K.setEntity(K.project.getBuiltIn(x[n.PrimitiveEntity][g.Null].id));break}});break}else ee.length===1&&!J?s.setEntity(ee[0]):_.forEach(pe=>{if(typeof pe=="object"&&!Array.isArray(pe)&&pe!==null){const Te=Uc(Object.keys(pe),s.project);if(Te){const K=RO(Te||ee[0],s,t,bt.OrDataTypeGroup);a.push(...K.updated),d.push(...K.added),o.push(...K.removed)}}else{const Te={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,entity:null,isList:Array.isArray(pe),asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:bt.OrDataTypeGroup,parent:s.toReference()},K=V(Te,s.project);K.setParent(s,t),K.initChildren(t),t==null||t.add(K,b.Added),K.addSelfToProject(t);const se=$c(pe,K,{...e,id:I.UUID.uuid()},t,r);a.push(...se.updated),d.push(...se.added),o.push(...se.removed)}})}}else{const _=Sd(i[0],s.project,{...e},t,r);s.setEntity((u=_.changeSet)==null?void 0:u.self),a.push(...(h=_.changeSet)==null?void 0:h.updated),d.push(...(c=_.changeSet)==null?void 0:c.added),o.push(...(v=_.changeSet)==null?void 0:v.removed);break}else{const _=Sd(i,s.project,{...e},t,r);s.setEntity((E=_.changeSet)==null?void 0:E.self),a.push(...(O=_.changeSet)==null?void 0:O.updated),d.push(...(w=_.changeSet)==null?void 0:w.added),o.push(...(C=_.changeSet)==null?void 0:C.removed);break}}return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:s}}function Sd(i,s,e,t,r){const a=[],d=[],o=[],l=[],u=Object.keys(i),h=Uc(u,s);if(h)return{hasCreated:!1,changeSet:{updated:[],added:[],removed:[],affected:[],self:h}};const c=r?e.name+" of "+r.name:e.name,E={id:e.id||I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:c,type:n.DefinitionEntity,description:e.description||null,static:e.static||!1,abstract:e.abstract||!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:s.toReference()},O=V(E,s);return O.setParent(s,t),O.initChildren(t),t==null||t.add(O,b.Added),O.addSelfToProject(t),d.push(O),u.forEach((w,C)=>{const G={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:w,type:n.Property,description:null,static:!1,abstract:!1,defaultValue:null,constant:!1,dataType:null,implements:null,index:C,hidden:!1,private:!1,required:!0,parent:O.toReference()},_=V(G,s);_.setParent(O,t),_.initChildren(t),t==null||t.add(_,b.Added),_.addSelfToProject(t),d.push(_);const $=i[w],J={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parent:_.toReference()},ee=V(J,s);ee.setParent(_,t),ee.initChildren(t),t==null||t.add(ee,b.Added),ee.addSelfToProject(t),d.push(ee);const pe=$c($,ee,{...e,name:w,id:I.UUID.uuid()},t,r||O);a.push(...pe.updated),d.push(...pe.added),o.push(...pe.removed)}),{hasCreated:!0,changeSet:{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:O}}}function kd(i,s){const e=Mn(i);if(e.length===0)return{list:[],last:null};let t=null;return{list:e.flatMap(a=>{if(a===s)return t=a,[a];const d=kd(a,s);return d.last&&(t=d.last),[a,...d.list]}),last:t}}function DO(i,s,e=new Set){const t=Ji(i),r=Ji(s),a=t.filter(l=>!r.includes(l)),d=t.filter(l=>r.includes(l)),o=a.reduce((l,u)=>e.has(u.id)?l:(e.add(u.id),p([...l,...DO(u,s,e)])),[]);return p([...d,...o])}function Vs(i,s){const e=kd(i,s);return e.last===s&&e.list.length>0&&e.list[0]!==s}function Lq(i,s){return!!kd(i,s).last}function Uq(i){if(at.includes(i.type))return i;if([...Cr,n.VariableDeclaration].includes(i.type)){const s=i.parent;return at.includes(s.type)?s:null}return null}function jc(i,s){if(!i||!s)throw new Error("Both entities must be defined to find a common ancestor");if(i===s)return i;const e=i.parent;if(e){if(e===s)return s;if(e.type===n.Project)return null}else return null;const t=s.parent;if(t){if(t===i)return i;if(t.type===n.Project)return null}else return null;return jc(e,t)}function Ot(i){if(Gs.includes(i.type)){if(i.type===n.FunctionDeclaration){const s=i.parent;if(s.type===n.DefinitionEntity)return s;if(s.type===n.Loop)return s}return i}else{const s=i.parent;return s?Ot(s):null}}function Zd(i,s){const e=Cs(i,s);if(!e)return null;if(Gs.includes(e.type)){if(e.type===n.FunctionDeclaration){const t=Cs(e.parent,s);if(t){if(t.type===n.DefinitionEntity)return t;if(t.type===n.Loop)return t}}return e}else{const t=e.parent?Cs(e.parent,s):null;return t?Zd(t,s):null}}function OO(i){if(!i)return null;if(Cr.includes(i.type))return i;const s=i.parent;return s?OO(s):null}function PO(i){if(!i)return null;if(nt.includes(i.type))return i;const s=i.parent;return s?PO(s):null}function wO(i){if(!i)return null;if(Br.includes(i.type))return i;const s=i.parent;return s?wO(s):null}function $q(i){return i.type===n.VariableDeclaration?[i]:nt.includes(i.type)?[...i.inputs,...i.outputs||[]]:st.includes(i.type)?i.outputs:$n.includes(i.type)||i.type===n.FunctionDeclaration?i.inputs:[]}function jq(i){const s=Ji(i),e=[],t=[];ef.includes(i.type)&&e.push(...Gc(i));const r=s.filter(a=>{const d=e.includes(a);return d?!1:Cr.includes(a.type)&&!d?(t.push(a),!1):!0});return e.sort((a,d)=>Vs(d,a)?-1:0),t.sort((a,d)=>Vs(d,a)?-1:0),[...e,...t,...r]}function VO(i){return[...i].sort((s,e)=>Vs(e,s)?-1:0)}function Gq(i){const s=VO(i),e=[];return s.forEach(t=>{const r=e[e.length-1];if(r){const a=r[r.length-1];Vs(t,a)?e.push([t]):r.push(t)}else e.push([t])}),e}function zt(i){const s=i.map(e=>Ot(e));return p(s)}function Gc(i){return nt.includes(i.type)?[...zt(i.successCalls),...zt(i.errorCalls)]:at.includes(i.type)?zt(i.calls):[]}function Fq(i,s){return Gc(i).includes(s)}function Fc(i){return i.writesValues||[]}function xq(i,s){return Fc(i).includes(s)}function CO(i){var s;return Qe.includes((s=i==null?void 0:i.readsValue)==null?void 0:s.type)?i.readsValue:null}function Sq(i){return i.writesValues}function BO(i=[]){return i.map(CO).filter(s=>!!s)}function qd(i=[]){return i.map(s=>s.writesValues).flat().filter(s=>Qe.includes(s.type))}function _O(i=[]){return i.map(s=>s.readsValue).filter(s=>!!s&&Qe.includes(s.type))}function MO(i){return Qe.includes(i.type)?i:null}function gO(i){return i.writesValues.map(MO).filter(s=>!!s)}function NO(i=[]){return i.reduce((s,e)=>e.type===n.OutputMap?[...s,...gO(e)]:s,[])}function it(i){return nt.includes(i.type)?[...Wr(zt(i.successCalls)),...Wr(zt(i.errorCalls))]:at.includes(i.type)?Wr(zt(i.calls)):[]}function kq(i){return nt.includes(i.type)?[...Wr(zt(i.successCalls)),...Wr(zt(i.errorCalls))]:at.includes(i.type)?Wr(zt(i.calls)):[]}function LO(i,s=new Set){return i.writesValues.filter(t=>Qe.includes(t.type)&&!s.has(t.id)).reduce((t,r)=>s.has(r.id)?t:[...t,...We(r,s)],[])}function UO(i,s=new Set){var t;return(((t=i.readsValue)==null?void 0:t.writesValues)||[]).filter(r=>Qe.includes(r.type)&&!s.has(r.id)).reduce((r,a)=>s.has(a.id)?r:[...r,...We(a,s)],[])}function We(i,s=new Set){if(s.has(i.id))return[];if(i.type===n.ReturnStatement)return _O(i.outputs).reduce((t,r)=>[...t,...We(r,s)],[]);if(i.type===n.FunctionCall||i.type===n.Operation||i.type===n.Condition)return[...it(i).reduce((a,d)=>{const o=Ot(d);return[...a,...We(o||d,s)]},[]),...BO(i.inputs),...NO(i.outputs)].reduce((a,d)=>[...a,...We(d,s)],[]);if($n.includes(i.type)){const e=qd(i.inputs),r=it(i).reduce((a,d)=>{const o=Ot(d);return[...a,...We(o||d,s)]},[]);return e.push(...r),e.reduce((a,d)=>[...a,...We(d,s)],[])}if(i.type===n.FunctionDeclaration){const e=[...qd(i.inputs)],r=it(i).reduce((a,d)=>{const o=Ot(d);return[...a,...We(o||d,s)]},[]);return e.push(...r),e.reduce((a,d)=>[...a,...We(d)],[])}if(Qe.includes(i.type)){s.add(i.id);const t=it(i).reduce((r,a)=>{const d=Ot(a);return[...r,...We(d||a,s)]},[]);return[i,...t,...UO(i,s),...LO(i,s)]}return[]}function ir(i,s=new Set){return s.has(i.id)?[]:(s.add(i.id),[...Ji(i).reduce((r,a)=>[...r,a,...ir(a,s)],[])])}function Wr(i){return i.reduce((s,e)=>e.type===n.ReturnStatement||e.type===n.ContinueStatement||e.type===n.BreakStatement?[...s,e]:[...s,e,...it(e)],[])}function $O(i){const s=i.entities||[],e=[...s,...i.functions||[],...i.events||[],...i.projects||[]],t=s.reduce((l,u)=>[...l,...u.properties],[]),r=s.reduce((l,u)=>[...l,...u.methods],[]),a=r.reduce((l,u)=>[...l,...qd(u.inputs),...Wr(zt(u.calls)),...u.returnStatements],[]),d=i.functions.reduce((l,u)=>[...l,...Wr(zt(u.calls)),...u.returnStatements],[]),o=i.events.reduce((l,u)=>[...l,...Wr(zt(u.calls)),...u.returnStatements],[]);return[...e,...t,...r,...a,...d,...o]}function jO(i,s){return s.filter(t=>{if(!t)return!1;switch(t.type){case n.FunctionCall:return t.inputs.find(r=>r.id===i.id)!==void 0||t.outputs.find(r=>r.id===i.id)!==void 0;case n.Condition:return t.successCalls.find(r=>r.id===i.id)!==void 0||t.errorCalls.find(r=>r.id===i.id)!==void 0||t.inputs.find(r=>r.id===i.id)!==void 0;case n.Operation:return t.outputs.find(r=>r.id===i.id)!==void 0;case n.VariableDeclaration:return nt.includes(i.type)?cP(i).find(a=>{var d;return((d=a.readsValue)==null?void 0:d.id)===t.id})!==void 0:!1;case n.DefinitionEntity:return t.properties.find(r=>r.id===i.id)!==void 0||t.methods.find(r=>r.id===i.id)!==void 0;case n.FunctionDeclaration:return t.inputs.find(r=>r.id===i.id)!==void 0||(t.returnStatements.map(r=>r.outputs).flat()||[]).find(r=>r.id===i.id)!==void 0;default:return!1}})}function Zq(i){const s=$O(i.project);return jO(i,s)}function Cs(i,s){return i?typeof i=="string"?s[i]:i.type===n.GenericReference?s[i.entityId]:s[i.id]?s[i.id]:null:null}function Jd(i,s={},e={ignoreBuiltInBaseEntities:!1,allBuiltInEntityIds:[]}){if(e.ignoreBuiltInBaseEntities&&(hr.includes(i.type)||(e.allBuiltInEntityIds||[]).includes(i.id)))return{upstream:{},downstream:{}};const t=i,r=i,a=i,d=i,o=i,l=i,u=i,h=i,c=i,v=i,E=i,O=i,w=i,C=[...w.readsValue?[w.readsValue]:[],...w.declaration?[w.declaration]:[],...(O.calledByEntry||[]).flatMap($=>$),...(O.calledBySuccess||[]).flatMap($=>$),...(O.calledByError||[]).flatMap($=>$),...(a.extends||[]).flatMap($=>$),...v.parent?[v.parent]:[]];Array.isArray(a.implements)?C.push(...a.implements.flatMap($=>$)):c.implements&&C.push(c.implements),o.valueAsTypeList&&Array.isArray(o.valueAsTypeList)&&C.push(...o.valueAsTypeList.flatMap($=>$)),o.valueAsTypeSingle&&C.push(o.valueAsTypeSingle);const U=[...(t.inputs||[]).flatMap($=>$),...(E.inputsDeclarations||[]).flatMap($=>$),...(t.outputs||[]).flatMap($=>$),...(E.outputsDeclarations||[]).flatMap($=>$),...(w.internalCalls||[]).flatMap($=>$),...w.writesValues||[],...O.dataType?[O.dataType]:[],...l.body?[l.body]:[],...O.defaultValue?[O.defaultValue]:[],...(O.successCalls||[]).flatMap($=>$),...(O.errorCalls||[]).flatMap($=>$),...(a.properties||[]).flatMap($=>$),...(a.methods||[]).flatMap($=>$),...(a.abstractMethods||[]).flatMap($=>$),...u.error?[u.error]:[],...u.process?[u.process]:[],...v.throws?[v.throws]:[],...(r.andChildrenGroup||[]).flatMap($=>$),...(r.orChildrenGroup||[]).flatMap($=>$),...(h.entities||[]).flatMap($=>$),...(h.functions||[]).flatMap($=>$),...(h.functionCalls||[]).flatMap($=>$),...(h.events||[]).flatMap($=>$),...(h.conditions||[]).flatMap($=>$),...(h.operations||[]).flatMap($=>$),...(h.loops||[]).flatMap($=>$),...(h.variableDeclarations||[]).flatMap($=>$),...(h.variableInstances||[]).flatMap($=>$),...(h.searches||[]).flatMap($=>$),...(h.projects||[]).flatMap($=>$),...(d.calls||[]).flatMap($=>$)];i.type===n.DataType&&(r.entity&&s[B(r.entity)]&&s[B(r.entity)].parent&&B(s[B(r.entity)].parent)===i.id?U.push(r.entity):r.entity&&C.push(r.entity));const G={},_={};return C.forEach($=>{const k=B($);if(k&&e.ignoreBuiltInBaseEntities&&(hr.includes($.type)||(e.allBuiltInEntityIds||[]).includes(k)))return;const J=$.version;k&&(G[k]=J)}),U.forEach($=>{const k=B($);if(k&&e.ignoreBuiltInBaseEntities&&(hr.includes($.type)||(e.allBuiltInEntityIds||[]).includes(k)))return;const J=$.version;k&&(_[k]=J)}),{upstream:G,downstream:_}}function qq(i,s){const e=[];if(Cr.includes(i.type)){fr(i).forEach(a=>{const d=Zd(a,s);d&&e.push(d)});const r=[...i.inputs||[],...i.outputs||[]].map(a=>{const d=Cs(a,s);return d?yP(d,s):null}).filter(a=>a!==null);e.push(...p(r))}if(Qe.includes(i.type)){const t=Wd(i);t&&e.push(t)}return p(e)}function Mn(i){const s=[];if(Cr.includes(i.type)){i.calledBy.forEach(r=>{const a=Ot(r);a&&s.push(a)});const t=[...i.inputs||[],...i.outputs||[]].map(r=>Wd(r)).filter(r=>r!==null);s.push(...p(t))}if(Qe.includes(i.type)){const e=Wd(i);e&&s.push(e)}return p(s)}function fr(i){return[...i.calledByEntry||[],...i.calledByError||[],...i.calledBySuccess||[]].filter(s=>s.type!==n.GenericReference)}function GO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[i,...i.inputs.flatMap(t=>N(t,s,e)),...i.outputs.flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.parent?N(i.parent,s,e):[]]}function FO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[i,...i.defaultValue?N(i.defaultValue,s):[],...i.writesValues.flatMap(t=>N(t,s,e)),...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function xO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[i,...i.outputs.flatMap(t=>N(t,s,e)),...i.throws?N(i.throws,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function SO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[i,...(i.properties||[]).flatMap(t=>N(t,s,e)),...(i.methods||[]).flatMap(t=>N(t,s,e)),...(i.abstractMethods||[]).flatMap(t=>N(t,s,e)),...(i.extends||[]).flatMap(t=>N(t,s,e))]}function kO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Condition)throw new Error("Entity must be a condition to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function ZO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[i,...i.outputs.flatMap(t=>N(t,s,e)),...i.throws?N(i.throws,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function qO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[i,...(i.extends||[]).flatMap(t=>N(t,s,e)),...(i.implements||[]).flatMap(t=>N(t,s,e)),...(i.properties||[]).flatMap(t=>N(t,s,e)),...(i.methods||[]).flatMap(t=>N(t,s,e)),...(i.abstractMethods||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function JO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.DataType)throw new Error("Entity must be a data type to be flattened");return[i,...(i.andChildrenGroup||[]).flatMap(t=>N(t,s,e)),...(i.orChildrenGroup||[]).flatMap(t=>N(t,s,e)),...i.entity?N(i.entity,s,e):[],...i.parent?N(i.parent,s,e):[]]}function WO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.process?N(i.process,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function zO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.calls||[]).flatMap(t=>N(t,s,e)),...i.implements?N(i.implements,s,e):[],...i.parent?N(i.parent,s,e):[]]}function YO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.calls||[]).flatMap(t=>N(t,s,e)),...i.implements?N(i.implements,s,e):[],...i.parent?N(i.parent,s,e):[]]}function HO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.InputMap)throw new Error("Entity must be an input map to be flattened");return[i,...i.readsValue?N(i.readsValue,s,e):[],...i.declaration?N(i.declaration,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...i.parent?N(i.parent,s,e):[]]}function KO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[i,...(i.functions||[]).flatMap(t=>N(t,s,e)),...(i.events||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function XO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.process?N(i.process,s,e):[],...i.parent?N(i.parent,s,e):[]]}function QO(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[i,...i.valueAsTypeSingle?N(i.valueAsTypeSingle,s,e):[],...i.valueAsTypeList&&Array.isArray(i.valueAsTypeList)?i.valueAsTypeList.flatMap(t=>N(t,s,e)):[],...i.parent?N(i.parent,s,e):[]]}function eP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Loop)throw new Error("Entity must be a loop to be flattened");return[i,...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.process?N(i.process,s,e):[],...i.body?N(i.body,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function tP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Operation)throw new Error("Entity must be an operation to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...i.process?N(i.process,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function rP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.OutputMap)throw new Error("Entity must be an output map to be flattened");return[i,...(i.writesValues||[]).flatMap(t=>N(t,s,e)),...i.declaration?N(i.declaration,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...i.parent?N(i.parent,s,e):[]]}function iP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[i,...(i.properties||[]).flatMap(t=>N(t,s,e)),...(i.methods||[]).flatMap(t=>N(t,s,e)),...(i.abstractMethods||[]).flatMap(t=>N(t,s,e))]}function nP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Project)throw new Error("Entity must be a project to be flattened");return[i,...(i.entities||[]).flatMap(t=>N(t,s,e)),...(i.functions||[]).flatMap(t=>N(t,s,e)),...(i.events||[]).flatMap(t=>N(t,s,e)),...(i.projects||[]).flatMap(t=>N(t,s,e)),...(i.variableDeclarations||[]).flatMap(t=>N(t,s,e)),...(i.variableInstances||[]).flatMap(t=>N(t,s,e)),...(i.operations||[]).flatMap(t=>N(t,s,e)),...(i.conditions||[]).flatMap(t=>N(t,s,e)),...(i.functionCalls||[]).flatMap(t=>N(t,s,e)),...(i.projects||[]).flatMap(t=>N(t,s,e)),...(i.loops||[]).flatMap(t=>N(t,s,e)),...(i.searches||[]).flatMap(t=>N(t,s,e))]}function aP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Property)throw new Error("Entity must be a property to be flattened");return[i,...i.defaultValue?N(i.defaultValue,s,e):[],...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function sP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ReturnDeclaration)throw new Error("Entity must be a return declaration to be flattened");return[i,...i.readsValue?N(i.readsValue,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function oP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[i,...(i.outputs||[]).flatMap(t=>N(t,s,e)),...i.throws?N(i.throws,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function dP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.Search)throw new Error("Entity must be a search to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputsDeclarations||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputsDeclarations||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...i.error?N(i.error,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.parent?N(i.parent,s,e):[]]}function lP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[i,...i.defaultValue?N(i.defaultValue,s,e):[],...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function uP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...(i.internalCalls||[]).flatMap(t=>N(t,s,e)),...(i.writesValues||[]).flatMap(t=>N(t,s,e)),...i.readsValue?N(i.readsValue,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.dataType?N(i.dataType,s,e):[],...i.parent?N(i.parent,s,e):[]]}function pP(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(i.id))return[];if(s.add(i.id),i.type!==n.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[i,...(i.successCalls||[]).flatMap(t=>N(t,s,e)),...(i.errorCalls||[]).flatMap(t=>N(t,s,e)),...(i.inputs||[]).flatMap(t=>N(t,s,e)),...(i.outputs||[]).flatMap(t=>N(t,s,e)),...(i.internalCalls||[]).flatMap(t=>N(t,s,e)),...(i.writesValues||[]).flatMap(t=>N(t,s,e)),...i.readsValue?N(i.readsValue,s,e):[],...i.defaultValue?N(i.defaultValue,s,e):[],...(fr(i)||[]).flatMap(t=>N(t,s,e)),...i.declaration?N(i.declaration,s,e):[],...i.parent?N(i.parent,s,e):[]]}function Vr(){const i=new Set,s=eI.flatMap(e=>N(e,i)).map(e=>e.id);if(!s.includes("http-request-error-return-delaration-id"))throw new Error("Built-in base entities must be included in the list");return s}function N(i,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(!i)throw new Error("Entity must be defined to be flattened");if(i.type===n.GenericReference)return[];if(e.ignoreBuiltInBaseEntities&&(hr.includes(i.type)||Vr().includes(i.id)))return[];if(s.has(i.id))return[];switch(i.type){case n.FunctionCall:return WO(i,s,e);case n.Operation:return tP(i,s,e);case n.Condition:return kO(i,s,e);case n.Loop:return eP(i,s,e);case n.Search:return dP(i,s,e);case n.GlobalEvent:return YO(i,s,e);case n.ReturnStatement:return oP(i,s,e);case n.ContinueStatement:return ZO(i,s,e);case n.BreakStatement:return xO(i,s,e);case n.VariableDeclaration:return uP(i,s,e);case n.DefinitionEntity:return qO(i,s,e);case n.FunctionDeclaration:return zO(i,s,e);case n.Project:return nP(i,s,e);case n.ActionDescriptor:return GO(i,s,e);case n.ArgumentDeclaration:return FO(i,s,e);case n.ReturnDeclaration:return sP(i,s,e);case n.ValueDescriptor:return lP(i,s,e);case n.InputMap:return HO(i,s,e);case n.OutputMap:return rP(i,s,e);case n.DataType:return JO(i,s,e);case n.InstalledProject:return KO(i,s,e);case n.InternalCall:return XO(i,s,e);case n.LiteralValue:return QO(i,s,e);case n.Property:return aP(i,s,e);case n.VariableInstance:return pP(i,s,e);case n.BuiltInBaseEntity:return e.ignoreBuiltInBaseEntities?[]:SO(i,s,e);case n.PrimitiveEntity:return e.ignoreBuiltInBaseEntities?[]:iP(i,s,e)}return[]}function xc(i){return i.type===n.FunctionCall||i.type===n.InternalCall||[n.Operation,n.Condition,n.Loop].includes(i.type)?i.declaration.inputs:i.type===n.FunctionDeclaration||$n.includes(i.type)?i.inputs:i.type===n.Search?i.inputsDeclarations:[]}function Jq(i,s){return s.type===n.Condition?s.inputs.find(e=>e.declaration.id===i.id):s.type===n.FunctionCall||s.type===n.Operation?s.inputs.find(e=>e.declaration.id===i.id):null}function cP(i){return nt.includes(i.type)?i.inputs:[]}function fP(i){var s;return i.type===n.FunctionCall?((s=i.declaration.returnStatements[0])==null?void 0:s.outputs)||[]:[n.Operation,n.Condition,n.Loop].includes(i.type)?i.declaration.outputs:i.type===n.Search?i.outputsDeclarations:st.includes(i.type)?i.outputs:[]}function Wq(i,s){return s.type===n.Condition?null:s.type===n.FunctionCall||s.type===n.Operation?s.outputs.find(e=>e.declaration.id===i.id):null}function zq(i){return i.type===n.Condition?[]:nt.includes(i.type)?i.outputs:[]}function Wd(i){const s=i.readsValue;return s?Ot(s):null}function yP(i,s){const e=i.readsValue;return e?Zd(e,s):null}function hP(i){const s=i.internalCalls||[];return p(zt(p(s.flatMap(e=>[...e.successCalls,...e.errorCalls]))))}function ba(i){const s=Fc(i),e=[];return s.forEach(t=>{if(Qe.includes(t.type))e.push(t);else if(hi.includes(t.type)){const r=t.parent;e.push(r)}}),e}function p(i){const s=new Set;return i.filter(e=>!e||s.has(e.id)?!1:(s.add(e.id),!0))}function Ji(i,s=!1){const e=[];if(i.type===n.Project&&e.push(...(i==null?void 0:i.entities)||[],...(i==null?void 0:i.functions)||[],...(i==null?void 0:i.variableDeclarations)||[],...(i==null?void 0:i.variableInstances)||[],...(i==null?void 0:i.searches)||[],...(i==null?void 0:i.loops)||[],...(i==null?void 0:i.operations)||[],...(i==null?void 0:i.conditions)||[],...(i==null?void 0:i.functionCalls)||[],...(i==null?void 0:i.events)||[],...(i==null?void 0:i.projects)||[]),mt.includes(i.type)&&e.push(...(i==null?void 0:i.detachedChildren)||[]),i.type===n.DefinitionEntity){const t=[...i.suggestedMethods,...i.methods].flatMap(r=>r.collapsed&&s?[]:Ji(r));e.push(...t)}if(i.type===n.Condition){const t=i.successCalls.map(a=>Ot(a)),r=i.errorCalls.map(a=>Ot(a));e.push(...t,...r)}if($n.includes(i.type)){if(i.collapsed&&s)return[];const t=i.inputs.map(a=>ba(a)).flat(),r=i.calls.map(a=>Ot(a));e.push(...p(t),...r)}if(nt.includes(i.type)&&i.type!==n.Condition&&i.type!==n.Loop){const t=i==null?void 0:i.outputs.map(d=>ba(d)).flat(),r=i.successCalls.map(d=>Ot(d)),a=i.errorCalls.map(d=>Ot(d));e.push(...p(t),...r,...a)}if(Qe.includes(i.type)){const t=ba(i),r=hP(i);e.push(...t,...r)}if(i.type===n.Loop){const t=i.outputs.map(d=>ba(d)).flat();if(i.body){const d=Ji(i.body,s);e.push(...d)}const r=i.errorCalls.map(d=>Ot(d)),a=i.successCalls.map(d=>Ot(d));e.push(...p(t),...a,...r)}if(i.type===n.FunctionDeclaration){if(i.collapsed&&s)return[];const t=i.inputs.map(a=>ba(a)).flat(),r=i.calls.map(a=>Ot(a));e.push(...p(t),...r)}return p(e)}function mP(i,s=!1){const e=Ji(i,s),t=[...e,...e.reduce((r,a)=>[...r,...mP(a,s)],[])];return p(t)}function vP(i){const s=Mn(i),e=[...s,...s.reduce((t,r)=>[...t,...vP(r)],[])];return p(e)}function zd(i){return i.implements.reduce((s,e)=>e.type===n.DefinitionEntity?[...s,n.DefinitionEntity,...zd(e),...Yd(e)]:[...s,e.name],[])}function Yd(i){return i.extends.reduce((s,e)=>e.type===n.DefinitionEntity?[...s,n.DefinitionEntity,...Yd(e),...zd(e)]:[...s,e.name],[])}function Sc(i){return i.extends.reduce((s,e)=>e.type===n.DefinitionEntity?[...s,e,...Sc(e),...kc(e)]:[...s,e],[])}function kc(i){return i.implements.reduce((s,e)=>e.type===n.DefinitionEntity?[...s,e,...kc(e),...Sc(e)]:[...s,e],[])}function Zc(i){return[...Yd(i),...zd(i)].filter((e,t,r)=>r.indexOf(e)===t)}function TP(i){return i.implements.length===0&&i.extends.length===0?null:i.implements.find(t=>t.type===n.BuiltInBaseEntity&&t.name===Y.PERSISTED_ENTITY)?i:[...i.implements,...i.extends].reduce((t,r)=>{if(r.type===n.DefinitionEntity){const a=TP(r);if(a)return a}return t},null)}function Yq(i){const s=i.extends.find(e=>e.type===n.BuiltInBaseEntity);return s&&s.type===n.BuiltInBaseEntity?s:null}function Hq(i){const s=i.implements.find(e=>e.type===n.BuiltInBaseEntity);return s&&s.type===n.BuiltInBaseEntity?s:null}function qc(i){const s=i.extends.find(e=>e.type===n.DefinitionEntity);return s&&s.type===n.DefinitionEntity?s:null}function Wi(i){const s=[...i.implements,...i.extends].reduce((e,t)=>t.type===n.BuiltInBaseEntity?[...e,t]:t.type===n.DefinitionEntity?[...e,...Wi(t)]:e,[]);return p(s)}function Jc(i){return i.type===n.PrimitiveEntity?!0:i.type===n.BuiltInBaseEntity?i.interactive:!Wi(i).find(t=>!t.interactive)}function Kq(i){return i.parent===i.project&&i.project.variableDeclarations.includes(i)}function Wc(i){return i.parent!==i.project?!1:n.VariableDeclaration===i.type?i.project.variableDeclarations.includes(i):n.VariableInstance===i.type?i.project.variableInstances.includes(i):n.FunctionCall===i.type?i.project.functionCalls.includes(i):n.Condition===i.type?i.project.conditions.includes(i):n.Operation===i.type?i.project.operations.includes(i):n.Loop===i.type?i.project.loops.includes(i):n.Search===i.type?i.project.searches.includes(i):!1}function EP(i){if([...at,n.DefinitionEntity,n.InstalledProject,n.Project].includes(i.type)||Wc(i))return!1;const s=Mn(i);return s.length===0?!0:s.some(e=>EP(e))}function zc(i){return[...at,n.DefinitionEntity,n.InstalledProject,n.Project].includes(i.type)||Wc(i)?!1:Mn(i).length===0}function IP(i,s=0){if(zc(i)){const e=Mn(i);return e.length===0?i:e.map(r=>IP(r,s+1)).reduce((r,a)=>r?a&&a.x<r.x?a:r:a,null)}return null}function AP(i){const s=[];if(zc(i))s.push(i);else return[];return Mn(i).forEach(t=>{s.push(...AP(t))}),s}function bP(i){return i.type===n.FunctionDeclaration&&i.parent!==i.project&&!![n.DefinitionEntity,n.Loop,n.InstalledProject].includes(i.parent.type)}function Xq(i,s){const e=new Map;return i.forEach(t=>{e.set(t.id,t)}),s.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function Bs(i){switch(i){case n.DefinitionEntity:return Yi;case n.FunctionDeclaration:return Mi;case n.VariableDeclaration:return $i;case n.VariableInstance:return Ui;case n.FunctionCall:return qi;case n.Operation:return gi;case n.Condition:return Li;case n.ReturnStatement:return _i;case n.Loop:return Ni;case n.Search:return ji;case n.InputMap:return Zr;case n.OutputMap:return qr;case n.ArgumentDeclaration:return Fi;case n.ReturnDeclaration:return rr;case n.Property:return Bi;case n.InstalledProject:return Gi;case n.Project:return I;case n.BuiltInBaseEntity:return zr;default:return null}}function Yt(i,s){if(mt.includes(i.type))return i;if(hr.includes(i.type))return null;const e=i.parent;if(!e)return null;if(e.type===n.GenericReference){const t=B(e);if(!t)return null;const r=s.get(t);return r?Yt(r,s):null}else return e===s?s:Yt(e,s)}function Yc(i,s){if(hr.includes(i.type)||s.getBuiltIn(i.id))return null;const e=nr(i.parent,s);return e?e===s?mt.includes(i.type)?i:null:e.type===n.DefinitionEntity?i:Yc(e,s):null}function Hd(i,s,e){if(i===s||s===e||i===e)return!1;const t=Yt(s.parent,e);return t===i?!0:Hd(t,s,e)}var Kd=(i=>(i.SameBothLocal="same-both-local",i.AInB="a-in-b",i.BInA="b-in-a",i.ParallelInCommonParent="parallel-in-common-parent",i.ParallelInProject="parallel-in-project",i.AIsGlobalBIsNot="a-is-global-b-is-not",i.BIsGlobalAIsNot="b-is-global-a-is-not",i.SameBothGlobal="same-both-global",i))(Kd||{});function _s(i,s,e){const t=Yt(i,e),r=Yt(s,e);if(!t)throw new Error("Could not find scope owner for the entity: "+i.id);if(!r)throw new Error("Could not find scope owner for the entity: "+s.id);if(t===r&&t.type!==n.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:t};if(t===r&&t.type===n.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:t};if(t.type===n.Project&&r.type!==n.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:t};if(t.type!==n.Project&&r.type===n.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:r};if(Hd(t,r,e))return{compatible:!0,type:"b-in-a",commonAncestorScope:t};if(Hd(r,t,e))return{compatible:!0,type:"a-in-b",commonAncestorScope:r};const o=jc(t,r);return o===e?{compatible:!1,type:"parallel-in-project",commonAncestorScope:o}:o?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:Yt(o,e)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:e}}function RP(i,s,e){const t=_s(i,s,e);if(!t.compatible||t.type!=="same-both-local")return null;if(i===s)return i;let r=Yt(i.parent,e);if(r){if(r===s)return s;if(r.type===n.Project)return i}else return i;for(;r;){if(r){if(r===s)return s;if(r.type===n.Project)return i}else return i;r=Yt(r.parent,e)}let a=Yt(s.parent,e);if(a){if(a===i)return i;if(a.type===n.Project)return s}else return s;for(;a;){if(a){if(a===i)return i;if(a.type===n.Project)return s}else return s;a=Yt(a.parent,e)}return null}function DP(i){return i.length===0?null:i.length===1?i[0]:i.reduce((e,t)=>{const r=RP(e,t,t.project);return!r||r===t?e:t},i[0])}function nr(i,s){if(!i)return null;let e;return typeof i=="string"?e=i:i.type===n.GenericReference?e=B(i):e=i.id,e===s.id?s:s.get(e)}function zi(i){if(!i)return null;if(hr.includes(i.type))return i;if(i.type===n.Project)return null;if(i.project.getBuiltIn(i.id))return i;const s=i.parent;return!s||s.type===n.Project?null:zi(s)}function Qq(i,s){var e;if(i.readsValue){const t=nr(i.readsValue,s.project);s.setValueWriter(t),t.addValueReader(s)}else i.readsValue===null&&((e=s.readsValue)==null||e.removeValueReader(s),s.readsValue=null);return s}function Ms(i){const s=[];function e(a,d){return s.some(o=>o.blockedByCaller===a&&o.blockedByCalling===d)}function t(a,d){e(a,d)||s.push({blockedByCaller:a,blockedByCalling:d})}const r=Yc(i,i.project);return i.calledBySuccess.forEach(a=>{[...a.successCalls||[]].forEach(l=>{st.includes(l.type)&&l!==i&&(it(i).find(c=>c===l)||t(a,l))});let o;if(nt.includes(a.type)&&(o=a),o){const l=Ms(o);l.reachable||it(i).find(c=>c===a)||l.blocks.forEach(c=>{t(a,c.blockedByCalling)})}}),i.calledByError.forEach(a=>{[...a.errorCalls||[]].forEach(l=>{st.includes(l.type)&&l!==i&&(it(i).find(c=>c===l)||t(a,l))});let o;if(nt.includes(a.type)&&(o=a),o){const l=Ms(o);l.reachable||it(i).find(c=>c===a)||l.blocks.forEach(c=>{t(a,c.blockedByCalling)})}}),i.calledByEntry.forEach(a=>{if([...a.calls||[]].forEach(l=>{st.includes(l.type)&&l!==i&&(it(i).find(c=>c===l)||t(a,l))}),a===r)return;let o;if(a.type===n.FunctionDeclaration){const l=Ot(a);if(l.type===n.DefinitionEntity)return;l.type===n.Loop&&(o=l)}if(o){const l=Ms(o);l.reachable||l.blocks.forEach(u=>{t(a,u.blockedByCalling)})}}),{reachable:s.length===0,entryPoint:r,blocks:s}}function eJ(i){return Gs.includes(i.type)?i.type===n.FunctionDeclaration?!bP(i):!0:!1}function tJ(i){if(n.ActionDescriptor===i.type){if(i.project.operationDeclarations.find(a=>a.id===i.id))return n.Operation;if(i.project.globalEventActionDescriptors.find(a=>a.id===i.id))return n.GlobalEvent;if(i.project.loopDeclarations.find(a=>a.id===i.id))return n.Loop;if(i.project.conditionDeclarations.find(a=>a.id===i.id))return n.Condition}return i.type}function Ra(i,s){if(i.type!==n.DefinitionEntity||i.abstract)return!1;const e=qc(i)||i;return!!Zc(e).includes(s)}function rJ(i){const s=[];return i.entities.forEach(e=>{if(Ra(e,Y.PERSISTED_ENTITY)){s.push(e);return}}),p(s)}function iJ(i){const s=[];return i.entities.forEach(e=>{if(Ra(e,Y.RELATIONAL_DATABASE)){s.push(e);return}}),p(s)}function nJ(i){return i.type!==n.DefinitionEntity||i.abstract||!Ra(i,Y.PERSISTED_ENTITY)?null:(i==null?void 0:i.properties.find(e=>{var t;return((t=e.implements)==null?void 0:t.id)===x[n.BuiltInBaseEntity][Y.PERSISTED_ENTITY].properties.primaryKey.id&&!e.abstract}))||null}function aJ(i){if(i.type!==n.DefinitionEntity)return[];if(i.abstract)return[];if(!Ra(i,Y.PERSISTED_ENTITY))return[];const s=[],e=i.properties.filter(t=>{var r;return((r=t.implements)==null?void 0:r.id)!==x[n.BuiltInBaseEntity][Y.PERSISTED_ENTITY].properties.database.id&&!t.abstract});return s.push(...e),s}function sJ(i){var e;if(!i||i.type!==n.DefinitionEntity||!Ra(i,Y.PERSISTED_ENTITY))return null;const s=i.properties.find(t=>{var r;return((r=t.implements)==null?void 0:r.id)===x[n.BuiltInBaseEntity][Y.PERSISTED_ENTITY].properties.database.id});return(e=s==null?void 0:s.getDefaultValue())==null?void 0:e.valueAsTypeSingle}function ft(i,s){var t;if(!rf.includes(s.type)||!i)return s.project||null;let e=s.project;return i.type===n.Project?e=i:((t=s.project)==null?void 0:t.id)!==i.project.id&&(e=i.project),e}function oJ(i){switch(i){case n.Project:return I;case n.InstalledProject:return Gi;case n.DefinitionEntity:return Yi;case n.FunctionDeclaration:return Mi;case n.GlobalEvent:return Vn;case n.VariableInstance:return Ui;case n.VariableDeclaration:return $i;case n.InputMap:return Zr;case n.OutputMap:return qr;case n.Condition:return Li;case n.Operation:return gi;case n.FunctionCall:return qi;case n.ReturnDeclaration:return rr;case n.ArgumentDeclaration:return Fi;case n.PrimitiveEntity:return ar;case n.DataType:return wn;case n.Property:return Bi;case n.ActionDescriptor:return qe;case n.ReturnStatement:return _i;case n.ContinueStatement:return jt;case n.BreakStatement:return Cn;case n.Loop:return Ni;case n.Search:return ji;case n.ValueDescriptor:return xi;case n.InternalCall:return Bn;case n.LiteralValue:return _n}return null}function dJ(i){const s={added:{},updated:{},removed:{},affected:[],seenEntities:[],self:i==null?void 0:i.self};return i==null||i.added.forEach(e=>{s.added[e.id]=e}),i==null||i.updated.forEach(e=>{s.updated[e.id]=e}),i==null||i.removed.forEach(e=>{s.removed[e.id]=e}),s.affected=Array.from(new Set(i==null?void 0:i.affected.map(e=>e.id))),s}function dt(i,s){const e=Bs(i.type);return e?!e.MUTABLE_META_PROPERTIES.every(r=>{const a=i[r],d=s[r];return d===void 0||a===d?!0:Array.isArray(a)&&Array.isArray(d)?a.length!==d.length?!1:a.every((o,l)=>o===d[l]):!1}):!1}function Xd(i,s={}){if(i.type===n.Project)return[];if(!i.parent)return[];const e=B(i.parent);if(!e)return[];const t=s[e];return t?[t.id,...Xd(t,s)]:[]}function lJ(i){const s=[],e=new Set;return[...i.listAdded,...i.listUpdated,...i.listAffected].forEach(t=>{const r=Ot(t);!r||e.has(r.id)||(e.add(r.id),s.push(r))}),p(s)}function uJ(i,s){const e=[];if(i.parent)if(i.id===i.parent)e.push(new P({id:`${i.id}--${i.parent}--${A.SelfReference}`,code:A.SelfReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.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 t=s.get(i.parent);t?[n.Project,n.DataType].includes(t.type)||e.push(new P({id:`${i.id}--${i.parent}--${A.InvalidParentReference}`,code:A.InvalidParentReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):e.push(new P({id:`${i.id}--${i.parent}--${A.ReferencedEntityNotFound}`,code:A.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", is referencing an entity with id "${i.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return i.implements&&Array.isArray(i.implements)?i.implements.forEach(t=>{if(i.id===t){e.push(new P({id:`${i.id}--${t}--${A.SelfReference}`,code:A.SelfReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.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 r=s.get(t);r?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(r.type)?r.abstract||e.push(new P({id:`${i.id}--${t}--${A.InvalidImplementsReference}`,code:A.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new P({id:`${i.id}--${t}--${A.InvalidImplementsReference}`,code:A.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new P({id:`${i.id}--${t}--${A.ReferencedEntityNotFound}`,code:A.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):e.push(new P({id:`${i.id}--${j.InvalidObjectStructure}`,code:j.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'implements' property that isn't an array.`,issue:null})),i.extends&&Array.isArray(i.extends)&&i.extends.forEach(t=>{const r=s.get(t);r?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(r.type)?r.abstract&&e.push(new P({id:`${i.id}--${t}--${A.InvalidExtendsReference}`,code:A.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.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})):e.push(new P({id:`${i.id}--${t}--${A.InvalidExtendsReference}`,code:A.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new P({id:`${i.id}--${t}--${A.ReferencedEntityNotFound}`,code:A.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${i.type}" with id "${i.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),e}var OP=(i=>(i.Extends="extends",i.Implements="implements",i))(OP||{});const Le=class Le extends rt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"static");f(this,"abstract");f(this,"type",n.DefinitionEntity);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"implements",[]);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestedProperties",[]);f(this,"suggestedMethods",[]);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.static=e.static,this.abstract=e.abstract}static fromGenerationTarget(e,t){let r=t;if(e.parent){const u=B(e.parent);r=t.get(u)}const a=[];e.implements&&e.implements.forEach(u=>{a.push(t.get(u)||t.getBuiltIn(u))});const d=[];e.extends&&e.extends.forEach(u=>{d.push(t.get(u)||t.getBuiltIn(u))});const o={id:e.id,version:I.UUID.uuid(),createdAt:T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.DefinitionEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:d,implements:a,x:0,y:0,parent:r},l=V(o,t);return l.setParent(r,null),l.initChildren(null),l}static validateGenerationTarget(e,t){let r=JSON.parse(JSON.stringify(e));const a=[],d=uJ(r,t),o=yc(r,t);a.push(...d,...o,...ot(r));const l=r.parent?t.get(r.parent):null;if(l&&l.type===n.DataType){const u=l;u.entity&&a.push(new P({id:`${e.id}--${A.NewEntityWouldOverriteExisting}`,code:A.NewEntityWouldOverriteExisting,severity:D.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${u.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
|
|
406
406
|
You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
|
|
407
407
|
${Jr({describe_entity:u.entity.id})}
|
|
408
|
-
Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:a,modifiedData:r}}get allBasePropertiesFromExtendedAndImplementedEntities(){return p([...this.extends.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract),...e],[]),...this.implements.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract),...e],[])])}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...r]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const r=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(d=>!!d.abstract&&!r.find(o=>o.name===d.name));return[...r,...a,...e]},[]),...this.implements.reduce((e,t)=>{const r=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(d=>!!d.abstract&&!r.find(o=>o.name===d.name));return[...r,...a,...e]},[])].filter(e=>!!e.abstract))}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new P({id:`${this.id}--${A.InvalidParentUpdate}`,code:A.InvalidParentUpdate,severity:D.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:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],r=[],a=[];return Object.values(this.detachedDependents).forEach(d=>{const o=d.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),r.push(...o.removed),a.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}onDetachedDependencyRemoved(e,t,r){const a=[],d=[],o=[],l=[];return t==="implements"&&this.removeImplementation(e),t==="extends"&&this.removeExtension(e),{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,r){const a=[],d=[],o=[],l=[];return t==="implements"&&this.addImplementation(e),t==="extends"&&this.addExtension(e),{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){return this.implements.forEach(e=>{hr.includes(e.type)||e.subscribeDependents([{entity:this,field:"implements"}])}),this.extends.forEach(e=>{hr.includes(e.type)||e.subscribeDependents([{entity:this,field:"extends"}])}),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=I.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t,r;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Le(this,this.project);return(r=this.knownVersions)==null||r.set(this.version,e),e.properties=this.properties,e.methods=this.methods,e.abstractMethods=this.abstractMethods,e.extends=this.extends,e.implements=this.implements,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],r=[],a=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),r.push(...o.added),a.push(...o.removed)}return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],r=[],a=[],d=[];if(this.version===e)return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[h,c]of this.knownVersions||new Map){if(u.set(h,c),c.activeVersion=!1,c.knownVersions)for(const[v,E]of c.knownVersions)u.set(v,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Le(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.properties=o.properties,this.methods=o.methods,this.abstractMethods=o.abstractMethods,this.extends=o.extends,this.implements=o.implements,this.parent=o.parent,{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],r=[],a=[];if(this.initialData.parent){const d=B(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' 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(d=>{const o=B(d),l=this.project.get(o);l&&(this.addExtension(l),l.type!==n.BuiltInBaseEntity&&e.push(l))}),this.initialData.implements.forEach(d=>{const o=B(d),l=this.project.get(o);l&&(this.addImplementation(l),l.type!==n.BuiltInBaseEntity&&e.push(l))}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],r=[],a=[],d=[];this.initialized=!0,this.captureVersion();const{updated:o,added:l,removed:u,affected:h}=this.syncImplementationProperties(e);t.push(...o),r.push(...l),a.push(...u),d.push(...h);const{updated:c,added:v,removed:E,affected:O}=this.addExtendedProperties(e);return t.push(...c),r.push(...v),a.push(...E),d.push(...O),this.addSuggestions(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],r=[],a=[],d=[];if(this.parent.type===n.DataType){const o=this.parent;o.entity=this,t.push(o)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}setParent(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"set-parent"))){var r;return((r=this.parent)==null?void 0:r.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}addExtension(e){return this.extends.includes(e)||this.extends.push(e),this}removeExtension(e){return this.extends=this.extends.filter(t=>t.id!==e.id),this}addImplementation(e){return this.implements.includes(e)||this.implements.push(e),this}removeImplementation(e){return this.implements=this.implements.filter(t=>t.id!==e.id),this}removeProperty(e){return this.properties=this.properties.filter(t=>t.id!==e.id),this}addMethod(e){return this.methods.includes(e)||(this.methods.push(e),this.suggestedMethods=this.suggestedMethods.filter(t=>t.name!==e.name)),this}removeMethod(e){return this.methods=this.methods.filter(t=>t.id!==e.id),this}addProperty(e){return this.properties.includes(e)||(this.properties.push(e),this.suggestedProperties=this.suggestedProperties.filter(t=>t.name!==e.name)),this}addSuggestedProperty(e){return this.suggestedProperties.includes(e)||this.suggestedProperties.push(e),this}addSuggestedMethod(e){return this.suggestedMethods.includes(e)||this.suggestedMethods.push(e),this}removeSuggestedProperty(e){return this.suggestedProperties=this.suggestedProperties.filter(t=>t.id!==e.id),this}removeSuggestedMethod(e){return this.suggestedMethods=this.suggestedMethods.filter(t=>t.id!==e.id),this}addAbstractMethod(e){return this.abstractMethods.includes(e)||this.abstractMethods.push(e),this}removeAbstractMethod(e){return this.abstractMethods=this.abstractMethods.filter(t=>t.id!==e.id),this}initChildren(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.properties=this.initialData.properties.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(e),r}),this.methods=this.initialData.methods.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(e),r}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(e),r}),this.extends=this.initialData.extends.map(t=>V(t,this.project)),this.implements=this.initialData.implements.map(t=>V(t,this.project)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}syncImplementationProperties(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-implementation-properties"))){const t=[],r=[],a=[],d=[],o=this.properties,l=this.implementedPropertiesFromOriginalParents,u=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...o];return l.filter(c=>!u.find(E=>{var O;return((O=E.implements)==null?void 0:O.id)===c.id})).forEach(c=>{if(this.properties.find(w=>{var C;return((C=w.implements)==null?void 0:C.id)===c.id}))return;const E=this.properties.find(w=>w.name===c.name&&!!w.abstract&&!w.implements);if(E){E.implements=c,E.abstract=!1;return}const O=c.clone(e,this,I.UUID.uuid());O.initChildren(e),r.push(O),e==null||e.add(O,b.Added),O.setImplements(c,e),O.metaSync({abstract:!1},e),this.addProperty(O)}),e==null||e.attemptAutoclose("sync-implementation-properties",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addExtendedProperties(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-extended-properties"))){const t=[],r=[],a=[],d=[],o=this.properties,l=this.extendedPropertiesFromOriginalParents,u=l.filter(c=>l.find(E=>{var O;return((O=E.implements)==null?void 0:O.id)===c.id})?!1:!c.abstract),h=new Set(o.map(c=>c.name));return u.forEach(c=>{if(h.has(c.name))return;h.add(c.name);const v=c.clone(e,this,I.UUID.uuid());v.initChildren(e),r.push(v),e==null||e.add(v,b.Added),this.addProperty(v)}),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addSuggestions(){return this.implements.forEach(e=>{$5(this,e).forEach(a=>{const d=a.toJSON();d.id=`_suggestion--parent--${this.id}--${a.id}`;const o=V(d,this.project);o.suggestion=!0,o.setParent(this,null),o.initChildren(null),this.addSuggestedProperty(o)}),j5(this,e).forEach(a=>{const d=`_suggestion--parent--${this.id}--${a.id}`,o=a.implementAsFunctionDeclaration(null,this,d),l=V(o,this.project);if(l.suggestion=!0,l.setParent(this,null),l.initChildren(null),l.inputs.forEach(u=>{u.suggestion=!0}),l.returnStatements.length){const u=l.returnStatements[0];u.suggestion=!0,u.outputs.forEach(h=>{h.suggestion=!0})}this.addSuggestedMethod(l)})}),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-meta"))){const r=dt(this,e);return e.deleted===!0&&!this.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&this.deleted?t==null||t.add(this,b.Added):r&&(t==null||t.add(this,b.Updated)),super.metaSync(e),this.name=e.name||this.name,this.x=e.x||this.x,this.y=e.y||this.y,this.static=e.static||this.static,this.abstract=e.abstract||this.abstract,t==null||t.attemptAutoclose("sync-meta",this.id),this}async APILoad(e=L,...t){return await Le.repository.APILoad(this.id,...t),this}async APICreate(e=L,...t){return await Le.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=L,...t){return await Le.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=L,...t){return await Le.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=L,...t){return await Le.repository.APIClone(this.id,...t),this}async APILoadVersion(e=L,t,...r){return await Le.repository.APILoadVersion(this.id,t,...r)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-entity"))){const r=[],a=[],d=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(a.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:h,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);r.push(...u),a.push(...h),d.push(...c)}),this.properties.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),this.methods.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),this.abstractMethods.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),this.suggestedProperties.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),this.suggestedMethods.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),!e){if(this.parent.type===n.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===n.DataType){const l=this.parent.setEntity(null);r.push(l)}}return t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(r),removed:p(a),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"restore-entity"))){const t=[],r=[],a=[],d=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.properties.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.methods.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.abstractMethods.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.suggestedProperties.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.suggestedMethods.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(r),removed:p(a),affected:p(d),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.extends.flatMap(r=>r.toFlat(e)),...this.implements.flatMap(r=>r.toFlat(e)),...this.properties.flatMap(r=>r.toFlat(e)),...this.methods.flatMap(r=>r.toFlat(e)),...this.abstractMethods.flatMap(r=>r.toFlat(e)),...this.parent.toFlat(e)])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.extends.flatMap(r=>r.toFlatIds(e)),...this.implements.flatMap(r=>r.toFlatIds(e)),...this.properties.flatMap(r=>r.toFlatIds(e)),...this.methods.flatMap(r=>r.toFlatIds(e)),...this.abstractMethods.flatMap(r=>r.toFlatIds(e)),...this.parent.toFlatIds(e)])}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.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,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),implements:this.implements.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=Z){var r,a,d,o,l;let t;return(r=e.seenEntityMaps)!=null&&r.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ct(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:I.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(u=>u.toJSONClone({...e,newId:null})),methods:this.methods.map(u=>u.toJSONClone({...e,newId:null})),abstractMethods:this.abstractMethods.map(u=>u.toJSONClone({...e,newId:null})),implements:this.implements.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),extends:this.extends.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+I.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toReference(e)),methods:this.methods.map(a=>a.toReference(e)),abstractMethods:this.abstractMethods.map(a=>a.toReference(e)),implements:this.implements.map(a=>a.toReference(e)),extends:this.extends.map(a=>a.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(r=>r.toFlatJSON(e)),...this.methods.flatMap(r=>r.toFlatJSON(e)),...this.abstractMethods.flatMap(r=>r.toFlatJSON(e)),...this.implements.flatMap(r=>r.toFlatJSON(e)),...this.extends.flatMap(r=>r.toFlatJSON(e)),...this.parent.toFlatJSON(e)])}toGenerationTarget(){const e=this.parent.type===n.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(t=>t.id),implements:this.implements.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(r=>r.toFlatGenerationTarget(e)),...this.methods.flatMap(r=>r.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(r=>r.toFlatGenerationTarget(e)),...this.implements.filter(r=>r.type===n.DefinitionEntity).flatMap(r=>r.toFlatGenerationTarget(e)),...this.implements.filter(r=>r.type===n.DefinitionEntity).flatMap(r=>r.toFlatGenerationTarget(e)),...this.parent.toFlatGenerationTarget(e)])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){return this.errors=U5(this),{success:!0,error:null,data:null}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"clone-entity")),t=null,r=null,a=!0){var w,C,U;let d=ft(t,this);const o=this.toJSON(),l=r||I.UUID.uuid();o.properties=[],o.methods=[],o.abstractMethods=[];const u=l.split("-id"),h=u[u.length-1||0]||l;o.id=l,o.version=I.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=lt(o,d);t&&c.setParent(t,null),a&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const v=(w=this.properties)==null?void 0:w.map(G=>G.clone(e,c,I.UUID.uuid(),a));c.properties=v;const E=(C=this.methods)==null?void 0:C.map((G,_)=>G.clone(e,c,h+"-method-"+_+"-id",a));c.methods=E;const O=(U=this.abstractMethods)==null?void 0:U.map((G,_)=>G.clone(e,c,h+"-abstract-method-"+_+"-id",a));return c.abstractMethods=O,e==null||e.attemptAutoclose("clone-entity",this.id),c}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"implement-definition-entity")),r){const a=xd(this,e,t,r);return t==null||t.attemptAutoclose("implement-definition-entity",this.id),a}getAllInteractiveMethods(){const e=this.implements.filter(r=>r.type===n.DefinitionEntity||r.type===n.BuiltInBaseEntity&&r.interactive);return p([...this.methods,...this.extends.flatMap(r=>r.getAllInteractiveMethods()),...e.flatMap(r=>r.getAllInteractiveMethods())])}inferFromInputs(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const r=[],a=[],d=[],o=[];if(this.parent.type!==n.DataType||!this.parent.inferred)return t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const l=[];e.forEach(c=>{l.find(E=>F(E,this.project)===F(c,this.project))||l.push(c)});const u=this.properties.filter(c=>!c.dataType);l.forEach(c=>{var U,G;const v=u.find(_=>F(_,this.project)===F(c,this.project));if(!v)return;const O=Pn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),w=kr(O,t),C=w==null?void 0:w.clone(t,v,I.UUID.uuid(),!0);if(C){const _=(U=v.dataType)==null?void 0:U.merge(C,t);v.dataType&&(_==null?void 0:_.self.id)!==v.dataType.id&&v.dataType.remove({ignoreUpstream:!1},t),C.id!==((G=_==null?void 0:_.self)==null?void 0:G.id)&&C.remove({ignoreUpstream:!1},t),_!=null&&_.self&&(_.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(_.self,b.Added),v.setDataType(_.self),t==null||t.add(v,b.Updated))}c.setDeclaration(v),t==null||t.add(c,b.Updated)});const h=[];return l.forEach(c=>{if(!c.declaration){h.push(c);return}}),h.length===0?(t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(h.forEach(c=>{var _,$,k,J;const v=this.properties.find(ee=>F(ee,this.project)===F(c,this.project));if(v){if(c.setDeclaration(v),!v.getDataType(t)){const pe=Pn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),Te=kr(pe),K=Te==null?void 0:Te.clone(t,v,I.UUID.uuid(),!0);if(K){const se=(_=v.dataType)==null?void 0:_.merge(K,t);v.dataType&&(se==null?void 0:se.self.id)!==v.dataType.id&&v.dataType.remove({ignoreUpstream:!1},t),K.id!==(($=se==null?void 0:se.self)==null?void 0:$.id)&&K.remove({ignoreUpstream:!1},t),se!=null&&se.self&&(se.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(se.self,b.Added),v.setDataType(se.self),t==null||t.add(v,b.Updated))}}return}const E={id:I.UUID.uuid(),type:n.Property,version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:F(c,this.project),description:c.description,defaultValue:null,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,constant:!0,index:c.index,implements:null,dataType:null,parent:this.toReference()},O=V(E,this.project);O.setParent(this,t),O.initChildren(t),t==null||t.add(O,b.Added);const C=Pn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),U=kr(C),G=U==null?void 0:U.clone(t,O,I.UUID.uuid(),!0);if(G){const ee=(k=O.dataType)==null?void 0:k.merge(G,t);O.dataType&&(ee==null?void 0:ee.self.id)!==O.dataType.id&&O.dataType.remove({ignoreUpstream:!1},t),G.id!==((J=ee==null?void 0:ee.self)==null?void 0:J.id)&&G.remove({ignoreUpstream:!1},t),ee!=null&&ee.self&&(ee.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(ee.self,b.Added),O.setDataType(ee.self),t==null||t.add(O,b.Updated))}return this.addProperty(O),c.setDeclaration(O),t==null||t.add(c,b.Updated),O}),t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:p(r),updated:p(a),removed:p(d),affected:p(o),self:this})}};f(Le,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...r)=>null}),f(Le,"type",n.DefinitionEntity),f(Le,"USER_MANAGED_PARENT_TYPES",[n.Project,n.DataType]),f(Le,"PARENT_TYPES",[...Le.USER_MANAGED_PARENT_TYPES]),f(Le,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),f(Le,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Le,"BASE_PROPERTIES",[...Le.MUTABLE_BASE_PROPERTIES,...Le.INMUTABLE_BASE_PROPERTIES]),f(Le,"MUTABLE_META_PROPERTIES",[...Le.MUTABLE_BASE_PROPERTIES,"x","y"]),f(Le,"INMUTABLE_META_PROPERTIES",[...Le.INMUTABLE_BASE_PROPERTIES]),f(Le,"META_PROPERTIES",[...Le.MUTABLE_META_PROPERTIES,...Le.INMUTABLE_META_PROPERTIES]),f(Le,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),f(Le,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(Le,"UPSTREAM_PROPERTIES",[...Le.MUTABLE_UPSTREAM_PROPERTIES,...Le.INMUTABLE_UPSTREAM_PROPERTIES]),f(Le,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),f(Le,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Le,"DOWNSTREAM_PROPERTIES",[...Le.MUTABLE_DOWNSTREAM_PROPERTIES,...Le.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Le,"PROPERTIES",[...Le.META_PROPERTIES,...Le.UPSTREAM_PROPERTIES,...Le.DOWNSTREAM_PROPERTIES]);let Yi=Le;function uJ(i){const s=y6(),e=i.toJSON();s.safeParse(e).success;const r=[];return ze(i.errors,r)}const Ls=class Ls extends rt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"version");f(this,"name");f(this,"description",null);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",!1);f(this,"static");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"interactive",!1);f(this,"errors",[]);f(this,"project");this.initialData=this.initialData||e,this.project=this.project||t,this.id=this.id||e.id,this.version=this.version||e.version,this.name=this.name||e.name,this.static=this.static||e.static,this.interactive=this.interactive||e.interactive,this.abstract=e.abstract,this.properties=this.initialData.properties.map(r=>{const a=V(r,this.project);return a.setParent(this,null),a.initChildren(null),a}),this.methods=this.initialData.methods.map(r=>{const a=V(r,this.project);return a.setParent(this,null),a.initChildren(null),a}),this.abstractMethods=this.initialData.abstractMethods.map(r=>{const a=V(r,this.project);return a.setParent(this,null),a.initChildren(null),a}),this.extends=this.initialData.extends.map(r=>V(r,this.project))}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract);return[...e,...r]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...r]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const r=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(d=>!!d.abstract&&!r.find(o=>o.name===d.name));return[...r,...a,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=L,...t){return await Ls.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(r=>r.toFlat(e)),...this.methods.flatMap(r=>r.toFlat(e)),...this.abstractMethods.flatMap(r=>r.toFlat(e)),...this.extends.flatMap(r=>r.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(r=>r.toFlatIds(e)),...this.methods.flatMap(r=>r.toFlatIds(e)),...this.abstractMethods.flatMap(r=>r.toFlatIds(e)),...this.extends.flatMap(r=>r.toFlatIds(e))])}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.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(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=Z){return{id:this.id+"--"+I.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=Z){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(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(r=>r.toFlatJSON(e)),...this.methods.flatMap(r=>r.toFlatJSON(e)),...this.abstractMethods.flatMap(r=>r.toFlatJSON(e))])}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(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(r=>r.toFlatGenerationTarget(e)),...this.methods.flatMap(r=>r.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(r=>r.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=uJ(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}implement(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),null,!0,"implement-built-in-base-entity")),r){const a=xd(this,e,t,r);return t==null||t.attemptAutoclose("implement-built-in-base-entity",this.id),a}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(r=>r.type===n.BuiltInBaseEntity&&r.interactive||r.type===n.PrimitiveEntity).forEach(r=>{r instanceof Ls&&e.push(...r.getAllInteractiveMethods())})),p(e)}};f(Ls,"repository",{APILoad:async(e,...t)=>null});let zr=Ls;function pJ(i){const s=a6(),e=i.toJSON();s.safeParse(e).success;const r=[];return ze(i.errors,r)}const rl=class rl extends rt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"type",n.PrimitiveEntity);f(this,"static");f(this,"abstract");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.static=e.static,this.abstract=e.abstract,this.properties=this.initialData.properties.map(r=>{const a=V(r,this.project);return a.setParent(this,null),a.initChildren(null),a}),this.methods=this.initialData.methods.map(r=>{const a=V(r,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(r=>{const a=V(r,this.project);return a.parent=this,a})}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract);return[...e,...r]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...r]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const r=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(d=>!!d.abstract&&!r.find(o=>o.name===d.name));return[...r,...a,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=L,...t){return await rl.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(r=>r.toFlat(e)),...this.methods.flatMap(r=>r.toFlat(e)),...this.abstractMethods.flatMap(r=>r.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(r=>r.toFlatIds(e)),...this.methods.flatMap(r=>r.toFlatIds(e)),...this.abstractMethods.flatMap(r=>r.toFlatIds(e))])}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.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(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=Z){return{id:this.id+"--"+I.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=Z){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(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(r=>r.toFlatJSON(e)),...this.methods.flatMap(r=>r.toFlatJSON(e)),...this.abstractMethods.flatMap(r=>r.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(r=>r.toFlatGenerationTarget(e)),...this.methods.flatMap(r=>r.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(r=>r.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=pJ(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const e=[];return e.push(...this.methods),this.extends.filter(r=>r.type===n.BuiltInBaseEntity&&r.interactive||r.type===n.PrimitiveEntity).forEach(r=>{r instanceof zr&&e.push(...r.getAllInteractiveMethods())}),p(e)}};f(rl,"repository",{APILoad:async(e,...t)=>null});let ar=rl;function lt(i,s){if(!i)throw new Error("Entity is null");const e=s.get(i.id);switch(i.type){case n.LiteralValue:return e||new _n(i,s);case n.DefinitionEntity:return e||new Yi(i,s);case n.PrimitiveEntity:return e||new ar(i,s);case n.FunctionDeclaration:return e||new Mi(i,s);case n.GlobalEvent:return e||new Vn(i,s);case n.DataType:return e||new wn(i,s);case n.Property:return e||new Bi(i,s);case n.FunctionCall:return e||new qi(i,s);case n.Condition:return e||new Li(i,s);case n.Operation:return e||new gi(i,s);case n.VariableDeclaration:return e||new $i(i,s);case n.VariableInstance:return e||new Ui(i,s);case n.OutputMap:return e||new qr(i,s);case n.ReturnDeclaration:return e||new rr(i,s);case n.ArgumentDeclaration:return e||new Fi(i,s);case n.InputMap:return e||new Zr(i,s);case n.Project:return e||new I(i);case n.InstalledProject:return e||new Gi(i,s);case n.ActionDescriptor:return e||new qe(i,s);case n.ReturnStatement:return e||new _i(i,s);case n.Loop:return e||new Ni(i,s);case n.Search:return e||new ji(i,s);case n.ValueDescriptor:return e||new xi(i,s);case n.BuiltInBaseEntity:return e||new zr(i,s);case n.InternalCall:return e||new Bn(i,s);case n.ContinueStatement:return e||new jt(i,s);case n.BreakStatement:return e||new Cn(i,s);case n.GenericReference:return s.get(i.entityId);default:throw new Error("Invalid entity type: "+i.type)}}function V(i,s){if(!i)throw new Error("Entity is null");const e=lt(i,s);return e.subscribe(),e}function cJ(i,s){if(!i)throw new Error("Entity is null");switch(i.type){case n.LiteralValue:return _n.fromGenerationTarget(i,s);case n.DefinitionEntity:return Yi.fromGenerationTarget(i,s);case n.FunctionDeclaration:return Mi.fromGenerationTarget(i,s);case n.GlobalEvent:return Vn.fromGenerationTarget(i,s);case n.DataType:return wn.fromGenerationTarget(i,s);case n.Property:return Bi.fromGenerationTarget(i,s);case n.FunctionCall:return qi.fromGenerationTarget(i,s);case n.Condition:return Li.fromGenerationTarget(i,s);case n.Operation:return gi.fromGenerationTarget(i,s);case n.VariableDeclaration:return $i.fromGenerationTarget(i,s);case n.VariableInstance:return Ui.fromGenerationTarget(i,s);case n.OutputMap:return qr.fromGenerationTarget(i,s);case n.ReturnDeclaration:return rr.fromGenerationTarget(i,s);case n.ArgumentDeclaration:return Fi.fromGenerationTarget(i,s);case n.InputMap:return Zr.fromGenerationTarget(i,s);case n.InstalledProject:return Gi.fromGenerationTarget(i,s);case n.ReturnStatement:return _i.fromGenerationTarget(i,s);case n.Loop:return Ni.fromGenerationTarget(i,s);case n.Search:return ji.fromGenerationTarget(i,s);case n.ActionDescriptor:return qe.fromGenerationTarget(i,s);case n.ValueDescriptor:return xi.fromGenerationTarget(i,s);case n.InternalCall:return Bn.fromGenerationTarget(i,s);case n.ContinueStatement:return jt.fromGenerationTarget(i,s);case n.BreakStatement:return Cn.fromGenerationTarget(i,s);default:throw new Error("Invalid entity type: "+i.type)}}const Z={seenEntityMaps:new Map,seenEntities:new Set,timestamp:T().toISOString()};class PP{constructor(){f(this,"initialData")}}const L={cascade:!1},wP={APILoad:async(i,...s)=>null},fJ={APICreate:async(i,...s)=>i,APIUpdate:async(i,...s)=>i,APIDelete:async(i,...s)=>i,APIClone:async(i,...s)=>{},APILoadVersion:async(i,s,...e)=>null,...wP};class yJ{}class hJ extends PP{}class mJ{}class vJ{}class TJ{}class Hc{}class EJ extends Hc{}class IJ extends Hc{}class AJ{}class yi{static initReadsValue(s){if(s.initialData.readsValue&&s.initialData.readsValue.type!==n.GenericReference)s.readsValue=V(s.initialData.readsValue,s.project);else if(s.initialData.readsValue&&s.initialData.readsValue.type===n.GenericReference){const e=nr(s.initialData.readsValue,s.project);e&&(s.readsValue=e)}if(s.readsValue){if(Qe.includes(s.readsValue.type)){let e=s.parent;mt.includes(e.type)||(e=e.parent);const t=s.type===n.InputMap&&s.parent.type===n.Loop;t&&(e=s.parent.parent),s.readsValue.setParent(e,null),s.readsValue.initChildren(null),!t&&e.detachedChildren.includes(s)?e.replaceDetachedChild(s,s.readsValue):t||e.subscribeDetachedChild(s.readsValue)}s.readsValue.addValueReader(s)}return s.readsValue}static hydrateReadsValue(s){if(s.initialData.readsValue&&s.initialData.readsValue.type!==n.GenericReference)s.readsValue=V(s.initialData.readsValue,s.project);else if(s.initialData.readsValue&&s.initialData.readsValue.type===n.GenericReference){const e=nr(s.initialData.readsValue,s.project);e&&(s.readsValue=e)}if(s.readsValue){if(Qe.includes(s.readsValue.type)){let e=s.parent;mt.includes(e.type)||(e=e.parent);const t=s.type===n.InputMap&&s.parent.type===n.Loop;t&&(e=s.parent.parent),s.readsValue.setParent(e,null),!t&&e.detachedChildren.includes(s)?e.replaceDetachedChild(s,s.readsValue):t||e.subscribeDetachedChild(s.readsValue)}s.readsValue.addValueReader(s)}return s.readsValue}}class gs{static initWritesValues(s,e){const t=s.initialData.writesValues.reduce((a,d)=>{if(d.type===n.GenericReference||s.writesValues.some(l=>l.id===d.id))return a;const o=V(d,s.project);return o.setValueWriter(s),Qe.includes(o.type)&&(o.setParent(e,null),o.initChildren(null)),[...a,o]},[]),r=[...s.writesValues];return s.writesValues=p([...r,...t]),s.writesValues}}class bJ{}const oe=class oe extends rt{constructor(e){super(e);f(this,"initialData");f(this,"id");f(this,"type",n.Project);f(this,"name",null);f(this,"description",null);f(this,"x");f(this,"y");f(this,"entities",[]);f(this,"projects",[]);f(this,"functions",[]);f(this,"events",[]);f(this,"variableDeclarations",[]);f(this,"variableInstances",[]);f(this,"conditions",[]);f(this,"operations",[]);f(this,"functionCalls",[]);f(this,"loops",[]);f(this,"searches",[]);f(this,"primitives",[]);f(this,"builtInBaseEntities",[]);f(this,"operationDeclarations",[]);f(this,"globalEventActionDescriptors",[]);f(this,"loopDeclarations",[]);f(this,"loopDeclarationsBodies",[]);f(this,"conditionDeclarations",[]);f(this,"valueDescriptors",[]);f(this,"dataTypes",[]);f(this,"project");f(this,"instances",{});f(this,"builtInInstances",{});f(this,"deletedInstances",{});f(this,"errors",[]);f(this,"references",[]);f(this,"history",[]);f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"onCloseChangeSetCallback",null);this.initialData=e,this.id=e.id,this.name=e.name,this.description=e.description,this.x=0,this.y=0,this.instances[this.id]=this;try{(!oe.UUID||oe.UUID.isBackup)&&(oe.UUID=Uo==null?void 0:Uo()),oe.UUID||(oe.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:t=>t})}catch(t){console.error("Error initializing UUID module",t),oe.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:r=>r}}}static injectUUIDModule(e){oe.UUID=e}static validateGenerationTarget(e,t){let r=JSON.parse(JSON.stringify(e));const a=[];return a.push(...ot(r)),{errors:a,modifiedData:r}}async closePendingCallbacks(){for(let e=0;e<this.history.length;e++){const t=this.history[e];t.dirty&&await this.closeChangeSet(t)}}async onCloseChangeSet(e){this.onCloseChangeSetCallback=e,await this.closePendingCallbacks()}async closeChangeSet(e){if(this.onCloseChangeSetCallback){const t=await this.onCloseChangeSetCallback(e);return t.success&&(e.dirty=!1),t}return{success:!1}}addChangeSet(e){if(!this.history.length)return this.history.push(e),e;const t=this.history.find(a=>a.id===(e==null?void 0:e.id));if(t)return t;const r=this.history.findIndex(a=>T(a.timestamp).isBefore(T(e==null?void 0:e.timestamp)));return r===-1?this.history.push(e):this.history.splice(r,0,e),e}discardChangeSet(e){const t=this.history.findIndex(r=>r.id===(e==null?void 0:e.id));return t!==-1&&this.history.splice(t,1),this}undo(){const e=[],t=[],r=[],a=[];return{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}redo(){const e=[],t=[],r=[],a=[];return{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}async inject(...e){return await Promise.all(e.map(t=>new Promise(async r=>{await t.init(this),r(null)}))),this}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],r=[],a=[];return Object.values(this.detachedDependents).forEach(d=>{const o=d.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),r.push(...o.removed),a.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}onDetachedDependencyRemoved(e,t,r){const a=[],d=[],o=[],l=[];return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,r){const a=[],d=[],o=[],l=[];return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){return this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=oe.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t,r;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new oe(this);return(r=this.knownVersions)==null||r.set(this.version,e),e.entities=this.entities,e.projects=this.projects,e.functions=this.functions,e.events=this.events,e.variableDeclarations=this.variableDeclarations,e.variableInstances=this.variableInstances,e.conditions=this.conditions,e.operations=this.operations,e.functionCalls=this.functionCalls,e.loops=this.loops,e.searches=this.searches,this}recursiveCaptureUpstreamVersions(e){const t=[],r=[],a=[],d=[];return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],r=[],a=[],d=[];if(this.version===e)return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[h,c]of this.knownVersions||new Map){if(u.set(h,c),c.activeVersion=!1,c.knownVersions)for(const[v,E]of c.knownVersions)u.set(v,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new oe(u)}return this.metaSync(o.toShallowJSON(),null),this.entities=o.entities,this.projects=o.projects,this.functions=o.functions,this.events=o.events,this.variableDeclarations=o.variableDeclarations,this.variableInstances=o.variableInstances,this.conditions=o.conditions,this.operations=o.operations,this.functionCalls=o.functionCalls,this.loops=o.loops,this.searches=o.searches,{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],r=[],a=[];return{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}afterAllChildrenInitialized(e=null){const t=[],r=[],a=[],d=[];return this.initialized=!0,this.captureVersion(),this.validate(),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addSelfToProject(e){const t=[],r=[],a=[],d=[];return this.subscribe(),this.subscribeToDependencies(),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(e){return this.operationDeclarations.includes(e)}isGlobalEventActionDescriptor(e){return this.globalEventActionDescriptors.includes(e)}isLoopDeclaration(e){return this.loopDeclarations.includes(e)}isConditionDeclaration(e){return this.conditionDeclarations.includes(e)}initChildren(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.projects=this.initialData.projects.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.variableDeclarations=this.initialData.variableDeclarations.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.variableInstances=this.initialData.variableInstances.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.conditions=this.initialData.conditions.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.operations=this.initialData.operations.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.functions=this.initialData.functions.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.events=this.initialData.events.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.functionCalls=this.initialData.functionCalls.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.loops=this.initialData.loops.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.searches=this.initialData.searches.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[e.id]=e),this}subscribeDeletedInstance(e){return(!this.deletedInstances[e.id]||this.deletedInstances[e.id]!==e)&&(this.deletedInstances[e.id]=e),this}subscribeBuiltInInstance(e){return(!this.builtInInstances[e.id]||this.builtInInstances[e.id]!==e)&&(this.builtInInstances[e.id]=e),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(e){return delete this.instances[e.id],this}unsubscribeDeletedInstance(e){return delete this.deletedInstances[e.id],this}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getDeleted(e){return this.deletedInstances[e]||null}getManaged(e){return this.getBuiltIn(e)?null:this.instances[e]||null}getBuiltIn(e){return this.builtInInstances[e]||null}findSubscribedInstanceFromReference(e){return this.instances[e.entityId]||null}findSubscribedBuiltInInstanceFromReference(e){return this.builtInInstances[e.entityId]||null}metaSync(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-meta"))){const r=dt(this,e);return e.deleted===!0&&!this.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&this.deleted?t==null||t.add(this,b.Added):r&&(t==null||t.add(this,b.Updated)),super.metaSync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,t==null||t.attemptAutoclose("sync-meta",this.id),this}async APILoad(e=L,...t){return await oe.repository.APILoad(this.id,...t),this}async APICreate(e=L,...t){return await oe.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=L,...t){return await oe.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=L,...t){return await oe.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=L,...t){return await oe.repository.APIClone(this.id,...t),this}async APILoadVersion(e=L,t,...r){return await oe.repository.APILoadVersion(this.id,t,...r)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"restore-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlatIds(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlatIds(e)),...this.operationDeclarations.flatMap(t=>t.toFlatIds(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlatIds(e)),...this.loopDeclarations.flatMap(t=>t.toFlatIds(e)),...this.conditionDeclarations.flatMap(t=>t.toFlatIds(e)),...this.valueDescriptors.flatMap(t=>t.toFlatIds(e)),...this.dataTypes.flatMap(t=>t.toFlatIds(e))]}getAllBuiltIn(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlat(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlat(e)),...this.operationDeclarations.flatMap(t=>t.toFlat(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlat(e)),...this.loopDeclarations.flatMap(t=>t.toFlat(e)),...this.conditionDeclarations.flatMap(t=>t.toFlat(e)),...this.valueDescriptors.flatMap(t=>t.toFlat(e)),...this.dataTypes.flatMap(t=>t.toFlat(e))]}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.entities.flatMap(r=>r.toFlat(e)),...this.functions.flatMap(r=>r.toFlat(e)),...this.events.flatMap(r=>r.toFlat(e)),...this.projects.flatMap(r=>r.toFlat(e)),...this.variableDeclarations.flatMap(r=>r.toFlat(e)),...this.variableInstances.flatMap(r=>r.toFlat(e)),...this.conditions.flatMap(r=>r.toFlat(e)),...this.operations.flatMap(r=>r.toFlat(e)),...this.functionCalls.flatMap(r=>r.toFlat(e)),...this.loops.flatMap(r=>r.toFlat(e)),...this.searches.flatMap(r=>r.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.entities.flatMap(r=>r.toFlatIds(e)),...this.functions.flatMap(r=>r.toFlatIds(e)),...this.events.flatMap(r=>r.toFlatIds(e)),...this.projects.flatMap(r=>r.toFlatIds(e)),...this.variableDeclarations.flatMap(r=>r.toFlatIds(e)),...this.variableInstances.flatMap(r=>r.toFlatIds(e)),...this.conditions.flatMap(r=>r.toFlatIds(e)),...this.operations.flatMap(r=>r.toFlatIds(e)),...this.functionCalls.flatMap(r=>r.toFlatIds(e)),...this.loops.flatMap(r=>r.toFlatIds(e)),...this.searches.flatMap(r=>r.toFlatIds(e))])}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.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(t=>t.toJSON(e)),variableDeclarations:this.variableDeclarations.map(t=>t.toJSON(e)),variableInstances:this.variableInstances.map(t=>t.toJSON(e)),conditions:this.conditions.map(t=>t.toJSON(e)),operations:this.operations.map(t=>t.toJSON(e)),loops:this.loops.map(t=>t.toJSON(e)),searches:this.searches.map(t=>t.toJSON(e)),functions:this.functions.map(t=>t.toJSON(e)),events:this.events.map(t=>t.toJSON(e)),projects:this.projects.map(t=>t.toJSON(e)),functionCalls:this.functionCalls.map(t=>t.toJSON(e))})}toJSONClone(e={uuidStrategy:"uuid"}){const t=new Map,r=new Set,a=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(d=>{if(a.includes(d)){t.set(d,d);return}t.set(d,oe.UUID.uuid())}),r.add(this.id),{id:t.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(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),projects:this.projects.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),variableDeclarations:this.variableDeclarations.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),variableInstances:this.variableInstances.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),conditions:this.conditions.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),operations:this.operations.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),functions:this.functions.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),events:this.events.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),functionCalls:this.functionCalls.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),loops:this.loops.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),searches:this.searches.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null}))}}toReference(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+oe.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,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.toReference(e)),functions:this.functions.map(a=>a.toReference(e)),events:this.events.map(a=>a.toReference(e)),projects:this.projects.map(a=>a.toReference(e)),variableDeclarations:this.variableDeclarations.map(a=>a.toReference(e)),variableInstances:this.variableInstances.map(a=>a.toReference(e)),conditions:this.conditions.map(a=>a.toReference(e)),operations:this.operations.map(a=>a.toReference(e)),functionCalls:this.functionCalls.map(a=>a.toReference(e)),loops:this.loops.map(a=>a.toReference(e)),searches:this.searches.map(a=>a.toReference(e))}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(r=>r.toFlatJSON(e)),...this.functions.flatMap(r=>r.toFlatJSON(e)),...this.events.flatMap(r=>r.toFlatJSON(e)),...this.projects.flatMap(r=>r.toFlatJSON(e)),...this.variableDeclarations.flatMap(r=>r.toFlatJSON(e)),...this.variableInstances.flatMap(r=>r.toFlatJSON(e)),...this.conditions.flatMap(r=>r.toFlatJSON(e)),...this.operations.flatMap(r=>r.toFlatJSON(e)),...this.functionCalls.flatMap(r=>r.toFlatJSON(e)),...this.loops.flatMap(r=>r.toFlatJSON(e)),...this.searches.flatMap(r=>r.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(r=>r.toFlatGenerationTarget(e)),...this.functions.flatMap(r=>r.toFlatGenerationTarget(e)),...this.events.flatMap(r=>r.toFlatGenerationTarget(e)),...this.projects.flatMap(r=>r.toFlatGenerationTarget(e)),...this.variableDeclarations.flatMap(r=>r.toFlatGenerationTarget(e)),...this.variableInstances.flatMap(r=>r.toFlatGenerationTarget(e)),...this.conditions.flatMap(r=>r.toFlatGenerationTarget(e)),...this.operations.flatMap(r=>r.toFlatGenerationTarget(e)),...this.functionCalls.flatMap(r=>r.toFlatGenerationTarget(e)),...this.loops.flatMap(r=>r.toFlatGenerationTarget(e)),...this.searches.flatMap(r=>r.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.entities.forEach(e=>e.clearErrors()),this.projects.forEach(e=>e.clearErrors()),this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this.variableDeclarations.forEach(e=>e.clearErrors()),this.variableInstances.forEach(e=>e.clearErrors()),this.conditions.forEach(e=>e.clearErrors()),this.operations.forEach(e=>e.clearErrors()),this.functionCalls.forEach(e=>e.clearErrors()),this.loops.forEach(e=>e.clearErrors()),this.searches.forEach(e=>e.clearErrors()),this}validate(){const e=B5(),t=this.toJSON();return e.safeParse(t),this.validateChildren(),{success:!0,error:null,data:t}}validateChildren(){this.entities.forEach(e=>e.validate()),this.projects.forEach(e=>e.validate()),this.functions.forEach(e=>e.validate()),this.events.forEach(e=>e.validate()),this.variableDeclarations.forEach(e=>e.validate()),this.variableInstances.forEach(e=>e.validate()),this.conditions.forEach(e=>e.validate()),this.operations.forEach(e=>e.validate()),this.functionCalls.forEach(e=>e.validate()),this.loops.forEach(e=>e.validate()),this.searches.forEach(e=>e.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(t=>t.getErrors()),...this.projects.flatMap(t=>t.getErrors()),...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors()),...this.variableDeclarations.flatMap(t=>t.getErrors()),...this.variableInstances.flatMap(t=>t.getErrors()),...this.conditions.flatMap(t=>t.getErrors()),...this.operations.flatMap(t=>t.getErrors()),...this.functionCalls.flatMap(t=>t.getErrors()),...this.loops.flatMap(t=>t.getErrors()),...this.searches.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return this}getDefinitionEntity(e){return this.entities.find(t=>t.id===e)||null}addDefinitionEntityFromTransfer(e){const t=V(e,this);return this.addDefinitionEntity(t),t}addDefinitionEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=V(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=V(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=V(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=V(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=V(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=V(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=V(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=V(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=V(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=V(e,this);return this.addSearch(t),this}addSearch(e){return this.searches.includes(e)||this.searches.push(e),this}removeDefinitionEntity(e){const t=this.entities.findIndex(r=>r.id===e.id);if(t>-1){const r=this.entities[t];return this.entities.splice(t,1),r}return null}removeFunctionDeclaration(e){const t=this.functions.findIndex(r=>r.id===e.id);if(t>-1){const r=this.functions[t];return this.functions.splice(t,1),r}return null}removeExternalProject(e){const t=this.projects.findIndex(r=>r.id===e.id);if(t>-1){const r=this.projects[t];return this.projects.splice(t,1),r}return null}removeGlobalEvent(e){const t=this.events.findIndex(r=>r.id===e.id);if(t>-1){const r=this.events[t];return this.events.splice(t,1),r}return null}removeTopLevelVariableDeclaration(e){if(e.type!==n.VariableDeclaration)return null;const t=this.variableDeclarations.findIndex(r=>r.id===e.id);if(t>-1){const r=this.variableDeclarations[t];return this.variableDeclarations.splice(t,1),r}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(t=>t.methods)]}getFunctionDeclaration(e){return this.functions.find(t=>t.id===e)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[]),...this.functionCalls.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[]),...this.operations.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[]),...this.loops.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[]),...this.searches.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[]),...this.functionCalls.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[]),...this.conditions.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[]),...this.loops.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[]),...this.searches.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[]),...this.conditions.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[]),...this.operations.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[]),...this.loops.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[]),...this.searches.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.functionCalls.reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.conditions.reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.operations.reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.loops.reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.searches.reduce((t,r)=>{const a=We(r);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.functionCalls.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.conditions.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.operations.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.loops.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.searches.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[])]}getVariableDeclarations(){return p([...this.variableDeclarations,...this.getEntryPoints().reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.functionCalls.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.conditions.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.operations.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.loops.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.searches.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(r=>{if(!r.declaration){const a=r.initialData,d=a.declaration.entityId||a.declaration.id,o=t.find(l=>l.id===d);o&&r.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===Y.PERSISTED_ENTITY)||null}};f(oe,"sessionAuthor","1"),f(oe,"UUID",{isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),f(oe,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...r)=>null}),f(oe,"type",n.Project),f(oe,"USER_MANAGED_PARENT_TYPES",[]),f(oe,"PARENT_TYPES",[...oe.USER_MANAGED_PARENT_TYPES]),f(oe,"MUTABLE_BASE_PROPERTIES",["name","description"]),f(oe,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(oe,"BASE_PROPERTIES",[...oe.MUTABLE_BASE_PROPERTIES,...oe.INMUTABLE_BASE_PROPERTIES]),f(oe,"MUTABLE_META_PROPERTIES",[...oe.MUTABLE_BASE_PROPERTIES,"x","y"]),f(oe,"INMUTABLE_META_PROPERTIES",[...oe.INMUTABLE_BASE_PROPERTIES]),f(oe,"META_PROPERTIES",[...oe.MUTABLE_META_PROPERTIES,...oe.INMUTABLE_META_PROPERTIES]),f(oe,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(oe,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),f(oe,"UPSTREAM_PROPERTIES",[...oe.MUTABLE_UPSTREAM_PROPERTIES,...oe.INMUTABLE_UPSTREAM_PROPERTIES]),f(oe,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),f(oe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(oe,"DOWNSTREAM_PROPERTIES",[...oe.MUTABLE_DOWNSTREAM_PROPERTIES,...oe.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(oe,"PROPERTIES",[...oe.META_PROPERTIES,...oe.UPSTREAM_PROPERTIES,...oe.DOWNSTREAM_PROPERTIES]);let I=oe;var VP=(i=>(i.PersistChangeSet="persist-change-set",i.CreateSingle="create-single",i.CreateBulk="create-bulk",i.CreateSingleNested="create-single-nested",i.CreateBulkNested="create-bulk-nested",i.Update="update",i.Clone="clone",i.Delete="delete",i.Load="load",i.LoadNested="load-nested",i.LoadVersion="load-version",i))(VP||{});class CP extends qe{constructor(e){super(br,e);f(this,"id",He.Parallel);f(this,"name",He.Parallel);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",br);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=br.inputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.outputs=br.outputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.error=br.error?V(br.error,this.project):null}}class BP extends qe{constructor(e){super(Ft,e);f(this,"id",Ft.id);f(this,"name",Ft.name);f(this,"description",Ft.description);f(this,"version",Ft.version);f(this,"autoexecutable",!1);f(this,"initialData",Ft);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=Ft.inputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.outputs=Ft.outputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.error=Ft.error?V(Ft.error,this.project):null}}class _P extends qe{constructor(e){super(ti,e);f(this,"id",He.Sequential);f(this,"name",He.Sequential);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",ti);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=ti.inputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.outputs=ti.outputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.error=ti.error?V(ti.error,this.project):null}}class RJ extends qe{constructor(s){super(wa,s)}}class DJ extends qe{constructor(s){super(Xi,s)}}class OJ extends qe{constructor(e){super(Qi,e);f(this,"autoexecutable",!0)}getEntityToMatchInputMap(e){return e.inputs.find(t=>{var r;return((r=t.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(e){return e.inputs.find(t=>{var r;return((r=t.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(e){return e.outputs.find(t=>{var r;return((r=t.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].outputs.outputEntity.id})||null}getEntityToMatch(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"get-entity-to-match-validate-data"))){let r=null;if(e.readsValue){const d=e.readsValue.getDataType(t);d&&d.entity&&d.entity.type===n.DefinitionEntity&&(r=d.entity)}const a=e.getDefaultValue();return!r&&a&&a.valueAsTypeSingle&&!Array.isArray(a.valueAsTypeSingle)&&a.valueAsTypeSingle.type===n.DefinitionEntity&&(r=a.valueAsTypeSingle),r}syncOperationInstance(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const r=[],a=[],d=[],o=[],l=this.getEntityToMatchInputMap(e);if(l){const{added:c,updated:v,removed:E,affected:O}=this.syncEntityToMatchInputMapDataType(l,t);r.push(...v),a.push(...c),d.push(...E),o.push(...O)}const u=this.getDataToValidateInputMap(e);if(u){const{added:c,updated:v,removed:E,affected:O}=this.syncDataToValidateInputMapDataType(u,t);r.push(...v),a.push(...c),d.push(...E),o.push(...O)}const h=this.getOutputDataOutputMap(e);if(h){const{added:c,updated:v,removed:E,affected:O}=this.syncOutputDataOutputMapDataType(h,t);r.push(...v),a.push(...c),d.push(...E),o.push(...O)}return t==null||t.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:p(r),added:p(a),removed:p(d),affected:p(o),self:e}}syncEntityToMatchInputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var u,h,c;const r=[],a=[],d=[],o=[];if(((u=e.declaration)==null?void 0:u.id)!==x.operation[Ke.Validate].inputs.entityToMatch.id)return t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const v={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:null,like:!0,inferred:!0,parent:e.toReference()},E=V(v,e.project);E.setParent(e,t),E.initChildren(t),t==null||t.add(E,b.Added),r.push(E),e.setDataType(E)}(h=e.dataType)==null||h.metaSync({inferred:!0,like:!1,asType:!0},t);const l=this.getEntityToMatch(e,t);return(c=e.dataType)==null||c.setEntity(l),e.dataType&&a.push(e.dataType),t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:p(a),added:p(r),removed:p(d),affected:p(o),self:e.dataType}}syncDataToValidateInputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var c,v,E;const r=[],a=[],d=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==x.operation[Ke.Validate].inputs.dataToValidate.id)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const l=this.getEntityToMatchInputMap(e.parent);if(!l)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(l,t))return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},w=V(O,e.project);w.setParent(e,t),w.initChildren(t),t==null||t.add(w,b.Added),r.push(w),e.setDataType(w)}(v=e.dataType)==null||v.metaSync({inferred:!0,like:!0,asType:!1},t);const h=this.getEntityToMatch(l,t);return(E=e.dataType)==null||E.setEntity(h),e.dataType&&a.push(e.dataType),t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:p(a),added:p(r),removed:p(d),affected:p(o),self:e.dataType}}syncOutputDataOutputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var c,v,E;const r=[],a=[],d=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==x.operation[Ke.Validate].outputs.outputEntity.id)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const l=this.getEntityToMatchInputMap(e.parent);if(!l)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(l,t))return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},w=V(O,e.project);w.setParent(e,t),w.initChildren(t),t==null||t.add(w,b.Added),r.push(w),e.setDataType(w)}(v=e.dataType)==null||v.metaSync({inferred:!0,like:!0,asType:!1},t);const h=this.getEntityToMatch(l,t);return(E=e.dataType)==null||E.setEntity(h),e.dataType&&a.push(e.dataType),t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:p(a),added:p(r),removed:p(d),affected:p(o),self:e.dataType}}inferInputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var r,a;if(((r=e.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].inputs.entityToMatch.id){const{added:d,updated:o,removed:l,affected:u}=this.syncEntityToMatchInputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:p(o),added:p(d),removed:p(l),affected:p(u),self:e.dataType}}else if(((a=e.declaration)==null?void 0:a.id)===x.operation[Ke.Validate].inputs.dataToValidate.id){const{added:d,updated:o,removed:l,affected:u}=this.syncDataToValidateInputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-input-map-data-type",this.id),{updated:p(o),added:p(d),removed:p(l),affected:p(u),self:e.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var r;if(((r=e.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].outputs.outputEntity.id){const{added:a,updated:d,removed:o,affected:l}=this.syncOutputDataOutputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:p(d),added:p(a),removed:p(o),affected:p(l),self:e.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class PJ extends qe{constructor(s){super(yl,s)}}class wJ extends qe{constructor(s){super(ml,s)}}class VJ extends qe{constructor(s){super(vl,s)}}class CJ extends qe{constructor(s){super(Zs,s)}}class BJ extends qe{constructor(s){super(xs,s)}}class _J extends qe{constructor(s){super(Pa,s)}}function MJ(i){const s=[new _P(i),new CP(i),new BP(i),new RJ(i),new DJ(i),new OJ(i),new CJ(i),new PJ(i),new VJ(i),new wJ(i),new BJ(i),new _J(i),new qe(fl,i),new qe(cl,i)];return s.forEach(e=>{e.initChildren(null),i.subscribeBuiltInInstance(e)}),i.operationDeclarations=s,s}class MP extends zr{constructor(e){super(Ot,e);f(this,"initialData");f(this,"id",Y.PERSISTED_ENTITY);f(this,"version","1");f(this,"name",Y.PERSISTED_ENTITY);f(this,"description",Ot.description);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",Ot.abstract);f(this,"static",Ot.static);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=Ot,this.project=e,this.id=Ot.id,this.version=Ot.version,this.name=Ot.name,this.static=Ot.static,this.abstract=Ot.abstract,this.properties=this.initialData.properties.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.methods=this.initialData.methods.map(t=>{const r=V(t,this.project);return r.parent=this,r}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const r=V(t,this.project);return r.parent=this,r}),this.extends=this.initialData.extends.map(t=>V(t,this.project))}}function gJ(i){const s=[new MP(i),new zr(ga,i),new zr(Nr,i),new zr(oo,i)];return s.forEach(e=>{i.subscribeBuiltInInstance(e)}),i.builtInBaseEntities=s,s}function NJ(i){const s=[new ar(ne,i),new ar(Kr,i),new ar(me,i),new ar(sl,i),new ar(Rt,i),new ar(Xr,i),new ar(_r,i),new ar(Qr,i),new ar(jn,i)];return s.forEach(e=>{i.subscribeBuiltInInstance(e)}),i.primitives=s,s}function LJ(i){const s=[new qe(uo,i)];return s.forEach(e=>{e.initChildren(null),i.subscribeBuiltInInstance(e)}),i.globalEventActionDescriptors=s,s}function UJ(i){const s=[new qe(_a,i),new qe(mi,i),new qe(Ca,i),new qe(xn,i),new qe(Sn,i),new qe(Xs,i)];s.forEach(t=>{t.initChildren(null),i.subscribeBuiltInInstance(t)}),i.loopDeclarations=s;const e=[new qe(ro,i),new qe(Ba,i),new qe(eo,i),new qe(Bl,i),new qe(Ml,i),new qe(Qs,i)];return e.forEach(t=>{t.initChildren(null),i.subscribeBuiltInInstance(t)}),i.loopDeclarationsBodies=e,s}function $J(i){const s=[new xi(po,i)];return s.forEach(e=>{e.initChildren(null),i.subscribeBuiltInInstance(e)}),i.valueDescriptors=s,s}function jJ(i){const s=[new qe(an,i),new qe(Wn,i)];return s.forEach(e=>{e.initChildren(null),i.subscribeBuiltInInstance(e)}),i.operationDeclarations=s,s}const gn={},Qd={},Ns={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function gP(i,{enrich:s}={enrich:!0}){const e=i.project,t=i.record,r=new Fd(e),a=new Set;t[e.id]=e,a.add(e.id);const d=T().toISOString();Object.values(t).forEach(u=>{!u||r.allBuiltInEntityIds.includes(u.id)||a.add(u.id)}),r.order=Array.from(a),r.flatRecord=t,r.orderEntities();const o=el(i.project);o.instances[e.id]=o;const l=s?o.addChangeSet(new R(o,"",d,o)):null;return r.visit(u=>{if(u.id===o.id)return;const h=V(u,o);h.hydrateAncestors(),h.addSelfToProject(null)}),s?(r.visit(u=>{const h=o.get(u.id);h&&h.afterAllChildrenInitialized(l)}),o.afterAllChildrenInitialized(l)):tl(o,d).forEach(h=>{h.remove({ignoreUpstream:!0},null)}),o.instancesList.forEach(u=>{u.previousVersion=null}),l==null||l.close(),o}async function GJ(i,s=Ns){const e={...Ns,...s};if(e.empty)return{data:{project:{id:i.id,type:n.Project,version:I.UUID.uuid(),createdAt:T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(e.mock){const r={...ip};return r.id=i.id,{data:{project:r,record:{}}}}return console.log("Fetching project from external API"),new Promise(async r=>{if(e.onFetch){const a=await e.onFetch(i.id);if(a){r({data:a});return}}else r({data:null})})}function el(i){const s=new I(i);return NJ(s),gJ(s),MJ(s),LJ(s),UJ(s),$J(s),jJ(s),Array.from(new Set([...s.getAllBuiltInIds(),...Vr()])).forEach(t=>{if(!s.builtInInstances[t]&&s.instances[t])s.builtInInstances[t]=s.instances[t],delete s.instances[t];else if(!s.builtInInstances[t])throw new Error(`Built in entity was not properly initialized: ${t}`)}),s}function tl(i,s){return i.instancesList.filter(t=>T(t.createdAt).isAfter(T(s)||!!t.previousVersion))}function FJ(i,{enrich:s}={enrich:!0}){const e=new Map,t=Array.from(new Set([...i.getAllBuiltInIds(),...Vr()]));Object.keys(i.instances).forEach(u=>{if(t.includes(u)){e.set(u,u);return}const h=i.get(u);if(!Xd(h,{...i.instances,...i.builtInInstances}).every(E=>!t.includes(E))){e.set(u,u);return}e.set(u,I.UUID.uuid())});const r=T().toISOString(),a=i.toShallowJSON({seenEntityMaps:e});a.previousVersion=null,a.createdAt=r,a.version=I.UUID.uuid();const d=el(a),o=s?d.addChangeSet(new R(d,"",r,d)):null,l=new Fd(i);return l.visit(u=>{const h=u.toShallowJSON({seenEntityMaps:e});h.previousVersion=null,h.createdAt=r,h.version=I.UUID.uuid();const c=V(h,d);c.hydrateAncestors(),c.addSelfToProject(o),o==null||o.add(c,b.Added)}),s?(l.visit(u=>{const h=d.get(e.get(u.id));h&&h.afterAllChildrenInitialized(o)}),d.afterAllChildrenInitialized(o)):tl(d,r).forEach(h=>{h.remove({ignoreUpstream:!0},null)}),d.instancesList.forEach(u=>{u.previousVersion=null}),o==null||o.close(),d}function NP(i,{enrich:s}={enrich:!0}){const e=el(i),t=T().toISOString(),r=s?e.addChangeSet(new R(e,"",t,e)):null;r&&(r.type=Ac.Automatic);const a=new Fd(i);return a.visit(d=>{const o=V(d,e);o.hydrateAncestors(),o.addSelfToProject(r)}),s?(a.visit(d=>{const o=e.get(d.id);o&&o.afterAllChildrenInitialized(r)}),e.afterAllChildrenInitialized(r)):tl(e,t).forEach(o=>{o.remove({ignoreUpstream:!0},null)}),r==null||r.close(),e}async function xJ(i,s=Ns){const e={...Ns,...s};if(i.id&&gn[i.id]&&!e.ignoreCache)return gn[i.id];if(i.id&&Qd[i.id]&&!e.ignoreCache)return await Qd[i.id],gn[i.id];const t=GJ(i,e);i.id&&(Qd[i.id]=t);const r=await t;if(r.data){let a;return e.mock?a=NP(ip,{enrich:!!e.enrich}):r.data instanceof I?a=r.data:a=gP(r.data,{enrich:!!e.enrich}),gn[i.id]=a,i.id&&delete Qd[i.id],a}return null}function SJ(i){return gn[i.id]&&delete gn[i.id],null}const kJ="test_primitive_entities_export";y.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Mc,y.ALL_BUILT_IN_BASE_ENTITIES=NE,y.ALL_BUILT_IN_CONDITION_ENTITIES=zE,y.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=HE,y.ALL_BUILT_IN_LOOP_BODY_ENTITIES=uT,y.ALL_BUILT_IN_LOOP_ENTITIES=lT,y.ALL_BUILT_IN_OPERATION_ENTITIES=A0,y.ALL_BUILT_IN_PRIMITIVE_ENTITIES=lf,y.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=eI,y.ALL_BUILT_IN_VALUE_DESCRIPTORS=QE,y.ActionDescriptorState=qe,y.ActionInputMapState=yq,y.ActionOutputMapState=vq,y.AppendToListOperationInputIds=vh,y.AppendToListOperationOutputIds=Th,y.ArgumentDeclarationDependencyField=aO,y.ArgumentDeclarationState=Fi,y.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=Vc,y.BUILT_IN_BASE_ENTITY_IDS=x,y.BUILT_IN_ENTITY_TYPES=hr,y.BaseCanvasDraggableState=mJ,y.BaseEntityNames=Y,y.BaseState=hJ,y.BaseValueDescriptorIds=Fs,y.BreakStatementDependencyField=Rc,y.BreakStatementState=Cn,y.BuiltInBaseEntityState=zr,y.CACHED_PROJECTS_BY_ID=gn,y.CALLABLE_ENTITIES_EXPLANATION=Oq,y.CALLABLE_TYPES=Cr,y.CALLER_ENTITIES_EXPLANATION=uO,y.CALLER_TYPES=Br,y.CALLS_UPDATE_EXPLANATION=ki,y.COMPARISON_CONDITIONS=JE,y.CONDITIONS=WE,y.CUSTOM_ENTITY_OPERATIONS=Gm,y.CallableEntityClass=TJ,y.CallerEntityClass=Hc,y.ChangeSet=R,y.ChangeSetChangeCaptureType=Ac,y.ChangeSetEntityChangeType=b,y.ChildEntityState=vJ,y.ComparisonOperatorTypes=pt,y.ConditionDependencyField=Q1,y.ConditionState=Li,y.ContinueStatementDependencyField=bc,y.ContinueStatementState=jt,y.CreateNewInputIds=fm,y.CreateNewOutputIds=ym,y.DRAGGABLE_CALLABLE_TYPES=al,y.DRAGGABLE_CALLER_TYPES=ef,y.DRAGGABLE_ELEMENT_TYPES=Gs,y.DRAGGABLE_EXECUTABLE_TYPES=GP,y.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=js,y.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=nl,y.DataTypeCompatibilityTypes=Er,y.DataTypeDependencyField=Y1,y.DataTypeParentChildRelation=bt,y.DataTypeState=wn,y.DefinitionEntityDependencyField=OP,y.DefinitionEntityState=Yi,y.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=fJ,y.ENTITIES_WITH_VALLUES_EXPLANATION=Ld,y.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=L,y.ENTITY_RECUSION_OPTIONS_DEFAULTS=Z,y.ENTITY_TYPES=FP,y.ENTITY_WITH_DECLARATION_TYPES=$P,y.ENTITY_WITH_LOGIC_SCOPE_TYPES=mt,y.ENTITY_WITH_NAMES_TYPES=tf,y.ENTITY_WITH_PARENT_TYPES=LP,y.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=Xc,y.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=UP,y.ENTITY_WITH_VALUE_TYPES=Kc,y.ENTRY_POINT_ENTITIES_EXPLANATION=Ps,y.ENTRY_POINT_TYPES=at,y.EVENT_TYPES=$n,y.EXECUTABLE_TYPES=jP,y.EXECUTION_OPERATIONS=cm,y.EntityAction=VP,y.EntityError=hn,y.EntityErrorSeverity=D,y.EntityGenerationError=P,y.EntityGenerationErrorCode=A,y.EntityInstanceErrorCode=q,y.EntityOperations=Ke,y.EntityType=n,y.EntityWithLogicScopeClass=bJ,y.EntityWithValueClass=AJ,y.EntryPointEntityClass=EJ,y.ExecutionOperations=He,y.ExecutionTerminationType=K1,y.FunctionCallDependencyField=IO,y.FunctionCallState=qi,y.FunctionDeclarationDependencyField=z1,y.FunctionDeclarationState=Mi,y.GET_PROJECT_OPTIONS_DEFAULTS=Ns,y.GLOBAL_EVENT_DECLARATIONS=YE,y.GetLastInListOperationInputIds=ah,y.GetLastInListOperationOutputIds=sh,y.GlobalEventNames=Hr,y.GlobalEventState=Vn,y.HTTPOperations=Ct,y.HTTP_OPERATIONS=E0,y.InputMapDependencyField=iO,y.InputMapState=Zr,y.InstalledProjectState=Gi,y.InternalCallDependencyField=rO,y.InternalCallState=Bn,y.JoinListOperationInputIds=Oy,y.JoinListOperationOutputIds=Py,y.LIST_OPERATIONS=_h,y.ListOperations=fe,y.LiteralValueDependencyField=sO,y.LiteralValueState=_n,y.LoopDependencyField=X1,y.LoopState=Ni,y.LoopTypes=X,y.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=Zi,y.NUMBER_OPERATIONS=Gf,y.NumberOperations=Xe,y.OPERATION_DECLARATIONS=I0,y.OperationDependencyField=H1,y.OperationState=gi,y.OutputMapDependencyField=nO,y.OutputMapParentChildRelation=Un,y.OutputMapState=qr,y.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=Ud,y.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Si,y.PASS_THROUGH_CALLABLE_TYPES=nt,y.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=Qc,y.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=_c,y.ParallelExecutionOperation=CP,y.PassThroughCallableEntityClass=IJ,y.PersistedEntity=MP,y.PersistedEntityMethods=or,y.PrimitiveEntityState=ar,y.PrimitiveTypes=g,y.ProjectState=I,y.PropertyDependencyField=J1,y.PropertyState=Bi,y.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=wP,y.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=Pq,y.ReturnDeclarationDependencyField=W1,y.ReturnDeclarationState=rr,y.ReturnStatementDependencyField=_d,y.ReturnStatementState=_i,y.STANDALONE_CONDITIONS=$E,y.STRING_OPERATIONS=Dy,y.ScopeCompatibilityType=Kd,y.SearchDependencyField=tO,y.SearchState=ji,y.SequentialExecutionOperation=_P,y.SequentialExecutionOperationInputIds=Qh,y.SequentialExecutionOperationOutputIds=em,y.SharedEntityErrorCode=j,y.SharedStateFunctionality=PP,y.SplitListOperationInputIds=xy,y.SplitListOperationOutputIds=Sy,y.StandaloneOperatorTypes=yr,y.StringOperations=Ee,y.TERMINATION_TYPES=st,y.Traverser=Fd,y.USER_MANAGED_ENTITY_TYPES=rf,y.UserManagedEntityStateTemplate=yJ,y.VALUE_READING_ENTITIES_EXPLANATION=Bc,y.VALUE_READING_TYPES=hi,y.VALUE_WRITING_ENTITIES_EXPLANATION=pO,y.VALUE_WRITING_TYPES=ht,y.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=Cc,y.VARIABLE_TYPES=Qe,y.ValueAutogenerationType=yt,y.ValueDescriptorDependencyField=oO,y.ValueDescriptorParentChildRelation=M,y.ValueDescriptorState=xi,y.ValueReadingEntityClass=yi,y.ValueWritingEntityClass=gs,y.VariableDeclarationDependencyField=eO,y.VariableDeclarationState=$i,y.VariableInputMapState=fq,y.VariableInstanceDependencyField=Dc,y.VariableInstanceState=Ui,y.VariableOutputMapState=mq,y.WaitOperation=BP,y.WaitOperationInputIds=Jh,y.WaitOperationOutputIds=Wh,y.appendToListOperation=Zs,y.appendToListOperationElementToAppendArgument=El,y.appendToListOperationElementToAppendArgumentParentRef=Ph,y.appendToListOperationElementToAppendArgumentRef=Ah,y.appendToListOperationError=Bh,y.appendToListOperationErrorParentRef=Ch,y.appendToListOperationListArgument=Tl,y.appendToListOperationListArgumentParentRef=Oh,y.appendToListOperationListArgumentRef=Eh,y.appendToListOperationListDataType=Ih,y.appendToListOperationResultListDataType=Dh,y.appendToListOperationResultListReturn=Vh,y.appendToListOperationResultListReturnParentRef=wh,y.appendToListOperationResultListReturnRef=Rh,y.appendToListOperationSecondListDataType=bh,y.asGenerationActionExample=Jr,y.booleanPrototype=Kr,y.capitalizeFirstLetter=Wt,y.changeSetJSONRecordToUniqueIds=Z7,y.checkAreDataTypesCompatible=Ir,y.checkAreDefinitionEntitiesCompatibleAsDataType=g1,y.checkArePropertiesCompatibleAsDataType=M1,y.checkHasMetadataChanged=dt,y.checkIsBranchDependentButNotDirectlyOnBranch=Vs,y.checkIsBranchDependentOnBranch=Lq,y.checkIsCallableEntityReachable=Ms,y.checkIsCanvasEntity=eJ,y.checkIsDetachedBranch=EP,y.checkIsDetachedBranchShallow=zc,y.checkIsGlobalVariable=Kq,y.checkIsGloballyDeclared=Wc,y.checkIsMethod=bP,y.checkIsNestedScope=Hd,y.checkScopeCompatibility=_s,y.cloneProject=FJ,y.countedLoopActionDescriptor=_a,y.countedLoopActionDescriptorDynamicReturnDeclaration=tT,y.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=eT,y.countedLoopActionDescriptorStringArgumentDeclaration=Qv,y.countedLoopActionDescriptorStringArgumentDeclarationDataType=Kv,y.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=Yv,y.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=zv,y.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=Hv,y.countedLoopActionDescriptorStringArgumentDeclarationParentRef=Xv,y.countedLoopBodyActionDescriptor=ro,y.countedLoopBodyActionDescriptorAnyDynamicArgument=sT,y.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=aT,y.countedLoopBodyActionDescriptorAnyDynamicReturn=dT,y.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=oT,y.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Nl,y.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=iT,y.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=rT,y.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=nT,y.createDefinitionEntityFromJSONObject=Sd,y.createEntityError=ye,y.createNestedDataTypeForEntity=RO,y.createNewInstanceOperation=Xi,y.createNewInstanceOperationEntityToInstanciateArgument=bm,y.createNewInstanceOperationEntityToInstanciateArgumentRef=Em,y.createNewInstanceOperationEntityToInstanciateDataType=Im,y.createNewInstanceOperationError=Pm,y.createNewInstanceOperationErrorParentRef=Om,y.createNewInstanceOperationNewEntityDataArgument=Tm,y.createNewInstanceOperationNewEntityDataArgumentDataType=vm,y.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=mm,y.createNewInstanceOperationNewEntityDataArgumentParentRef=hm,y.createNewInstanceOperationOutputEntityDeclaration=Dm,y.createNewInstanceOperationOutputEntityDeclarationParentRef=Rm,y.createNewInstanceOperationRef=Am,y.createSemanticId=q1,y.createStateFromGenerationTargetType=cJ,y.createStateFromType=lt,y.createStateFromTypeAndSubscribe=V,y.cronJobBuiltInBaseEntity=oo,y.cronJobBuiltInBaseEntityExpressionProperty=ME,y.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=WP,y.cronJobBuiltInBaseEntityExpressionPropertyRef=BE,y.cronJobBuiltInBaseEntityRef=_E,y.cronJobTriggeredFunctionDeclarationBlueprint=zl,y.cronJobTriggeredFunctionDeclarationBlueprintParentRef=VE,y.dataTypeCompatibilityToErrorExplanation=EO,y.datePrototype=_r,y.dateValueAutogenerationSchema=dp,y.definitionEntityToZodSchema=mI,y.deletePersistedEntityMethod=Wl,y.deletePersistedEntityMethodParentRef=fE,y.deleteRootProject=SJ,y.endpointBuiltInBaseEntity=ga,y.endpointBuiltInBaseEntityRef=yT,y.endpointBuiltInBaseEntityRefFour=YT,y.endpointBuiltInBaseEntityRefThree=RT,y.endpointBuiltInBaseEntityRefTwo=ET,y.endpointBuiltInCorsProperty=hT,y.endpointBuiltInCorsPropertyDataType=fT,y.endpointBuiltInCorsPropertyDataTypeRef=pT,y.endpointBuiltInCorsPropertyRef=cT,y.endpointBuiltInMethodProperty=Ul,y.endpointBuiltInMethodPropertyDataType=bT,y.endpointBuiltInMethodPropertyDataTypeRef=IT,y.endpointBuiltInMethodPropertyRef=AT,y.endpointBuiltInPathProperty=Ll,y.endpointBuiltInPathPropertyDataType=TT,y.endpointBuiltInPathPropertyDataTypeRef=mT,y.endpointBuiltInPathPropertyRef=vT,y.endpointPathParamsArgumentDeclaration=jl,y.endpointPathParamsArgumentDeclarationRef=gT,y.endpointPathParamsVariableDataType=NT,y.endpointPathParamsVariableDataTypeRef=MT,y.endpointReachedTriggerActionDescriptor=Zl,y.endpointReachedTriggerActionDescriptorRef=LT,y.endpointReachedTriggerActionDescriptorRefFour=jT,y.endpointReachedTriggerActionDescriptorRefThree=$T,y.endpointReachedTriggerActionDescriptorRefTwo=UT,y.endpointRequestBodyArgumentDeclaration=Fl,y.endpointRequestBodyArgumentDeclarationRef=wT,y.endpointRequestBodyVariableDataType=VT,y.endpointRequestHeadersArgumentDeclaration=$l,y.endpointRequestHeadersArgumentDeclarationRef=OT,y.endpointRequestHeadersVariableDataType=PT,y.endpointRequestHeadersVariableDataTypeRef=DT,y.endpointRequestQueryParamsArgumentDeclaration=Gl,y.endpointRequestQueryParamsArgumentDeclarationRef=BT,y.endpointRequestQueryParamsVariableDataType=_T,y.endpointRequestQueryParamsVariableDataTypeRef=CT,y.endpointResponseBodyDataType=WT,y.endpointResponseBodyReturnDeclaration=kl,y.endpointResponseBodyReturnDeclarationRef=JT,y.endpointResponseCodeDataType=FT,y.endpointResponseCodeReturnDeclaration=xl,y.endpointResponseCodeReturnDeclarationRef=GT,y.endpointResponseHeadersDataType=ZT,y.endpointResponseHeadersDataTypeRef=ST,y.endpointResponseHeadersReturnDeclaration=Sl,y.endpointResponseHeadersReturnDeclarationRef=kT,y.endpointReturnStatementRef=xT,y.endpointReturnStatementRefThree=zT,y.endpointReturnStatementRefTwo=qT,y.enrichFromKnownEntities=Cs,y.enumOptionsProperty=df,y.enumOptionsPropertyDataType=sf,y.enumOptionsPropertyDataTypeRef=nf,y.enumOptionsPropertyRef=af,y.enumPrototype=Xr,y.enumPrototypeRef=of,y.executionBuiltInBaseEntity=lo,y.executionBuiltInEntityAbortMethod=Yl,y.executionBuiltInEntityAbortMethodParentRef=gE,y.filterOutDuplicateEntities=p,y.filterOutDuplicateErrors=H9,y.findEntityFromKeys=Uc,y.findReferenceToSelfInList=jO,y.findReferencesToSelfInProject=Zq,y.flattenActionDescriptor=GO,y.flattenArgumentDeclaration=FO,y.flattenBreakStatement=xO,y.flattenBuiltInBaseEntity=SO,y.flattenCalls=Wr,y.flattenCanvasAncestorsUntil=kd,y.flattenCondition=kO,y.flattenContinueStatement=ZO,y.flattenDataType=JO,y.flattenDefinitionEntity=qO,y.flattenDefinitionEntityExtensionAndImplementationTypes=Zc,y.flattenDefinitionEntityExtensionTypes=Yd,y.flattenDefinitionEntityExtensions=Sc,y.flattenDefinitionEntityImplementations=kc,y.flattenDefinitionEntityImplementionTypes=zd,y.flattenDerivedCanvasEntities=ir,y.flattenDetachedBranch=AP,y.flattenElementCalls=it,y.flattenElementCallsOnTheSameScope=kq,y.flattenEntity=N,y.flattenFunctionCall=WO,y.flattenFunctionDeclaration=zO,y.flattenGlobalEvent=YO,y.flattenInputMap=HO,y.flattenInstalledProject=KO,y.flattenInternalCall=XO,y.flattenLiteralValue=QO,y.flattenLoop=eP,y.flattenOperation=tP,y.flattenOutputMap=rP,y.flattenPrimitiveEntity=iP,y.flattenProject=nP,y.flattenProjectElements=$O,y.flattenProperty=aP,y.flattenRelatedCanvasElementsOnTheLeft=vP,y.flattenRelatedCanvasElementsOnTheRight=mP,y.flattenReturnDeclaration=sP,y.flattenReturnStatement=oP,y.flattenSearch=dP,y.flattenValueDescriptor=lP,y.flattenVariableDeclaration=uP,y.flattenVariableInstance=pP,y.flattenVariableReads=UO,y.flattenVariableWrites=LO,y.flattenVariables=We,y.fromChangeSetToRecordChangeSet=dJ,y.fromZodParseToEntityGenerationErrors=Oc,y.generate=KV,y.generateActionExample=wq,y.generateExecutionDataType=N7,y.generateIdFromStrategy=ct,y.generateMutablePropertiesExplanation=Md,y.generateRandomBoolean=kI,y.generateRandomDate=II,y.generateRandomDateAfter=vI,y.generateRandomDateBefore=TI,y.generateRandomDateBetweenRange=EI,y.generateRandomNumber=jI,y.generateRandomNumberAfter=LI,y.generateRandomNumberBefore=UI,y.generateRandomNumberBetweenRange=$I,y.generateRandomText=SI,y.generateRandomTextAfter=GI,y.generateRandomTextBefore=FI,y.generateRandomTextBetweenRange=xI,y.generateUniqueUUID=NI,y.getAllActionDescriptorsForConditions=Gd,y.getAllActionDescriptorsForGlobalEvents=$d,y.getAllActionDescriptorsForLoops=jd,y.getAllActionDescriptorsForOperations=_q,y.getAllBuiltInEntityIds=Vr,y.getAllGloballyDeclaredFunctionDeclarationsExplanation=mO,y.getBaseBuiltInEntities=Wi,y.getBaseSchemaBasedOnType=dO,y.getBuiltInEntityOwner=zi,y.getCallableEntityReferenceSchema=Dt,y.getCallableEntityTypeSchema=ID,y.getCalledBy=fr,y.getCallerEntityReferenceSchema=e5,y.getCallerEntityTypeSchema=Q3,y.getCalls=Gc,y.getCanvasEntitiesDerivedFromInternalCalls=hP,y.getCanvasEntitiesDerivedFromWrites=ba,y.getCanvasEntityDerivedFromValueReadingEntity=Wd,y.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=yP,y.getCanvasEntityReferenceSchema=v5,y.getCanvasEntityTypeSchema=m5,y.getChildrenEntityWithValues=$q,y.getColumnProperties=aJ,y.getCommonAncestor=jc,y.getCommonChildren=DO,y.getDatabaseEntities=iJ,y.getDatabaseEntity=sJ,y.getDeclaration=Pn,y.getDeepestScope=DP,y.getDefinitionEntityExtends=Ra,y.getDraggableCallableEntityReferenceSchema=bD,y.getDraggableCallableEntityTypeSchema=AD,y.getDraggableCallerEntityReferenceSchema=r5,y.getDraggableCallerEntityTypeSchema=t5,y.getDraggableExecutableEntityReferenceSchema=s5,y.getDraggableExecutableEntityTypeSchema=a5,y.getDraggablePassThroughCallableEntityReferenceSchema=Td,y.getDraggablePassThroughCallableEntityTypeSchema=vd,y.getDraggablePlayableEntityReferenceSchema=p5,y.getDraggablePlayableEntityTypeSchema=u5,y.getEntitiesCreatedSinceInitialization=tl,y.getEntityArgumentDeclarations=xc,y.getEntityInputMaps=cP,y.getEntityOutputMaps=zq,y.getEntityReferenceSchema=h5,y.getEntityReturnDeclarations=fP,y.getEntityTypeSchema=y5,y.getEntityWithLogicScopeReferenceSchema=ui,y.getEntityWithLogicScopeTypeSchema=o5,y.getEntityWithValueReferenceSchema=ED,y.getEntityWithValueTypeSchema=X3,y.getEntryPointEntityReferenceSchema=At,y.getEntryPointEntityTypeSchema=wi,y.getEventEntityReferenceSchema=hd,y.getEventEntityTypeSchema=yd,y.getExecutableEntityReferenceSchema=n5,y.getExecutableEntityTypeSchema=i5,y.getExtendedBuiltInEntity=Yq,y.getExtendedDefinitionEntity=qc,y.getGenerationTargetSchemaBasedOnType=lO,y.getHeadIfPartOfDetachedBranch=IP,y.getHighestScope=RP,y.getImplementedBuiltInEntity=Hq,y.getIsInteractive=Jc,y.getLastInListOperation=vl,y.getLastInListOperationError=mh,y.getLastInListOperationErrorParentRef=hh,y.getLastInListOperationInputListArgument=ch,y.getLastInListOperationInputListArgumentParentRef=ph,y.getLastInListOperationInputListArgumentRef=oh,y.getLastInListOperationInputListDataType=dh,y.getLastInListOperationOutputElementDataType=uh,y.getLastInListOperationOutputElementReturn=yh,y.getLastInListOperationOutputElementReturnParentRef=fh,y.getLastInListOperationOutputElementReturnRef=lh,y.getLinkedEntitiesFromArgumentDeclaration=Sq,y.getLowestPersistedEntityImplementation=TP,y.getParentCallableEntity=OO,y.getParentCallerEntity=wO,y.getParentCanvasEntities=zt,y.getParentCanvasEntity=wt,y.getParentCanvasEntityFromTransfer=Zd,y.getParentEntryPoint=Uq,y.getParentPassthroughCallableEntity=PO,y.getPassThroughCallableEntityReferenceSchema=et,y.getPassThroughCallableEntityTypeSchema=md,y.getPeristedEntities=rJ,y.getPlayableEntityReferenceSchema=l5,y.getPlayableEntityTypeSchema=d5,y.getProject=xJ,y.getPrototypeByType=Bs,y.getRecusriveParentsIds=Xd,y.getReferenceEntityId=B,y.getReferencedEntitiesStateOrErrors=Nd,y.getReferencedEntityStateOrErrors=Pc,y.getReferencedIds=Jd,y.getRelatedCanvasElementsOnTheLeft=Mn,y.getRelatedCanvasElementsOnTheLeftFromTransfer=qq,y.getRelatedCanvasElementsOnTheRight=Ji,y.getRootEntryPointScopeOwner=Yc,y.getScopeOwner=Yt,y.getStateClassFromType=oJ,y.getTerminationReferenceSchema=f5,y.getTerminationTypeSchema=c5,y.getUsedArgFromDeclaration=Jq,y.getUsedReturnFromDeclaration=Wq,y.getValueReadingEntityReferenceSchema=TD,y.getValueReadingEntityTypeSchema=li,y.getValueWritingEntityReferenceSchema=K3,y.getValueWritingEntityTypeSchema=ms,y.getVariableFromInputMapping=CO,y.getVariableFromReturnVariablePointer=MO,y.getVariableReferenceSchema=Pi,y.getVariableTypeSchema=In,y.getVariablesFromArgumentDeclarations=qd,y.getVariablesFromInputMaps=BO,y.getVariablesFromOutputMapping=gO,y.getVariablesFromOutputMaps=NO,y.getVariablesFromReturnDeclarations=_O,y.getVariablesInSameOrHigherScope=fc,y.getWrites=Fc,y.groupCallsBasedOnParallelizableExecution=Gq,y.handleAfterEntityImplementationSideEffects=bO,y.handleBeforeEntityImplementationSideEffects=AO,y.httpRequestBodyArgument=zs,y.httpRequestBodyArgumentRef=Xm,y.httpRequestBodyDataType=Qm,y.httpRequestHeadersArgument=Ws,y.httpRequestHeadersArgumentRef=Hm,y.httpRequestHeadersDataType=Km,y.httpRequestMethodArgument=qs,y.httpRequestMethodArgumentRef=zm,y.httpRequestMethodDataType=Ym,y.httpRequestMethodDataTypeRef=Jm,y.httpRequestOperation=wa,y.httpRequestOperationErrorValueDescriptor=Ol,y.httpRequestOperationErrorValueDescriptorDatatype=T0,y.httpRequestOperationErrorValueDescriptorRef=v0,y.httpRequestOperationRef=f0,y.httpRequestOperationRefEight=h0,y.httpRequestOperationRefFive=p0,y.httpRequestOperationRefFour=u0,y.httpRequestOperationRefNine=m0,y.httpRequestOperationRefSeven=y0,y.httpRequestOperationRefSix=c0,y.httpRequestOperationRefThree=l0,y.httpRequestOperationRefTwo=d0,y.httpRequestQueryParamsArgument=Dl,y.httpRequestQueryParamsArgumentRef=Zm,y.httpRequestQueryParamsDataType=qm,y.httpRequestVariableURLArgument=Js,y.httpRequestVariableURLArgumentRef=Sm,y.httpRequestVariableURLDataType=km,y.httpRequestVariableURLDataTypeRef=Fm,y.httpResponseBodyReturnDataType=o0,y.httpResponseBodyReturnDataTypeRef=a0,y.httpResponseBodyReturnReturn=Ks,y.httpResponseBodyReturnReturnRef=s0,y.httpResponseCodeDataType=t0,y.httpResponseCodeReturn=Ys,y.httpResponseCodeReturnRef=e0,y.httpResponseHeadersDataType=n0,y.httpResponseHeadersDataTypeRef=r0,y.httpResponseHeadersReturn=Hs,y.httpResponseHeadersReturnRef=i0,y.implement=xd,y.inferArgumentDeclarationDataType=N1,y.inferDataType=kr,y.inferInputMapDataType=uc,y.inferOutputMapDataType=cc,y.inferPropertyDataType=$1,y.inferReturnDeclarationDataType=pc,y.inferValueDescriptorDataType=j1,y.inferVariableDeclarationDataType=U1,y.inferVariableInstanceDataType=L1,y.initBaseProjectEntity=el,y.initProject=NP,y.initProjectFromFetchResult=gP,y.isPromise=Lc,y.iterateOverListActionDescriptorListArgumentDeclaration=X0,y.iterateOverListActionDescriptorListArgumentDeclarationDataType=H0,y.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=Y0,y.iterateOverListActionDescriptorListArgumentDeclarationParentRef=K0,y.iterateOverListLoopActionDescriptor=mi,y.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=ev,y.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=Q0,y.iterateOverListLoopBodyActionDescriptor=Ba,y.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=lv,y.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=dv,y.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=pv,y.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=uv,y.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=to,y.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=rv,y.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=tv,y.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=iv,y.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=ov,y.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=av,y.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=nv,y.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=sv,y.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=mv,y.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=yv,y.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=fv,y.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=hv,y.iterateOverObjectKeysLoopActionDescriptor=xn,y.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=Tv,y.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=vv,y.iterateOverObjectKeysLoopBodyActionDescriptor=Bl,y.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=wv,y.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Pv,y.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=Cv,y.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=Vv,y.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Cl,y.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=Iv,y.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Ev,y.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Av,y.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Ov,y.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=Rv,y.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=bv,y.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Dv,y.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=Nv,y.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=Mv,y.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=_v,y.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=gv,y.iterateOverObjectValuesLoopActionDescriptor=Sn,y.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=Uv,y.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=Lv,y.iterateOverObjectValuesLoopBodyActionDescriptor=Ml,y.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=qv,y.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Zv,y.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=Wv,y.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=Jv,y.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=_l,y.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=jv,y.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=$v,y.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Gv,y.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=kv,y.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=xv,y.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Fv,y.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Sv,y.iterateOverStringActionDescriptorDynamicReturnDeclaration=$0,y.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=U0,y.iterateOverStringActionDescriptorStringArgumentDeclaration=L0,y.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=g0,y.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=M0,y.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=N0,y.iterateOverStringLoopActionDescriptor=Ca,y.iterateOverStringLoopBodyActionDescriptor=eo,y.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=q0,y.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Z0,y.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=W0,y.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=J0,y.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=wl,y.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=G0,y.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=j0,y.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=F0,y.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Vl,y.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=S0,y.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=x0,y.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=k0,y.joinListOperation=yl,y.joinListOperationError=Fy,y.joinListOperationErrorParentRef=Gy,y.joinListOperationFirstListArgument=Ny,y.joinListOperationFirstListArgumentParentRef=gy,y.joinListOperationFirstListArgumentRef=wy,y.joinListOperationFirstListDataType=Vy,y.joinListOperationResultListDataType=My,y.joinListOperationResultListReturn=jy,y.joinListOperationResultListReturnParentRef=$y,y.joinListOperationResultListReturnRef=_y,y.joinListOperationSecondListArgument=Uy,y.joinListOperationSecondListArgumentParentRef=Ly,y.joinListOperationSecondListArgumentRef=Cy,y.joinListOperationSecondListDataType=By,y.joinListWithLastSeparator=ie,y.joinStringsOperation=Pa,y.joinStringsOperationDynamicStringArgument=sy,y.joinStringsOperationDynamicStringArgumentParentRef=ay,y.joinStringsOperationDynamicStringArgumentRef=iy,y.joinStringsOperationDynamicStringDataType=ny,y.joinStringsOperationError=ry,y.joinStringsOperationErrorParentRef=ty,y.joinStringsOperationFirstStringArgument=Ss,y.joinStringsOperationFirstStringArgumentParentRef=Jf,y.joinStringsOperationFirstStringArgumentRef=Ff,y.joinStringsOperationFirstStringDataType=xf,y.joinStringsOperationResultStringDataType=qf,y.joinStringsOperationResultStringReturn=Oa,y.joinStringsOperationResultStringReturnParentRef=ey,y.joinStringsOperationResultStringReturnRef=Zf,y.joinStringsOperationSecondStringArgument=ks,y.joinStringsOperationSecondStringArgumentParentRef=Qf,y.joinStringsOperationSecondStringArgumentRef=Sf,y.joinStringsOperationSecondStringDataType=kf,y.joinStringsOperationSeparatorStringArgument=Xf,y.joinStringsOperationSeparatorStringArgumentParentRef=Kf,y.joinStringsOperationSeparatorStringArgumentRef=Wf,y.joinStringsOperationSeparatorStringDataType=Hf,y.joinStringsOperationSeparatorStringDataTypeDefaultValue=Yf,y.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=zf,y.keyValuePrototype=jn,y.lowercaseFirstLetter=Pd,y.manualFlowActionDescriptorDeclarationArgumentDeclaration=Pl,y.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=O0,y.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=D0,y.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=P0,y.manualFlowLoopActionDescriptor=Xs,y.manualFlowLoopActionDescriptorDynamicReturnDeclaration=R0,y.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=b0,y.manualFlowLoopBodyActionDescriptor=Qs,y.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=V0,y.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=w0,y.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=B0,y.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=C0,y.mapActionDescriptorToTypeItRepresents=tJ,y.mergeEntityErrorsList=K9,y.mergeListOfEntities=Xq,y.methodDefaultValue=Wm,y.mockClientProject=ip,y.moreThanOrEqualCondition=Wn,y.moreThanOrEqualConditionLeftHandArgument=xE,y.moreThanOrEqualConditionLeftHandArgumentDataType=GE,y.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=jE,y.moreThanOrEqualConditionLeftHandArgumentParentRef=FE,y.moreThanOrEqualConditionRightHandArgument=qE,y.moreThanOrEqualConditionRightHandArgumentDataType=kE,y.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=SE,y.moreThanOrEqualConditionRightHandArgumentParentRef=ZE,y.notEmptyCondition=an,y.notEmptyConditionArgument=UE,y.notEmptyConditionRef=LE,y.nullPrototype=sl,y.numberAdditionOperation=xs,y.numberAdditionOperationDynamicSummandArgument=bf,y.numberAdditionOperationDynamicSummandArgumentType=Af,y.numberAdditionOperationDynamicSummandArgumentTypeParentRef=If,y.numberAdditionOperationError=Ef,y.numberAdditionOperationErrorParentRef=Tf,y.numberAdditionOperationFirstNumberArgument=ol,y.numberAdditionOperationFirstNumberArgumentRef=uf,y.numberAdditionOperationFirstNumberDataType=pf,y.numberAdditionOperationRef=mf,y.numberAdditionOperationRefThree=ll,y.numberAdditionOperationRefTwo=vf,y.numberAdditionOperationResultNumberDataType=hf,y.numberAdditionOperationResultNumberReturn=ul,y.numberAdditionOperationResultNumberReturnRef=yf,y.numberAdditionOperationSecondNumberArgument=dl,y.numberAdditionOperationSecondNumberArgumentRef=cf,y.numberAdditionOperationSecondNumberDataType=ff,y.numberPrototype=me,y.numberSubtractionOperation=cl,y.numberSubtractionOperationDynamicSubtrahendArgument=jf,y.numberSubtractionOperationDynamicSubtrahendArgumentType=$f,y.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=Uf,y.numberSubtractionOperationError=Lf,y.numberSubtractionOperationErrorParentRef=Nf,y.numberSubtractionOperationFirstNumberArgument=Cf,y.numberSubtractionOperationFirstNumberArgumentRef=Rf,y.numberSubtractionOperationFirstNumberDataType=Df,y.numberSubtractionOperationRef=pl,y.numberSubtractionOperationRefThree=Mf,y.numberSubtractionOperationRefTwo=Bf,y.numberSubtractionOperationResultNumberDataType=Vf,y.numberSubtractionOperationResultNumberReturn=gf,y.numberSubtractionOperationResultNumberReturnRef=wf,y.numberSubtractionOperationSecondNumberArgument=_f,y.numberSubtractionOperationSecondNumberArgumentRef=Of,y.numberSubtractionOperationSecondNumberDataType=Pf,y.numberValueAutogenerationSchema=op,y.parallelExecutionOperation=br,y.parallelExecutionOperationError=qh,y.parallelExecutionOperationErrorParentRef=Zh,y.parallelExecutionOperationListOfExecutionResultsDataType=xh,y.parallelExecutionOperationListOfExecutionResultsReturn=Al,y.parallelExecutionOperationListOfExecutionResultsReturnRef=Fh,y.parallelExecutionOperationListOfFunctionsArgument=Il,y.parallelExecutionOperationListOfFunctionsArgumentDatatype=Gh,y.parallelExecutionOperationListOfFunctionsArgumentRef=jh,y.parallelExecutionOperationListOfFunctionsBlueprint=$h,y.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=Lh,y.parallelExecutionOperationListOfFunctionsBlueprintDynamicInputParentRef=Nh,y.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=gh,y.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutputParentRef=Mh,y.parallelExecutionOperationListOfFunctionsBlueprintParentRef=Uh,y.parallelExecutionOperationRef=Sh,y.parallelExecutionOperationRefThree=kh,y.persistedBuiltInBaseEntity=Ot,y.persistedBuiltInBaseEntityDatabaseProperty=Zn,y.persistedBuiltInBaseEntityDatabasePropertyDataType=mE,y.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=qP,y.persistedBuiltInBaseEntityDatabasePropertyParentRef=vE,y.persistedBuiltInBaseEntityDatabasePropertyRef=hE,y.persistedBuiltInBaseEntityPrimaryKeyProperty=qn,y.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=OE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=EE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=TE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=PE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=DE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=AE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=IE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=RE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=bE,y.processOutputGlobalValueDescriptorDataType=XE,y.processOutputGlobalValueDescriptorReturn=po,y.processOutputGlobalValueDescriptorReturnRef=KE,y.projectPublicationCompletedGlobalEvent=uo,y.propertyToZodSchema=hI,y.relationalDatabaseBuiltInBaseEntity=Nr,y.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=Jl,y.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=pE,y.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=uE,y.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=cE,y.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=lE,y.relationalDatabaseBuiltInBaseEntityDefaultProperty=ql,y.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=dE,y.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=sE,y.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=oE,y.relationalDatabaseBuiltInBaseEntityIdentifierProperty=io,y.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=XT,y.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=HT,y.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=KT,y.relationalDatabaseBuiltInBaseEntityMinSizeProperty=so,y.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=aE,y.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=iE,y.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=nE,y.relationalDatabaseBuiltInBaseEntityPasswordProperty=ao,y.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=rE,y.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=ZP,y.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=tE,y.relationalDatabaseBuiltInBaseEntityRef=kn,y.relationalDatabaseBuiltInBaseEntityUsernameProperty=no,y.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=eE,y.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=kP,y.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=QT,y.resolveActionDescriptorName=Z1,y.resolveBaseEntityName=F1,y.resolveBuiltInBaseEntityDataTypeLabel=x1,y.resolveClonedEntityProject=ft,y.resolveConditionOperatorLabel=Bd,y.resolveDataType=wd,y.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=$c,y.resolveDataTypeLabel=Cd,y.resolveDefinitionEntityDataTypeLabel=G7,y.resolveEntityDataTypeLabel=j7,y.resolveEntityName=F,y.resolveFirstCallsSecond=Fq,y.resolveFirstWritesSecond=xq,y.resolvePrimaryKeyProperty=nJ,y.resolvePrimitiveEntityName=k1,y.resolveSearchName=S1,y.resolveVariableScope=L7,y.sequentialExecutionOperation=ti,y.sequentialExecutionOperationError=pm,y.sequentialExecutionOperationErrorParentRef=um,y.sequentialExecutionOperationListOfExecutionResultsDataType=om,y.sequentialExecutionOperationListOfExecutionResultsReturn=Rl,y.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=lm,y.sequentialExecutionOperationListOfExecutionResultsReturnRef=sm,y.sequentialExecutionOperationListOfFunctionsArgument=bl,y.sequentialExecutionOperationListOfFunctionsArgumentDatatype=am,y.sequentialExecutionOperationListOfFunctionsArgumentParentRef=dm,y.sequentialExecutionOperationListOfFunctionsArgumentRef=nm,y.sequentialExecutionOperationListOfFunctionsBlueprint=im,y.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=rm,y.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=tm,y.softDeletePersistedEntityMethod=JP,y.softDeletePersistedEntityMethodParentRef=wE,y.sortCallsBasedOnExecutionDependencies=VO,y.sortChildrenEntitiesBasedOnExecutionDependencies=jq,y.splitListOperation=ml,y.splitListOperationError=nh,y.splitListOperationErrorParentRef=ih,y.splitListOperationFirstOutputListDataType=Wy,y.splitListOperationFirstOutputListReturn=Qy,y.splitListOperationFirstOutputListReturnParentRef=Xy,y.splitListOperationFirstOutputListReturnRef=hl,y.splitListOperationInputListArgument=Yy,y.splitListOperationInputListArgumentParentRef=zy,y.splitListOperationInputListArgumentRef=ky,y.splitListOperationInputListDataType=Zy,y.splitListOperationSecondOutputListDataType=eh,y.splitListOperationSecondOutputListReturn=rh,y.splitListOperationSecondOutputListReturnParentRef=th,y.splitListOperationSplitIndexArgument=Ky,y.splitListOperationSplitIndexArgumentParentRef=Hy,y.splitListOperationSplitIndexArgumentRef=qy,y.splitListOperationSplitIndexDataType=Jy,y.splitStringOperation=fl,y.splitStringOperationError=Ry,y.splitStringOperationErrorParentRef=by,y.splitStringOperationFirstPartResultStringDataType=cy,y.splitStringOperationFirstPartResultStringReturn=Ay,y.splitStringOperationFirstPartResultStringReturnParentRef=Iy,y.splitStringOperationFirstPartResultStringReturnRef=py,y.splitStringOperationIndexArgument=Ty,y.splitStringOperationIndexArgumentParentRef=vy,y.splitStringOperationIndexArgumentRef=ly,y.splitStringOperationIndexDataType=uy,y.splitStringOperationSecondPartResultStringDataType=yy,y.splitStringOperationSecondPartResultStringReturn=xP,y.splitStringOperationSecondPartResultStringReturnParentRef=Ey,y.splitStringOperationSecondPartResultStringReturnRef=fy,y.splitStringOperationStringArgument=my,y.splitStringOperationStringArgumentParentRef=hy,y.splitStringOperationStringArgumentRef=oy,y.splitStringOperationStringDataType=dy,y.stringPrototype=ne,y.stringValueAutogenerationSchema=sp,y.suggestNewIdForEntity=Ic,y.test_primitive_entities_export=kJ,y.toCamelCase=U7,y.toEntityState=nr,y.toKebabCase=G1,y.toLowerCaseKebabCase=Vd,y.toPascalCase=$7,y.untypedDataPrototype=Rt,y.updateErrorsList=ze,y.updateValueReader=Qq,y.urlDefaultValue=xm,y.uuidPrototype=Qr,y.validateArgumentDeclarationName=Tc,y.validateCalledByErrorIdInAction=Cq,y.validateCalledByIdInAction=Vq,y.validateCallers=hO,y.validateConditionEntityDeclaration=Mq,y.validateDataOperation=Qi,y.validateDataOperationDataToValidateArgument=Bm,y.validateDataOperationDataToValidateArgumentParentRef=Cm,y.validateDataOperationDataToValidateArgumentRef=wm,y.validateDataOperationDataToValidateDataType=Vm,y.validateDataOperationEntityToMatchTypeArgument=Nm,y.validateDataOperationEntityToMatchTypeArgumentParentRef=gm,y.validateDataOperationEntityToMatchTypeArgumentRef=_m,y.validateDataOperationEntityToMatchTypeDataType=Mm,y.validateDataOperationError=jm,y.validateDataOperationErrorParentRef=$m,y.validateDataOperationOutputEntityDeclaration=Um,y.validateDataOperationOutputEntityDeclarationParentRef=Lm,y.validateDefinitionEntityName=yc,y.validateEntryCaller=yO,y.validateErrorCaller=fO,y.validateFunctionCallDeclaration=vO,y.validateFunctionDeclarationName=hc,y.validateGeneratedEntityParentIsNotBuiltInEntity=Dq,y.validateGeneration=bq,y.validateGenerationTarget=ot,y.validateGenerationUpdate=Rq,y.validateLoopEntityDeclaration=gq,y.validateName=F7,y.validateOperationEntityDeclaration=TO,y.validatePropertyName=vc,y.validateReachability=fi,y.validateReadsValueInActionPayload=Bq,y.validateReferenceObject=gd,y.validateReferenceToOne=wc,y.validateReferences=Et,y.validateReturnDeclarationName=Ec,y.validateSuccessCaller=cO,y.validateValueReaderGenerationUpdate=ws,y.validateValueWritter=gc,y.validateVariableDeclarationName=mc,y.validateVariableInternalCallUse=Nc,y.valueAutogenerationCurrentDateAndTimeSchema=KR,y.valueAutogenerationGenericSchema=Qo,y.valueAutogenerationOptions=lp,y.valueAutogenerationOptionsSchema=HR,y.valueAutogenerationRandomBooleanSchema=ap,y.valueAutogenerationRandomDateBetweenSchema=sD,y.valueAutogenerationRandomDateFromSchema=nD,y.valueAutogenerationRandomDateSchema=rd,y.valueAutogenerationRandomDateUntilSchema=aD,y.valueAutogenerationRandomNumberBetweenSchema=eD,y.valueAutogenerationRandomNumberFromSchema=XR,y.valueAutogenerationRandomNumberSchema=ed,y.valueAutogenerationRandomNumberUntilSchema=QR,y.valueAutogenerationRandomSchema=ls,y.valueAutogenerationRandomTextBetweenSchema=iD,y.valueAutogenerationRandomTextFromSchema=tD,y.valueAutogenerationRandomTextSchema=td,y.valueAutogenerationRandomTextUntilSchema=rD,y.valueAutogenerationRangeValueTypesSchema=ds,y.valueAutogenerationUniqueSchema=np,y.waitOperation=Ft,y.waitOperationMillisecondsNumberArgument=Ki,y.waitOperationMillisecondsNumberArgumentRef=zh,y.waitOperationMillisecondsNumberDataType=Yh,y.waitOperationOperationError=Xh,y.waitOperationOperationErrorParentRef=Kh,y.waitOperationRef=Hh,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
|
|
408
|
+
Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:a,modifiedData:r}}get allBasePropertiesFromExtendedAndImplementedEntities(){return p([...this.extends.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract),...e],[]),...this.implements.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract),...e],[])])}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...r]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const r=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(d=>!!d.abstract&&!r.find(o=>o.name===d.name));return[...r,...a,...e]},[]),...this.implements.reduce((e,t)=>{const r=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(d=>!!d.abstract&&!r.find(o=>o.name===d.name));return[...r,...a,...e]},[])].filter(e=>!!e.abstract))}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new P({id:`${this.id}--${A.InvalidParentUpdate}`,code:A.InvalidParentUpdate,severity:D.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:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],r=[],a=[];return Object.values(this.detachedDependents).forEach(d=>{const o=d.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),r.push(...o.removed),a.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}onDetachedDependencyRemoved(e,t,r){const a=[],d=[],o=[],l=[];return t==="implements"&&this.removeImplementation(e),t==="extends"&&this.removeExtension(e),{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,r){const a=[],d=[],o=[],l=[];return t==="implements"&&this.addImplementation(e),t==="extends"&&this.addExtension(e),{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){return this.implements.forEach(e=>{hr.includes(e.type)||e.subscribeDependents([{entity:this,field:"implements"}])}),this.extends.forEach(e=>{hr.includes(e.type)||e.subscribeDependents([{entity:this,field:"extends"}])}),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=I.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t,r;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Le(this,this.project);return(r=this.knownVersions)==null||r.set(this.version,e),e.properties=this.properties,e.methods=this.methods,e.abstractMethods=this.abstractMethods,e.extends=this.extends,e.implements=this.implements,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],r=[],a=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),r.push(...o.added),a.push(...o.removed)}return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],r=[],a=[],d=[];if(this.version===e)return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[h,c]of this.knownVersions||new Map){if(u.set(h,c),c.activeVersion=!1,c.knownVersions)for(const[v,E]of c.knownVersions)u.set(v,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Le(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.properties=o.properties,this.methods=o.methods,this.abstractMethods=o.abstractMethods,this.extends=o.extends,this.implements=o.implements,this.parent=o.parent,{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],r=[],a=[];if(this.initialData.parent){const d=B(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' 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(d=>{const o=B(d),l=this.project.get(o);l&&(this.addExtension(l),l.type!==n.BuiltInBaseEntity&&e.push(l))}),this.initialData.implements.forEach(d=>{const o=B(d),l=this.project.get(o);l&&(this.addImplementation(l),l.type!==n.BuiltInBaseEntity&&e.push(l))}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],r=[],a=[],d=[];this.initialized=!0,this.captureVersion();const{updated:o,added:l,removed:u,affected:h}=this.syncImplementationProperties(e);t.push(...o),r.push(...l),a.push(...u),d.push(...h);const{updated:c,added:v,removed:E,affected:O}=this.addExtendedProperties(e);return t.push(...c),r.push(...v),a.push(...E),d.push(...O),this.addSuggestions(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],r=[],a=[],d=[];if(this.parent.type===n.DataType){const o=this.parent;o.entity=this,t.push(o)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}setParent(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"set-parent"))){var r;return((r=this.parent)==null?void 0:r.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}addExtension(e){return this.extends.includes(e)||this.extends.push(e),this}removeExtension(e){return this.extends=this.extends.filter(t=>t.id!==e.id),this}addImplementation(e){return this.implements.includes(e)||this.implements.push(e),this}removeImplementation(e){return this.implements=this.implements.filter(t=>t.id!==e.id),this}removeProperty(e){return this.properties=this.properties.filter(t=>t.id!==e.id),this}addMethod(e){return this.methods.includes(e)||(this.methods.push(e),this.suggestedMethods=this.suggestedMethods.filter(t=>t.name!==e.name)),this}removeMethod(e){return this.methods=this.methods.filter(t=>t.id!==e.id),this}addProperty(e){return this.properties.includes(e)||(this.properties.push(e),this.suggestedProperties=this.suggestedProperties.filter(t=>t.name!==e.name)),this}addSuggestedProperty(e){return this.suggestedProperties.includes(e)||this.suggestedProperties.push(e),this}addSuggestedMethod(e){return this.suggestedMethods.includes(e)||this.suggestedMethods.push(e),this}removeSuggestedProperty(e){return this.suggestedProperties=this.suggestedProperties.filter(t=>t.id!==e.id),this}removeSuggestedMethod(e){return this.suggestedMethods=this.suggestedMethods.filter(t=>t.id!==e.id),this}addAbstractMethod(e){return this.abstractMethods.includes(e)||this.abstractMethods.push(e),this}removeAbstractMethod(e){return this.abstractMethods=this.abstractMethods.filter(t=>t.id!==e.id),this}initChildren(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.properties=this.initialData.properties.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(e),r}),this.methods=this.initialData.methods.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(e),r}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(e),r}),this.extends=this.initialData.extends.map(t=>V(t,this.project)),this.implements=this.initialData.implements.map(t=>V(t,this.project)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}syncImplementationProperties(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-implementation-properties"))){const t=[],r=[],a=[],d=[],o=this.properties,l=this.implementedPropertiesFromOriginalParents,u=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...o];return l.filter(c=>!u.find(E=>{var O;return((O=E.implements)==null?void 0:O.id)===c.id})).forEach(c=>{if(this.properties.find(w=>{var C;return((C=w.implements)==null?void 0:C.id)===c.id}))return;const E=this.properties.find(w=>w.name===c.name&&!!w.abstract&&!w.implements);if(E){E.implements=c,E.abstract=!1;return}const O=c.clone(e,this,I.UUID.uuid());O.initChildren(e),r.push(O),e==null||e.add(O,b.Added),O.setImplements(c,e),O.metaSync({abstract:!1},e),this.addProperty(O)}),e==null||e.attemptAutoclose("sync-implementation-properties",this.id),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addExtendedProperties(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"add-extended-properties"))){const t=[],r=[],a=[],d=[],o=this.properties,l=this.extendedPropertiesFromOriginalParents,u=l.filter(c=>l.find(E=>{var O;return((O=E.implements)==null?void 0:O.id)===c.id})?!1:!c.abstract),h=new Set(o.map(c=>c.name));return u.forEach(c=>{if(h.has(c.name))return;h.add(c.name);const v=c.clone(e,this,I.UUID.uuid());v.initChildren(e),r.push(v),e==null||e.add(v,b.Added),this.addProperty(v)}),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addSuggestions(){return this.implements.forEach(e=>{$5(this,e).forEach(a=>{const d=a.toJSON();d.id=`_suggestion--parent--${this.id}--${a.id}`;const o=V(d,this.project);o.suggestion=!0,o.setParent(this,null),o.initChildren(null),this.addSuggestedProperty(o)}),j5(this,e).forEach(a=>{const d=`_suggestion--parent--${this.id}--${a.id}`,o=a.implementAsFunctionDeclaration(null,this,d),l=V(o,this.project);if(l.suggestion=!0,l.setParent(this,null),l.initChildren(null),this.methods=this.methods.filter(u=>u.id!==d),l.inputs.forEach(u=>{u.suggestion=!0}),l.returnStatements.length){const u=l.returnStatements[0];u.suggestion=!0,u.outputs.forEach(h=>{h.suggestion=!0})}this.addSuggestedMethod(l)})}),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-meta"))){const r=dt(this,e);return e.deleted===!0&&!this.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&this.deleted?t==null||t.add(this,b.Added):r&&(t==null||t.add(this,b.Updated)),super.metaSync(e),this.name=e.name||this.name,this.x=e.x||this.x,this.y=e.y||this.y,this.static=e.static||this.static,this.abstract=e.abstract||this.abstract,t==null||t.attemptAutoclose("sync-meta",this.id),this}async APILoad(e=L,...t){return await Le.repository.APILoad(this.id,...t),this}async APICreate(e=L,...t){return await Le.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=L,...t){return await Le.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=L,...t){return await Le.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=L,...t){return await Le.repository.APIClone(this.id,...t),this}async APILoadVersion(e=L,t,...r){return await Le.repository.APILoadVersion(this.id,t,...r)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-entity"))){const r=[],a=[],d=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(a.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:h,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);r.push(...u),a.push(...h),d.push(...c)}),this.properties.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),this.methods.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),this.abstractMethods.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),this.suggestedProperties.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),this.suggestedMethods.forEach(l=>{const{updated:u,removed:h}=l.remove({ignoreUpstream:!0},t);r.push(...u),a.push(...h)}),!e){if(this.parent.type===n.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===n.DataType){const l=this.parent.setEntity(null);r.push(l)}}return t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(r),removed:p(a),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"restore-entity"))){const t=[],r=[],a=[],d=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.properties.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.methods.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.abstractMethods.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.suggestedProperties.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),this.suggestedMethods.forEach(o=>{const{updated:l}=o.restore({},e);r.push(...l)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(r),removed:p(a),affected:p(d),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.extends.flatMap(r=>r.toFlat(e)),...this.implements.flatMap(r=>r.toFlat(e)),...this.properties.flatMap(r=>r.toFlat(e)),...this.methods.flatMap(r=>r.toFlat(e)),...this.abstractMethods.flatMap(r=>r.toFlat(e)),...this.parent.toFlat(e)])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.extends.flatMap(r=>r.toFlatIds(e)),...this.implements.flatMap(r=>r.toFlatIds(e)),...this.properties.flatMap(r=>r.toFlatIds(e)),...this.methods.flatMap(r=>r.toFlatIds(e)),...this.abstractMethods.flatMap(r=>r.toFlatIds(e)),...this.parent.toFlatIds(e)])}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.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,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),implements:this.implements.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=Z){var r,a,d,o,l;let t;return(r=e.seenEntityMaps)!=null&&r.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ct(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:I.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(u=>u.toJSONClone({...e,newId:null})),methods:this.methods.map(u=>u.toJSONClone({...e,newId:null})),abstractMethods:this.abstractMethods.map(u=>u.toJSONClone({...e,newId:null})),implements:this.implements.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),extends:this.extends.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+I.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toReference(e)),methods:this.methods.map(a=>a.toReference(e)),abstractMethods:this.abstractMethods.map(a=>a.toReference(e)),implements:this.implements.map(a=>a.toReference(e)),extends:this.extends.map(a=>a.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(r=>r.toFlatJSON(e)),...this.methods.flatMap(r=>r.toFlatJSON(e)),...this.abstractMethods.flatMap(r=>r.toFlatJSON(e)),...this.implements.flatMap(r=>r.toFlatJSON(e)),...this.extends.flatMap(r=>r.toFlatJSON(e)),...this.parent.toFlatJSON(e)])}toGenerationTarget(){const e=this.parent.type===n.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(t=>t.id),implements:this.implements.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(r=>r.toFlatGenerationTarget(e)),...this.methods.flatMap(r=>r.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(r=>r.toFlatGenerationTarget(e)),...this.implements.filter(r=>r.type===n.DefinitionEntity).flatMap(r=>r.toFlatGenerationTarget(e)),...this.implements.filter(r=>r.type===n.DefinitionEntity).flatMap(r=>r.toFlatGenerationTarget(e)),...this.parent.toFlatGenerationTarget(e)])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){return this.errors=U5(this),{success:!0,error:null,data:null}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"clone-entity")),t=null,r=null,a=!0){var w,C,U;let d=ft(t,this);const o=this.toJSON(),l=r||I.UUID.uuid();o.properties=[],o.methods=[],o.abstractMethods=[];const u=l.split("-id"),h=u[u.length-1||0]||l;o.id=l,o.version=I.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=lt(o,d);t&&c.setParent(t,null),a&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const v=(w=this.properties)==null?void 0:w.map(G=>G.clone(e,c,I.UUID.uuid(),a));c.properties=v;const E=(C=this.methods)==null?void 0:C.map((G,_)=>G.clone(e,c,h+"-method-"+_+"-id",a));c.methods=E;const O=(U=this.abstractMethods)==null?void 0:U.map((G,_)=>G.clone(e,c,h+"-abstract-method-"+_+"-id",a));return c.abstractMethods=O,e==null||e.attemptAutoclose("clone-entity",this.id),c}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"implement-definition-entity")),r){const a=xd(this,e,t,r);return t==null||t.attemptAutoclose("implement-definition-entity",this.id),a}getAllInteractiveMethods(){const e=this.implements.filter(r=>r.type===n.DefinitionEntity||r.type===n.BuiltInBaseEntity&&r.interactive);return p([...this.methods,...this.extends.flatMap(r=>r.getAllInteractiveMethods()),...e.flatMap(r=>r.getAllInteractiveMethods())])}inferFromInputs(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const r=[],a=[],d=[],o=[];if(this.parent.type!==n.DataType||!this.parent.inferred)return t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const l=[];e.forEach(c=>{l.find(E=>F(E,this.project)===F(c,this.project))||l.push(c)});const u=this.properties.filter(c=>!c.dataType);l.forEach(c=>{var U,G;const v=u.find(_=>F(_,this.project)===F(c,this.project));if(!v)return;const O=Pn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),w=kr(O,t),C=w==null?void 0:w.clone(t,v,I.UUID.uuid(),!0);if(C){const _=(U=v.dataType)==null?void 0:U.merge(C,t);v.dataType&&(_==null?void 0:_.self.id)!==v.dataType.id&&v.dataType.remove({ignoreUpstream:!1},t),C.id!==((G=_==null?void 0:_.self)==null?void 0:G.id)&&C.remove({ignoreUpstream:!1},t),_!=null&&_.self&&(_.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(_.self,b.Added),v.setDataType(_.self),t==null||t.add(v,b.Updated))}c.setDeclaration(v),t==null||t.add(c,b.Updated)});const h=[];return l.forEach(c=>{if(!c.declaration){h.push(c);return}}),h.length===0?(t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(h.forEach(c=>{var _,$,k,J;const v=this.properties.find(ee=>F(ee,this.project)===F(c,this.project));if(v){if(c.setDeclaration(v),!v.getDataType(t)){const pe=Pn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),Te=kr(pe),K=Te==null?void 0:Te.clone(t,v,I.UUID.uuid(),!0);if(K){const se=(_=v.dataType)==null?void 0:_.merge(K,t);v.dataType&&(se==null?void 0:se.self.id)!==v.dataType.id&&v.dataType.remove({ignoreUpstream:!1},t),K.id!==(($=se==null?void 0:se.self)==null?void 0:$.id)&&K.remove({ignoreUpstream:!1},t),se!=null&&se.self&&(se.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(se.self,b.Added),v.setDataType(se.self),t==null||t.add(v,b.Updated))}}return}const E={id:I.UUID.uuid(),type:n.Property,version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:F(c,this.project),description:c.description,defaultValue:null,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,constant:!0,index:c.index,implements:null,dataType:null,parent:this.toReference()},O=V(E,this.project);O.setParent(this,t),O.initChildren(t),t==null||t.add(O,b.Added);const C=Pn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),U=kr(C),G=U==null?void 0:U.clone(t,O,I.UUID.uuid(),!0);if(G){const ee=(k=O.dataType)==null?void 0:k.merge(G,t);O.dataType&&(ee==null?void 0:ee.self.id)!==O.dataType.id&&O.dataType.remove({ignoreUpstream:!1},t),G.id!==((J=ee==null?void 0:ee.self)==null?void 0:J.id)&&G.remove({ignoreUpstream:!1},t),ee!=null&&ee.self&&(ee.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(ee.self,b.Added),O.setDataType(ee.self),t==null||t.add(O,b.Updated))}return this.addProperty(O),c.setDeclaration(O),t==null||t.add(c,b.Updated),O}),t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:p(r),updated:p(a),removed:p(d),affected:p(o),self:this})}};f(Le,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...r)=>null}),f(Le,"type",n.DefinitionEntity),f(Le,"USER_MANAGED_PARENT_TYPES",[n.Project,n.DataType]),f(Le,"PARENT_TYPES",[...Le.USER_MANAGED_PARENT_TYPES]),f(Le,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),f(Le,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Le,"BASE_PROPERTIES",[...Le.MUTABLE_BASE_PROPERTIES,...Le.INMUTABLE_BASE_PROPERTIES]),f(Le,"MUTABLE_META_PROPERTIES",[...Le.MUTABLE_BASE_PROPERTIES,"x","y"]),f(Le,"INMUTABLE_META_PROPERTIES",[...Le.INMUTABLE_BASE_PROPERTIES]),f(Le,"META_PROPERTIES",[...Le.MUTABLE_META_PROPERTIES,...Le.INMUTABLE_META_PROPERTIES]),f(Le,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),f(Le,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(Le,"UPSTREAM_PROPERTIES",[...Le.MUTABLE_UPSTREAM_PROPERTIES,...Le.INMUTABLE_UPSTREAM_PROPERTIES]),f(Le,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),f(Le,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Le,"DOWNSTREAM_PROPERTIES",[...Le.MUTABLE_DOWNSTREAM_PROPERTIES,...Le.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Le,"PROPERTIES",[...Le.META_PROPERTIES,...Le.UPSTREAM_PROPERTIES,...Le.DOWNSTREAM_PROPERTIES]);let Yi=Le;function pJ(i){const s=y6(),e=i.toJSON();s.safeParse(e).success;const r=[];return ze(i.errors,r)}const Ls=class Ls extends rt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"version");f(this,"name");f(this,"description",null);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",!1);f(this,"static");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"interactive",!1);f(this,"errors",[]);f(this,"project");this.initialData=this.initialData||e,this.project=this.project||t,this.id=this.id||e.id,this.version=this.version||e.version,this.name=this.name||e.name,this.static=this.static||e.static,this.interactive=this.interactive||e.interactive,this.abstract=e.abstract,this.properties=this.initialData.properties.map(r=>{const a=V(r,this.project);return a.setParent(this,null),a.initChildren(null),a}),this.methods=this.initialData.methods.map(r=>{const a=V(r,this.project);return a.setParent(this,null),a.initChildren(null),a}),this.abstractMethods=this.initialData.abstractMethods.map(r=>{const a=V(r,this.project);return a.setParent(this,null),a.initChildren(null),a}),this.extends=this.initialData.extends.map(r=>V(r,this.project))}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract);return[...e,...r]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...r]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const r=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(d=>!!d.abstract&&!r.find(o=>o.name===d.name));return[...r,...a,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=L,...t){return await Ls.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(r=>r.toFlat(e)),...this.methods.flatMap(r=>r.toFlat(e)),...this.abstractMethods.flatMap(r=>r.toFlat(e)),...this.extends.flatMap(r=>r.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(r=>r.toFlatIds(e)),...this.methods.flatMap(r=>r.toFlatIds(e)),...this.abstractMethods.flatMap(r=>r.toFlatIds(e)),...this.extends.flatMap(r=>r.toFlatIds(e))])}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.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(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=Z){return{id:this.id+"--"+I.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=Z){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(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(r=>r.toFlatJSON(e)),...this.methods.flatMap(r=>r.toFlatJSON(e)),...this.abstractMethods.flatMap(r=>r.toFlatJSON(e))])}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(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(r=>r.toFlatGenerationTarget(e)),...this.methods.flatMap(r=>r.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(r=>r.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=pJ(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}implement(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),null,!0,"implement-built-in-base-entity")),r){const a=xd(this,e,t,r);return t==null||t.attemptAutoclose("implement-built-in-base-entity",this.id),a}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(r=>r.type===n.BuiltInBaseEntity&&r.interactive||r.type===n.PrimitiveEntity).forEach(r=>{r instanceof Ls&&e.push(...r.getAllInteractiveMethods())})),p(e)}};f(Ls,"repository",{APILoad:async(e,...t)=>null});let zr=Ls;function cJ(i){const s=a6(),e=i.toJSON();s.safeParse(e).success;const r=[];return ze(i.errors,r)}const rl=class rl extends rt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"type",n.PrimitiveEntity);f(this,"static");f(this,"abstract");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.static=e.static,this.abstract=e.abstract,this.properties=this.initialData.properties.map(r=>{const a=V(r,this.project);return a.setParent(this,null),a.initChildren(null),a}),this.methods=this.initialData.methods.map(r=>{const a=V(r,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(r=>{const a=V(r,this.project);return a.parent=this,a})}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract);return[...e,...r]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const r=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...r]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const r=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(d=>!!d.abstract&&!r.find(o=>o.name===d.name));return[...r,...a,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=L,...t){return await rl.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(r=>r.toFlat(e)),...this.methods.flatMap(r=>r.toFlat(e)),...this.abstractMethods.flatMap(r=>r.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(r=>r.toFlatIds(e)),...this.methods.flatMap(r=>r.toFlatIds(e)),...this.abstractMethods.flatMap(r=>r.toFlatIds(e))])}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.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(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=Z){return{id:this.id+"--"+I.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=Z){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(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(r=>r.toFlatJSON(e)),...this.methods.flatMap(r=>r.toFlatJSON(e)),...this.abstractMethods.flatMap(r=>r.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(r=>r.toFlatGenerationTarget(e)),...this.methods.flatMap(r=>r.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(r=>r.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=cJ(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const e=[];return e.push(...this.methods),this.extends.filter(r=>r.type===n.BuiltInBaseEntity&&r.interactive||r.type===n.PrimitiveEntity).forEach(r=>{r instanceof zr&&e.push(...r.getAllInteractiveMethods())}),p(e)}};f(rl,"repository",{APILoad:async(e,...t)=>null});let ar=rl;function lt(i,s){if(!i)throw new Error("Entity is null");const e=s.get(i.id);switch(i.type){case n.LiteralValue:return e||new _n(i,s);case n.DefinitionEntity:return e||new Yi(i,s);case n.PrimitiveEntity:return e||new ar(i,s);case n.FunctionDeclaration:return e||new Mi(i,s);case n.GlobalEvent:return e||new Vn(i,s);case n.DataType:return e||new wn(i,s);case n.Property:return e||new Bi(i,s);case n.FunctionCall:return e||new qi(i,s);case n.Condition:return e||new Li(i,s);case n.Operation:return e||new gi(i,s);case n.VariableDeclaration:return e||new $i(i,s);case n.VariableInstance:return e||new Ui(i,s);case n.OutputMap:return e||new qr(i,s);case n.ReturnDeclaration:return e||new rr(i,s);case n.ArgumentDeclaration:return e||new Fi(i,s);case n.InputMap:return e||new Zr(i,s);case n.Project:return e||new I(i);case n.InstalledProject:return e||new Gi(i,s);case n.ActionDescriptor:return e||new qe(i,s);case n.ReturnStatement:return e||new _i(i,s);case n.Loop:return e||new Ni(i,s);case n.Search:return e||new ji(i,s);case n.ValueDescriptor:return e||new xi(i,s);case n.BuiltInBaseEntity:return e||new zr(i,s);case n.InternalCall:return e||new Bn(i,s);case n.ContinueStatement:return e||new jt(i,s);case n.BreakStatement:return e||new Cn(i,s);case n.GenericReference:return s.get(i.entityId);default:throw new Error("Invalid entity type: "+i.type)}}function V(i,s){if(!i)throw new Error("Entity is null");const e=lt(i,s);return e.subscribe(),e}function fJ(i,s){if(!i)throw new Error("Entity is null");switch(i.type){case n.LiteralValue:return _n.fromGenerationTarget(i,s);case n.DefinitionEntity:return Yi.fromGenerationTarget(i,s);case n.FunctionDeclaration:return Mi.fromGenerationTarget(i,s);case n.GlobalEvent:return Vn.fromGenerationTarget(i,s);case n.DataType:return wn.fromGenerationTarget(i,s);case n.Property:return Bi.fromGenerationTarget(i,s);case n.FunctionCall:return qi.fromGenerationTarget(i,s);case n.Condition:return Li.fromGenerationTarget(i,s);case n.Operation:return gi.fromGenerationTarget(i,s);case n.VariableDeclaration:return $i.fromGenerationTarget(i,s);case n.VariableInstance:return Ui.fromGenerationTarget(i,s);case n.OutputMap:return qr.fromGenerationTarget(i,s);case n.ReturnDeclaration:return rr.fromGenerationTarget(i,s);case n.ArgumentDeclaration:return Fi.fromGenerationTarget(i,s);case n.InputMap:return Zr.fromGenerationTarget(i,s);case n.InstalledProject:return Gi.fromGenerationTarget(i,s);case n.ReturnStatement:return _i.fromGenerationTarget(i,s);case n.Loop:return Ni.fromGenerationTarget(i,s);case n.Search:return ji.fromGenerationTarget(i,s);case n.ActionDescriptor:return qe.fromGenerationTarget(i,s);case n.ValueDescriptor:return xi.fromGenerationTarget(i,s);case n.InternalCall:return Bn.fromGenerationTarget(i,s);case n.ContinueStatement:return jt.fromGenerationTarget(i,s);case n.BreakStatement:return Cn.fromGenerationTarget(i,s);default:throw new Error("Invalid entity type: "+i.type)}}const Z={seenEntityMaps:new Map,seenEntities:new Set,timestamp:T().toISOString()};class PP{constructor(){f(this,"initialData")}}const L={cascade:!1},wP={APILoad:async(i,...s)=>null},yJ={APICreate:async(i,...s)=>i,APIUpdate:async(i,...s)=>i,APIDelete:async(i,...s)=>i,APIClone:async(i,...s)=>{},APILoadVersion:async(i,s,...e)=>null,...wP};class hJ{}class mJ extends PP{}class vJ{}class TJ{}class EJ{}class Hc{}class IJ extends Hc{}class AJ extends Hc{}class bJ{}class yi{static initReadsValue(s){if(s.initialData.readsValue&&s.initialData.readsValue.type!==n.GenericReference)s.readsValue=V(s.initialData.readsValue,s.project);else if(s.initialData.readsValue&&s.initialData.readsValue.type===n.GenericReference){const e=nr(s.initialData.readsValue,s.project);e&&(s.readsValue=e)}if(s.readsValue){if(Qe.includes(s.readsValue.type)){let e=s.parent;mt.includes(e.type)||(e=e.parent);const t=s.type===n.InputMap&&s.parent.type===n.Loop;t&&(e=s.parent.parent),s.readsValue.setParent(e,null),s.readsValue.initChildren(null),!t&&e.detachedChildren.includes(s)?e.replaceDetachedChild(s,s.readsValue):t||e.subscribeDetachedChild(s.readsValue)}s.readsValue.addValueReader(s)}return s.readsValue}static hydrateReadsValue(s){if(s.initialData.readsValue&&s.initialData.readsValue.type!==n.GenericReference)s.readsValue=V(s.initialData.readsValue,s.project);else if(s.initialData.readsValue&&s.initialData.readsValue.type===n.GenericReference){const e=nr(s.initialData.readsValue,s.project);e&&(s.readsValue=e)}if(s.readsValue){if(Qe.includes(s.readsValue.type)){let e=s.parent;mt.includes(e.type)||(e=e.parent);const t=s.type===n.InputMap&&s.parent.type===n.Loop;t&&(e=s.parent.parent),s.readsValue.setParent(e,null),!t&&e.detachedChildren.includes(s)?e.replaceDetachedChild(s,s.readsValue):t||e.subscribeDetachedChild(s.readsValue)}s.readsValue.addValueReader(s)}return s.readsValue}}class gs{static initWritesValues(s,e){const t=s.initialData.writesValues.reduce((a,d)=>{if(d.type===n.GenericReference||s.writesValues.some(l=>l.id===d.id))return a;const o=V(d,s.project);return o.setValueWriter(s),Qe.includes(o.type)&&(o.setParent(e,null),o.initChildren(null)),[...a,o]},[]),r=[...s.writesValues];return s.writesValues=p([...r,...t]),s.writesValues}}class RJ{}const oe=class oe extends rt{constructor(e){super(e);f(this,"initialData");f(this,"id");f(this,"type",n.Project);f(this,"name",null);f(this,"description",null);f(this,"x");f(this,"y");f(this,"entities",[]);f(this,"projects",[]);f(this,"functions",[]);f(this,"events",[]);f(this,"variableDeclarations",[]);f(this,"variableInstances",[]);f(this,"conditions",[]);f(this,"operations",[]);f(this,"functionCalls",[]);f(this,"loops",[]);f(this,"searches",[]);f(this,"primitives",[]);f(this,"builtInBaseEntities",[]);f(this,"operationDeclarations",[]);f(this,"globalEventActionDescriptors",[]);f(this,"loopDeclarations",[]);f(this,"loopDeclarationsBodies",[]);f(this,"conditionDeclarations",[]);f(this,"valueDescriptors",[]);f(this,"dataTypes",[]);f(this,"project");f(this,"instances",{});f(this,"builtInInstances",{});f(this,"deletedInstances",{});f(this,"errors",[]);f(this,"references",[]);f(this,"history",[]);f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"onCloseChangeSetCallback",null);this.initialData=e,this.id=e.id,this.name=e.name,this.description=e.description,this.x=0,this.y=0,this.instances[this.id]=this;try{(!oe.UUID||oe.UUID.isBackup)&&(oe.UUID=Uo==null?void 0:Uo()),oe.UUID||(oe.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:t=>t})}catch(t){console.error("Error initializing UUID module",t),oe.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:r=>r}}}static injectUUIDModule(e){oe.UUID=e}static validateGenerationTarget(e,t){let r=JSON.parse(JSON.stringify(e));const a=[];return a.push(...ot(r)),{errors:a,modifiedData:r}}async closePendingCallbacks(){for(let e=0;e<this.history.length;e++){const t=this.history[e];t.dirty&&await this.closeChangeSet(t)}}async onCloseChangeSet(e){this.onCloseChangeSetCallback=e,await this.closePendingCallbacks()}async closeChangeSet(e){if(this.onCloseChangeSetCallback){const t=await this.onCloseChangeSetCallback(e);return t.success&&(e.dirty=!1),t}return{success:!1}}addChangeSet(e){if(!this.history.length)return this.history.push(e),e;const t=this.history.find(a=>a.id===(e==null?void 0:e.id));if(t)return t;const r=this.history.findIndex(a=>T(a.timestamp).isBefore(T(e==null?void 0:e.timestamp)));return r===-1?this.history.push(e):this.history.splice(r,0,e),e}discardChangeSet(e){const t=this.history.findIndex(r=>r.id===(e==null?void 0:e.id));return t!==-1&&this.history.splice(t,1),this}undo(){const e=[],t=[],r=[],a=[];return{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}redo(){const e=[],t=[],r=[],a=[];return{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}async inject(...e){return await Promise.all(e.map(t=>new Promise(async r=>{await t.init(this),r(null)}))),this}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],r=[],a=[];return Object.values(this.detachedDependents).forEach(d=>{const o=d.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),r.push(...o.removed),a.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}onDetachedDependencyRemoved(e,t,r){const a=[],d=[],o=[],l=[];return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,r){const a=[],d=[],o=[],l=[];return{updated:p(a),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){return this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=oe.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t,r;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new oe(this);return(r=this.knownVersions)==null||r.set(this.version,e),e.entities=this.entities,e.projects=this.projects,e.functions=this.functions,e.events=this.events,e.variableDeclarations=this.variableDeclarations,e.variableInstances=this.variableInstances,e.conditions=this.conditions,e.operations=this.operations,e.functionCalls=this.functionCalls,e.loops=this.loops,e.searches=this.searches,this}recursiveCaptureUpstreamVersions(e){const t=[],r=[],a=[],d=[];return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],r=[],a=[],d=[];if(this.version===e)return{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[h,c]of this.knownVersions||new Map){if(u.set(h,c),c.activeVersion=!1,c.knownVersions)for(const[v,E]of c.knownVersions)u.set(v,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new oe(u)}return this.metaSync(o.toShallowJSON(),null),this.entities=o.entities,this.projects=o.projects,this.functions=o.functions,this.events=o.events,this.variableDeclarations=o.variableDeclarations,this.variableInstances=o.variableInstances,this.conditions=o.conditions,this.operations=o.operations,this.functionCalls=o.functionCalls,this.loops=o.loops,this.searches=o.searches,{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],r=[],a=[];return{updated:p(e),added:p(t),removed:p(r),affected:p(a),self:this}}afterAllChildrenInitialized(e=null){const t=[],r=[],a=[],d=[];return this.initialized=!0,this.captureVersion(),this.validate(),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}addSelfToProject(e){const t=[],r=[],a=[],d=[];return this.subscribe(),this.subscribeToDependencies(),{updated:p(t),added:p(r),removed:p(a),affected:p(d),self:this}}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(e){return this.operationDeclarations.includes(e)}isGlobalEventActionDescriptor(e){return this.globalEventActionDescriptors.includes(e)}isLoopDeclaration(e){return this.loopDeclarations.includes(e)}isConditionDeclaration(e){return this.conditionDeclarations.includes(e)}initChildren(e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.projects=this.initialData.projects.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.variableDeclarations=this.initialData.variableDeclarations.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.variableInstances=this.initialData.variableInstances.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.conditions=this.initialData.conditions.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.operations=this.initialData.operations.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.functions=this.initialData.functions.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.events=this.initialData.events.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.functionCalls=this.initialData.functionCalls.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.loops=this.initialData.loops.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.searches=this.initialData.searches.map(t=>{const r=V(t,this);return r.setParent(this,null),r.initChildren(e),r}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[e.id]=e),this}subscribeDeletedInstance(e){return(!this.deletedInstances[e.id]||this.deletedInstances[e.id]!==e)&&(this.deletedInstances[e.id]=e),this}subscribeBuiltInInstance(e){return(!this.builtInInstances[e.id]||this.builtInInstances[e.id]!==e)&&(this.builtInInstances[e.id]=e),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(e){return delete this.instances[e.id],this}unsubscribeDeletedInstance(e){return delete this.deletedInstances[e.id],this}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getDeleted(e){return this.deletedInstances[e]||null}getManaged(e){return this.getBuiltIn(e)?null:this.instances[e]||null}getBuiltIn(e){return this.builtInInstances[e]||null}findSubscribedInstanceFromReference(e){return this.instances[e.entityId]||null}findSubscribedBuiltInInstanceFromReference(e){return this.builtInInstances[e.entityId]||null}metaSync(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-meta"))){const r=dt(this,e);return e.deleted===!0&&!this.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&this.deleted?t==null||t.add(this,b.Added):r&&(t==null||t.add(this,b.Updated)),super.metaSync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,t==null||t.attemptAutoclose("sync-meta",this.id),this}async APILoad(e=L,...t){return await oe.repository.APILoad(this.id,...t),this}async APICreate(e=L,...t){return await oe.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=L,...t){return await oe.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=L,...t){return await oe.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=L,...t){return await oe.repository.APIClone(this.id,...t),this}async APILoadVersion(e=L,t,...r){return await oe.repository.APILoadVersion(this.id,t,...r)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"remove-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},e=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"restore-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlatIds(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlatIds(e)),...this.operationDeclarations.flatMap(t=>t.toFlatIds(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlatIds(e)),...this.loopDeclarations.flatMap(t=>t.toFlatIds(e)),...this.conditionDeclarations.flatMap(t=>t.toFlatIds(e)),...this.valueDescriptors.flatMap(t=>t.toFlatIds(e)),...this.dataTypes.flatMap(t=>t.toFlatIds(e))]}getAllBuiltIn(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlat(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlat(e)),...this.operationDeclarations.flatMap(t=>t.toFlat(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlat(e)),...this.loopDeclarations.flatMap(t=>t.toFlat(e)),...this.conditionDeclarations.flatMap(t=>t.toFlat(e)),...this.valueDescriptors.flatMap(t=>t.toFlat(e)),...this.dataTypes.flatMap(t=>t.toFlat(e))]}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.entities.flatMap(r=>r.toFlat(e)),...this.functions.flatMap(r=>r.toFlat(e)),...this.events.flatMap(r=>r.toFlat(e)),...this.projects.flatMap(r=>r.toFlat(e)),...this.variableDeclarations.flatMap(r=>r.toFlat(e)),...this.variableInstances.flatMap(r=>r.toFlat(e)),...this.conditions.flatMap(r=>r.toFlat(e)),...this.operations.flatMap(r=>r.toFlat(e)),...this.functionCalls.flatMap(r=>r.toFlat(e)),...this.loops.flatMap(r=>r.toFlat(e)),...this.searches.flatMap(r=>r.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.entities.flatMap(r=>r.toFlatIds(e)),...this.functions.flatMap(r=>r.toFlatIds(e)),...this.events.flatMap(r=>r.toFlatIds(e)),...this.projects.flatMap(r=>r.toFlatIds(e)),...this.variableDeclarations.flatMap(r=>r.toFlatIds(e)),...this.variableInstances.flatMap(r=>r.toFlatIds(e)),...this.conditions.flatMap(r=>r.toFlatIds(e)),...this.operations.flatMap(r=>r.toFlatIds(e)),...this.functionCalls.flatMap(r=>r.toFlatIds(e)),...this.loops.flatMap(r=>r.toFlatIds(e)),...this.searches.flatMap(r=>r.toFlatIds(e))])}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.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(t=>t.toJSON(e)),variableDeclarations:this.variableDeclarations.map(t=>t.toJSON(e)),variableInstances:this.variableInstances.map(t=>t.toJSON(e)),conditions:this.conditions.map(t=>t.toJSON(e)),operations:this.operations.map(t=>t.toJSON(e)),loops:this.loops.map(t=>t.toJSON(e)),searches:this.searches.map(t=>t.toJSON(e)),functions:this.functions.map(t=>t.toJSON(e)),events:this.events.map(t=>t.toJSON(e)),projects:this.projects.map(t=>t.toJSON(e)),functionCalls:this.functionCalls.map(t=>t.toJSON(e))})}toJSONClone(e={uuidStrategy:"uuid"}){const t=new Map,r=new Set,a=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(d=>{if(a.includes(d)){t.set(d,d);return}t.set(d,oe.UUID.uuid())}),r.add(this.id),{id:t.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(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),projects:this.projects.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),variableDeclarations:this.variableDeclarations.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),variableInstances:this.variableInstances.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),conditions:this.conditions.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),operations:this.operations.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),functions:this.functions.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),events:this.events.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),functionCalls:this.functionCalls.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),loops:this.loops.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null})),searches:this.searches.map(d=>d.toJSONClone({...e,seenEntityMaps:t,seenEntities:r,newId:null}))}}toReference(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+oe.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=Z){var r;let t=this.id;return(r=e.seenEntityMaps)!=null&&r.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,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.toReference(e)),functions:this.functions.map(a=>a.toReference(e)),events:this.events.map(a=>a.toReference(e)),projects:this.projects.map(a=>a.toReference(e)),variableDeclarations:this.variableDeclarations.map(a=>a.toReference(e)),variableInstances:this.variableInstances.map(a=>a.toReference(e)),conditions:this.conditions.map(a=>a.toReference(e)),operations:this.operations.map(a=>a.toReference(e)),functionCalls:this.functionCalls.map(a=>a.toReference(e)),loops:this.loops.map(a=>a.toReference(e)),searches:this.searches.map(a=>a.toReference(e))}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(r=>r.toFlatJSON(e)),...this.functions.flatMap(r=>r.toFlatJSON(e)),...this.events.flatMap(r=>r.toFlatJSON(e)),...this.projects.flatMap(r=>r.toFlatJSON(e)),...this.variableDeclarations.flatMap(r=>r.toFlatJSON(e)),...this.variableInstances.flatMap(r=>r.toFlatJSON(e)),...this.conditions.flatMap(r=>r.toFlatJSON(e)),...this.operations.flatMap(r=>r.toFlatJSON(e)),...this.functionCalls.flatMap(r=>r.toFlatJSON(e)),...this.loops.flatMap(r=>r.toFlatJSON(e)),...this.searches.flatMap(r=>r.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(r=>r.toFlatGenerationTarget(e)),...this.functions.flatMap(r=>r.toFlatGenerationTarget(e)),...this.events.flatMap(r=>r.toFlatGenerationTarget(e)),...this.projects.flatMap(r=>r.toFlatGenerationTarget(e)),...this.variableDeclarations.flatMap(r=>r.toFlatGenerationTarget(e)),...this.variableInstances.flatMap(r=>r.toFlatGenerationTarget(e)),...this.conditions.flatMap(r=>r.toFlatGenerationTarget(e)),...this.operations.flatMap(r=>r.toFlatGenerationTarget(e)),...this.functionCalls.flatMap(r=>r.toFlatGenerationTarget(e)),...this.loops.flatMap(r=>r.toFlatGenerationTarget(e)),...this.searches.flatMap(r=>r.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.entities.forEach(e=>e.clearErrors()),this.projects.forEach(e=>e.clearErrors()),this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this.variableDeclarations.forEach(e=>e.clearErrors()),this.variableInstances.forEach(e=>e.clearErrors()),this.conditions.forEach(e=>e.clearErrors()),this.operations.forEach(e=>e.clearErrors()),this.functionCalls.forEach(e=>e.clearErrors()),this.loops.forEach(e=>e.clearErrors()),this.searches.forEach(e=>e.clearErrors()),this}validate(){const e=B5(),t=this.toJSON();return e.safeParse(t),this.validateChildren(),{success:!0,error:null,data:t}}validateChildren(){this.entities.forEach(e=>e.validate()),this.projects.forEach(e=>e.validate()),this.functions.forEach(e=>e.validate()),this.events.forEach(e=>e.validate()),this.variableDeclarations.forEach(e=>e.validate()),this.variableInstances.forEach(e=>e.validate()),this.conditions.forEach(e=>e.validate()),this.operations.forEach(e=>e.validate()),this.functionCalls.forEach(e=>e.validate()),this.loops.forEach(e=>e.validate()),this.searches.forEach(e=>e.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(t=>t.getErrors()),...this.projects.flatMap(t=>t.getErrors()),...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors()),...this.variableDeclarations.flatMap(t=>t.getErrors()),...this.variableInstances.flatMap(t=>t.getErrors()),...this.conditions.flatMap(t=>t.getErrors()),...this.operations.flatMap(t=>t.getErrors()),...this.functionCalls.flatMap(t=>t.getErrors()),...this.loops.flatMap(t=>t.getErrors()),...this.searches.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return this}getDefinitionEntity(e){return this.entities.find(t=>t.id===e)||null}addDefinitionEntityFromTransfer(e){const t=V(e,this);return this.addDefinitionEntity(t),t}addDefinitionEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=V(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=V(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=V(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=V(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=V(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=V(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=V(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=V(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=V(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=V(e,this);return this.addSearch(t),this}addSearch(e){return this.searches.includes(e)||this.searches.push(e),this}removeDefinitionEntity(e){const t=this.entities.findIndex(r=>r.id===e.id);if(t>-1){const r=this.entities[t];return this.entities.splice(t,1),r}return null}removeFunctionDeclaration(e){const t=this.functions.findIndex(r=>r.id===e.id);if(t>-1){const r=this.functions[t];return this.functions.splice(t,1),r}return null}removeExternalProject(e){const t=this.projects.findIndex(r=>r.id===e.id);if(t>-1){const r=this.projects[t];return this.projects.splice(t,1),r}return null}removeGlobalEvent(e){const t=this.events.findIndex(r=>r.id===e.id);if(t>-1){const r=this.events[t];return this.events.splice(t,1),r}return null}removeTopLevelVariableDeclaration(e){if(e.type!==n.VariableDeclaration)return null;const t=this.variableDeclarations.findIndex(r=>r.id===e.id);if(t>-1){const r=this.variableDeclarations[t];return this.variableDeclarations.splice(t,1),r}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(t=>t.methods)]}getFunctionDeclaration(e){return this.functions.find(t=>t.id===e)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[]),...this.functionCalls.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[]),...this.operations.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[]),...this.loops.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[]),...this.searches.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[]),...this.functionCalls.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[]),...this.conditions.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[]),...this.loops.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[]),...this.searches.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[]),...this.conditions.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[]),...this.operations.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[]),...this.loops.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[]),...this.searches.reduce((t,r)=>{const a=it(r);return[...t,...a.filter(d=>d.type===n.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.functionCalls.reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.conditions.reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.operations.reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.loops.reduce((t,r)=>{const a=We(r);return[...t,...a]},[]),...this.searches.reduce((t,r)=>{const a=We(r);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.functionCalls.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.conditions.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.operations.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.loops.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[]),...this.searches.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableInstance);return[...t,...d]},[])]}getVariableDeclarations(){return p([...this.variableDeclarations,...this.getEntryPoints().reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.functionCalls.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.conditions.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.operations.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.loops.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[]),...this.searches.reduce((t,r)=>{const d=We(r).filter(o=>o.type===n.VariableDeclaration);return[...t,...d]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(r=>{if(!r.declaration){const a=r.initialData,d=a.declaration.entityId||a.declaration.id,o=t.find(l=>l.id===d);o&&r.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===Y.PERSISTED_ENTITY)||null}};f(oe,"sessionAuthor","1"),f(oe,"UUID",{isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),f(oe,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...r)=>null}),f(oe,"type",n.Project),f(oe,"USER_MANAGED_PARENT_TYPES",[]),f(oe,"PARENT_TYPES",[...oe.USER_MANAGED_PARENT_TYPES]),f(oe,"MUTABLE_BASE_PROPERTIES",["name","description"]),f(oe,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(oe,"BASE_PROPERTIES",[...oe.MUTABLE_BASE_PROPERTIES,...oe.INMUTABLE_BASE_PROPERTIES]),f(oe,"MUTABLE_META_PROPERTIES",[...oe.MUTABLE_BASE_PROPERTIES,"x","y"]),f(oe,"INMUTABLE_META_PROPERTIES",[...oe.INMUTABLE_BASE_PROPERTIES]),f(oe,"META_PROPERTIES",[...oe.MUTABLE_META_PROPERTIES,...oe.INMUTABLE_META_PROPERTIES]),f(oe,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(oe,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),f(oe,"UPSTREAM_PROPERTIES",[...oe.MUTABLE_UPSTREAM_PROPERTIES,...oe.INMUTABLE_UPSTREAM_PROPERTIES]),f(oe,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),f(oe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(oe,"DOWNSTREAM_PROPERTIES",[...oe.MUTABLE_DOWNSTREAM_PROPERTIES,...oe.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(oe,"PROPERTIES",[...oe.META_PROPERTIES,...oe.UPSTREAM_PROPERTIES,...oe.DOWNSTREAM_PROPERTIES]);let I=oe;var VP=(i=>(i.PersistChangeSet="persist-change-set",i.CreateSingle="create-single",i.CreateBulk="create-bulk",i.CreateSingleNested="create-single-nested",i.CreateBulkNested="create-bulk-nested",i.Update="update",i.Clone="clone",i.Delete="delete",i.Load="load",i.LoadNested="load-nested",i.LoadVersion="load-version",i))(VP||{});class CP extends qe{constructor(e){super(br,e);f(this,"id",He.Parallel);f(this,"name",He.Parallel);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",br);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=br.inputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.outputs=br.outputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.error=br.error?V(br.error,this.project):null}}class BP extends qe{constructor(e){super(Ft,e);f(this,"id",Ft.id);f(this,"name",Ft.name);f(this,"description",Ft.description);f(this,"version",Ft.version);f(this,"autoexecutable",!1);f(this,"initialData",Ft);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=Ft.inputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.outputs=Ft.outputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.error=Ft.error?V(Ft.error,this.project):null}}class _P extends qe{constructor(e){super(ti,e);f(this,"id",He.Sequential);f(this,"name",He.Sequential);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",ti);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=ti.inputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.outputs=ti.outputs.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.error=ti.error?V(ti.error,this.project):null}}class DJ extends qe{constructor(s){super(wa,s)}}class OJ extends qe{constructor(s){super(Xi,s)}}class PJ extends qe{constructor(e){super(Qi,e);f(this,"autoexecutable",!0)}getEntityToMatchInputMap(e){return e.inputs.find(t=>{var r;return((r=t.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(e){return e.inputs.find(t=>{var r;return((r=t.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(e){return e.outputs.find(t=>{var r;return((r=t.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].outputs.outputEntity.id})||null}getEntityToMatch(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"get-entity-to-match-validate-data"))){let r=null;if(e.readsValue){const d=e.readsValue.getDataType(t);d&&d.entity&&d.entity.type===n.DefinitionEntity&&(r=d.entity)}const a=e.getDefaultValue();return!r&&a&&a.valueAsTypeSingle&&!Array.isArray(a.valueAsTypeSingle)&&a.valueAsTypeSingle.type===n.DefinitionEntity&&(r=a.valueAsTypeSingle),r}syncOperationInstance(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const r=[],a=[],d=[],o=[],l=this.getEntityToMatchInputMap(e);if(l){const{added:c,updated:v,removed:E,affected:O}=this.syncEntityToMatchInputMapDataType(l,t);r.push(...v),a.push(...c),d.push(...E),o.push(...O)}const u=this.getDataToValidateInputMap(e);if(u){const{added:c,updated:v,removed:E,affected:O}=this.syncDataToValidateInputMapDataType(u,t);r.push(...v),a.push(...c),d.push(...E),o.push(...O)}const h=this.getOutputDataOutputMap(e);if(h){const{added:c,updated:v,removed:E,affected:O}=this.syncOutputDataOutputMapDataType(h,t);r.push(...v),a.push(...c),d.push(...E),o.push(...O)}return t==null||t.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:p(r),added:p(a),removed:p(d),affected:p(o),self:e}}syncEntityToMatchInputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var u,h,c;const r=[],a=[],d=[],o=[];if(((u=e.declaration)==null?void 0:u.id)!==x.operation[Ke.Validate].inputs.entityToMatch.id)return t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const v={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:null,like:!0,inferred:!0,parent:e.toReference()},E=V(v,e.project);E.setParent(e,t),E.initChildren(t),t==null||t.add(E,b.Added),r.push(E),e.setDataType(E)}(h=e.dataType)==null||h.metaSync({inferred:!0,like:!1,asType:!0},t);const l=this.getEntityToMatch(e,t);return(c=e.dataType)==null||c.setEntity(l),e.dataType&&a.push(e.dataType),t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:p(a),added:p(r),removed:p(d),affected:p(o),self:e.dataType}}syncDataToValidateInputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var c,v,E;const r=[],a=[],d=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==x.operation[Ke.Validate].inputs.dataToValidate.id)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const l=this.getEntityToMatchInputMap(e.parent);if(!l)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(l,t))return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},w=V(O,e.project);w.setParent(e,t),w.initChildren(t),t==null||t.add(w,b.Added),r.push(w),e.setDataType(w)}(v=e.dataType)==null||v.metaSync({inferred:!0,like:!0,asType:!1},t);const h=this.getEntityToMatch(l,t);return(E=e.dataType)==null||E.setEntity(h),e.dataType&&a.push(e.dataType),t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:p(a),added:p(r),removed:p(d),affected:p(o),self:e.dataType}}syncOutputDataOutputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var c,v,E;const r=[],a=[],d=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==x.operation[Ke.Validate].outputs.outputEntity.id)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const l=this.getEntityToMatchInputMap(e.parent);if(!l)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(l,t))return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:I.UUID.uuid(),version:I.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},w=V(O,e.project);w.setParent(e,t),w.initChildren(t),t==null||t.add(w,b.Added),r.push(w),e.setDataType(w)}(v=e.dataType)==null||v.metaSync({inferred:!0,like:!0,asType:!1},t);const h=this.getEntityToMatch(l,t);return(E=e.dataType)==null||E.setEntity(h),e.dataType&&a.push(e.dataType),t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:p(a),added:p(r),removed:p(d),affected:p(o),self:e.dataType}}inferInputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var r,a;if(((r=e.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].inputs.entityToMatch.id){const{added:d,updated:o,removed:l,affected:u}=this.syncEntityToMatchInputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:p(o),added:p(d),removed:p(l),affected:p(u),self:e.dataType}}else if(((a=e.declaration)==null?void 0:a.id)===x.operation[Ke.Validate].inputs.dataToValidate.id){const{added:d,updated:o,removed:l,affected:u}=this.syncDataToValidateInputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-input-map-data-type",this.id),{updated:p(o),added:p(d),removed:p(l),affected:p(u),self:e.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(e,t=this.project.addChangeSet(new R(this.project,"",T().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var r;if(((r=e.declaration)==null?void 0:r.id)===x.operation[Ke.Validate].outputs.outputEntity.id){const{added:a,updated:d,removed:o,affected:l}=this.syncOutputDataOutputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:p(d),added:p(a),removed:p(o),affected:p(l),self:e.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class wJ extends qe{constructor(s){super(yl,s)}}class VJ extends qe{constructor(s){super(ml,s)}}class CJ extends qe{constructor(s){super(vl,s)}}class BJ extends qe{constructor(s){super(Zs,s)}}class _J extends qe{constructor(s){super(xs,s)}}class MJ extends qe{constructor(s){super(Pa,s)}}function gJ(i){const s=[new _P(i),new CP(i),new BP(i),new DJ(i),new OJ(i),new PJ(i),new BJ(i),new wJ(i),new CJ(i),new VJ(i),new _J(i),new MJ(i),new qe(fl,i),new qe(cl,i)];return s.forEach(e=>{e.initChildren(null),i.subscribeBuiltInInstance(e)}),i.operationDeclarations=s,s}class MP extends zr{constructor(e){super(Pt,e);f(this,"initialData");f(this,"id",Y.PERSISTED_ENTITY);f(this,"version","1");f(this,"name",Y.PERSISTED_ENTITY);f(this,"description",Pt.description);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",Pt.abstract);f(this,"static",Pt.static);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=Pt,this.project=e,this.id=Pt.id,this.version=Pt.version,this.name=Pt.name,this.static=Pt.static,this.abstract=Pt.abstract,this.properties=this.initialData.properties.map(t=>{const r=V(t,this.project);return r.setParent(this,null),r.initChildren(null),r}),this.methods=this.initialData.methods.map(t=>{const r=V(t,this.project);return r.parent=this,r}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const r=V(t,this.project);return r.parent=this,r}),this.extends=this.initialData.extends.map(t=>V(t,this.project))}}function NJ(i){const s=[new MP(i),new zr(ga,i),new zr(Nr,i),new zr(oo,i)];return s.forEach(e=>{i.subscribeBuiltInInstance(e)}),i.builtInBaseEntities=s,s}function LJ(i){const s=[new ar(ne,i),new ar(Kr,i),new ar(me,i),new ar(sl,i),new ar(Rt,i),new ar(Xr,i),new ar(_r,i),new ar(Qr,i),new ar(jn,i)];return s.forEach(e=>{i.subscribeBuiltInInstance(e)}),i.primitives=s,s}function UJ(i){const s=[new qe(uo,i)];return s.forEach(e=>{e.initChildren(null),i.subscribeBuiltInInstance(e)}),i.globalEventActionDescriptors=s,s}function $J(i){const s=[new qe(_a,i),new qe(mi,i),new qe(Ca,i),new qe(xn,i),new qe(Sn,i),new qe(Xs,i)];s.forEach(t=>{t.initChildren(null),i.subscribeBuiltInInstance(t)}),i.loopDeclarations=s;const e=[new qe(ro,i),new qe(Ba,i),new qe(eo,i),new qe(Bl,i),new qe(Ml,i),new qe(Qs,i)];return e.forEach(t=>{t.initChildren(null),i.subscribeBuiltInInstance(t)}),i.loopDeclarationsBodies=e,s}function jJ(i){const s=[new xi(po,i)];return s.forEach(e=>{e.initChildren(null),i.subscribeBuiltInInstance(e)}),i.valueDescriptors=s,s}function GJ(i){const s=[new qe(an,i),new qe(Wn,i)];return s.forEach(e=>{e.initChildren(null),i.subscribeBuiltInInstance(e)}),i.operationDeclarations=s,s}const gn={},Qd={},Ns={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function gP(i,{enrich:s}={enrich:!0}){const e=i.project,t=i.record,r=new Fd(e),a=new Set;t[e.id]=e,a.add(e.id);const d=T().toISOString();Object.values(t).forEach(u=>{!u||r.allBuiltInEntityIds.includes(u.id)||a.add(u.id)}),r.order=Array.from(a),r.flatRecord=t,r.orderEntities();const o=el(i.project);o.instances[e.id]=o;const l=s?o.addChangeSet(new R(o,"",d,o)):null;return r.visit(u=>{if(u.id===o.id)return;const h=V(u,o);h.hydrateAncestors(),h.addSelfToProject(null)}),s?(r.visit(u=>{const h=o.get(u.id);h&&h.afterAllChildrenInitialized(l)}),o.afterAllChildrenInitialized(l)):tl(o,d).forEach(h=>{h.remove({ignoreUpstream:!0},null)}),o.instancesList.forEach(u=>{u.previousVersion=null}),l==null||l.close(),o}async function FJ(i,s=Ns){const e={...Ns,...s};if(e.empty)return{data:{project:{id:i.id,type:n.Project,version:I.UUID.uuid(),createdAt:T().toISOString(),author:I.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(e.mock){const r={...ip};return r.id=i.id,{data:{project:r,record:{}}}}return console.log("Fetching project from external API"),new Promise(async r=>{if(e.onFetch){const a=await e.onFetch(i.id);if(a){r({data:a});return}}else r({data:null})})}function el(i){const s=new I(i);return LJ(s),NJ(s),gJ(s),UJ(s),$J(s),jJ(s),GJ(s),Array.from(new Set([...s.getAllBuiltInIds(),...Vr()])).forEach(t=>{if(!s.builtInInstances[t]&&s.instances[t])s.builtInInstances[t]=s.instances[t],delete s.instances[t];else if(!s.builtInInstances[t])throw new Error(`Built in entity was not properly initialized: ${t}`)}),s}function tl(i,s){return i.instancesList.filter(t=>T(t.createdAt).isAfter(T(s)||!!t.previousVersion))}function xJ(i,{enrich:s}={enrich:!0}){const e=new Map,t=Array.from(new Set([...i.getAllBuiltInIds(),...Vr()]));Object.keys(i.instances).forEach(u=>{if(t.includes(u)){e.set(u,u);return}const h=i.get(u);if(!Xd(h,{...i.instances,...i.builtInInstances}).every(E=>!t.includes(E))){e.set(u,u);return}e.set(u,I.UUID.uuid())});const r=T().toISOString(),a=i.toShallowJSON({seenEntityMaps:e});a.previousVersion=null,a.createdAt=r,a.version=I.UUID.uuid();const d=el(a),o=s?d.addChangeSet(new R(d,"",r,d)):null,l=new Fd(i);return l.visit(u=>{const h=u.toShallowJSON({seenEntityMaps:e});h.previousVersion=null,h.createdAt=r,h.version=I.UUID.uuid();const c=V(h,d);c.hydrateAncestors(),c.addSelfToProject(o),o==null||o.add(c,b.Added)}),s?(l.visit(u=>{const h=d.get(e.get(u.id));h&&h.afterAllChildrenInitialized(o)}),d.afterAllChildrenInitialized(o)):tl(d,r).forEach(h=>{h.remove({ignoreUpstream:!0},null)}),d.instancesList.forEach(u=>{u.previousVersion=null}),o==null||o.close(),d}function NP(i,{enrich:s}={enrich:!0}){const e=el(i),t=T().toISOString(),r=s?e.addChangeSet(new R(e,"",t,e)):null;r&&(r.type=Ac.Automatic);const a=new Fd(i);return a.visit(d=>{const o=V(d,e);o.hydrateAncestors(),o.addSelfToProject(r)}),s?(a.visit(d=>{const o=e.get(d.id);o&&o.afterAllChildrenInitialized(r)}),e.afterAllChildrenInitialized(r)):tl(e,t).forEach(o=>{o.remove({ignoreUpstream:!0},null)}),r==null||r.close(),e}async function SJ(i,s=Ns){const e={...Ns,...s};if(i.id&&gn[i.id]&&!e.ignoreCache)return gn[i.id];if(i.id&&Qd[i.id]&&!e.ignoreCache)return await Qd[i.id],gn[i.id];const t=FJ(i,e);i.id&&(Qd[i.id]=t);const r=await t;if(r.data){let a;return e.mock?a=NP(ip,{enrich:!!e.enrich}):r.data instanceof I?a=r.data:a=gP(r.data,{enrich:!!e.enrich}),gn[i.id]=a,i.id&&delete Qd[i.id],a}return null}function kJ(i){return gn[i.id]&&delete gn[i.id],null}const ZJ="test_primitive_entities_export";y.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Mc,y.ALL_BUILT_IN_BASE_ENTITIES=NE,y.ALL_BUILT_IN_CONDITION_ENTITIES=zE,y.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=HE,y.ALL_BUILT_IN_LOOP_BODY_ENTITIES=uT,y.ALL_BUILT_IN_LOOP_ENTITIES=lT,y.ALL_BUILT_IN_OPERATION_ENTITIES=A0,y.ALL_BUILT_IN_PRIMITIVE_ENTITIES=lf,y.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=eI,y.ALL_BUILT_IN_VALUE_DESCRIPTORS=QE,y.ActionDescriptorState=qe,y.ActionInputMapState=yq,y.ActionOutputMapState=vq,y.AppendToListOperationInputIds=vh,y.AppendToListOperationOutputIds=Th,y.ArgumentDeclarationDependencyField=aO,y.ArgumentDeclarationState=Fi,y.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=Vc,y.BUILT_IN_BASE_ENTITY_IDS=x,y.BUILT_IN_ENTITY_TYPES=hr,y.BaseCanvasDraggableState=vJ,y.BaseEntityNames=Y,y.BaseState=mJ,y.BaseValueDescriptorIds=Fs,y.BreakStatementDependencyField=Rc,y.BreakStatementState=Cn,y.BuiltInBaseEntityState=zr,y.CACHED_PROJECTS_BY_ID=gn,y.CALLABLE_ENTITIES_EXPLANATION=Oq,y.CALLABLE_TYPES=Cr,y.CALLER_ENTITIES_EXPLANATION=uO,y.CALLER_TYPES=Br,y.CALLS_UPDATE_EXPLANATION=ki,y.COMPARISON_CONDITIONS=JE,y.CONDITIONS=WE,y.CUSTOM_ENTITY_OPERATIONS=Gm,y.CallableEntityClass=EJ,y.CallerEntityClass=Hc,y.ChangeSet=R,y.ChangeSetChangeCaptureType=Ac,y.ChangeSetEntityChangeType=b,y.ChildEntityState=TJ,y.ComparisonOperatorTypes=pt,y.ConditionDependencyField=Q1,y.ConditionState=Li,y.ContinueStatementDependencyField=bc,y.ContinueStatementState=jt,y.CreateNewInputIds=fm,y.CreateNewOutputIds=ym,y.DRAGGABLE_CALLABLE_TYPES=al,y.DRAGGABLE_CALLER_TYPES=ef,y.DRAGGABLE_ELEMENT_TYPES=Gs,y.DRAGGABLE_EXECUTABLE_TYPES=GP,y.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=js,y.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=nl,y.DataTypeCompatibilityTypes=Er,y.DataTypeDependencyField=Y1,y.DataTypeParentChildRelation=bt,y.DataTypeState=wn,y.DefinitionEntityDependencyField=OP,y.DefinitionEntityState=Yi,y.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=yJ,y.ENTITIES_WITH_VALLUES_EXPLANATION=Ld,y.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=L,y.ENTITY_RECUSION_OPTIONS_DEFAULTS=Z,y.ENTITY_TYPES=FP,y.ENTITY_WITH_DECLARATION_TYPES=$P,y.ENTITY_WITH_LOGIC_SCOPE_TYPES=mt,y.ENTITY_WITH_NAMES_TYPES=tf,y.ENTITY_WITH_PARENT_TYPES=LP,y.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=Xc,y.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=UP,y.ENTITY_WITH_VALUE_TYPES=Kc,y.ENTRY_POINT_ENTITIES_EXPLANATION=Ps,y.ENTRY_POINT_TYPES=at,y.EVENT_TYPES=$n,y.EXECUTABLE_TYPES=jP,y.EXECUTION_OPERATIONS=cm,y.EntityAction=VP,y.EntityError=hn,y.EntityErrorSeverity=D,y.EntityGenerationError=P,y.EntityGenerationErrorCode=A,y.EntityInstanceErrorCode=q,y.EntityOperations=Ke,y.EntityType=n,y.EntityWithLogicScopeClass=RJ,y.EntityWithValueClass=bJ,y.EntryPointEntityClass=IJ,y.ExecutionOperations=He,y.ExecutionTerminationType=K1,y.FunctionCallDependencyField=IO,y.FunctionCallState=qi,y.FunctionDeclarationDependencyField=z1,y.FunctionDeclarationState=Mi,y.GET_PROJECT_OPTIONS_DEFAULTS=Ns,y.GLOBAL_EVENT_DECLARATIONS=YE,y.GetLastInListOperationInputIds=ah,y.GetLastInListOperationOutputIds=sh,y.GlobalEventNames=Hr,y.GlobalEventState=Vn,y.HTTPOperations=Ct,y.HTTP_OPERATIONS=E0,y.InputMapDependencyField=iO,y.InputMapState=Zr,y.InstalledProjectState=Gi,y.InternalCallDependencyField=rO,y.InternalCallState=Bn,y.JoinListOperationInputIds=Oy,y.JoinListOperationOutputIds=Py,y.LIST_OPERATIONS=_h,y.ListOperations=fe,y.LiteralValueDependencyField=sO,y.LiteralValueState=_n,y.LoopDependencyField=X1,y.LoopState=Ni,y.LoopTypes=X,y.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=Zi,y.NUMBER_OPERATIONS=Gf,y.NumberOperations=Xe,y.OPERATION_DECLARATIONS=I0,y.OperationDependencyField=H1,y.OperationState=gi,y.OutputMapDependencyField=nO,y.OutputMapParentChildRelation=Un,y.OutputMapState=qr,y.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=Ud,y.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Si,y.PASS_THROUGH_CALLABLE_TYPES=nt,y.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=Qc,y.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=_c,y.ParallelExecutionOperation=CP,y.PassThroughCallableEntityClass=AJ,y.PersistedEntity=MP,y.PersistedEntityMethods=or,y.PrimitiveEntityState=ar,y.PrimitiveTypes=g,y.ProjectState=I,y.PropertyDependencyField=J1,y.PropertyState=Bi,y.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=wP,y.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=Pq,y.ReturnDeclarationDependencyField=W1,y.ReturnDeclarationState=rr,y.ReturnStatementDependencyField=_d,y.ReturnStatementState=_i,y.STANDALONE_CONDITIONS=$E,y.STRING_OPERATIONS=Dy,y.ScopeCompatibilityType=Kd,y.SearchDependencyField=tO,y.SearchState=ji,y.SequentialExecutionOperation=_P,y.SequentialExecutionOperationInputIds=Qh,y.SequentialExecutionOperationOutputIds=em,y.SharedEntityErrorCode=j,y.SharedStateFunctionality=PP,y.SplitListOperationInputIds=xy,y.SplitListOperationOutputIds=Sy,y.StandaloneOperatorTypes=yr,y.StringOperations=Ee,y.TERMINATION_TYPES=st,y.Traverser=Fd,y.USER_MANAGED_ENTITY_TYPES=rf,y.UserManagedEntityStateTemplate=hJ,y.VALUE_READING_ENTITIES_EXPLANATION=Bc,y.VALUE_READING_TYPES=hi,y.VALUE_WRITING_ENTITIES_EXPLANATION=pO,y.VALUE_WRITING_TYPES=ht,y.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=Cc,y.VARIABLE_TYPES=Qe,y.ValueAutogenerationType=yt,y.ValueDescriptorDependencyField=oO,y.ValueDescriptorParentChildRelation=M,y.ValueDescriptorState=xi,y.ValueReadingEntityClass=yi,y.ValueWritingEntityClass=gs,y.VariableDeclarationDependencyField=eO,y.VariableDeclarationState=$i,y.VariableInputMapState=fq,y.VariableInstanceDependencyField=Dc,y.VariableInstanceState=Ui,y.VariableOutputMapState=mq,y.WaitOperation=BP,y.WaitOperationInputIds=Jh,y.WaitOperationOutputIds=Wh,y.appendToListOperation=Zs,y.appendToListOperationElementToAppendArgument=El,y.appendToListOperationElementToAppendArgumentParentRef=Ph,y.appendToListOperationElementToAppendArgumentRef=Ah,y.appendToListOperationError=Bh,y.appendToListOperationErrorParentRef=Ch,y.appendToListOperationListArgument=Tl,y.appendToListOperationListArgumentParentRef=Oh,y.appendToListOperationListArgumentRef=Eh,y.appendToListOperationListDataType=Ih,y.appendToListOperationResultListDataType=Dh,y.appendToListOperationResultListReturn=Vh,y.appendToListOperationResultListReturnParentRef=wh,y.appendToListOperationResultListReturnRef=Rh,y.appendToListOperationSecondListDataType=bh,y.asGenerationActionExample=Jr,y.booleanPrototype=Kr,y.capitalizeFirstLetter=Wt,y.changeSetJSONRecordToUniqueIds=Z7,y.checkAreDataTypesCompatible=Ir,y.checkAreDefinitionEntitiesCompatibleAsDataType=g1,y.checkArePropertiesCompatibleAsDataType=M1,y.checkHasMetadataChanged=dt,y.checkIsBranchDependentButNotDirectlyOnBranch=Vs,y.checkIsBranchDependentOnBranch=Lq,y.checkIsCallableEntityReachable=Ms,y.checkIsCanvasEntity=eJ,y.checkIsDetachedBranch=EP,y.checkIsDetachedBranchShallow=zc,y.checkIsGlobalVariable=Kq,y.checkIsGloballyDeclared=Wc,y.checkIsMethod=bP,y.checkIsNestedScope=Hd,y.checkScopeCompatibility=_s,y.cloneProject=xJ,y.countedLoopActionDescriptor=_a,y.countedLoopActionDescriptorDynamicReturnDeclaration=tT,y.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=eT,y.countedLoopActionDescriptorStringArgumentDeclaration=Qv,y.countedLoopActionDescriptorStringArgumentDeclarationDataType=Kv,y.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=Yv,y.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=zv,y.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=Hv,y.countedLoopActionDescriptorStringArgumentDeclarationParentRef=Xv,y.countedLoopBodyActionDescriptor=ro,y.countedLoopBodyActionDescriptorAnyDynamicArgument=sT,y.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=aT,y.countedLoopBodyActionDescriptorAnyDynamicReturn=dT,y.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=oT,y.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Nl,y.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=iT,y.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=rT,y.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=nT,y.createDefinitionEntityFromJSONObject=Sd,y.createEntityError=ye,y.createNestedDataTypeForEntity=RO,y.createNewInstanceOperation=Xi,y.createNewInstanceOperationEntityToInstanciateArgument=bm,y.createNewInstanceOperationEntityToInstanciateArgumentRef=Em,y.createNewInstanceOperationEntityToInstanciateDataType=Im,y.createNewInstanceOperationError=Pm,y.createNewInstanceOperationErrorParentRef=Om,y.createNewInstanceOperationNewEntityDataArgument=Tm,y.createNewInstanceOperationNewEntityDataArgumentDataType=vm,y.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=mm,y.createNewInstanceOperationNewEntityDataArgumentParentRef=hm,y.createNewInstanceOperationOutputEntityDeclaration=Dm,y.createNewInstanceOperationOutputEntityDeclarationParentRef=Rm,y.createNewInstanceOperationRef=Am,y.createSemanticId=q1,y.createStateFromGenerationTargetType=fJ,y.createStateFromType=lt,y.createStateFromTypeAndSubscribe=V,y.cronJobBuiltInBaseEntity=oo,y.cronJobBuiltInBaseEntityExpressionProperty=ME,y.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=WP,y.cronJobBuiltInBaseEntityExpressionPropertyRef=BE,y.cronJobBuiltInBaseEntityRef=_E,y.cronJobTriggeredFunctionDeclarationBlueprint=zl,y.cronJobTriggeredFunctionDeclarationBlueprintParentRef=VE,y.dataTypeCompatibilityToErrorExplanation=EO,y.datePrototype=_r,y.dateValueAutogenerationSchema=dp,y.definitionEntityToZodSchema=mI,y.deletePersistedEntityMethod=Wl,y.deletePersistedEntityMethodParentRef=fE,y.deleteRootProject=kJ,y.endpointBuiltInBaseEntity=ga,y.endpointBuiltInBaseEntityRef=yT,y.endpointBuiltInBaseEntityRefFour=YT,y.endpointBuiltInBaseEntityRefThree=RT,y.endpointBuiltInBaseEntityRefTwo=ET,y.endpointBuiltInCorsProperty=hT,y.endpointBuiltInCorsPropertyDataType=fT,y.endpointBuiltInCorsPropertyDataTypeRef=pT,y.endpointBuiltInCorsPropertyRef=cT,y.endpointBuiltInMethodProperty=Ul,y.endpointBuiltInMethodPropertyDataType=bT,y.endpointBuiltInMethodPropertyDataTypeRef=IT,y.endpointBuiltInMethodPropertyRef=AT,y.endpointBuiltInPathProperty=Ll,y.endpointBuiltInPathPropertyDataType=TT,y.endpointBuiltInPathPropertyDataTypeRef=mT,y.endpointBuiltInPathPropertyRef=vT,y.endpointPathParamsArgumentDeclaration=jl,y.endpointPathParamsArgumentDeclarationRef=gT,y.endpointPathParamsVariableDataType=NT,y.endpointPathParamsVariableDataTypeRef=MT,y.endpointReachedTriggerActionDescriptor=Zl,y.endpointReachedTriggerActionDescriptorRef=LT,y.endpointReachedTriggerActionDescriptorRefFour=jT,y.endpointReachedTriggerActionDescriptorRefThree=$T,y.endpointReachedTriggerActionDescriptorRefTwo=UT,y.endpointRequestBodyArgumentDeclaration=Fl,y.endpointRequestBodyArgumentDeclarationRef=wT,y.endpointRequestBodyVariableDataType=VT,y.endpointRequestHeadersArgumentDeclaration=$l,y.endpointRequestHeadersArgumentDeclarationRef=OT,y.endpointRequestHeadersVariableDataType=PT,y.endpointRequestHeadersVariableDataTypeRef=DT,y.endpointRequestQueryParamsArgumentDeclaration=Gl,y.endpointRequestQueryParamsArgumentDeclarationRef=BT,y.endpointRequestQueryParamsVariableDataType=_T,y.endpointRequestQueryParamsVariableDataTypeRef=CT,y.endpointResponseBodyDataType=WT,y.endpointResponseBodyReturnDeclaration=kl,y.endpointResponseBodyReturnDeclarationRef=JT,y.endpointResponseCodeDataType=FT,y.endpointResponseCodeReturnDeclaration=xl,y.endpointResponseCodeReturnDeclarationRef=GT,y.endpointResponseHeadersDataType=ZT,y.endpointResponseHeadersDataTypeRef=ST,y.endpointResponseHeadersReturnDeclaration=Sl,y.endpointResponseHeadersReturnDeclarationRef=kT,y.endpointReturnStatementRef=xT,y.endpointReturnStatementRefThree=zT,y.endpointReturnStatementRefTwo=qT,y.enrichFromKnownEntities=Cs,y.enumOptionsProperty=df,y.enumOptionsPropertyDataType=sf,y.enumOptionsPropertyDataTypeRef=nf,y.enumOptionsPropertyRef=af,y.enumPrototype=Xr,y.enumPrototypeRef=of,y.executionBuiltInBaseEntity=lo,y.executionBuiltInEntityAbortMethod=Yl,y.executionBuiltInEntityAbortMethodParentRef=gE,y.filterOutDuplicateEntities=p,y.filterOutDuplicateErrors=H9,y.findEntityFromKeys=Uc,y.findReferenceToSelfInList=jO,y.findReferencesToSelfInProject=Zq,y.flattenActionDescriptor=GO,y.flattenArgumentDeclaration=FO,y.flattenBreakStatement=xO,y.flattenBuiltInBaseEntity=SO,y.flattenCalls=Wr,y.flattenCanvasAncestorsUntil=kd,y.flattenCondition=kO,y.flattenContinueStatement=ZO,y.flattenDataType=JO,y.flattenDefinitionEntity=qO,y.flattenDefinitionEntityExtensionAndImplementationTypes=Zc,y.flattenDefinitionEntityExtensionTypes=Yd,y.flattenDefinitionEntityExtensions=Sc,y.flattenDefinitionEntityImplementations=kc,y.flattenDefinitionEntityImplementionTypes=zd,y.flattenDerivedCanvasEntities=ir,y.flattenDetachedBranch=AP,y.flattenElementCalls=it,y.flattenElementCallsOnTheSameScope=kq,y.flattenEntity=N,y.flattenFunctionCall=WO,y.flattenFunctionDeclaration=zO,y.flattenGlobalEvent=YO,y.flattenInputMap=HO,y.flattenInstalledProject=KO,y.flattenInternalCall=XO,y.flattenLiteralValue=QO,y.flattenLoop=eP,y.flattenOperation=tP,y.flattenOutputMap=rP,y.flattenPrimitiveEntity=iP,y.flattenProject=nP,y.flattenProjectElements=$O,y.flattenProperty=aP,y.flattenRelatedCanvasElementsOnTheLeft=vP,y.flattenRelatedCanvasElementsOnTheRight=mP,y.flattenReturnDeclaration=sP,y.flattenReturnStatement=oP,y.flattenSearch=dP,y.flattenValueDescriptor=lP,y.flattenVariableDeclaration=uP,y.flattenVariableInstance=pP,y.flattenVariableReads=UO,y.flattenVariableWrites=LO,y.flattenVariables=We,y.fromChangeSetToRecordChangeSet=dJ,y.fromZodParseToEntityGenerationErrors=Oc,y.generate=KV,y.generateActionExample=wq,y.generateExecutionDataType=N7,y.generateIdFromStrategy=ct,y.generateMutablePropertiesExplanation=Md,y.generateRandomBoolean=kI,y.generateRandomDate=II,y.generateRandomDateAfter=vI,y.generateRandomDateBefore=TI,y.generateRandomDateBetweenRange=EI,y.generateRandomNumber=jI,y.generateRandomNumberAfter=LI,y.generateRandomNumberBefore=UI,y.generateRandomNumberBetweenRange=$I,y.generateRandomText=SI,y.generateRandomTextAfter=GI,y.generateRandomTextBefore=FI,y.generateRandomTextBetweenRange=xI,y.generateUniqueUUID=NI,y.getAllActionDescriptorsForConditions=Gd,y.getAllActionDescriptorsForGlobalEvents=$d,y.getAllActionDescriptorsForLoops=jd,y.getAllActionDescriptorsForOperations=_q,y.getAllBuiltInEntityIds=Vr,y.getAllGloballyDeclaredFunctionDeclarationsExplanation=mO,y.getBaseBuiltInEntities=Wi,y.getBaseSchemaBasedOnType=dO,y.getBuiltInEntityOwner=zi,y.getCallableEntityReferenceSchema=Dt,y.getCallableEntityTypeSchema=ID,y.getCalledBy=fr,y.getCallerEntityReferenceSchema=e5,y.getCallerEntityTypeSchema=Q3,y.getCalls=Gc,y.getCanvasEntitiesDerivedFromInternalCalls=hP,y.getCanvasEntitiesDerivedFromWrites=ba,y.getCanvasEntityDerivedFromValueReadingEntity=Wd,y.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=yP,y.getCanvasEntityReferenceSchema=v5,y.getCanvasEntityTypeSchema=m5,y.getChildrenEntityWithValues=$q,y.getColumnProperties=aJ,y.getCommonAncestor=jc,y.getCommonChildren=DO,y.getDatabaseEntities=iJ,y.getDatabaseEntity=sJ,y.getDeclaration=Pn,y.getDeepestScope=DP,y.getDefinitionEntityExtends=Ra,y.getDraggableCallableEntityReferenceSchema=bD,y.getDraggableCallableEntityTypeSchema=AD,y.getDraggableCallerEntityReferenceSchema=r5,y.getDraggableCallerEntityTypeSchema=t5,y.getDraggableExecutableEntityReferenceSchema=s5,y.getDraggableExecutableEntityTypeSchema=a5,y.getDraggablePassThroughCallableEntityReferenceSchema=Td,y.getDraggablePassThroughCallableEntityTypeSchema=vd,y.getDraggablePlayableEntityReferenceSchema=p5,y.getDraggablePlayableEntityTypeSchema=u5,y.getEntitiesCreatedSinceInitialization=tl,y.getEntityArgumentDeclarations=xc,y.getEntityInputMaps=cP,y.getEntityOutputMaps=zq,y.getEntityReferenceSchema=h5,y.getEntityReturnDeclarations=fP,y.getEntityTypeSchema=y5,y.getEntityWithLogicScopeReferenceSchema=ui,y.getEntityWithLogicScopeTypeSchema=o5,y.getEntityWithValueReferenceSchema=ED,y.getEntityWithValueTypeSchema=X3,y.getEntryPointEntityReferenceSchema=At,y.getEntryPointEntityTypeSchema=wi,y.getEventEntityReferenceSchema=hd,y.getEventEntityTypeSchema=yd,y.getExecutableEntityReferenceSchema=n5,y.getExecutableEntityTypeSchema=i5,y.getExtendedBuiltInEntity=Yq,y.getExtendedDefinitionEntity=qc,y.getGenerationTargetSchemaBasedOnType=lO,y.getHeadIfPartOfDetachedBranch=IP,y.getHighestScope=RP,y.getImplementedBuiltInEntity=Hq,y.getIsInteractive=Jc,y.getLastInListOperation=vl,y.getLastInListOperationError=mh,y.getLastInListOperationErrorParentRef=hh,y.getLastInListOperationInputListArgument=ch,y.getLastInListOperationInputListArgumentParentRef=ph,y.getLastInListOperationInputListArgumentRef=oh,y.getLastInListOperationInputListDataType=dh,y.getLastInListOperationOutputElementDataType=uh,y.getLastInListOperationOutputElementReturn=yh,y.getLastInListOperationOutputElementReturnParentRef=fh,y.getLastInListOperationOutputElementReturnRef=lh,y.getLinkedEntitiesFromArgumentDeclaration=Sq,y.getLowestPersistedEntityImplementation=TP,y.getParentCallableEntity=OO,y.getParentCallerEntity=wO,y.getParentCanvasEntities=zt,y.getParentCanvasEntity=Ot,y.getParentCanvasEntityFromTransfer=Zd,y.getParentEntryPoint=Uq,y.getParentPassthroughCallableEntity=PO,y.getPassThroughCallableEntityReferenceSchema=et,y.getPassThroughCallableEntityTypeSchema=md,y.getPeristedEntities=rJ,y.getPlayableEntityReferenceSchema=l5,y.getPlayableEntityTypeSchema=d5,y.getProject=SJ,y.getPrototypeByType=Bs,y.getRecusriveParentsIds=Xd,y.getReferenceEntityId=B,y.getReferencedEntitiesStateOrErrors=Nd,y.getReferencedEntityStateOrErrors=Pc,y.getReferencedIds=Jd,y.getRelatedCanvasElementsOnTheLeft=Mn,y.getRelatedCanvasElementsOnTheLeftFromTransfer=qq,y.getRelatedCanvasElementsOnTheRight=Ji,y.getRootEntryPointScopeOwner=Yc,y.getScopeOwner=Yt,y.getStateClassFromType=oJ,y.getTerminationReferenceSchema=f5,y.getTerminationTypeSchema=c5,y.getTouchedCanvasEntitiesFromChangeSet=lJ,y.getUsedArgFromDeclaration=Jq,y.getUsedReturnFromDeclaration=Wq,y.getValueReadingEntityReferenceSchema=TD,y.getValueReadingEntityTypeSchema=li,y.getValueWritingEntityReferenceSchema=K3,y.getValueWritingEntityTypeSchema=ms,y.getVariableFromInputMapping=CO,y.getVariableFromReturnVariablePointer=MO,y.getVariableReferenceSchema=Pi,y.getVariableTypeSchema=In,y.getVariablesFromArgumentDeclarations=qd,y.getVariablesFromInputMaps=BO,y.getVariablesFromOutputMapping=gO,y.getVariablesFromOutputMaps=NO,y.getVariablesFromReturnDeclarations=_O,y.getVariablesInSameOrHigherScope=fc,y.getWrites=Fc,y.groupCallsBasedOnParallelizableExecution=Gq,y.handleAfterEntityImplementationSideEffects=bO,y.handleBeforeEntityImplementationSideEffects=AO,y.httpRequestBodyArgument=zs,y.httpRequestBodyArgumentRef=Xm,y.httpRequestBodyDataType=Qm,y.httpRequestHeadersArgument=Ws,y.httpRequestHeadersArgumentRef=Hm,y.httpRequestHeadersDataType=Km,y.httpRequestMethodArgument=qs,y.httpRequestMethodArgumentRef=zm,y.httpRequestMethodDataType=Ym,y.httpRequestMethodDataTypeRef=Jm,y.httpRequestOperation=wa,y.httpRequestOperationErrorValueDescriptor=Ol,y.httpRequestOperationErrorValueDescriptorDatatype=T0,y.httpRequestOperationErrorValueDescriptorRef=v0,y.httpRequestOperationRef=f0,y.httpRequestOperationRefEight=h0,y.httpRequestOperationRefFive=p0,y.httpRequestOperationRefFour=u0,y.httpRequestOperationRefNine=m0,y.httpRequestOperationRefSeven=y0,y.httpRequestOperationRefSix=c0,y.httpRequestOperationRefThree=l0,y.httpRequestOperationRefTwo=d0,y.httpRequestQueryParamsArgument=Dl,y.httpRequestQueryParamsArgumentRef=Zm,y.httpRequestQueryParamsDataType=qm,y.httpRequestVariableURLArgument=Js,y.httpRequestVariableURLArgumentRef=Sm,y.httpRequestVariableURLDataType=km,y.httpRequestVariableURLDataTypeRef=Fm,y.httpResponseBodyReturnDataType=o0,y.httpResponseBodyReturnDataTypeRef=a0,y.httpResponseBodyReturnReturn=Ks,y.httpResponseBodyReturnReturnRef=s0,y.httpResponseCodeDataType=t0,y.httpResponseCodeReturn=Ys,y.httpResponseCodeReturnRef=e0,y.httpResponseHeadersDataType=n0,y.httpResponseHeadersDataTypeRef=r0,y.httpResponseHeadersReturn=Hs,y.httpResponseHeadersReturnRef=i0,y.implement=xd,y.inferArgumentDeclarationDataType=N1,y.inferDataType=kr,y.inferInputMapDataType=uc,y.inferOutputMapDataType=cc,y.inferPropertyDataType=$1,y.inferReturnDeclarationDataType=pc,y.inferValueDescriptorDataType=j1,y.inferVariableDeclarationDataType=U1,y.inferVariableInstanceDataType=L1,y.initBaseProjectEntity=el,y.initProject=NP,y.initProjectFromFetchResult=gP,y.isPromise=Lc,y.iterateOverListActionDescriptorListArgumentDeclaration=X0,y.iterateOverListActionDescriptorListArgumentDeclarationDataType=H0,y.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=Y0,y.iterateOverListActionDescriptorListArgumentDeclarationParentRef=K0,y.iterateOverListLoopActionDescriptor=mi,y.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=ev,y.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=Q0,y.iterateOverListLoopBodyActionDescriptor=Ba,y.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=lv,y.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=dv,y.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=pv,y.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=uv,y.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=to,y.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=rv,y.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=tv,y.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=iv,y.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=ov,y.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=av,y.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=nv,y.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=sv,y.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=mv,y.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=yv,y.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=fv,y.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=hv,y.iterateOverObjectKeysLoopActionDescriptor=xn,y.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=Tv,y.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=vv,y.iterateOverObjectKeysLoopBodyActionDescriptor=Bl,y.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=wv,y.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Pv,y.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=Cv,y.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=Vv,y.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Cl,y.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=Iv,y.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Ev,y.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Av,y.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Ov,y.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=Rv,y.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=bv,y.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Dv,y.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=Nv,y.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=Mv,y.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=_v,y.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=gv,y.iterateOverObjectValuesLoopActionDescriptor=Sn,y.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=Uv,y.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=Lv,y.iterateOverObjectValuesLoopBodyActionDescriptor=Ml,y.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=qv,y.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Zv,y.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=Wv,y.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=Jv,y.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=_l,y.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=jv,y.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=$v,y.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Gv,y.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=kv,y.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=xv,y.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Fv,y.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Sv,y.iterateOverStringActionDescriptorDynamicReturnDeclaration=$0,y.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=U0,y.iterateOverStringActionDescriptorStringArgumentDeclaration=L0,y.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=g0,y.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=M0,y.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=N0,y.iterateOverStringLoopActionDescriptor=Ca,y.iterateOverStringLoopBodyActionDescriptor=eo,y.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=q0,y.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Z0,y.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=W0,y.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=J0,y.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=wl,y.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=G0,y.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=j0,y.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=F0,y.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Vl,y.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=S0,y.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=x0,y.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=k0,y.joinListOperation=yl,y.joinListOperationError=Fy,y.joinListOperationErrorParentRef=Gy,y.joinListOperationFirstListArgument=Ny,y.joinListOperationFirstListArgumentParentRef=gy,y.joinListOperationFirstListArgumentRef=wy,y.joinListOperationFirstListDataType=Vy,y.joinListOperationResultListDataType=My,y.joinListOperationResultListReturn=jy,y.joinListOperationResultListReturnParentRef=$y,y.joinListOperationResultListReturnRef=_y,y.joinListOperationSecondListArgument=Uy,y.joinListOperationSecondListArgumentParentRef=Ly,y.joinListOperationSecondListArgumentRef=Cy,y.joinListOperationSecondListDataType=By,y.joinListWithLastSeparator=ie,y.joinStringsOperation=Pa,y.joinStringsOperationDynamicStringArgument=sy,y.joinStringsOperationDynamicStringArgumentParentRef=ay,y.joinStringsOperationDynamicStringArgumentRef=iy,y.joinStringsOperationDynamicStringDataType=ny,y.joinStringsOperationError=ry,y.joinStringsOperationErrorParentRef=ty,y.joinStringsOperationFirstStringArgument=Ss,y.joinStringsOperationFirstStringArgumentParentRef=Jf,y.joinStringsOperationFirstStringArgumentRef=Ff,y.joinStringsOperationFirstStringDataType=xf,y.joinStringsOperationResultStringDataType=qf,y.joinStringsOperationResultStringReturn=Oa,y.joinStringsOperationResultStringReturnParentRef=ey,y.joinStringsOperationResultStringReturnRef=Zf,y.joinStringsOperationSecondStringArgument=ks,y.joinStringsOperationSecondStringArgumentParentRef=Qf,y.joinStringsOperationSecondStringArgumentRef=Sf,y.joinStringsOperationSecondStringDataType=kf,y.joinStringsOperationSeparatorStringArgument=Xf,y.joinStringsOperationSeparatorStringArgumentParentRef=Kf,y.joinStringsOperationSeparatorStringArgumentRef=Wf,y.joinStringsOperationSeparatorStringDataType=Hf,y.joinStringsOperationSeparatorStringDataTypeDefaultValue=Yf,y.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=zf,y.keyValuePrototype=jn,y.lowercaseFirstLetter=Pd,y.manualFlowActionDescriptorDeclarationArgumentDeclaration=Pl,y.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=O0,y.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=D0,y.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=P0,y.manualFlowLoopActionDescriptor=Xs,y.manualFlowLoopActionDescriptorDynamicReturnDeclaration=R0,y.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=b0,y.manualFlowLoopBodyActionDescriptor=Qs,y.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=V0,y.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=w0,y.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=B0,y.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=C0,y.mapActionDescriptorToTypeItRepresents=tJ,y.mergeEntityErrorsList=K9,y.mergeListOfEntities=Xq,y.methodDefaultValue=Wm,y.mockClientProject=ip,y.moreThanOrEqualCondition=Wn,y.moreThanOrEqualConditionLeftHandArgument=xE,y.moreThanOrEqualConditionLeftHandArgumentDataType=GE,y.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=jE,y.moreThanOrEqualConditionLeftHandArgumentParentRef=FE,y.moreThanOrEqualConditionRightHandArgument=qE,y.moreThanOrEqualConditionRightHandArgumentDataType=kE,y.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=SE,y.moreThanOrEqualConditionRightHandArgumentParentRef=ZE,y.notEmptyCondition=an,y.notEmptyConditionArgument=UE,y.notEmptyConditionRef=LE,y.nullPrototype=sl,y.numberAdditionOperation=xs,y.numberAdditionOperationDynamicSummandArgument=bf,y.numberAdditionOperationDynamicSummandArgumentType=Af,y.numberAdditionOperationDynamicSummandArgumentTypeParentRef=If,y.numberAdditionOperationError=Ef,y.numberAdditionOperationErrorParentRef=Tf,y.numberAdditionOperationFirstNumberArgument=ol,y.numberAdditionOperationFirstNumberArgumentRef=uf,y.numberAdditionOperationFirstNumberDataType=pf,y.numberAdditionOperationRef=mf,y.numberAdditionOperationRefThree=ll,y.numberAdditionOperationRefTwo=vf,y.numberAdditionOperationResultNumberDataType=hf,y.numberAdditionOperationResultNumberReturn=ul,y.numberAdditionOperationResultNumberReturnRef=yf,y.numberAdditionOperationSecondNumberArgument=dl,y.numberAdditionOperationSecondNumberArgumentRef=cf,y.numberAdditionOperationSecondNumberDataType=ff,y.numberPrototype=me,y.numberSubtractionOperation=cl,y.numberSubtractionOperationDynamicSubtrahendArgument=jf,y.numberSubtractionOperationDynamicSubtrahendArgumentType=$f,y.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=Uf,y.numberSubtractionOperationError=Lf,y.numberSubtractionOperationErrorParentRef=Nf,y.numberSubtractionOperationFirstNumberArgument=Cf,y.numberSubtractionOperationFirstNumberArgumentRef=Rf,y.numberSubtractionOperationFirstNumberDataType=Df,y.numberSubtractionOperationRef=pl,y.numberSubtractionOperationRefThree=Mf,y.numberSubtractionOperationRefTwo=Bf,y.numberSubtractionOperationResultNumberDataType=Vf,y.numberSubtractionOperationResultNumberReturn=gf,y.numberSubtractionOperationResultNumberReturnRef=wf,y.numberSubtractionOperationSecondNumberArgument=_f,y.numberSubtractionOperationSecondNumberArgumentRef=Of,y.numberSubtractionOperationSecondNumberDataType=Pf,y.numberValueAutogenerationSchema=op,y.parallelExecutionOperation=br,y.parallelExecutionOperationError=qh,y.parallelExecutionOperationErrorParentRef=Zh,y.parallelExecutionOperationListOfExecutionResultsDataType=xh,y.parallelExecutionOperationListOfExecutionResultsReturn=Al,y.parallelExecutionOperationListOfExecutionResultsReturnRef=Fh,y.parallelExecutionOperationListOfFunctionsArgument=Il,y.parallelExecutionOperationListOfFunctionsArgumentDatatype=Gh,y.parallelExecutionOperationListOfFunctionsArgumentRef=jh,y.parallelExecutionOperationListOfFunctionsBlueprint=$h,y.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=Lh,y.parallelExecutionOperationListOfFunctionsBlueprintDynamicInputParentRef=Nh,y.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=gh,y.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutputParentRef=Mh,y.parallelExecutionOperationListOfFunctionsBlueprintParentRef=Uh,y.parallelExecutionOperationRef=Sh,y.parallelExecutionOperationRefThree=kh,y.persistedBuiltInBaseEntity=Pt,y.persistedBuiltInBaseEntityDatabaseProperty=Zn,y.persistedBuiltInBaseEntityDatabasePropertyDataType=mE,y.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=qP,y.persistedBuiltInBaseEntityDatabasePropertyParentRef=vE,y.persistedBuiltInBaseEntityDatabasePropertyRef=hE,y.persistedBuiltInBaseEntityPrimaryKeyProperty=qn,y.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=OE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=EE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=TE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=PE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=DE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=AE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=IE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=RE,y.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=bE,y.processOutputGlobalValueDescriptorDataType=XE,y.processOutputGlobalValueDescriptorReturn=po,y.processOutputGlobalValueDescriptorReturnRef=KE,y.projectPublicationCompletedGlobalEvent=uo,y.propertyToZodSchema=hI,y.relationalDatabaseBuiltInBaseEntity=Nr,y.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=Jl,y.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=pE,y.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=uE,y.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=cE,y.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=lE,y.relationalDatabaseBuiltInBaseEntityDefaultProperty=ql,y.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=dE,y.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=sE,y.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=oE,y.relationalDatabaseBuiltInBaseEntityIdentifierProperty=io,y.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=XT,y.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=HT,y.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=KT,y.relationalDatabaseBuiltInBaseEntityMinSizeProperty=so,y.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=aE,y.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=iE,y.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=nE,y.relationalDatabaseBuiltInBaseEntityPasswordProperty=ao,y.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=rE,y.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=ZP,y.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=tE,y.relationalDatabaseBuiltInBaseEntityRef=kn,y.relationalDatabaseBuiltInBaseEntityUsernameProperty=no,y.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=eE,y.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=kP,y.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=QT,y.resolveActionDescriptorName=Z1,y.resolveBaseEntityName=F1,y.resolveBuiltInBaseEntityDataTypeLabel=x1,y.resolveClonedEntityProject=ft,y.resolveConditionOperatorLabel=Bd,y.resolveDataType=wd,y.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=$c,y.resolveDataTypeLabel=Cd,y.resolveDefinitionEntityDataTypeLabel=G7,y.resolveEntityDataTypeLabel=j7,y.resolveEntityName=F,y.resolveFirstCallsSecond=Fq,y.resolveFirstWritesSecond=xq,y.resolvePrimaryKeyProperty=nJ,y.resolvePrimitiveEntityName=k1,y.resolveSearchName=S1,y.resolveVariableScope=L7,y.sequentialExecutionOperation=ti,y.sequentialExecutionOperationError=pm,y.sequentialExecutionOperationErrorParentRef=um,y.sequentialExecutionOperationListOfExecutionResultsDataType=om,y.sequentialExecutionOperationListOfExecutionResultsReturn=Rl,y.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=lm,y.sequentialExecutionOperationListOfExecutionResultsReturnRef=sm,y.sequentialExecutionOperationListOfFunctionsArgument=bl,y.sequentialExecutionOperationListOfFunctionsArgumentDatatype=am,y.sequentialExecutionOperationListOfFunctionsArgumentParentRef=dm,y.sequentialExecutionOperationListOfFunctionsArgumentRef=nm,y.sequentialExecutionOperationListOfFunctionsBlueprint=im,y.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=rm,y.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=tm,y.softDeletePersistedEntityMethod=JP,y.softDeletePersistedEntityMethodParentRef=wE,y.sortCallsBasedOnExecutionDependencies=VO,y.sortChildrenEntitiesBasedOnExecutionDependencies=jq,y.splitListOperation=ml,y.splitListOperationError=nh,y.splitListOperationErrorParentRef=ih,y.splitListOperationFirstOutputListDataType=Wy,y.splitListOperationFirstOutputListReturn=Qy,y.splitListOperationFirstOutputListReturnParentRef=Xy,y.splitListOperationFirstOutputListReturnRef=hl,y.splitListOperationInputListArgument=Yy,y.splitListOperationInputListArgumentParentRef=zy,y.splitListOperationInputListArgumentRef=ky,y.splitListOperationInputListDataType=Zy,y.splitListOperationSecondOutputListDataType=eh,y.splitListOperationSecondOutputListReturn=rh,y.splitListOperationSecondOutputListReturnParentRef=th,y.splitListOperationSplitIndexArgument=Ky,y.splitListOperationSplitIndexArgumentParentRef=Hy,y.splitListOperationSplitIndexArgumentRef=qy,y.splitListOperationSplitIndexDataType=Jy,y.splitStringOperation=fl,y.splitStringOperationError=Ry,y.splitStringOperationErrorParentRef=by,y.splitStringOperationFirstPartResultStringDataType=cy,y.splitStringOperationFirstPartResultStringReturn=Ay,y.splitStringOperationFirstPartResultStringReturnParentRef=Iy,y.splitStringOperationFirstPartResultStringReturnRef=py,y.splitStringOperationIndexArgument=Ty,y.splitStringOperationIndexArgumentParentRef=vy,y.splitStringOperationIndexArgumentRef=ly,y.splitStringOperationIndexDataType=uy,y.splitStringOperationSecondPartResultStringDataType=yy,y.splitStringOperationSecondPartResultStringReturn=xP,y.splitStringOperationSecondPartResultStringReturnParentRef=Ey,y.splitStringOperationSecondPartResultStringReturnRef=fy,y.splitStringOperationStringArgument=my,y.splitStringOperationStringArgumentParentRef=hy,y.splitStringOperationStringArgumentRef=oy,y.splitStringOperationStringDataType=dy,y.stringPrototype=ne,y.stringValueAutogenerationSchema=sp,y.suggestNewIdForEntity=Ic,y.test_primitive_entities_export=ZJ,y.toCamelCase=U7,y.toEntityState=nr,y.toKebabCase=G1,y.toLowerCaseKebabCase=Vd,y.toPascalCase=$7,y.untypedDataPrototype=Rt,y.updateErrorsList=ze,y.updateValueReader=Qq,y.urlDefaultValue=xm,y.uuidPrototype=Qr,y.validateArgumentDeclarationName=Tc,y.validateCalledByErrorIdInAction=Cq,y.validateCalledByIdInAction=Vq,y.validateCallers=hO,y.validateConditionEntityDeclaration=Mq,y.validateDataOperation=Qi,y.validateDataOperationDataToValidateArgument=Bm,y.validateDataOperationDataToValidateArgumentParentRef=Cm,y.validateDataOperationDataToValidateArgumentRef=wm,y.validateDataOperationDataToValidateDataType=Vm,y.validateDataOperationEntityToMatchTypeArgument=Nm,y.validateDataOperationEntityToMatchTypeArgumentParentRef=gm,y.validateDataOperationEntityToMatchTypeArgumentRef=_m,y.validateDataOperationEntityToMatchTypeDataType=Mm,y.validateDataOperationError=jm,y.validateDataOperationErrorParentRef=$m,y.validateDataOperationOutputEntityDeclaration=Um,y.validateDataOperationOutputEntityDeclarationParentRef=Lm,y.validateDefinitionEntityName=yc,y.validateEntryCaller=yO,y.validateErrorCaller=fO,y.validateFunctionCallDeclaration=vO,y.validateFunctionDeclarationName=hc,y.validateGeneratedEntityParentIsNotBuiltInEntity=Dq,y.validateGeneration=bq,y.validateGenerationTarget=ot,y.validateGenerationUpdate=Rq,y.validateLoopEntityDeclaration=gq,y.validateName=F7,y.validateOperationEntityDeclaration=TO,y.validatePropertyName=vc,y.validateReachability=fi,y.validateReadsValueInActionPayload=Bq,y.validateReferenceObject=gd,y.validateReferenceToOne=wc,y.validateReferences=Et,y.validateReturnDeclarationName=Ec,y.validateSuccessCaller=cO,y.validateValueReaderGenerationUpdate=ws,y.validateValueWritter=gc,y.validateVariableDeclarationName=mc,y.validateVariableInternalCallUse=Nc,y.valueAutogenerationCurrentDateAndTimeSchema=KR,y.valueAutogenerationGenericSchema=Qo,y.valueAutogenerationOptions=lp,y.valueAutogenerationOptionsSchema=HR,y.valueAutogenerationRandomBooleanSchema=ap,y.valueAutogenerationRandomDateBetweenSchema=sD,y.valueAutogenerationRandomDateFromSchema=nD,y.valueAutogenerationRandomDateSchema=rd,y.valueAutogenerationRandomDateUntilSchema=aD,y.valueAutogenerationRandomNumberBetweenSchema=eD,y.valueAutogenerationRandomNumberFromSchema=XR,y.valueAutogenerationRandomNumberSchema=ed,y.valueAutogenerationRandomNumberUntilSchema=QR,y.valueAutogenerationRandomSchema=ls,y.valueAutogenerationRandomTextBetweenSchema=iD,y.valueAutogenerationRandomTextFromSchema=tD,y.valueAutogenerationRandomTextSchema=td,y.valueAutogenerationRandomTextUntilSchema=rD,y.valueAutogenerationRangeValueTypesSchema=ds,y.valueAutogenerationUniqueSchema=np,y.waitOperation=Ft,y.waitOperationMillisecondsNumberArgument=Ki,y.waitOperationMillisecondsNumberArgumentRef=zh,y.waitOperationMillisecondsNumberDataType=Yh,y.waitOperationOperationError=Xh,y.waitOperationOperationErrorParentRef=Kh,y.waitOperationRef=Hh,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
|