@elyx-code/project-logic-tree 0.0.5995 → 0.0.5996
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 +445 -419
- package/dist/index.umd.cjs +39 -41
- package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +1 -0
- package/dist/tree/state/custom-entity/custom-entity.d.ts +1 -0
- package/dist/tree/state/primitive-entity/primitive-entity.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(u,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(u=typeof globalThis<"u"?globalThis:u||self,r(u["@elyx-code/project-logic-tree"]={}))})(this,function(u){"use strict";var b5=Object.defineProperty;var g5=(u,r,_)=>r in u?b5(u,r,{enumerable:!0,configurable:!0,writable:!0,value:_}):u[r]=_;var l=(u,r,_)=>(g5(u,typeof r!="symbol"?r+"":r,_),_);var r=(n=>(n.CustomEntity="custom-entity",n.BuiltInBaseEntity="built-in-base-entity",n.Project="project",n.InstalledProject="installed-project",n.GlobalEvent="global-event",n.DataType="data-type",n.FunctionCall="function-call",n.FunctionDeclaration="function-declaration",n.ActionDescriptor="action-descriptor",n.ValueDescriptor="value-descriptor",n.ArgumentDeclaration="argument-declaration",n.InputMap="input-map",n.ReturnStatement="return-statement",n.BreakStatement="break-statement",n.ContinueStatement="continue-statement",n.ReturnDeclaration="return-declaration",n.OutputMap="output-map",n.PrimitiveEntity="primitive-entity",n.PrimitiveValue="primitive-value",n.Property="property",n.Operation="operation",n.Condition="condition",n.VariableDeclaration="variable-declaration",n.VariableInstance="variable-instance",n.Search="search",n.Loop="loop",n.InternalCall="internal-call",n.GenericReference="generic-reference",n))(r||{}),_=(n=>(n.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",n.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",n.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",n.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",n.EXECUTION="BUILT_IN_EXECUTION_ENTITY",n.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",n))(_||{}),xe=(n=>(n.CurrentDateAndTime="current-date-and-time",n.Unique="unique",n.Random="random",n))(xe||{}),It=(n=>(n.DeletePersistedEntity="base-delete-persisted-entity",n.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",n.AbortExecution="base-abort-execution",n))(It||{}),L=(n=>(n.Fixed="fixed",n.None="none",n.Dynamic="dynamic",n))(L||{}),C=(n=>(n.FixedArguments="fixed-arguments",n.FixedReturns="fixed-returns",n.ReturnedError="returned-error",n.OngoingProcessExecution="ongoing-process-execution",n))(C||{}),v=(n=>(n.EntityTemplate="entity-template",n.ActionDescriptor="action-descriptor",n.String="string",n.Number="number",n.Boolean="boolean",n.Null="null",n.Enum="enum",n.JSON="json",n.Date="date",n.UUID="uuid",n.File="file",n))(v||{}),at=(n=>(n.Addition="addition",n.Substraction="substraction",n.Multiplication="multiplication",n.Division="division",n.Remainder="remainder",n.Exponentiation="exponentiation",n))(at||{}),ve=(n=>(n.Join="string-join",n.Split="stringSsplit",n.DeleteLast="string-delete-last",n.DeleteFirst="string-delete-first",n.DeleteIndex="string-delete-index",n.AddIndex="string-add-index",n.ReplaceFirst="string-replace-first",n.ReplaceLast="string-replace-last",n.ReplaceIndex="string-replace-index",n.ReplaceSingleMatch="string-replace-single-match",n.ReplaceAllMatches="string-replace-all-matches",n.GetIndex="string-get-index",n.GetFirst="string-get-first",n.GetLast="string-get-last",n.Append="string-append",n.Prepend="string-prepend",n))(ve||{}),k=(n=>(n.Join="list-join",n.Split="list-split",n.DeleteLast="list-delete-last",n.DeleteFirst="list-delete-first",n.DeleteIndex="list-delete-index",n.AddIndex="list-add-index",n.ReplaceFirst="list-replace-first",n.ReplaceLast="list-replace-last",n.ReplaceIndex="list-replace-index",n.ReplaceSingleMatch="list-replace-single-match",n.ReplaceAllMatches="list-replace-all-matches",n.GetIndex="list-get-index",n.GetFirst="list-get-first",n.GetLast="list-get-last",n.Append="list-append",n.Prepend="list-prepend",n))(k||{}),Pe=(n=>(n.Parallel="parallel",n.Sequential="sequential",n.Wait="wait",n))(Pe||{}),Ze=(n=>(n.CreateNewInstance="create-new-instance",n.Validate="validate",n))(Ze||{}),Ye=(n=>(n.HttpRequest="base-http-request",n))(Ye||{}),Se=(n=>(n.Equal="equal",n.NotEqual="not-equal",n.And="and",n.Or="or",n.LessThan="less-than",n.MoreThan="more-than",n.LessThanOrEqual="less-than-or-equal",n.MoreThanOrEqual="more-than-or-equal",n))(Se||{}),Ct=(n=>(n.Empty="empty",n.NotEmpty="not-empty",n))(Ct||{}),je=(n=>(n.ManualFlow="manual-flow-loop",n.Counted="counted-loop",n.List="list-loop",n.ObjectKeys="object-keys-loop",n.ObjectValues="object-values-loop",n.String="string-loop",n))(je||{}),qe=(n=>(n.OrDataTypeGroup="or-data-type-group",n.AndDataTypeGroup="and-data-type-group",n.DynamicArgumentTypes="dynamic-argument-types",n.DynamicReturnTypes="dynamic-return-types",n))(qe||{}),Kt=(n=>(n.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",n))(Kt||{}),Nd=(n=>(n.Error="error",n.Task="task",n))(Nd||{});const Gn=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration],zv=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration],Ce=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap],Zv=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap],$d=[...Gn,...Ce],Fe=[r.VariableDeclaration,r.VariableInstance],Dr=[r.GlobalEvent],_e=[r.Operation,r.FunctionCall,r.Condition,r.Search,r.VariableDeclaration,r.VariableInstance,r.InternalCall,r.Loop],Eo=[r.Operation,r.FunctionCall,r.Condition,r.Search,r.VariableDeclaration,r.VariableInstance,r.Loop],$e=[r.FunctionDeclaration,...Dr],Tn=[..._e,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],Ro=[...Eo,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],en=[..._e,...$e],Vd=[...Eo,...$e],Xv=[...Tn,...$e],Qv=[...Ro,...$e],st=[...$e,r.Loop],Oe=[r.ReturnStatement,r.BreakStatement,r.ContinueStatement],Kv=[r.CustomEntity,r.BuiltInBaseEntity,r.Project,r.InstalledProject,r.GlobalEvent,r.DataType,r.FunctionCall,r.FunctionDeclaration,r.ActionDescriptor,r.ValueDescriptor,r.ArgumentDeclaration,r.InputMap,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.ReturnDeclaration,r.OutputMap,r.PrimitiveEntity,r.PrimitiveValue,r.Property,r.Operation,r.Condition,r.VariableDeclaration,r.VariableInstance,r.Search,r.Loop,r.InternalCall],bo=[r.CustomEntity,r.GlobalEvent,r.FunctionDeclaration,r.FunctionCall,r.VariableDeclaration,r.VariableInstance,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.InstalledProject,r.Loop,r.Search],Ld=[r.CustomEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor],Ar=[r.BuiltInBaseEntity,r.PrimitiveEntity],eI=[r.CustomEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.GlobalEvent,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor,r.InputMap,r.OutputMap,r.FunctionCall,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.VariableInstance,r.PrimitiveValue,r.InternalCall],F={type:r.PrimitiveEntity,id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",description:"A string of characters.",version:1,name:v.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Fn={type:r.PrimitiveEntity,id:"f596545d-1565-4faa-9969-d95fa5edfea4",description:"A 'true' or 'false' value.",version:1,name:v.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Be={type:r.PrimitiveEntity,id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",description:"A number value.",version:1,name:v.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Xe={type:r.PrimitiveEntity,id:"730e8ea9-8498-439a-9001-b07de55aaa7d",description:"A complex data structure with any combination of properties with names and values.",version:1,name:v.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Gd={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:r.GenericReference,entityId:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",entityType:r.DataType},Fd={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:r.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:r.Property},Ud={id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:{id:"enum-options-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.JSON,autogeneration:null,value:[],valueAsType:null,parent:Gd},parent:Fd},xd={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:r.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:r.PrimitiveEntity},jd={required:!0,id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",name:"Options",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Ud,description:"Options for the enum. Each option is a text value.",parent:xd},En={type:r.PrimitiveEntity,id:"9542b8b4-2642-4eee-9db9-def7963a17a0",description:"A set of text options to choose from.",version:1,name:v.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[jd],methods:[]},Sr={type:r.PrimitiveEntity,id:"dc58f38b-d574-4956-aac6-32ce9529b937",description:"A date and time value.",version:1,name:v.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ma={type:r.PrimitiveEntity,id:"4a6234aa-c0f6-4731-b4dd-750388029226",description:"A unique identifier in the form of a 36-character string.",version:1,name:v.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[F],properties:[],methods:[]},go={type:r.PrimitiveEntity,id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",description:"A complex data structure with any combination of properties with names and values.",version:1,name:v.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]};var kd=(n=>(n.FirstInputNumber="number-addition-first-number-argument-declaration",n.SecondInputNumber="number-addition-second-number-argument-declaration",n))(kd||{}),qd=(n=>(n.ResultNumber="number-addition-result-number-return-delaration",n.Error="number-addition-error-return-delaration",n))(qd||{});const Jd={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"number-addition-first-number-argument-declaration",entityType:r.ValueDescriptor},Wd={id:"number-addition-first-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Jd},Hd={type:r.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:"number-addition-second-number-argument-declaration",entityType:r.ValueDescriptor},Yd={id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Hd},zd={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"number-addition-result-number-return-delaration",entityType:r.ValueDescriptor},Zd={id:"b761acec-0755-4582-a68b-76267038bbe1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zd},Xd={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:at.Addition,entityType:r.ActionDescriptor},vo={id:"number-addition-first-number-argument-declaration",type:r.ValueDescriptor,version:1,name:"First value",description:"The first number to add",dataType:Wd,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Xd},Qd={type:r.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:at.Addition,entityType:r.ActionDescriptor},Io={id:"number-addition-second-number-argument-declaration",type:r.ValueDescriptor,description:"The second number to add",version:1,name:"Second value",dataType:Yd,required:!0,parentRelationType:C.FixedArguments,index:1,parent:Qd},Kd={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:at.Addition,entityType:r.ActionDescriptor},Po={parentRelationType:C.FixedReturns,id:"number-addition-result-number-return-delaration",type:r.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",dataType:Zd,required:!0,index:0,parent:Kd},eu={type:r.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:at.Addition,entityType:r.ActionDescriptor},tu={parentRelationType:C.FixedReturns,id:"number-addition-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:eu},Ta={id:at.Addition,type:r.ActionDescriptor,description:"Add two numbers together",version:1,name:at.Addition,fixedArguments:[vo,Io],error:tu,fixedReturns:[Po],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},nu={[at.Addition]:Ta};var ru=(n=>(n.FirstInputString="join-string-first-string-argument-declaration",n.SecondInputString="join-string-second-string-argument-declaration",n))(ru||{}),iu=(n=>(n.ResultString="join-string-result-string-return-delaration",n.Error="join-string-error-return-delaration",n))(iu||{});const au={type:r.GenericReference,id:"join-string-first-string-argument-declaration",entityId:"join-string-first-string-argument-declaration",entityType:r.ValueDescriptor},su={id:"join-string-first-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:au},ou={type:r.GenericReference,id:"join-string-second-string-argument-declaration",entityId:"join-string-second-string-argument-declaration",entityType:r.ValueDescriptor},lu={id:"join-string-second-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ou},cu={type:r.GenericReference,id:"join-string-result-string-return-delaration",entityId:"join-string-result-string-return-delaration",entityType:r.ValueDescriptor},du={id:"join-string-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cu},uu={type:r.GenericReference,id:"join-string-operation-first-string-argument-parent-ref",entityId:ve.Join,entityType:r.ActionDescriptor},Ea={id:"join-string-first-string-argument-declaration",type:r.ValueDescriptor,version:1,name:"First value",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",dataType:su,parentRelationType:C.FixedArguments,required:!0,index:0,parent:uu},pu={type:r.GenericReference,id:"join-string-operation-second-string-argument-parent-ref",entityId:ve.Join,entityType:r.ActionDescriptor},Ra={id:"join-string-second-string-argument-declaration",type:r.ValueDescriptor,version:1,name:"Second value",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",dataType:lu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:pu},yu={type:r.GenericReference,id:"join-string-operation-result-string-return-parent-ref",entityId:ve.Join,entityType:r.ActionDescriptor},ui={parentRelationType:C.FixedReturns,id:"join-string-result-string-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",dataType:du,required:!0,index:0,parent:yu},hu={type:r.GenericReference,id:"join-string-operation-error-parent-ref",entityId:ve.Join,entityType:r.ActionDescriptor},fu={parentRelationType:C.FixedReturns,id:"join-string-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:hu},pi={id:ve.Join,type:r.ActionDescriptor,version:1,name:ve.Join,description:"Join two text together, to form a single resulting text value.",fixedArguments:[Ea,Ra],fixedReturns:[ui],error:fu,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},mu={[ve.Join]:pi};var Tu=(n=>(n.FirstInputList="join-list-first-list-argument-declaration",n.SecondInputList="join-list-second-list-argument-declaration",n))(Tu||{}),Eu=(n=>(n.ResultList="join-list-result-list-return-delaration",n.Error="join-list-error-return-delaration",n))(Eu||{});const Ru={type:r.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:r.ValueDescriptor},bu={id:"join-list-first-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ru},gu={type:r.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:r.ValueDescriptor},vu={id:"join-list-second-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:gu},Iu={type:r.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:r.ValueDescriptor},Pu={id:"join-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Iu},Du={type:r.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:k.Join,entityType:r.ActionDescriptor},Au={id:"join-list-first-list-argument-declaration",type:r.ValueDescriptor,version: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.",dataType:bu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Du},Su={type:r.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:k.Join,entityType:r.ActionDescriptor},Ou={id:"join-list-second-list-argument-declaration",type:r.ValueDescriptor,version: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.",dataType:vu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:Su},Cu={type:r.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:k.Join,entityType:r.ActionDescriptor},Bu={parentRelationType:C.FixedReturns,id:"join-list-result-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:Pu,required:!0,index:0,parent:Cu},wu={type:r.GenericReference,id:"join-list-operation-error-parent-ref",entityId:k.Join,entityType:r.ActionDescriptor},_u={parentRelationType:C.FixedReturns,id:"join-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:wu},Do={id:k.Join,type:r.ActionDescriptor,version:1,name:k.Join,description:"Join two lists together, to form a single resulting list value.",fixedArguments:[Au,Ou],error:_u,fixedReturns:[Bu],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Mu=(n=>(n.InputList="list-to-split-argument-declaration",n.SplitIndex="split-list-index-argument-declaration",n))(Mu||{}),Nu=(n=>(n.FirstOutputList="split-list-first-output-list-return-delaration",n.SecondOutputList="split-list-second-output-list-return-delaration",n.Error="split-list-error-return-delaration",n))(Nu||{});const $u={type:r.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:r.ValueDescriptor},Vu={id:"split-list-operation-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:$u},Lu={type:r.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:r.ValueDescriptor},Gu={id:"split-list-operation-split-index-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Lu},Ao={type:r.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:r.ValueDescriptor},Fu={id:"split-list-operation-first-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ao},Uu={type:r.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},xu={id:"list-to-split-argument-declaration",type:r.ValueDescriptor,version:1,name:"List to split",description:"The list to split at the given index",dataType:Vu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Uu},ju={type:r.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},ku={id:"split-list-index-argument-declaration",type:r.ValueDescriptor,version: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.",dataType:Gu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:ju},qu={type:r.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},Ju={parentRelationType:C.FixedReturns,id:"split-list-first-output-list-return-delaration",type:r.ValueDescriptor,version:1,name:"First list",description:"The list of values up to the split index",dataType:Fu,required:!0,index:0,parent:qu},Wu={id:"split-list-operation-second-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ao},Hu={type:r.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},Yu={parentRelationType:C.FixedReturns,id:"split-list-second-output-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Second list",description:"The list of values up to the split index",dataType:Wu,required:!0,index:0,parent:Hu},zu={type:r.GenericReference,id:"split-list-operation-error-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},Zu={parentRelationType:C.FixedReturns,id:"split-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:zu},So={id:k.Split,type:r.ActionDescriptor,version:1,name:k.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",fixedArguments:[xu,ku],fixedReturns:[Ju,Yu],error:Zu,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Xu=(n=>(n.InputList="get-last-in-list-input-list-argument-declaration",n))(Xu||{}),Qu=(n=>(n.OutputElement="get-last-in-list-output-element-return-delaration",n.Error="get-last-in-list-error-return-delaration",n))(Qu||{});const Ku={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",entityType:r.ValueDescriptor},ep={id:"get-last-in-list-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ku},tp={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",entityType:r.ValueDescriptor},np={id:"get-last-in-list-output-element-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:tp},rp={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:k.GetLast,entityType:r.ActionDescriptor},ip={id:"get-last-in-list-input-list-argument-declaration",type:r.ValueDescriptor,version:1,name:"List",description:"The list to get the last element from.",dataType:ep,parentRelationType:C.FixedArguments,required:!0,index:0,parent:rp},ap={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:k.GetLast,entityType:r.ActionDescriptor},sp={parentRelationType:C.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:r.ValueDescriptor,version:1,name:"Last element",description:"The last element of the given list.",dataType:np,required:!0,index:0,parent:ap},op={type:r.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:k.GetLast,entityType:r.ActionDescriptor},lp={parentRelationType:C.FixedReturns,id:"get-last-in-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:op},Oo={id:k.GetLast,type:r.ActionDescriptor,version:1,name:k.GetLast,description:"Outputs the last element of a given list.",fixedArguments:[ip],fixedReturns:[sp],error:lp,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var cp=(n=>(n.List="append-to-list-lsit-argument-declaration",n.ElementToAppend="append-to-list-element-to-append-argument-declaration",n))(cp||{}),dp=(n=>(n.ResultList="append-to-list-result-list-return-delaration",n.Error="append-to-list-error-return-delaration",n))(dp||{});const up={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:r.ValueDescriptor},pp={id:"append-to-list-lsit-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:up},yp={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:r.ValueDescriptor},hp={id:"append-to-list-second-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:yp},fp={type:r.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:r.ValueDescriptor},mp={id:"append-to-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:fp},Tp={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:k.Append,entityType:r.ActionDescriptor},Co={id:"append-to-list-lsit-argument-declaration",type:r.ValueDescriptor,version:1,name:"List value",description:"The list to which the element will be appended",dataType:pp,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Tp},Ep={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:k.Append,entityType:r.ActionDescriptor},Bo={id:"append-to-list-element-to-append-argument-declaration",type:r.ValueDescriptor,version:1,name:"Element",description:"The element that will be added at the end of the list",dataType:hp,parentRelationType:C.FixedArguments,required:!0,index:1,parent:Ep},Rp={type:r.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:k.Append,entityType:r.ActionDescriptor},bp={parentRelationType:C.FixedReturns,id:"append-to-list-result-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:mp,required:!0,index:0,parent:Rp},gp={type:r.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:k.Append,entityType:r.ActionDescriptor},vp={parentRelationType:C.FixedReturns,id:"append-to-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:gp},ba={id:k.Append,type:r.ActionDescriptor,version:1,name:k.Append,description:"Adds a given element to the end of a list value.",fixedArguments:[Co,Bo],error:vp,fixedReturns:[bp],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ip={[k.Join]:Do,[k.Split]:So,[k.GetLast]:Oo,[k.Append]:ba};var Pp=(n=>(n.ListOfFunctions="parallel-execution-list-of-functions-argument-declaration",n))(Pp||{}),Dp=(n=>(n.ListOfExecutionResults="parallel-execution-result-return-delaration",n.Error="parallel-execution-error-return-delaration",n))(Dp||{});const Ap={id:"parallel-execution-list-of-functions-blueprint-id",type:r.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",argumentsType:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},Sp={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"parallel-execution-list-of-functions-argument-declaration",entityType:r.ValueDescriptor},Op={id:"parallel-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ap,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Sp},Cp={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"parallel-execution-result-return-delaration",entityType:r.ValueDescriptor},Bp={id:"b761acec-0755-4582-a68b-76267038bbe1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Cp},wp={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Pe.Parallel,entityType:r.ActionDescriptor},wo={id:"parallel-execution-list-of-functions-argument-declaration",type:r.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Op,required:!0,index:0,parent:wp,parentRelationType:C.FixedArguments},_p={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Pe.Parallel,entityType:r.ActionDescriptor},_o={id:"parallel-execution-result-return-delaration",type:r.ValueDescriptor,version: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:Bp,required:!0,index:0,parent:_p,parentRelationType:C.FixedReturns},Mp={type:r.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Pe.Parallel,entityType:r.ActionDescriptor},Np={id:"parallel-execution-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Mp,parentRelationType:C.ReturnedError},$t={id:Pe.Parallel,type:r.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:Pe.Parallel,fixedArguments:[wo],fixedReturns:[_o],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,error:Np,parent:null};var $p=(n=>(n.MillisecondsNumber="wait-milliseconds-number-argument-declaration",n))($p||{}),Vp=(n=>(n.Error="wait-operation-error-return-delaration",n))(Vp||{});const Lp={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:r.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Gp={id:"wait-milliseconds-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Lp},Fp={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:r.ActionDescriptor,entityId:Pe.Wait},Un={id:"wait-milliseconds-number-argument-declaration",type:r.ValueDescriptor,version:1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",dataType:Gp,required:!0,index:0,parent:Fp,parentRelationType:C.FixedArguments},Up={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Pe.Wait,entityType:r.ActionDescriptor},xp={id:"wait-operation-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Up,parentRelationType:C.ReturnedError},ot={id:Pe.Wait,type:r.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:Pe.Wait,fixedArguments:[Un],fixedReturns:[],error:xp,argumentsType:L.Fixed,returnsType:L.None,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var jp=(n=>(n.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",n))(jp||{}),kp=(n=>(n.ListOfExecutionResults="sequential-execution-result-return-delaration",n.Error="sequential-execution-error-return-delaration",n))(kp||{});const qp={id:"sequential-execution-list-of-functions-blueprint-id",type:r.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",argumentsType:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},Jp={type:r.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:r.ValueDescriptor},Wp={id:"sequential-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:qp,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Jp},Hp={type:r.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:r.ValueDescriptor},Yp={id:"sequential-execution-list-of-execution-results-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Hp},zp={type:r.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Pe.Sequential,entityType:r.ActionDescriptor},Mo={id:"sequential-execution-list-of-functions-argument-declaration",type:r.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Wp,required:!0,index:0,parent:zp,parentRelationType:C.FixedArguments},Zp={type:r.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Pe.Sequential,entityType:r.ActionDescriptor},No={id:"sequential-execution-result-return-delaration",type:r.ValueDescriptor,version: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:Yp,required:!0,index:0,parent:Zp,parentRelationType:C.FixedReturns},Xp={type:r.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Pe.Sequential,entityType:r.ActionDescriptor},Qp={id:"sequential-execution-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Xp,parentRelationType:C.ReturnedError},tn={id:Pe.Sequential,type:r.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:Pe.Sequential,fixedArguments:[Mo],fixedReturns:[No],error:Qp,returnsType:L.Fixed,argumentsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Kp={[Pe.Parallel]:$t,[Pe.Wait]:ot,[Pe.Sequential]:tn};var ey=(n=>(n.EntityToInstanciate="entity-to-instanciate-argument-declaration",n))(ey||{}),ty=(n=>(n.Error="create-new-instance-error-return-delaration",n))(ty||{});const ny={type:r.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},ry={id:"entity-to-instanciate-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:ny},iy={type:r.GenericReference,id:"create-new-instance-operation-ref",entityType:r.ActionDescriptor,entityId:Ze.CreateNewInstance},ay={id:"entity-to-instanciate-argument-declaration",type:r.ValueDescriptor,version:1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",dataType:ry,required:!0,parentRelationType:C.FixedArguments,index:0,parent:iy},sy={type:r.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ze.CreateNewInstance,entityType:r.ActionDescriptor},oy={parentRelationType:C.FixedReturns,id:"create-new-instance-output-entity-declaration",type:r.ValueDescriptor,version:1,dataType:null,name:"Created entity",description:"The entity that was created",parent:sy,required:!0,index:0},ly={type:r.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ze.CreateNewInstance,entityType:r.ActionDescriptor},cy={parentRelationType:C.FixedReturns,id:"create-new-instance-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:ly},Or={id:Ze.CreateNewInstance,type:r.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,name:Ze.CreateNewInstance,fixedArguments:[ay],fixedReturns:[oy],error:cy,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var dy=(n=>(n.EntityToMatchType="validate-data-operation-entity-to-match-type-argument-declaration",n.DataToValidate="validate-data-operation-data-to-validate-argument-declaration",n))(dy||{}),uy=(n=>(n.Error="validate-data-error-return-delaration",n.OutputEntity="validate-data-output-entity-declaration",n))(uy||{});const py={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"validate-data-operation-data-to-validate-argument-declaration"},yy={id:"validate-data-operation-data-to-validate-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:py},hy={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ze.Validate},fy={id:"validate-data-operation-data-to-validate-argument-declaration",type:r.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",dataType:yy,required:!0,parentRelationType:C.FixedArguments,index:0,parent:hy},my={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"validate-data-operation-entity-to-match-type-argument-declaration"},Ty={id:"validate-data-operation-entity-to-match-type-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:my},Ey={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ze.Validate},Ry={id:"validate-data-operation-entity-to-match-type-argument-declaration",type:r.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:Ty,required:!0,index:0,parentRelationType:C.FixedArguments,parent:Ey},by={type:r.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ze.Validate,entityType:r.ActionDescriptor},gy={id:"validate-data-output-entity-declaration",type:r.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",parent:by,required:!0,index:0,parentRelationType:C.FixedReturns},vy={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ze.Validate,entityType:r.ActionDescriptor},Iy={id:"validate-data-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:vy,parentRelationType:C.ReturnedError},xn={id:Ze.Validate,type:r.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:Ze.Validate,fixedArguments:[Ry,fy],fixedReturns:[gy],error:Iy,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Py={[Ze.CreateNewInstance]:Or,[Ze.Validate]:xn};var $o=(n=>(n.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",n))($o||{});const Ve={[r.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[r.BuiltInBaseEntity]:{[_.KEY_VALUE_PARAM]:{id:_.KEY_VALUE_PARAM},[_.HTTP_ENDPOINT]:{id:_.HTTP_ENDPOINT,properties:{method:"http-endpoint-built-in-method-property-id",path:"http-endpoint-built-in-path-property-id",cors:"http-endpoint-built-in-cors-property-id"}},[_.PERSISTED_ENTITY]:{id:_.PERSISTED_ENTITY,properties:{database:"persisted-built-in-base-entity-database-property-id",identifier:"persisted-built-in-base-entity-identifier-property-id"}},[_.RELATIONAL_DATABASE]:{id:_.RELATIONAL_DATABASE,properties:{identifier:"relational-database-built-in-base-entity-identifier-property-id",username:"relational-database-built-in-base-entity-username-property-id",password:"relational-database-built-in-base-entity-password-property-id",minSize:"relational-database-built-in-base-entity-min-size-property-id",default:"relational-database-built-in-base-entity-default-property-id"}},[_.CRON_JOB]:{id:_.CRON_JOB,properties:{expression:"cron-job-built-in-base-entity-expression-property-id"}}},[r.Operation]:{[ve.Join]:{id:ve.Join,inputs:{first:"join-string-first-string-input-id",second:"join-string-second-string-input-id"},outputs:{result:"join-string-result-string-return-delaration-id",error:"join-string-error-return-delaration-id"}},[Ye.HttpRequest]:{id:Ye.HttpRequest,inputs:{url:"http-request-url-input-id",query:"http-request-query-input-id",method:"http-request-method-input-id",headers:"http-request-headers-input-id",body:"http-request-body-string-input-id"},outputs:{code:"http-response-code-return-delaration-id",body:"http-response-body-return-delaration-id",headers:"http-response-headers-return-delaration-id",error:"http-request-error-return-delaration-id"}}},[r.Loop]:{[je.List]:{id:je.List,inputs:{list:"iterate-over-list-loop-list-input-id"},outputs:{results:"iterate-over-list-loop-output-id"}},[je.ManualFlow]:{id:je.ManualFlow,inputs:{},outputs:{results:"manual-flow-loop-output-id"}}},[r.Condition]:{[Se.MoreThanOrEqual]:{id:Se.MoreThanOrEqual,inputs:{leftHand:"condition-more-than-or-equal-left-hand-input-id",rightHand:"condition-more-than-or-equal-right-hand-input-id"}},[Ct.NotEmpty]:{id:Ct.NotEmpty,inputs:{leftHand:"condition-not-empty-input-id"}}},[r.GlobalEvent]:{[Kt.PROJECT_PUBLICATION_COMPLETED]:{id:Kt.PROJECT_PUBLICATION_COMPLETED}}},Je=Ve[r.Operation]["base-http-request"],Dy={type:r.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:r.DataType,entityId:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3"},Ay={id:"http-request-url-default-value-id",type:r.PrimitiveValue,version:1,value:"https://some-url.com",name:v.String,valueAsType:null,parent:Dy,autogeneration:null},Sy={type:r.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Je.inputs.url,entityType:r.ValueDescriptor},Oy={id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:Ay,constant:!1,parent:Sy},Cy={type:r.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Je.inputs.query,entityType:r.ValueDescriptor},By={id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Cy},wy={type:r.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:r.DataType,entityId:"6df7ec2b-5dbd-44af-896b-17b314e88560"},_y={id:"http-request-method-default-value-id",type:r.PrimitiveValue,version:1,value:"GET",name:v.Enum,valueAsType:null,parent:wy,autogeneration:null},My={type:r.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Je.inputs.method,entityType:r.ValueDescriptor},Ny={id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:En,isList:!1,asType:!1,isNullable:!1,defaultValue:_y,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],constant:!1,parent:My},$y={type:r.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Je.inputs.headers,entityType:r.ValueDescriptor},Vy={id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$y},Ly={type:r.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Je.inputs.body,entityType:r.ValueDescriptor},Gy={id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Ly},Fy={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:r.ValueDescriptor,entityId:Je.outputs.code},Uy={id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Fy},xy={type:r.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:r.DataType,entityId:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe"},jy={type:r.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:r.ValueDescriptor,entityId:Je.outputs.headers},ky={id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-headers-default-value-id",type:r.PrimitiveValue,version:1,value:{},name:v.JSON,parent:xy,valueAsType:null,autogeneration:null},constant:!1,parent:jy},qy={type:r.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:r.DataType,entityId:"05fc1a5d-151a-479a-9c4e-4063f3456177"},Jy={type:r.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:r.ValueDescriptor,entityId:Je.outputs.body},Wy={id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-body-default-value-id",type:r.PrimitiveValue,version:1,value:{},name:v.JSON,parent:qy,valueAsType:null,autogeneration:null},constant:!1,parent:Jy},Hy={type:r.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},ga={id:Je.inputs.method,type:r.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,name:"Method",dataType:Ny,required:!1,index:0,parentRelationType:C.FixedArguments,parent:Hy},Yy={type:r.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},va={id:Je.inputs.url,type:r.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:1,name:"URL",dataType:Oy,required:!1,index:1,parentRelationType:C.FixedArguments,parent:Yy},zy={type:r.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Vo={id:Je.inputs.query,type:r.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,name:"Query Params",dataType:By,required:!1,index:2,parentRelationType:C.FixedArguments,parent:zy},Zy={type:r.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Ia={id:Je.inputs.headers,type:r.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,name:"Headers",dataType:Vy,required:!1,index:3,parent:Zy,parentRelationType:C.FixedArguments},Xy={type:r.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Pa={id:Je.inputs.body,type:r.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 JSON data structure or a text value.",version:1,name:"Body",dataType:Gy,required:!1,index:4,parentRelationType:C.FixedArguments,parent:Xy},Qy={type:r.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Lo={id:Je.outputs.code,type:r.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,name:"Code",dataType:Uy,required:!0,index:0,parentRelationType:C.FixedReturns,parent:Qy},Ky={type:r.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Da={parentRelationType:C.FixedReturns,id:Je.outputs.headers,type:r.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,name:"Headers",dataType:ky,required:!0,index:1,parent:Ky},eh={type:r.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},yi={parentRelationType:C.FixedReturns,id:Je.outputs.body,type:r.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 JSON data structure or a text value.",version:1,name:"Body",dataType:Wy,required:!0,index:2,parent:eh},th={type:r.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},nh={type:r.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:r.ValueDescriptor,entityId:Je.outputs.error},rh={id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,asType:!1,isNullable:!1,constant:!1,defaultValue:null,parent:nh},Go={parentRelationType:C.ReturnedError,id:Je.outputs.error,type:r.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",dataType:rh,required:!0,index:0,parent:th},hi={type:r.ActionDescriptor,id:Ye.HttpRequest,name:Ye.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,fixedArguments:[ga,va,Vo,Ia,Pa],fixedReturns:[Lo,Da,yi],argumentsType:L.Fixed,returnsType:L.Fixed,error:Go,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},ih={[Ye.HttpRequest]:hi},tI={...mu,...nu,...Ip,...Kp,...Py,...ih},ah=Ve[r.Loop]["list-loop"],sh={id:"iterate-over-list-loop-return-declaration-parent-ref-id",type:r.GenericReference,entityId:je.List,entityType:r.ActionDescriptor},oh={id:ah.outputs.results,type:r.ValueDescriptor,version:1,name:"Results",description:"List of results from the loop. One item in the list for each iteration of the loop.",dataType:null,required:!0,index:0,parent:sh,parentRelationType:C.FixedReturns},lh={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",entityType:r.ArgumentDeclaration},ch={id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:lh},dh={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:je.List,entityType:r.ActionDescriptor},uh={id:ah.inputs.list,type:r.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,dataType:ch,index:0,parent:dh,parentRelationType:C.FixedArguments},jn={id:je.List,type:r.ActionDescriptor,version:1,name:je.List,description:"Iterates over a list of entities",fixedArguments:[uh],fixedReturns:[oh],error:null,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},nI=Ve[r.Loop]["list-loop"],ph={id:"manual-flow-loop-previous-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"manual-flow-loop-previous-iterations-results-declaration-id",entityType:r.ReturnDeclaration},yh={id:"manual-flow-loop-previous-iterations-results-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:ph},hh={id:"manual-flow-loop-previous-iterations-results-declaration-parent-ref-id",type:r.GenericReference,entityId:je.ManualFlow,entityType:r.ActionDescriptor},fh={id:nI.outputs.results,type:r.ValueDescriptor,version:1,name:"Results",description:"List of results from the loop. One item in the list for each iteration of the loop.",dataType:yh,required:!0,index:1,parentRelationType:C.FixedReturns,parent:hh},Fo={id:je.ManualFlow,type:r.ActionDescriptor,version:1,name:je.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.",fixedArguments:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[fh],argumentsType:L.None,returnsType:L.Fixed,error:null,parent:null},Aa=Ve[r.BuiltInBaseEntity][_.KEY_VALUE_PARAM],rI={id:"key-value-param-built-in-base-entity-name-property-data-type-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property-data-type",entityType:r.DataType},mh={id:"key-value-param-built-in-base-entity-name-property-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property",entityType:r.Property},iI={id:"key-value-param-built-in-base-entity-name-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:null,parent:mh},Th={id:"key-value-param-built-in-base-entity-name-property-parent-ref",type:r.GenericReference,entityId:Aa.id,entityType:r.BuiltInBaseEntity},Eh={required:!0,id:"key-value-param-built-in-base-entity-name-property",name:"Parameter name",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:iI,description:"The name of the path parameter",parent:Th},aI={id:"key-value-param-built-in-base-entity-value-property-data-type-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property-data-type",entityType:r.DataType},Rh={id:"key-value-param-built-in-base-entity-value-property-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property",entityType:r.Property},sI={id:"key-value-param-built-in-base-entity-value-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:null,parent:Rh},bh={id:"key-value-param-built-in-base-entity-value-property-parent-ref",type:r.GenericReference,entityId:Aa.id,entityType:r.BuiltInBaseEntity},gh={required:!0,id:"key-value-param-built-in-base-entity-value-property",name:"Parameter Value",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:1,dataType:sI,description:"The value of the path parameter",parent:bh},Sa={id:Aa.id,version:1,description:'An entity with a "name" and "value" property representing a breakdown of a key-value pair.',name:Aa.id,type:r.BuiltInBaseEntity,abstract:!1,static:!1,interactive:!0,properties:[Eh,gh],abstractMethods:[],methods:[],extends:[]},fi=Ve[r.BuiltInBaseEntity][_.HTTP_ENDPOINT].properties,vh={id:"endpointBuiltInCorsPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInCorsPropertyDataType"},Ih={id:"endpointBuiltInCorsPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:fi.cors},Ph={id:"endpointBuiltInCorsPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:["*"],parent:vh,autogeneration:null,valueAsType:null},parent:Ih},Dh={id:"endpointBuiltInBaseEntityRef",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Ah={required:!0,id:fi.cors,name:"Allowed origins",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:Ph,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:Dh},Sh={id:"endpointBuiltInPathPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInPathPropertyDataType"},Oh={id:"endpointBuiltInPathPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:fi.path},Ch={id:"endpointBuiltInPathPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.String,value:"/",parent:Sh,autogeneration:null,valueAsType:null},parent:Oh},Bh={id:"endpointBuiltInBaseEntityRefTwo",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Uo={required:!0,id:fi.path,name:"Path",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:Ch,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:Bh},wh={id:"endpointBuiltInMethodPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInMethodPropertyDataType"},_h={id:"endpointBuiltInMethodPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"endpointBuiltInMethodProperty"},Mh={id:"endpointBuiltInMethodPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:En,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,value:"GET",name:v.Enum,parent:wh,autogeneration:null,valueAsType:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:_h},Nh={id:"endpointBuiltInBaseEntityRefThree",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},xo={required:!0,id:fi.method,name:"Method",version:1,type:r.Property,private:!1,index:2,implements:null,abstract:!0,static:!0,dataType:Mh,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:Nh},$h={id:"endpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointRequestHeadersVariableDataType"},Vh={id:"endpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},Lh={id:"endpointRequestHeadersVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:$h,autogeneration:null,valueAsType:null},parent:Vh},Gh={id:"endpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},Fh={id:"endpointRequestBodyVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:Gh},Uh={id:"endpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointRequestQueryParamsVariableDataType"},xh={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},jh={id:"endpointRequestQueryParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:Sa,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:[],parent:Uh,autogeneration:null,valueAsType:null},parent:xh},kh={id:"endpointPathParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointPathParamsVariableDataType"},qh={id:"endpointPathParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},Jh={id:"endpointPathParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Sa,asType:!1,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:[],parent:kh,autogeneration:null,valueAsType:null},parent:qh},Wh={id:"endpointReachedTriggerActionDescriptorRef",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Hh={id:"endpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:r.ValueDescriptor,name:"Request headers",dataType:Lh,required:!0,index:0,parentRelationType:C.FixedArguments,parent:Wh},Yh={id:"endpointReachedTriggerActionDescriptorRefTwo",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},zh={id:"endpointPathParamsArgumentDeclaration",type:r.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,name:"Path parameters",dataType:Jh,required:!0,index:1,parentRelationType:C.FixedArguments,parent:Yh},Zh={id:"endpointReachedTriggerActionDescriptorRefThree",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Xh={id:"endpointRequestQueryParamsArgumentDeclaration",version: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:r.ValueDescriptor,name:"Request query params",dataType:jh,required:!0,index:2,parentRelationType:C.FixedArguments,parent:Zh},Qh={id:"endpointReachedTriggerActionDescriptorRefFour",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Kh={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:r.ValueDescriptor,name:"Request body",dataType:Fh,index:3,required:!0,parentRelationType:C.FixedArguments,parent:Qh},ef={id:"endpointResponseCodeReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},tf={id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ef},nf={id:"endpointReturnStatementRef",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},rf={id:"endpointResponseCodeReturnDeclaration",version: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:r.ValueDescriptor,name:"Response code",dataType:tf,required:!0,index:0,parentRelationType:C.FixedReturns,parent:nf},af={id:"endpointResponseHeadersDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointResponseHeadersDataType"},sf={id:"endpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},of={id:"endpointResponseHeadersDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:af,autogeneration:null,valueAsType:null},parent:sf},lf={id:"endpointReturnStatementRefTwo",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},cf={id:"endpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:r.ValueDescriptor,name:"Response headers",dataType:of,required:!1,index:1,parentRelationType:C.FixedReturns,parent:lf},df={id:"endpointResponseBodyReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},uf={id:"endpointResponseBodyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:df},pf={id:"endpointReturnStatementRefThree",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},yf={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:r.ValueDescriptor,name:"Response body",dataType:uf,required:!1,index:2,parentRelationType:C.FixedReturns,parent:pf},hf={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},jo={id:"endpointReachedTriggerActionDescriptor",type:r.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",argumentsType:L.Fixed,dynamicArgumentTypes:null,fixedArguments:[Hh,zh,Xh,Kh],returnsType:L.Fixed,fixedReturns:[rf,cf,yf],error:null,dynamicReturnTypes:null,parent:hf},Oa={id:_.HTTP_ENDPOINT,version:1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:_.HTTP_ENDPOINT,type:r.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[Ah,Uo,xo],abstractMethods:[jo],extends:[],methods:[]},jt=Ve[r.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,ff={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-identifier-property-data-type-id",entityType:r.DataType},mf={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:jt.properties.identifier,entityType:r.Property},oI={id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:null,parent:ff,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:mf},Cr={id:"relational-database-built-in-base-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Ca={required:!0,id:jt.properties.identifier,name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,dataType:oI,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Cr},lI={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",entityType:r.DataType},Tf={id:"relational-database-built-in-base-entity-username-property-ref-id",type:r.GenericReference,entityId:jt.properties.username,entityType:r.Property},cI={id:"relational-database-built-in-base-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-id",entityType:r.DataType},autogeneration:null,valueAsType:null},parent:Tf},Ba={required:!0,id:jt.properties.username,name:"Username",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,dataType:cI,description:"The username that will be used to connect to the database.",parent:Cr},dI={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",entityType:r.DataType},Ef={id:"relational-database-built-in-base-entity-password-property-ref-id",type:r.GenericReference,entityId:jt.properties.password,entityType:r.Property},uI={id:"relational-database-built-in-base-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:Ef},wa={required:!0,id:jt.properties.password,name:"Password",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,dataType:uI,description:"The password that will be used to connect to the database.",parent:Cr},Rf={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-min-size-property-data-type-id",entityType:r.DataType},bf={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:r.GenericReference,entityId:jt.properties.minSize,entityType:r.Property},pI={id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Be,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:r.PrimitiveValue,version:1,name:v.Number,value:6,parent:Rf,autogeneration:null,valueAsType:null},parent:bf},_a={required:!0,id:jt.properties.minSize,name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,dataType:pI,description:"The minimum size of the database in GB.",parent:Cr},gf={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-default-property-data-type-id",entityType:r.DataType},vf={id:"relational-database-built-in-base-entity-default-property-ref-id",type:r.GenericReference,entityId:jt.properties.default,entityType:r.Property},yI={id:"relational-database-built-in-base-entity-default-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Fn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:r.PrimitiveValue,version:1,name:v.Boolean,value:!1,parent:gf,autogeneration:null,valueAsType:null},parent:vf},If={required:!0,id:jt.properties.default,name:"Default",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:yI,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:Cr},Rn={id:_.RELATIONAL_DATABASE,version:1,description:"This entity provisions a relational database in the cloud.",name:_.RELATIONAL_DATABASE,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Ca,Ba,wa,_a,If],abstractMethods:[],methods:[],extends:[]},Pf={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:r.BuiltInBaseEntity,id:It.DeletePersistedEntity},ko={type:r.FunctionDeclaration,id:It.DeletePersistedEntity,name:It.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:Pf,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},Df={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:r.BuiltInBaseEntity,id:It.SoftDeletePersistedEntity},Af={type:r.FunctionDeclaration,id:It.SoftDeletePersistedEntity,name:It.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:Df,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},Sf=Ve[r.BuiltInBaseEntity][_.PERSISTED_ENTITY].properties,hI={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",entityType:r.DataType},Of={id:"persisted-built-in-base-entity-database-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",entityType:r.Property},fI={id:"persisted-built-in-base-entity-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Rn,asType:!1,defaultValue:null,parent:Of},Cf={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},mi={required:!0,id:Sf.database,name:"Database",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:fI,description:"The database that the entity belongs to.",parent:Cf},Bf={id:"persisted-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-data-type-id",entityType:r.DataType},wf={id:"persisted-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-id",entityType:r.Property},mI={id:"persisted-built-in-base-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:ma,asType:!1,defaultValue:{id:"persisted-built-in-base-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.UUID,value:null,parent:Bf,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:wf},_f={id:"persisted-built-in-base-entity-identifier-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Mf={required:!0,id:Sf.identifier,name:"Identifier",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:mI,description:"Auto-generated unique identifier for the entity, can be used to identify the entity among other entities of the same type.",parent:_f},TI={id:"persisted-built-in-base-entity-deleted-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-data-type-id",entityType:r.DataType},Nf={id:"persisted-built-in-base-entity-deleted-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-id",entityType:r.Property},$f={id:"persisted-built-in-base-entity-deleted-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!0,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Nf},Vf={id:"persisted-built-in-base-entity-deleted-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Lf={required:!0,id:"persisted-built-in-base-entity-deleted-at-property-id",name:"Deleted at",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:$f,description:"The date and time when the entity was deleted.",parent:Vf},EI={id:"persisted-built-in-base-entity-created-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-data-type-id",entityType:r.DataType},Gf={id:"persisted-built-in-base-entity-created-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-id",entityType:r.Property},Ff={id:"persisted-built-in-base-entity-created-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Gf},Uf={id:"persisted-built-in-base-entity-created-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},xf={required:!0,id:"persisted-built-in-base-entity-created-at-property-id",name:"Created at",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Ff,description:"The date and time when the entity was created.",parent:Uf},RI={id:"persisted-built-in-base-entity-updated-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-data-type-id",entityType:r.DataType},jf={id:"persisted-built-in-base-entity-updated-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-id",entityType:r.Property},kf={id:"persisted-built-in-base-entity-updated-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:jf},qf={id:"persisted-built-in-base-entity-updated-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Jf={required:!0,id:"persisted-built-in-base-entity-updated-at-property-id",name:"Updated at",version:1,type:r.Property,private:!1,implements:null,abstract:!1,static:!1,index:0,dataType:kf,description:"The date and time when the entity was last updated.",parent:qf},we={id:_.PERSISTED_ENTITY,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:_.PERSISTED_ENTITY,type:r.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[mi,Mf,Lf,xf,Jf],methods:[ko,Af],extends:[]},Wf={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},qo={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:r.ActionDescriptor,argumentsType:L.None,returnsType:L.None,description:"Executed when the cron job is triggered",fixedArguments:[],dynamicArgumentTypes:null,error:null,fixedReturns:[],dynamicReturnTypes:null,parent:Wf},Hf=Ve[r.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,bI={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:r.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",entityType:r.DataType},Yf={id:"cron-job-built-in-base-entity-expression-property-ref",type:r.GenericReference,entityId:Hf.properties.expression,entityType:r.Property},gI={id:"cron-job-built-in-base-entity-expression-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:Yf},zf={id:"cron-job-built-in-base-entity-ref",type:r.GenericReference,entityId:_.CRON_JOB,entityType:r.BuiltInBaseEntity},Zf={required:!0,id:Hf.properties.expression,name:"Cron expression",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:gI,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:zf},Jo={id:_.CRON_JOB,version: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:_.CRON_JOB,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Zf],methods:[],abstractMethods:[qo],extends:[]},Xf={type:r.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:r.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Wo={id:"execution-built-in-entity-abort-method-id",type:r.FunctionDeclaration,version:1,name:It.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:Xf},Ho={id:_.EXECUTION,type:r.BuiltInBaseEntity,version:1,name:_.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:[Wo],abstractMethods:[]},vI=Ve[r.Condition]["not-empty"],Qf={type:r.GenericReference,id:"not-empty-condition-ref",entityType:r.ActionDescriptor,entityId:Ct.NotEmpty},Kf={id:vI.inputs.leftHand,type:r.ValueDescriptor,version:1,name:"Value",description:"The value to check if it is not empty",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Qf},kn={type:r.ActionDescriptor,id:Ct.NotEmpty,version:1,name:Ct.NotEmpty,description:"Checks if the value is not empty",parent:null,fixedArguments:[Kf],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.Fixed,returnsType:L.None,error:null},em={[Ct.NotEmpty]:kn},tm=Ve[r.Condition]["more-than-or-equal"],nm={type:r.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Se.MoreThanOrEqual},rm={id:tm.inputs.leftHand,type:r.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:0,parent:nm},im={type:r.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Se.MoreThanOrEqual},am={id:tm.inputs.rightHand,type:r.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:1,parent:im},Br={type:r.ActionDescriptor,id:Se.MoreThanOrEqual,version:1,name:Se.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,fixedArguments:[rm,am],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.Fixed,returnsType:L.None,error:null},sm={[Se.MoreThanOrEqual]:Br},II={...em,...sm},Ma={type:r.ActionDescriptor,id:Kt.PROJECT_PUBLICATION_COMPLETED,version:1,name:Kt.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,fixedArguments:[],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.None,returnsType:L.None,error:null},PI={[Kt.PROJECT_PUBLICATION_COMPLETED]:Ma},Yo=Ve[r.ValueDescriptor][$o.ActionOngoingProcessOutputValue],om={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:r.ValueDescriptor,entityId:Yo.id},lm={id:Yo.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ho,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:om},zo={id:Yo.id,type:r.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",dataType:lm,required:!0,index:0,parent:null,parentRelationType:C.OngoingProcessExecution};var z;(function(n){n.assertEqual=a=>a;function e(a){}n.assertIs=e;function t(a){throw new Error}n.assertNever=t,n.arrayToEnum=a=>{const s={};for(const o of a)s[o]=o;return s},n.getValidEnumValues=a=>{const s=n.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),o={};for(const d of s)o[d]=a[d];return n.objectValues(o)},n.objectValues=a=>n.objectKeys(a).map(function(s){return a[s]}),n.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&s.push(o);return s},n.find=(a,s)=>{for(const o of a)if(s(o))return o},n.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function i(a,s=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}n.joinValues=i,n.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(z||(z={}));var Zo;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(Zo||(Zo={}));const M=z.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bn=n=>{switch(typeof n){case"undefined":return M.undefined;case"string":return M.string;case"number":return isNaN(n)?M.nan:M.number;case"boolean":return M.boolean;case"function":return M.function;case"bigint":return M.bigint;case"symbol":return M.symbol;case"object":return Array.isArray(n)?M.array:n===null?M.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?M.promise:typeof Map<"u"&&n instanceof Map?M.map:typeof Set<"u"&&n instanceof Set?M.set:typeof Date<"u"&&n instanceof Date?M.date:M.object;default:return M.unknown}},P=z.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"]),DI=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class ft extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(s){return s.message},i={_errors:[]},a=s=>{for(const o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)i._errors.push(t(o));else{let d=i,p=0;for(;p<o.path.length;){const h=o.path[p];p===o.path.length-1?(d[h]=d[h]||{_errors:[]},d[h]._errors.push(t(o))):d[h]=d[h]||{_errors:[]},d=d[h],p++}}};return a(this),i}static assert(e){if(!(e instanceof ft))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,z.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},i=[];for(const a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):i.push(e(a));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}ft.create=n=>new ft(n);const wr=(n,e)=>{let t;switch(n.code){case P.invalid_type:n.received===M.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case P.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,z.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:t=`Unrecognized key(s) in object: ${z.joinValues(n.keys,", ")}`;break;case P.invalid_union:t="Invalid input";break;case P.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${z.joinValues(n.options)}`;break;case P.invalid_enum_value:t=`Invalid enum value. Expected ${z.joinValues(n.options)}, received '${n.received}'`;break;case P.invalid_arguments:t="Invalid function arguments";break;case P.invalid_return_type:t="Invalid function return type";break;case P.invalid_date:t="Invalid date";break;case P.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:z.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case P.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case P.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case P.custom:t="Invalid input";break;case P.invalid_intersection_types:t="Intersection results could not be merged";break;case P.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case P.not_finite:t="Number must be finite";break;default:t=e.defaultError,z.assertNever(n)}return{message:t}};let cm=wr;function AI(n){cm=n}function Na(){return cm}const $a=n=>{const{data:e,path:t,errorMaps:i,issueData:a}=n,s=[...t,...a.path||[]],o={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let d="";const p=i.filter(h=>!!h).slice().reverse();for(const h of p)d=h(o,{data:e,defaultError:d}).message;return{...a,path:s,message:d}},SI=[];function w(n,e){const t=Na(),i=$a({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===wr?void 0:wr].filter(a=>!!a)});n.common.issues.push(i)}class Qe{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const a of t){if(a.status==="aborted")return x;a.status==="dirty"&&e.dirty(),i.push(a.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const a of t){const s=await a.key,o=await a.value;i.push({key:s,value:o})}return Qe.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const a of t){const{key:s,value:o}=a;if(s.status==="aborted"||o.status==="aborted")return x;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(i[s.value]=o.value)}return{status:e.value,value:i}}}const x=Object.freeze({status:"aborted"}),_r=n=>({status:"dirty",value:n}),lt=n=>({status:"valid",value:n}),Xo=n=>n.status==="aborted",Qo=n=>n.status==="dirty",Ti=n=>n.status==="valid",Ei=n=>typeof Promise<"u"&&n instanceof Promise;function Va(n,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(n):i?i.value:e.get(n)}function dm(n,e,t,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t}typeof SuppressedError=="function"&&SuppressedError;var V;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(V||(V={}));var Ri,bi;class kt{constructor(e,t,i,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=a}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 um=(n,e)=>{if(Ti(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ft(n.common.issues);return this._error=t,this._error}}};function q(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:a}=n;if(e&&(t||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(o,d)=>{var p,h;const{message:T}=n;return o.code==="invalid_enum_value"?{message:T??d.defaultError}:typeof d.data>"u"?{message:(p=T??i)!==null&&p!==void 0?p:d.defaultError}:o.code!=="invalid_type"?{message:d.defaultError}:{message:(h=T??t)!==null&&h!==void 0?h:d.defaultError}},description:a}}class H{constructor(e){this.spa=this.safeParseAsync,this._def=e,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)}get description(){return this._def.description}_getType(e){return bn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:bn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Qe,ctx:{common:e.parent.common,data:e.data,parsedType:bn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Ei(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const a={common:{issues:[],async:(i=t==null?void 0:t.async)!==null&&i!==void 0?i:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:bn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return um(a,s)}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:bn(e)},a=this._parse({data:e,path:i.path,parent:i}),s=await(Ei(a)?a:Promise.resolve(a));return um(i,s)}refine(e,t){const i=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,s)=>{const o=e(a),d=()=>s.addIssue({code:P.custom,...i(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(p=>p?!0:(d(),!1)):o?!0:(d(),!1)})}refinement(e,t){return this._refinement((i,a)=>e(i)?!0:(a.addIssue(typeof t=="function"?t(i,a):t),!1))}_refinement(e){return new Gt({schema:this,typeName:U.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Jt.create(this,this._def)}nullable(){return Pn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Lt.create(this,this._def)}promise(){return Vr.create(this,this._def)}or(e){return Pi.create([this,e],this._def)}and(e){return Di.create(this,e,this._def)}transform(e){return new Gt({...q(this._def),schema:this,typeName:U.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Bi({...q(this._def),innerType:this,defaultValue:t,typeName:U.ZodDefault})}brand(){return new tl({typeName:U.ZodBranded,type:this,...q(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new wi({...q(this._def),innerType:this,catchValue:t,typeName:U.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return _i.create(this,e)}readonly(){return Mi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const OI=/^c[^\s-]{8,}$/i,CI=/^[0-9a-z]+$/,BI=/^[0-9A-HJKMNP-TV-Z]{26}$/,wI=/^[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,_I=/^[a-z0-9_-]{21}$/i,MI=/^[-+]?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)?)??$/,NI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$I="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ko;const VI=/^(?:(?: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])$/,LI=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,GI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,pm="((\\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])))",FI=new RegExp(`^${pm}$`);function ym(n){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?e=`${e}\\.\\d{${n.precision}}`:n.precision==null&&(e=`${e}(\\.\\d+)?`),e}function UI(n){return new RegExp(`^${ym(n)}$`)}function hm(n){let e=`${pm}T${ym(n)}`;const t=[];return t.push(n.local?"Z?":"Z"),n.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function xI(n,e){return!!((e==="v4"||!e)&&VI.test(n)||(e==="v6"||!e)&&LI.test(n))}class Vt extends H{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==M.string){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.string,received:s.parsedType}),x}const i=new Qe;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){const o=e.data.length>s.value,d=e.data.length<s.value;(o||d)&&(a=this._getOrReturnCtx(e,a),o?w(a,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):d&&w(a,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")NI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"email",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")Ko||(Ko=new RegExp($I,"u")),Ko.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"emoji",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")wI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"uuid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")_I.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"nanoid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")OI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")CI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid2",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")BI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ulid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),w(a,{validation:"url",code:P.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"regex",code:P.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?hm(s).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?FI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?UI(s).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?MI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"duration",code:P.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?xI(e.data,s.version)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ip",code:P.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?GI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"base64",code:P.invalid_string,message:s.message}),i.dirty()):z.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(a=>e.test(a),{validation:t,code:P.invalid_string,...V.errToObj(i)})}_addCheck(e){return new Vt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...V.errToObj(e)})}url(e){return this._addCheck({kind:"url",...V.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...V.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...V.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...V.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...V.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...V.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...V.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...V.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...V.errToObj(e)})}datetime(e){var t,i;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,local:(i=e==null?void 0:e.local)!==null&&i!==void 0?i:!1,...V.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...V.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...V.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...V.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...V.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...V.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...V.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...V.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...V.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...V.errToObj(t)})}nonempty(e){return this.min(1,V.errToObj(e))}trim(){return new Vt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Vt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Vt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Vt.create=n=>{var e;return new Vt({checks:[],typeName:U.ZodString,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...q(n)})};function jI(n,e){const t=(n.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,a=t>i?t:i,s=parseInt(n.toFixed(a).replace(".","")),o=parseInt(e.toFixed(a).replace(".",""));return s%o/Math.pow(10,a)}class gn extends H{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==M.number){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.number,received:s.parsedType}),x}let i;const a=new Qe;for(const s of this._def.checks)s.kind==="int"?z.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),w(i,{code:P.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?jI(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_finite,message:s.message}),a.dirty()):z.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,i,a){return new gn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:V.toString(a)}]})}_addCheck(e){return new gn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:V.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:V.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&z.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}gn.create=n=>new gn({checks:[],typeName:U.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...q(n)});class vn extends H{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==M.bigint){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.bigint,received:s.parsedType}),x}let i;const a=new Qe;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):z.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,i,a){return new vn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:V.toString(a)}]})}_addCheck(e){return new vn({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}vn.create=n=>{var e;return new vn({checks:[],typeName:U.ZodBigInt,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...q(n)})};class gi extends H{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==M.boolean){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.boolean,received:i.parsedType}),x}return lt(e.data)}}gi.create=n=>new gi({typeName:U.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...q(n)});class qn extends H{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==M.date){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.date,received:s.parsedType}),x}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_date}),x}const i=new Qe;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):z.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new qn({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:V.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:V.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}qn.create=n=>new qn({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:U.ZodDate,...q(n)});class La extends H{_parse(e){if(this._getType(e)!==M.symbol){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.symbol,received:i.parsedType}),x}return lt(e.data)}}La.create=n=>new La({typeName:U.ZodSymbol,...q(n)});class vi extends H{_parse(e){if(this._getType(e)!==M.undefined){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.undefined,received:i.parsedType}),x}return lt(e.data)}}vi.create=n=>new vi({typeName:U.ZodUndefined,...q(n)});class Ii extends H{_parse(e){if(this._getType(e)!==M.null){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.null,received:i.parsedType}),x}return lt(e.data)}}Ii.create=n=>new Ii({typeName:U.ZodNull,...q(n)});class Mr extends H{constructor(){super(...arguments),this._any=!0}_parse(e){return lt(e.data)}}Mr.create=n=>new Mr({typeName:U.ZodAny,...q(n)});class Jn extends H{constructor(){super(...arguments),this._unknown=!0}_parse(e){return lt(e.data)}}Jn.create=n=>new Jn({typeName:U.ZodUnknown,...q(n)});class nn extends H{_parse(e){const t=this._getOrReturnCtx(e);return w(t,{code:P.invalid_type,expected:M.never,received:t.parsedType}),x}}nn.create=n=>new nn({typeName:U.ZodNever,...q(n)});class Ga extends H{_parse(e){if(this._getType(e)!==M.undefined){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.void,received:i.parsedType}),x}return lt(e.data)}}Ga.create=n=>new Ga({typeName:U.ZodVoid,...q(n)});class Lt extends H{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==M.array)return w(t,{code:P.invalid_type,expected:M.array,received:t.parsedType}),x;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,d=t.data.length<a.exactLength.value;(o||d)&&(w(t,{code:o?P.too_big:P.too_small,minimum:d?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(w(t,{code:P.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(w(t,{code:P.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((o,d)=>a.type._parseAsync(new kt(t,o,t.path,d)))).then(o=>Qe.mergeArray(i,o));const s=[...t.data].map((o,d)=>a.type._parseSync(new kt(t,o,t.path,d)));return Qe.mergeArray(i,s)}get element(){return this._def.type}min(e,t){return new Lt({...this._def,minLength:{value:e,message:V.toString(t)}})}max(e,t){return new Lt({...this._def,maxLength:{value:e,message:V.toString(t)}})}length(e,t){return new Lt({...this._def,exactLength:{value:e,message:V.toString(t)}})}nonempty(e){return this.min(1,e)}}Lt.create=(n,e)=>new Lt({type:n,minLength:null,maxLength:null,exactLength:null,typeName:U.ZodArray,...q(e)});function Nr(n){if(n instanceof Me){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=Jt.create(Nr(i))}return new Me({...n._def,shape:()=>e})}else return n instanceof Lt?new Lt({...n._def,type:Nr(n.element)}):n instanceof Jt?Jt.create(Nr(n.unwrap())):n instanceof Pn?Pn.create(Nr(n.unwrap())):n instanceof qt?qt.create(n.items.map(e=>Nr(e))):n}class Me extends H{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=z.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==M.object){const h=this._getOrReturnCtx(e);return w(h,{code:P.invalid_type,expected:M.object,received:h.parsedType}),x}const{status:i,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),d=[];if(!(this._def.catchall instanceof nn&&this._def.unknownKeys==="strip"))for(const h in a.data)o.includes(h)||d.push(h);const p=[];for(const h of o){const T=s[h],m=a.data[h];p.push({key:{status:"valid",value:h},value:T._parse(new kt(a,m,a.path,h)),alwaysSet:h in a.data})}if(this._def.catchall instanceof nn){const h=this._def.unknownKeys;if(h==="passthrough")for(const T of d)p.push({key:{status:"valid",value:T},value:{status:"valid",value:a.data[T]}});else if(h==="strict")d.length>0&&(w(a,{code:P.unrecognized_keys,keys:d}),i.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const T of d){const m=a.data[T];p.push({key:{status:"valid",value:T},value:h._parse(new kt(a,m,a.path,T)),alwaysSet:T in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const h=[];for(const T of p){const m=await T.key,b=await T.value;h.push({key:m,value:b,alwaysSet:T.alwaysSet})}return h}).then(h=>Qe.mergeObjectSync(i,h)):Qe.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(e){return V.errToObj,new Me({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var a,s,o,d;const p=(o=(s=(a=this._def).errorMap)===null||s===void 0?void 0:s.call(a,t,i).message)!==null&&o!==void 0?o:i.defaultError;return t.code==="unrecognized_keys"?{message:(d=V.errToObj(e).message)!==null&&d!==void 0?d:p}:{message:p}}}:{}})}strip(){return new Me({...this._def,unknownKeys:"strip"})}passthrough(){return new Me({...this._def,unknownKeys:"passthrough"})}extend(e){return new Me({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Me({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:U.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Me({...this._def,catchall:e})}pick(e){const t={};return z.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new Me({...this._def,shape:()=>t})}omit(e){const t={};return z.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new Me({...this._def,shape:()=>t})}deepPartial(){return Nr(this)}partial(e){const t={};return z.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];e&&!e[i]?t[i]=a:t[i]=a.optional()}),new Me({...this._def,shape:()=>t})}required(e){const t={};return z.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Jt;)s=s._def.innerType;t[i]=s}}),new Me({...this._def,shape:()=>t})}keyof(){return fm(z.objectKeys(this.shape))}}Me.create=(n,e)=>new Me({shape:()=>n,unknownKeys:"strip",catchall:nn.create(),typeName:U.ZodObject,...q(e)}),Me.strictCreate=(n,e)=>new Me({shape:()=>n,unknownKeys:"strict",catchall:nn.create(),typeName:U.ZodObject,...q(e)}),Me.lazycreate=(n,e)=>new Me({shape:n,unknownKeys:"strip",catchall:nn.create(),typeName:U.ZodObject,...q(e)});class Pi extends H{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function a(s){for(const d of s)if(d.result.status==="valid")return d.result;for(const d of s)if(d.result.status==="dirty")return t.common.issues.push(...d.ctx.common.issues),d.result;const o=s.map(d=>new ft(d.ctx.common.issues));return w(t,{code:P.invalid_union,unionErrors:o}),x}if(t.common.async)return Promise.all(i.map(async s=>{const o={...t,common:{...t.common,issues:[]},parent:null};return{result:await s._parseAsync({data:t.data,path:t.path,parent:o}),ctx:o}})).then(a);{let s;const o=[];for(const p of i){const h={...t,common:{...t.common,issues:[]},parent:null},T=p._parseSync({data:t.data,path:t.path,parent:h});if(T.status==="valid")return T;T.status==="dirty"&&!s&&(s={result:T,ctx:h}),h.common.issues.length&&o.push(h.common.issues)}if(s)return t.common.issues.push(...s.ctx.common.issues),s.result;const d=o.map(p=>new ft(p));return w(t,{code:P.invalid_union,unionErrors:d}),x}}get options(){return this._def.options}}Pi.create=(n,e)=>new Pi({options:n,typeName:U.ZodUnion,...q(e)});const rn=n=>n instanceof Si?rn(n.schema):n instanceof Gt?rn(n.innerType()):n instanceof Oi?[n.value]:n instanceof In?n.options:n instanceof Ci?z.objectValues(n.enum):n instanceof Bi?rn(n._def.innerType):n instanceof vi?[void 0]:n instanceof Ii?[null]:n instanceof Jt?[void 0,...rn(n.unwrap())]:n instanceof Pn?[null,...rn(n.unwrap())]:n instanceof tl||n instanceof Mi?rn(n.unwrap()):n instanceof wi?rn(n._def.innerType):[];class Fa extends H{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.object)return w(t,{code:P.invalid_type,expected:M.object,received:t.parsedType}),x;const i=this.discriminator,a=t.data[i],s=this.optionsMap.get(a);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(w(t,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),x)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const a=new Map;for(const s of t){const o=rn(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const d of o){if(a.has(d))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(d)}`);a.set(d,s)}}return new Fa({typeName:U.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...q(i)})}}function el(n,e){const t=bn(n),i=bn(e);if(n===e)return{valid:!0,data:n};if(t===M.object&&i===M.object){const a=z.objectKeys(e),s=z.objectKeys(n).filter(d=>a.indexOf(d)!==-1),o={...n,...e};for(const d of s){const p=el(n[d],e[d]);if(!p.valid)return{valid:!1};o[d]=p.data}return{valid:!0,data:o}}else if(t===M.array&&i===M.array){if(n.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<n.length;s++){const o=n[s],d=e[s],p=el(o,d);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===M.date&&i===M.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}class Di extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=(s,o)=>{if(Xo(s)||Xo(o))return x;const d=el(s.value,o.value);return d.valid?((Qo(s)||Qo(o))&&t.dirty(),{status:t.value,value:d.data}):(w(i,{code:P.invalid_intersection_types}),x)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,o])=>a(s,o)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Di.create=(n,e,t)=>new Di({left:n,right:e,typeName:U.ZodIntersection,...q(t)});class qt extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.array)return w(i,{code:P.invalid_type,expected:M.array,received:i.parsedType}),x;if(i.data.length<this._def.items.length)return w(i,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),x;!this._def.rest&&i.data.length>this._def.items.length&&(w(i,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...i.data].map((o,d)=>{const p=this._def.items[d]||this._def.rest;return p?p._parse(new kt(i,o,i.path,d)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>Qe.mergeArray(t,o)):Qe.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new qt({...this._def,rest:e})}}qt.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qt({items:n,typeName:U.ZodTuple,rest:null,...q(e)})};class Ai extends H{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.object)return w(i,{code:P.invalid_type,expected:M.object,received:i.parsedType}),x;const a=[],s=this._def.keyType,o=this._def.valueType;for(const d in i.data)a.push({key:s._parse(new kt(i,d,i.path,d)),value:o._parse(new kt(i,i.data[d],i.path,d)),alwaysSet:d in i.data});return i.common.async?Qe.mergeObjectAsync(t,a):Qe.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof H?new Ai({keyType:e,valueType:t,typeName:U.ZodRecord,...q(i)}):new Ai({keyType:Vt.create(),valueType:e,typeName:U.ZodRecord,...q(t)})}}class Ua extends H{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.map)return w(i,{code:P.invalid_type,expected:M.map,received:i.parsedType}),x;const a=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([d,p],h)=>({key:a._parse(new kt(i,d,i.path,[h,"key"])),value:s._parse(new kt(i,p,i.path,[h,"value"]))}));if(i.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const p of o){const h=await p.key,T=await p.value;if(h.status==="aborted"||T.status==="aborted")return x;(h.status==="dirty"||T.status==="dirty")&&t.dirty(),d.set(h.value,T.value)}return{status:t.value,value:d}})}else{const d=new Map;for(const p of o){const h=p.key,T=p.value;if(h.status==="aborted"||T.status==="aborted")return x;(h.status==="dirty"||T.status==="dirty")&&t.dirty(),d.set(h.value,T.value)}return{status:t.value,value:d}}}}Ua.create=(n,e,t)=>new Ua({valueType:e,keyType:n,typeName:U.ZodMap,...q(t)});class Wn extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.set)return w(i,{code:P.invalid_type,expected:M.set,received:i.parsedType}),x;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(w(i,{code:P.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(w(i,{code:P.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const s=this._def.valueType;function o(p){const h=new Set;for(const T of p){if(T.status==="aborted")return x;T.status==="dirty"&&t.dirty(),h.add(T.value)}return{status:t.value,value:h}}const d=[...i.data.values()].map((p,h)=>s._parse(new kt(i,p,i.path,h)));return i.common.async?Promise.all(d).then(p=>o(p)):o(d)}min(e,t){return new Wn({...this._def,minSize:{value:e,message:V.toString(t)}})}max(e,t){return new Wn({...this._def,maxSize:{value:e,message:V.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Wn.create=(n,e)=>new Wn({valueType:n,minSize:null,maxSize:null,typeName:U.ZodSet,...q(e)});class $r extends H{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.function)return w(t,{code:P.invalid_type,expected:M.function,received:t.parsedType}),x;function i(d,p){return $a({data:d,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Na(),wr].filter(h=>!!h),issueData:{code:P.invalid_arguments,argumentsError:p}})}function a(d,p){return $a({data:d,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Na(),wr].filter(h=>!!h),issueData:{code:P.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Vr){const d=this;return lt(async function(...p){const h=new ft([]),T=await d._def.args.parseAsync(p,s).catch(I=>{throw h.addIssue(i(p,I)),h}),m=await Reflect.apply(o,this,T);return await d._def.returns._def.type.parseAsync(m,s).catch(I=>{throw h.addIssue(a(m,I)),h})})}else{const d=this;return lt(function(...p){const h=d._def.args.safeParse(p,s);if(!h.success)throw new ft([i(p,h.error)]);const T=Reflect.apply(o,this,h.data),m=d._def.returns.safeParse(T,s);if(!m.success)throw new ft([a(T,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new $r({...this._def,args:qt.create(e).rest(Jn.create())})}returns(e){return new $r({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new $r({args:e||qt.create([]).rest(Jn.create()),returns:t||Jn.create(),typeName:U.ZodFunction,...q(i)})}}class Si extends H{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Si.create=(n,e)=>new Si({getter:n,typeName:U.ZodLazy,...q(e)});class Oi extends H{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return w(t,{received:t.data,code:P.invalid_literal,expected:this._def.value}),x}return{status:"valid",value:e.data}}get value(){return this._def.value}}Oi.create=(n,e)=>new Oi({value:n,typeName:U.ZodLiteral,...q(e)});function fm(n,e){return new In({values:n,typeName:U.ZodEnum,...q(e)})}class In extends H{constructor(){super(...arguments),Ri.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return w(t,{expected:z.joinValues(i),received:t.parsedType,code:P.invalid_type}),x}if(Va(this,Ri,"f")||dm(this,Ri,new Set(this._def.values),"f"),!Va(this,Ri,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return w(t,{received:t.data,code:P.invalid_enum_value,options:i}),x}return lt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return In.create(e,{...this._def,...t})}exclude(e,t=this._def){return In.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}Ri=new WeakMap,In.create=fm;class Ci extends H{constructor(){super(...arguments),bi.set(this,void 0)}_parse(e){const t=z.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==M.string&&i.parsedType!==M.number){const a=z.objectValues(t);return w(i,{expected:z.joinValues(a),received:i.parsedType,code:P.invalid_type}),x}if(Va(this,bi,"f")||dm(this,bi,new Set(z.getValidEnumValues(this._def.values)),"f"),!Va(this,bi,"f").has(e.data)){const a=z.objectValues(t);return w(i,{received:i.data,code:P.invalid_enum_value,options:a}),x}return lt(e.data)}get enum(){return this._def.values}}bi=new WeakMap,Ci.create=(n,e)=>new Ci({values:n,typeName:U.ZodNativeEnum,...q(e)});class Vr extends H{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.promise&&t.common.async===!1)return w(t,{code:P.invalid_type,expected:M.promise,received:t.parsedType}),x;const i=t.parsedType===M.promise?t.data:Promise.resolve(t.data);return lt(i.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Vr.create=(n,e)=>new Vr({type:n,typeName:U.ZodPromise,...q(e)});class Gt extends H{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===U.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:o=>{w(i,o),o.fatal?t.abort():t.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const o=a.transform(i.data,s);if(i.common.async)return Promise.resolve(o).then(async d=>{if(t.value==="aborted")return x;const p=await this._def.schema._parseAsync({data:d,path:i.path,parent:i});return p.status==="aborted"?x:p.status==="dirty"||t.value==="dirty"?_r(p.value):p});{if(t.value==="aborted")return x;const d=this._def.schema._parseSync({data:o,path:i.path,parent:i});return d.status==="aborted"?x:d.status==="dirty"||t.value==="dirty"?_r(d.value):d}}if(a.type==="refinement"){const o=d=>{const p=a.refinement(d,s);if(i.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return d.status==="aborted"?x:(d.status==="dirty"&&t.dirty(),o(d.value),{status:t.value,value:d.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>d.status==="aborted"?x:(d.status==="dirty"&&t.dirty(),o(d.value).then(()=>({status:t.value,value:d.value}))))}if(a.type==="transform")if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Ti(o))return o;const d=a.transform(o.value,s);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:d}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>Ti(o)?Promise.resolve(a.transform(o.value,s)).then(d=>({status:t.value,value:d})):o);z.assertNever(a)}}Gt.create=(n,e,t)=>new Gt({schema:n,typeName:U.ZodEffects,effect:e,...q(t)}),Gt.createWithPreprocess=(n,e,t)=>new Gt({schema:e,effect:{type:"preprocess",transform:n},typeName:U.ZodEffects,...q(t)});class Jt extends H{_parse(e){return this._getType(e)===M.undefined?lt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Jt.create=(n,e)=>new Jt({innerType:n,typeName:U.ZodOptional,...q(e)});class Pn extends H{_parse(e){return this._getType(e)===M.null?lt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Pn.create=(n,e)=>new Pn({innerType:n,typeName:U.ZodNullable,...q(e)});class Bi extends H{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===M.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Bi.create=(n,e)=>new Bi({innerType:n,typeName:U.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...q(e)});class wi extends H{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ei(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ft(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ft(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}wi.create=(n,e)=>new wi({innerType:n,typeName:U.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...q(e)});class xa extends H{_parse(e){if(this._getType(e)!==M.nan){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.nan,received:i.parsedType}),x}return{status:"valid",value:e.data}}}xa.create=n=>new xa({typeName:U.ZodNaN,...q(n)});const kI=Symbol("zod_brand");class tl extends H{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class _i extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?x:s.status==="dirty"?(t.dirty(),_r(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?x:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(e,t){return new _i({in:e,out:t,typeName:U.ZodPipeline})}}class Mi extends H{_parse(e){const t=this._def.innerType._parse(e),i=a=>(Ti(a)&&(a.value=Object.freeze(a.value)),a);return Ei(t)?t.then(a=>i(a)):i(t)}unwrap(){return this._def.innerType}}Mi.create=(n,e)=>new Mi({innerType:n,typeName:U.ZodReadonly,...q(e)});function mm(n,e={},t){return n?Mr.create().superRefine((i,a)=>{var s,o;if(!n(i)){const d=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(o=(s=d.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,h=typeof d=="string"?{message:d}:d;a.addIssue({code:"custom",...h,fatal:p})}}):Mr.create()}const qI={object:Me.lazycreate};var U;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(U||(U={}));const JI=(n,e={message:`Input not instance of ${n.name}`})=>mm(t=>t instanceof n,e),ja=Vt.create,nl=gn.create,WI=xa.create,HI=vn.create,rl=gi.create,Tm=qn.create,YI=La.create,zI=vi.create,Em=Ii.create,ZI=Mr.create,ka=Jn.create,XI=nn.create,QI=Ga.create,KI=Lt.create,Rm=Me.create,eP=Me.strictCreate,tP=Pi.create,nP=Fa.create,rP=Di.create,iP=qt.create,bm=Ai.create,aP=Ua.create,sP=Wn.create,oP=$r.create,lP=Si.create,cP=Oi.create,gm=In.create,dP=Ci.create,uP=Vr.create,vm=Gt.create,pP=Jt.create,yP=Pn.create,hP=Gt.createWithPreprocess,fP=_i.create;var c=Object.freeze({__proto__:null,defaultErrorMap:wr,setErrorMap:AI,getErrorMap:Na,makeIssue:$a,EMPTY_PATH:SI,addIssueToContext:w,ParseStatus:Qe,INVALID:x,DIRTY:_r,OK:lt,isAborted:Xo,isDirty:Qo,isValid:Ti,isAsync:Ei,get util(){return z},get objectUtil(){return Zo},ZodParsedType:M,getParsedType:bn,ZodType:H,datetimeRegex:hm,ZodString:Vt,ZodNumber:gn,ZodBigInt:vn,ZodBoolean:gi,ZodDate:qn,ZodSymbol:La,ZodUndefined:vi,ZodNull:Ii,ZodAny:Mr,ZodUnknown:Jn,ZodNever:nn,ZodVoid:Ga,ZodArray:Lt,ZodObject:Me,ZodUnion:Pi,ZodDiscriminatedUnion:Fa,ZodIntersection:Di,ZodTuple:qt,ZodRecord:Ai,ZodMap:Ua,ZodSet:Wn,ZodFunction:$r,ZodLazy:Si,ZodLiteral:Oi,ZodEnum:In,ZodNativeEnum:Ci,ZodPromise:Vr,ZodEffects:Gt,ZodTransformer:Gt,ZodOptional:Jt,ZodNullable:Pn,ZodDefault:Bi,ZodCatch:wi,ZodNaN:xa,BRAND:kI,ZodBranded:tl,ZodPipeline:_i,ZodReadonly:Mi,custom:mm,Schema:H,ZodSchema:H,late:qI,get ZodFirstPartyTypeKind(){return U},coerce:{string:n=>Vt.create({...n,coerce:!0}),number:n=>gn.create({...n,coerce:!0}),boolean:n=>gi.create({...n,coerce:!0}),bigint:n=>vn.create({...n,coerce:!0}),date:n=>qn.create({...n,coerce:!0})},any:ZI,array:KI,bigint:HI,boolean:rl,date:Tm,discriminatedUnion:nP,effect:vm,enum:gm,function:oP,instanceof:JI,intersection:rP,lazy:lP,literal:cP,map:aP,nan:WI,nativeEnum:dP,never:XI,null:Em,nullable:yP,number:nl,object:Rm,oboolean:()=>rl().optional(),onumber:()=>nl().optional(),optional:pP,ostring:()=>ja().optional(),pipeline:fP,preprocess:hP,promise:uP,record:bm,set:sP,strictObject:eP,string:ja,symbol:YI,transformer:vm,tuple:iP,undefined:zI,union:tP,unknown:ka,void:QI,NEVER:x,ZodIssueCode:P,quotelessJson:DI,ZodError:ft});function Im(n){var a,s,o;if(!(n!=null&&n.dataType))return ka();const e=n.dataType.isNullable||!1,t=n.dataType.isList||!1;let i=ka();if(((a=n.dataType.entity)==null?void 0:a.type)===r.PrimitiveEntity)switch(n.dataType.entity.name){case v.String:i=ja();break;case v.JSON:i=bm(ka());break;case v.Number:i=nl();break;case v.Boolean:i=rl();break;case v.Date:i=Tm();break;case v.Enum:{const d=n.dataType.options||[];if(d.length===0)throw new Error(`Enum property ${n.name} has no options`);i=gm(d);break}case v.Null:i=Em();break;case v.UUID:i=ja().uuid();break}else if(((s=n.dataType.entity)==null?void 0:s.type)===r.CustomEntity)i=Pm(n.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=n.dataType.entity)==null?void 0:o.type}`);return e&&(i=i.nullable()),t&&(i=i.array()),i}function Pm(n){const e=Rm({});for(const t of n.properties){const i=Im(t);e.shape[t.name]=i}return e}function Dm(n){const e=n.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function Am(n){const e=n.rangeEnd;return new Date(Math.random()*e.getTime())}function Sm(n){const e=n.rangeStart,t=n.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function Om(n){return n.rangeStart&&n.rangeEnd?Sm(n):n.rangeStart?Dm(n):n.rangeEnd?Am(n):new Date}function mP(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Cm={},qa={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.default=EP;let Wa;const TP=new Uint8Array(16);function EP(){if(!Wa&&(Wa=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Wa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wa(TP)}var Dn={},Hn={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=void 0;var RP=/^(?:[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;Ha.default=RP,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=void 0;var bP=gP(Ha);function gP(n){return n&&n.__esModule?n:{default:n}}function vP(n){return typeof n=="string"&&bP.default.test(n)}var IP=vP;Hn.default=IP,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.default=void 0,Dn.unsafeStringify=Bm;var PP=DP(Hn);function DP(n){return n&&n.__esModule?n:{default:n}}const ze=[];for(let n=0;n<256;++n)ze.push((n+256).toString(16).slice(1));function Bm(n,e=0){return ze[n[e+0]]+ze[n[e+1]]+ze[n[e+2]]+ze[n[e+3]]+"-"+ze[n[e+4]]+ze[n[e+5]]+"-"+ze[n[e+6]]+ze[n[e+7]]+"-"+ze[n[e+8]]+ze[n[e+9]]+"-"+ze[n[e+10]]+ze[n[e+11]]+ze[n[e+12]]+ze[n[e+13]]+ze[n[e+14]]+ze[n[e+15]]}function AP(n,e=0){const t=Bm(n,e);if(!(0,PP.default)(t))throw TypeError("Stringified UUID is invalid");return t}var SP=AP;Dn.default=SP,Object.defineProperty(qa,"__esModule",{value:!0}),qa.default=void 0;var OP=BP(Ja),CP=Dn;function BP(n){return n&&n.__esModule?n:{default:n}}let wm,il,al=0,sl=0;function wP(n,e,t){let i=e&&t||0;const a=e||new Array(16);n=n||{};let s=n.node||wm,o=n.clockseq!==void 0?n.clockseq:il;if(s==null||o==null){const b=n.random||(n.rng||OP.default)();s==null&&(s=wm=[b[0]|1,b[1],b[2],b[3],b[4],b[5]]),o==null&&(o=il=(b[6]<<8|b[7])&16383)}let d=n.msecs!==void 0?n.msecs:Date.now(),p=n.nsecs!==void 0?n.nsecs:sl+1;const h=d-al+(p-sl)/1e4;if(h<0&&n.clockseq===void 0&&(o=o+1&16383),(h<0||d>al)&&n.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");al=d,sl=p,il=o,d+=122192928e5;const T=((d&268435455)*1e4+p)%4294967296;a[i++]=T>>>24&255,a[i++]=T>>>16&255,a[i++]=T>>>8&255,a[i++]=T&255;const m=d/4294967296*1e4&268435455;a[i++]=m>>>8&255,a[i++]=m&255,a[i++]=m>>>24&15|16,a[i++]=m>>>16&255,a[i++]=o>>>8|128,a[i++]=o&255;for(let b=0;b<6;++b)a[i+b]=s[b];return e||(0,CP.unsafeStringify)(a)}var _P=wP;qa.default=_P;var Ya={},An={},Ni={};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var MP=NP(Hn);function NP(n){return n&&n.__esModule?n:{default:n}}function $P(n){if(!(0,MP.default)(n))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var VP=$P;Ni.default=VP,Object.defineProperty(An,"__esModule",{value:!0}),An.URL=An.DNS=void 0,An.default=xP;var LP=Dn,GP=FP(Ni);function FP(n){return n&&n.__esModule?n:{default:n}}function UP(n){n=unescape(encodeURIComponent(n));const e=[];for(let t=0;t<n.length;++t)e.push(n.charCodeAt(t));return e}const _m="6ba7b810-9dad-11d1-80b4-00c04fd430c8";An.DNS=_m;const Mm="6ba7b811-9dad-11d1-80b4-00c04fd430c8";An.URL=Mm;function xP(n,e,t){function i(a,s,o,d){var p;if(typeof a=="string"&&(a=UP(a)),typeof s=="string"&&(s=(0,GP.default)(s)),((p=s)===null||p===void 0?void 0:p.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let h=new Uint8Array(16+a.length);if(h.set(s),h.set(a,s.length),h=t(h),h[6]=h[6]&15|e,h[8]=h[8]&63|128,o){d=d||0;for(let T=0;T<16;++T)o[d+T]=h[T];return o}return(0,LP.unsafeStringify)(h)}try{i.name=n}catch{}return i.DNS=_m,i.URL=Mm,i}var za={};Object.defineProperty(za,"__esModule",{value:!0}),za.default=void 0;function jP(n){if(typeof n=="string"){const e=unescape(encodeURIComponent(n));n=new Uint8Array(e.length);for(let t=0;t<e.length;++t)n[t]=e.charCodeAt(t)}return kP(qP(JP(n),n.length*8))}function kP(n){const e=[],t=n.length*32,i="0123456789abcdef";for(let a=0;a<t;a+=8){const s=n[a>>5]>>>a%32&255,o=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);e.push(o)}return e}function Nm(n){return(n+64>>>9<<4)+14+1}function qP(n,e){n[e>>5]|=128<<e%32,n[Nm(e)-1]=e;let t=1732584193,i=-271733879,a=-1732584194,s=271733878;for(let o=0;o<n.length;o+=16){const d=t,p=i,h=a,T=s;t=Ke(t,i,a,s,n[o],7,-680876936),s=Ke(s,t,i,a,n[o+1],12,-389564586),a=Ke(a,s,t,i,n[o+2],17,606105819),i=Ke(i,a,s,t,n[o+3],22,-1044525330),t=Ke(t,i,a,s,n[o+4],7,-176418897),s=Ke(s,t,i,a,n[o+5],12,1200080426),a=Ke(a,s,t,i,n[o+6],17,-1473231341),i=Ke(i,a,s,t,n[o+7],22,-45705983),t=Ke(t,i,a,s,n[o+8],7,1770035416),s=Ke(s,t,i,a,n[o+9],12,-1958414417),a=Ke(a,s,t,i,n[o+10],17,-42063),i=Ke(i,a,s,t,n[o+11],22,-1990404162),t=Ke(t,i,a,s,n[o+12],7,1804603682),s=Ke(s,t,i,a,n[o+13],12,-40341101),a=Ke(a,s,t,i,n[o+14],17,-1502002290),i=Ke(i,a,s,t,n[o+15],22,1236535329),t=et(t,i,a,s,n[o+1],5,-165796510),s=et(s,t,i,a,n[o+6],9,-1069501632),a=et(a,s,t,i,n[o+11],14,643717713),i=et(i,a,s,t,n[o],20,-373897302),t=et(t,i,a,s,n[o+5],5,-701558691),s=et(s,t,i,a,n[o+10],9,38016083),a=et(a,s,t,i,n[o+15],14,-660478335),i=et(i,a,s,t,n[o+4],20,-405537848),t=et(t,i,a,s,n[o+9],5,568446438),s=et(s,t,i,a,n[o+14],9,-1019803690),a=et(a,s,t,i,n[o+3],14,-187363961),i=et(i,a,s,t,n[o+8],20,1163531501),t=et(t,i,a,s,n[o+13],5,-1444681467),s=et(s,t,i,a,n[o+2],9,-51403784),a=et(a,s,t,i,n[o+7],14,1735328473),i=et(i,a,s,t,n[o+12],20,-1926607734),t=tt(t,i,a,s,n[o+5],4,-378558),s=tt(s,t,i,a,n[o+8],11,-2022574463),a=tt(a,s,t,i,n[o+11],16,1839030562),i=tt(i,a,s,t,n[o+14],23,-35309556),t=tt(t,i,a,s,n[o+1],4,-1530992060),s=tt(s,t,i,a,n[o+4],11,1272893353),a=tt(a,s,t,i,n[o+7],16,-155497632),i=tt(i,a,s,t,n[o+10],23,-1094730640),t=tt(t,i,a,s,n[o+13],4,681279174),s=tt(s,t,i,a,n[o],11,-358537222),a=tt(a,s,t,i,n[o+3],16,-722521979),i=tt(i,a,s,t,n[o+6],23,76029189),t=tt(t,i,a,s,n[o+9],4,-640364487),s=tt(s,t,i,a,n[o+12],11,-421815835),a=tt(a,s,t,i,n[o+15],16,530742520),i=tt(i,a,s,t,n[o+2],23,-995338651),t=nt(t,i,a,s,n[o],6,-198630844),s=nt(s,t,i,a,n[o+7],10,1126891415),a=nt(a,s,t,i,n[o+14],15,-1416354905),i=nt(i,a,s,t,n[o+5],21,-57434055),t=nt(t,i,a,s,n[o+12],6,1700485571),s=nt(s,t,i,a,n[o+3],10,-1894986606),a=nt(a,s,t,i,n[o+10],15,-1051523),i=nt(i,a,s,t,n[o+1],21,-2054922799),t=nt(t,i,a,s,n[o+8],6,1873313359),s=nt(s,t,i,a,n[o+15],10,-30611744),a=nt(a,s,t,i,n[o+6],15,-1560198380),i=nt(i,a,s,t,n[o+13],21,1309151649),t=nt(t,i,a,s,n[o+4],6,-145523070),s=nt(s,t,i,a,n[o+11],10,-1120210379),a=nt(a,s,t,i,n[o+2],15,718787259),i=nt(i,a,s,t,n[o+9],21,-343485551),t=Sn(t,d),i=Sn(i,p),a=Sn(a,h),s=Sn(s,T)}return[t,i,a,s]}function JP(n){if(n.length===0)return[];const e=n.length*8,t=new Uint32Array(Nm(e));for(let i=0;i<e;i+=8)t[i>>5]|=(n[i/8]&255)<<i%32;return t}function Sn(n,e){const t=(n&65535)+(e&65535);return(n>>16)+(e>>16)+(t>>16)<<16|t&65535}function WP(n,e){return n<<e|n>>>32-e}function Za(n,e,t,i,a,s){return Sn(WP(Sn(Sn(e,n),Sn(i,s)),a),t)}function Ke(n,e,t,i,a,s,o){return Za(e&t|~e&i,n,e,a,s,o)}function et(n,e,t,i,a,s,o){return Za(e&i|t&~i,n,e,a,s,o)}function tt(n,e,t,i,a,s,o){return Za(e^t^i,n,e,a,s,o)}function nt(n,e,t,i,a,s,o){return Za(t^(e|~i),n,e,a,s,o)}var HP=jP;za.default=HP,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.default=void 0;var YP=$m(An),zP=$m(za);function $m(n){return n&&n.__esModule?n:{default:n}}var ZP=(0,YP.default)("v3",48,zP.default);Ya.default=ZP;var Xa={},Qa={};Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.default=void 0;var XP={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Qa.default=XP,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=void 0;var Vm=Lm(Qa),QP=Lm(Ja),KP=Dn;function Lm(n){return n&&n.__esModule?n:{default:n}}function eD(n,e,t){if(Vm.default.randomUUID&&!e&&!n)return Vm.default.randomUUID();n=n||{};const i=n.random||(n.rng||QP.default)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=i[a];return e}return(0,KP.unsafeStringify)(i)}var tD=eD;Xa.default=tD;var Ka={},es={};Object.defineProperty(es,"__esModule",{value:!0}),es.default=void 0;function nD(n,e,t,i){switch(n){case 0:return e&t^~e&i;case 1:return e^t^i;case 2:return e&t^e&i^t&i;case 3:return e^t^i}}function ol(n,e){return n<<e|n>>>32-e}function rD(n){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const o=unescape(encodeURIComponent(n));n=[];for(let d=0;d<o.length;++d)n.push(o.charCodeAt(d))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const i=n.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let o=0;o<a;++o){const d=new Uint32Array(16);for(let p=0;p<16;++p)d[p]=n[o*64+p*4]<<24|n[o*64+p*4+1]<<16|n[o*64+p*4+2]<<8|n[o*64+p*4+3];s[o]=d}s[a-1][14]=(n.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(n.length-1)*8&4294967295;for(let o=0;o<a;++o){const d=new Uint32Array(80);for(let I=0;I<16;++I)d[I]=s[o][I];for(let I=16;I<80;++I)d[I]=ol(d[I-3]^d[I-8]^d[I-14]^d[I-16],1);let p=t[0],h=t[1],T=t[2],m=t[3],b=t[4];for(let I=0;I<80;++I){const B=Math.floor(I/20),G=ol(p,5)+nD(B,h,T,m)+b+e[B]+d[I]>>>0;b=m,m=T,T=ol(h,30)>>>0,h=p,p=G}t[0]=t[0]+p>>>0,t[1]=t[1]+h>>>0,t[2]=t[2]+T>>>0,t[3]=t[3]+m>>>0,t[4]=t[4]+b>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var iD=rD;es.default=iD,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=void 0;var aD=Gm(An),sD=Gm(es);function Gm(n){return n&&n.__esModule?n:{default:n}}var oD=(0,aD.default)("v5",80,sD.default);Ka.default=oD;var ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.default=void 0;var lD="00000000-0000-0000-0000-000000000000";ts.default=lD;var ns={};Object.defineProperty(ns,"__esModule",{value:!0}),ns.default=void 0;var cD=dD(Hn);function dD(n){return n&&n.__esModule?n:{default:n}}function uD(n){if(!(0,cD.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var pD=uD;ns.default=pD,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return o.default}});var e=T(qa),t=T(Ya),i=T(Xa),a=T(Ka),s=T(ts),o=T(ns),d=T(Hn),p=T(Dn),h=T(Ni);function T(m){return m&&m.__esModule?m:{default:m}}}(Cm);function ll(n,e){if(!n||!e||!n.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=n,this.dstAlphabet=e}ll.prototype.convert=function(n){var e,t,i,a={},s=this.srcAlphabet.length,o=this.dstAlphabet.length,d=n.length,p=typeof n=="string"?"":[];if(!this.isValid(n))throw new Error('Number "'+n+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return n;for(e=0;e<d;e++)a[e]=this.srcAlphabet.indexOf(n[e]);do{for(t=0,i=0,e=0;e<d;e++)t=t*s+a[e],t>=o?(a[i++]=parseInt(t/o,10),t=t%o):i>0&&(a[i++]=0);d=i,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(i!==0);return p},ll.prototype.isValid=function(n){for(var e=0;e<n.length;++e)if(this.srcAlphabet.indexOf(n[e])===-1)return!1;return!0};var yD=ll,hD=yD;function $i(n,e){var t=new hD(n,e);return function(i){return t.convert(i)}}$i.BIN="01",$i.OCT="01234567",$i.DEC="0123456789",$i.HEX="0123456789abcdef";var fD=$i;const{v4:cl,validate:mD}=Cm,rs=fD,dl={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},TD={consistentLength:!0};let ul;const Fm=(n,e,t)=>{const i=e(n.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?i:i.padStart(t.shortIdLength,t.paddingChar)},Um=(n,e)=>{const i=e(n).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},ED=n=>Math.ceil(Math.log(2**128)/Math.log(n));var RD=(()=>{const n=(e,t)=>{const i=e||dl.flickrBase58,a={...TD,...t};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=ED(i.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},d=rs(rs.HEX,i),p=rs(i,rs.HEX),h=()=>Fm(cl(),d,o),m={alphabet:i,fromUUID:b=>Fm(b,d,o),maxLength:s,generate:h,new:h,toUUID:b=>Um(b,p),uuid:cl,validate:(b,I=!1)=>{if(!b||typeof b!="string")return!1;const B=a.consistentLength?b.length===s:b.length<=s,G=b.split("").every(W=>i.includes(W));return I===!1?B&&G:B&&G&&mD(Um(b,p))}};return Object.freeze(m),m};return n.constants=dl,n.uuid=cl,n.generate=()=>(ul||(ul=n(dl.flickrBase58).generate),ul()),n})();const is=mP(RD);function xm(){return is().uuid()}function jm(n){return n.rangeStart+Math.random()}function km(n){const e=n.rangeEnd;return Math.random()*e}function qm(n){const e=n.rangeStart,t=n.rangeEnd;return Math.random()*(t-e)+e}function Jm(n){return n.rangeStart&&n.rangeEnd?qm(n):n.rangeStart?jm(n):n.rangeEnd?km(n):Math.random()}function Wm(n){const e=n.rangeStart;return Math.random().toString(36).substring(e)}function Hm(n){const e=n.rangeEnd;return Math.random().toString(36).substring(0,e)}function Ym(n){const e=n.rangeStart,t=n.rangeEnd;return Math.random().toString(36).substring(e,t)}function zm(n){return n.rangeStart&&n.rangeEnd?Ym(n):n.rangeStart?Wm(n):n.rangeEnd?Hm(n):Math.random().toString(36)}function Zm(n){return Math.random()>=.5}function bD(n){if(!n||!n.autogeneration)return null;switch(n.autogeneration.type){case xe.CurrentDateAndTime:if(n.name===v.Date)return new Date;case xe.Random:{if(n.name===v.Date)return Om(n.autogeneration);if(n.name===v.Number)return Jm(n.autogeneration);if(n.name===v.String)return zm(n.autogeneration);if(n.name===v.Boolean)return Zm(n.autogeneration)}case xe.Unique:if(n.name===v.UUID)return xm();default:throw new Error(`Generating a ${n.autogeneration.type} value for a ${n.name} is not supported`)}}const J="e7eb5382-3d99-44fd-972a-b8b1e819f6be",pl="global-user-variable-id",Xm="last-executed-timestamp-variable-id",gD={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-data-type-id",entityType:r.DataType},vD={id:"alternative-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:r.Property},ID={id:"alternative-relational-database-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:null,parent:gD,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:vD},as={id:"alternative-relational-database-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},PD={required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!1,implements:Ca,static:!0,index:0,dataType:ID,description:"The name of the main database inside of the server instance where the data will be stored.",parent:as};r.GenericReference,r.DataType;const DD={id:"alternative-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:r.Property},AD={id:"alternative-relational-database-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:DD},SD={required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:r.Property,private:!1,abstract:!1,implements:Ba,static:!0,index:1,dataType:AD,description:"The username that will be used to connect to the database.",parent:as};r.GenericReference,r.DataType;const OD={id:"alternative-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:r.Property},CD={id:"alternative-relational-database-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:OD},BD={required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:r.Property,private:!1,abstract:!1,implements:wa,static:!0,index:2,dataType:CD,description:"The password that will be used to connect to the database.",parent:as},wD={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-data-type-id",entityType:r.DataType},_D={id:"alternative-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:r.Property},MD={id:"alternative-relational-database-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Be,asType:!1,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.Number,value:6,parent:wD,autogeneration:null,valueAsType:null},parent:_D},ND={required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!1,implements:_a,static:!0,index:3,dataType:MD,description:"The minimum size of the database in GB.",parent:as},$D={id:"alternative-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},Qm={id:"alternative-relational-database-entity-id",type:r.CustomEntity,version:1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[PD,SD,BD,ND],methods:[],abstractMethods:[],extends:[],implements:[Rn],x:0,y:0,parent:$D},VD={id:"animal-prototype-database-property-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-id",entityType:r.Property},LD={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-data-type-default-value-id",entityType:r.DataType},GD={id:"animal-prototype-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Rn,asType:!1,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:v.EntityTemplate,valueAsType:Qm,autogeneration:null,parent:LD},parent:VD},FD={id:"animal-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},UD={required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:GD,description:"The database that the entity belongs to.",parent:FD},xD={type:r.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:r.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},jD={id:"c1930577-9e79-48a6-8905-be24611015c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xD},kD={type:r.GenericReference,id:"e2b9e456-f2b3-4dc7-85a2-fbb68ed0c9c7",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},qD={required:!0,type:r.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:1,name:"Name",description:"The name of the animal",implements:null,static:!1,private:!1,index:0,dataType:jD,abstract:!1,parent:kD},JD={type:r.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:r.Project,entityId:J},WD={type:r.CustomEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[UD,qD],methods:[],extends:[],implements:[we],x:0,y:0,parent:JD},HD={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-data-type-id",entityType:r.DataType},YD={id:"default-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:r.Property},zD={id:"default-relational-database-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:null,parent:HD,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:YD},ss={id:"default-relational-database-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},ZD={required:!0,id:"default-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!1,implements:Ca,static:!0,index:0,dataType:zD,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ss};r.GenericReference,r.DataType;const XD={id:"default-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:r.Property},QD={id:"default-relational-database-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:XD},KD={required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:r.Property,private:!1,abstract:!1,implements:Ba,static:!0,index:1,dataType:QD,description:"The username that will be used to connect to the database.",parent:ss};r.GenericReference,r.DataType;const eA={id:"default-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:r.Property},tA={id:"default-relational-database-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:eA},nA={required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:r.Property,private:!1,abstract:!1,implements:wa,static:!0,index:2,dataType:tA,description:"The password that will be used to connect to the database.",parent:ss},rA={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-data-type-id",entityType:r.DataType},iA={id:"default-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:r.Property},aA={id:"default-relational-database-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Be,asType:!1,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.Number,value:6,parent:rA,autogeneration:null,valueAsType:null},parent:iA},sA={required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!1,implements:_a,static:!0,index:3,dataType:aA,description:"The minimum size of the database in GB.",parent:ss},oA={id:"default-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},yl={id:"default-relational-database-entity-id",type:r.CustomEntity,version:1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[ZD,KD,nA,sA],methods:[],abstractMethods:[],extends:[],implements:[Rn],x:0,y:0,parent:oA},lA={id:"user-prototype-database-property-data-type-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-data-type-id",entityType:r.DataType},cA={id:"user-prototype-database-property-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-id",entityType:r.Property},dA={id:"user-prototype-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Rn,asType:!1,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:v.EntityTemplate,valueAsType:yl,autogeneration:null,parent:lA},parent:cA},uA={id:"user-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},pA={required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:dA,description:"The database that the entity belongs to.",parent:uA},yA={type:r.GenericReference,id:"user-prototype-parent-ref-id",entityType:r.Project,entityId:J},hl={type:r.CustomEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[we],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[pA],methods:[],x:0,y:0,parent:yA},hA={type:r.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:r.Property,entityId:"person-date-of-birth-property-id"},fA={id:"person-date-of-birth-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sr,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:hA},mA={type:r.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},TA={required:!0,type:r.Property,id:"person-date-of-birth-property-id",version:1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,dataType:fA,abstract:!1,parent:mA},EA={type:r.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:r.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},RA={id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:EA},bA={type:r.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},gA={required:!0,type:r.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,dataType:RA,abstract:!1,parent:bA},vA={type:r.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:r.Project,entityId:J},ct={type:r.CustomEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version: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:[gA,TA],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[hl],x:0,y:0,parent:vA},IA={type:r.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},PA={type:r.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:r.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},DA={type:r.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},AA={type:r.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:r.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},SA={id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AA},fl={isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:r.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,dataType:SA,readsValue:DA,required:!0,index:0,parent:PA},OA={type:r.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},CA={type:r.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},Km={type:r.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[fl],calledByError:[],calledByEntry:[OA],calledBySuccess:[],throws:null,x:0,y:0,parent:CA},BA={type:r.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},wA={id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:BA},eT={id:"500dee3a-3435-4453-9699-0d053f646523",type:r.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,dataType:wA,required:!0,writesValues:[fl],index:0,parent:IA},_A={type:r.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},tT={type:r.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[eT],calls:[Km],returnStatements:[Km],index:0,collapsed:!1,private:!1,x:0,y:0,parent:_A},MA={type:r.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:r.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},NA={id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MA},$A={type:r.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:r.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},VA={type:r.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},LA={id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:r.VariableDeclaration,version:1,name:"Output Account Owner",description:null,dataType:NA,readsValue:$A,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:VA},GA={type:r.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},FA={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:r.OutputMap,version:1,declaration:fl,writesValues:[LA],index:0,parent:GA},UA={type:r.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},xA={type:r.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},jA={type:r.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},kA={id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jA},qA={type:r.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},JA={type:r.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},WA={type:r.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},HA={type:r.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},nT={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:r.InputMap,version:1,declaration:eT,name:null,description:null,readsValue:HA,dynamicArguments:[],defaultValue:null,index:0,parent:WA},YA={type:r.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,dataType:kA,readsValue:qA,writesValues:[nT],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:JA},zA={type:r.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:tT,inputs:[nT],outputs:[FA],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[UA],calledBySuccess:[],parent:xA,error:null,x:0,y:0},ZA={type:r.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},XA={id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ZA},QA={type:r.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},KA={id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:r.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",dataType:XA,required:!0,index:0,writesValues:[YA],parent:QA},eS={type:r.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},tS={type:r.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[KA],collapsed:!0,returnStatements:[],calls:[zA],private:!1,index:0,implements:null,x:0,y:0,parent:eS},nS={type:r.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:r.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},rS={id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:nS},iS={type:r.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},rT={required:!0,type:r.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:1,name:"Account number",description:null,private:!0,implements:null,static:!1,index:0,dataType:rS,abstract:!1,parent:iS},aS={type:r.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:r.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},sS={id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:aS},oS={type:r.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},iT={required:!0,type:r.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,dataType:sS,implements:null,static:!1,private:!0,abstract:!1,parent:oS},lS={type:r.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:r.Project,entityId:J},Lr={type:r.CustomEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[rT,iT],methods:[tT,tS],extends:[],implements:[we],x:0,y:0,parent:lS},Vi="bitcoin-api-response-id",aT="time-property-id",sT="disclamer-property-id",oT="chart-name-property-id",lT="bpi-property-id",os="bpi-entity-id",cT="usd-property-id",dT="gbp-property-id",uT="eur-property-id",Gr="currency-entity-id",pT="currency-code-property-id",yT="currency-symbol-property-id",hT="currency-rate-property-id",fT="currency-description-property-id",mT="currency-rate-number-property-id",cS={type:r.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:r.Property,entityId:pT},dS={id:"code-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:En,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["USD","GBP","EUR"],constant:!1,parent:cS},uS={type:r.GenericReference,id:"code-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},pS={required:!0,type:r.Property,id:pT,version:1,name:"code",description:null,dataType:dS,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:uS},yS={type:r.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:r.Property,entityId:yT},hS={id:"symbol-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:En,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["$","£","€"],constant:!1,parent:yS},fS={type:r.GenericReference,id:"symbol-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},mS={required:!0,type:r.Property,id:yT,version:1,name:"symbol",description:null,index:0,dataType:hS,implements:null,static:!1,private:!1,abstract:!1,parent:fS},TS={type:r.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:r.Property,entityId:hT},ES={id:"rate-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:TS},RS={type:r.GenericReference,id:"rate-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},bS={required:!0,type:r.Property,id:hT,version:1,name:"rate",description:null,index:0,dataType:ES,implements:null,static:!1,private:!1,abstract:!1,parent:RS},gS={type:r.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:r.Property,entityId:fT},vS={id:"description-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gS},IS={type:r.GenericReference,id:"description-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},PS={required:!0,type:r.Property,id:fT,version:1,name:"description",description:null,dataType:vS,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:IS},DS={type:r.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:r.Property,entityId:mT},AS={id:"rate-number-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DS},SS={type:r.GenericReference,id:"rate-number-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},OS={required:!0,type:r.Property,id:mT,version:1,name:"rate_float",description:null,dataType:AS,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:SS},CS={type:r.GenericReference,id:"currency-prototype-parent-ref-id",entityType:r.Project,entityId:J},ls={type:r.CustomEntity,id:Gr,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[pS,mS,bS,PS,OS],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:CS},BS={type:r.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:r.Property,entityId:cT},wS={id:"usd-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ls,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:BS},_S={type:r.GenericReference,id:"usd-property-parent-ref-id",entityType:r.CustomEntity,entityId:os},MS={required:!0,id:cT,type:r.Property,version:1,name:"USD",description:null,index:0,dataType:wS,implements:null,static:!1,private:!1,abstract:!1,parent:_S},NS={type:r.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:r.Property,entityId:dT},$S={id:"gbp-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ls,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:NS},VS={type:r.GenericReference,id:"gbp-property-parent-ref-id",entityType:r.CustomEntity,entityId:os},LS={required:!0,id:dT,type:r.Property,version:1,name:"GBP",description:null,index:0,dataType:$S,implements:null,static:!1,private:!1,abstract:!1,parent:VS},GS={type:r.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:r.Property,entityId:uT},FS={id:"eur-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ls,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:GS},US={type:r.GenericReference,id:"eur-property-parent-ref-id",entityType:r.CustomEntity,entityId:os},xS={required:!0,id:uT,type:r.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,dataType:FS,private:!1,abstract:!1,parent:US},jS={type:r.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:r.Project,entityId:J},TT={type:r.CustomEntity,id:os,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[MS,LS,xS],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:jS},kS={type:r.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:r.Property,entityId:aT},qS={id:"time-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:go,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kS},JS={type:r.GenericReference,id:"time-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},WS={required:!0,type:r.Property,id:aT,version:1,name:"time",description:null,index:0,dataType:qS,implements:null,static:!1,private:!1,abstract:!1,parent:JS},HS={type:r.GenericReference,id:"disclamer-property-data-type-parent-ref-id",entityType:r.Property,entityId:sT},YS={id:"disclamer-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:HS},zS={type:r.GenericReference,id:"disclamer-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},ZS={required:!0,type:r.Property,id:sT,version:1,name:"disclamer",description:null,index:0,dataType:YS,implements:null,static:!1,private:!1,abstract:!1,parent:zS},XS={type:r.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:r.Property,entityId:oT},QS={id:"chart-name-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:XS},KS={type:r.GenericReference,id:"chart-name-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},eO={required:!0,type:r.Property,id:oT,version:1,name:"chartName",description:null,index:0,dataType:QS,implements:null,static:!1,private:!1,abstract:!1,parent:KS},tO={type:r.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:r.Property,entityId:lT},nO={id:"bpi-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:TT,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:tO},rO={type:r.GenericReference,id:"bpi-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},iO={required:!0,type:r.Property,id:lT,version:1,name:"bpi",description:null,implements:null,index:0,dataType:nO,static:!1,private:!1,abstract:!1,parent:rO},aO={type:r.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:r.Project,entityId:J},ET={type:r.CustomEntity,id:Vi,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[WS,ZS,eO,iO],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:aO},sO={type:r.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},oO={id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:sO},lO={type:r.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:r.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},cO={type:r.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:r.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},dO={id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cO},uO={type:r.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},RT={isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.ReturnDeclaration,version:1,name:"New Company Owner",description:"The new owner of the company",dataType:dO,readsValue:uO,required:!0,index:0,parent:lO},pO={type:r.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},yO={id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:r.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,dataType:oO,writesValues:[RT],required:!0,index:0,parent:pO},hO={type:r.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},fO={type:r.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},mO={type:r.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},bT={type:r.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[RT],calledByError:[],calledByEntry:[fO],calledBySuccess:[],throws:null,x:0,y:0,parent:mO},TO={type:r.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[yO],calls:[bT],index:0,collapsed:!1,implements:null,returnStatements:[bT],private:!1,x:0,y:0,parent:hO},EO={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},RO={type:r.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},bO={type:r.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:r.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},gO={type:r.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},vO={type:r.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:r.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},IO={id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:vO},ml={isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:r.ReturnDeclaration,version:1,name:"Is name registered",description:"Whether the company name is already registered",dataType:IO,readsValue:gO,required:!0,index:0,parent:bO},PO={type:r.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},Tl={type:r.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[ml],calledByError:[],calledByEntry:[],calledBySuccess:[EO,PO],throws:null,x:0,y:0,parent:RO},DO={type:r.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},AO={type:r.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},gT={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:1,declaration:Vo,name:null,description:null,dynamicArguments:[],readsValue:AO,defaultValue:null,parent:DO,index:2},SO={type:r.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},OO={id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:SO},CO={type:r.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},BO={type:r.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:r.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},wO={type:r.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:r.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},vT={type:r.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",dataType:OO,readsValue:BO,writesValues:[ml],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[wO],successCalls:[Tl],errorCalls:[],internalCalls:[],x:0,y:0,parent:CO},_O={type:r.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:r.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},MO={type:r.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NO={type:r.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:va,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:r.PrimitiveValue,version:1,value:"https://api.publicapis.org/entries",name:v.String,valueAsType:null,parent:_O,autogeneration:null},index:1,dynamicArguments:[],parent:MO},$O={type:r.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},VO={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:r.OutputMap,version:1,declaration:yi,index:2,writesValues:[vT],parent:$O},LO={type:r.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},GO={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:r.InputMap,version:1,declaration:ga,name:null,description:null,dynamicArguments:[],readsValue:null,index:0,defaultValue:null,parent:LO},FO={type:r.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},UO={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:r.InputMap,version:1,name:null,description:null,declaration:Ia,dynamicArguments:[],index:3,readsValue:null,defaultValue:null,parent:FO},xO={type:r.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},jO={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:r.InputMap,version:1,declaration:Pa,name:null,description:null,dynamicArguments:[],readsValue:null,index:4,defaultValue:null,parent:xO},kO={type:r.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},qO={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:r.OutputMap,version:1,declaration:Da,index:1,writesValues:[],parent:kO},JO={type:r.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},WO={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:r.OutputMap,version:1,declaration:yi,index:0,writesValues:[],parent:JO},HO={type:r.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},YO={type:r.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},zO={type:r.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},ZO={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:r.FunctionCall,entityId:"abb5d456-ee85-4800-bdd9-d409415f60d7"},XO={type:r.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:r.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},QO={id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:XO},KO={type:r.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:r.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},IT={isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:r.ReturnDeclaration,version:1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:QO,required:!0,readsValue:null,index:0,parent:KO},eC={type:r.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ZO],throws:IT,x:0,y:0,parent:zO},tC={type:r.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},nC={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:r.OutputMap,declaration:Go,version:1,writesValues:[IT],index:0,parent:tC},rC={type:r.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:hi,inputs:[GO,NO,gT,UO,jO],outputs:[WO,qO,VO],process:null,calledByError:[],calledByEntry:[HO],calledBySuccess:[],successCalls:[Tl,vT],errorCalls:[eC],error:nC,dynamicArguments:[],x:0,y:0,parent:YO},iC={type:r.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:r.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},aC={type:r.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},sC={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:1,declaration:Ea,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:r.PrimitiveValue,version:1,value:"?name=",name:v.String,parent:iC,valueAsType:null,autogeneration:null},dynamicArguments:[],index:0,parent:aC},oC={type:r.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},lC={type:r.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},cC={type:r.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},dC={id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cC},uC={type:r.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:r.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},pC={type:r.GenericReference,id:"assembled-query-string-called-by-ref",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},PT={type:r.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:1,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",dataType:dC,readsValue:uC,writesValues:[gT],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[pC],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:lC},yC={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:r.OutputMap,version:1,writesValues:[PT],declaration:ui,index:0,parent:oC},hC={type:r.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},fC={type:r.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},mC={type:r.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:r.ArgumentDeclaration},TC={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},DT={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:r.InputMap,declaration:Ra,name:null,description:null,readsValue:mC,dynamicArguments:[],defaultValue:null,index:1,parent:TC},EC={type:r.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:pi,version:1,inputs:[sC,DT],outputs:[yC],process:null,calledByError:[],calledByEntry:[hC],calledBySuccess:[],dynamicArguments:[],successCalls:[PT],errorCalls:[],error:null,x:0,y:0,parent:fC},RC={type:r.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:r.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},bC={id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:RC},gC={type:r.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},AT={id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:r.ArgumentDeclaration,version:1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:bC,required:!1,writesValues:[DT],index:0,parent:gC},vC={type:r.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:r.Project,entityId:J},ST={type:r.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version: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:[AT],calls:[EC,rC],returnStatements:[Tl],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:vC},IC={type:r.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},PC={type:r.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},DC={type:r.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},AC={type:r.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},OT={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:r.InputMap,declaration:AT,name:null,description:null,readsValue:DC,dynamicArguments:[],defaultValue:null,index:0,parent:AC},SC={type:r.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},OC={type:r.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:r.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},CC={id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:OC},BC={type:r.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:r.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},wC={type:r.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},_C={type:r.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},CT={type:r.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",dataType:CC,readsValue:BC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[_C],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:wC},MC={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.OutputMap,version:1,declaration:ml,writesValues:[CT],index:0,parent:SC},NC={type:r.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:ST,inputs:[OT],outputs:[MC],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[IC],successCalls:[CT],errorCalls:[],error:null,x:0,y:0,parent:PC},$C={type:r.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},VC={type:r.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},LC={type:r.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},GC={type:r.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},BT={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:r.InputMap,declaration:kn.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:LC,defaultValue:null,index:0,parent:GC},FC={type:r.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:kn,inputs:[BT],calledByError:[],calledByEntry:[$C],calledBySuccess:[],successCalls:[NC],errorCalls:[],x:0,y:0,parent:VC},UC={type:r.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},xC={type:r.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:r.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},jC={id:"d64152ea-831f-4426-9506-a39bfa170513",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xC},kC={type:r.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},qC={type:r.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},JC={type:r.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},wT={type:r.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:1,name:"New bank account",description:"The new entity value representing the new bank account of the company",dataType:jC,readsValue:qC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[JC],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:kC},WC={type:r.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},HC={id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:WC},YC={id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:r.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:HC,required:!0,index:1,writesValues:[wT],parent:UC},zC={type:r.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},ZC={type:r.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},XC={type:r.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},QC={id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:XC},KC={id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:r.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:QC,required:!0,index:0,writesValues:[BT,OT],parent:ZC},eB={type:r.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:1,name:"Company changed event",description:"The event that is triggered when a company is changed",returnStatements:[],collapsed:!1,inputs:[KC,YC],calls:[FC,wT],index:1,private:!1,implements:null,x:0,y:0,parent:zC},tB={type:r.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},nB={type:r.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:r.Property,entityId:"employee-manager-property-id"},rB={id:"employee-manager-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:tB,isList:!1,isNullable:!0,asType:!1,defaultValue:null,constant:!1,parent:nB},iB={type:r.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},aB={required:!0,type:r.Property,id:"employee-manager-property-id",version:1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,dataType:rB,abstract:!1,parent:iB},sB={type:r.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:r.Property,entityId:"employee-start-date-property-id"},oB={id:"employee-start-date-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sr,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:sB},lB={type:r.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},cB={required:!0,type:r.Property,id:"employee-start-date-property-id",version:1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,implements:null,dataType:oB,abstract:!1,parent:lB},dB={type:r.GenericReference,id:"employee-department-property-ref-id",entityType:r.Property,entityId:"employee-department-property-id"},uB={id:"employee-department-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:En,isList:!1,isNullable:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],defaultValue:null,constant:!1,parent:dB},pB={type:r.GenericReference,id:"employee-department-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},yB={required:!0,type:r.Property,id:"employee-department-property-id",version:1,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,implements:null,static:!1,private:!1,dataType:uB,abstract:!1,parent:pB},hB={type:r.GenericReference,id:"employee-prototype-parent-ref-id",entityType:r.Project,entityId:J},Pt={type:r.CustomEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[yB,cB,aB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[ct],x:0,y:0,parent:hB},fB={type:r.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:r.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},mB={id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:fB},TB={type:r.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},EB={required:!0,type:r.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,implements:null,dataType:mB,abstract:!1,parent:TB},RB={type:r.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:r.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},bB={id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:RB},gB={type:r.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},El={required:!0,type:r.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,dataType:bB,abstract:!1,parent:gB},vB={type:r.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:r.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},IB={id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:vB},PB={type:r.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},DB={required:!0,type:r.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,dataType:IB,private:!0,abstract:!1,parent:PB},AB={type:r.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:r.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},SB={id:"ad44250b-40c2-48f7-a480-381fa938f562",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AB},OB={type:r.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},CB={required:!0,type:r.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,dataType:SB,implements:null,private:!0,static:!1,abstract:!1,parent:OB},BB={type:r.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:r.Project,entityId:J},mt={type:r.CustomEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[EB,El,DB,CB],static:!1,abstract:!1,abstractMethods:[],methods:[TO,eB],extends:[],implements:[we],x:0,y:0,parent:BB},wB={type:r.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:r.Project,entityId:J},Rl={type:r.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:1,name:"Show popup",description:null,inputs:[],calls:[],returnStatements:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:wB};r.GenericReference,r.DataType;const _B={id:"cron-job-entity-expression-property-ref-id",type:r.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:r.Property},MB={id:"cron-job-entity-expression-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:_B},NB={id:"cron-job-entity-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",entityType:r.CustomEntity},$B={required:!0,id:"cron-job-entity-expression-property-id",type:r.Property,version:1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",dataType:MB,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:NB},VB={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:r.GenericReference,entityId:"show-popup-func-decl-id",entityType:r.FunctionDeclaration},LB={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:r.FunctionDeclaration},GB={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:r.FunctionCall,declaration:Rl,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[VB],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:LB},FB={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",entityType:r.CustomEntity},UB={id:"cron-job-entity-trigger-func-decl-id",version:1,type:r.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:qo,calls:[GB],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:FB},xB={id:"cron-job-entity-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},jB={id:"cron-job-entity-id",version:1,type:r.CustomEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[$B],static:!0,abstract:!1,abstractMethods:[],extends:[Jo],implements:[],methods:[UB],x:0,y:0,parent:xB},kB={type:r.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:r.Project,entityId:J},qB={type:r.CustomEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[Oa],x:0,y:0,parent:kB},_T="f558fbf8-67de-4545-9804-6ae621e0b2d4",JB={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointPathParamsVariableDataType"},WB={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},HB={id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:JB,autogeneration:null,valueAsType:null},parent:WB},YB={id:"getCompanyByIdEndpointReachedEntityEventRef",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},zB={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointRequestHeadersVariableDataType"},ZB={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},XB={id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:zB,autogeneration:null,valueAsType:null},parent:ZB},QB={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:r.ArgumentDeclaration,writesValues:[],name:"Request headers",dataType:XB,required:!0,index:0,parent:YB},KB={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},ew={id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:r.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,name:"Path parameters",writesValues:[],dataType:HB,required:!0,index:1,parent:KB},tw={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},nw={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointRequestQueryParamsVariableDataType"},rw={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},iw={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:F,defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:nw,autogeneration:null,valueAsType:null},parent:rw},aw={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version: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:r.ArgumentDeclaration,writesValues:[],name:"Request query params",dataType:iw,required:!0,index:2,parent:tw},sw={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},ow={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},lw={id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:ow},cw={id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:r.ArgumentDeclaration,writesValues:[],name:"Request body",dataType:lw,index:3,required:!0,parent:sw},dw={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},uw={id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:dw},pw={id:"getCompanyByIdEndpointReturnStatementRef",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},yw={isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version: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:r.ReturnDeclaration,name:"Response code",dataType:uw,readsValue:null,required:!0,index:0,parent:pw},hw={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointResponseHeadersDataType"},fw={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},mw={id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:hw,autogeneration:null,valueAsType:null},parent:fw},Tw={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},Ew={isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:r.ReturnDeclaration,name:"Response headers",dataType:mw,readsValue:null,required:!0,index:1,parent:Tw},Rw={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},bw={id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:Rw},gw={id:"getCompanyByIdEndpointReturnStatementRefThree",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},vw={isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:r.ReturnDeclaration,name:"Response body",dataType:bw,readsValue:null,required:!0,index:2,parent:gw},Iw={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:r.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:r.FunctionDeclaration},Pw={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},Dw={id:"getCompanyByIdEndpointReturnStatement",type:r.ReturnStatement,version:1,outputs:[yw,Ew,vw],calledByError:[],calledByEntry:[Iw],calledBySuccess:[],throws:null,x:0,y:0,parent:Pw},Aw={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_T},Sw={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:r.FunctionDeclaration,inputs:[QB,ew,aw,cw],returnStatements:[Dw],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:jo,index:0,private:!1,x:0,y:0,parent:Aw},Ow={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointPathPropertyDataType"},Cw={id:"getCompanyByIdEndpointPathPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"getCompanyByIdEndpointPathProperty"},Bw={id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.String,value:"/company/{id}",parent:Ow,valueAsType:null,autogeneration:null},parent:Cw},ww={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},_w={required:!0,id:"getCompanyByIdEndpointPathProperty",name:"Path",version:1,type:r.Property,private:!1,abstract:!1,static:!0,implements:Uo,dataType:Bw,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:ww},Mw={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointMethodPropertyDataType"},Nw={id:"getCompanyByIdEndpointMethodPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"getCompanyByIdEndpointMethodProperty"},$w={id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:En,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,value:"GET",name:v.Enum,parent:Mw,valueAsType:null,autogeneration:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Nw},Vw={id:"getCompanyByIdEndpointBaseEntityRefThree",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Lw={required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:r.Property,private:!1,abstract:!1,static:!0,implements:xo,index:0,dataType:$w,description:null,parent:Vw},Gw={type:r.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:r.Project,entityId:J},Fw={type:r.CustomEntity,id:_T,version:1,name:"Get given company data by id",description:null,properties:[_w,Lw],methods:[Sw],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[Oa],x:0,y:0,parent:Gw},Uw={id:"product-prototype-database-property-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-id",entityType:r.Property},xw={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-data-type-default-value-id",entityType:r.DataType},jw={id:"product-prototype-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Rn,asType:!1,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:v.EntityTemplate,valueAsType:yl,autogeneration:null,parent:xw},parent:Uw},kw={id:"product-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},qw={required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:jw,description:"The database that the entity belongs to.",parent:kw},Jw={type:r.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:r.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},Ww={id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Jw},Hw={type:r.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:r.CustomEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},Yw={required:!0,type:r.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,dataType:Ww,abstract:!1,parent:Hw},zw={type:r.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:r.Project,entityId:J},Zw={type:r.CustomEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[we],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[qw,Yw],methods:[],x:0,y:0,parent:zw},Li="project-loaded-event-id",Wt="get-bitcoin-price-http-call-operation-id",MT="get-bitcoin-price-http-call-response-body-id",cs="validate-bitcoin-price-response-operation-ids",Xw={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:MT},Qw={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:r.Operation,entityId:cs},NT={id:"validate-bitcoin-data-to-validate-input-map-id",type:r.InputMap,version:1,declaration:xn.fixedArguments[1],name:null,description:null,readsValue:Xw,defaultValue:null,dynamicArguments:[],index:0,parent:Qw},Kw={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",entityType:r.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},e_={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:r.Operation,entityId:cs},t_={id:"validate-bitcoin-type-to-match-input-map-id",type:r.InputMap,version:1,declaration:xn.fixedArguments[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:r.PrimitiveValue,version:1,name:v.EntityTemplate,valueAsType:ET,value:null,parent:Kw,autogeneration:null},dynamicArguments:[],index:0,parent:e_},n_={type:r.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:r.Operation,entityId:cs},r_={id:"validate-bitcoin-validated-entity-output-map-id",type:r.OutputMap,version:1,declaration:xn.fixedReturns[0],writesValues:[],index:0,parent:n_},i_={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:r.GlobalEvent,entityId:Li},a_={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:r.Operation,entityId:Wt},s_={type:r.Operation,id:cs,version:1,declaration:xn,inputs:[t_,NT],outputs:[r_],process:null,dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[a_],parent:i_},o_={type:r.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:r.FunctionCall,entityId:Wt},l_={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:r.InputMap,declaration:ga,name:null,description:null,readsValue:null,defaultValue:null,dynamicArguments:[],index:0,parent:o_},c_={type:r.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:r.FunctionCall,entityId:Wt},d_={type:r.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:r.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},u_={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:r.InputMap,declaration:va,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:r.PrimitiveValue,version:1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:v.String,parent:d_,valueAsType:null,autogeneration:null},index:1,dynamicArguments:[],parent:c_},p_={type:r.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:r.FunctionCall,entityId:Wt},y_={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:r.InputMap,declaration:Ia,name:null,description:null,readsValue:null,dynamicArguments:[],defaultValue:null,index:2,parent:p_},h_={type:r.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:r.FunctionCall,entityId:Wt},f_={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:r.InputMap,declaration:Pa,name:null,description:null,readsValue:null,dynamicArguments:[],defaultValue:null,index:3,parent:h_},m_={type:r.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:r.FunctionCall,entityId:Wt},T_={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:r.OutputMap,declaration:Da,writesValues:[],index:1,parent:m_},E_={type:r.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:r.FunctionCall,entityId:Wt},R_={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:r.OutputMap,declaration:Lo,writesValues:[],index:0,parent:E_},b_={type:r.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:r.FunctionCall,entityId:Wt},g_={id:MT,type:r.OutputMap,version:1,declaration:yi,writesValues:[NT],index:2,parent:b_},v_={type:r.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:r.FunctionDeclaration,entityId:Wt},I_={type:r.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:r.GlobalEvent,entityId:Li},P_={type:r.Operation,id:Wt,version:1,declaration:hi,inputs:[l_,u_,y_,f_],outputs:[R_,T_,g_],process:null,parent:I_,calledByError:[],calledByEntry:[v_],calledBySuccess:[],dynamicArguments:[],successCalls:[s_],errorCalls:[],error:null,x:0,y:0},D_={type:r.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:r.GlobalEvent,entityId:Li},A_={type:r.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:r.GlobalEvent,entityId:Li},S_={process:null,type:r.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:Rl,inputs:[],outputs:[],calledByError:[],calledByEntry:[D_],calledBySuccess:[],parent:A_,successCalls:[],errorCalls:[],error:null,x:0,y:0},O_={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:r.GenericReference,entityType:r.Project,entityId:"2e7eb5382-3d99-44fd-972a-b8b1e819f6be"},C_={type:r.GlobalEvent,id:Li,version:1,name:Kt.PROJECT_PUBLICATION_COMPLETED,returnStatements:[],collapsed:!1,implements:Ma,parent:O_,inputs:[],calls:[S_,P_],x:0,y:0},Bt="abort-execution-func-declaration-id",Gi="abort-execution-func-exec-var-declaration-id",ds="abort-execution-func-small-wait-op-id",bl="abort-execution-func-long-wait-op-id",$T="abort-execution-func-long-wait-process-output-id",VT="abort-execution-func-exec-var-instance-write-id",LT="abort-execution-func-long-wait-return-stmt-id",GT="abort-execution-func-small-wait-return-stmt-id",B_="abort-execution-func-exec-var-instance-abort-call-id",gl="abort-execution-func-exec-var-instance-abort-internal-call-id",FT="abort-execution-func-exec-second-wait-op-id",w_={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},__={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:r.DataType,entityId:"short-wait-return-statement-returned-hello-string-data-type-id"},M_={id:"short-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:__},constant:!1,parent:w_},N_={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:r.ReturnStatement,entityId:GT},$_={isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:M_,readsValue:null,required:!0,index:0,parent:N_},V_={type:r.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:ds},L_={type:r.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},UT={type:r.ReturnStatement,id:GT,version:1,outputs:[$_],calledByError:[],calledByEntry:[],calledBySuccess:[V_],throws:null,x:0,y:0,parent:L_},G_={type:r.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"second-wait-argument-map-id"},F_={type:r.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:r.Operation,entityId:FT},U_={id:"second-wait-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:r.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:v.Number,parent:G_},index:0,parent:F_},x_={type:r.GenericReference,id:"small-wait-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},j_={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:r.InternalCall,entityId:gl},k_={id:FT,type:r.Operation,version:1,declaration:ot,inputs:[U_],dynamicArguments:[],outputs:[],process:null,successCalls:[UT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[j_],error:null,parent:x_},q_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:r.VariableInstance,entityId:VT},J_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:r.Operation,entityId:ds},W_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},H_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:Gi},Y_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:r.InternalCall,entityId:gl},z_={id:B_,type:r.VariableInstance,version:1,declaration:H_,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[Y_],parent:W_},xT={id:gl,type:r.InternalCall,version:1,inputs:[],outputs:[],declaration:Wo,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[q_,J_],successCalls:[k_],errorCalls:[],error:null,index:0,parent:z_},Z_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},X_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:r.VariableDeclaration,entityId:Gi},Q_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:r.FunctionDeclaration,entityId:Bt},K_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:Gi},eM={type:r.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:r.OutputMap,entityId:$T},vl={id:VT,type:r.VariableInstance,version:1,declaration:K_,inputs:[],outputs:[],calledByError:[],calledByEntry:[Q_],calledBySuccess:[X_],successCalls:[xT],errorCalls:[],x:0,y:0,readsValue:eM,writesValues:[],internalCalls:[],parent:Z_},tM={type:r.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:Gi};r.GenericReference,r.DataType;const nM={id:"abort-exec-func-var-decl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Ho,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:tM,defaultValue:null},rM={type:r.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},iM={type:r.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:Bt},aM={id:Gi,type:r.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",dataType:nM,inputs:[],outputs:[],calledByError:[],calledByEntry:[iM],calledBySuccess:[],successCalls:[vl],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:rM},sM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},oM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:r.DataType,entityId:"long-wait-return-statement-returned-hello-string-data-type-id"},lM={id:"long-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:oM},constant:!1,parent:sM},cM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:r.ReturnStatement,entityId:LT},dM={isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:lM,readsValue:null,required:!0,index:0,parent:cM},uM={type:r.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:bl},pM={type:r.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},jT={type:r.ReturnStatement,id:LT,version:1,outputs:[dM],calledByError:[],calledByEntry:[],calledBySuccess:[uM],throws:null,x:0,y:0,parent:pM},yM={type:r.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"long-argument-map-id"},kT={type:r.GenericReference,id:"long-argument-map-parent-ref-id",entityType:r.Operation,entityId:bl},hM={id:"long-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:r.PrimitiveValue,version:1,value:1500,valueAsType:null,autogeneration:null,name:v.Number,parent:yM},index:0,parent:kT},fM={type:r.GenericReference,id:"long-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},mM={type:r.GenericReference,id:"long-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:Bt},TM={id:$T,type:r.OutputMap,version:1,declaration:zo,writesValues:[vl],index:0,parent:kT},EM={id:bl,type:r.Operation,version:1,declaration:ot,inputs:[hM],dynamicArguments:[],outputs:[],process:TM,successCalls:[jT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[mM],calledBySuccess:[],error:null,parent:fM},RM={type:r.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"small-wait-argument-map-id"},bM={type:r.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:r.Operation,entityId:ds},gM={id:"small-wait-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:r.PrimitiveValue,version:1,value:500,valueAsType:null,autogeneration:null,name:v.Number,parent:RM},index:0,parent:bM},vM={type:r.GenericReference,id:"small-wait-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},IM={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:Bt},PM={id:ds,type:r.Operation,version:1,declaration:ot,inputs:[gM],dynamicArguments:[],outputs:[],process:null,successCalls:[xT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[IM],calledBySuccess:[],error:null,parent:vM},DM={type:r.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:r.Project,entityId:J},qT={id:"abort-execution-func-decl-id",type:r.FunctionDeclaration,version:1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],returnStatements:[jT,UT],calls:[PM,aM,vl,EM],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:DM},AM={type:r.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:r.Project,entityId:J},SM={id:"call-execution-abort-func-id",type:r.FunctionCall,version:1,declaration:qT,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:AM},Il="manual-hello-world-loop-func-decl-id",JT="manual-hello-world-loop-func-return-statement-id",an="manual-hello-world-loop-id",Fi="manual-hello-world-loop-body-id",WT="manual-hello-world-loop-break-statement-id",us="manual-hello-world-loop-current-iteration-number-output-map-id",Pl="manual-hello-world-loop-previous-iterations-results-output-map-id",Dl="assembled-hello-world-text-output-id",HT="assembled-hello-world-list-output-id",Ui="iteration-number-is-equal-or-greater-than-10-condition-id",ps="join-hello-world-and-number-operation-id",ys="append-string-to-list-operation-id",YT="hello-world-loop-output-map-id",OM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:r.ReturnStatement,entityId:JT},CM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",entityType:r.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},BM={id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CM},wM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:r.OutputMap,entityId:YT},zT={isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:r.ReturnDeclaration,name:"Results",description:null,dataType:BM,readsValue:wM,required:!0,index:0,parent:OM},_M={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:r.Loop,entityId:an},MM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:r.FunctionDeclaration,entityId:Il},ZT={type:r.ReturnStatement,id:JT,version:1,outputs:[zT],calledByError:[],calledByEntry:[],calledBySuccess:[_M],parent:MM,throws:null,x:0,y:0},NM={type:r.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:r.BreakStatement,entityId:WT},$M={type:r.GenericReference,id:"hello-world-loop-break-statement-output-data-type-ref-id",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-break-statement-output-id"},VM={id:"hello-world-loop-break-statement-output-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$M},LM={type:r.GenericReference,id:"hello-world-loop-break-statement-reads-value-ref-id",entityType:r.OutputMap,entityId:Dl},Al={isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:r.ReturnDeclaration,name:"Iteration result",description:null,dataType:VM,readsValue:LM,required:!0,index:0,parent:NM},GM={type:r.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:r.Condition,entityId:Ui},FM={type:r.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:r.Loop,entityId:an},XT={type:r.BreakStatement,id:WT,version:1,outputs:[Al],calledByError:[],calledByEntry:[],calledBySuccess:[GM],parent:FM,throws:null,x:0,y:0},UM={type:r.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:r.ContinueStatement,entityId:"hello-world-loop-continue-statement"},xM={type:r.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},jM={id:"hello-world-loop-continue-statement-output-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xM},kM={type:r.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:r.OutputMap,entityId:Dl},QT={isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:r.ReturnDeclaration,name:"Iteration result",description:null,dataType:jM,readsValue:kM,required:!0,index:0,parent:UM},qM={type:r.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:r.Condition,entityId:Ui},JM={type:r.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:r.Loop,entityId:an},KT={type:r.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[QT],calledBySuccess:[],calledByError:[qM],calledByEntry:[],parent:JM,throws:null,x:0,y:0};r.GenericReference,r.InputMap;const WM={type:r.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:r.Operation,entityId:ys},HM={type:r.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:r.OutputMap,entityId:Pl},eE={id:"append-string-to-list-base-string-map-id",type:r.InputMap,version:1,declaration:Co,name:null,description:null,readsValue:HM,defaultValue:null,dynamicArguments:[],index:0,parent:WM},YM={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:r.Operation,entityId:ys},zM={id:HT,type:r.OutputMap,version:1,writesValues:[Al],declaration:ui,index:0,parent:YM},ZM={type:r.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:r.Condition,entityId:Ui},XM={type:r.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:HT},QM={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:ys},tE={id:"latest-string-to-add-input-map-id",version:1,type:r.InputMap,declaration:Bo,name:null,description:null,readsValue:XM,dynamicArguments:[],defaultValue:null,index:1,parent:QM},KM={type:r.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:r.FunctionDeclaration,entityId:an},eN={type:r.Operation,id:ys,declaration:ba,version:1,inputs:[eE,tE],outputs:[zM],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[ZM],dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:KM},tN={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Fi},nN={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:r.Loop,entityId:an},rN={type:r.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:r.OutputMap,entityId:us},nE={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:r.Condition,entityId:Ui},iN={id:"current-iteration-number-to-check-map-id",version:1,type:r.InputMap,declaration:Br.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:rN,index:1,defaultValue:null,parent:nE},aN={type:r.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:r.InputMap,entityId:"max-num-iterations-value-map-id"},sN={id:"max-num-iterations-value-map-id",version:1,type:r.InputMap,declaration:Br.fixedArguments[1],name:null,description:null,dynamicArguments:[],readsValue:null,index:0,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:r.PrimitiveValue,version:1,name:v.Number,value:10,autogeneration:null,valueAsType:null,parent:aN},parent:nE},oN={type:r.Condition,id:Ui,version:1,declaration:Br,inputs:[sN,iN],calledByError:[],calledByEntry:[tN],calledBySuccess:[],successCalls:[XT,eN],errorCalls:[KT],x:0,y:0,parent:nN},lN={type:r.GenericReference,id:"base-string-map-ref-id",entityType:r.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},cN={type:r.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:r.Operation,entityId:ps},dN={id:"join-hello-world-and-number-base-string-map-id",type:r.InputMap,version:1,declaration:Ea,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:r.PrimitiveValue,version:1,value:"Hello world ",name:v.String,parent:lN,valueAsType:null,autogeneration:null},dynamicArguments:[],index:0,parent:cN},uN={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:r.Operation,entityId:ps},pN={id:Dl,type:r.OutputMap,version:1,writesValues:[tE,QT],declaration:ui,index:0,parent:uN},yN={type:r.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Fi},hN={type:r.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:us},fN={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:ps},rE={id:"current-iteration-number-input-map-id",version:1,type:r.InputMap,declaration:Ra,name:null,description:null,readsValue:hN,dynamicArguments:[],defaultValue:null,index:1,parent:fN},mN={type:r.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:r.FunctionDeclaration,entityId:an},TN={type:r.Operation,id:ps,declaration:pi,version:1,inputs:[dN,rE],outputs:[pN],process:null,calledByError:[],calledByEntry:[yN],calledBySuccess:[],dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:mN},EN={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:Pl,entityType:r.ArgumentDeclaration},RN={id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:EN},bN={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:r.GenericReference,entityId:Fi,entityType:r.FunctionDeclaration},gN={id:Pl,type:r.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,dataType:RN,writesValues:[eE],index:1,parent:bN},vN={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:r.GenericReference,entityId:Fi,entityType:r.FunctionDeclaration},IN={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:us,entityType:r.ArgumentDeclaration};r.DataType;const PN={id:us,type:r.ArgumentDeclaration,version:1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,dataType:null,writesValues:[rE],index:0,parent:vN},DN={id:"manual-flow-loop-body-parent-ref-id",type:r.GenericReference,entityId:an,entityType:r.Loop},AN={id:Fi,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[PN,gN],calls:[oN,TN],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:DN},SN={type:r.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:r.Loop,entityId:an},ON={type:r.OutputMap,id:YT,version:1,declaration:Al,writesValues:[zT],index:0,parent:SN},CN={id:"manual-hello-world-loop-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},BN={id:"manual-hello-world-loop-called-by-ref-id",type:r.GenericReference,entityId:Il,entityType:r.FunctionDeclaration},wN={id:an,type:r.Loop,version:1,declaration:Fo,inputs:[],outputs:[ON],body:AN,successCalls:[ZT],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[BN],calledBySuccess:[],breakStatements:[XT],continueStatements:[KT],x:0,y:0,parent:CN},_N={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:r.Project,entityId:J},iE={type:r.FunctionDeclaration,id:Il,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[wN],returnStatements:[ZT],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:_N},MN={type:r.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:r.Project,entityId:J},NN={id:"call-hello-world-loop-id",type:r.FunctionCall,version:1,declaration:iE,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:MN},sn="company-dto-function-declaration-id",Sl="company-dto-func-declaration-argument-dcl-id",Ht="company-dto-function-company-variable-id",On="company-dto-function-company-dto-variable-id",Fr="iterate-over-employee-list-loop-id",aE="iterate-over-employee-list-loop-employee-dto-output-map-id",Ol="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",xi="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",sE="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",$N="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",oE="iterate-over-employee-list-continue-statement-id",hs="iterate-over-employee-list-loop-body-id",lE="company-dto-func-declaration-return-statement-id",cE="company-dto-func-declaration-return-decl-id",dE="company-dto-func-declaration-company-variable-id-output-map-id",uE="company-dto-func-declaration-company-variable-employess-output-map-id",pE="company-dto-func-declaration-company-variable-name-output-map-id",VN="company-dto-func-declaration-company-dto-variable-input-map-id",LN="company-dto-func-declaration-company-dto-variable-employess-input-map-id",GN="company-dto-func-declaration-company-dto-variable-name-input-map-id",fs="company-dto-func-declaration-owner-variable-id",FN="company-dto-func-declaration-company-dto-variable-owner-input-map-id",yE="company-dto-func-declaration-company-variable-owner-output-map-id",hE="company-dto-func-declaration-owner-variable-id-output-map-id",ms="company-dto-func-declaration-bank-account-variable-id",UN="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",fE="company-dto-func-declaration-company-variable-bank-account-output-map-id",mE="company-dto-func-declaration-bank-account-variable-id-output-map-id",xN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:cE},jN={id:"company-dto-func-returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xN},kN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:lE},qN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:On},TE={isError:!1,id:cE,type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:jN,readsValue:qN,required:!0,index:0,parent:kN},JN={type:r.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:r.Operation,entityId:On},WN={type:r.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},Cl={type:r.ReturnStatement,id:lE,version:1,outputs:[TE],calledByError:[],calledByEntry:[],calledBySuccess:[JN],throws:null,x:0,y:0,parent:WN},HN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:hE},YN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},EE={id:FN,type:r.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,dynamicArguments:[],index:5,readsValue:HN,parent:YN},zN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:mE},ZN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},RE={id:UN,type:r.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:zN,parent:ZN},XN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:pE},QN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},bE={id:GN,type:r.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:XN,parent:QN},KN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:aE},e0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},gE={id:LN,type:r.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:KN,parent:e0},t0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:dE},n0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},vE={id:VN,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,dynamicArguments:[],index:1,readsValue:t0,parent:n0},r0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},i0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:r.VariableDeclaration,entityId:ms},a0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:r.VariableDeclaration,entityId:fs},s0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:r.VariableDeclaration,entityId:Fr},Bl={id:On,type:r.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",calledByError:[],calledByEntry:[],calledBySuccess:[i0,a0,s0],successCalls:[Cl],errorCalls:[],readsValue:null,writesValues:[TE],inputs:[vE,bE,RE,EE,gE],outputs:[],internalCalls:[],parent:r0,x:0,y:0},Yn="employee-dto-func-declaration-id",wl="employee-dto-func-declaration-argument-dcl-id",IE="employee-dto-func-declaration-return-statement-id",PE="employee-dto-func-declaration-return-decl-id",zn="employee-dto-func-declaration-employee-variable-id",Zn="employee-dto-func-declaration-employee-dto-variable-id",Ts="employee-dto-func-declaration-manager-variable-id",DE="employee-dto-func-declaration-employee-variable-id-output-map-id",AE="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",SE="employee-dto-func-declaration-employee-variable-department-output-map-id",OE="employee-dto-func-declaration-employee-variable-manager-output-map-id",CE="employee-dto-func-declaration-manager-variable-id-output-map-id",o0="employee-dto-func-declaration-employee-dto-variable-input-map-id",l0="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",c0="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",d0="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",u0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:PE},p0={id:"employee-dto-func-returned-employee-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:u0},y0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:IE},h0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:Zn},BE={isError:!1,id:PE,type:r.ReturnDeclaration,version:1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",dataType:p0,readsValue:h0,required:!0,index:0,parent:y0},f0={type:r.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Zn},m0={type:r.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},_l={type:r.ReturnStatement,id:IE,version:1,outputs:[BE],calledByError:[],calledByEntry:[],calledBySuccess:[f0],throws:null,x:0,y:0,parent:m0},T0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:CE},E0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},wE={id:d0,type:r.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:T0,parent:E0},R0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:SE},b0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},_E={id:c0,type:r.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:R0,parent:b0},g0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:AE},v0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},ME={id:l0,type:r.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:g0,parent:v0},I0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:DE},P0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},NE={id:o0,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,dynamicArguments:[],index:1,readsValue:I0,parent:P0},D0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},A0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:r.VariableDeclaration,entityId:Ts},S0={id:Zn,type:r.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[A0],successCalls:[_l],errorCalls:[],readsValue:null,writesValues:[BE],inputs:[NE,ME,_E,wE],outputs:[],internalCalls:[],parent:D0,x:0,y:0},O0={type:r.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ts},C0={id:CE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[wE],parent:O0},B0={type:r.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ts},w0={id:"employee-dto-func-manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:B0,defaultValue:null},_0={type:r.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:OE},M0={type:r.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn};r.GenericReference,r.VariableDeclaration;const $E={id:Ts,type:r.VariableDeclaration,version:1,name:"Manager",dataType:w0,description:"A variable holding an inherited manager",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[S0],errorCalls:[],readsValue:_0,writesValues:[],inputs:[],outputs:[C0],internalCalls:[],parent:M0,x:0,y:0},N0={type:r.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},$0={id:OE,type:r.OutputMap,version:1,declaration:Pt.properties[2],index:3,writesValues:[$E],parent:N0},V0={type:r.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},L0={id:SE,type:r.OutputMap,version:1,declaration:Pt.properties[0],index:2,writesValues:[_E],parent:V0},G0={type:r.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},F0={id:AE,type:r.OutputMap,version:1,declaration:ct.properties[1],index:1,writesValues:[ME],parent:G0},U0={type:r.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},x0={id:DE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[NE],parent:U0},j0={type:r.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},k0={id:"employee-dto-func-employee-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:j0,defaultValue:null},q0={type:r.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},J0={type:r.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:wl},W0={type:r.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:r.FunctionDeclaration,entityId:Yn},VE={id:zn,type:r.VariableDeclaration,version:1,name:"Company employee",dataType:k0,description:"A variable holding a company employee",calledByError:[],calledByEntry:[W0],calledBySuccess:[],successCalls:[$E],errorCalls:[],readsValue:J0,writesValues:[],inputs:[],outputs:[x0,F0,L0,$0],internalCalls:[],parent:q0,x:0,y:0},H0={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:wl,entityType:r.ArgumentDeclaration},Y0={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:Pt,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:H0,defaultValue:null},z0={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:Yn,entityType:r.FunctionDeclaration},Z0={type:r.ArgumentDeclaration,id:wl,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,dataType:Y0,index:0,writesValues:[VE],parent:z0},X0={type:r.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:r.Project,entityId:J},Ml={type:r.FunctionDeclaration,id:Yn,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[Z0],calls:[VE],implements:null,returnStatements:[_l],collapsed:!1,private:!1,x:0,y:0,parent:X0},Q0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:sE,entityType:r.ReturnDeclaration},K0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:Pt,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Q0},e1={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:r.GenericReference,entityId:xi,entityType:r.OutputMap},t1={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:r.GenericReference,entityId:oE,entityType:r.ContinueStatement},LE={isError:!1,id:sE,type:r.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",readsValue:e1,dataType:K0,required:!0,index:0,parent:t1},n1={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},r1={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},GE={id:oE,type:r.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[n1],outputs:[LE],throws:null,x:0,y:0,parent:r1},i1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},a1={id:$N,type:r.OutputMap,version:1,declaration:_l.outputs[0],writesValues:[LE],index:0,parent:i1},s1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Ol,entityType:r.ArgumentDeclaration},o1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},FE={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:Ml.inputs[0],readsValue:s1,index:0,defaultValue:null,dynamicArguments:[],parent:o1},l1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:r.GenericReference,entityId:hs,entityType:r.FunctionDeclaration},c1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:r.GenericReference,entityId:hs,entityType:r.FunctionDeclaration},d1={id:xi,type:r.FunctionCall,version:1,declaration:Ml,inputs:[FE],process:null,outputs:[a1],calledByError:[],calledByEntry:[l1],calledBySuccess:[],successCalls:[GE],errorCalls:[],error:null,x:0,y:0,parent:c1},u1={type:r.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Ol,entityType:r.ArgumentDeclaration},p1={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:Pt,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:u1},y1={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:hs,entityType:r.FunctionDeclaration},h1={id:Ol,type:r.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",dataType:p1,required:!0,index:0,writesValues:[FE],parent:y1},f1={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},m1={id:hs,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each entity in the list.",inputs:[h1],calls:[d1],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:f1},T1={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},E1={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:r.GenericReference,entityId:uE,entityType:r.OutputMap},UE={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:jn.fixedArguments[0],defaultValue:null,dynamicArguments:[],readsValue:E1,index:0,parent:T1},R1={id:"iterate-over-employee-list-loop-parent-ref-id",type:r.GenericReference,entityId:sn,entityType:r.FunctionDeclaration},b1={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},g1={id:aE,type:r.OutputMap,version:1,declaration:jn.fixedReturns[0],writesValues:[gE],index:0,parent:b1},v1={type:r.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:r.VariableDeclaration,entityId:Ht},I1={id:Fr,type:r.Loop,version:1,declaration:jn,inputs:[UE],successCalls:[Bl],errorCalls:[],outputs:[g1],body:m1,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[v1],breakStatements:[],continueStatements:[GE],error:null,x:0,y:0,parent:R1},P1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:ms},D1={id:mE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[RE],parent:P1},A1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:ms},S1={id:"company-dto-func-bank-account-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:A1,defaultValue:null},O1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:fE},C1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn};r.GenericReference,r.VariableDeclaration;const xE={id:ms,type:r.VariableDeclaration,version:1,name:"Bank account",dataType:S1,description:"A variable holding an inherited bank account",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Bl],errorCalls:[],readsValue:O1,writesValues:[],inputs:[],outputs:[D1],internalCalls:[],parent:C1,x:0,y:0},B1={type:r.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:fs},w1={id:hE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[EE],parent:B1},_1={type:r.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:fs},M1={id:"company-dto-func-owner-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:_1,defaultValue:null},N1={type:r.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:yE},$1={type:r.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn};r.GenericReference,r.VariableDeclaration;const jE={id:fs,type:r.VariableDeclaration,version:1,name:"Owner",dataType:M1,description:"A variable holding an inherited owner",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Bl],errorCalls:[],readsValue:N1,writesValues:[],inputs:[],outputs:[w1],internalCalls:[],parent:$1,x:0,y:0},V1={type:r.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},L1={id:yE,type:r.OutputMap,version:1,declaration:mt.properties[2],index:4,writesValues:[jE],parent:V1},G1={type:r.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},F1={id:fE,type:r.OutputMap,version:1,declaration:mt.properties[2],index:3,writesValues:[xE],parent:G1},U1={type:r.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},x1={id:pE,type:r.OutputMap,version:1,declaration:mt.properties[0],index:2,writesValues:[bE],parent:U1},j1={type:r.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},k1={id:uE,type:r.OutputMap,version:1,declaration:mt.properties[3],index:1,writesValues:[UE],parent:j1},q1={type:r.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},J1={id:dE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[vE],parent:q1},W1={type:r.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},H1={id:"company-dto-func-company-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:W1,defaultValue:null},Y1={type:r.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},z1={type:r.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:Sl},Z1={type:r.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:r.FunctionDeclaration,entityId:sn},kE={id:Ht,type:r.VariableDeclaration,version:1,name:"Company",dataType:H1,description:"A variable holding a company",calledByError:[],calledByEntry:[Z1],calledBySuccess:[],successCalls:[xE,jE,I1],errorCalls:[],readsValue:z1,writesValues:[],inputs:[],outputs:[J1,k1,x1,F1,L1],internalCalls:[],parent:Y1,x:0,y:0},X1={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Sl,entityType:r.ArgumentDeclaration},Q1={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:X1,defaultValue:null},K1={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:sn,entityType:r.FunctionDeclaration},e$={type:r.ArgumentDeclaration,id:Sl,version:1,name:"Company",description:"The company to create a DTO for",required:!0,dataType:Q1,index:0,writesValues:[kE],parent:K1},t$={type:r.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:r.Project,entityId:J},Nl={type:r.FunctionDeclaration,id:sn,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[e$],calls:[kE],implements:null,index:null,returnStatements:[Cl],collapsed:!1,private:!1,x:0,y:0,parent:t$},ji="exec-in-parallel-operation-call-id",ki="exec-sequentially-operation-call-id",dt="concurrency-and-wait-function-declaration-id",qE="concurrency-and-wait-return-statement-id",JE="concurrency-and-wait-return-declaration-id",$l="exec-in-parallel-argument-map-id",WE="exec-sequentially-argument-map-id",Vl="wait-for-2-seconds-operation-id",HE="wait-for-2-seconds-argument-map-id",Ll="map-company-dto-function-call-id",YE="map-company-dto-function-call-company-dto-output-map-id",qi="company-dto-variable-one-id",Gl="company-dto-variable-one-instance-id",n$="company-dto-variable-two-id",r$={type:r.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:JE},i$={id:"returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:r$},a$={type:r.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:qE},s$={type:r.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:qi},zE={isError:!1,id:JE,type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:i$,readsValue:s$,required:!0,index:0,parent:a$},o$={type:r.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Vl},l$={type:r.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},ZE={type:r.ReturnStatement,id:qE,version:1,outputs:[zE],calledByError:[],calledByEntry:[],calledBySuccess:[o$],throws:null,x:0,y:0,parent:l$},c$={type:r.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:r.VariableInstance,entityId:Gl},d$={type:r.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:r.VariableInstance,entityId:Gl},u$={type:r.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},XE={id:n$,type:r.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[c$],internalCalls:[],writesValues:[zE],readsValue:d$,x:0,y:0,parent:u$},p$={type:r.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:r.VariableDeclaration,entityId:qi},y$={type:r.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:qi},h$={type:r.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},f$={type:r.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:qi},QE={id:Gl,type:r.VariableInstance,version:1,declaration:f$,inputs:[],outputs:[],successCalls:[XE],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[p$],internalCalls:[],writesValues:[XE],readsValue:y$,x:0,y:0,parent:h$},m$={type:r.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:r.FunctionCall,entityId:Ll},T$={type:r.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:r.OutputMap,entityId:YE},E$={type:r.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},KE={id:qi,type:r.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[QE],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[m$],internalCalls:[],writesValues:[QE],readsValue:T$,x:0,y:0,parent:E$},eR={type:r.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:r.FunctionCall,entityId:Ll},R$={id:"map-company-dto-function-call-company-input-map-id",type:r.InputMap,version:1,declaration:Nl.inputs[0],name:null,description:null,defaultValue:null,dynamicArguments:[],index:0,readsValue:null,parent:eR},b$={id:YE,type:r.OutputMap,version:1,declaration:Cl.outputs[0],writesValues:[KE],index:0,parent:eR},g$={id:"map-company-dto-function-call-called-by-ref-id",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:dt},v$={id:"map-company-dto-function-call-parent-ref-id",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:dt},I$={id:Ll,type:r.FunctionCall,version:1,declaration:Nl,successCalls:[KE],process:null,errorCalls:[],inputs:[R$],outputs:[b$],calledByError:[],calledByEntry:[g$],calledBySuccess:[],parent:v$,x:0,y:0,error:null},P$={type:r.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:Xm},D$={type:r.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:r.DataType,entityId:"last-timestamp-variable-datatype-id"},A$={id:"last-timestamp-variable-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Sr,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:P$,defaultValue:{id:"last-timestamp-variable-default-value-id",type:r.PrimitiveValue,version:1,name:v.Date,value:null,autogeneration:{type:xe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:D$,valueAsType:null}},S$={type:r.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:r.Project,entityId:J},Fl={id:Xm,type:r.VariableDeclaration,version:1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",dataType:A$,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:S$},O$={type:r.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:HE},C$={type:r.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:r.Operation,entityId:Vl},B$={id:HE,type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:r.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:v.Number,parent:O$},index:0,parent:C$},w$={type:r.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},_$={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:ki},M$={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:r.FunctionDeclaration,entityId:ji},tR={id:Vl,type:r.Operation,version:1,declaration:$t,inputs:[B$],dynamicArguments:[],outputs:[],process:null,successCalls:[ZE],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[_$,M$],calledBySuccess:[],error:null,parent:w$},N$={type:r.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"wait-for-random-amount-input-map-id"},$$={type:r.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:r.Operation,entityId:"wait-for-random-amount-id"},V$={id:"wait-for-random-amount-input-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:r.PrimitiveValue,version:1,value:null,valueAsType:null,autogeneration:{type:xe.Random,rangeStart:1e3,rangeEnd:4e3},name:v.Number,parent:N$},index:0,parent:$$},L$={type:r.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:r.Project,entityId:J},Ur={id:"wait-for-random-amount-id",type:r.Operation,version:1,declaration:$t,inputs:[V$],dynamicArguments:[],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:L$},nR="list-of-functions-variable-id",G$={type:r.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:nR},F$={id:"list-of-functions-variable-action-descriptor-id",type:r.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",argumentsType:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,error:null,dynamicReturnTypes:null,fixedReturns:[],parent:null},U$={type:r.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",entityType:r.DataType,entityId:"list-of-functions-variable-data-type-id"},x$={id:"list-of-functions-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F$,asType:!1,isList:!0,isNullable:!1,defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.ActionDescriptor,value:null,valueAsType:[Ur,Ur,Ur,Ur,Ur],autogeneration:null,parent:U$},constant:!1,parent:G$},j$={type:r.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt};r.GenericReference,r.InputMap;const k$={type:r.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:r.InputMap,entityId:WE},q$={type:r.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:r.InputMap,entityId:$l},rR={id:nR,type:r.VariableDeclaration,version:1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",dataType:x$,parent:j$,readsValue:null,writesValues:[k$,q$],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},J$={type:r.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:r.Operation,entityId:ji},W$={type:r.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},H$={type:r.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:"exec-in-parallel-return-map-id"},Y$={type:r.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:r.Operation,entityId:ji},iR={id:"exec-in-parallel-result-variable-id",type:r.VariableInstance,version:1,declaration:Fl,readsValue:H$,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Y$],successCalls:[],errorCalls:[],internalCalls:[],parent:W$,x:0,y:0},z$={id:"exec-in-parallel-return-map-id",type:r.OutputMap,version:1,declaration:_o,writesValues:[iR],index:0,parent:J$},Z$={type:r.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:r.Operation,entityId:ji},X$={id:$l,type:r.InputMap,version:1,declaration:wo,name:null,description:null,dynamicArguments:[],readsValue:rR,defaultValue:null,index:0,parent:Z$},Q$={type:r.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},K$={type:r.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:dt},eV={process:null,id:ji,type:r.Operation,version:1,declaration:$t,inputs:[X$],dynamicArguments:[],outputs:[z$],successCalls:[tR,iR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[K$],calledBySuccess:[],error:null,parent:Q$},tV={type:r.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:r.Operation,entityId:ki},nV={type:r.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},rV={type:r.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:"exec-sequentially-return-map-id"},iV={type:r.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:r.Operation,entityId:ki},aR={id:"exec-sequentially-result-variable-id",type:r.VariableInstance,version:1,declaration:Fl,readsValue:rV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[iV],successCalls:[],errorCalls:[],internalCalls:[],parent:nV,x:0,y:0},aV={id:"exec-sequentially-return-map-id",type:r.OutputMap,version:1,declaration:No,writesValues:[aR],index:0,parent:tV},sV={type:r.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:r.Operation,entityId:ki},oV={id:WE,type:r.InputMap,version:1,declaration:Mo,name:null,description:null,dynamicArguments:[],readsValue:rR,defaultValue:null,index:0,parent:sV},lV={type:r.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},cV={type:r.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:dt},dV={id:ki,type:r.Operation,version:1,declaration:tn,inputs:[oV],process:null,dynamicArguments:[],outputs:[aV],successCalls:[tR,aR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[cV],calledBySuccess:[],error:null,parent:lV},uV={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:r.Project,entityId:J},pV={type:r.FunctionDeclaration,id:dt,version: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:[dV,eV,I$],returnStatements:[ZE],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:uV},yV={type:r.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:r.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},hV={id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:yV},fV={type:r.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:r.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},mV={isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.ReturnDeclaration,version:1,name:"Created company",description:"The new company that was created",dataType:hV,readsValue:null,required:!0,index:0,parent:fV},TV={type:r.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},EV={type:r.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},sR={type:r.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[mV],calledByError:[],calledByEntry:[EV],calledBySuccess:[],throws:null,x:0,y:0,parent:TV},RV={type:r.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:r.Project,entityId:J},bV={type:r.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[sR],index:null,implements:null,returnStatements:[sR],collapsed:!1,private:!1,x:0,y:0,parent:RV},Ul="get-current-date-and-time-func-decl-id",oR="get-current-date-and-time-return-statement-id",lR="get-current-date-and-time-return-declaration-id",cR="get-current-date-and-time-return-declaration-data-type-id",gV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:r.DataType,entityId:cR},vV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:lR},IV={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:cR,version:1,entity:Sr,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"last-timestamp-variable-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:v.Date,valueAsType:null,autogeneration:{type:xe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:gV},constant:!1,parent:vV},PV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:r.ReturnStatement,entityId:oR};r.ReturnDeclaration;const DV={type:r.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Ul},AV={type:r.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Ul};r.ReturnStatement;const SV={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:r.Project,entityId:J},OV={type:r.FunctionDeclaration,id:Ul,version:1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],returnStatements:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:SV},dR="do-math-return-statement-id",uR="do-math-return-declaration-id",CV={type:r.GenericReference,id:"do-math-func-var-to-return-one-ref-id",entityType:r.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},BV={id:"do-math-func-var-to-return-one-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CV},wV={type:r.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},_V={type:r.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:r.ReturnDeclaration,entityId:uR},MV={type:r.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",dataType:BV,readsValue:null,writesValues:[_V],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:wV},NV={type:r.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:r.ReturnStatement,entityId:dR},$V={type:r.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:r.ReturnDeclaration,entityId:"873a3556-4911-4141-b2a0-49c677b56fb4"},VV={id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$V},LV={isError:!1,id:uR,version:1,type:r.ReturnDeclaration,name:"Result",description:null,dataType:VV,readsValue:MV,required:!0,index:0,parent:NV},GV={type:r.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},FV={type:r.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},pR={type:r.ReturnStatement,id:dR,version:1,outputs:[LV],calledByError:[],calledByEntry:[],calledBySuccess:[GV],parent:FV,throws:null,x:0,y:0},UV={type:r.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:r.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},xV={id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:UV},jV={type:r.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},kV={type:r.GenericReference,id:"do-math-func-return-one-called-by",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},qV={type:r.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},yR={type:r.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:xV,description:null,readsValue:qV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[kV],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:jV},JV={type:r.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},WV={type:r.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},HV={type:r.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:r.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},YV={id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:HV},zV={type:r.GenericReference,id:"do-math-func-return-two-called-by",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},hR={type:r.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[zV],successCalls:[],errorCalls:[],dataType:YV,readsValue:WV,writesValues:[],internalCalls:[],parent:JV,x:0,y:0},fR={type:r.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ZV={type:r.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},XV={type:r.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},QV={type:r.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:r.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},mR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:r.InputMap,declaration:vo,name:null,description:null,dynamicArguments:[],readsValue:QV,defaultValue:null,index:0,parent:XV},KV={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:r.OutputMap,version:1,declaration:Po,writesValues:[yR,hR],index:0,parent:ZV},eL={type:r.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},tL={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:r.GenericReference,entityType:r.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},TR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:r.InputMap,declaration:Io,name:null,description:null,dynamicArguments:[],readsValue:tL,defaultValue:null,index:1,parent:eL},nL={type:r.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Ta,version:1,inputs:[mR,TR],dynamicArguments:[],outputs:[KV],calledByError:[],calledByEntry:[fR],calledBySuccess:[],process:null,successCalls:[pR,yR,hR],errorCalls:[],parent:fR,error:null,x:0,y:0},rL={type:r.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:r.DataType,entityId:"a350a9e9-25ee-477f-a83d-9e98ed2451662"},iL={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:r.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:r.ArgumentDeclaration},ER={id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:r.PrimitiveValue,version:1,value:1,name:v.Number,parent:rL,valueAsType:null,autogeneration:null},constant:!1,parent:iL},aL={type:r.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:r.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},sL={type:r.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},oL={type:r.GenericReference,id:"do-math-func-var-called-by-ref",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},RR={type:r.VariableDeclaration,id:"72a338d8-0183-4ca2-8760-227517854595",version:1,name:"Z",description:null,dataType:ER,inputs:[],outputs:[],calledByError:[],calledByEntry:[oL],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:aL,writesValues:[TR],internalCalls:[],x:0,y:0,parent:sL},lL={entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:r.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},cL={id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:r.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",dataType:ER,writesValues:[RR],required:!0,index:1,parent:lL},dL={type:r.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:r.Project,entityId:J},uL={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},pL={type:r.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:r.DataType,entityId:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2"},yL={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:r.ArgumentDeclaration},hL={id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:r.PrimitiveValue,version:1,value:5,name:v.Number,parent:pL,valueAsType:null,autogeneration:null},constant:!1,parent:yL},fL={id:"d8895765-f705-457e-85fa-25d130926769",type:r.ArgumentDeclaration,version:1,name:"N",dataType:hL,description:"The number to add",writesValues:[mR],required:!0,index:0,parent:uL},mL={type:r.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[fL,cL],calls:[nL,RR],implements:null,index:null,collapsed:!1,returnStatements:[pR],private:!1,x:0,y:0,parent:dL},Tt="replace-bank-account-in-company-func-declaration-id",xl="company-entity-to-modify-arg-declaration-id",TL="account-number-to-create-arg-decl-id",xr="company-variable-id",jr="search-person-by-id-id",bR="new-bank-account-owner-arg-decl-id",gR="search-person-by-id-output-declaration-id",jl="search-person-by-id-output-entity-map-id",Es="person-not-empty-condition-id",Rs="create-new-bank-account-instance-operation-id",vR="create-new-bank-account-instance-operation-output-entity-map-id",IR="company-bank-account-output-map-id",kl="old-bank-account-var-declaration-id",PR="old-bank-account-var-instance-id",DR="company-variable-instance-id",ql="delete-bank-account-internal-call-id",EL={type:r.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},RL={type:r.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:r.InternalCall,entityId:ql},bL={type:r.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:xr},gL={type:r.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:r.VariableInstance,entityId:DR},vL={type:r.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:vR},AR={type:r.InputMap,id:"bank-account-input-map-id",version:1,readsValue:vL,declaration:El,name:null,description:null,index:0,defaultValue:null,dynamicArguments:[],parent:gL},IL={type:r.VariableInstance,id:DR,version:1,declaration:bL,inputs:[AR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[RL],successCalls:[],errorCalls:[],internalCalls:[],parent:EL,readsValue:null,writesValues:[],x:0,y:0},PL={type:r.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},DL={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,constant:!1,defaultValue:null,parent:PL},AL={type:r.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:IR},SL={type:r.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},OL={type:r.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:r.VariableDeclaration,entityId:xr},CL={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:r.Operation,entityId:Rs};r.GenericReference,r.VariableInstance;const BL={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",entityType:r.VariableDeclaration,entityId:kl},wL={type:r.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",entityType:r.VariableDeclaration,entityId:kl},_L={type:r.GenericReference,id:"bank-account-variable-parent-ref-two-id",entityType:r.FunctionDeclaration,entityId:Tt},ML={type:r.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",entityType:r.InternalCall,entityId:ql},NL={type:r.VariableInstance,id:PR,version:1,declaration:wL,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[ML],errorCalls:[],parent:_L,readsValue:null,writesValues:[],x:0,y:0},SR={process:null,type:r.InternalCall,id:ql,version:1,declaration:ko,index:0,successCalls:[IL],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[CL,BL],parent:NL},OR={type:r.VariableDeclaration,id:kl,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:DL,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[OL],successCalls:[SR],internalCalls:[],errorCalls:[],parent:SL,readsValue:AL,writesValues:[],x:0,y:0},$L={type:r.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},VL={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,constant:!1,defaultValue:null,parent:$L},LL={type:r.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:xl},GL={type:r.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},FL={type:r.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},UL={type:r.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},xL={id:IR,version:1,type:r.OutputMap,declaration:El,index:0,parent:UL,writesValues:[OR]},CR={type:r.VariableDeclaration,id:xr,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",dataType:VL,inputs:[],outputs:[xL],calledByError:[],calledByEntry:[FL],calledBySuccess:[],successCalls:[OR],errorCalls:[],parent:GL,internalCalls:[],readsValue:LL,writesValues:[],x:0,y:0},jL={type:r.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:r.InputMap,entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id"},kL={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,entityType:r.OutputMap,entityId:jl},BR={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:r.InputMap,declaration:iT,name:null,description:null,dynamicArguments:[],readsValue:kL,index:1,defaultValue:null,parent:jL},qL={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:TL},JL={type:r.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:r.InputMap,entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id"},wR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:r.InputMap,declaration:rT,name:null,description:null,dynamicArguments:[],readsValue:qL,defaultValue:null,index:0,parent:JL},WL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:r.Operation,entityId:Rs},HL={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:r.InputMap,declaration:Or.fixedArguments[0],name:null,description:null,dynamicArguments:[wR,BR],index:0,readsValue:null,defaultValue:{type:r.PrimitiveValue,name:v.EntityTemplate,value:null,valueAsType:Lr,autogeneration:null},parent:WL},YL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:r.Operation,entityId:Rs},zL={id:vR,version:1,type:r.OutputMap,declaration:Or.fixedReturns[0],index:0,writesValues:[AR],parent:YL},ZL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:r.Condition,entityId:Es},XL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},QL={process:null,id:Rs,type:r.Operation,version:1,declaration:Or,inputs:[HL],dynamicArguments:[],error:null,outputs:[zL],successCalls:[SR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[ZL],parent:XL,x:0,y:0},KL={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-datatype-id",entityType:r.DataType},eG={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:r.ReturnDeclaration};r.DataType,r.PrimitiveValue,v.String;const tG={id:"person-not-found-thrown-error-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:r.ReturnStatement},nG={isError:!0,id:"person-not-found-thrown-error-id",type:r.ReturnDeclaration,version:1,dataType:null,name:"Person not found error",description:"If the person entity was not found this error is outputted",parent:tG,required:!0,index:0,readsValue:null},rG={id:"person-not-found-error-return-statement-called-by-ref-id",type:r.GenericReference,entityId:Es,entityType:r.Condition},iG={id:"person-not-found-error-return-statement-parent-ref-id",type:r.GenericReference,entityId:Tt,entityType:r.FunctionDeclaration},aG={id:"person-not-found-error-return-statement-id",type:r.ReturnStatement,version:1,throws:nG,outputs:[],calledBySuccess:[],calledByError:[rG],calledByEntry:[],x:0,y:0,parent:iG},sG={type:r.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:r.Search,entityId:jr},oG={type:r.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},lG={type:r.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:r.OutputMap,entityId:jl},cG={type:r.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:r.Condition,entityId:Es},_R={id:"person-entity-to-check-map-id",version:1,type:r.InputMap,declaration:kn.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:lG,index:0,defaultValue:null,parent:cG},dG={type:r.Condition,id:Es,version:1,declaration:kn,inputs:[_R],calledByError:[],calledByEntry:[],calledBySuccess:[sG],successCalls:[QL],errorCalls:[aG],x:0,y:0,parent:oG},uG={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:r.ReturnDeclaration,entityId:gR},pG={id:"search-person-by-id-output-entity-declaration-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,constant:!1,asType:!1,isNullable:!1,entity:ct,defaultValue:null,parent:uG},yG={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:r.Search,entityId:jr},MR={isError:!1,id:gR,type:r.ReturnDeclaration,version:1,dataType:pG,name:"Found person",description:"The person entity that was found",parent:yG,required:!0,index:0,readsValue:null},hG={type:r.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:r.Search,entityId:jr},fG={type:r.OutputMap,id:jl,version:1,declaration:MR,parent:hG,writesValues:[_R,BR],index:0},mG={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:r.GenericReference,entityId:"search-person-by-id-input-declaration-id",entityType:r.ArgumentDeclaration};r.DataType;const TG={type:r.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:r.Search,entityId:jr},NR={id:"search-person-by-id-input-declaration-id",type:r.ArgumentDeclaration,version:1,dataType:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",index:0,required:!0,parent:TG,writesValues:[]},EG={type:r.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:r.Search,entityId:jr},RG={id:"search-person-by-id-input-map-reads-value-ref-id",type:r.GenericReference,entityId:bR,entityType:r.ArgumentDeclaration},$R={type:r.InputMap,id:"search-person-by-id-input-map",version:1,declaration:NR,name:null,description:null,readsValue:RG,defaultValue:null,parent:EG,dynamicArguments:[],index:0},bG={from:{name:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},items:[{name:"*"}],where:[{name:"id",value:"{{dynamic_value_1}}"}]},gG={type:r.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},vG={type:r.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},IG={type:r.Search,id:jr,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:bG,inputsDeclarations:[NR],inputs:[$R],outputsDeclarations:[MR],outputs:[fG],calledByError:[],calledByEntry:[vG],calledBySuccess:[],error:null,successCalls:[dG],errorCalls:[],parent:gG,x:0,y:0};r.GenericReference,r.DataType;const PG={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"account-number-to-create-arg-decl-id",entityType:r.ArgumentDeclaration},DG={id:"account-number-to-create-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:PG},AG={entityType:r.FunctionDeclaration,entityId:Tt,type:r.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},SG={id:"account-number-to-create-arg-decl-id",type:r.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",dataType:DG,writesValues:[wR],required:!0,index:1,parent:AG};r.GenericReference,r.DataType;const OG={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",entityType:r.ArgumentDeclaration},CG={id:"new-bank-account-owner-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ma,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:OG},BG={entityType:r.FunctionDeclaration,entityId:Tt,type:r.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},wG={id:bR,type:r.ArgumentDeclaration,version:1,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",dataType:CG,writesValues:[$R],required:!1,index:1,parent:BG},_G={type:r.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:r.Project,entityId:J},MG={type:r.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:r.FunctionDeclaration,entityId:Tt};r.GenericReference,r.DataType;const NG={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:xl,entityType:r.ArgumentDeclaration},$G={id:"company-entity-to-modify-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:NG},VG={id:xl,type:r.ArgumentDeclaration,version:1,name:"Company",dataType:$G,description:"The company to replace the bank account for",writesValues:[CR],required:!0,index:0,parent:MG},LG={type:r.FunctionDeclaration,id:Tt,version: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:[VG,SG,wG],index:null,implements:null,calls:[IG,CR],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:_G},GG={type:r.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},FG={type:r.FunctionDeclaration,version:1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,returnStatements:[],private:!1,parent:GG,x:0,y:0},UG={type:r.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:r.Project,entityId:"23b23d8b-1929-4505-a350-745c8550e731"},xG={type:r.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},jG={type:r.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[FG],events:[],implements:xG,parent:UG,x:0,y:0},Jl="iterate-over-list-loop-id",VR="iterate-over-list-loop-body-id",LR="iterate-over-list-loop-body-current-iteration-argument-declaration-id",kG={type:r.GenericReference,id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:LR,entityType:r.ArgumentDeclaration},qG={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:kG},JG={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:VR,entityType:r.FunctionDeclaration},WG={id:LR,type:r.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:qG,required:!0,index:0,writesValues:[],parent:JG},HG={id:"iterate-over-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Jl,entityType:r.Loop},YG={id:VR,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each entity in the list.",inputs:[WG],calls:[],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:HG},zG={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Jl,entityType:r.Loop},ZG={id:"iterate-over-list-loop-iteration-list-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:jn.fixedArguments[0],defaultValue:null,dynamicArguments:[],readsValue:null,index:0,parent:zG},XG={id:"iterate-over-list-loop-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},QG={id:Jl,type:r.Loop,version:1,declaration:jn,inputs:[ZG],successCalls:[],errorCalls:[],outputs:[],process:null,body:YG,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:XG};var Wl=(n=>(n.EQ="eq",n.NEQ="neq",n.GT="gt",n.GTE="gte",n.LT="lt",n.LTE="lte",n.LIKE="like",n.ILIKE="ilike",n))(Wl||{}),GR=(n=>(n.COUNT="count",n.SUM="sum",n.AVG="avg",n.MIN="min",n.MAX="max",n))(GR||{});const KG={from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:{from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:[{function:{name:GR.COUNT,items:["f8310850-a87e-405c-b182-4f1d5fa49240"]},alias:"employee_count"}],where:[{name:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",operation:Wl.NEQ,value:null}]},where:[{name:"employee_count",operation:Wl.GT,value:1}]},eF={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},tF={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:r.Search},FR={isError:!1,id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:r.ReturnDeclaration,version:1,name:"companies",description:"List of companies with multiple employees and an existing bank account",dataType:null,readsValue:null,required:!0,index:0,parent:tF},nF={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:r.Search},rF={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:r.OutputMap,version:1,declaration:FR,writesValues:[],index:0,parent:nF},iF={id:"find-companies-with-multiple-employees-and-bank-account",type:r.Search,version: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:[rF],query:KG,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:eF},kr="random-company-employee-test-variable-id",Hl="manager-global-variable-id",UR="global-user-instance-id",qr="employee-mapped-dto-variable-id",xR="random-employee-id-output-map-id",jR="random-employee-birth-date-output-map-id",kR="random-employee-department-output-map-id",qR="random-employee-manager-output-map-id",JR="manager-global-id-output-map-id",WR="global-user-instance-id-output-map-id",aF="employee-mapped-dto-requester-id-input-map-id",sF="employee-mapped-dto-id-input-map-id",oF="employee-mapped-dto-birth-date-input-map-id",lF="employee-mapped-dto-department-input-map-id",cF="employee-mapped-dto-manager-input-map-id",dF={type:r.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:JR},uF={type:r.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},HR={id:cF,type:r.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:dF,parent:uF},pF={type:r.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:kR},yF={type:r.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},YR={id:lF,type:r.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:pF,parent:yF},hF={type:r.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:jR},fF={type:r.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},zR={id:oF,type:r.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:hF,parent:fF},mF={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:xR},TF={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},ZR={id:sF,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,dynamicArguments:[],index:1,readsValue:mF,parent:TF},EF={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:WR},RF={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},XR={id:aF,type:r.InputMap,version:1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,dynamicArguments:[],index:0,readsValue:EF,parent:RF},bF={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Hl},gF={id:JR,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[HR],parent:bF},vF={type:r.GenericReference,id:"manager-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:Hl},IF={id:"manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:vF,defaultValue:null},PF={type:r.GenericReference,id:"manager-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:qR},DF={type:r.GenericReference,id:"manager-variable-parent-ref-id",entityType:r.Project,entityId:J},QR={id:Hl,type:r.VariableDeclaration,version:1,name:"Manager",dataType:IF,description:"A variable holding an inherited manager for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:PF,writesValues:[],inputs:[],outputs:[gF],internalCalls:[],parent:DF,x:0,y:0},AF={type:r.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},SF={id:qR,type:r.OutputMap,version:1,declaration:Pt.properties[2],index:3,writesValues:[QR],parent:AF},OF={type:r.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},CF={id:kR,type:r.OutputMap,version:1,declaration:Pt.properties[0],index:2,writesValues:[YR],parent:OF},BF={type:r.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},wF={id:jR,type:r.OutputMap,version:1,declaration:ct.properties[1],index:1,writesValues:[zR],parent:BF},_F={type:r.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},MF={id:xR,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[ZR],parent:_F},NF={type:r.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},$F={id:"random-company-employee-test-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:NF,defaultValue:null},VF={type:r.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",entityType:r.Project,entityId:J},LF={id:kr,type:r.VariableDeclaration,version:1,name:"Company employee",dataType:$F,description:"A variable holding a random company employee for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[MF,wF,CF,SF],internalCalls:[],parent:VF,x:0,y:0},GF={type:r.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",entityType:r.Project,entityId:J},FF={id:qr,type:r.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[XR,ZR,zR,YR,HR],outputs:[],internalCalls:[],parent:GF,x:0,y:0},UF={type:r.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",entityType:r.VariableDeclaration,entityId:pl},xF={id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:hl,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:UF,defaultValue:null},jF={type:r.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",entityType:r.Project,entityId:J},KR={id:pl,type:r.VariableDeclaration,version:1,name:"Current user",description:"The user that is currently logged in",dataType:xF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:jF},kF={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:r.VariableInstance,entityId:UR},qF={id:WR,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[XR],parent:kF},JF={type:r.GenericReference,id:"global-user-instance-parent-ref-id",entityType:r.Project,entityId:J},WF={id:UR,type:r.VariableInstance,version:1,declaration:KR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[qF],internalCalls:[],parent:JF,x:0,y:0},HF={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:pl},YF={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",entityType:r.DataType,entityId:"is-test-environment-variable-dcl-datatype-id"},zF={id:"is-test-environment-variable-dcl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Fn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!0,parent:HF,defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:v.Boolean,version:1,value:null,type:r.PrimitiveValue,autogeneration:{type:xe.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:YF}},ZF={type:r.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",entityType:r.Project,entityId:J},eb={id:"is-test-environment-variable-dcl-id",type:r.VariableDeclaration,version:1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",dataType:zF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:ZF},XF={type:r.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",entityType:r.Project,entityId:J},QF={id:"is-test-environment-variable-instance-id",type:r.VariableInstance,version:1,declaration:eb,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:XF,x:0,y:0},tb={type:r.Project,id:J,version: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:[jG],entities:[yl,hl,ct,Zw,Pt,ls,TT,ET,Lr,qB,mt,Fw,Qm,WD,jB],functions:[pV,qT,Ml,bV,OV,iE,Nl,Rl,LG,ST,mL],events:[C_],variableDeclarations:[eb,KR,Fl,LF,QR,FF],variableInstances:[QF,WF],conditions:[],operations:[Ur],functionCalls:[SM,NN],loops:[QG],searches:[iF]};var f=(n=>(n.Error="error",n.Warning="warning",n))(f||{}),g=(n=>(n.InvalidObjectStructure="invalid-object-structure",n.NameNotUniqueInScope="name-not-unique-in-scope",n.EmptyName="empty-name",n.MissingCaller="missing-caller",n.PropertyOverwrite="property-overwrite",n.MethodOverwrite="method-overwrite",n.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",n.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",n.UnreachableEntity="unreachable-entity",n.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",n.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",n.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",n.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",n.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",n))(g||{}),y=(n=>(n.RootReference="root-reference",n.ReferencedEntityNotFound="referenced-entity-not-found",n.EntityIdNotUnique="entity-id-not-unique",n.BuiltInEntityGenerated="built-in-entity-generated",n.BuiltInEntityUpdated="built-in-entity-updated",n.BuiltInEntityDeleted="built-in-entity-deleted",n.UnknownEntityType="unknown-entity-type",n.MissingTypeProperty="missing-type-property",n.MissingIdProperty="missing-id-property",n.BuiltInEntityParent="built-in-entity-parent",n.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",n.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",n.RecommendedImplementOperationAction="recommended-implement-operation-action",n.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",n.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",n.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",n.RecommendedImplementConditionAction="recommended-implement-condition-action",n.InvalidReferenceObjectStructure="invalid-reference-object-structure",n.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",n.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",n.InvalidParentReference="invalid-parent-reference",n.InvalidImplementsReference="invalid-implements-reference",n.InvalidExtendsReference="invalid-extends-reference",n.InvalidGenerationActionPayload="invalid-generation-action-payload",n.InvalidReference="invalid-reference",n.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",n.InvalidUpdateEntityOperation="invalid-update-entity-operation",n.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",n.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",n.UnrecognizedProperty="unrecognized-property",n.SelfReference="self-reference",n.DuplicateReference="duplicate-reference",n.CallerWithIncompatibleScope="caller-with-incompatible-scope",n.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",n.InvalidInputMapDeclaration="invalid-input-map-declaration",n.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",n.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",n.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",n.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",n.OutputOverwrite="output-overwrite",n.InputOverwrite="input-overwrite",n.IncompatibleScope="incompatible-scope",n.InvalidParentUpdate="invalid-parent-update",n.NonInteractiveEntityReferenced="non-interactive-entity-referenced",n.InvalidParentRelationType="invalid-parent-relation-type",n))(y||{}),S=(n=>(n.ScopeWithoutLogic="scope-without-logic",n.ExtendingAbstractEntity="extending-abstract-entity",n.ImplementingNonAbstractEntity="implementing-non-abstract-entity",n.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",n.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",n.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",n.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",n.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",n.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",n.IncorrectEntityImplementation="incorrect-entity-implementation",n.IncorrectMethodImplementation="incorrect-method-implementation",n.IncorrectPropertyImplementation="incorrect-property-implementation",n.PropertyImplementsNonAbstact="property-implements-non-abstract",n.NonStaticPropertyImplementsStatic="non-static-property-implements-static",n.StaticPropertyImplementsNonStatic="static-property-implements-non-static",n.PropertyImplementsIncompatibleType="property-implements-incompatible-type",n.MissingPropertyImplementation="missing-property-implementation",n.MissingMethodImplementation="missing-method-implementation",n.NoProperties="no-properties",n.ReadingFromIncompatibleType="reading-from-incompatible-type",n.WritingToIncompatibleType="writing-to-incompatible-type",n.InvalidPropertiesCombination="invalid-properties-combination",n.DisconnectedCallableEntity="disconnected-callable-entity",n.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",n.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",n.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",n.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",n.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",n.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",n))(S||{});class E{constructor(e){l(this,"id");l(this,"message");l(this,"issue");l(this,"severity");l(this,"code");this.id=e.id,this.message=e.message,this.issue=e.issue,this.severity=e.severity,this.code=e.code}toEntityError(e){return this.code in g?new Xn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:e}):null}}class Xn{constructor(e){l(this,"id");l(this,"message");l(this,"issue");l(this,"severity");l(this,"code");l(this,"entity");this.id=e.id,this.message=e.message,this.issue=e.issue,this.severity=e.severity,this.code=e.code,this.entity=e.entity}clone(){return new Xn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function KF(n){const e=new Set;return n.filter(t=>e.has(t.id)?!1:(e.add(t.id),!0))}function j(n){const e=n.entity.errors.find(i=>i.id===n.id);return e?{new:!1,error:e}:{new:!0,error:new Xn(n)}}function e4(n,e){const t=new Map;return n.forEach(i=>{t.set(i.id,i)}),e.forEach(i=>{t.set(i.id,i)}),Array.from(t.values())}function X(n,e){const t=[];return e.forEach(i=>{const a=n.find(s=>s.id===i.id);a?t.push(a):t.push(i)}),t}const Ji=c.union([c.string(),c.number(),c.boolean(),c.date()]),nb=c.enum([xe.CurrentDateAndTime,xe.Random,xe.Unique]),bs=c.object({type:nb,rangeStart:Ji.nullable(),rangeEnd:Ji.nullable()}),Wi=bs.extend({type:c.literal(xe.Random),rangeStart:Ji,rangeEnd:Ji}),Yl=bs.extend({type:c.literal(xe.Unique),rangeStart:c.null(),rangeEnd:c.null()}),rb=bs.extend({type:c.literal(xe.CurrentDateAndTime),rangeStart:c.null(),rangeEnd:c.null()}),gs=Wi.extend({rangeStart:c.number().nullable(),rangeEnd:c.number().nullable()}),ib=gs.extend({rangeStart:c.number(),rangeEnd:c.null()}),ab=gs.extend({rangeStart:c.null(),rangeEnd:c.number()}),sb=gs.extend({rangeStart:c.number(),rangeEnd:c.number()}),vs=Wi.extend({rangeStart:c.number().nullable(),rangeEnd:c.number().nullable()}),ob=vs.extend({rangeStart:c.number(),rangeEnd:c.null()}),lb=vs.extend({rangeStart:c.null(),rangeEnd:c.number()}),cb=vs.extend({rangeStart:c.number(),rangeEnd:c.number()}),Is=Wi.extend({rangeStart:c.date().nullable(),rangeEnd:c.date().nullable()}),db=Is.extend({rangeStart:c.date(),rangeEnd:c.null()}),ub=Is.extend({rangeStart:c.null(),rangeEnd:c.date()}),pb=Is.extend({rangeStart:c.date(),rangeEnd:c.date()}),zl=Wi.extend({rangeStart:c.null(),rangeEnd:c.null()}),Zl=c.union([ob,lb,cb]),Xl=c.union([ib,ab,sb]),Ql=c.union([db,ub,pb,rb]),Kl=c.union([Zl,Xl,Ql,Yl,zl]);function ec(){return c.union([c.object({type:c.literal(r.ValueDescriptor)}),c.record(c.string(),c.any())])}function yb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ValueDescriptor)})}function tc(){return c.object({id:c.string(),type:c.literal(r.ValueDescriptor),name:c.string(),required:c.boolean()})}function t4(){return tc().merge(c.object({version:c.number(),index:c.number()}))}function n4(){return tc().merge(c.object({}))}function r4(){return c.object({dataType:cn(),parent:on()})}function i4(){return t4().merge(r4())}function Ps(){return c.union([c.object({type:c.literal(r.PrimitiveEntity)}),c.record(c.string(),c.any())])}function Ds(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.PrimitiveEntity)})}function As(){return c.object({id:c.string(),type:c.literal(r.PrimitiveEntity),name:c.string(),description:c.string().nullable(),static:c.boolean(),abstract:c.boolean()})}function a4(){return As().merge(c.object({version:c.number()}))}function s4(){return As().merge(c.object({}))}function o4(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([Ps(),Jr()]))})}function l4(){return a4().merge(o4())}function Qn(){return c.union([c.object({type:c.literal(r.Property)}),c.record(c.string(),c.any())])}function hb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Property)})}function nc(){return c.object({id:c.string(),type:c.literal(r.Property),name:c.string(),description:c.string().nullable(),private:c.boolean(),static:c.boolean(),required:c.boolean(),abstract:c.boolean()})}function c4(){return nc().merge(c.object({version:c.number(),index:c.number()}))}function d4(){return nc().merge(c.object({}))}function u4(){return c.object({dataType:cn(),implements:Qn().nullable(),parent:c.union([nr(),Ds(),Ss()])})}function p4(){return c4().merge(u4())}function y4(){return c.enum([_.CRON_JOB,_.EXECUTION,_.HTTP_ENDPOINT,_.PERSISTED_ENTITY,_.RELATIONAL_DATABASE])}function Jr(){return c.union([c.object({type:c.literal(r.BuiltInBaseEntity)}),c.record(c.string(),c.any())])}function Ss(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.BuiltInBaseEntity)})}function rc(){return c.object({id:c.string(),version:c.number(),type:c.literal(r.BuiltInBaseEntity),name:y4(),description:c.string().nullable(),abstract:c.boolean(),static:c.boolean()})}function h4(){return rc()}function f4(){return rc().merge(c.object({}))}function m4(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([Jr(),Ps()]))})}function T4(){return h4().merge(m4())}function fb(){return c.enum([L.Dynamic,L.Fixed,L.None])}function Yt(){return c.union([c.object({type:c.literal(r.ActionDescriptor)}),c.record(c.string(),c.any())])}function on(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ActionDescriptor)})}function Os(){return c.object({id:c.string(),type:c.literal(r.ActionDescriptor),name:c.string(),description:c.string().nullable(),argumentsType:fb(),returnsType:fb()})}function E4(){return Os().merge(c.object({version:c.number()}))}function R4(){return Os().merge(c.object({}))}function b4(){return c.object({fixedArguments:c.array(ec()),fixedReturns:c.array(ec()),dynamicArgumentTypes:cn().nullable(),dynamicReturnTypes:cn().nullable(),parent:c.union([Et(),nr(),Ss(),Ds()]).nullable()})}function mb(){return E4().merge(b4())}function Wr(){return c.union([c.object({type:c.literal(r.Loop)}),c.record(c.string(),c.any())])}function zt(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Loop)})}function Tb(){return c.object({id:c.string(),type:c.literal(r.Loop)})}function g4(){return Tb().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function v4(){return Tb().merge(c.object({declaration:c.union([c.string(),At()])}))}function I4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),declaration:Yt(),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),error:ut(),body:At(),parent:c.union([un(),Et()]),breakStatements:c.array(Xr()),continueStatements:c.array(Hr())})}function P4(){return g4().merge(I4())}function Hr(){return c.union([c.object({type:c.literal(r.ContinueStatement)}),c.record(c.string(),c.any())])}function Yr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ContinueStatement)})}function ic(){return c.object({id:c.string(),type:c.literal(r.ContinueStatement)})}function D4(){return ic().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function A4(){return ic().merge(c.object({}))}function S4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:zt()})}function O4(){return D4().merge(S4())}function Kn(){return c.union([c.object({type:c.literal(r.ReturnStatement)}),c.record(c.string(),c.any())])}function zr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ReturnStatement)})}function ac(){return c.object({id:c.string(),type:c.literal(r.ReturnStatement)})}function C4(){return ac().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function B4(){return ac().merge(c.object({}))}function w4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:un()})}function _4(){return C4().merge(w4())}function Hi(){return c.union([c.object({type:c.literal(r.Search)}),c.record(c.string(),c.any())])}function Zr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Search)})}function sc(){return c.object({id:c.string(),type:c.literal(r.Search),name:c.string(),query:c.any(),description:c.string().nullable()})}function M4(){return sc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function N4(){return sc().merge(c.object({}))}function $4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),inputsDeclarations:c.array(tr()),inputs:c.array(Dt()),outputsDeclarations:c.array(Zt()),outputs:c.array(ut()),parent:c.union([un(),Et()]),error:ut().nullable()})}function V4(){return M4().merge($4())}function Zt(){return c.union([c.object({type:c.literal(r.ReturnDeclaration)}),c.record(c.string(),c.any())])}function Eb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ReturnDeclaration)})}function oc(){return c.object({id:c.string(),type:c.literal(r.ReturnDeclaration),name:c.string(),description:c.string().nullable(),isError:c.boolean()})}function L4(){return oc().merge(c.object({version:c.number(),index:c.number()}))}function G4(){return oc().merge(c.object({}))}function F4(){return c.object({dataType:cn().nullable(),readsValue:Xi().nullable(),parent:c.union([zr(),on(),on(),Zr(),ln(),Yr()])})}function U4(){return L4().merge(F4())}function Xr(){return c.union([c.object({type:c.literal(r.BreakStatement)}),c.record(c.string(),c.any())])}function ln(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.BreakStatement)})}function lc(){return c.object({id:c.string(),type:c.literal(r.BreakStatement)})}function x4(){return lc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function j4(){return lc().merge(c.object({}))}function k4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:zt()})}function q4(){return x4().merge(k4())}function ut(){return c.union([c.object({type:c.literal(r.OutputMap)}),c.record(c.string(),c.any())])}function cc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.OutputMap)})}function dc(){return c.object({id:c.string(),type:c.literal(r.OutputMap)})}function J4(){return dc().merge(c.object({version:c.number(),index:c.number()}))}function W4(){return dc().merge(c.object({}))}function H4(){return c.object({writesValues:c.array(dn()),declaration:c.union([Zt(),Qn()]),parent:c.union([ye(),zt(),ln()])})}function Y4(){return J4().merge(H4())}function Qr(){return c.union([c.object({type:c.literal(r.FunctionCall)}),c.record(c.string(),c.any())])}function Yi(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.FunctionCall)})}function uc(){return c.object({id:c.string(),type:c.literal(r.FunctionCall)})}function z4(){return uc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Z4(){return uc().merge(c.object({}))}function X4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:At(),inputs:c.array(Dt()),outputs:c.array(ut()),error:c.optional(ut()),parent:c.union([un(),Et()])})}function Q4(){return z4().merge(X4())}function K4(){return c.enum([Se.Equal,Se.NotEqual,Se.MoreThan,Se.MoreThanOrEqual,Se.LessThan,Se.LessThanOrEqual,Se.And,Se.Or,Ct.Empty,Ct.NotEmpty])}function zi(){return c.union([c.object({type:c.literal(r.Condition)}),c.record(c.string(),c.any())])}function Cs(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Condition)})}function pc(){return c.object({id:c.string(),type:c.literal(r.Condition)})}function eU(){return pc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function tU(){return pc().merge(c.object({}))}function nU(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),leftValue:Dt(),rightValue:Dt().nullable(),operator:K4(),parent:c.union([un(),Et()])})}function rU(){return eU().merge(nU())}function Zi(){return c.union([c.object({type:c.literal(r.InternalCall)}),c.record(c.string(),c.any())])}function yc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InternalCall)})}function hc(){return c.object({id:c.string(),type:c.literal(r.InternalCall),index:c.number()})}function iU(){return hc().merge(c.object({version:c.number(),index:c.number()}))}function aU(){return hc().merge(c.object({declaration:c.union([c.string(),At()])}))}function sU(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:At(),inputs:c.array(Dt()),outputs:c.array(ut()),parent:Cn(),error:c.optional(ut())})}function oU(){return iU().merge(sU())}function Dt(){return c.union([c.object({type:c.literal(r.InputMap)}),c.record(c.string(),c.any())])}function Bs(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InputMap)})}function fc(){return c.object({id:c.string(),type:c.literal(r.InputMap),name:c.string().nullable().optional(),description:c.string().nullable().optional()})}function lU(){return fc().merge(c.object({version:c.number(),index:c.number()}))}function cU(){return fc().merge(c.object({}))}function dU(){return c.object({defaultValue:mc().nullable(),declaration:c.union([tr(),Qn()]).nullable(),readsValue:Xi().nullable(),parent:c.union([ye(),Bs(),zt(),ln()]),dynamicArguments:c.array(Dt())})}function uU(){return lU().merge(dU())}function Kr(){return c.union([c.object({type:c.literal(r.Operation)}),c.record(c.string(),c.any())])}function ei(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Operation)})}function ws(){return c.object({id:c.string(),type:c.literal(r.Operation)})}function pU(){return ws().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function yU(){return ws().merge(c.object({}))}function hU(){return ws().merge(c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:Yt(),inputs:c.array(Dt()),outputs:c.array(ut()),error:c.array(ut()),dynamicArguments:c.array(Dt()),parent:c.union([un(),Et()])}))}function fU(){return pU().merge(hU())}function _s(){return c.union([c.string(),c.number(),c.boolean(),c.null(),c.date()])}function Rb(){return c.record(c.string(),_s())}function mU(){return c.array(c.union([_s(),Rb()]))}function bb(){return c.union([_s(),Rb(),mU()])}function gb(){return c.union([_s(),bb()])}function vb(){return c.enum([v.String,v.Number,v.Boolean,v.Null,v.Date,v.JSON,v.Enum,v.File,v.UUID,v.EntityTemplate,v.ActionDescriptor])}function TU(){return c.union([nr(),ei(),Qi()])}function EU(){return c.object({id:c.string(),name:vb(),type:c.literal(r.PrimitiveValue),value:gb(),autogeneration:Kl.nullable()})}function RU(){return EU().merge(c.object({}))}function Ft(){return c.object({id:c.string(),version:c.number(),name:vb(),type:c.literal(r.PrimitiveValue),value:gb(),valueAsType:TU().nullable(),autogeneration:Kl.nullable(),parent:c.union([Tc(),Bs()])})}function bU(){return Ft().extend({name:c.literal(v.String),value:c.string(),autogeneration:Zl.nullable()})}function gU(){return Ft().extend({name:c.literal(v.Number),value:c.number(),autogeneration:Xl.nullable()})}function vU(){return Ft().extend({name:c.literal(v.Boolean),value:c.boolean(),autogeneration:zl.nullable()})}function IU(){return Ft().extend({name:c.literal(v.Null),value:c.null(),autogeneration:c.null()})}function PU(){return Ft().extend({name:c.literal(v.Date),value:c.date(),autogeneration:Ql.nullable()})}function DU(){return Ft().extend({name:c.literal(v.JSON),value:bb(),autogeneration:c.null()})}function AU(){return Ft().extend({name:c.literal(v.Enum),value:c.string(),autogeneration:c.null()})}function SU(){return Ft().extend({name:c.literal(v.File),value:c.string(),autogeneration:c.null()})}function OU(){return Ft().extend({name:c.literal(v.UUID),value:c.string(),autogeneration:Yl.nullable()})}function CU(){return Ft().extend({name:c.literal(v.EntityTemplate),value:nr(),autogeneration:c.null()})}function BU(){return Ft().extend({name:c.literal(v.ActionDescriptor),value:Qi(),autogeneration:c.null()})}function mc(){return c.union([bU(),gU(),vU(),IU(),PU(),DU(),AU(),SU(),OU(),CU(),BU()])}function cn(){return c.union([c.object({type:c.literal(r.DataType)}),c.record(c.string(),c.any())])}function Tc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.DataType)})}function Ec(){return c.object({id:c.string(),type:c.literal(r.DataType),isNullable:c.boolean(),isList:c.boolean(),constant:c.boolean(),asType:c.boolean(),options:c.array(c.string()).optional()})}function wU(){return Ec().merge(c.object({version:c.number()}))}function _U(){return Ec().merge(c.object({}))}function MU(){return c.object({defaultValue:mc().nullable(),entity:c.union([ti(),Jr(),Ps(),Yt()]).nullable(),parent:c.union([hb(),Db(),on(),yb()])})}function NU(){return wU().merge(MU())}function Rc(){return c.union([c.object({type:c.literal(r.VariableDeclaration)}),c.record(c.string(),c.any())])}function $U(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.VariableDeclaration)})}function bc(){return c.object({id:c.string(),type:c.literal(r.VariableDeclaration),name:c.string(),description:c.string().nullable()})}function VU(){return bc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function LU(){return bc().merge(c.object({}))}function GU(){return c.object({dataType:cn().nullable(),readsValue:Xi().nullable(),writesValues:c.array(dn()),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),internalCalls:c.array(Zi()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),parent:c.union([un(),Et()])})}function FU(){return VU().merge(GU())}function Ib(){return c.union([c.object({type:c.literal(r.VariableInstance)}),c.record(c.string(),c.any())])}function UU(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.VariableInstance)})}function gc(){return c.object({id:c.string(),type:c.literal(r.VariableInstance)})}function xU(){return gc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function jU(){return gc().merge(c.object({}))}function kU(){return c.object({declaration:Rc(),dataType:cn().nullable(),readsValue:Xi().nullable(),writesValues:c.array(dn()),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),internalCalls:c.array(Zi()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),parent:c.union([un(),Et()])})}function qU(){return xU().merge(kU())}function vc(){return c.union([c.object({type:c.literal(r.InstalledProject)}),c.record(c.string(),c.any())])}function Ms(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InstalledProject)})}function JU(){return c.object({id:c.string(),type:c.literal(r.InstalledProject)})}function WU(){return c.object({version:c.number(),x:c.number(),y:c.number()})}function HU(){return c.object({})}function YU(){return c.object({implements:Et(),description:c.string().nullable(),functions:c.array(At()),events:c.array(Ic()),parent:Et()})}function zU(){return WU().merge(YU())}function Ic(){return c.union([c.object({type:c.literal(r.GlobalEvent)}),c.record(c.string(),c.any())])}function ZU(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.GlobalEvent)})}function Ns(){return c.object({id:c.string(),type:c.literal(r.GlobalEvent),name:c.string(),collapsed:c.boolean()})}function XU(){return Ns().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function QU(){return Ns().merge(c.object({}))}function KU(){return Ns().merge(c.object({returnStatements:c.array(Kn()),implements:c.array(mb()),inputs:c.array(tr()),calls:c.array(ke()),parent:c.union([Et(),Ms()])}))}function ex(){return XU().merge(KU())}function er(){return c.union([Rc(),Ib()])}function Cn(){return c.union([$U(),UU()])}function dn(){return c.union([er(),Dt(),Zt()])}function Pb(){return c.union([Cn(),Bs(),Eb()])}function Xi(){return c.union([er(),tr(),ut(),Kr(),Zi(),Qr()])}function tx(){return c.union([Cn(),Pc(),cc(),ei(),yc(),Yi()])}function nx(){return c.union([tr(),ut(),dn()])}function Db(){return c.union([Pc(),cc(),Pb()])}function $s(){return Ic()}function Vs(){return ZU()}function Ls(){return c.union([Kr(),Qr(),zi(),Hi(),er(),Zi(),Wr()])}function ye(){return c.union([ei(),Yi(),Cs(),Zr(),Cn(),yc(),zt()])}function Gs(){return c.union([Kr(),Qr(),zi(),Hi(),er(),Wr()])}function Fs(){return c.union([ei(),Yi(),Cs(),Zr(),Cn(),zt()])}function Ab(){return c.union([Ls(),Kn(),Xr(),Hr()])}function ke(){return c.union([ye(),zr(),ln(),Yr()])}function Sb(){return c.union([Gs(),Kn(),Xr(),Hr()])}function Ob(){return c.union([Fs(),zr(),ln(),Yr()])}function Bn(){return c.union([At(),$s()])}function Ue(){return c.union([Qi(),Vs()])}function rx(){return c.union([Ls(),Bn()])}function ix(){return c.union([ye(),Ue()])}function ax(){return c.union([Gs(),Bn()])}function sx(){return c.union([Fs(),Ue()])}function ox(){return c.union([Ab(),Bn()])}function lx(){return c.union([ke(),Ue()])}function cx(){return c.union([Sb(),Bn()])}function dx(){return c.union([Ob(),Ue()])}function ux(){return c.union([Bn(),Wr()])}function un(){return c.union([Ue(),zt()])}function px(){return c.union([Ls(),Bn()])}function yx(){return c.union([ye(),Ue()])}function hx(){return c.union([Gs(),Bn()])}function fx(){return c.union([Fs(),Ue()])}function mx(){return c.union([Kn(),Xr(),Hr()])}function Tx(){return c.union([zr(),ln(),Yr()])}function Ex(){return c.union([Jr(),Bx(),vc(),ti(),At(),$s(),er(),Dt(),ut(),zi(),Kr(),Qr(),Zt(),tr(),Ps(),cn(),Qn(),Yt(),Kn(),Hr(),Xr(),Wr(),Hi(),Yt(),Yt(),ec(),Zi()])}function Rx(){return c.union([Ss(),Et(),Ms(),nr(),Qi(),Vs(),Cn(),Bs(),cc(),Cs(),ei(),Yi(),Eb(),Pc(),Ds(),Tc(),hb(),on(),zr(),Yr(),ln(),zt(),Zr(),on(),on(),yb(),yc()])}function bx(){return c.union([vc(),ti(),At(),$s(),er(),zi(),Kr(),Qr(),Kn(),Hr(),Xr(),Wr(),Hi()])}function gx(){return c.union([Ms(),nr(),Qi(),Vs(),Cn(),Cs(),ei(),Yi(),zr(),Yr(),ln(),zt(),Zr()])}function tr(){return c.union([c.object({type:c.literal(r.ArgumentDeclaration)}),c.record(c.string(),c.any())])}function Pc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ArgumentDeclaration)})}function Dc(){return c.object({id:c.string(),type:c.literal(r.ArgumentDeclaration)})}function vx(){return Dc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Ix(){return Dc().merge(c.object({}))}function Px(){return c.object({dataType:cn().nullable(),writesValues:c.array(dn()),parent:c.union([Ue(),on(),on(),Zr(),ln()])})}function Dx(){return vx().merge(Px())}function At(){return c.union([c.object({type:c.literal(r.FunctionDeclaration)}),c.record(c.string(),c.any())])}function Qi(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.FunctionDeclaration)})}function Ac(){return c.object({id:c.string(),type:c.literal(r.FunctionDeclaration),name:c.string(),description:c.string().nullable()})}function Ax(){return Ac().merge(c.object({version:c.number(),x:c.number(),y:c.number(),index:c.number().nullable()}))}function Sx(){return Ac()}function Ox(){return c.object({inputs:c.array(tr()),implements:Yt().nullable(),returnStatements:c.array(Kn()),parent:c.union([Et(),Ms(),nr(),zt(),Ss(),Ds()])})}function Cx(){return Ax().merge(Ox())}function Bx(){return c.union([c.object({type:c.literal(r.Project)}),c.record(c.string(),c.any())])}function Et(){return c.object({entityType:c.literal(r.Project),entityId:c.string(),id:c.string(),type:c.literal(r.GenericReference)})}function Sc(){return c.object({id:c.string(),type:c.literal(r.Project),name:c.string(),description:c.string().nullable()})}function wx(){return Sc().merge(c.object({version:c.number()}))}function _x(){return Sc()}function Mx(){return c.object({entities:c.array(ti()),functions:c.array(At()),events:c.array(Ic()),projects:c.array(vc()),variableDeclarations:c.array(Rc()),variableInstances:c.array(Ib()),conditions:c.array(zi()),operations:c.array(Kr()),functionCalls:c.array(Qr()),loops:c.array(Wr()),searches:c.array(Hi())})}function Nx(){return wx().merge(Mx())}function ti(){return c.union([c.object({type:c.literal(r.CustomEntity)}),c.record(c.string(),c.any())])}function nr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.CustomEntity)})}function Oc(){return c.object({id:c.string(),type:c.literal(r.CustomEntity),name:c.string(),description:c.string().nullable(),static:c.boolean(),abstract:c.boolean()})}function $x(){return Oc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Vx(){return Oc().merge(c.object({}))}function Lx(){return c.union([Et(),Tc()])}function Gx(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([ti(),Jr()])),implements:c.array(c.union([ti(),Jr()])),parent:Lx()})}function Fx(){return $x().merge(Gx())}function Ux(n){const e=Fx(),t=n.toJSON();e.safeParse(t).success;const a=n.implements.flatMap(T=>kx(n,T)),s=n.extends.flatMap(T=>qx(n,T)),o=Wx(n),d=Jx(n);n.methods.flatMap(T=>T.validate());const p=[...a,...s,...o,...d];return X(n.errors,p)}function xx(n,e){const t=e.properties.filter(s=>s.abstract),i=[];let a=[...n.properties];return t.forEach(s=>{const o=a.find(d=>{var p;return((p=d.implements)==null?void 0:p.id)===s.id});o?a=a.filter(d=>d.id!==o.id):i.push(s)}),i}function jx(n,e){const t=e.abstractMethods,i=[];let a=[...n.methods];return t.forEach(s=>{const o=a.find(d=>{var p;return((p=d.implements)==null?void 0:p.id)===s.id});o?a=a.filter(d=>d.id!==o.id):i.push(s)}),i}function kx(n,e){const t=[];if(!e.abstract){const T=j({id:n.id+"--"+S.ImplementingNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is implementing a non-abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:S.ImplementingNonAbstractEntity,entity:n});return t.push(T.error),t}const i=e.properties.filter(T=>T.abstract),a=[];let s=[...n.properties];i.forEach(T=>{const m=s.find(b=>{var I;return((I=b.implements)==null?void 0:I.id)===T.id});m?s=s.filter(b=>b.id!==m.id):a.push(T)}),a.length&&a.forEach(T=>{const m=j({id:n.id+"--"+S.MissingPropertyImplementation+"--"+T.id,message:`Property "${T.name}" with id "${T.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:f.Error,code:S.MissingPropertyImplementation,entity:n});t.push(m.error)});const o=[];let d=[...n.methods];e.abstractMethods.forEach(T=>{const m=d.find(b=>{var I;return((I=b.implements)==null?void 0:I.id)===T.id});m?d=d.filter(b=>b.id!==m.id):o.push(T)}),o.length&&o.forEach(T=>{const m=j({id:n.id+"--"+S.MissingMethodImplementation+"--"+T.id,message:`Method "${T.name}" with id "${T.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:f.Error,code:S.MissingMethodImplementation,entity:n});t.push(m.error)});const p=[];e.properties.forEach(T=>{const m=s.find(b=>b.name===T.name);m&&p.push([m,T])}),p.length&&p.forEach(([T])=>{const m=j({id:n.id+"--"+g.PropertyOverwrite+"--"+T.id,message:`Property "${T.name}" with id "${T.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:g.PropertyOverwrite,entity:n});t.push(m.error)});const h=[];return e.methods.forEach(T=>{const m=d.find(b=>b.name===T.name);m&&h.push([m,T])}),h.length&&h.forEach(([T])=>{const m=j({id:n.id+"--"+g.MethodOverwrite+"--"+T.id,message:`Method "${T.name}" with id "${T.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:g.MethodOverwrite,entity:n});t.push(m.error)}),t}function qx(n,e){const t=[],i=[];if(e.abstract){const s=j({id:n.id+"--"+S.ExtendingAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is extending an abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:S.ExtendingAbstractEntity,entity:n});return t.push(s.error),t}n.properties.forEach(s=>{var d;const o=e.properties.find(p=>p.name===s.name);((d=s.implements)==null?void 0:d.id)!==(o==null?void 0:o.id)&&o&&i.push(s)}),i.length&&i.forEach(s=>{const o=j({id:n.id+"--"+g.PropertyOverwrite,message:`Property "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:g.PropertyOverwrite,entity:n});t.push(o.error)});const a=[];return n.methods.forEach(s=>{var d;const o=e.methods.find(p=>p.name===s.name);((d=s.implements)==null?void 0:d.id)!==(o==null?void 0:o.id)&&o&&a.push(s)}),a.length&&a.forEach(s=>{const o=j({id:n.id+"--"+g.MethodOverwrite,message:`Method "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:g.MethodOverwrite,entity:n});t.push(o.error)}),t}function Jx(n){const e=[];if(!n.properties.length){const t=j({id:n.id+"--"+S.NoProperties,message:"No properties implemented",issue:null,severity:f.Warning,code:S.NoProperties,entity:n});e.push(t.error)}return n.properties.forEach(t=>{t.validate()}),e}function Wx(n){const e=[];if(n.abstract){if(n.methods.length){const t=j({id:n.id+"--"+S.AbstractEntityWithNonAbstractMethods,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:f.Error,code:S.AbstractEntityWithNonAbstractMethods,entity:n});e.push(t.error)}if(n.properties.some(t=>!t.abstract)){const t=j({id:n.id+"--"+S.AbstractEntityWithNonAbstractProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:f.Error,code:S.AbstractEntityWithNonAbstractProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.abstract){const a=j({id:n.id+"--"+S.StaticEntityWithNonStaticProperties+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:f.Error,code:S.StaticEntityWithNonStaticProperties,entity:n});e.push(a.error)}})}}else{if(n.abstractMethods.length){const t=j({id:n.id+"--"+S.AbstractPropertyInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract methods`,issue:null,severity:f.Error,code:S.AbstractPropertyInNonAbstractEntity,entity:n});e.push(t.error)}if(n.properties.some(t=>t.abstract)){const t=j({id:n.id+"--"+S.AbstractMethodInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract properties`,issue:null,severity:f.Error,code:S.AbstractMethodInNonAbstractEntity,entity:n});e.push(t.error),n.properties.forEach(i=>{if(i.abstract){const a=j({id:n.id+"--"+S.AbstractMethodInNonAbstractEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:f.Error,code:S.AbstractMethodInNonAbstractEntity,entity:n});e.push(a.error)}})}}if(n.static&&n.properties.some(t=>!t.static)){const t=j({id:n.id+"--"+S.StaticEntityWithNonStaticProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as static but has non-static properties`,issue:null,severity:f.Error,code:S.StaticEntityWithNonStaticProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.static){const a=j({id:n.id+"--"+S.NonStaticPropertyInStaticEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as static but the entity is marked as static`,issue:null,severity:f.Error,code:S.NonStaticPropertyInStaticEntity,entity:n});e.push(a.error)}})}return e}function Hx(n){return n instanceof Error&&n.name==="ZodError"&&"issues"in n&&Array.isArray(n.issues)}var Yx=class extends Error{constructor(e,t){super(e,t);l(this,"name");l(this,"details");this.name="ZodValidationError",this.details=zx(t)}toString(){return this.message}};function zx(n){if(n){const e=n.cause;if(Hx(e))return e.issues}return[]}var Zx="; ",Cb="Validation error",Xx=": ",Qx=", or ";function Kx(n,e,t){return e!==null?n.length>0?[e,n].join(t):e:n.length>0?n:Cb}var e8=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function t8(n){return n.length===1?n[0].toString():n.reduce((e,t)=>{if(typeof t=="number")return e+"["+t.toString()+"]";if(t.includes('"'))return e+'["'+n8(t)+'"]';if(!e8.test(t))return e+'["'+t+'"]';const i=e.length===0?"":".";return e+i+t},"")}function n8(n){return n.replace(/"/g,'\\"')}function r8(n){return n.length!==0}function Us(n){const{issue:e,issueSeparator:t,unionSeparator:i,includePath:a}=n;if(e.code==="invalid_union")return e.unionErrors.reduce((s,o)=>{const d=o.issues.map(p=>Us({issue:p,issueSeparator:t,unionSeparator:i,includePath:a})).join(t);return s.includes(d)||s.push(d),s},[]).join(i);if(e.code==="invalid_arguments")return[e.message,...e.argumentsError.issues.map(s=>Us({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(e.code==="invalid_return_type")return[e.message,...e.returnTypeError.issues.map(s=>Us({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(a&&r8(e.path)){if(e.path.length===1){const s=e.path[0];if(typeof s=="number")return`${e.message} at index ${s}`}return`${e.message} at "${t8(e.path)}"`}return e.message}function i8(n,e={}){const{issueSeparator:t=Zx,unionSeparator:i=Qx,prefixSeparator:a=Xx,prefix:s=Cb,includePath:o=!0}=e,d=Us({issue:n,issueSeparator:t,unionSeparator:i,includePath:o}),p=Kx(d,s,a);return new Yx(p,{cause:new ft([n])})}var Bb="1.13.7",wb=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},xs=Array.prototype,Cc=Object.prototype,_b=typeof Symbol<"u"?Symbol.prototype:null,a8=xs.push,Ki=xs.slice,ea=Cc.toString,s8=Cc.hasOwnProperty,Mb=typeof ArrayBuffer<"u",o8=typeof DataView<"u",l8=Array.isArray,Nb=Object.keys,$b=Object.create,Vb=Mb&&ArrayBuffer.isView,c8=isNaN,d8=isFinite,Lb=!{toString:null}.propertyIsEnumerable("toString"),Gb=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],u8=Math.pow(2,53)-1;function Rt(n,e){return e=e==null?n.length-1:+e,function(){for(var t=Math.max(arguments.length-e,0),i=Array(t),a=0;a<t;a++)i[a]=arguments[a+e];switch(e){case 0:return n.call(this,i);case 1:return n.call(this,arguments[0],i);case 2:return n.call(this,arguments[0],arguments[1],i)}var s=Array(e+1);for(a=0;a<e;a++)s[a]=arguments[a];return s[e]=i,n.apply(this,s)}}function wn(n){var e=typeof n;return e==="function"||e==="object"&&!!n}function p8(n){return n===null}function Fb(n){return n===void 0}function Ub(n){return n===!0||n===!1||ea.call(n)==="[object Boolean]"}function y8(n){return!!(n&&n.nodeType===1)}function rt(n){var e="[object "+n+"]";return function(t){return ea.call(t)===e}}const Bc=rt("String"),xb=rt("Number"),h8=rt("Date"),f8=rt("RegExp"),m8=rt("Error"),jb=rt("Symbol"),kb=rt("ArrayBuffer");var qb=rt("Function"),T8=wb.document&&wb.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof T8!="function"&&(qb=function(n){return typeof n=="function"||!1});const pt=qb,Jb=rt("Object");var Wb=o8&&(!/\[native code\]/.test(String(DataView))||Jb(new DataView(new ArrayBuffer(8)))),wc=typeof Map<"u"&&Jb(new Map),E8=rt("DataView");function R8(n){return n!=null&&pt(n.getInt8)&&kb(n.buffer)}const js=Wb?R8:E8,rr=l8||rt("Array");function _n(n,e){return n!=null&&s8.call(n,e)}var _c=rt("Arguments");(function(){_c(arguments)||(_c=function(n){return _n(n,"callee")})})();const Mc=_c;function b8(n){return!jb(n)&&d8(n)&&!isNaN(parseFloat(n))}function Hb(n){return xb(n)&&c8(n)}function Yb(n){return function(){return n}}function zb(n){return function(e){var t=n(e);return typeof t=="number"&&t>=0&&t<=u8}}function Zb(n){return function(e){return e==null?void 0:e[n]}}const ks=Zb("byteLength"),g8=zb(ks);var v8=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function I8(n){return Vb?Vb(n)&&!js(n):g8(n)&&v8.test(ea.call(n))}const Xb=Mb?I8:Yb(!1),bt=Zb("length");function P8(n){for(var e={},t=n.length,i=0;i<t;++i)e[n[i]]=!0;return{contains:function(a){return e[a]===!0},push:function(a){return e[a]=!0,n.push(a)}}}function Qb(n,e){e=P8(e);var t=Gb.length,i=n.constructor,a=pt(i)&&i.prototype||Cc,s="constructor";for(_n(n,s)&&!e.contains(s)&&e.push(s);t--;)s=Gb[t],s in n&&n[s]!==a[s]&&!e.contains(s)&&e.push(s)}function We(n){if(!wn(n))return[];if(Nb)return Nb(n);var e=[];for(var t in n)_n(n,t)&&e.push(t);return Lb&&Qb(n,e),e}function ta(n){if(n==null)return!0;var e=bt(n);return typeof e=="number"&&(rr(n)||Bc(n)||Mc(n))?e===0:bt(We(n))===0}function Kb(n,e){var t=We(e),i=t.length;if(n==null)return!i;for(var a=Object(n),s=0;s<i;s++){var o=t[s];if(e[o]!==a[o]||!(o in a))return!1}return!0}function Q(n){if(n instanceof Q)return n;if(!(this instanceof Q))return new Q(n);this._wrapped=n}Q.VERSION=Bb,Q.prototype.value=function(){return this._wrapped},Q.prototype.valueOf=Q.prototype.toJSON=Q.prototype.value,Q.prototype.toString=function(){return String(this._wrapped)};function eg(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,ks(n))}var tg="[object DataView]";function Nc(n,e,t,i){if(n===e)return n!==0||1/n===1/e;if(n==null||e==null)return!1;if(n!==n)return e!==e;var a=typeof n;return a!=="function"&&a!=="object"&&typeof e!="object"?!1:ng(n,e,t,i)}function ng(n,e,t,i){n instanceof Q&&(n=n._wrapped),e instanceof Q&&(e=e._wrapped);var a=ea.call(n);if(a!==ea.call(e))return!1;if(Wb&&a=="[object Object]"&&js(n)){if(!js(e))return!1;a=tg}switch(a){case"[object RegExp]":case"[object String]":return""+n==""+e;case"[object Number]":return+n!=+n?+e!=+e:+n==0?1/+n===1/e:+n==+e;case"[object Date]":case"[object Boolean]":return+n==+e;case"[object Symbol]":return _b.valueOf.call(n)===_b.valueOf.call(e);case"[object ArrayBuffer]":case tg:return ng(eg(n),eg(e),t,i)}var s=a==="[object Array]";if(!s&&Xb(n)){var o=ks(n);if(o!==ks(e))return!1;if(n.buffer===e.buffer&&n.byteOffset===e.byteOffset)return!0;s=!0}if(!s){if(typeof n!="object"||typeof e!="object")return!1;var d=n.constructor,p=e.constructor;if(d!==p&&!(pt(d)&&d instanceof d&&pt(p)&&p instanceof p)&&"constructor"in n&&"constructor"in e)return!1}t=t||[],i=i||[];for(var h=t.length;h--;)if(t[h]===n)return i[h]===e;if(t.push(n),i.push(e),s){if(h=n.length,h!==e.length)return!1;for(;h--;)if(!Nc(n[h],e[h],t,i))return!1}else{var T=We(n),m;if(h=T.length,We(e).length!==h)return!1;for(;h--;)if(m=T[h],!(_n(e,m)&&Nc(n[m],e[m],t,i)))return!1}return t.pop(),i.pop(),!0}function D8(n,e){return Nc(n,e)}function na(n){if(!wn(n))return[];var e=[];for(var t in n)e.push(t);return Lb&&Qb(n,e),e}function $c(n){var e=bt(n);return function(t){if(t==null)return!1;var i=na(t);if(bt(i))return!1;for(var a=0;a<e;a++)if(!pt(t[n[a]]))return!1;return n!==ag||!pt(t[Vc])}}var Vc="forEach",rg="has",Lc=["clear","delete"],ig=["get",rg,"set"],A8=Lc.concat(Vc,ig),ag=Lc.concat(ig),S8=["add"].concat(Lc,Vc,rg);const O8=wc?$c(A8):rt("Map"),C8=wc?$c(ag):rt("WeakMap"),B8=wc?$c(S8):rt("Set"),w8=rt("WeakSet");function ni(n){for(var e=We(n),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=n[e[a]];return i}function _8(n){for(var e=We(n),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=[e[a],n[e[a]]];return i}function sg(n){for(var e={},t=We(n),i=0,a=t.length;i<a;i++)e[n[t[i]]]=t[i];return e}function Gc(n){var e=[];for(var t in n)pt(n[t])&&e.push(t);return e.sort()}function Fc(n,e){return function(t){var i=arguments.length;if(e&&(t=Object(t)),i<2||t==null)return t;for(var a=1;a<i;a++)for(var s=arguments[a],o=n(s),d=o.length,p=0;p<d;p++){var h=o[p];(!e||t[h]===void 0)&&(t[h]=s[h])}return t}}const og=Fc(na),qs=Fc(We),lg=Fc(na,!0);function M8(){return function(){}}function cg(n){if(!wn(n))return{};if($b)return $b(n);var e=M8();e.prototype=n;var t=new e;return e.prototype=null,t}function N8(n,e){var t=cg(n);return e&&qs(t,e),t}function $8(n){return wn(n)?rr(n)?n.slice():og({},n):n}function V8(n,e){return e(n),n}function dg(n){return rr(n)?n:[n]}Q.toPath=dg;function ra(n){return Q.toPath(n)}function Uc(n,e){for(var t=e.length,i=0;i<t;i++){if(n==null)return;n=n[e[i]]}return t?n:void 0}function ug(n,e,t){var i=Uc(n,ra(e));return Fb(i)?t:i}function L8(n,e){e=ra(e);for(var t=e.length,i=0;i<t;i++){var a=e[i];if(!_n(n,a))return!1;n=n[a]}return!!t}function xc(n){return n}function ia(n){return n=qs({},n),function(e){return Kb(e,n)}}function jc(n){return n=ra(n),function(e){return Uc(e,n)}}function aa(n,e,t){if(e===void 0)return n;switch(t??3){case 1:return function(i){return n.call(e,i)};case 3:return function(i,a,s){return n.call(e,i,a,s)};case 4:return function(i,a,s,o){return n.call(e,i,a,s,o)}}return function(){return n.apply(e,arguments)}}function pg(n,e,t){return n==null?xc:pt(n)?aa(n,e,t):wn(n)&&!rr(n)?ia(n):jc(n)}function kc(n,e){return pg(n,e,1/0)}Q.iteratee=kc;function gt(n,e,t){return Q.iteratee!==kc?Q.iteratee(n,e):pg(n,e,t)}function G8(n,e,t){e=gt(e,t);for(var i=We(n),a=i.length,s={},o=0;o<a;o++){var d=i[o];s[d]=e(n[d],d,n)}return s}function yg(){}function F8(n){return n==null?yg:function(e){return ug(n,e)}}function U8(n,e,t){var i=Array(Math.max(0,n));e=aa(e,t,1);for(var a=0;a<n;a++)i[a]=e(a);return i}function qc(n,e){return e==null&&(e=n,n=0),n+Math.floor(Math.random()*(e-n+1))}const sa=Date.now||function(){return new Date().getTime()};function hg(n){var e=function(s){return n[s]},t="(?:"+We(n).join("|")+")",i=RegExp(t),a=RegExp(t,"g");return function(s){return s=s==null?"":""+s,i.test(s)?s.replace(a,e):s}}const fg={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},x8=hg(fg),j8=sg(fg),k8=hg(j8),q8=Q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Jc=/(.)^/,J8={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W8=/\\|'|\r|\n|\u2028|\u2029/g;function H8(n){return"\\"+J8[n]}var Y8=/^\s*(\w|\$)+\s*$/;function z8(n,e,t){!e&&t&&(e=t),e=lg({},e,Q.templateSettings);var i=RegExp([(e.escape||Jc).source,(e.interpolate||Jc).source,(e.evaluate||Jc).source].join("|")+"|$","g"),a=0,s="__p+='";n.replace(i,function(h,T,m,b,I){return s+=n.slice(a,I).replace(W8,H8),a=I+h.length,T?s+=`'+
|
|
1
|
+
(function(u,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(u=typeof globalThis<"u"?globalThis:u||self,r(u["@elyx-code/project-logic-tree"]={}))})(this,function(u){"use strict";var b3=Object.defineProperty;var g3=(u,r,_)=>r in u?b3(u,r,{enumerable:!0,configurable:!0,writable:!0,value:_}):u[r]=_;var l=(u,r,_)=>(g3(u,typeof r!="symbol"?r+"":r,_),_);var r=(n=>(n.CustomEntity="custom-entity",n.BuiltInBaseEntity="built-in-base-entity",n.Project="project",n.InstalledProject="installed-project",n.GlobalEvent="global-event",n.DataType="data-type",n.FunctionCall="function-call",n.FunctionDeclaration="function-declaration",n.ActionDescriptor="action-descriptor",n.ValueDescriptor="value-descriptor",n.ArgumentDeclaration="argument-declaration",n.InputMap="input-map",n.ReturnStatement="return-statement",n.BreakStatement="break-statement",n.ContinueStatement="continue-statement",n.ReturnDeclaration="return-declaration",n.OutputMap="output-map",n.PrimitiveEntity="primitive-entity",n.PrimitiveValue="primitive-value",n.Property="property",n.Operation="operation",n.Condition="condition",n.VariableDeclaration="variable-declaration",n.VariableInstance="variable-instance",n.Search="search",n.Loop="loop",n.InternalCall="internal-call",n.GenericReference="generic-reference",n))(r||{}),_=(n=>(n.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",n.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",n.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",n.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",n.EXECUTION="BUILT_IN_EXECUTION_ENTITY",n.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",n))(_||{}),xe=(n=>(n.CurrentDateAndTime="current-date-and-time",n.Unique="unique",n.Random="random",n))(xe||{}),It=(n=>(n.DeletePersistedEntity="base-delete-persisted-entity",n.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",n.AbortExecution="base-abort-execution",n))(It||{}),L=(n=>(n.Fixed="fixed",n.None="none",n.Dynamic="dynamic",n))(L||{}),C=(n=>(n.FixedArguments="fixed-arguments",n.FixedReturns="fixed-returns",n.ReturnedError="returned-error",n.OngoingProcessExecution="ongoing-process-execution",n))(C||{}),v=(n=>(n.EntityTemplate="entity-template",n.ActionDescriptor="action-descriptor",n.String="string",n.Number="number",n.Boolean="boolean",n.Null="null",n.Enum="enum",n.JSON="json",n.Date="date",n.UUID="uuid",n.File="file",n))(v||{}),at=(n=>(n.Addition="addition",n.Substraction="substraction",n.Multiplication="multiplication",n.Division="division",n.Remainder="remainder",n.Exponentiation="exponentiation",n))(at||{}),ve=(n=>(n.Join="string-join",n.Split="stringSsplit",n.DeleteLast="string-delete-last",n.DeleteFirst="string-delete-first",n.DeleteIndex="string-delete-index",n.AddIndex="string-add-index",n.ReplaceFirst="string-replace-first",n.ReplaceLast="string-replace-last",n.ReplaceIndex="string-replace-index",n.ReplaceSingleMatch="string-replace-single-match",n.ReplaceAllMatches="string-replace-all-matches",n.GetIndex="string-get-index",n.GetFirst="string-get-first",n.GetLast="string-get-last",n.Append="string-append",n.Prepend="string-prepend",n))(ve||{}),k=(n=>(n.Join="list-join",n.Split="list-split",n.DeleteLast="list-delete-last",n.DeleteFirst="list-delete-first",n.DeleteIndex="list-delete-index",n.AddIndex="list-add-index",n.ReplaceFirst="list-replace-first",n.ReplaceLast="list-replace-last",n.ReplaceIndex="list-replace-index",n.ReplaceSingleMatch="list-replace-single-match",n.ReplaceAllMatches="list-replace-all-matches",n.GetIndex="list-get-index",n.GetFirst="list-get-first",n.GetLast="list-get-last",n.Append="list-append",n.Prepend="list-prepend",n))(k||{}),Pe=(n=>(n.Parallel="parallel",n.Sequential="sequential",n.Wait="wait",n))(Pe||{}),Ze=(n=>(n.CreateNewInstance="create-new-instance",n.Validate="validate",n))(Ze||{}),Ye=(n=>(n.HttpRequest="base-http-request",n))(Ye||{}),Se=(n=>(n.Equal="equal",n.NotEqual="not-equal",n.And="and",n.Or="or",n.LessThan="less-than",n.MoreThan="more-than",n.LessThanOrEqual="less-than-or-equal",n.MoreThanOrEqual="more-than-or-equal",n))(Se||{}),Bt=(n=>(n.Empty="empty",n.NotEmpty="not-empty",n))(Bt||{}),je=(n=>(n.ManualFlow="manual-flow-loop",n.Counted="counted-loop",n.List="list-loop",n.ObjectKeys="object-keys-loop",n.ObjectValues="object-values-loop",n.String="string-loop",n))(je||{}),qe=(n=>(n.OrDataTypeGroup="or-data-type-group",n.AndDataTypeGroup="and-data-type-group",n.DynamicArgumentTypes="dynamic-argument-types",n.DynamicReturnTypes="dynamic-return-types",n))(qe||{}),Kt=(n=>(n.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",n))(Kt||{}),Nd=(n=>(n.Error="error",n.Task="task",n))(Nd||{});const Gn=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration],zv=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration],Ce=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap],Zv=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap],$d=[...Gn,...Ce],Fe=[r.VariableDeclaration,r.VariableInstance],Dr=[r.GlobalEvent],_e=[r.Operation,r.FunctionCall,r.Condition,r.Search,r.VariableDeclaration,r.VariableInstance,r.InternalCall,r.Loop],Eo=[r.Operation,r.FunctionCall,r.Condition,r.Search,r.VariableDeclaration,r.VariableInstance,r.Loop],$e=[r.FunctionDeclaration,...Dr],Tn=[..._e,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],Ro=[...Eo,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],en=[..._e,...$e],Vd=[...Eo,...$e],Xv=[...Tn,...$e],Qv=[...Ro,...$e],st=[...$e,r.Loop],Oe=[r.ReturnStatement,r.BreakStatement,r.ContinueStatement],Kv=[r.CustomEntity,r.BuiltInBaseEntity,r.Project,r.InstalledProject,r.GlobalEvent,r.DataType,r.FunctionCall,r.FunctionDeclaration,r.ActionDescriptor,r.ValueDescriptor,r.ArgumentDeclaration,r.InputMap,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.ReturnDeclaration,r.OutputMap,r.PrimitiveEntity,r.PrimitiveValue,r.Property,r.Operation,r.Condition,r.VariableDeclaration,r.VariableInstance,r.Search,r.Loop,r.InternalCall],bo=[r.CustomEntity,r.GlobalEvent,r.FunctionDeclaration,r.FunctionCall,r.VariableDeclaration,r.VariableInstance,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.InstalledProject,r.Loop,r.Search],Ld=[r.CustomEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor],Ar=[r.BuiltInBaseEntity,r.PrimitiveEntity],eI=[r.CustomEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.GlobalEvent,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor,r.InputMap,r.OutputMap,r.FunctionCall,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.VariableInstance,r.PrimitiveValue,r.InternalCall],F={type:r.PrimitiveEntity,id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",description:"A string of characters.",version:1,name:v.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Fn={type:r.PrimitiveEntity,id:"f596545d-1565-4faa-9969-d95fa5edfea4",description:"A 'true' or 'false' value.",version:1,name:v.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Be={type:r.PrimitiveEntity,id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",description:"A number value.",version:1,name:v.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Xe={type:r.PrimitiveEntity,id:"730e8ea9-8498-439a-9001-b07de55aaa7d",description:"A complex data structure with any combination of properties with names and values.",version:1,name:v.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Gd={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:r.GenericReference,entityId:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",entityType:r.DataType},Fd={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:r.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:r.Property},Ud={id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:{id:"enum-options-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.JSON,autogeneration:null,value:[],valueAsType:null,parent:Gd},parent:Fd},xd={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:r.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:r.PrimitiveEntity},jd={required:!0,id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",name:"Options",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Ud,description:"Options for the enum. Each option is a text value.",parent:xd},En={type:r.PrimitiveEntity,id:"9542b8b4-2642-4eee-9db9-def7963a17a0",description:"A set of text options to choose from.",version:1,name:v.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[jd],methods:[]},Sr={type:r.PrimitiveEntity,id:"dc58f38b-d574-4956-aac6-32ce9529b937",description:"A date and time value.",version:1,name:v.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ma={type:r.PrimitiveEntity,id:"4a6234aa-c0f6-4731-b4dd-750388029226",description:"A unique identifier in the form of a 36-character string.",version:1,name:v.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[F],properties:[],methods:[]},go={type:r.PrimitiveEntity,id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",description:"A complex data structure with any combination of properties with names and values.",version:1,name:v.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]};var kd=(n=>(n.FirstInputNumber="number-addition-first-number-argument-declaration",n.SecondInputNumber="number-addition-second-number-argument-declaration",n))(kd||{}),qd=(n=>(n.ResultNumber="number-addition-result-number-return-delaration",n.Error="number-addition-error-return-delaration",n))(qd||{});const Jd={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"number-addition-first-number-argument-declaration",entityType:r.ValueDescriptor},Wd={id:"number-addition-first-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Jd},Hd={type:r.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:"number-addition-second-number-argument-declaration",entityType:r.ValueDescriptor},Yd={id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Hd},zd={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"number-addition-result-number-return-delaration",entityType:r.ValueDescriptor},Zd={id:"b761acec-0755-4582-a68b-76267038bbe1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zd},Xd={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:at.Addition,entityType:r.ActionDescriptor},vo={id:"number-addition-first-number-argument-declaration",type:r.ValueDescriptor,version:1,name:"First value",description:"The first number to add",dataType:Wd,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Xd},Qd={type:r.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:at.Addition,entityType:r.ActionDescriptor},Io={id:"number-addition-second-number-argument-declaration",type:r.ValueDescriptor,description:"The second number to add",version:1,name:"Second value",dataType:Yd,required:!0,parentRelationType:C.FixedArguments,index:1,parent:Qd},Kd={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:at.Addition,entityType:r.ActionDescriptor},Po={parentRelationType:C.FixedReturns,id:"number-addition-result-number-return-delaration",type:r.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",dataType:Zd,required:!0,index:0,parent:Kd},eu={type:r.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:at.Addition,entityType:r.ActionDescriptor},tu={parentRelationType:C.FixedReturns,id:"number-addition-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:eu},Ta={id:at.Addition,type:r.ActionDescriptor,description:"Add two numbers together",version:1,name:at.Addition,fixedArguments:[vo,Io],error:tu,fixedReturns:[Po],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},nu={[at.Addition]:Ta};var ru=(n=>(n.FirstInputString="join-string-first-string-argument-declaration",n.SecondInputString="join-string-second-string-argument-declaration",n))(ru||{}),iu=(n=>(n.ResultString="join-string-result-string-return-delaration",n.Error="join-string-error-return-delaration",n))(iu||{});const au={type:r.GenericReference,id:"join-string-first-string-argument-declaration",entityId:"join-string-first-string-argument-declaration",entityType:r.ValueDescriptor},su={id:"join-string-first-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:au},ou={type:r.GenericReference,id:"join-string-second-string-argument-declaration",entityId:"join-string-second-string-argument-declaration",entityType:r.ValueDescriptor},lu={id:"join-string-second-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ou},cu={type:r.GenericReference,id:"join-string-result-string-return-delaration",entityId:"join-string-result-string-return-delaration",entityType:r.ValueDescriptor},du={id:"join-string-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cu},uu={type:r.GenericReference,id:"join-string-operation-first-string-argument-parent-ref",entityId:ve.Join,entityType:r.ActionDescriptor},Ea={id:"join-string-first-string-argument-declaration",type:r.ValueDescriptor,version:1,name:"First value",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",dataType:su,parentRelationType:C.FixedArguments,required:!0,index:0,parent:uu},pu={type:r.GenericReference,id:"join-string-operation-second-string-argument-parent-ref",entityId:ve.Join,entityType:r.ActionDescriptor},Ra={id:"join-string-second-string-argument-declaration",type:r.ValueDescriptor,version:1,name:"Second value",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",dataType:lu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:pu},yu={type:r.GenericReference,id:"join-string-operation-result-string-return-parent-ref",entityId:ve.Join,entityType:r.ActionDescriptor},ui={parentRelationType:C.FixedReturns,id:"join-string-result-string-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",dataType:du,required:!0,index:0,parent:yu},hu={type:r.GenericReference,id:"join-string-operation-error-parent-ref",entityId:ve.Join,entityType:r.ActionDescriptor},fu={parentRelationType:C.FixedReturns,id:"join-string-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:hu},pi={id:ve.Join,type:r.ActionDescriptor,version:1,name:ve.Join,description:"Join two text together, to form a single resulting text value.",fixedArguments:[Ea,Ra],fixedReturns:[ui],error:fu,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},mu={[ve.Join]:pi};var Tu=(n=>(n.FirstInputList="join-list-first-list-argument-declaration",n.SecondInputList="join-list-second-list-argument-declaration",n))(Tu||{}),Eu=(n=>(n.ResultList="join-list-result-list-return-delaration",n.Error="join-list-error-return-delaration",n))(Eu||{});const Ru={type:r.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:r.ValueDescriptor},bu={id:"join-list-first-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ru},gu={type:r.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:r.ValueDescriptor},vu={id:"join-list-second-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:gu},Iu={type:r.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:r.ValueDescriptor},Pu={id:"join-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Iu},Du={type:r.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:k.Join,entityType:r.ActionDescriptor},Au={id:"join-list-first-list-argument-declaration",type:r.ValueDescriptor,version: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.",dataType:bu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Du},Su={type:r.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:k.Join,entityType:r.ActionDescriptor},Ou={id:"join-list-second-list-argument-declaration",type:r.ValueDescriptor,version: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.",dataType:vu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:Su},Cu={type:r.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:k.Join,entityType:r.ActionDescriptor},Bu={parentRelationType:C.FixedReturns,id:"join-list-result-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:Pu,required:!0,index:0,parent:Cu},wu={type:r.GenericReference,id:"join-list-operation-error-parent-ref",entityId:k.Join,entityType:r.ActionDescriptor},_u={parentRelationType:C.FixedReturns,id:"join-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:wu},Do={id:k.Join,type:r.ActionDescriptor,version:1,name:k.Join,description:"Join two lists together, to form a single resulting list value.",fixedArguments:[Au,Ou],error:_u,fixedReturns:[Bu],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Mu=(n=>(n.InputList="list-to-split-argument-declaration",n.SplitIndex="split-list-index-argument-declaration",n))(Mu||{}),Nu=(n=>(n.FirstOutputList="split-list-first-output-list-return-delaration",n.SecondOutputList="split-list-second-output-list-return-delaration",n.Error="split-list-error-return-delaration",n))(Nu||{});const $u={type:r.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:r.ValueDescriptor},Vu={id:"split-list-operation-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:$u},Lu={type:r.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:r.ValueDescriptor},Gu={id:"split-list-operation-split-index-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Lu},Ao={type:r.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:r.ValueDescriptor},Fu={id:"split-list-operation-first-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ao},Uu={type:r.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},xu={id:"list-to-split-argument-declaration",type:r.ValueDescriptor,version:1,name:"List to split",description:"The list to split at the given index",dataType:Vu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Uu},ju={type:r.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},ku={id:"split-list-index-argument-declaration",type:r.ValueDescriptor,version: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.",dataType:Gu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:ju},qu={type:r.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},Ju={parentRelationType:C.FixedReturns,id:"split-list-first-output-list-return-delaration",type:r.ValueDescriptor,version:1,name:"First list",description:"The list of values up to the split index",dataType:Fu,required:!0,index:0,parent:qu},Wu={id:"split-list-operation-second-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ao},Hu={type:r.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},Yu={parentRelationType:C.FixedReturns,id:"split-list-second-output-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Second list",description:"The list of values up to the split index",dataType:Wu,required:!0,index:0,parent:Hu},zu={type:r.GenericReference,id:"split-list-operation-error-parent-ref",entityId:k.Split,entityType:r.ActionDescriptor},Zu={parentRelationType:C.FixedReturns,id:"split-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:zu},So={id:k.Split,type:r.ActionDescriptor,version:1,name:k.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",fixedArguments:[xu,ku],fixedReturns:[Ju,Yu],error:Zu,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Xu=(n=>(n.InputList="get-last-in-list-input-list-argument-declaration",n))(Xu||{}),Qu=(n=>(n.OutputElement="get-last-in-list-output-element-return-delaration",n.Error="get-last-in-list-error-return-delaration",n))(Qu||{});const Ku={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",entityType:r.ValueDescriptor},ep={id:"get-last-in-list-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ku},tp={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",entityType:r.ValueDescriptor},np={id:"get-last-in-list-output-element-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:tp},rp={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:k.GetLast,entityType:r.ActionDescriptor},ip={id:"get-last-in-list-input-list-argument-declaration",type:r.ValueDescriptor,version:1,name:"List",description:"The list to get the last element from.",dataType:ep,parentRelationType:C.FixedArguments,required:!0,index:0,parent:rp},ap={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:k.GetLast,entityType:r.ActionDescriptor},sp={parentRelationType:C.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:r.ValueDescriptor,version:1,name:"Last element",description:"The last element of the given list.",dataType:np,required:!0,index:0,parent:ap},op={type:r.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:k.GetLast,entityType:r.ActionDescriptor},lp={parentRelationType:C.FixedReturns,id:"get-last-in-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:op},Oo={id:k.GetLast,type:r.ActionDescriptor,version:1,name:k.GetLast,description:"Outputs the last element of a given list.",fixedArguments:[ip],fixedReturns:[sp],error:lp,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var cp=(n=>(n.List="append-to-list-lsit-argument-declaration",n.ElementToAppend="append-to-list-element-to-append-argument-declaration",n))(cp||{}),dp=(n=>(n.ResultList="append-to-list-result-list-return-delaration",n.Error="append-to-list-error-return-delaration",n))(dp||{});const up={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:r.ValueDescriptor},pp={id:"append-to-list-lsit-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:up},yp={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:r.ValueDescriptor},hp={id:"append-to-list-second-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:yp},fp={type:r.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:r.ValueDescriptor},mp={id:"append-to-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:fp},Tp={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:k.Append,entityType:r.ActionDescriptor},Co={id:"append-to-list-lsit-argument-declaration",type:r.ValueDescriptor,version:1,name:"List value",description:"The list to which the element will be appended",dataType:pp,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Tp},Ep={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:k.Append,entityType:r.ActionDescriptor},Bo={id:"append-to-list-element-to-append-argument-declaration",type:r.ValueDescriptor,version:1,name:"Element",description:"The element that will be added at the end of the list",dataType:hp,parentRelationType:C.FixedArguments,required:!0,index:1,parent:Ep},Rp={type:r.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:k.Append,entityType:r.ActionDescriptor},bp={parentRelationType:C.FixedReturns,id:"append-to-list-result-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:mp,required:!0,index:0,parent:Rp},gp={type:r.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:k.Append,entityType:r.ActionDescriptor},vp={parentRelationType:C.FixedReturns,id:"append-to-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:gp},ba={id:k.Append,type:r.ActionDescriptor,version:1,name:k.Append,description:"Adds a given element to the end of a list value.",fixedArguments:[Co,Bo],error:vp,fixedReturns:[bp],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ip={[k.Join]:Do,[k.Split]:So,[k.GetLast]:Oo,[k.Append]:ba};var Pp=(n=>(n.ListOfFunctions="parallel-execution-list-of-functions-argument-declaration",n))(Pp||{}),Dp=(n=>(n.ListOfExecutionResults="parallel-execution-result-return-delaration",n.Error="parallel-execution-error-return-delaration",n))(Dp||{});const Ap={id:"parallel-execution-list-of-functions-blueprint-id",type:r.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",argumentsType:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},Sp={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"parallel-execution-list-of-functions-argument-declaration",entityType:r.ValueDescriptor},Op={id:"parallel-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ap,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Sp},Cp={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"parallel-execution-result-return-delaration",entityType:r.ValueDescriptor},Bp={id:"b761acec-0755-4582-a68b-76267038bbe1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Cp},wp={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Pe.Parallel,entityType:r.ActionDescriptor},wo={id:"parallel-execution-list-of-functions-argument-declaration",type:r.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Op,required:!0,index:0,parent:wp,parentRelationType:C.FixedArguments},_p={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Pe.Parallel,entityType:r.ActionDescriptor},_o={id:"parallel-execution-result-return-delaration",type:r.ValueDescriptor,version: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:Bp,required:!0,index:0,parent:_p,parentRelationType:C.FixedReturns},Mp={type:r.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Pe.Parallel,entityType:r.ActionDescriptor},Np={id:"parallel-execution-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Mp,parentRelationType:C.ReturnedError},Vt={id:Pe.Parallel,type:r.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:Pe.Parallel,fixedArguments:[wo],fixedReturns:[_o],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,error:Np,parent:null};var $p=(n=>(n.MillisecondsNumber="wait-milliseconds-number-argument-declaration",n))($p||{}),Vp=(n=>(n.Error="wait-operation-error-return-delaration",n))(Vp||{});const Lp={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:r.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Gp={id:"wait-milliseconds-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Lp},Fp={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:r.ActionDescriptor,entityId:Pe.Wait},Un={id:"wait-milliseconds-number-argument-declaration",type:r.ValueDescriptor,version:1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",dataType:Gp,required:!0,index:0,parent:Fp,parentRelationType:C.FixedArguments},Up={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Pe.Wait,entityType:r.ActionDescriptor},xp={id:"wait-operation-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Up,parentRelationType:C.ReturnedError},ot={id:Pe.Wait,type:r.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:Pe.Wait,fixedArguments:[Un],fixedReturns:[],error:xp,argumentsType:L.Fixed,returnsType:L.None,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var jp=(n=>(n.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",n))(jp||{}),kp=(n=>(n.ListOfExecutionResults="sequential-execution-result-return-delaration",n.Error="sequential-execution-error-return-delaration",n))(kp||{});const qp={id:"sequential-execution-list-of-functions-blueprint-id",type:r.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",argumentsType:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},Jp={type:r.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:r.ValueDescriptor},Wp={id:"sequential-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:qp,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Jp},Hp={type:r.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:r.ValueDescriptor},Yp={id:"sequential-execution-list-of-execution-results-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Hp},zp={type:r.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Pe.Sequential,entityType:r.ActionDescriptor},Mo={id:"sequential-execution-list-of-functions-argument-declaration",type:r.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Wp,required:!0,index:0,parent:zp,parentRelationType:C.FixedArguments},Zp={type:r.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Pe.Sequential,entityType:r.ActionDescriptor},No={id:"sequential-execution-result-return-delaration",type:r.ValueDescriptor,version: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:Yp,required:!0,index:0,parent:Zp,parentRelationType:C.FixedReturns},Xp={type:r.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Pe.Sequential,entityType:r.ActionDescriptor},Qp={id:"sequential-execution-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Xp,parentRelationType:C.ReturnedError},tn={id:Pe.Sequential,type:r.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:Pe.Sequential,fixedArguments:[Mo],fixedReturns:[No],error:Qp,returnsType:L.Fixed,argumentsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Kp={[Pe.Parallel]:Vt,[Pe.Wait]:ot,[Pe.Sequential]:tn};var ey=(n=>(n.EntityToInstanciate="entity-to-instanciate-argument-declaration",n))(ey||{}),ty=(n=>(n.Error="create-new-instance-error-return-delaration",n))(ty||{});const ny={type:r.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},ry={id:"entity-to-instanciate-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:ny},iy={type:r.GenericReference,id:"create-new-instance-operation-ref",entityType:r.ActionDescriptor,entityId:Ze.CreateNewInstance},ay={id:"entity-to-instanciate-argument-declaration",type:r.ValueDescriptor,version:1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",dataType:ry,required:!0,parentRelationType:C.FixedArguments,index:0,parent:iy},sy={type:r.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ze.CreateNewInstance,entityType:r.ActionDescriptor},oy={parentRelationType:C.FixedReturns,id:"create-new-instance-output-entity-declaration",type:r.ValueDescriptor,version:1,dataType:null,name:"Created entity",description:"The entity that was created",parent:sy,required:!0,index:0},ly={type:r.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ze.CreateNewInstance,entityType:r.ActionDescriptor},cy={parentRelationType:C.FixedReturns,id:"create-new-instance-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:ly},Or={id:Ze.CreateNewInstance,type:r.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,name:Ze.CreateNewInstance,fixedArguments:[ay],fixedReturns:[oy],error:cy,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var dy=(n=>(n.EntityToMatchType="validate-data-operation-entity-to-match-type-argument-declaration",n.DataToValidate="validate-data-operation-data-to-validate-argument-declaration",n))(dy||{}),uy=(n=>(n.Error="validate-data-error-return-delaration",n.OutputEntity="validate-data-output-entity-declaration",n))(uy||{});const py={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"validate-data-operation-data-to-validate-argument-declaration"},yy={id:"validate-data-operation-data-to-validate-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:py},hy={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ze.Validate},fy={id:"validate-data-operation-data-to-validate-argument-declaration",type:r.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",dataType:yy,required:!0,parentRelationType:C.FixedArguments,index:0,parent:hy},my={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"validate-data-operation-entity-to-match-type-argument-declaration"},Ty={id:"validate-data-operation-entity-to-match-type-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:my},Ey={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ze.Validate},Ry={id:"validate-data-operation-entity-to-match-type-argument-declaration",type:r.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:Ty,required:!0,index:0,parentRelationType:C.FixedArguments,parent:Ey},by={type:r.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ze.Validate,entityType:r.ActionDescriptor},gy={id:"validate-data-output-entity-declaration",type:r.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",parent:by,required:!0,index:0,parentRelationType:C.FixedReturns},vy={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ze.Validate,entityType:r.ActionDescriptor},Iy={id:"validate-data-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:vy,parentRelationType:C.ReturnedError},xn={id:Ze.Validate,type:r.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:Ze.Validate,fixedArguments:[Ry,fy],fixedReturns:[gy],error:Iy,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Py={[Ze.CreateNewInstance]:Or,[Ze.Validate]:xn};var $o=(n=>(n.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",n))($o||{});const Ve={[r.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[r.BuiltInBaseEntity]:{[_.KEY_VALUE_PARAM]:{id:_.KEY_VALUE_PARAM},[_.HTTP_ENDPOINT]:{id:_.HTTP_ENDPOINT,properties:{method:"http-endpoint-built-in-method-property-id",path:"http-endpoint-built-in-path-property-id",cors:"http-endpoint-built-in-cors-property-id"}},[_.PERSISTED_ENTITY]:{id:_.PERSISTED_ENTITY,properties:{database:"persisted-built-in-base-entity-database-property-id",identifier:"persisted-built-in-base-entity-identifier-property-id"}},[_.RELATIONAL_DATABASE]:{id:_.RELATIONAL_DATABASE,properties:{identifier:"relational-database-built-in-base-entity-identifier-property-id",username:"relational-database-built-in-base-entity-username-property-id",password:"relational-database-built-in-base-entity-password-property-id",minSize:"relational-database-built-in-base-entity-min-size-property-id",default:"relational-database-built-in-base-entity-default-property-id"}},[_.CRON_JOB]:{id:_.CRON_JOB,properties:{expression:"cron-job-built-in-base-entity-expression-property-id"}}},[r.Operation]:{[ve.Join]:{id:ve.Join,inputs:{first:"join-string-first-string-input-id",second:"join-string-second-string-input-id"},outputs:{result:"join-string-result-string-return-delaration-id",error:"join-string-error-return-delaration-id"}},[Ye.HttpRequest]:{id:Ye.HttpRequest,inputs:{url:"http-request-url-input-id",query:"http-request-query-input-id",method:"http-request-method-input-id",headers:"http-request-headers-input-id",body:"http-request-body-string-input-id"},outputs:{code:"http-response-code-return-delaration-id",body:"http-response-body-return-delaration-id",headers:"http-response-headers-return-delaration-id",error:"http-request-error-return-delaration-id"}}},[r.Loop]:{[je.List]:{id:je.List,inputs:{list:"iterate-over-list-loop-list-input-id"},outputs:{results:"iterate-over-list-loop-output-id"}},[je.ManualFlow]:{id:je.ManualFlow,inputs:{},outputs:{results:"manual-flow-loop-output-id"}}},[r.Condition]:{[Se.MoreThanOrEqual]:{id:Se.MoreThanOrEqual,inputs:{leftHand:"condition-more-than-or-equal-left-hand-input-id",rightHand:"condition-more-than-or-equal-right-hand-input-id"}},[Bt.NotEmpty]:{id:Bt.NotEmpty,inputs:{leftHand:"condition-not-empty-input-id"}}},[r.GlobalEvent]:{[Kt.PROJECT_PUBLICATION_COMPLETED]:{id:Kt.PROJECT_PUBLICATION_COMPLETED}}},Je=Ve[r.Operation]["base-http-request"],Dy={type:r.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:r.DataType,entityId:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3"},Ay={id:"http-request-url-default-value-id",type:r.PrimitiveValue,version:1,value:"https://some-url.com",name:v.String,valueAsType:null,parent:Dy,autogeneration:null},Sy={type:r.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Je.inputs.url,entityType:r.ValueDescriptor},Oy={id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:Ay,constant:!1,parent:Sy},Cy={type:r.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Je.inputs.query,entityType:r.ValueDescriptor},By={id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Cy},wy={type:r.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:r.DataType,entityId:"6df7ec2b-5dbd-44af-896b-17b314e88560"},_y={id:"http-request-method-default-value-id",type:r.PrimitiveValue,version:1,value:"GET",name:v.Enum,valueAsType:null,parent:wy,autogeneration:null},My={type:r.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Je.inputs.method,entityType:r.ValueDescriptor},Ny={id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:En,isList:!1,asType:!1,isNullable:!1,defaultValue:_y,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],constant:!1,parent:My},$y={type:r.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Je.inputs.headers,entityType:r.ValueDescriptor},Vy={id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$y},Ly={type:r.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Je.inputs.body,entityType:r.ValueDescriptor},Gy={id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Ly},Fy={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:r.ValueDescriptor,entityId:Je.outputs.code},Uy={id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Fy},xy={type:r.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:r.DataType,entityId:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe"},jy={type:r.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:r.ValueDescriptor,entityId:Je.outputs.headers},ky={id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-headers-default-value-id",type:r.PrimitiveValue,version:1,value:{},name:v.JSON,parent:xy,valueAsType:null,autogeneration:null},constant:!1,parent:jy},qy={type:r.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:r.DataType,entityId:"05fc1a5d-151a-479a-9c4e-4063f3456177"},Jy={type:r.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:r.ValueDescriptor,entityId:Je.outputs.body},Wy={id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-body-default-value-id",type:r.PrimitiveValue,version:1,value:{},name:v.JSON,parent:qy,valueAsType:null,autogeneration:null},constant:!1,parent:Jy},Hy={type:r.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},ga={id:Je.inputs.method,type:r.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,name:"Method",dataType:Ny,required:!1,index:0,parentRelationType:C.FixedArguments,parent:Hy},Yy={type:r.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},va={id:Je.inputs.url,type:r.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:1,name:"URL",dataType:Oy,required:!1,index:1,parentRelationType:C.FixedArguments,parent:Yy},zy={type:r.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Vo={id:Je.inputs.query,type:r.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,name:"Query Params",dataType:By,required:!1,index:2,parentRelationType:C.FixedArguments,parent:zy},Zy={type:r.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Ia={id:Je.inputs.headers,type:r.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,name:"Headers",dataType:Vy,required:!1,index:3,parent:Zy,parentRelationType:C.FixedArguments},Xy={type:r.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Pa={id:Je.inputs.body,type:r.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 JSON data structure or a text value.",version:1,name:"Body",dataType:Gy,required:!1,index:4,parentRelationType:C.FixedArguments,parent:Xy},Qy={type:r.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Lo={id:Je.outputs.code,type:r.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,name:"Code",dataType:Uy,required:!0,index:0,parentRelationType:C.FixedReturns,parent:Qy},Ky={type:r.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Da={parentRelationType:C.FixedReturns,id:Je.outputs.headers,type:r.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,name:"Headers",dataType:ky,required:!0,index:1,parent:Ky},eh={type:r.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},yi={parentRelationType:C.FixedReturns,id:Je.outputs.body,type:r.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 JSON data structure or a text value.",version:1,name:"Body",dataType:Wy,required:!0,index:2,parent:eh},th={type:r.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},nh={type:r.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:r.ValueDescriptor,entityId:Je.outputs.error},rh={id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,asType:!1,isNullable:!1,constant:!1,defaultValue:null,parent:nh},Go={parentRelationType:C.ReturnedError,id:Je.outputs.error,type:r.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",dataType:rh,required:!0,index:0,parent:th},hi={type:r.ActionDescriptor,id:Ye.HttpRequest,name:Ye.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,fixedArguments:[ga,va,Vo,Ia,Pa],fixedReturns:[Lo,Da,yi],argumentsType:L.Fixed,returnsType:L.Fixed,error:Go,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},ih={[Ye.HttpRequest]:hi},tI={...mu,...nu,...Ip,...Kp,...Py,...ih},ah=Ve[r.Loop]["list-loop"],sh={id:"iterate-over-list-loop-return-declaration-parent-ref-id",type:r.GenericReference,entityId:je.List,entityType:r.ActionDescriptor},oh={id:ah.outputs.results,type:r.ValueDescriptor,version:1,name:"Results",description:"List of results from the loop. One item in the list for each iteration of the loop.",dataType:null,required:!0,index:0,parent:sh,parentRelationType:C.FixedReturns},lh={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",entityType:r.ArgumentDeclaration},ch={id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:lh},dh={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:je.List,entityType:r.ActionDescriptor},uh={id:ah.inputs.list,type:r.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,dataType:ch,index:0,parent:dh,parentRelationType:C.FixedArguments},jn={id:je.List,type:r.ActionDescriptor,version:1,name:je.List,description:"Iterates over a list of entities",fixedArguments:[uh],fixedReturns:[oh],error:null,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},nI=Ve[r.Loop]["list-loop"],ph={id:"manual-flow-loop-previous-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"manual-flow-loop-previous-iterations-results-declaration-id",entityType:r.ReturnDeclaration},yh={id:"manual-flow-loop-previous-iterations-results-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:ph},hh={id:"manual-flow-loop-previous-iterations-results-declaration-parent-ref-id",type:r.GenericReference,entityId:je.ManualFlow,entityType:r.ActionDescriptor},fh={id:nI.outputs.results,type:r.ValueDescriptor,version:1,name:"Results",description:"List of results from the loop. One item in the list for each iteration of the loop.",dataType:yh,required:!0,index:1,parentRelationType:C.FixedReturns,parent:hh},Fo={id:je.ManualFlow,type:r.ActionDescriptor,version:1,name:je.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.",fixedArguments:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[fh],argumentsType:L.None,returnsType:L.Fixed,error:null,parent:null},Aa=Ve[r.BuiltInBaseEntity][_.KEY_VALUE_PARAM],rI={id:"key-value-param-built-in-base-entity-name-property-data-type-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property-data-type",entityType:r.DataType},mh={id:"key-value-param-built-in-base-entity-name-property-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property",entityType:r.Property},iI={id:"key-value-param-built-in-base-entity-name-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:null,parent:mh},Th={id:"key-value-param-built-in-base-entity-name-property-parent-ref",type:r.GenericReference,entityId:Aa.id,entityType:r.BuiltInBaseEntity},Eh={required:!0,id:"key-value-param-built-in-base-entity-name-property",name:"Parameter name",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:iI,description:"The name of the path parameter",parent:Th},aI={id:"key-value-param-built-in-base-entity-value-property-data-type-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property-data-type",entityType:r.DataType},Rh={id:"key-value-param-built-in-base-entity-value-property-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property",entityType:r.Property},sI={id:"key-value-param-built-in-base-entity-value-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:null,parent:Rh},bh={id:"key-value-param-built-in-base-entity-value-property-parent-ref",type:r.GenericReference,entityId:Aa.id,entityType:r.BuiltInBaseEntity},gh={required:!0,id:"key-value-param-built-in-base-entity-value-property",name:"Parameter Value",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:1,dataType:sI,description:"The value of the path parameter",parent:bh},Sa={id:Aa.id,version:1,description:'An entity with a "name" and "value" property representing a breakdown of a key-value pair.',name:Aa.id,type:r.BuiltInBaseEntity,abstract:!1,static:!1,interactive:!0,properties:[Eh,gh],abstractMethods:[],methods:[],extends:[]},fi=Ve[r.BuiltInBaseEntity][_.HTTP_ENDPOINT].properties,vh={id:"endpointBuiltInCorsPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInCorsPropertyDataType"},Ih={id:"endpointBuiltInCorsPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:fi.cors},Ph={id:"endpointBuiltInCorsPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:["*"],parent:vh,autogeneration:null,valueAsType:null},parent:Ih},Dh={id:"endpointBuiltInBaseEntityRef",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Ah={required:!0,id:fi.cors,name:"Allowed origins",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:Ph,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:Dh},Sh={id:"endpointBuiltInPathPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInPathPropertyDataType"},Oh={id:"endpointBuiltInPathPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:fi.path},Ch={id:"endpointBuiltInPathPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.String,value:"/",parent:Sh,autogeneration:null,valueAsType:null},parent:Oh},Bh={id:"endpointBuiltInBaseEntityRefTwo",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Uo={required:!0,id:fi.path,name:"Path",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:Ch,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:Bh},wh={id:"endpointBuiltInMethodPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInMethodPropertyDataType"},_h={id:"endpointBuiltInMethodPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"endpointBuiltInMethodProperty"},Mh={id:"endpointBuiltInMethodPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:En,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,value:"GET",name:v.Enum,parent:wh,autogeneration:null,valueAsType:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:_h},Nh={id:"endpointBuiltInBaseEntityRefThree",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},xo={required:!0,id:fi.method,name:"Method",version:1,type:r.Property,private:!1,index:2,implements:null,abstract:!0,static:!0,dataType:Mh,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:Nh},$h={id:"endpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointRequestHeadersVariableDataType"},Vh={id:"endpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},Lh={id:"endpointRequestHeadersVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:$h,autogeneration:null,valueAsType:null},parent:Vh},Gh={id:"endpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},Fh={id:"endpointRequestBodyVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:Gh},Uh={id:"endpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointRequestQueryParamsVariableDataType"},xh={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},jh={id:"endpointRequestQueryParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:Sa,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:[],parent:Uh,autogeneration:null,valueAsType:null},parent:xh},kh={id:"endpointPathParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointPathParamsVariableDataType"},qh={id:"endpointPathParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},Jh={id:"endpointPathParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Sa,asType:!1,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:[],parent:kh,autogeneration:null,valueAsType:null},parent:qh},Wh={id:"endpointReachedTriggerActionDescriptorRef",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Hh={id:"endpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:r.ValueDescriptor,name:"Request headers",dataType:Lh,required:!0,index:0,parentRelationType:C.FixedArguments,parent:Wh},Yh={id:"endpointReachedTriggerActionDescriptorRefTwo",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},zh={id:"endpointPathParamsArgumentDeclaration",type:r.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,name:"Path parameters",dataType:Jh,required:!0,index:1,parentRelationType:C.FixedArguments,parent:Yh},Zh={id:"endpointReachedTriggerActionDescriptorRefThree",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Xh={id:"endpointRequestQueryParamsArgumentDeclaration",version: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:r.ValueDescriptor,name:"Request query params",dataType:jh,required:!0,index:2,parentRelationType:C.FixedArguments,parent:Zh},Qh={id:"endpointReachedTriggerActionDescriptorRefFour",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Kh={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:r.ValueDescriptor,name:"Request body",dataType:Fh,index:3,required:!0,parentRelationType:C.FixedArguments,parent:Qh},ef={id:"endpointResponseCodeReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},tf={id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ef},nf={id:"endpointReturnStatementRef",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},rf={id:"endpointResponseCodeReturnDeclaration",version: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:r.ValueDescriptor,name:"Response code",dataType:tf,required:!0,index:0,parentRelationType:C.FixedReturns,parent:nf},af={id:"endpointResponseHeadersDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointResponseHeadersDataType"},sf={id:"endpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},of={id:"endpointResponseHeadersDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:af,autogeneration:null,valueAsType:null},parent:sf},lf={id:"endpointReturnStatementRefTwo",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},cf={id:"endpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:r.ValueDescriptor,name:"Response headers",dataType:of,required:!1,index:1,parentRelationType:C.FixedReturns,parent:lf},df={id:"endpointResponseBodyReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},uf={id:"endpointResponseBodyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:df},pf={id:"endpointReturnStatementRefThree",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},yf={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:r.ValueDescriptor,name:"Response body",dataType:uf,required:!1,index:2,parentRelationType:C.FixedReturns,parent:pf},hf={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},jo={id:"endpointReachedTriggerActionDescriptor",type:r.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",argumentsType:L.Fixed,dynamicArgumentTypes:null,fixedArguments:[Hh,zh,Xh,Kh],returnsType:L.Fixed,fixedReturns:[rf,cf,yf],error:null,dynamicReturnTypes:null,parent:hf},Oa={id:_.HTTP_ENDPOINT,version:1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:_.HTTP_ENDPOINT,type:r.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[Ah,Uo,xo],abstractMethods:[jo],extends:[],methods:[]},jt=Ve[r.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,ff={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-identifier-property-data-type-id",entityType:r.DataType},mf={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:jt.properties.identifier,entityType:r.Property},oI={id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:null,parent:ff,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:mf},Cr={id:"relational-database-built-in-base-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Ca={required:!0,id:jt.properties.identifier,name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,dataType:oI,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Cr},lI={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",entityType:r.DataType},Tf={id:"relational-database-built-in-base-entity-username-property-ref-id",type:r.GenericReference,entityId:jt.properties.username,entityType:r.Property},cI={id:"relational-database-built-in-base-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-id",entityType:r.DataType},autogeneration:null,valueAsType:null},parent:Tf},Ba={required:!0,id:jt.properties.username,name:"Username",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,dataType:cI,description:"The username that will be used to connect to the database.",parent:Cr},dI={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",entityType:r.DataType},Ef={id:"relational-database-built-in-base-entity-password-property-ref-id",type:r.GenericReference,entityId:jt.properties.password,entityType:r.Property},uI={id:"relational-database-built-in-base-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:Ef},wa={required:!0,id:jt.properties.password,name:"Password",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,dataType:uI,description:"The password that will be used to connect to the database.",parent:Cr},Rf={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-min-size-property-data-type-id",entityType:r.DataType},bf={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:r.GenericReference,entityId:jt.properties.minSize,entityType:r.Property},pI={id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Be,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:r.PrimitiveValue,version:1,name:v.Number,value:6,parent:Rf,autogeneration:null,valueAsType:null},parent:bf},_a={required:!0,id:jt.properties.minSize,name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,dataType:pI,description:"The minimum size of the database in GB.",parent:Cr},gf={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-default-property-data-type-id",entityType:r.DataType},vf={id:"relational-database-built-in-base-entity-default-property-ref-id",type:r.GenericReference,entityId:jt.properties.default,entityType:r.Property},yI={id:"relational-database-built-in-base-entity-default-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Fn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:r.PrimitiveValue,version:1,name:v.Boolean,value:!1,parent:gf,autogeneration:null,valueAsType:null},parent:vf},If={required:!0,id:jt.properties.default,name:"Default",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:yI,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:Cr},Rn={id:_.RELATIONAL_DATABASE,version:1,description:"This entity provisions a relational database in the cloud.",name:_.RELATIONAL_DATABASE,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Ca,Ba,wa,_a,If],abstractMethods:[],methods:[],extends:[]},Pf={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:r.BuiltInBaseEntity,id:It.DeletePersistedEntity},ko={type:r.FunctionDeclaration,id:It.DeletePersistedEntity,name:It.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:Pf,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},Df={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:r.BuiltInBaseEntity,id:It.SoftDeletePersistedEntity},Af={type:r.FunctionDeclaration,id:It.SoftDeletePersistedEntity,name:It.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:Df,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},Sf=Ve[r.BuiltInBaseEntity][_.PERSISTED_ENTITY].properties,hI={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",entityType:r.DataType},Of={id:"persisted-built-in-base-entity-database-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",entityType:r.Property},fI={id:"persisted-built-in-base-entity-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Rn,asType:!1,defaultValue:null,parent:Of},Cf={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},mi={required:!0,id:Sf.database,name:"Database",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:fI,description:"The database that the entity belongs to.",parent:Cf},Bf={id:"persisted-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-data-type-id",entityType:r.DataType},wf={id:"persisted-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-id",entityType:r.Property},mI={id:"persisted-built-in-base-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:ma,asType:!1,defaultValue:{id:"persisted-built-in-base-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.UUID,value:null,parent:Bf,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:wf},_f={id:"persisted-built-in-base-entity-identifier-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Mf={required:!0,id:Sf.identifier,name:"Identifier",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:mI,description:"Auto-generated unique identifier for the entity, can be used to identify the entity among other entities of the same type.",parent:_f},TI={id:"persisted-built-in-base-entity-deleted-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-data-type-id",entityType:r.DataType},Nf={id:"persisted-built-in-base-entity-deleted-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-id",entityType:r.Property},$f={id:"persisted-built-in-base-entity-deleted-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!0,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Nf},Vf={id:"persisted-built-in-base-entity-deleted-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Lf={required:!0,id:"persisted-built-in-base-entity-deleted-at-property-id",name:"Deleted at",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:$f,description:"The date and time when the entity was deleted.",parent:Vf},EI={id:"persisted-built-in-base-entity-created-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-data-type-id",entityType:r.DataType},Gf={id:"persisted-built-in-base-entity-created-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-id",entityType:r.Property},Ff={id:"persisted-built-in-base-entity-created-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Gf},Uf={id:"persisted-built-in-base-entity-created-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},xf={required:!0,id:"persisted-built-in-base-entity-created-at-property-id",name:"Created at",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Ff,description:"The date and time when the entity was created.",parent:Uf},RI={id:"persisted-built-in-base-entity-updated-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-data-type-id",entityType:r.DataType},jf={id:"persisted-built-in-base-entity-updated-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-id",entityType:r.Property},kf={id:"persisted-built-in-base-entity-updated-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:jf},qf={id:"persisted-built-in-base-entity-updated-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Jf={required:!0,id:"persisted-built-in-base-entity-updated-at-property-id",name:"Updated at",version:1,type:r.Property,private:!1,implements:null,abstract:!1,static:!1,index:0,dataType:kf,description:"The date and time when the entity was last updated.",parent:qf},we={id:_.PERSISTED_ENTITY,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:_.PERSISTED_ENTITY,type:r.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[mi,Mf,Lf,xf,Jf],methods:[ko,Af],extends:[]},Wf={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},qo={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:r.ActionDescriptor,argumentsType:L.None,returnsType:L.None,description:"Executed when the cron job is triggered",fixedArguments:[],dynamicArgumentTypes:null,error:null,fixedReturns:[],dynamicReturnTypes:null,parent:Wf},Hf=Ve[r.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,bI={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:r.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",entityType:r.DataType},Yf={id:"cron-job-built-in-base-entity-expression-property-ref",type:r.GenericReference,entityId:Hf.properties.expression,entityType:r.Property},gI={id:"cron-job-built-in-base-entity-expression-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:Yf},zf={id:"cron-job-built-in-base-entity-ref",type:r.GenericReference,entityId:_.CRON_JOB,entityType:r.BuiltInBaseEntity},Zf={required:!0,id:Hf.properties.expression,name:"Cron expression",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:gI,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:zf},Jo={id:_.CRON_JOB,version: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:_.CRON_JOB,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Zf],methods:[],abstractMethods:[qo],extends:[]},Xf={type:r.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:r.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Wo={id:"execution-built-in-entity-abort-method-id",type:r.FunctionDeclaration,version:1,name:It.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:Xf},Ho={id:_.EXECUTION,type:r.BuiltInBaseEntity,version:1,name:_.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:[Wo],abstractMethods:[]},vI=Ve[r.Condition]["not-empty"],Qf={type:r.GenericReference,id:"not-empty-condition-ref",entityType:r.ActionDescriptor,entityId:Bt.NotEmpty},Kf={id:vI.inputs.leftHand,type:r.ValueDescriptor,version:1,name:"Value",description:"The value to check if it is not empty",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Qf},kn={type:r.ActionDescriptor,id:Bt.NotEmpty,version:1,name:Bt.NotEmpty,description:"Checks if the value is not empty",parent:null,fixedArguments:[Kf],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.Fixed,returnsType:L.None,error:null},em={[Bt.NotEmpty]:kn},tm=Ve[r.Condition]["more-than-or-equal"],nm={type:r.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Se.MoreThanOrEqual},rm={id:tm.inputs.leftHand,type:r.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:0,parent:nm},im={type:r.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Se.MoreThanOrEqual},am={id:tm.inputs.rightHand,type:r.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:1,parent:im},Br={type:r.ActionDescriptor,id:Se.MoreThanOrEqual,version:1,name:Se.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,fixedArguments:[rm,am],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.Fixed,returnsType:L.None,error:null},sm={[Se.MoreThanOrEqual]:Br},II={...em,...sm},Ma={type:r.ActionDescriptor,id:Kt.PROJECT_PUBLICATION_COMPLETED,version:1,name:Kt.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,fixedArguments:[],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.None,returnsType:L.None,error:null},PI={[Kt.PROJECT_PUBLICATION_COMPLETED]:Ma},Yo=Ve[r.ValueDescriptor][$o.ActionOngoingProcessOutputValue],om={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:r.ValueDescriptor,entityId:Yo.id},lm={id:Yo.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ho,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:om},zo={id:Yo.id,type:r.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",dataType:lm,required:!0,index:0,parent:null,parentRelationType:C.OngoingProcessExecution};var z;(function(n){n.assertEqual=a=>a;function e(a){}n.assertIs=e;function t(a){throw new Error}n.assertNever=t,n.arrayToEnum=a=>{const s={};for(const o of a)s[o]=o;return s},n.getValidEnumValues=a=>{const s=n.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),o={};for(const d of s)o[d]=a[d];return n.objectValues(o)},n.objectValues=a=>n.objectKeys(a).map(function(s){return a[s]}),n.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&s.push(o);return s},n.find=(a,s)=>{for(const o of a)if(s(o))return o},n.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function i(a,s=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}n.joinValues=i,n.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(z||(z={}));var Zo;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(Zo||(Zo={}));const M=z.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bn=n=>{switch(typeof n){case"undefined":return M.undefined;case"string":return M.string;case"number":return isNaN(n)?M.nan:M.number;case"boolean":return M.boolean;case"function":return M.function;case"bigint":return M.bigint;case"symbol":return M.symbol;case"object":return Array.isArray(n)?M.array:n===null?M.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?M.promise:typeof Map<"u"&&n instanceof Map?M.map:typeof Set<"u"&&n instanceof Set?M.set:typeof Date<"u"&&n instanceof Date?M.date:M.object;default:return M.unknown}},P=z.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"]),DI=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class ft extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(s){return s.message},i={_errors:[]},a=s=>{for(const o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)i._errors.push(t(o));else{let d=i,p=0;for(;p<o.path.length;){const h=o.path[p];p===o.path.length-1?(d[h]=d[h]||{_errors:[]},d[h]._errors.push(t(o))):d[h]=d[h]||{_errors:[]},d=d[h],p++}}};return a(this),i}static assert(e){if(!(e instanceof ft))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,z.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},i=[];for(const a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):i.push(e(a));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}ft.create=n=>new ft(n);const wr=(n,e)=>{let t;switch(n.code){case P.invalid_type:n.received===M.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case P.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,z.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:t=`Unrecognized key(s) in object: ${z.joinValues(n.keys,", ")}`;break;case P.invalid_union:t="Invalid input";break;case P.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${z.joinValues(n.options)}`;break;case P.invalid_enum_value:t=`Invalid enum value. Expected ${z.joinValues(n.options)}, received '${n.received}'`;break;case P.invalid_arguments:t="Invalid function arguments";break;case P.invalid_return_type:t="Invalid function return type";break;case P.invalid_date:t="Invalid date";break;case P.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:z.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case P.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case P.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case P.custom:t="Invalid input";break;case P.invalid_intersection_types:t="Intersection results could not be merged";break;case P.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case P.not_finite:t="Number must be finite";break;default:t=e.defaultError,z.assertNever(n)}return{message:t}};let cm=wr;function AI(n){cm=n}function Na(){return cm}const $a=n=>{const{data:e,path:t,errorMaps:i,issueData:a}=n,s=[...t,...a.path||[]],o={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let d="";const p=i.filter(h=>!!h).slice().reverse();for(const h of p)d=h(o,{data:e,defaultError:d}).message;return{...a,path:s,message:d}},SI=[];function w(n,e){const t=Na(),i=$a({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===wr?void 0:wr].filter(a=>!!a)});n.common.issues.push(i)}class Qe{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const a of t){if(a.status==="aborted")return x;a.status==="dirty"&&e.dirty(),i.push(a.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const a of t){const s=await a.key,o=await a.value;i.push({key:s,value:o})}return Qe.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const a of t){const{key:s,value:o}=a;if(s.status==="aborted"||o.status==="aborted")return x;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(i[s.value]=o.value)}return{status:e.value,value:i}}}const x=Object.freeze({status:"aborted"}),_r=n=>({status:"dirty",value:n}),lt=n=>({status:"valid",value:n}),Xo=n=>n.status==="aborted",Qo=n=>n.status==="dirty",Ti=n=>n.status==="valid",Ei=n=>typeof Promise<"u"&&n instanceof Promise;function Va(n,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(n):i?i.value:e.get(n)}function dm(n,e,t,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t}typeof SuppressedError=="function"&&SuppressedError;var V;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(V||(V={}));var Ri,bi;class kt{constructor(e,t,i,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=a}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 um=(n,e)=>{if(Ti(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ft(n.common.issues);return this._error=t,this._error}}};function J(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:a}=n;if(e&&(t||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(o,d)=>{var p,h;const{message:T}=n;return o.code==="invalid_enum_value"?{message:T??d.defaultError}:typeof d.data>"u"?{message:(p=T??i)!==null&&p!==void 0?p:d.defaultError}:o.code!=="invalid_type"?{message:d.defaultError}:{message:(h=T??t)!==null&&h!==void 0?h:d.defaultError}},description:a}}class H{constructor(e){this.spa=this.safeParseAsync,this._def=e,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)}get description(){return this._def.description}_getType(e){return bn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:bn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Qe,ctx:{common:e.parent.common,data:e.data,parsedType:bn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Ei(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const a={common:{issues:[],async:(i=t==null?void 0:t.async)!==null&&i!==void 0?i:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:bn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return um(a,s)}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:bn(e)},a=this._parse({data:e,path:i.path,parent:i}),s=await(Ei(a)?a:Promise.resolve(a));return um(i,s)}refine(e,t){const i=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,s)=>{const o=e(a),d=()=>s.addIssue({code:P.custom,...i(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(p=>p?!0:(d(),!1)):o?!0:(d(),!1)})}refinement(e,t){return this._refinement((i,a)=>e(i)?!0:(a.addIssue(typeof t=="function"?t(i,a):t),!1))}_refinement(e){return new Ft({schema:this,typeName:U.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Jt.create(this,this._def)}nullable(){return Pn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Gt.create(this,this._def)}promise(){return Vr.create(this,this._def)}or(e){return Pi.create([this,e],this._def)}and(e){return Di.create(this,e,this._def)}transform(e){return new Ft({...J(this._def),schema:this,typeName:U.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Bi({...J(this._def),innerType:this,defaultValue:t,typeName:U.ZodDefault})}brand(){return new tl({typeName:U.ZodBranded,type:this,...J(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new wi({...J(this._def),innerType:this,catchValue:t,typeName:U.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return _i.create(this,e)}readonly(){return Mi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const OI=/^c[^\s-]{8,}$/i,CI=/^[0-9a-z]+$/,BI=/^[0-9A-HJKMNP-TV-Z]{26}$/,wI=/^[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,_I=/^[a-z0-9_-]{21}$/i,MI=/^[-+]?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)?)??$/,NI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$I="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ko;const VI=/^(?:(?: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])$/,LI=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,GI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,pm="((\\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])))",FI=new RegExp(`^${pm}$`);function ym(n){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?e=`${e}\\.\\d{${n.precision}}`:n.precision==null&&(e=`${e}(\\.\\d+)?`),e}function UI(n){return new RegExp(`^${ym(n)}$`)}function hm(n){let e=`${pm}T${ym(n)}`;const t=[];return t.push(n.local?"Z?":"Z"),n.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function xI(n,e){return!!((e==="v4"||!e)&&VI.test(n)||(e==="v6"||!e)&&LI.test(n))}class Lt extends H{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==M.string){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.string,received:s.parsedType}),x}const i=new Qe;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){const o=e.data.length>s.value,d=e.data.length<s.value;(o||d)&&(a=this._getOrReturnCtx(e,a),o?w(a,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):d&&w(a,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")NI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"email",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")Ko||(Ko=new RegExp($I,"u")),Ko.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"emoji",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")wI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"uuid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")_I.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"nanoid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")OI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")CI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid2",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")BI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ulid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),w(a,{validation:"url",code:P.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"regex",code:P.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?hm(s).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?FI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?UI(s).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?MI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"duration",code:P.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?xI(e.data,s.version)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ip",code:P.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?GI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"base64",code:P.invalid_string,message:s.message}),i.dirty()):z.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(a=>e.test(a),{validation:t,code:P.invalid_string,...V.errToObj(i)})}_addCheck(e){return new Lt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...V.errToObj(e)})}url(e){return this._addCheck({kind:"url",...V.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...V.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...V.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...V.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...V.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...V.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...V.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...V.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...V.errToObj(e)})}datetime(e){var t,i;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,local:(i=e==null?void 0:e.local)!==null&&i!==void 0?i:!1,...V.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...V.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...V.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...V.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...V.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...V.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...V.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...V.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...V.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...V.errToObj(t)})}nonempty(e){return this.min(1,V.errToObj(e))}trim(){return new Lt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Lt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Lt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Lt.create=n=>{var e;return new Lt({checks:[],typeName:U.ZodString,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...J(n)})};function jI(n,e){const t=(n.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,a=t>i?t:i,s=parseInt(n.toFixed(a).replace(".","")),o=parseInt(e.toFixed(a).replace(".",""));return s%o/Math.pow(10,a)}class gn extends H{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==M.number){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.number,received:s.parsedType}),x}let i;const a=new Qe;for(const s of this._def.checks)s.kind==="int"?z.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),w(i,{code:P.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?jI(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_finite,message:s.message}),a.dirty()):z.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,i,a){return new gn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:V.toString(a)}]})}_addCheck(e){return new gn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:V.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:V.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&z.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}gn.create=n=>new gn({checks:[],typeName:U.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...J(n)});class vn extends H{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==M.bigint){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.bigint,received:s.parsedType}),x}let i;const a=new Qe;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):z.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,i,a){return new vn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:V.toString(a)}]})}_addCheck(e){return new vn({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}vn.create=n=>{var e;return new vn({checks:[],typeName:U.ZodBigInt,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...J(n)})};class gi extends H{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==M.boolean){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.boolean,received:i.parsedType}),x}return lt(e.data)}}gi.create=n=>new gi({typeName:U.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...J(n)});class qn extends H{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==M.date){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.date,received:s.parsedType}),x}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_date}),x}const i=new Qe;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):z.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new qn({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:V.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:V.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}qn.create=n=>new qn({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:U.ZodDate,...J(n)});class La extends H{_parse(e){if(this._getType(e)!==M.symbol){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.symbol,received:i.parsedType}),x}return lt(e.data)}}La.create=n=>new La({typeName:U.ZodSymbol,...J(n)});class vi extends H{_parse(e){if(this._getType(e)!==M.undefined){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.undefined,received:i.parsedType}),x}return lt(e.data)}}vi.create=n=>new vi({typeName:U.ZodUndefined,...J(n)});class Ii extends H{_parse(e){if(this._getType(e)!==M.null){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.null,received:i.parsedType}),x}return lt(e.data)}}Ii.create=n=>new Ii({typeName:U.ZodNull,...J(n)});class Mr extends H{constructor(){super(...arguments),this._any=!0}_parse(e){return lt(e.data)}}Mr.create=n=>new Mr({typeName:U.ZodAny,...J(n)});class Jn extends H{constructor(){super(...arguments),this._unknown=!0}_parse(e){return lt(e.data)}}Jn.create=n=>new Jn({typeName:U.ZodUnknown,...J(n)});class nn extends H{_parse(e){const t=this._getOrReturnCtx(e);return w(t,{code:P.invalid_type,expected:M.never,received:t.parsedType}),x}}nn.create=n=>new nn({typeName:U.ZodNever,...J(n)});class Ga extends H{_parse(e){if(this._getType(e)!==M.undefined){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.void,received:i.parsedType}),x}return lt(e.data)}}Ga.create=n=>new Ga({typeName:U.ZodVoid,...J(n)});class Gt extends H{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==M.array)return w(t,{code:P.invalid_type,expected:M.array,received:t.parsedType}),x;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,d=t.data.length<a.exactLength.value;(o||d)&&(w(t,{code:o?P.too_big:P.too_small,minimum:d?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(w(t,{code:P.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(w(t,{code:P.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((o,d)=>a.type._parseAsync(new kt(t,o,t.path,d)))).then(o=>Qe.mergeArray(i,o));const s=[...t.data].map((o,d)=>a.type._parseSync(new kt(t,o,t.path,d)));return Qe.mergeArray(i,s)}get element(){return this._def.type}min(e,t){return new Gt({...this._def,minLength:{value:e,message:V.toString(t)}})}max(e,t){return new Gt({...this._def,maxLength:{value:e,message:V.toString(t)}})}length(e,t){return new Gt({...this._def,exactLength:{value:e,message:V.toString(t)}})}nonempty(e){return this.min(1,e)}}Gt.create=(n,e)=>new Gt({type:n,minLength:null,maxLength:null,exactLength:null,typeName:U.ZodArray,...J(e)});function Nr(n){if(n instanceof Me){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=Jt.create(Nr(i))}return new Me({...n._def,shape:()=>e})}else return n instanceof Gt?new Gt({...n._def,type:Nr(n.element)}):n instanceof Jt?Jt.create(Nr(n.unwrap())):n instanceof Pn?Pn.create(Nr(n.unwrap())):n instanceof qt?qt.create(n.items.map(e=>Nr(e))):n}class Me extends H{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=z.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==M.object){const h=this._getOrReturnCtx(e);return w(h,{code:P.invalid_type,expected:M.object,received:h.parsedType}),x}const{status:i,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),d=[];if(!(this._def.catchall instanceof nn&&this._def.unknownKeys==="strip"))for(const h in a.data)o.includes(h)||d.push(h);const p=[];for(const h of o){const T=s[h],m=a.data[h];p.push({key:{status:"valid",value:h},value:T._parse(new kt(a,m,a.path,h)),alwaysSet:h in a.data})}if(this._def.catchall instanceof nn){const h=this._def.unknownKeys;if(h==="passthrough")for(const T of d)p.push({key:{status:"valid",value:T},value:{status:"valid",value:a.data[T]}});else if(h==="strict")d.length>0&&(w(a,{code:P.unrecognized_keys,keys:d}),i.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const T of d){const m=a.data[T];p.push({key:{status:"valid",value:T},value:h._parse(new kt(a,m,a.path,T)),alwaysSet:T in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const h=[];for(const T of p){const m=await T.key,b=await T.value;h.push({key:m,value:b,alwaysSet:T.alwaysSet})}return h}).then(h=>Qe.mergeObjectSync(i,h)):Qe.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(e){return V.errToObj,new Me({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var a,s,o,d;const p=(o=(s=(a=this._def).errorMap)===null||s===void 0?void 0:s.call(a,t,i).message)!==null&&o!==void 0?o:i.defaultError;return t.code==="unrecognized_keys"?{message:(d=V.errToObj(e).message)!==null&&d!==void 0?d:p}:{message:p}}}:{}})}strip(){return new Me({...this._def,unknownKeys:"strip"})}passthrough(){return new Me({...this._def,unknownKeys:"passthrough"})}extend(e){return new Me({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Me({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:U.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Me({...this._def,catchall:e})}pick(e){const t={};return z.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new Me({...this._def,shape:()=>t})}omit(e){const t={};return z.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new Me({...this._def,shape:()=>t})}deepPartial(){return Nr(this)}partial(e){const t={};return z.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];e&&!e[i]?t[i]=a:t[i]=a.optional()}),new Me({...this._def,shape:()=>t})}required(e){const t={};return z.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Jt;)s=s._def.innerType;t[i]=s}}),new Me({...this._def,shape:()=>t})}keyof(){return fm(z.objectKeys(this.shape))}}Me.create=(n,e)=>new Me({shape:()=>n,unknownKeys:"strip",catchall:nn.create(),typeName:U.ZodObject,...J(e)}),Me.strictCreate=(n,e)=>new Me({shape:()=>n,unknownKeys:"strict",catchall:nn.create(),typeName:U.ZodObject,...J(e)}),Me.lazycreate=(n,e)=>new Me({shape:n,unknownKeys:"strip",catchall:nn.create(),typeName:U.ZodObject,...J(e)});class Pi extends H{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function a(s){for(const d of s)if(d.result.status==="valid")return d.result;for(const d of s)if(d.result.status==="dirty")return t.common.issues.push(...d.ctx.common.issues),d.result;const o=s.map(d=>new ft(d.ctx.common.issues));return w(t,{code:P.invalid_union,unionErrors:o}),x}if(t.common.async)return Promise.all(i.map(async s=>{const o={...t,common:{...t.common,issues:[]},parent:null};return{result:await s._parseAsync({data:t.data,path:t.path,parent:o}),ctx:o}})).then(a);{let s;const o=[];for(const p of i){const h={...t,common:{...t.common,issues:[]},parent:null},T=p._parseSync({data:t.data,path:t.path,parent:h});if(T.status==="valid")return T;T.status==="dirty"&&!s&&(s={result:T,ctx:h}),h.common.issues.length&&o.push(h.common.issues)}if(s)return t.common.issues.push(...s.ctx.common.issues),s.result;const d=o.map(p=>new ft(p));return w(t,{code:P.invalid_union,unionErrors:d}),x}}get options(){return this._def.options}}Pi.create=(n,e)=>new Pi({options:n,typeName:U.ZodUnion,...J(e)});const rn=n=>n instanceof Si?rn(n.schema):n instanceof Ft?rn(n.innerType()):n instanceof Oi?[n.value]:n instanceof In?n.options:n instanceof Ci?z.objectValues(n.enum):n instanceof Bi?rn(n._def.innerType):n instanceof vi?[void 0]:n instanceof Ii?[null]:n instanceof Jt?[void 0,...rn(n.unwrap())]:n instanceof Pn?[null,...rn(n.unwrap())]:n instanceof tl||n instanceof Mi?rn(n.unwrap()):n instanceof wi?rn(n._def.innerType):[];class Fa extends H{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.object)return w(t,{code:P.invalid_type,expected:M.object,received:t.parsedType}),x;const i=this.discriminator,a=t.data[i],s=this.optionsMap.get(a);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(w(t,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),x)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const a=new Map;for(const s of t){const o=rn(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const d of o){if(a.has(d))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(d)}`);a.set(d,s)}}return new Fa({typeName:U.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...J(i)})}}function el(n,e){const t=bn(n),i=bn(e);if(n===e)return{valid:!0,data:n};if(t===M.object&&i===M.object){const a=z.objectKeys(e),s=z.objectKeys(n).filter(d=>a.indexOf(d)!==-1),o={...n,...e};for(const d of s){const p=el(n[d],e[d]);if(!p.valid)return{valid:!1};o[d]=p.data}return{valid:!0,data:o}}else if(t===M.array&&i===M.array){if(n.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<n.length;s++){const o=n[s],d=e[s],p=el(o,d);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===M.date&&i===M.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}class Di extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=(s,o)=>{if(Xo(s)||Xo(o))return x;const d=el(s.value,o.value);return d.valid?((Qo(s)||Qo(o))&&t.dirty(),{status:t.value,value:d.data}):(w(i,{code:P.invalid_intersection_types}),x)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,o])=>a(s,o)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Di.create=(n,e,t)=>new Di({left:n,right:e,typeName:U.ZodIntersection,...J(t)});class qt extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.array)return w(i,{code:P.invalid_type,expected:M.array,received:i.parsedType}),x;if(i.data.length<this._def.items.length)return w(i,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),x;!this._def.rest&&i.data.length>this._def.items.length&&(w(i,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...i.data].map((o,d)=>{const p=this._def.items[d]||this._def.rest;return p?p._parse(new kt(i,o,i.path,d)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>Qe.mergeArray(t,o)):Qe.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new qt({...this._def,rest:e})}}qt.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qt({items:n,typeName:U.ZodTuple,rest:null,...J(e)})};class Ai extends H{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.object)return w(i,{code:P.invalid_type,expected:M.object,received:i.parsedType}),x;const a=[],s=this._def.keyType,o=this._def.valueType;for(const d in i.data)a.push({key:s._parse(new kt(i,d,i.path,d)),value:o._parse(new kt(i,i.data[d],i.path,d)),alwaysSet:d in i.data});return i.common.async?Qe.mergeObjectAsync(t,a):Qe.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof H?new Ai({keyType:e,valueType:t,typeName:U.ZodRecord,...J(i)}):new Ai({keyType:Lt.create(),valueType:e,typeName:U.ZodRecord,...J(t)})}}class Ua extends H{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.map)return w(i,{code:P.invalid_type,expected:M.map,received:i.parsedType}),x;const a=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([d,p],h)=>({key:a._parse(new kt(i,d,i.path,[h,"key"])),value:s._parse(new kt(i,p,i.path,[h,"value"]))}));if(i.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const p of o){const h=await p.key,T=await p.value;if(h.status==="aborted"||T.status==="aborted")return x;(h.status==="dirty"||T.status==="dirty")&&t.dirty(),d.set(h.value,T.value)}return{status:t.value,value:d}})}else{const d=new Map;for(const p of o){const h=p.key,T=p.value;if(h.status==="aborted"||T.status==="aborted")return x;(h.status==="dirty"||T.status==="dirty")&&t.dirty(),d.set(h.value,T.value)}return{status:t.value,value:d}}}}Ua.create=(n,e,t)=>new Ua({valueType:e,keyType:n,typeName:U.ZodMap,...J(t)});class Wn extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.set)return w(i,{code:P.invalid_type,expected:M.set,received:i.parsedType}),x;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(w(i,{code:P.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(w(i,{code:P.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const s=this._def.valueType;function o(p){const h=new Set;for(const T of p){if(T.status==="aborted")return x;T.status==="dirty"&&t.dirty(),h.add(T.value)}return{status:t.value,value:h}}const d=[...i.data.values()].map((p,h)=>s._parse(new kt(i,p,i.path,h)));return i.common.async?Promise.all(d).then(p=>o(p)):o(d)}min(e,t){return new Wn({...this._def,minSize:{value:e,message:V.toString(t)}})}max(e,t){return new Wn({...this._def,maxSize:{value:e,message:V.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Wn.create=(n,e)=>new Wn({valueType:n,minSize:null,maxSize:null,typeName:U.ZodSet,...J(e)});class $r extends H{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.function)return w(t,{code:P.invalid_type,expected:M.function,received:t.parsedType}),x;function i(d,p){return $a({data:d,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Na(),wr].filter(h=>!!h),issueData:{code:P.invalid_arguments,argumentsError:p}})}function a(d,p){return $a({data:d,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Na(),wr].filter(h=>!!h),issueData:{code:P.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Vr){const d=this;return lt(async function(...p){const h=new ft([]),T=await d._def.args.parseAsync(p,s).catch(I=>{throw h.addIssue(i(p,I)),h}),m=await Reflect.apply(o,this,T);return await d._def.returns._def.type.parseAsync(m,s).catch(I=>{throw h.addIssue(a(m,I)),h})})}else{const d=this;return lt(function(...p){const h=d._def.args.safeParse(p,s);if(!h.success)throw new ft([i(p,h.error)]);const T=Reflect.apply(o,this,h.data),m=d._def.returns.safeParse(T,s);if(!m.success)throw new ft([a(T,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new $r({...this._def,args:qt.create(e).rest(Jn.create())})}returns(e){return new $r({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new $r({args:e||qt.create([]).rest(Jn.create()),returns:t||Jn.create(),typeName:U.ZodFunction,...J(i)})}}class Si extends H{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Si.create=(n,e)=>new Si({getter:n,typeName:U.ZodLazy,...J(e)});class Oi extends H{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return w(t,{received:t.data,code:P.invalid_literal,expected:this._def.value}),x}return{status:"valid",value:e.data}}get value(){return this._def.value}}Oi.create=(n,e)=>new Oi({value:n,typeName:U.ZodLiteral,...J(e)});function fm(n,e){return new In({values:n,typeName:U.ZodEnum,...J(e)})}class In extends H{constructor(){super(...arguments),Ri.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return w(t,{expected:z.joinValues(i),received:t.parsedType,code:P.invalid_type}),x}if(Va(this,Ri,"f")||dm(this,Ri,new Set(this._def.values),"f"),!Va(this,Ri,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return w(t,{received:t.data,code:P.invalid_enum_value,options:i}),x}return lt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return In.create(e,{...this._def,...t})}exclude(e,t=this._def){return In.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}Ri=new WeakMap,In.create=fm;class Ci extends H{constructor(){super(...arguments),bi.set(this,void 0)}_parse(e){const t=z.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==M.string&&i.parsedType!==M.number){const a=z.objectValues(t);return w(i,{expected:z.joinValues(a),received:i.parsedType,code:P.invalid_type}),x}if(Va(this,bi,"f")||dm(this,bi,new Set(z.getValidEnumValues(this._def.values)),"f"),!Va(this,bi,"f").has(e.data)){const a=z.objectValues(t);return w(i,{received:i.data,code:P.invalid_enum_value,options:a}),x}return lt(e.data)}get enum(){return this._def.values}}bi=new WeakMap,Ci.create=(n,e)=>new Ci({values:n,typeName:U.ZodNativeEnum,...J(e)});class Vr extends H{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.promise&&t.common.async===!1)return w(t,{code:P.invalid_type,expected:M.promise,received:t.parsedType}),x;const i=t.parsedType===M.promise?t.data:Promise.resolve(t.data);return lt(i.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Vr.create=(n,e)=>new Vr({type:n,typeName:U.ZodPromise,...J(e)});class Ft extends H{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===U.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:o=>{w(i,o),o.fatal?t.abort():t.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const o=a.transform(i.data,s);if(i.common.async)return Promise.resolve(o).then(async d=>{if(t.value==="aborted")return x;const p=await this._def.schema._parseAsync({data:d,path:i.path,parent:i});return p.status==="aborted"?x:p.status==="dirty"||t.value==="dirty"?_r(p.value):p});{if(t.value==="aborted")return x;const d=this._def.schema._parseSync({data:o,path:i.path,parent:i});return d.status==="aborted"?x:d.status==="dirty"||t.value==="dirty"?_r(d.value):d}}if(a.type==="refinement"){const o=d=>{const p=a.refinement(d,s);if(i.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return d.status==="aborted"?x:(d.status==="dirty"&&t.dirty(),o(d.value),{status:t.value,value:d.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>d.status==="aborted"?x:(d.status==="dirty"&&t.dirty(),o(d.value).then(()=>({status:t.value,value:d.value}))))}if(a.type==="transform")if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Ti(o))return o;const d=a.transform(o.value,s);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:d}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>Ti(o)?Promise.resolve(a.transform(o.value,s)).then(d=>({status:t.value,value:d})):o);z.assertNever(a)}}Ft.create=(n,e,t)=>new Ft({schema:n,typeName:U.ZodEffects,effect:e,...J(t)}),Ft.createWithPreprocess=(n,e,t)=>new Ft({schema:e,effect:{type:"preprocess",transform:n},typeName:U.ZodEffects,...J(t)});class Jt extends H{_parse(e){return this._getType(e)===M.undefined?lt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Jt.create=(n,e)=>new Jt({innerType:n,typeName:U.ZodOptional,...J(e)});class Pn extends H{_parse(e){return this._getType(e)===M.null?lt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Pn.create=(n,e)=>new Pn({innerType:n,typeName:U.ZodNullable,...J(e)});class Bi extends H{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===M.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Bi.create=(n,e)=>new Bi({innerType:n,typeName:U.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...J(e)});class wi extends H{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ei(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ft(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ft(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}wi.create=(n,e)=>new wi({innerType:n,typeName:U.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...J(e)});class xa extends H{_parse(e){if(this._getType(e)!==M.nan){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.nan,received:i.parsedType}),x}return{status:"valid",value:e.data}}}xa.create=n=>new xa({typeName:U.ZodNaN,...J(n)});const kI=Symbol("zod_brand");class tl extends H{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class _i extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?x:s.status==="dirty"?(t.dirty(),_r(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?x:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(e,t){return new _i({in:e,out:t,typeName:U.ZodPipeline})}}class Mi extends H{_parse(e){const t=this._def.innerType._parse(e),i=a=>(Ti(a)&&(a.value=Object.freeze(a.value)),a);return Ei(t)?t.then(a=>i(a)):i(t)}unwrap(){return this._def.innerType}}Mi.create=(n,e)=>new Mi({innerType:n,typeName:U.ZodReadonly,...J(e)});function mm(n,e={},t){return n?Mr.create().superRefine((i,a)=>{var s,o;if(!n(i)){const d=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(o=(s=d.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,h=typeof d=="string"?{message:d}:d;a.addIssue({code:"custom",...h,fatal:p})}}):Mr.create()}const qI={object:Me.lazycreate};var U;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(U||(U={}));const JI=(n,e={message:`Input not instance of ${n.name}`})=>mm(t=>t instanceof n,e),ja=Lt.create,nl=gn.create,WI=xa.create,HI=vn.create,rl=gi.create,Tm=qn.create,YI=La.create,zI=vi.create,Em=Ii.create,ZI=Mr.create,ka=Jn.create,XI=nn.create,QI=Ga.create,KI=Gt.create,Rm=Me.create,eP=Me.strictCreate,tP=Pi.create,nP=Fa.create,rP=Di.create,iP=qt.create,bm=Ai.create,aP=Ua.create,sP=Wn.create,oP=$r.create,lP=Si.create,cP=Oi.create,gm=In.create,dP=Ci.create,uP=Vr.create,vm=Ft.create,pP=Jt.create,yP=Pn.create,hP=Ft.createWithPreprocess,fP=_i.create;var c=Object.freeze({__proto__:null,defaultErrorMap:wr,setErrorMap:AI,getErrorMap:Na,makeIssue:$a,EMPTY_PATH:SI,addIssueToContext:w,ParseStatus:Qe,INVALID:x,DIRTY:_r,OK:lt,isAborted:Xo,isDirty:Qo,isValid:Ti,isAsync:Ei,get util(){return z},get objectUtil(){return Zo},ZodParsedType:M,getParsedType:bn,ZodType:H,datetimeRegex:hm,ZodString:Lt,ZodNumber:gn,ZodBigInt:vn,ZodBoolean:gi,ZodDate:qn,ZodSymbol:La,ZodUndefined:vi,ZodNull:Ii,ZodAny:Mr,ZodUnknown:Jn,ZodNever:nn,ZodVoid:Ga,ZodArray:Gt,ZodObject:Me,ZodUnion:Pi,ZodDiscriminatedUnion:Fa,ZodIntersection:Di,ZodTuple:qt,ZodRecord:Ai,ZodMap:Ua,ZodSet:Wn,ZodFunction:$r,ZodLazy:Si,ZodLiteral:Oi,ZodEnum:In,ZodNativeEnum:Ci,ZodPromise:Vr,ZodEffects:Ft,ZodTransformer:Ft,ZodOptional:Jt,ZodNullable:Pn,ZodDefault:Bi,ZodCatch:wi,ZodNaN:xa,BRAND:kI,ZodBranded:tl,ZodPipeline:_i,ZodReadonly:Mi,custom:mm,Schema:H,ZodSchema:H,late:qI,get ZodFirstPartyTypeKind(){return U},coerce:{string:n=>Lt.create({...n,coerce:!0}),number:n=>gn.create({...n,coerce:!0}),boolean:n=>gi.create({...n,coerce:!0}),bigint:n=>vn.create({...n,coerce:!0}),date:n=>qn.create({...n,coerce:!0})},any:ZI,array:KI,bigint:HI,boolean:rl,date:Tm,discriminatedUnion:nP,effect:vm,enum:gm,function:oP,instanceof:JI,intersection:rP,lazy:lP,literal:cP,map:aP,nan:WI,nativeEnum:dP,never:XI,null:Em,nullable:yP,number:nl,object:Rm,oboolean:()=>rl().optional(),onumber:()=>nl().optional(),optional:pP,ostring:()=>ja().optional(),pipeline:fP,preprocess:hP,promise:uP,record:bm,set:sP,strictObject:eP,string:ja,symbol:YI,transformer:vm,tuple:iP,undefined:zI,union:tP,unknown:ka,void:QI,NEVER:x,ZodIssueCode:P,quotelessJson:DI,ZodError:ft});function Im(n){var a,s,o;if(!(n!=null&&n.dataType))return ka();const e=n.dataType.isNullable||!1,t=n.dataType.isList||!1;let i=ka();if(((a=n.dataType.entity)==null?void 0:a.type)===r.PrimitiveEntity)switch(n.dataType.entity.name){case v.String:i=ja();break;case v.JSON:i=bm(ka());break;case v.Number:i=nl();break;case v.Boolean:i=rl();break;case v.Date:i=Tm();break;case v.Enum:{const d=n.dataType.options||[];if(d.length===0)throw new Error(`Enum property ${n.name} has no options`);i=gm(d);break}case v.Null:i=Em();break;case v.UUID:i=ja().uuid();break}else if(((s=n.dataType.entity)==null?void 0:s.type)===r.CustomEntity)i=Pm(n.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=n.dataType.entity)==null?void 0:o.type}`);return e&&(i=i.nullable()),t&&(i=i.array()),i}function Pm(n){const e=Rm({});for(const t of n.properties){const i=Im(t);e.shape[t.name]=i}return e}function Dm(n){const e=n.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function Am(n){const e=n.rangeEnd;return new Date(Math.random()*e.getTime())}function Sm(n){const e=n.rangeStart,t=n.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function Om(n){return n.rangeStart&&n.rangeEnd?Sm(n):n.rangeStart?Dm(n):n.rangeEnd?Am(n):new Date}function mP(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Cm={},qa={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.default=EP;let Wa;const TP=new Uint8Array(16);function EP(){if(!Wa&&(Wa=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Wa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wa(TP)}var Dn={},Hn={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=void 0;var RP=/^(?:[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;Ha.default=RP,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=void 0;var bP=gP(Ha);function gP(n){return n&&n.__esModule?n:{default:n}}function vP(n){return typeof n=="string"&&bP.default.test(n)}var IP=vP;Hn.default=IP,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.default=void 0,Dn.unsafeStringify=Bm;var PP=DP(Hn);function DP(n){return n&&n.__esModule?n:{default:n}}const ze=[];for(let n=0;n<256;++n)ze.push((n+256).toString(16).slice(1));function Bm(n,e=0){return ze[n[e+0]]+ze[n[e+1]]+ze[n[e+2]]+ze[n[e+3]]+"-"+ze[n[e+4]]+ze[n[e+5]]+"-"+ze[n[e+6]]+ze[n[e+7]]+"-"+ze[n[e+8]]+ze[n[e+9]]+"-"+ze[n[e+10]]+ze[n[e+11]]+ze[n[e+12]]+ze[n[e+13]]+ze[n[e+14]]+ze[n[e+15]]}function AP(n,e=0){const t=Bm(n,e);if(!(0,PP.default)(t))throw TypeError("Stringified UUID is invalid");return t}var SP=AP;Dn.default=SP,Object.defineProperty(qa,"__esModule",{value:!0}),qa.default=void 0;var OP=BP(Ja),CP=Dn;function BP(n){return n&&n.__esModule?n:{default:n}}let wm,il,al=0,sl=0;function wP(n,e,t){let i=e&&t||0;const a=e||new Array(16);n=n||{};let s=n.node||wm,o=n.clockseq!==void 0?n.clockseq:il;if(s==null||o==null){const b=n.random||(n.rng||OP.default)();s==null&&(s=wm=[b[0]|1,b[1],b[2],b[3],b[4],b[5]]),o==null&&(o=il=(b[6]<<8|b[7])&16383)}let d=n.msecs!==void 0?n.msecs:Date.now(),p=n.nsecs!==void 0?n.nsecs:sl+1;const h=d-al+(p-sl)/1e4;if(h<0&&n.clockseq===void 0&&(o=o+1&16383),(h<0||d>al)&&n.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");al=d,sl=p,il=o,d+=122192928e5;const T=((d&268435455)*1e4+p)%4294967296;a[i++]=T>>>24&255,a[i++]=T>>>16&255,a[i++]=T>>>8&255,a[i++]=T&255;const m=d/4294967296*1e4&268435455;a[i++]=m>>>8&255,a[i++]=m&255,a[i++]=m>>>24&15|16,a[i++]=m>>>16&255,a[i++]=o>>>8|128,a[i++]=o&255;for(let b=0;b<6;++b)a[i+b]=s[b];return e||(0,CP.unsafeStringify)(a)}var _P=wP;qa.default=_P;var Ya={},An={},Ni={};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var MP=NP(Hn);function NP(n){return n&&n.__esModule?n:{default:n}}function $P(n){if(!(0,MP.default)(n))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var VP=$P;Ni.default=VP,Object.defineProperty(An,"__esModule",{value:!0}),An.URL=An.DNS=void 0,An.default=xP;var LP=Dn,GP=FP(Ni);function FP(n){return n&&n.__esModule?n:{default:n}}function UP(n){n=unescape(encodeURIComponent(n));const e=[];for(let t=0;t<n.length;++t)e.push(n.charCodeAt(t));return e}const _m="6ba7b810-9dad-11d1-80b4-00c04fd430c8";An.DNS=_m;const Mm="6ba7b811-9dad-11d1-80b4-00c04fd430c8";An.URL=Mm;function xP(n,e,t){function i(a,s,o,d){var p;if(typeof a=="string"&&(a=UP(a)),typeof s=="string"&&(s=(0,GP.default)(s)),((p=s)===null||p===void 0?void 0:p.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let h=new Uint8Array(16+a.length);if(h.set(s),h.set(a,s.length),h=t(h),h[6]=h[6]&15|e,h[8]=h[8]&63|128,o){d=d||0;for(let T=0;T<16;++T)o[d+T]=h[T];return o}return(0,LP.unsafeStringify)(h)}try{i.name=n}catch{}return i.DNS=_m,i.URL=Mm,i}var za={};Object.defineProperty(za,"__esModule",{value:!0}),za.default=void 0;function jP(n){if(typeof n=="string"){const e=unescape(encodeURIComponent(n));n=new Uint8Array(e.length);for(let t=0;t<e.length;++t)n[t]=e.charCodeAt(t)}return kP(qP(JP(n),n.length*8))}function kP(n){const e=[],t=n.length*32,i="0123456789abcdef";for(let a=0;a<t;a+=8){const s=n[a>>5]>>>a%32&255,o=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);e.push(o)}return e}function Nm(n){return(n+64>>>9<<4)+14+1}function qP(n,e){n[e>>5]|=128<<e%32,n[Nm(e)-1]=e;let t=1732584193,i=-271733879,a=-1732584194,s=271733878;for(let o=0;o<n.length;o+=16){const d=t,p=i,h=a,T=s;t=Ke(t,i,a,s,n[o],7,-680876936),s=Ke(s,t,i,a,n[o+1],12,-389564586),a=Ke(a,s,t,i,n[o+2],17,606105819),i=Ke(i,a,s,t,n[o+3],22,-1044525330),t=Ke(t,i,a,s,n[o+4],7,-176418897),s=Ke(s,t,i,a,n[o+5],12,1200080426),a=Ke(a,s,t,i,n[o+6],17,-1473231341),i=Ke(i,a,s,t,n[o+7],22,-45705983),t=Ke(t,i,a,s,n[o+8],7,1770035416),s=Ke(s,t,i,a,n[o+9],12,-1958414417),a=Ke(a,s,t,i,n[o+10],17,-42063),i=Ke(i,a,s,t,n[o+11],22,-1990404162),t=Ke(t,i,a,s,n[o+12],7,1804603682),s=Ke(s,t,i,a,n[o+13],12,-40341101),a=Ke(a,s,t,i,n[o+14],17,-1502002290),i=Ke(i,a,s,t,n[o+15],22,1236535329),t=et(t,i,a,s,n[o+1],5,-165796510),s=et(s,t,i,a,n[o+6],9,-1069501632),a=et(a,s,t,i,n[o+11],14,643717713),i=et(i,a,s,t,n[o],20,-373897302),t=et(t,i,a,s,n[o+5],5,-701558691),s=et(s,t,i,a,n[o+10],9,38016083),a=et(a,s,t,i,n[o+15],14,-660478335),i=et(i,a,s,t,n[o+4],20,-405537848),t=et(t,i,a,s,n[o+9],5,568446438),s=et(s,t,i,a,n[o+14],9,-1019803690),a=et(a,s,t,i,n[o+3],14,-187363961),i=et(i,a,s,t,n[o+8],20,1163531501),t=et(t,i,a,s,n[o+13],5,-1444681467),s=et(s,t,i,a,n[o+2],9,-51403784),a=et(a,s,t,i,n[o+7],14,1735328473),i=et(i,a,s,t,n[o+12],20,-1926607734),t=tt(t,i,a,s,n[o+5],4,-378558),s=tt(s,t,i,a,n[o+8],11,-2022574463),a=tt(a,s,t,i,n[o+11],16,1839030562),i=tt(i,a,s,t,n[o+14],23,-35309556),t=tt(t,i,a,s,n[o+1],4,-1530992060),s=tt(s,t,i,a,n[o+4],11,1272893353),a=tt(a,s,t,i,n[o+7],16,-155497632),i=tt(i,a,s,t,n[o+10],23,-1094730640),t=tt(t,i,a,s,n[o+13],4,681279174),s=tt(s,t,i,a,n[o],11,-358537222),a=tt(a,s,t,i,n[o+3],16,-722521979),i=tt(i,a,s,t,n[o+6],23,76029189),t=tt(t,i,a,s,n[o+9],4,-640364487),s=tt(s,t,i,a,n[o+12],11,-421815835),a=tt(a,s,t,i,n[o+15],16,530742520),i=tt(i,a,s,t,n[o+2],23,-995338651),t=nt(t,i,a,s,n[o],6,-198630844),s=nt(s,t,i,a,n[o+7],10,1126891415),a=nt(a,s,t,i,n[o+14],15,-1416354905),i=nt(i,a,s,t,n[o+5],21,-57434055),t=nt(t,i,a,s,n[o+12],6,1700485571),s=nt(s,t,i,a,n[o+3],10,-1894986606),a=nt(a,s,t,i,n[o+10],15,-1051523),i=nt(i,a,s,t,n[o+1],21,-2054922799),t=nt(t,i,a,s,n[o+8],6,1873313359),s=nt(s,t,i,a,n[o+15],10,-30611744),a=nt(a,s,t,i,n[o+6],15,-1560198380),i=nt(i,a,s,t,n[o+13],21,1309151649),t=nt(t,i,a,s,n[o+4],6,-145523070),s=nt(s,t,i,a,n[o+11],10,-1120210379),a=nt(a,s,t,i,n[o+2],15,718787259),i=nt(i,a,s,t,n[o+9],21,-343485551),t=Sn(t,d),i=Sn(i,p),a=Sn(a,h),s=Sn(s,T)}return[t,i,a,s]}function JP(n){if(n.length===0)return[];const e=n.length*8,t=new Uint32Array(Nm(e));for(let i=0;i<e;i+=8)t[i>>5]|=(n[i/8]&255)<<i%32;return t}function Sn(n,e){const t=(n&65535)+(e&65535);return(n>>16)+(e>>16)+(t>>16)<<16|t&65535}function WP(n,e){return n<<e|n>>>32-e}function Za(n,e,t,i,a,s){return Sn(WP(Sn(Sn(e,n),Sn(i,s)),a),t)}function Ke(n,e,t,i,a,s,o){return Za(e&t|~e&i,n,e,a,s,o)}function et(n,e,t,i,a,s,o){return Za(e&i|t&~i,n,e,a,s,o)}function tt(n,e,t,i,a,s,o){return Za(e^t^i,n,e,a,s,o)}function nt(n,e,t,i,a,s,o){return Za(t^(e|~i),n,e,a,s,o)}var HP=jP;za.default=HP,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.default=void 0;var YP=$m(An),zP=$m(za);function $m(n){return n&&n.__esModule?n:{default:n}}var ZP=(0,YP.default)("v3",48,zP.default);Ya.default=ZP;var Xa={},Qa={};Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.default=void 0;var XP={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Qa.default=XP,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=void 0;var Vm=Lm(Qa),QP=Lm(Ja),KP=Dn;function Lm(n){return n&&n.__esModule?n:{default:n}}function eD(n,e,t){if(Vm.default.randomUUID&&!e&&!n)return Vm.default.randomUUID();n=n||{};const i=n.random||(n.rng||QP.default)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=i[a];return e}return(0,KP.unsafeStringify)(i)}var tD=eD;Xa.default=tD;var Ka={},es={};Object.defineProperty(es,"__esModule",{value:!0}),es.default=void 0;function nD(n,e,t,i){switch(n){case 0:return e&t^~e&i;case 1:return e^t^i;case 2:return e&t^e&i^t&i;case 3:return e^t^i}}function ol(n,e){return n<<e|n>>>32-e}function rD(n){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const o=unescape(encodeURIComponent(n));n=[];for(let d=0;d<o.length;++d)n.push(o.charCodeAt(d))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const i=n.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let o=0;o<a;++o){const d=new Uint32Array(16);for(let p=0;p<16;++p)d[p]=n[o*64+p*4]<<24|n[o*64+p*4+1]<<16|n[o*64+p*4+2]<<8|n[o*64+p*4+3];s[o]=d}s[a-1][14]=(n.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(n.length-1)*8&4294967295;for(let o=0;o<a;++o){const d=new Uint32Array(80);for(let I=0;I<16;++I)d[I]=s[o][I];for(let I=16;I<80;++I)d[I]=ol(d[I-3]^d[I-8]^d[I-14]^d[I-16],1);let p=t[0],h=t[1],T=t[2],m=t[3],b=t[4];for(let I=0;I<80;++I){const B=Math.floor(I/20),G=ol(p,5)+nD(B,h,T,m)+b+e[B]+d[I]>>>0;b=m,m=T,T=ol(h,30)>>>0,h=p,p=G}t[0]=t[0]+p>>>0,t[1]=t[1]+h>>>0,t[2]=t[2]+T>>>0,t[3]=t[3]+m>>>0,t[4]=t[4]+b>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var iD=rD;es.default=iD,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=void 0;var aD=Gm(An),sD=Gm(es);function Gm(n){return n&&n.__esModule?n:{default:n}}var oD=(0,aD.default)("v5",80,sD.default);Ka.default=oD;var ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.default=void 0;var lD="00000000-0000-0000-0000-000000000000";ts.default=lD;var ns={};Object.defineProperty(ns,"__esModule",{value:!0}),ns.default=void 0;var cD=dD(Hn);function dD(n){return n&&n.__esModule?n:{default:n}}function uD(n){if(!(0,cD.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var pD=uD;ns.default=pD,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return o.default}});var e=T(qa),t=T(Ya),i=T(Xa),a=T(Ka),s=T(ts),o=T(ns),d=T(Hn),p=T(Dn),h=T(Ni);function T(m){return m&&m.__esModule?m:{default:m}}}(Cm);function ll(n,e){if(!n||!e||!n.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=n,this.dstAlphabet=e}ll.prototype.convert=function(n){var e,t,i,a={},s=this.srcAlphabet.length,o=this.dstAlphabet.length,d=n.length,p=typeof n=="string"?"":[];if(!this.isValid(n))throw new Error('Number "'+n+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return n;for(e=0;e<d;e++)a[e]=this.srcAlphabet.indexOf(n[e]);do{for(t=0,i=0,e=0;e<d;e++)t=t*s+a[e],t>=o?(a[i++]=parseInt(t/o,10),t=t%o):i>0&&(a[i++]=0);d=i,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(i!==0);return p},ll.prototype.isValid=function(n){for(var e=0;e<n.length;++e)if(this.srcAlphabet.indexOf(n[e])===-1)return!1;return!0};var yD=ll,hD=yD;function $i(n,e){var t=new hD(n,e);return function(i){return t.convert(i)}}$i.BIN="01",$i.OCT="01234567",$i.DEC="0123456789",$i.HEX="0123456789abcdef";var fD=$i;const{v4:cl,validate:mD}=Cm,rs=fD,dl={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},TD={consistentLength:!0};let ul;const Fm=(n,e,t)=>{const i=e(n.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?i:i.padStart(t.shortIdLength,t.paddingChar)},Um=(n,e)=>{const i=e(n).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},ED=n=>Math.ceil(Math.log(2**128)/Math.log(n));var RD=(()=>{const n=(e,t)=>{const i=e||dl.flickrBase58,a={...TD,...t};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=ED(i.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},d=rs(rs.HEX,i),p=rs(i,rs.HEX),h=()=>Fm(cl(),d,o),m={alphabet:i,fromUUID:b=>Fm(b,d,o),maxLength:s,generate:h,new:h,toUUID:b=>Um(b,p),uuid:cl,validate:(b,I=!1)=>{if(!b||typeof b!="string")return!1;const B=a.consistentLength?b.length===s:b.length<=s,G=b.split("").every(q=>i.includes(q));return I===!1?B&&G:B&&G&&mD(Um(b,p))}};return Object.freeze(m),m};return n.constants=dl,n.uuid=cl,n.generate=()=>(ul||(ul=n(dl.flickrBase58).generate),ul()),n})();const is=mP(RD);function xm(){return is().uuid()}function jm(n){return n.rangeStart+Math.random()}function km(n){const e=n.rangeEnd;return Math.random()*e}function qm(n){const e=n.rangeStart,t=n.rangeEnd;return Math.random()*(t-e)+e}function Jm(n){return n.rangeStart&&n.rangeEnd?qm(n):n.rangeStart?jm(n):n.rangeEnd?km(n):Math.random()}function Wm(n){const e=n.rangeStart;return Math.random().toString(36).substring(e)}function Hm(n){const e=n.rangeEnd;return Math.random().toString(36).substring(0,e)}function Ym(n){const e=n.rangeStart,t=n.rangeEnd;return Math.random().toString(36).substring(e,t)}function zm(n){return n.rangeStart&&n.rangeEnd?Ym(n):n.rangeStart?Wm(n):n.rangeEnd?Hm(n):Math.random().toString(36)}function Zm(n){return Math.random()>=.5}function bD(n){if(!n||!n.autogeneration)return null;switch(n.autogeneration.type){case xe.CurrentDateAndTime:if(n.name===v.Date)return new Date;case xe.Random:{if(n.name===v.Date)return Om(n.autogeneration);if(n.name===v.Number)return Jm(n.autogeneration);if(n.name===v.String)return zm(n.autogeneration);if(n.name===v.Boolean)return Zm(n.autogeneration)}case xe.Unique:if(n.name===v.UUID)return xm();default:throw new Error(`Generating a ${n.autogeneration.type} value for a ${n.name} is not supported`)}}const W="e7eb5382-3d99-44fd-972a-b8b1e819f6be",pl="global-user-variable-id",Xm="last-executed-timestamp-variable-id",gD={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-data-type-id",entityType:r.DataType},vD={id:"alternative-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:r.Property},ID={id:"alternative-relational-database-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:null,parent:gD,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:vD},as={id:"alternative-relational-database-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},PD={required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!1,implements:Ca,static:!0,index:0,dataType:ID,description:"The name of the main database inside of the server instance where the data will be stored.",parent:as};r.GenericReference,r.DataType;const DD={id:"alternative-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:r.Property},AD={id:"alternative-relational-database-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:DD},SD={required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:r.Property,private:!1,abstract:!1,implements:Ba,static:!0,index:1,dataType:AD,description:"The username that will be used to connect to the database.",parent:as};r.GenericReference,r.DataType;const OD={id:"alternative-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:r.Property},CD={id:"alternative-relational-database-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:OD},BD={required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:r.Property,private:!1,abstract:!1,implements:wa,static:!0,index:2,dataType:CD,description:"The password that will be used to connect to the database.",parent:as},wD={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-data-type-id",entityType:r.DataType},_D={id:"alternative-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:r.Property},MD={id:"alternative-relational-database-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Be,asType:!1,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.Number,value:6,parent:wD,autogeneration:null,valueAsType:null},parent:_D},ND={required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!1,implements:_a,static:!0,index:3,dataType:MD,description:"The minimum size of the database in GB.",parent:as},$D={id:"alternative-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:W,entityType:r.Project},Qm={id:"alternative-relational-database-entity-id",type:r.CustomEntity,version:1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[PD,SD,BD,ND],methods:[],abstractMethods:[],extends:[],implements:[Rn],x:0,y:0,parent:$D},VD={id:"animal-prototype-database-property-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-id",entityType:r.Property},LD={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-data-type-default-value-id",entityType:r.DataType},GD={id:"animal-prototype-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Rn,asType:!1,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:v.EntityTemplate,valueAsType:Qm,autogeneration:null,parent:LD},parent:VD},FD={id:"animal-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},UD={required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:GD,description:"The database that the entity belongs to.",parent:FD},xD={type:r.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:r.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},jD={id:"c1930577-9e79-48a6-8905-be24611015c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xD},kD={type:r.GenericReference,id:"e2b9e456-f2b3-4dc7-85a2-fbb68ed0c9c7",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},qD={required:!0,type:r.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:1,name:"Name",description:"The name of the animal",implements:null,static:!1,private:!1,index:0,dataType:jD,abstract:!1,parent:kD},JD={type:r.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:r.Project,entityId:W},WD={type:r.CustomEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[UD,qD],methods:[],extends:[],implements:[we],x:0,y:0,parent:JD},HD={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-data-type-id",entityType:r.DataType},YD={id:"default-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:r.Property},zD={id:"default-relational-database-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:null,parent:HD,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:YD},ss={id:"default-relational-database-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},ZD={required:!0,id:"default-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!1,implements:Ca,static:!0,index:0,dataType:zD,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ss};r.GenericReference,r.DataType;const XD={id:"default-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:r.Property},QD={id:"default-relational-database-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:XD},KD={required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:r.Property,private:!1,abstract:!1,implements:Ba,static:!0,index:1,dataType:QD,description:"The username that will be used to connect to the database.",parent:ss};r.GenericReference,r.DataType;const eA={id:"default-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:r.Property},tA={id:"default-relational-database-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:eA},nA={required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:r.Property,private:!1,abstract:!1,implements:wa,static:!0,index:2,dataType:tA,description:"The password that will be used to connect to the database.",parent:ss},rA={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-data-type-id",entityType:r.DataType},iA={id:"default-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:r.Property},aA={id:"default-relational-database-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Be,asType:!1,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.Number,value:6,parent:rA,autogeneration:null,valueAsType:null},parent:iA},sA={required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!1,implements:_a,static:!0,index:3,dataType:aA,description:"The minimum size of the database in GB.",parent:ss},oA={id:"default-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:W,entityType:r.Project},yl={id:"default-relational-database-entity-id",type:r.CustomEntity,version:1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[ZD,KD,nA,sA],methods:[],abstractMethods:[],extends:[],implements:[Rn],x:0,y:0,parent:oA},lA={id:"user-prototype-database-property-data-type-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-data-type-id",entityType:r.DataType},cA={id:"user-prototype-database-property-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-id",entityType:r.Property},dA={id:"user-prototype-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Rn,asType:!1,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:v.EntityTemplate,valueAsType:yl,autogeneration:null,parent:lA},parent:cA},uA={id:"user-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},pA={required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:dA,description:"The database that the entity belongs to.",parent:uA},yA={type:r.GenericReference,id:"user-prototype-parent-ref-id",entityType:r.Project,entityId:W},hl={type:r.CustomEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[we],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[pA],methods:[],x:0,y:0,parent:yA},hA={type:r.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:r.Property,entityId:"person-date-of-birth-property-id"},fA={id:"person-date-of-birth-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sr,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:hA},mA={type:r.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},TA={required:!0,type:r.Property,id:"person-date-of-birth-property-id",version:1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,dataType:fA,abstract:!1,parent:mA},EA={type:r.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:r.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},RA={id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:EA},bA={type:r.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},gA={required:!0,type:r.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,dataType:RA,abstract:!1,parent:bA},vA={type:r.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:r.Project,entityId:W},ct={type:r.CustomEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version: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:[gA,TA],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[hl],x:0,y:0,parent:vA},IA={type:r.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},PA={type:r.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:r.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},DA={type:r.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},AA={type:r.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:r.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},SA={id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AA},fl={isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:r.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,dataType:SA,readsValue:DA,required:!0,index:0,parent:PA},OA={type:r.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},CA={type:r.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},Km={type:r.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[fl],calledByError:[],calledByEntry:[OA],calledBySuccess:[],throws:null,x:0,y:0,parent:CA},BA={type:r.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},wA={id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:BA},eT={id:"500dee3a-3435-4453-9699-0d053f646523",type:r.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,dataType:wA,required:!0,writesValues:[fl],index:0,parent:IA},_A={type:r.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},tT={type:r.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[eT],calls:[Km],returnStatements:[Km],index:0,collapsed:!1,private:!1,x:0,y:0,parent:_A},MA={type:r.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:r.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},NA={id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MA},$A={type:r.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:r.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},VA={type:r.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},LA={id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:r.VariableDeclaration,version:1,name:"Output Account Owner",description:null,dataType:NA,readsValue:$A,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:VA},GA={type:r.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},FA={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:r.OutputMap,version:1,declaration:fl,writesValues:[LA],index:0,parent:GA},UA={type:r.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},xA={type:r.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},jA={type:r.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},kA={id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jA},qA={type:r.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},JA={type:r.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},WA={type:r.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},HA={type:r.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},nT={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:r.InputMap,version:1,declaration:eT,name:null,description:null,readsValue:HA,dynamicArguments:[],defaultValue:null,index:0,parent:WA},YA={type:r.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,dataType:kA,readsValue:qA,writesValues:[nT],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:JA},zA={type:r.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:tT,inputs:[nT],outputs:[FA],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[UA],calledBySuccess:[],parent:xA,error:null,x:0,y:0},ZA={type:r.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},XA={id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ZA},QA={type:r.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},KA={id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:r.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",dataType:XA,required:!0,index:0,writesValues:[YA],parent:QA},eS={type:r.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},tS={type:r.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[KA],collapsed:!0,returnStatements:[],calls:[zA],private:!1,index:0,implements:null,x:0,y:0,parent:eS},nS={type:r.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:r.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},rS={id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:nS},iS={type:r.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},rT={required:!0,type:r.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:1,name:"Account number",description:null,private:!0,implements:null,static:!1,index:0,dataType:rS,abstract:!1,parent:iS},aS={type:r.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:r.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},sS={id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:aS},oS={type:r.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},iT={required:!0,type:r.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,dataType:sS,implements:null,static:!1,private:!0,abstract:!1,parent:oS},lS={type:r.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:r.Project,entityId:W},Lr={type:r.CustomEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[rT,iT],methods:[tT,tS],extends:[],implements:[we],x:0,y:0,parent:lS},Vi="bitcoin-api-response-id",aT="time-property-id",sT="disclamer-property-id",oT="chart-name-property-id",lT="bpi-property-id",os="bpi-entity-id",cT="usd-property-id",dT="gbp-property-id",uT="eur-property-id",Gr="currency-entity-id",pT="currency-code-property-id",yT="currency-symbol-property-id",hT="currency-rate-property-id",fT="currency-description-property-id",mT="currency-rate-number-property-id",cS={type:r.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:r.Property,entityId:pT},dS={id:"code-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:En,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["USD","GBP","EUR"],constant:!1,parent:cS},uS={type:r.GenericReference,id:"code-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},pS={required:!0,type:r.Property,id:pT,version:1,name:"code",description:null,dataType:dS,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:uS},yS={type:r.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:r.Property,entityId:yT},hS={id:"symbol-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:En,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["$","£","€"],constant:!1,parent:yS},fS={type:r.GenericReference,id:"symbol-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},mS={required:!0,type:r.Property,id:yT,version:1,name:"symbol",description:null,index:0,dataType:hS,implements:null,static:!1,private:!1,abstract:!1,parent:fS},TS={type:r.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:r.Property,entityId:hT},ES={id:"rate-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:TS},RS={type:r.GenericReference,id:"rate-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},bS={required:!0,type:r.Property,id:hT,version:1,name:"rate",description:null,index:0,dataType:ES,implements:null,static:!1,private:!1,abstract:!1,parent:RS},gS={type:r.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:r.Property,entityId:fT},vS={id:"description-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gS},IS={type:r.GenericReference,id:"description-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},PS={required:!0,type:r.Property,id:fT,version:1,name:"description",description:null,dataType:vS,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:IS},DS={type:r.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:r.Property,entityId:mT},AS={id:"rate-number-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DS},SS={type:r.GenericReference,id:"rate-number-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},OS={required:!0,type:r.Property,id:mT,version:1,name:"rate_float",description:null,dataType:AS,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:SS},CS={type:r.GenericReference,id:"currency-prototype-parent-ref-id",entityType:r.Project,entityId:W},ls={type:r.CustomEntity,id:Gr,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[pS,mS,bS,PS,OS],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:CS},BS={type:r.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:r.Property,entityId:cT},wS={id:"usd-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ls,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:BS},_S={type:r.GenericReference,id:"usd-property-parent-ref-id",entityType:r.CustomEntity,entityId:os},MS={required:!0,id:cT,type:r.Property,version:1,name:"USD",description:null,index:0,dataType:wS,implements:null,static:!1,private:!1,abstract:!1,parent:_S},NS={type:r.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:r.Property,entityId:dT},$S={id:"gbp-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ls,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:NS},VS={type:r.GenericReference,id:"gbp-property-parent-ref-id",entityType:r.CustomEntity,entityId:os},LS={required:!0,id:dT,type:r.Property,version:1,name:"GBP",description:null,index:0,dataType:$S,implements:null,static:!1,private:!1,abstract:!1,parent:VS},GS={type:r.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:r.Property,entityId:uT},FS={id:"eur-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ls,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:GS},US={type:r.GenericReference,id:"eur-property-parent-ref-id",entityType:r.CustomEntity,entityId:os},xS={required:!0,id:uT,type:r.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,dataType:FS,private:!1,abstract:!1,parent:US},jS={type:r.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:r.Project,entityId:W},TT={type:r.CustomEntity,id:os,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[MS,LS,xS],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:jS},kS={type:r.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:r.Property,entityId:aT},qS={id:"time-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:go,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kS},JS={type:r.GenericReference,id:"time-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},WS={required:!0,type:r.Property,id:aT,version:1,name:"time",description:null,index:0,dataType:qS,implements:null,static:!1,private:!1,abstract:!1,parent:JS},HS={type:r.GenericReference,id:"disclamer-property-data-type-parent-ref-id",entityType:r.Property,entityId:sT},YS={id:"disclamer-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:HS},zS={type:r.GenericReference,id:"disclamer-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},ZS={required:!0,type:r.Property,id:sT,version:1,name:"disclamer",description:null,index:0,dataType:YS,implements:null,static:!1,private:!1,abstract:!1,parent:zS},XS={type:r.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:r.Property,entityId:oT},QS={id:"chart-name-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:XS},KS={type:r.GenericReference,id:"chart-name-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},eO={required:!0,type:r.Property,id:oT,version:1,name:"chartName",description:null,index:0,dataType:QS,implements:null,static:!1,private:!1,abstract:!1,parent:KS},tO={type:r.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:r.Property,entityId:lT},nO={id:"bpi-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:TT,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:tO},rO={type:r.GenericReference,id:"bpi-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},iO={required:!0,type:r.Property,id:lT,version:1,name:"bpi",description:null,implements:null,index:0,dataType:nO,static:!1,private:!1,abstract:!1,parent:rO},aO={type:r.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:r.Project,entityId:W},ET={type:r.CustomEntity,id:Vi,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[WS,ZS,eO,iO],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:aO},sO={type:r.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},oO={id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:sO},lO={type:r.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:r.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},cO={type:r.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:r.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},dO={id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cO},uO={type:r.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},RT={isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.ReturnDeclaration,version:1,name:"New Company Owner",description:"The new owner of the company",dataType:dO,readsValue:uO,required:!0,index:0,parent:lO},pO={type:r.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},yO={id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:r.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,dataType:oO,writesValues:[RT],required:!0,index:0,parent:pO},hO={type:r.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},fO={type:r.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},mO={type:r.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},bT={type:r.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[RT],calledByError:[],calledByEntry:[fO],calledBySuccess:[],throws:null,x:0,y:0,parent:mO},TO={type:r.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[yO],calls:[bT],index:0,collapsed:!1,implements:null,returnStatements:[bT],private:!1,x:0,y:0,parent:hO},EO={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},RO={type:r.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},bO={type:r.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:r.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},gO={type:r.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},vO={type:r.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:r.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},IO={id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:vO},ml={isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:r.ReturnDeclaration,version:1,name:"Is name registered",description:"Whether the company name is already registered",dataType:IO,readsValue:gO,required:!0,index:0,parent:bO},PO={type:r.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},Tl={type:r.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[ml],calledByError:[],calledByEntry:[],calledBySuccess:[EO,PO],throws:null,x:0,y:0,parent:RO},DO={type:r.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},AO={type:r.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},gT={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:1,declaration:Vo,name:null,description:null,dynamicArguments:[],readsValue:AO,defaultValue:null,parent:DO,index:2},SO={type:r.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},OO={id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:SO},CO={type:r.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},BO={type:r.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:r.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},wO={type:r.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:r.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},vT={type:r.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",dataType:OO,readsValue:BO,writesValues:[ml],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[wO],successCalls:[Tl],errorCalls:[],internalCalls:[],x:0,y:0,parent:CO},_O={type:r.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:r.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},MO={type:r.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NO={type:r.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:va,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:r.PrimitiveValue,version:1,value:"https://api.publicapis.org/entries",name:v.String,valueAsType:null,parent:_O,autogeneration:null},index:1,dynamicArguments:[],parent:MO},$O={type:r.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},VO={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:r.OutputMap,version:1,declaration:yi,index:2,writesValues:[vT],parent:$O},LO={type:r.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},GO={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:r.InputMap,version:1,declaration:ga,name:null,description:null,dynamicArguments:[],readsValue:null,index:0,defaultValue:null,parent:LO},FO={type:r.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},UO={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:r.InputMap,version:1,name:null,description:null,declaration:Ia,dynamicArguments:[],index:3,readsValue:null,defaultValue:null,parent:FO},xO={type:r.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},jO={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:r.InputMap,version:1,declaration:Pa,name:null,description:null,dynamicArguments:[],readsValue:null,index:4,defaultValue:null,parent:xO},kO={type:r.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},qO={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:r.OutputMap,version:1,declaration:Da,index:1,writesValues:[],parent:kO},JO={type:r.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},WO={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:r.OutputMap,version:1,declaration:yi,index:0,writesValues:[],parent:JO},HO={type:r.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},YO={type:r.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},zO={type:r.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},ZO={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:r.FunctionCall,entityId:"abb5d456-ee85-4800-bdd9-d409415f60d7"},XO={type:r.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:r.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},QO={id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:XO},KO={type:r.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:r.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},IT={isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:r.ReturnDeclaration,version:1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:QO,required:!0,readsValue:null,index:0,parent:KO},eC={type:r.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ZO],throws:IT,x:0,y:0,parent:zO},tC={type:r.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},nC={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:r.OutputMap,declaration:Go,version:1,writesValues:[IT],index:0,parent:tC},rC={type:r.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:hi,inputs:[GO,NO,gT,UO,jO],outputs:[WO,qO,VO],process:null,calledByError:[],calledByEntry:[HO],calledBySuccess:[],successCalls:[Tl,vT],errorCalls:[eC],error:nC,dynamicArguments:[],x:0,y:0,parent:YO},iC={type:r.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:r.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},aC={type:r.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},sC={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:1,declaration:Ea,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:r.PrimitiveValue,version:1,value:"?name=",name:v.String,parent:iC,valueAsType:null,autogeneration:null},dynamicArguments:[],index:0,parent:aC},oC={type:r.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},lC={type:r.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},cC={type:r.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},dC={id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cC},uC={type:r.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:r.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},pC={type:r.GenericReference,id:"assembled-query-string-called-by-ref",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},PT={type:r.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:1,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",dataType:dC,readsValue:uC,writesValues:[gT],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[pC],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:lC},yC={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:r.OutputMap,version:1,writesValues:[PT],declaration:ui,index:0,parent:oC},hC={type:r.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},fC={type:r.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},mC={type:r.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:r.ArgumentDeclaration},TC={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},DT={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:r.InputMap,declaration:Ra,name:null,description:null,readsValue:mC,dynamicArguments:[],defaultValue:null,index:1,parent:TC},EC={type:r.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:pi,version:1,inputs:[sC,DT],outputs:[yC],process:null,calledByError:[],calledByEntry:[hC],calledBySuccess:[],dynamicArguments:[],successCalls:[PT],errorCalls:[],error:null,x:0,y:0,parent:fC},RC={type:r.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:r.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},bC={id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:RC},gC={type:r.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},AT={id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:r.ArgumentDeclaration,version:1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:bC,required:!1,writesValues:[DT],index:0,parent:gC},vC={type:r.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:r.Project,entityId:W},ST={type:r.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version: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:[AT],calls:[EC,rC],returnStatements:[Tl],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:vC},IC={type:r.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},PC={type:r.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},DC={type:r.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},AC={type:r.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},OT={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:r.InputMap,declaration:AT,name:null,description:null,readsValue:DC,dynamicArguments:[],defaultValue:null,index:0,parent:AC},SC={type:r.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},OC={type:r.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:r.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},CC={id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:OC},BC={type:r.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:r.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},wC={type:r.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},_C={type:r.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},CT={type:r.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",dataType:CC,readsValue:BC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[_C],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:wC},MC={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.OutputMap,version:1,declaration:ml,writesValues:[CT],index:0,parent:SC},NC={type:r.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:ST,inputs:[OT],outputs:[MC],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[IC],successCalls:[CT],errorCalls:[],error:null,x:0,y:0,parent:PC},$C={type:r.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},VC={type:r.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},LC={type:r.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},GC={type:r.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},BT={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:r.InputMap,declaration:kn.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:LC,defaultValue:null,index:0,parent:GC},FC={type:r.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:kn,inputs:[BT],calledByError:[],calledByEntry:[$C],calledBySuccess:[],successCalls:[NC],errorCalls:[],x:0,y:0,parent:VC},UC={type:r.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},xC={type:r.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:r.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},jC={id:"d64152ea-831f-4426-9506-a39bfa170513",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xC},kC={type:r.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},qC={type:r.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},JC={type:r.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},wT={type:r.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:1,name:"New bank account",description:"The new entity value representing the new bank account of the company",dataType:jC,readsValue:qC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[JC],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:kC},WC={type:r.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},HC={id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:WC},YC={id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:r.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:HC,required:!0,index:1,writesValues:[wT],parent:UC},zC={type:r.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},ZC={type:r.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},XC={type:r.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},QC={id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:XC},KC={id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:r.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:QC,required:!0,index:0,writesValues:[BT,OT],parent:ZC},eB={type:r.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:1,name:"Company changed event",description:"The event that is triggered when a company is changed",returnStatements:[],collapsed:!1,inputs:[KC,YC],calls:[FC,wT],index:1,private:!1,implements:null,x:0,y:0,parent:zC},tB={type:r.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},nB={type:r.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:r.Property,entityId:"employee-manager-property-id"},rB={id:"employee-manager-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:tB,isList:!1,isNullable:!0,asType:!1,defaultValue:null,constant:!1,parent:nB},iB={type:r.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},aB={required:!0,type:r.Property,id:"employee-manager-property-id",version:1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,dataType:rB,abstract:!1,parent:iB},sB={type:r.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:r.Property,entityId:"employee-start-date-property-id"},oB={id:"employee-start-date-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sr,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:sB},lB={type:r.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},cB={required:!0,type:r.Property,id:"employee-start-date-property-id",version:1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,implements:null,dataType:oB,abstract:!1,parent:lB},dB={type:r.GenericReference,id:"employee-department-property-ref-id",entityType:r.Property,entityId:"employee-department-property-id"},uB={id:"employee-department-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:En,isList:!1,isNullable:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],defaultValue:null,constant:!1,parent:dB},pB={type:r.GenericReference,id:"employee-department-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},yB={required:!0,type:r.Property,id:"employee-department-property-id",version:1,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,implements:null,static:!1,private:!1,dataType:uB,abstract:!1,parent:pB},hB={type:r.GenericReference,id:"employee-prototype-parent-ref-id",entityType:r.Project,entityId:W},Pt={type:r.CustomEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[yB,cB,aB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[ct],x:0,y:0,parent:hB},fB={type:r.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:r.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},mB={id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:fB},TB={type:r.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},EB={required:!0,type:r.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,implements:null,dataType:mB,abstract:!1,parent:TB},RB={type:r.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:r.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},bB={id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:RB},gB={type:r.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},El={required:!0,type:r.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,dataType:bB,abstract:!1,parent:gB},vB={type:r.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:r.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},IB={id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:vB},PB={type:r.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},DB={required:!0,type:r.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,dataType:IB,private:!0,abstract:!1,parent:PB},AB={type:r.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:r.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},SB={id:"ad44250b-40c2-48f7-a480-381fa938f562",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AB},OB={type:r.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},CB={required:!0,type:r.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,dataType:SB,implements:null,private:!0,static:!1,abstract:!1,parent:OB},BB={type:r.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:r.Project,entityId:W},mt={type:r.CustomEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[EB,El,DB,CB],static:!1,abstract:!1,abstractMethods:[],methods:[TO,eB],extends:[],implements:[we],x:0,y:0,parent:BB},wB={type:r.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:r.Project,entityId:W},Rl={type:r.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:1,name:"Show popup",description:null,inputs:[],calls:[],returnStatements:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:wB};r.GenericReference,r.DataType;const _B={id:"cron-job-entity-expression-property-ref-id",type:r.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:r.Property},MB={id:"cron-job-entity-expression-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:_B},NB={id:"cron-job-entity-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",entityType:r.CustomEntity},$B={required:!0,id:"cron-job-entity-expression-property-id",type:r.Property,version:1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",dataType:MB,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:NB},VB={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:r.GenericReference,entityId:"show-popup-func-decl-id",entityType:r.FunctionDeclaration},LB={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:r.FunctionDeclaration},GB={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:r.FunctionCall,declaration:Rl,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[VB],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:LB},FB={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",entityType:r.CustomEntity},UB={id:"cron-job-entity-trigger-func-decl-id",version:1,type:r.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:qo,calls:[GB],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:FB},xB={id:"cron-job-entity-parent-ref-id",type:r.GenericReference,entityId:W,entityType:r.Project},jB={id:"cron-job-entity-id",version:1,type:r.CustomEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[$B],static:!0,abstract:!1,abstractMethods:[],extends:[Jo],implements:[],methods:[UB],x:0,y:0,parent:xB},kB={type:r.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:r.Project,entityId:W},qB={type:r.CustomEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[Oa],x:0,y:0,parent:kB},_T="f558fbf8-67de-4545-9804-6ae621e0b2d4",JB={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointPathParamsVariableDataType"},WB={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},HB={id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:JB,autogeneration:null,valueAsType:null},parent:WB},YB={id:"getCompanyByIdEndpointReachedEntityEventRef",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},zB={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointRequestHeadersVariableDataType"},ZB={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},XB={id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:zB,autogeneration:null,valueAsType:null},parent:ZB},QB={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:r.ArgumentDeclaration,writesValues:[],name:"Request headers",dataType:XB,required:!0,index:0,parent:YB},KB={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},ew={id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:r.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,name:"Path parameters",writesValues:[],dataType:HB,required:!0,index:1,parent:KB},tw={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},nw={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointRequestQueryParamsVariableDataType"},rw={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},iw={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:F,defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:nw,autogeneration:null,valueAsType:null},parent:rw},aw={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version: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:r.ArgumentDeclaration,writesValues:[],name:"Request query params",dataType:iw,required:!0,index:2,parent:tw},sw={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},ow={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},lw={id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:ow},cw={id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:r.ArgumentDeclaration,writesValues:[],name:"Request body",dataType:lw,index:3,required:!0,parent:sw},dw={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},uw={id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:dw},pw={id:"getCompanyByIdEndpointReturnStatementRef",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},yw={isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version: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:r.ReturnDeclaration,name:"Response code",dataType:uw,readsValue:null,required:!0,index:0,parent:pw},hw={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointResponseHeadersDataType"},fw={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},mw={id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.JSON,value:{},parent:hw,autogeneration:null,valueAsType:null},parent:fw},Tw={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},Ew={isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:r.ReturnDeclaration,name:"Response headers",dataType:mw,readsValue:null,required:!0,index:1,parent:Tw},Rw={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},bw={id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:Rw},gw={id:"getCompanyByIdEndpointReturnStatementRefThree",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},vw={isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:r.ReturnDeclaration,name:"Response body",dataType:bw,readsValue:null,required:!0,index:2,parent:gw},Iw={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:r.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:r.FunctionDeclaration},Pw={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},Dw={id:"getCompanyByIdEndpointReturnStatement",type:r.ReturnStatement,version:1,outputs:[yw,Ew,vw],calledByError:[],calledByEntry:[Iw],calledBySuccess:[],throws:null,x:0,y:0,parent:Pw},Aw={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_T},Sw={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:r.FunctionDeclaration,inputs:[QB,ew,aw,cw],returnStatements:[Dw],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:jo,index:0,private:!1,x:0,y:0,parent:Aw},Ow={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointPathPropertyDataType"},Cw={id:"getCompanyByIdEndpointPathPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"getCompanyByIdEndpointPathProperty"},Bw={id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:v.String,value:"/company/{id}",parent:Ow,valueAsType:null,autogeneration:null},parent:Cw},ww={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},_w={required:!0,id:"getCompanyByIdEndpointPathProperty",name:"Path",version:1,type:r.Property,private:!1,abstract:!1,static:!0,implements:Uo,dataType:Bw,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:ww},Mw={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointMethodPropertyDataType"},Nw={id:"getCompanyByIdEndpointMethodPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"getCompanyByIdEndpointMethodProperty"},$w={id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:En,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,value:"GET",name:v.Enum,parent:Mw,valueAsType:null,autogeneration:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Nw},Vw={id:"getCompanyByIdEndpointBaseEntityRefThree",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Lw={required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:r.Property,private:!1,abstract:!1,static:!0,implements:xo,index:0,dataType:$w,description:null,parent:Vw},Gw={type:r.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:r.Project,entityId:W},Fw={type:r.CustomEntity,id:_T,version:1,name:"Get given company data by id",description:null,properties:[_w,Lw],methods:[Sw],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[Oa],x:0,y:0,parent:Gw},Uw={id:"product-prototype-database-property-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-id",entityType:r.Property},xw={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-data-type-default-value-id",entityType:r.DataType},jw={id:"product-prototype-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Rn,asType:!1,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:v.EntityTemplate,valueAsType:yl,autogeneration:null,parent:xw},parent:Uw},kw={id:"product-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},qw={required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:jw,description:"The database that the entity belongs to.",parent:kw},Jw={type:r.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:r.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},Ww={id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Jw},Hw={type:r.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:r.CustomEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},Yw={required:!0,type:r.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,dataType:Ww,abstract:!1,parent:Hw},zw={type:r.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:r.Project,entityId:W},Zw={type:r.CustomEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[we],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[qw,Yw],methods:[],x:0,y:0,parent:zw},Li="project-loaded-event-id",Wt="get-bitcoin-price-http-call-operation-id",MT="get-bitcoin-price-http-call-response-body-id",cs="validate-bitcoin-price-response-operation-ids",Xw={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:MT},Qw={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:r.Operation,entityId:cs},NT={id:"validate-bitcoin-data-to-validate-input-map-id",type:r.InputMap,version:1,declaration:xn.fixedArguments[1],name:null,description:null,readsValue:Xw,defaultValue:null,dynamicArguments:[],index:0,parent:Qw},Kw={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",entityType:r.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},e_={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:r.Operation,entityId:cs},t_={id:"validate-bitcoin-type-to-match-input-map-id",type:r.InputMap,version:1,declaration:xn.fixedArguments[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:r.PrimitiveValue,version:1,name:v.EntityTemplate,valueAsType:ET,value:null,parent:Kw,autogeneration:null},dynamicArguments:[],index:0,parent:e_},n_={type:r.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:r.Operation,entityId:cs},r_={id:"validate-bitcoin-validated-entity-output-map-id",type:r.OutputMap,version:1,declaration:xn.fixedReturns[0],writesValues:[],index:0,parent:n_},i_={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:r.GlobalEvent,entityId:Li},a_={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:r.Operation,entityId:Wt},s_={type:r.Operation,id:cs,version:1,declaration:xn,inputs:[t_,NT],outputs:[r_],process:null,dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[a_],parent:i_},o_={type:r.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:r.FunctionCall,entityId:Wt},l_={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:r.InputMap,declaration:ga,name:null,description:null,readsValue:null,defaultValue:null,dynamicArguments:[],index:0,parent:o_},c_={type:r.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:r.FunctionCall,entityId:Wt},d_={type:r.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:r.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},u_={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:r.InputMap,declaration:va,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:r.PrimitiveValue,version:1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:v.String,parent:d_,valueAsType:null,autogeneration:null},index:1,dynamicArguments:[],parent:c_},p_={type:r.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:r.FunctionCall,entityId:Wt},y_={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:r.InputMap,declaration:Ia,name:null,description:null,readsValue:null,dynamicArguments:[],defaultValue:null,index:2,parent:p_},h_={type:r.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:r.FunctionCall,entityId:Wt},f_={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:r.InputMap,declaration:Pa,name:null,description:null,readsValue:null,dynamicArguments:[],defaultValue:null,index:3,parent:h_},m_={type:r.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:r.FunctionCall,entityId:Wt},T_={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:r.OutputMap,declaration:Da,writesValues:[],index:1,parent:m_},E_={type:r.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:r.FunctionCall,entityId:Wt},R_={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:r.OutputMap,declaration:Lo,writesValues:[],index:0,parent:E_},b_={type:r.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:r.FunctionCall,entityId:Wt},g_={id:MT,type:r.OutputMap,version:1,declaration:yi,writesValues:[NT],index:2,parent:b_},v_={type:r.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:r.FunctionDeclaration,entityId:Wt},I_={type:r.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:r.GlobalEvent,entityId:Li},P_={type:r.Operation,id:Wt,version:1,declaration:hi,inputs:[l_,u_,y_,f_],outputs:[R_,T_,g_],process:null,parent:I_,calledByError:[],calledByEntry:[v_],calledBySuccess:[],dynamicArguments:[],successCalls:[s_],errorCalls:[],error:null,x:0,y:0},D_={type:r.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:r.GlobalEvent,entityId:Li},A_={type:r.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:r.GlobalEvent,entityId:Li},S_={process:null,type:r.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:Rl,inputs:[],outputs:[],calledByError:[],calledByEntry:[D_],calledBySuccess:[],parent:A_,successCalls:[],errorCalls:[],error:null,x:0,y:0},O_={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:r.GenericReference,entityType:r.Project,entityId:"2e7eb5382-3d99-44fd-972a-b8b1e819f6be"},C_={type:r.GlobalEvent,id:Li,version:1,name:Kt.PROJECT_PUBLICATION_COMPLETED,returnStatements:[],collapsed:!1,implements:Ma,parent:O_,inputs:[],calls:[S_,P_],x:0,y:0},wt="abort-execution-func-declaration-id",Gi="abort-execution-func-exec-var-declaration-id",ds="abort-execution-func-small-wait-op-id",bl="abort-execution-func-long-wait-op-id",$T="abort-execution-func-long-wait-process-output-id",VT="abort-execution-func-exec-var-instance-write-id",LT="abort-execution-func-long-wait-return-stmt-id",GT="abort-execution-func-small-wait-return-stmt-id",B_="abort-execution-func-exec-var-instance-abort-call-id",gl="abort-execution-func-exec-var-instance-abort-internal-call-id",FT="abort-execution-func-exec-second-wait-op-id",w_={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},__={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:r.DataType,entityId:"short-wait-return-statement-returned-hello-string-data-type-id"},M_={id:"short-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:__},constant:!1,parent:w_},N_={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:r.ReturnStatement,entityId:GT},$_={isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:M_,readsValue:null,required:!0,index:0,parent:N_},V_={type:r.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:ds},L_={type:r.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:wt},UT={type:r.ReturnStatement,id:GT,version:1,outputs:[$_],calledByError:[],calledByEntry:[],calledBySuccess:[V_],throws:null,x:0,y:0,parent:L_},G_={type:r.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"second-wait-argument-map-id"},F_={type:r.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:r.Operation,entityId:FT},U_={id:"second-wait-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:r.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:v.Number,parent:G_},index:0,parent:F_},x_={type:r.GenericReference,id:"small-wait-parent-ref-id",entityType:r.FunctionDeclaration,entityId:wt},j_={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:r.InternalCall,entityId:gl},k_={id:FT,type:r.Operation,version:1,declaration:ot,inputs:[U_],dynamicArguments:[],outputs:[],process:null,successCalls:[UT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[j_],error:null,parent:x_},q_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:r.VariableInstance,entityId:VT},J_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:r.Operation,entityId:ds},W_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:wt},H_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:Gi},Y_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:r.InternalCall,entityId:gl},z_={id:B_,type:r.VariableInstance,version:1,declaration:H_,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[Y_],parent:W_},xT={id:gl,type:r.InternalCall,version:1,inputs:[],outputs:[],declaration:Wo,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[q_,J_],successCalls:[k_],errorCalls:[],error:null,index:0,parent:z_},Z_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:wt},X_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:r.VariableDeclaration,entityId:Gi},Q_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:r.FunctionDeclaration,entityId:wt},K_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:Gi},eM={type:r.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:r.OutputMap,entityId:$T},vl={id:VT,type:r.VariableInstance,version:1,declaration:K_,inputs:[],outputs:[],calledByError:[],calledByEntry:[Q_],calledBySuccess:[X_],successCalls:[xT],errorCalls:[],x:0,y:0,readsValue:eM,writesValues:[],internalCalls:[],parent:Z_},tM={type:r.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:Gi};r.GenericReference,r.DataType;const nM={id:"abort-exec-func-var-decl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Ho,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:tM,defaultValue:null},rM={type:r.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:wt},iM={type:r.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:wt},aM={id:Gi,type:r.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",dataType:nM,inputs:[],outputs:[],calledByError:[],calledByEntry:[iM],calledBySuccess:[],successCalls:[vl],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:rM},sM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},oM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:r.DataType,entityId:"long-wait-return-statement-returned-hello-string-data-type-id"},lM={id:"long-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:oM},constant:!1,parent:sM},cM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:r.ReturnStatement,entityId:LT},dM={isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:lM,readsValue:null,required:!0,index:0,parent:cM},uM={type:r.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:bl},pM={type:r.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:wt},jT={type:r.ReturnStatement,id:LT,version:1,outputs:[dM],calledByError:[],calledByEntry:[],calledBySuccess:[uM],throws:null,x:0,y:0,parent:pM},yM={type:r.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"long-argument-map-id"},kT={type:r.GenericReference,id:"long-argument-map-parent-ref-id",entityType:r.Operation,entityId:bl},hM={id:"long-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:r.PrimitiveValue,version:1,value:1500,valueAsType:null,autogeneration:null,name:v.Number,parent:yM},index:0,parent:kT},fM={type:r.GenericReference,id:"long-parent-ref-id",entityType:r.FunctionDeclaration,entityId:wt},mM={type:r.GenericReference,id:"long-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:wt},TM={id:$T,type:r.OutputMap,version:1,declaration:zo,writesValues:[vl],index:0,parent:kT},EM={id:bl,type:r.Operation,version:1,declaration:ot,inputs:[hM],dynamicArguments:[],outputs:[],process:TM,successCalls:[jT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[mM],calledBySuccess:[],error:null,parent:fM},RM={type:r.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"small-wait-argument-map-id"},bM={type:r.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:r.Operation,entityId:ds},gM={id:"small-wait-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:r.PrimitiveValue,version:1,value:500,valueAsType:null,autogeneration:null,name:v.Number,parent:RM},index:0,parent:bM},vM={type:r.GenericReference,id:"small-wait-parent-ref-id",entityType:r.FunctionDeclaration,entityId:wt},IM={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:wt},PM={id:ds,type:r.Operation,version:1,declaration:ot,inputs:[gM],dynamicArguments:[],outputs:[],process:null,successCalls:[xT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[IM],calledBySuccess:[],error:null,parent:vM},DM={type:r.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:r.Project,entityId:W},qT={id:"abort-execution-func-decl-id",type:r.FunctionDeclaration,version:1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],returnStatements:[jT,UT],calls:[PM,aM,vl,EM],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:DM},AM={type:r.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:r.Project,entityId:W},SM={id:"call-execution-abort-func-id",type:r.FunctionCall,version:1,declaration:qT,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:AM},Il="manual-hello-world-loop-func-decl-id",JT="manual-hello-world-loop-func-return-statement-id",an="manual-hello-world-loop-id",Fi="manual-hello-world-loop-body-id",WT="manual-hello-world-loop-break-statement-id",us="manual-hello-world-loop-current-iteration-number-output-map-id",Pl="manual-hello-world-loop-previous-iterations-results-output-map-id",Dl="assembled-hello-world-text-output-id",HT="assembled-hello-world-list-output-id",Ui="iteration-number-is-equal-or-greater-than-10-condition-id",ps="join-hello-world-and-number-operation-id",ys="append-string-to-list-operation-id",YT="hello-world-loop-output-map-id",OM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:r.ReturnStatement,entityId:JT},CM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",entityType:r.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},BM={id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CM},wM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:r.OutputMap,entityId:YT},zT={isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:r.ReturnDeclaration,name:"Results",description:null,dataType:BM,readsValue:wM,required:!0,index:0,parent:OM},_M={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:r.Loop,entityId:an},MM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:r.FunctionDeclaration,entityId:Il},ZT={type:r.ReturnStatement,id:JT,version:1,outputs:[zT],calledByError:[],calledByEntry:[],calledBySuccess:[_M],parent:MM,throws:null,x:0,y:0},NM={type:r.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:r.BreakStatement,entityId:WT},$M={type:r.GenericReference,id:"hello-world-loop-break-statement-output-data-type-ref-id",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-break-statement-output-id"},VM={id:"hello-world-loop-break-statement-output-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$M},LM={type:r.GenericReference,id:"hello-world-loop-break-statement-reads-value-ref-id",entityType:r.OutputMap,entityId:Dl},Al={isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:r.ReturnDeclaration,name:"Iteration result",description:null,dataType:VM,readsValue:LM,required:!0,index:0,parent:NM},GM={type:r.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:r.Condition,entityId:Ui},FM={type:r.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:r.Loop,entityId:an},XT={type:r.BreakStatement,id:WT,version:1,outputs:[Al],calledByError:[],calledByEntry:[],calledBySuccess:[GM],parent:FM,throws:null,x:0,y:0},UM={type:r.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:r.ContinueStatement,entityId:"hello-world-loop-continue-statement"},xM={type:r.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},jM={id:"hello-world-loop-continue-statement-output-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xM},kM={type:r.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:r.OutputMap,entityId:Dl},QT={isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:r.ReturnDeclaration,name:"Iteration result",description:null,dataType:jM,readsValue:kM,required:!0,index:0,parent:UM},qM={type:r.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:r.Condition,entityId:Ui},JM={type:r.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:r.Loop,entityId:an},KT={type:r.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[QT],calledBySuccess:[],calledByError:[qM],calledByEntry:[],parent:JM,throws:null,x:0,y:0};r.GenericReference,r.InputMap;const WM={type:r.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:r.Operation,entityId:ys},HM={type:r.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:r.OutputMap,entityId:Pl},eE={id:"append-string-to-list-base-string-map-id",type:r.InputMap,version:1,declaration:Co,name:null,description:null,readsValue:HM,defaultValue:null,dynamicArguments:[],index:0,parent:WM},YM={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:r.Operation,entityId:ys},zM={id:HT,type:r.OutputMap,version:1,writesValues:[Al],declaration:ui,index:0,parent:YM},ZM={type:r.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:r.Condition,entityId:Ui},XM={type:r.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:HT},QM={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:ys},tE={id:"latest-string-to-add-input-map-id",version:1,type:r.InputMap,declaration:Bo,name:null,description:null,readsValue:XM,dynamicArguments:[],defaultValue:null,index:1,parent:QM},KM={type:r.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:r.FunctionDeclaration,entityId:an},eN={type:r.Operation,id:ys,declaration:ba,version:1,inputs:[eE,tE],outputs:[zM],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[ZM],dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:KM},tN={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Fi},nN={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:r.Loop,entityId:an},rN={type:r.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:r.OutputMap,entityId:us},nE={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:r.Condition,entityId:Ui},iN={id:"current-iteration-number-to-check-map-id",version:1,type:r.InputMap,declaration:Br.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:rN,index:1,defaultValue:null,parent:nE},aN={type:r.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:r.InputMap,entityId:"max-num-iterations-value-map-id"},sN={id:"max-num-iterations-value-map-id",version:1,type:r.InputMap,declaration:Br.fixedArguments[1],name:null,description:null,dynamicArguments:[],readsValue:null,index:0,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:r.PrimitiveValue,version:1,name:v.Number,value:10,autogeneration:null,valueAsType:null,parent:aN},parent:nE},oN={type:r.Condition,id:Ui,version:1,declaration:Br,inputs:[sN,iN],calledByError:[],calledByEntry:[tN],calledBySuccess:[],successCalls:[XT,eN],errorCalls:[KT],x:0,y:0,parent:nN},lN={type:r.GenericReference,id:"base-string-map-ref-id",entityType:r.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},cN={type:r.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:r.Operation,entityId:ps},dN={id:"join-hello-world-and-number-base-string-map-id",type:r.InputMap,version:1,declaration:Ea,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:r.PrimitiveValue,version:1,value:"Hello world ",name:v.String,parent:lN,valueAsType:null,autogeneration:null},dynamicArguments:[],index:0,parent:cN},uN={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:r.Operation,entityId:ps},pN={id:Dl,type:r.OutputMap,version:1,writesValues:[tE,QT],declaration:ui,index:0,parent:uN},yN={type:r.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Fi},hN={type:r.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:us},fN={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:ps},rE={id:"current-iteration-number-input-map-id",version:1,type:r.InputMap,declaration:Ra,name:null,description:null,readsValue:hN,dynamicArguments:[],defaultValue:null,index:1,parent:fN},mN={type:r.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:r.FunctionDeclaration,entityId:an},TN={type:r.Operation,id:ps,declaration:pi,version:1,inputs:[dN,rE],outputs:[pN],process:null,calledByError:[],calledByEntry:[yN],calledBySuccess:[],dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:mN},EN={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:Pl,entityType:r.ArgumentDeclaration},RN={id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:EN},bN={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:r.GenericReference,entityId:Fi,entityType:r.FunctionDeclaration},gN={id:Pl,type:r.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,dataType:RN,writesValues:[eE],index:1,parent:bN},vN={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:r.GenericReference,entityId:Fi,entityType:r.FunctionDeclaration},IN={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:us,entityType:r.ArgumentDeclaration};r.DataType;const PN={id:us,type:r.ArgumentDeclaration,version:1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,dataType:null,writesValues:[rE],index:0,parent:vN},DN={id:"manual-flow-loop-body-parent-ref-id",type:r.GenericReference,entityId:an,entityType:r.Loop},AN={id:Fi,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[PN,gN],calls:[oN,TN],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:DN},SN={type:r.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:r.Loop,entityId:an},ON={type:r.OutputMap,id:YT,version:1,declaration:Al,writesValues:[zT],index:0,parent:SN},CN={id:"manual-hello-world-loop-parent-ref-id",type:r.GenericReference,entityId:W,entityType:r.Project},BN={id:"manual-hello-world-loop-called-by-ref-id",type:r.GenericReference,entityId:Il,entityType:r.FunctionDeclaration},wN={id:an,type:r.Loop,version:1,declaration:Fo,inputs:[],outputs:[ON],body:AN,successCalls:[ZT],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[BN],calledBySuccess:[],breakStatements:[XT],continueStatements:[KT],x:0,y:0,parent:CN},_N={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:r.Project,entityId:W},iE={type:r.FunctionDeclaration,id:Il,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[wN],returnStatements:[ZT],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:_N},MN={type:r.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:r.Project,entityId:W},NN={id:"call-hello-world-loop-id",type:r.FunctionCall,version:1,declaration:iE,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:MN},sn="company-dto-function-declaration-id",Sl="company-dto-func-declaration-argument-dcl-id",Ht="company-dto-function-company-variable-id",On="company-dto-function-company-dto-variable-id",Fr="iterate-over-employee-list-loop-id",aE="iterate-over-employee-list-loop-employee-dto-output-map-id",Ol="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",xi="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",sE="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",$N="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",oE="iterate-over-employee-list-continue-statement-id",hs="iterate-over-employee-list-loop-body-id",lE="company-dto-func-declaration-return-statement-id",cE="company-dto-func-declaration-return-decl-id",dE="company-dto-func-declaration-company-variable-id-output-map-id",uE="company-dto-func-declaration-company-variable-employess-output-map-id",pE="company-dto-func-declaration-company-variable-name-output-map-id",VN="company-dto-func-declaration-company-dto-variable-input-map-id",LN="company-dto-func-declaration-company-dto-variable-employess-input-map-id",GN="company-dto-func-declaration-company-dto-variable-name-input-map-id",fs="company-dto-func-declaration-owner-variable-id",FN="company-dto-func-declaration-company-dto-variable-owner-input-map-id",yE="company-dto-func-declaration-company-variable-owner-output-map-id",hE="company-dto-func-declaration-owner-variable-id-output-map-id",ms="company-dto-func-declaration-bank-account-variable-id",UN="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",fE="company-dto-func-declaration-company-variable-bank-account-output-map-id",mE="company-dto-func-declaration-bank-account-variable-id-output-map-id",xN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:cE},jN={id:"company-dto-func-returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xN},kN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:lE},qN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:On},TE={isError:!1,id:cE,type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:jN,readsValue:qN,required:!0,index:0,parent:kN},JN={type:r.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:r.Operation,entityId:On},WN={type:r.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},Cl={type:r.ReturnStatement,id:lE,version:1,outputs:[TE],calledByError:[],calledByEntry:[],calledBySuccess:[JN],throws:null,x:0,y:0,parent:WN},HN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:hE},YN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},EE={id:FN,type:r.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,dynamicArguments:[],index:5,readsValue:HN,parent:YN},zN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:mE},ZN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},RE={id:UN,type:r.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:zN,parent:ZN},XN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:pE},QN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},bE={id:GN,type:r.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:XN,parent:QN},KN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:aE},e0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},gE={id:LN,type:r.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:KN,parent:e0},t0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:dE},n0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:On},vE={id:VN,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,dynamicArguments:[],index:1,readsValue:t0,parent:n0},r0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},i0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:r.VariableDeclaration,entityId:ms},a0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:r.VariableDeclaration,entityId:fs},s0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:r.VariableDeclaration,entityId:Fr},Bl={id:On,type:r.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",calledByError:[],calledByEntry:[],calledBySuccess:[i0,a0,s0],successCalls:[Cl],errorCalls:[],readsValue:null,writesValues:[TE],inputs:[vE,bE,RE,EE,gE],outputs:[],internalCalls:[],parent:r0,x:0,y:0},Yn="employee-dto-func-declaration-id",wl="employee-dto-func-declaration-argument-dcl-id",IE="employee-dto-func-declaration-return-statement-id",PE="employee-dto-func-declaration-return-decl-id",zn="employee-dto-func-declaration-employee-variable-id",Zn="employee-dto-func-declaration-employee-dto-variable-id",Ts="employee-dto-func-declaration-manager-variable-id",DE="employee-dto-func-declaration-employee-variable-id-output-map-id",AE="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",SE="employee-dto-func-declaration-employee-variable-department-output-map-id",OE="employee-dto-func-declaration-employee-variable-manager-output-map-id",CE="employee-dto-func-declaration-manager-variable-id-output-map-id",o0="employee-dto-func-declaration-employee-dto-variable-input-map-id",l0="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",c0="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",d0="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",u0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:PE},p0={id:"employee-dto-func-returned-employee-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:u0},y0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:IE},h0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:Zn},BE={isError:!1,id:PE,type:r.ReturnDeclaration,version:1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",dataType:p0,readsValue:h0,required:!0,index:0,parent:y0},f0={type:r.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Zn},m0={type:r.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},_l={type:r.ReturnStatement,id:IE,version:1,outputs:[BE],calledByError:[],calledByEntry:[],calledBySuccess:[f0],throws:null,x:0,y:0,parent:m0},T0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:CE},E0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},wE={id:d0,type:r.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:T0,parent:E0},R0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:SE},b0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},_E={id:c0,type:r.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:R0,parent:b0},g0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:AE},v0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},ME={id:l0,type:r.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:g0,parent:v0},I0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:DE},P0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},NE={id:o0,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,dynamicArguments:[],index:1,readsValue:I0,parent:P0},D0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},A0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:r.VariableDeclaration,entityId:Ts},S0={id:Zn,type:r.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[A0],successCalls:[_l],errorCalls:[],readsValue:null,writesValues:[BE],inputs:[NE,ME,_E,wE],outputs:[],internalCalls:[],parent:D0,x:0,y:0},O0={type:r.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ts},C0={id:CE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[wE],parent:O0},B0={type:r.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ts},w0={id:"employee-dto-func-manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:B0,defaultValue:null},_0={type:r.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:OE},M0={type:r.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn};r.GenericReference,r.VariableDeclaration;const $E={id:Ts,type:r.VariableDeclaration,version:1,name:"Manager",dataType:w0,description:"A variable holding an inherited manager",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[S0],errorCalls:[],readsValue:_0,writesValues:[],inputs:[],outputs:[C0],internalCalls:[],parent:M0,x:0,y:0},N0={type:r.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},$0={id:OE,type:r.OutputMap,version:1,declaration:Pt.properties[2],index:3,writesValues:[$E],parent:N0},V0={type:r.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},L0={id:SE,type:r.OutputMap,version:1,declaration:Pt.properties[0],index:2,writesValues:[_E],parent:V0},G0={type:r.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},F0={id:AE,type:r.OutputMap,version:1,declaration:ct.properties[1],index:1,writesValues:[ME],parent:G0},U0={type:r.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},x0={id:DE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[NE],parent:U0},j0={type:r.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},k0={id:"employee-dto-func-employee-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:j0,defaultValue:null},q0={type:r.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},J0={type:r.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:wl},W0={type:r.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:r.FunctionDeclaration,entityId:Yn},VE={id:zn,type:r.VariableDeclaration,version:1,name:"Company employee",dataType:k0,description:"A variable holding a company employee",calledByError:[],calledByEntry:[W0],calledBySuccess:[],successCalls:[$E],errorCalls:[],readsValue:J0,writesValues:[],inputs:[],outputs:[x0,F0,L0,$0],internalCalls:[],parent:q0,x:0,y:0},H0={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:wl,entityType:r.ArgumentDeclaration},Y0={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:Pt,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:H0,defaultValue:null},z0={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:Yn,entityType:r.FunctionDeclaration},Z0={type:r.ArgumentDeclaration,id:wl,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,dataType:Y0,index:0,writesValues:[VE],parent:z0},X0={type:r.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:r.Project,entityId:W},Ml={type:r.FunctionDeclaration,id:Yn,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[Z0],calls:[VE],implements:null,returnStatements:[_l],collapsed:!1,private:!1,x:0,y:0,parent:X0},Q0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:sE,entityType:r.ReturnDeclaration},K0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:Pt,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Q0},e1={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:r.GenericReference,entityId:xi,entityType:r.OutputMap},t1={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:r.GenericReference,entityId:oE,entityType:r.ContinueStatement},LE={isError:!1,id:sE,type:r.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",readsValue:e1,dataType:K0,required:!0,index:0,parent:t1},n1={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},r1={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},GE={id:oE,type:r.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[n1],outputs:[LE],throws:null,x:0,y:0,parent:r1},i1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},a1={id:$N,type:r.OutputMap,version:1,declaration:_l.outputs[0],writesValues:[LE],index:0,parent:i1},s1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Ol,entityType:r.ArgumentDeclaration},o1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},FE={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:Ml.inputs[0],readsValue:s1,index:0,defaultValue:null,dynamicArguments:[],parent:o1},l1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:r.GenericReference,entityId:hs,entityType:r.FunctionDeclaration},c1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:r.GenericReference,entityId:hs,entityType:r.FunctionDeclaration},d1={id:xi,type:r.FunctionCall,version:1,declaration:Ml,inputs:[FE],process:null,outputs:[a1],calledByError:[],calledByEntry:[l1],calledBySuccess:[],successCalls:[GE],errorCalls:[],error:null,x:0,y:0,parent:c1},u1={type:r.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Ol,entityType:r.ArgumentDeclaration},p1={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:Pt,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:u1},y1={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:hs,entityType:r.FunctionDeclaration},h1={id:Ol,type:r.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",dataType:p1,required:!0,index:0,writesValues:[FE],parent:y1},f1={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},m1={id:hs,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each entity in the list.",inputs:[h1],calls:[d1],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:f1},T1={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},E1={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:r.GenericReference,entityId:uE,entityType:r.OutputMap},UE={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:jn.fixedArguments[0],defaultValue:null,dynamicArguments:[],readsValue:E1,index:0,parent:T1},R1={id:"iterate-over-employee-list-loop-parent-ref-id",type:r.GenericReference,entityId:sn,entityType:r.FunctionDeclaration},b1={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},g1={id:aE,type:r.OutputMap,version:1,declaration:jn.fixedReturns[0],writesValues:[gE],index:0,parent:b1},v1={type:r.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:r.VariableDeclaration,entityId:Ht},I1={id:Fr,type:r.Loop,version:1,declaration:jn,inputs:[UE],successCalls:[Bl],errorCalls:[],outputs:[g1],body:m1,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[v1],breakStatements:[],continueStatements:[GE],error:null,x:0,y:0,parent:R1},P1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:ms},D1={id:mE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[RE],parent:P1},A1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:ms},S1={id:"company-dto-func-bank-account-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:A1,defaultValue:null},O1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:fE},C1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn};r.GenericReference,r.VariableDeclaration;const xE={id:ms,type:r.VariableDeclaration,version:1,name:"Bank account",dataType:S1,description:"A variable holding an inherited bank account",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Bl],errorCalls:[],readsValue:O1,writesValues:[],inputs:[],outputs:[D1],internalCalls:[],parent:C1,x:0,y:0},B1={type:r.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:fs},w1={id:hE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[EE],parent:B1},_1={type:r.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:fs},M1={id:"company-dto-func-owner-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:_1,defaultValue:null},N1={type:r.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:yE},$1={type:r.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn};r.GenericReference,r.VariableDeclaration;const jE={id:fs,type:r.VariableDeclaration,version:1,name:"Owner",dataType:M1,description:"A variable holding an inherited owner",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Bl],errorCalls:[],readsValue:N1,writesValues:[],inputs:[],outputs:[w1],internalCalls:[],parent:$1,x:0,y:0},V1={type:r.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},L1={id:yE,type:r.OutputMap,version:1,declaration:mt.properties[2],index:4,writesValues:[jE],parent:V1},G1={type:r.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},F1={id:fE,type:r.OutputMap,version:1,declaration:mt.properties[2],index:3,writesValues:[xE],parent:G1},U1={type:r.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},x1={id:pE,type:r.OutputMap,version:1,declaration:mt.properties[0],index:2,writesValues:[bE],parent:U1},j1={type:r.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},k1={id:uE,type:r.OutputMap,version:1,declaration:mt.properties[3],index:1,writesValues:[UE],parent:j1},q1={type:r.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},J1={id:dE,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[vE],parent:q1},W1={type:r.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},H1={id:"company-dto-func-company-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:W1,defaultValue:null},Y1={type:r.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},z1={type:r.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:Sl},Z1={type:r.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:r.FunctionDeclaration,entityId:sn},kE={id:Ht,type:r.VariableDeclaration,version:1,name:"Company",dataType:H1,description:"A variable holding a company",calledByError:[],calledByEntry:[Z1],calledBySuccess:[],successCalls:[xE,jE,I1],errorCalls:[],readsValue:z1,writesValues:[],inputs:[],outputs:[J1,k1,x1,F1,L1],internalCalls:[],parent:Y1,x:0,y:0},X1={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Sl,entityType:r.ArgumentDeclaration},Q1={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:X1,defaultValue:null},K1={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:sn,entityType:r.FunctionDeclaration},e$={type:r.ArgumentDeclaration,id:Sl,version:1,name:"Company",description:"The company to create a DTO for",required:!0,dataType:Q1,index:0,writesValues:[kE],parent:K1},t$={type:r.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:r.Project,entityId:W},Nl={type:r.FunctionDeclaration,id:sn,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[e$],calls:[kE],implements:null,index:null,returnStatements:[Cl],collapsed:!1,private:!1,x:0,y:0,parent:t$},ji="exec-in-parallel-operation-call-id",ki="exec-sequentially-operation-call-id",dt="concurrency-and-wait-function-declaration-id",qE="concurrency-and-wait-return-statement-id",JE="concurrency-and-wait-return-declaration-id",$l="exec-in-parallel-argument-map-id",WE="exec-sequentially-argument-map-id",Vl="wait-for-2-seconds-operation-id",HE="wait-for-2-seconds-argument-map-id",Ll="map-company-dto-function-call-id",YE="map-company-dto-function-call-company-dto-output-map-id",qi="company-dto-variable-one-id",Gl="company-dto-variable-one-instance-id",n$="company-dto-variable-two-id",r$={type:r.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:JE},i$={id:"returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:r$},a$={type:r.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:qE},s$={type:r.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:qi},zE={isError:!1,id:JE,type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:i$,readsValue:s$,required:!0,index:0,parent:a$},o$={type:r.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Vl},l$={type:r.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},ZE={type:r.ReturnStatement,id:qE,version:1,outputs:[zE],calledByError:[],calledByEntry:[],calledBySuccess:[o$],throws:null,x:0,y:0,parent:l$},c$={type:r.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:r.VariableInstance,entityId:Gl},d$={type:r.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:r.VariableInstance,entityId:Gl},u$={type:r.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},XE={id:n$,type:r.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[c$],internalCalls:[],writesValues:[zE],readsValue:d$,x:0,y:0,parent:u$},p$={type:r.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:r.VariableDeclaration,entityId:qi},y$={type:r.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:qi},h$={type:r.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},f$={type:r.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:qi},QE={id:Gl,type:r.VariableInstance,version:1,declaration:f$,inputs:[],outputs:[],successCalls:[XE],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[p$],internalCalls:[],writesValues:[XE],readsValue:y$,x:0,y:0,parent:h$},m$={type:r.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:r.FunctionCall,entityId:Ll},T$={type:r.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:r.OutputMap,entityId:YE},E$={type:r.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},KE={id:qi,type:r.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[QE],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[m$],internalCalls:[],writesValues:[QE],readsValue:T$,x:0,y:0,parent:E$},eR={type:r.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:r.FunctionCall,entityId:Ll},R$={id:"map-company-dto-function-call-company-input-map-id",type:r.InputMap,version:1,declaration:Nl.inputs[0],name:null,description:null,defaultValue:null,dynamicArguments:[],index:0,readsValue:null,parent:eR},b$={id:YE,type:r.OutputMap,version:1,declaration:Cl.outputs[0],writesValues:[KE],index:0,parent:eR},g$={id:"map-company-dto-function-call-called-by-ref-id",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:dt},v$={id:"map-company-dto-function-call-parent-ref-id",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:dt},I$={id:Ll,type:r.FunctionCall,version:1,declaration:Nl,successCalls:[KE],process:null,errorCalls:[],inputs:[R$],outputs:[b$],calledByError:[],calledByEntry:[g$],calledBySuccess:[],parent:v$,x:0,y:0,error:null},P$={type:r.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:Xm},D$={type:r.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:r.DataType,entityId:"last-timestamp-variable-datatype-id"},A$={id:"last-timestamp-variable-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Sr,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:P$,defaultValue:{id:"last-timestamp-variable-default-value-id",type:r.PrimitiveValue,version:1,name:v.Date,value:null,autogeneration:{type:xe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:D$,valueAsType:null}},S$={type:r.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:r.Project,entityId:W},Fl={id:Xm,type:r.VariableDeclaration,version:1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",dataType:A$,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:S$},O$={type:r.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:HE},C$={type:r.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:r.Operation,entityId:Vl},B$={id:HE,type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:r.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:v.Number,parent:O$},index:0,parent:C$},w$={type:r.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},_$={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:ki},M$={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:r.FunctionDeclaration,entityId:ji},tR={id:Vl,type:r.Operation,version:1,declaration:Vt,inputs:[B$],dynamicArguments:[],outputs:[],process:null,successCalls:[ZE],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[_$,M$],calledBySuccess:[],error:null,parent:w$},N$={type:r.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"wait-for-random-amount-input-map-id"},$$={type:r.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:r.Operation,entityId:"wait-for-random-amount-id"},V$={id:"wait-for-random-amount-input-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:r.PrimitiveValue,version:1,value:null,valueAsType:null,autogeneration:{type:xe.Random,rangeStart:1e3,rangeEnd:4e3},name:v.Number,parent:N$},index:0,parent:$$},L$={type:r.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:r.Project,entityId:W},Ur={id:"wait-for-random-amount-id",type:r.Operation,version:1,declaration:Vt,inputs:[V$],dynamicArguments:[],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:L$},nR="list-of-functions-variable-id",G$={type:r.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:nR},F$={id:"list-of-functions-variable-action-descriptor-id",type:r.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",argumentsType:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,error:null,dynamicReturnTypes:null,fixedReturns:[],parent:null},U$={type:r.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",entityType:r.DataType,entityId:"list-of-functions-variable-data-type-id"},x$={id:"list-of-functions-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F$,asType:!1,isList:!0,isNullable:!1,defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:v.ActionDescriptor,value:null,valueAsType:[Ur,Ur,Ur,Ur,Ur],autogeneration:null,parent:U$},constant:!1,parent:G$},j$={type:r.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt};r.GenericReference,r.InputMap;const k$={type:r.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:r.InputMap,entityId:WE},q$={type:r.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:r.InputMap,entityId:$l},rR={id:nR,type:r.VariableDeclaration,version:1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",dataType:x$,parent:j$,readsValue:null,writesValues:[k$,q$],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},J$={type:r.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:r.Operation,entityId:ji},W$={type:r.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},H$={type:r.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:"exec-in-parallel-return-map-id"},Y$={type:r.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:r.Operation,entityId:ji},iR={id:"exec-in-parallel-result-variable-id",type:r.VariableInstance,version:1,declaration:Fl,readsValue:H$,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Y$],successCalls:[],errorCalls:[],internalCalls:[],parent:W$,x:0,y:0},z$={id:"exec-in-parallel-return-map-id",type:r.OutputMap,version:1,declaration:_o,writesValues:[iR],index:0,parent:J$},Z$={type:r.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:r.Operation,entityId:ji},X$={id:$l,type:r.InputMap,version:1,declaration:wo,name:null,description:null,dynamicArguments:[],readsValue:rR,defaultValue:null,index:0,parent:Z$},Q$={type:r.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},K$={type:r.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:dt},eV={process:null,id:ji,type:r.Operation,version:1,declaration:Vt,inputs:[X$],dynamicArguments:[],outputs:[z$],successCalls:[tR,iR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[K$],calledBySuccess:[],error:null,parent:Q$},tV={type:r.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:r.Operation,entityId:ki},nV={type:r.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},rV={type:r.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:"exec-sequentially-return-map-id"},iV={type:r.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:r.Operation,entityId:ki},aR={id:"exec-sequentially-result-variable-id",type:r.VariableInstance,version:1,declaration:Fl,readsValue:rV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[iV],successCalls:[],errorCalls:[],internalCalls:[],parent:nV,x:0,y:0},aV={id:"exec-sequentially-return-map-id",type:r.OutputMap,version:1,declaration:No,writesValues:[aR],index:0,parent:tV},sV={type:r.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:r.Operation,entityId:ki},oV={id:WE,type:r.InputMap,version:1,declaration:Mo,name:null,description:null,dynamicArguments:[],readsValue:rR,defaultValue:null,index:0,parent:sV},lV={type:r.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},cV={type:r.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:dt},dV={id:ki,type:r.Operation,version:1,declaration:tn,inputs:[oV],process:null,dynamicArguments:[],outputs:[aV],successCalls:[tR,aR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[cV],calledBySuccess:[],error:null,parent:lV},uV={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:r.Project,entityId:W},pV={type:r.FunctionDeclaration,id:dt,version: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:[dV,eV,I$],returnStatements:[ZE],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:uV},yV={type:r.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:r.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},hV={id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:yV},fV={type:r.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:r.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},mV={isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.ReturnDeclaration,version:1,name:"Created company",description:"The new company that was created",dataType:hV,readsValue:null,required:!0,index:0,parent:fV},TV={type:r.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},EV={type:r.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},sR={type:r.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[mV],calledByError:[],calledByEntry:[EV],calledBySuccess:[],throws:null,x:0,y:0,parent:TV},RV={type:r.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:r.Project,entityId:W},bV={type:r.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[sR],index:null,implements:null,returnStatements:[sR],collapsed:!1,private:!1,x:0,y:0,parent:RV},Ul="get-current-date-and-time-func-decl-id",oR="get-current-date-and-time-return-statement-id",lR="get-current-date-and-time-return-declaration-id",cR="get-current-date-and-time-return-declaration-data-type-id",gV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:r.DataType,entityId:cR},vV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:lR},IV={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:cR,version:1,entity:Sr,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"last-timestamp-variable-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:v.Date,valueAsType:null,autogeneration:{type:xe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:gV},constant:!1,parent:vV},PV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:r.ReturnStatement,entityId:oR};r.ReturnDeclaration;const DV={type:r.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Ul},AV={type:r.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Ul};r.ReturnStatement;const SV={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:r.Project,entityId:W},OV={type:r.FunctionDeclaration,id:Ul,version:1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],returnStatements:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:SV},dR="do-math-return-statement-id",uR="do-math-return-declaration-id",CV={type:r.GenericReference,id:"do-math-func-var-to-return-one-ref-id",entityType:r.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},BV={id:"do-math-func-var-to-return-one-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CV},wV={type:r.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},_V={type:r.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:r.ReturnDeclaration,entityId:uR},MV={type:r.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",dataType:BV,readsValue:null,writesValues:[_V],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:wV},NV={type:r.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:r.ReturnStatement,entityId:dR},$V={type:r.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:r.ReturnDeclaration,entityId:"873a3556-4911-4141-b2a0-49c677b56fb4"},VV={id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$V},LV={isError:!1,id:uR,version:1,type:r.ReturnDeclaration,name:"Result",description:null,dataType:VV,readsValue:MV,required:!0,index:0,parent:NV},GV={type:r.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},FV={type:r.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},pR={type:r.ReturnStatement,id:dR,version:1,outputs:[LV],calledByError:[],calledByEntry:[],calledBySuccess:[GV],parent:FV,throws:null,x:0,y:0},UV={type:r.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:r.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},xV={id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:UV},jV={type:r.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},kV={type:r.GenericReference,id:"do-math-func-return-one-called-by",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},qV={type:r.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},yR={type:r.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:xV,description:null,readsValue:qV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[kV],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:jV},JV={type:r.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},WV={type:r.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},HV={type:r.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:r.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},YV={id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:HV},zV={type:r.GenericReference,id:"do-math-func-return-two-called-by",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},hR={type:r.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[zV],successCalls:[],errorCalls:[],dataType:YV,readsValue:WV,writesValues:[],internalCalls:[],parent:JV,x:0,y:0},fR={type:r.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ZV={type:r.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},XV={type:r.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},QV={type:r.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:r.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},mR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:r.InputMap,declaration:vo,name:null,description:null,dynamicArguments:[],readsValue:QV,defaultValue:null,index:0,parent:XV},KV={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:r.OutputMap,version:1,declaration:Po,writesValues:[yR,hR],index:0,parent:ZV},eL={type:r.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},tL={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:r.GenericReference,entityType:r.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},TR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:r.InputMap,declaration:Io,name:null,description:null,dynamicArguments:[],readsValue:tL,defaultValue:null,index:1,parent:eL},nL={type:r.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Ta,version:1,inputs:[mR,TR],dynamicArguments:[],outputs:[KV],calledByError:[],calledByEntry:[fR],calledBySuccess:[],process:null,successCalls:[pR,yR,hR],errorCalls:[],parent:fR,error:null,x:0,y:0},rL={type:r.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:r.DataType,entityId:"a350a9e9-25ee-477f-a83d-9e98ed2451662"},iL={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:r.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:r.ArgumentDeclaration},ER={id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:r.PrimitiveValue,version:1,value:1,name:v.Number,parent:rL,valueAsType:null,autogeneration:null},constant:!1,parent:iL},aL={type:r.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:r.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},sL={type:r.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},oL={type:r.GenericReference,id:"do-math-func-var-called-by-ref",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},RR={type:r.VariableDeclaration,id:"72a338d8-0183-4ca2-8760-227517854595",version:1,name:"Z",description:null,dataType:ER,inputs:[],outputs:[],calledByError:[],calledByEntry:[oL],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:aL,writesValues:[TR],internalCalls:[],x:0,y:0,parent:sL},lL={entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:r.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},cL={id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:r.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",dataType:ER,writesValues:[RR],required:!0,index:1,parent:lL},dL={type:r.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:r.Project,entityId:W},uL={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},pL={type:r.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:r.DataType,entityId:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2"},yL={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:r.ArgumentDeclaration},hL={id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:r.PrimitiveValue,version:1,value:5,name:v.Number,parent:pL,valueAsType:null,autogeneration:null},constant:!1,parent:yL},fL={id:"d8895765-f705-457e-85fa-25d130926769",type:r.ArgumentDeclaration,version:1,name:"N",dataType:hL,description:"The number to add",writesValues:[mR],required:!0,index:0,parent:uL},mL={type:r.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[fL,cL],calls:[nL,RR],implements:null,index:null,collapsed:!1,returnStatements:[pR],private:!1,x:0,y:0,parent:dL},Tt="replace-bank-account-in-company-func-declaration-id",xl="company-entity-to-modify-arg-declaration-id",TL="account-number-to-create-arg-decl-id",xr="company-variable-id",jr="search-person-by-id-id",bR="new-bank-account-owner-arg-decl-id",gR="search-person-by-id-output-declaration-id",jl="search-person-by-id-output-entity-map-id",Es="person-not-empty-condition-id",Rs="create-new-bank-account-instance-operation-id",vR="create-new-bank-account-instance-operation-output-entity-map-id",IR="company-bank-account-output-map-id",kl="old-bank-account-var-declaration-id",PR="old-bank-account-var-instance-id",DR="company-variable-instance-id",ql="delete-bank-account-internal-call-id",EL={type:r.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},RL={type:r.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:r.InternalCall,entityId:ql},bL={type:r.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:xr},gL={type:r.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:r.VariableInstance,entityId:DR},vL={type:r.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:vR},AR={type:r.InputMap,id:"bank-account-input-map-id",version:1,readsValue:vL,declaration:El,name:null,description:null,index:0,defaultValue:null,dynamicArguments:[],parent:gL},IL={type:r.VariableInstance,id:DR,version:1,declaration:bL,inputs:[AR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[RL],successCalls:[],errorCalls:[],internalCalls:[],parent:EL,readsValue:null,writesValues:[],x:0,y:0},PL={type:r.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},DL={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,constant:!1,defaultValue:null,parent:PL},AL={type:r.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:IR},SL={type:r.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},OL={type:r.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:r.VariableDeclaration,entityId:xr},CL={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:r.Operation,entityId:Rs};r.GenericReference,r.VariableInstance;const BL={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",entityType:r.VariableDeclaration,entityId:kl},wL={type:r.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",entityType:r.VariableDeclaration,entityId:kl},_L={type:r.GenericReference,id:"bank-account-variable-parent-ref-two-id",entityType:r.FunctionDeclaration,entityId:Tt},ML={type:r.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",entityType:r.InternalCall,entityId:ql},NL={type:r.VariableInstance,id:PR,version:1,declaration:wL,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[ML],errorCalls:[],parent:_L,readsValue:null,writesValues:[],x:0,y:0},SR={process:null,type:r.InternalCall,id:ql,version:1,declaration:ko,index:0,successCalls:[IL],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[CL,BL],parent:NL},OR={type:r.VariableDeclaration,id:kl,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:DL,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[OL],successCalls:[SR],internalCalls:[],errorCalls:[],parent:SL,readsValue:AL,writesValues:[],x:0,y:0},$L={type:r.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},VL={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,constant:!1,defaultValue:null,parent:$L},LL={type:r.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:xl},GL={type:r.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},FL={type:r.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},UL={type:r.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},xL={id:IR,version:1,type:r.OutputMap,declaration:El,index:0,parent:UL,writesValues:[OR]},CR={type:r.VariableDeclaration,id:xr,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",dataType:VL,inputs:[],outputs:[xL],calledByError:[],calledByEntry:[FL],calledBySuccess:[],successCalls:[OR],errorCalls:[],parent:GL,internalCalls:[],readsValue:LL,writesValues:[],x:0,y:0},jL={type:r.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:r.InputMap,entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id"},kL={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,entityType:r.OutputMap,entityId:jl},BR={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:r.InputMap,declaration:iT,name:null,description:null,dynamicArguments:[],readsValue:kL,index:1,defaultValue:null,parent:jL},qL={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:TL},JL={type:r.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:r.InputMap,entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id"},wR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:r.InputMap,declaration:rT,name:null,description:null,dynamicArguments:[],readsValue:qL,defaultValue:null,index:0,parent:JL},WL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:r.Operation,entityId:Rs},HL={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:r.InputMap,declaration:Or.fixedArguments[0],name:null,description:null,dynamicArguments:[wR,BR],index:0,readsValue:null,defaultValue:{type:r.PrimitiveValue,name:v.EntityTemplate,value:null,valueAsType:Lr,autogeneration:null},parent:WL},YL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:r.Operation,entityId:Rs},zL={id:vR,version:1,type:r.OutputMap,declaration:Or.fixedReturns[0],index:0,writesValues:[AR],parent:YL},ZL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:r.Condition,entityId:Es},XL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},QL={process:null,id:Rs,type:r.Operation,version:1,declaration:Or,inputs:[HL],dynamicArguments:[],error:null,outputs:[zL],successCalls:[SR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[ZL],parent:XL,x:0,y:0},KL={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-datatype-id",entityType:r.DataType},eG={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:r.ReturnDeclaration};r.DataType,r.PrimitiveValue,v.String;const tG={id:"person-not-found-thrown-error-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:r.ReturnStatement},nG={isError:!0,id:"person-not-found-thrown-error-id",type:r.ReturnDeclaration,version:1,dataType:null,name:"Person not found error",description:"If the person entity was not found this error is outputted",parent:tG,required:!0,index:0,readsValue:null},rG={id:"person-not-found-error-return-statement-called-by-ref-id",type:r.GenericReference,entityId:Es,entityType:r.Condition},iG={id:"person-not-found-error-return-statement-parent-ref-id",type:r.GenericReference,entityId:Tt,entityType:r.FunctionDeclaration},aG={id:"person-not-found-error-return-statement-id",type:r.ReturnStatement,version:1,throws:nG,outputs:[],calledBySuccess:[],calledByError:[rG],calledByEntry:[],x:0,y:0,parent:iG},sG={type:r.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:r.Search,entityId:jr},oG={type:r.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},lG={type:r.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:r.OutputMap,entityId:jl},cG={type:r.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:r.Condition,entityId:Es},_R={id:"person-entity-to-check-map-id",version:1,type:r.InputMap,declaration:kn.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:lG,index:0,defaultValue:null,parent:cG},dG={type:r.Condition,id:Es,version:1,declaration:kn,inputs:[_R],calledByError:[],calledByEntry:[],calledBySuccess:[sG],successCalls:[QL],errorCalls:[aG],x:0,y:0,parent:oG},uG={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:r.ReturnDeclaration,entityId:gR},pG={id:"search-person-by-id-output-entity-declaration-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,constant:!1,asType:!1,isNullable:!1,entity:ct,defaultValue:null,parent:uG},yG={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:r.Search,entityId:jr},MR={isError:!1,id:gR,type:r.ReturnDeclaration,version:1,dataType:pG,name:"Found person",description:"The person entity that was found",parent:yG,required:!0,index:0,readsValue:null},hG={type:r.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:r.Search,entityId:jr},fG={type:r.OutputMap,id:jl,version:1,declaration:MR,parent:hG,writesValues:[_R,BR],index:0},mG={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:r.GenericReference,entityId:"search-person-by-id-input-declaration-id",entityType:r.ArgumentDeclaration};r.DataType;const TG={type:r.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:r.Search,entityId:jr},NR={id:"search-person-by-id-input-declaration-id",type:r.ArgumentDeclaration,version:1,dataType:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",index:0,required:!0,parent:TG,writesValues:[]},EG={type:r.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:r.Search,entityId:jr},RG={id:"search-person-by-id-input-map-reads-value-ref-id",type:r.GenericReference,entityId:bR,entityType:r.ArgumentDeclaration},$R={type:r.InputMap,id:"search-person-by-id-input-map",version:1,declaration:NR,name:null,description:null,readsValue:RG,defaultValue:null,parent:EG,dynamicArguments:[],index:0},bG={from:{name:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},items:[{name:"*"}],where:[{name:"id",value:"{{dynamic_value_1}}"}]},gG={type:r.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},vG={type:r.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Tt},IG={type:r.Search,id:jr,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:bG,inputsDeclarations:[NR],inputs:[$R],outputsDeclarations:[MR],outputs:[fG],calledByError:[],calledByEntry:[vG],calledBySuccess:[],error:null,successCalls:[dG],errorCalls:[],parent:gG,x:0,y:0};r.GenericReference,r.DataType;const PG={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"account-number-to-create-arg-decl-id",entityType:r.ArgumentDeclaration},DG={id:"account-number-to-create-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:PG},AG={entityType:r.FunctionDeclaration,entityId:Tt,type:r.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},SG={id:"account-number-to-create-arg-decl-id",type:r.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",dataType:DG,writesValues:[wR],required:!0,index:1,parent:AG};r.GenericReference,r.DataType;const OG={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",entityType:r.ArgumentDeclaration},CG={id:"new-bank-account-owner-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ma,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:OG},BG={entityType:r.FunctionDeclaration,entityId:Tt,type:r.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},wG={id:bR,type:r.ArgumentDeclaration,version:1,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",dataType:CG,writesValues:[$R],required:!1,index:1,parent:BG},_G={type:r.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:r.Project,entityId:W},MG={type:r.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:r.FunctionDeclaration,entityId:Tt};r.GenericReference,r.DataType;const NG={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:xl,entityType:r.ArgumentDeclaration},$G={id:"company-entity-to-modify-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Be,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:NG},VG={id:xl,type:r.ArgumentDeclaration,version:1,name:"Company",dataType:$G,description:"The company to replace the bank account for",writesValues:[CR],required:!0,index:0,parent:MG},LG={type:r.FunctionDeclaration,id:Tt,version: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:[VG,SG,wG],index:null,implements:null,calls:[IG,CR],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:_G},GG={type:r.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},FG={type:r.FunctionDeclaration,version:1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,returnStatements:[],private:!1,parent:GG,x:0,y:0},UG={type:r.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:r.Project,entityId:"23b23d8b-1929-4505-a350-745c8550e731"},xG={type:r.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},jG={type:r.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[FG],events:[],implements:xG,parent:UG,x:0,y:0},Jl="iterate-over-list-loop-id",VR="iterate-over-list-loop-body-id",LR="iterate-over-list-loop-body-current-iteration-argument-declaration-id",kG={type:r.GenericReference,id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:LR,entityType:r.ArgumentDeclaration},qG={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:kG},JG={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:VR,entityType:r.FunctionDeclaration},WG={id:LR,type:r.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:qG,required:!0,index:0,writesValues:[],parent:JG},HG={id:"iterate-over-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Jl,entityType:r.Loop},YG={id:VR,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each entity in the list.",inputs:[WG],calls:[],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:HG},zG={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Jl,entityType:r.Loop},ZG={id:"iterate-over-list-loop-iteration-list-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:jn.fixedArguments[0],defaultValue:null,dynamicArguments:[],readsValue:null,index:0,parent:zG},XG={id:"iterate-over-list-loop-parent-ref-id",type:r.GenericReference,entityId:W,entityType:r.Project},QG={id:Jl,type:r.Loop,version:1,declaration:jn,inputs:[ZG],successCalls:[],errorCalls:[],outputs:[],process:null,body:YG,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:XG};var Wl=(n=>(n.EQ="eq",n.NEQ="neq",n.GT="gt",n.GTE="gte",n.LT="lt",n.LTE="lte",n.LIKE="like",n.ILIKE="ilike",n))(Wl||{}),GR=(n=>(n.COUNT="count",n.SUM="sum",n.AVG="avg",n.MIN="min",n.MAX="max",n))(GR||{});const KG={from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:{from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:[{function:{name:GR.COUNT,items:["f8310850-a87e-405c-b182-4f1d5fa49240"]},alias:"employee_count"}],where:[{name:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",operation:Wl.NEQ,value:null}]},where:[{name:"employee_count",operation:Wl.GT,value:1}]},eF={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:r.GenericReference,entityId:W,entityType:r.Project},tF={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:r.Search},FR={isError:!1,id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:r.ReturnDeclaration,version:1,name:"companies",description:"List of companies with multiple employees and an existing bank account",dataType:null,readsValue:null,required:!0,index:0,parent:tF},nF={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:r.Search},rF={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:r.OutputMap,version:1,declaration:FR,writesValues:[],index:0,parent:nF},iF={id:"find-companies-with-multiple-employees-and-bank-account",type:r.Search,version: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:[rF],query:KG,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:eF},kr="random-company-employee-test-variable-id",Hl="manager-global-variable-id",UR="global-user-instance-id",qr="employee-mapped-dto-variable-id",xR="random-employee-id-output-map-id",jR="random-employee-birth-date-output-map-id",kR="random-employee-department-output-map-id",qR="random-employee-manager-output-map-id",JR="manager-global-id-output-map-id",WR="global-user-instance-id-output-map-id",aF="employee-mapped-dto-requester-id-input-map-id",sF="employee-mapped-dto-id-input-map-id",oF="employee-mapped-dto-birth-date-input-map-id",lF="employee-mapped-dto-department-input-map-id",cF="employee-mapped-dto-manager-input-map-id",dF={type:r.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:JR},uF={type:r.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},HR={id:cF,type:r.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:dF,parent:uF},pF={type:r.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:kR},yF={type:r.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},YR={id:lF,type:r.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:pF,parent:yF},hF={type:r.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:jR},fF={type:r.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},zR={id:oF,type:r.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:hF,parent:fF},mF={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:xR},TF={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},ZR={id:sF,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,dynamicArguments:[],index:1,readsValue:mF,parent:TF},EF={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:WR},RF={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},XR={id:aF,type:r.InputMap,version:1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,dynamicArguments:[],index:0,readsValue:EF,parent:RF},bF={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Hl},gF={id:JR,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[HR],parent:bF},vF={type:r.GenericReference,id:"manager-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:Hl},IF={id:"manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:vF,defaultValue:null},PF={type:r.GenericReference,id:"manager-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:qR},DF={type:r.GenericReference,id:"manager-variable-parent-ref-id",entityType:r.Project,entityId:W},QR={id:Hl,type:r.VariableDeclaration,version:1,name:"Manager",dataType:IF,description:"A variable holding an inherited manager for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:PF,writesValues:[],inputs:[],outputs:[gF],internalCalls:[],parent:DF,x:0,y:0},AF={type:r.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},SF={id:qR,type:r.OutputMap,version:1,declaration:Pt.properties[2],index:3,writesValues:[QR],parent:AF},OF={type:r.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},CF={id:kR,type:r.OutputMap,version:1,declaration:Pt.properties[0],index:2,writesValues:[YR],parent:OF},BF={type:r.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},wF={id:jR,type:r.OutputMap,version:1,declaration:ct.properties[1],index:1,writesValues:[zR],parent:BF},_F={type:r.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},MF={id:xR,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[ZR],parent:_F},NF={type:r.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},$F={id:"random-company-employee-test-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:NF,defaultValue:null},VF={type:r.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",entityType:r.Project,entityId:W},LF={id:kr,type:r.VariableDeclaration,version:1,name:"Company employee",dataType:$F,description:"A variable holding a random company employee for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[MF,wF,CF,SF],internalCalls:[],parent:VF,x:0,y:0},GF={type:r.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",entityType:r.Project,entityId:W},FF={id:qr,type:r.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[XR,ZR,zR,YR,HR],outputs:[],internalCalls:[],parent:GF,x:0,y:0},UF={type:r.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",entityType:r.VariableDeclaration,entityId:pl},xF={id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:hl,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:UF,defaultValue:null},jF={type:r.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",entityType:r.Project,entityId:W},KR={id:pl,type:r.VariableDeclaration,version:1,name:"Current user",description:"The user that is currently logged in",dataType:xF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:jF},kF={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:r.VariableInstance,entityId:UR},qF={id:WR,type:r.OutputMap,version:1,declaration:we.properties[1],index:0,writesValues:[XR],parent:kF},JF={type:r.GenericReference,id:"global-user-instance-parent-ref-id",entityType:r.Project,entityId:W},WF={id:UR,type:r.VariableInstance,version:1,declaration:KR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[qF],internalCalls:[],parent:JF,x:0,y:0},HF={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:pl},YF={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",entityType:r.DataType,entityId:"is-test-environment-variable-dcl-datatype-id"},zF={id:"is-test-environment-variable-dcl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Fn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!0,parent:HF,defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:v.Boolean,version:1,value:null,type:r.PrimitiveValue,autogeneration:{type:xe.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:YF}},ZF={type:r.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",entityType:r.Project,entityId:W},eb={id:"is-test-environment-variable-dcl-id",type:r.VariableDeclaration,version:1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",dataType:zF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:ZF},XF={type:r.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",entityType:r.Project,entityId:W},QF={id:"is-test-environment-variable-instance-id",type:r.VariableInstance,version:1,declaration:eb,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:XF,x:0,y:0},tb={type:r.Project,id:W,version: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:[jG],entities:[yl,hl,ct,Zw,Pt,ls,TT,ET,Lr,qB,mt,Fw,Qm,WD,jB],functions:[pV,qT,Ml,bV,OV,iE,Nl,Rl,LG,ST,mL],events:[C_],variableDeclarations:[eb,KR,Fl,LF,QR,FF],variableInstances:[QF,WF],conditions:[],operations:[Ur],functionCalls:[SM,NN],loops:[QG],searches:[iF]};var f=(n=>(n.Error="error",n.Warning="warning",n))(f||{}),g=(n=>(n.InvalidObjectStructure="invalid-object-structure",n.NameNotUniqueInScope="name-not-unique-in-scope",n.EmptyName="empty-name",n.MissingCaller="missing-caller",n.PropertyOverwrite="property-overwrite",n.MethodOverwrite="method-overwrite",n.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",n.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",n.UnreachableEntity="unreachable-entity",n.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",n.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",n.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",n.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",n.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",n))(g||{}),y=(n=>(n.RootReference="root-reference",n.ReferencedEntityNotFound="referenced-entity-not-found",n.EntityIdNotUnique="entity-id-not-unique",n.BuiltInEntityGenerated="built-in-entity-generated",n.BuiltInEntityUpdated="built-in-entity-updated",n.BuiltInEntityDeleted="built-in-entity-deleted",n.UnknownEntityType="unknown-entity-type",n.MissingTypeProperty="missing-type-property",n.MissingIdProperty="missing-id-property",n.BuiltInEntityParent="built-in-entity-parent",n.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",n.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",n.RecommendedImplementOperationAction="recommended-implement-operation-action",n.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",n.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",n.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",n.RecommendedImplementConditionAction="recommended-implement-condition-action",n.InvalidReferenceObjectStructure="invalid-reference-object-structure",n.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",n.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",n.InvalidParentReference="invalid-parent-reference",n.InvalidImplementsReference="invalid-implements-reference",n.InvalidExtendsReference="invalid-extends-reference",n.InvalidGenerationActionPayload="invalid-generation-action-payload",n.InvalidReference="invalid-reference",n.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",n.InvalidUpdateEntityOperation="invalid-update-entity-operation",n.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",n.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",n.UnrecognizedProperty="unrecognized-property",n.SelfReference="self-reference",n.DuplicateReference="duplicate-reference",n.CallerWithIncompatibleScope="caller-with-incompatible-scope",n.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",n.InvalidInputMapDeclaration="invalid-input-map-declaration",n.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",n.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",n.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",n.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",n.OutputOverwrite="output-overwrite",n.InputOverwrite="input-overwrite",n.IncompatibleScope="incompatible-scope",n.InvalidParentUpdate="invalid-parent-update",n.NonInteractiveEntityReferenced="non-interactive-entity-referenced",n.InvalidParentRelationType="invalid-parent-relation-type",n))(y||{}),S=(n=>(n.ScopeWithoutLogic="scope-without-logic",n.ExtendingAbstractEntity="extending-abstract-entity",n.ImplementingNonAbstractEntity="implementing-non-abstract-entity",n.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",n.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",n.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",n.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",n.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",n.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",n.IncorrectEntityImplementation="incorrect-entity-implementation",n.IncorrectMethodImplementation="incorrect-method-implementation",n.IncorrectPropertyImplementation="incorrect-property-implementation",n.PropertyImplementsNonAbstact="property-implements-non-abstract",n.NonStaticPropertyImplementsStatic="non-static-property-implements-static",n.StaticPropertyImplementsNonStatic="static-property-implements-non-static",n.PropertyImplementsIncompatibleType="property-implements-incompatible-type",n.MissingPropertyImplementation="missing-property-implementation",n.MissingMethodImplementation="missing-method-implementation",n.NoProperties="no-properties",n.ReadingFromIncompatibleType="reading-from-incompatible-type",n.WritingToIncompatibleType="writing-to-incompatible-type",n.InvalidPropertiesCombination="invalid-properties-combination",n.DisconnectedCallableEntity="disconnected-callable-entity",n.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",n.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",n.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",n.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",n.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",n.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",n))(S||{});class E{constructor(e){l(this,"id");l(this,"message");l(this,"issue");l(this,"severity");l(this,"code");this.id=e.id,this.message=e.message,this.issue=e.issue,this.severity=e.severity,this.code=e.code}toEntityError(e){return this.code in g?new Xn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:e}):null}}class Xn{constructor(e){l(this,"id");l(this,"message");l(this,"issue");l(this,"severity");l(this,"code");l(this,"entity");this.id=e.id,this.message=e.message,this.issue=e.issue,this.severity=e.severity,this.code=e.code,this.entity=e.entity}clone(){return new Xn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function KF(n){const e=new Set;return n.filter(t=>e.has(t.id)?!1:(e.add(t.id),!0))}function j(n){const e=n.entity.errors.find(i=>i.id===n.id);return e?{new:!1,error:e}:{new:!0,error:new Xn(n)}}function e4(n,e){const t=new Map;return n.forEach(i=>{t.set(i.id,i)}),e.forEach(i=>{t.set(i.id,i)}),Array.from(t.values())}function X(n,e){const t=[];return e.forEach(i=>{const a=n.find(s=>s.id===i.id);a?t.push(a):t.push(i)}),t}const Ji=c.union([c.string(),c.number(),c.boolean(),c.date()]),nb=c.enum([xe.CurrentDateAndTime,xe.Random,xe.Unique]),bs=c.object({type:nb,rangeStart:Ji.nullable(),rangeEnd:Ji.nullable()}),Wi=bs.extend({type:c.literal(xe.Random),rangeStart:Ji,rangeEnd:Ji}),Yl=bs.extend({type:c.literal(xe.Unique),rangeStart:c.null(),rangeEnd:c.null()}),rb=bs.extend({type:c.literal(xe.CurrentDateAndTime),rangeStart:c.null(),rangeEnd:c.null()}),gs=Wi.extend({rangeStart:c.number().nullable(),rangeEnd:c.number().nullable()}),ib=gs.extend({rangeStart:c.number(),rangeEnd:c.null()}),ab=gs.extend({rangeStart:c.null(),rangeEnd:c.number()}),sb=gs.extend({rangeStart:c.number(),rangeEnd:c.number()}),vs=Wi.extend({rangeStart:c.number().nullable(),rangeEnd:c.number().nullable()}),ob=vs.extend({rangeStart:c.number(),rangeEnd:c.null()}),lb=vs.extend({rangeStart:c.null(),rangeEnd:c.number()}),cb=vs.extend({rangeStart:c.number(),rangeEnd:c.number()}),Is=Wi.extend({rangeStart:c.date().nullable(),rangeEnd:c.date().nullable()}),db=Is.extend({rangeStart:c.date(),rangeEnd:c.null()}),ub=Is.extend({rangeStart:c.null(),rangeEnd:c.date()}),pb=Is.extend({rangeStart:c.date(),rangeEnd:c.date()}),zl=Wi.extend({rangeStart:c.null(),rangeEnd:c.null()}),Zl=c.union([ob,lb,cb]),Xl=c.union([ib,ab,sb]),Ql=c.union([db,ub,pb,rb]),Kl=c.union([Zl,Xl,Ql,Yl,zl]);function ec(){return c.union([c.object({type:c.literal(r.ValueDescriptor)}),c.record(c.string(),c.any())])}function yb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ValueDescriptor)})}function tc(){return c.object({id:c.string(),type:c.literal(r.ValueDescriptor),name:c.string(),required:c.boolean()})}function t4(){return tc().merge(c.object({version:c.number(),index:c.number()}))}function n4(){return tc().merge(c.object({}))}function r4(){return c.object({dataType:cn(),parent:on()})}function i4(){return t4().merge(r4())}function Ps(){return c.union([c.object({type:c.literal(r.PrimitiveEntity)}),c.record(c.string(),c.any())])}function Ds(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.PrimitiveEntity)})}function As(){return c.object({id:c.string(),type:c.literal(r.PrimitiveEntity),name:c.string(),description:c.string().nullable(),static:c.boolean(),abstract:c.boolean()})}function a4(){return As().merge(c.object({version:c.number()}))}function s4(){return As().merge(c.object({}))}function o4(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([Ps(),Jr()]))})}function l4(){return a4().merge(o4())}function Qn(){return c.union([c.object({type:c.literal(r.Property)}),c.record(c.string(),c.any())])}function hb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Property)})}function nc(){return c.object({id:c.string(),type:c.literal(r.Property),name:c.string(),description:c.string().nullable(),private:c.boolean(),static:c.boolean(),required:c.boolean(),abstract:c.boolean()})}function c4(){return nc().merge(c.object({version:c.number(),index:c.number()}))}function d4(){return nc().merge(c.object({}))}function u4(){return c.object({dataType:cn(),implements:Qn().nullable(),parent:c.union([nr(),Ds(),Ss()])})}function p4(){return c4().merge(u4())}function y4(){return c.enum([_.CRON_JOB,_.EXECUTION,_.HTTP_ENDPOINT,_.PERSISTED_ENTITY,_.RELATIONAL_DATABASE])}function Jr(){return c.union([c.object({type:c.literal(r.BuiltInBaseEntity)}),c.record(c.string(),c.any())])}function Ss(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.BuiltInBaseEntity)})}function rc(){return c.object({id:c.string(),version:c.number(),type:c.literal(r.BuiltInBaseEntity),name:y4(),description:c.string().nullable(),abstract:c.boolean(),static:c.boolean()})}function h4(){return rc()}function f4(){return rc().merge(c.object({}))}function m4(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([Jr(),Ps()]))})}function T4(){return h4().merge(m4())}function fb(){return c.enum([L.Dynamic,L.Fixed,L.None])}function Yt(){return c.union([c.object({type:c.literal(r.ActionDescriptor)}),c.record(c.string(),c.any())])}function on(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ActionDescriptor)})}function Os(){return c.object({id:c.string(),type:c.literal(r.ActionDescriptor),name:c.string(),description:c.string().nullable(),argumentsType:fb(),returnsType:fb()})}function E4(){return Os().merge(c.object({version:c.number()}))}function R4(){return Os().merge(c.object({}))}function b4(){return c.object({fixedArguments:c.array(ec()),fixedReturns:c.array(ec()),dynamicArgumentTypes:cn().nullable(),dynamicReturnTypes:cn().nullable(),parent:c.union([Et(),nr(),Ss(),Ds()]).nullable()})}function mb(){return E4().merge(b4())}function Wr(){return c.union([c.object({type:c.literal(r.Loop)}),c.record(c.string(),c.any())])}function zt(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Loop)})}function Tb(){return c.object({id:c.string(),type:c.literal(r.Loop)})}function g4(){return Tb().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function v4(){return Tb().merge(c.object({declaration:c.union([c.string(),At()])}))}function I4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),declaration:Yt(),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),error:ut(),body:At(),parent:c.union([un(),Et()]),breakStatements:c.array(Xr()),continueStatements:c.array(Hr())})}function P4(){return g4().merge(I4())}function Hr(){return c.union([c.object({type:c.literal(r.ContinueStatement)}),c.record(c.string(),c.any())])}function Yr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ContinueStatement)})}function ic(){return c.object({id:c.string(),type:c.literal(r.ContinueStatement)})}function D4(){return ic().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function A4(){return ic().merge(c.object({}))}function S4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:zt()})}function O4(){return D4().merge(S4())}function Kn(){return c.union([c.object({type:c.literal(r.ReturnStatement)}),c.record(c.string(),c.any())])}function zr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ReturnStatement)})}function ac(){return c.object({id:c.string(),type:c.literal(r.ReturnStatement)})}function C4(){return ac().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function B4(){return ac().merge(c.object({}))}function w4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:un()})}function _4(){return C4().merge(w4())}function Hi(){return c.union([c.object({type:c.literal(r.Search)}),c.record(c.string(),c.any())])}function Zr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Search)})}function sc(){return c.object({id:c.string(),type:c.literal(r.Search),name:c.string(),query:c.any(),description:c.string().nullable()})}function M4(){return sc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function N4(){return sc().merge(c.object({}))}function $4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),inputsDeclarations:c.array(tr()),inputs:c.array(Dt()),outputsDeclarations:c.array(Zt()),outputs:c.array(ut()),parent:c.union([un(),Et()]),error:ut().nullable()})}function V4(){return M4().merge($4())}function Zt(){return c.union([c.object({type:c.literal(r.ReturnDeclaration)}),c.record(c.string(),c.any())])}function Eb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ReturnDeclaration)})}function oc(){return c.object({id:c.string(),type:c.literal(r.ReturnDeclaration),name:c.string(),description:c.string().nullable(),isError:c.boolean()})}function L4(){return oc().merge(c.object({version:c.number(),index:c.number()}))}function G4(){return oc().merge(c.object({}))}function F4(){return c.object({dataType:cn().nullable(),readsValue:Xi().nullable(),parent:c.union([zr(),on(),on(),Zr(),ln(),Yr()])})}function U4(){return L4().merge(F4())}function Xr(){return c.union([c.object({type:c.literal(r.BreakStatement)}),c.record(c.string(),c.any())])}function ln(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.BreakStatement)})}function lc(){return c.object({id:c.string(),type:c.literal(r.BreakStatement)})}function x4(){return lc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function j4(){return lc().merge(c.object({}))}function k4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:zt()})}function q4(){return x4().merge(k4())}function ut(){return c.union([c.object({type:c.literal(r.OutputMap)}),c.record(c.string(),c.any())])}function cc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.OutputMap)})}function dc(){return c.object({id:c.string(),type:c.literal(r.OutputMap)})}function J4(){return dc().merge(c.object({version:c.number(),index:c.number()}))}function W4(){return dc().merge(c.object({}))}function H4(){return c.object({writesValues:c.array(dn()),declaration:c.union([Zt(),Qn()]),parent:c.union([ye(),zt(),ln()])})}function Y4(){return J4().merge(H4())}function Qr(){return c.union([c.object({type:c.literal(r.FunctionCall)}),c.record(c.string(),c.any())])}function Yi(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.FunctionCall)})}function uc(){return c.object({id:c.string(),type:c.literal(r.FunctionCall)})}function z4(){return uc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Z4(){return uc().merge(c.object({}))}function X4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:At(),inputs:c.array(Dt()),outputs:c.array(ut()),error:c.optional(ut()),parent:c.union([un(),Et()])})}function Q4(){return z4().merge(X4())}function K4(){return c.enum([Se.Equal,Se.NotEqual,Se.MoreThan,Se.MoreThanOrEqual,Se.LessThan,Se.LessThanOrEqual,Se.And,Se.Or,Bt.Empty,Bt.NotEmpty])}function zi(){return c.union([c.object({type:c.literal(r.Condition)}),c.record(c.string(),c.any())])}function Cs(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Condition)})}function pc(){return c.object({id:c.string(),type:c.literal(r.Condition)})}function eU(){return pc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function tU(){return pc().merge(c.object({}))}function nU(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),leftValue:Dt(),rightValue:Dt().nullable(),operator:K4(),parent:c.union([un(),Et()])})}function rU(){return eU().merge(nU())}function Zi(){return c.union([c.object({type:c.literal(r.InternalCall)}),c.record(c.string(),c.any())])}function yc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InternalCall)})}function hc(){return c.object({id:c.string(),type:c.literal(r.InternalCall),index:c.number()})}function iU(){return hc().merge(c.object({version:c.number(),index:c.number()}))}function aU(){return hc().merge(c.object({declaration:c.union([c.string(),At()])}))}function sU(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:At(),inputs:c.array(Dt()),outputs:c.array(ut()),parent:Cn(),error:c.optional(ut())})}function oU(){return iU().merge(sU())}function Dt(){return c.union([c.object({type:c.literal(r.InputMap)}),c.record(c.string(),c.any())])}function Bs(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InputMap)})}function fc(){return c.object({id:c.string(),type:c.literal(r.InputMap),name:c.string().nullable().optional(),description:c.string().nullable().optional()})}function lU(){return fc().merge(c.object({version:c.number(),index:c.number()}))}function cU(){return fc().merge(c.object({}))}function dU(){return c.object({defaultValue:mc().nullable(),declaration:c.union([tr(),Qn()]).nullable(),readsValue:Xi().nullable(),parent:c.union([ye(),Bs(),zt(),ln()]),dynamicArguments:c.array(Dt())})}function uU(){return lU().merge(dU())}function Kr(){return c.union([c.object({type:c.literal(r.Operation)}),c.record(c.string(),c.any())])}function ei(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Operation)})}function ws(){return c.object({id:c.string(),type:c.literal(r.Operation)})}function pU(){return ws().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function yU(){return ws().merge(c.object({}))}function hU(){return ws().merge(c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:Yt(),inputs:c.array(Dt()),outputs:c.array(ut()),error:c.array(ut()),dynamicArguments:c.array(Dt()),parent:c.union([un(),Et()])}))}function fU(){return pU().merge(hU())}function _s(){return c.union([c.string(),c.number(),c.boolean(),c.null(),c.date()])}function Rb(){return c.record(c.string(),_s())}function mU(){return c.array(c.union([_s(),Rb()]))}function bb(){return c.union([_s(),Rb(),mU()])}function gb(){return c.union([_s(),bb()])}function vb(){return c.enum([v.String,v.Number,v.Boolean,v.Null,v.Date,v.JSON,v.Enum,v.File,v.UUID,v.EntityTemplate,v.ActionDescriptor])}function TU(){return c.union([nr(),ei(),Qi()])}function EU(){return c.object({id:c.string(),name:vb(),type:c.literal(r.PrimitiveValue),value:gb(),autogeneration:Kl.nullable()})}function RU(){return EU().merge(c.object({}))}function Ut(){return c.object({id:c.string(),version:c.number(),name:vb(),type:c.literal(r.PrimitiveValue),value:gb(),valueAsType:TU().nullable(),autogeneration:Kl.nullable(),parent:c.union([Tc(),Bs()])})}function bU(){return Ut().extend({name:c.literal(v.String),value:c.string(),autogeneration:Zl.nullable()})}function gU(){return Ut().extend({name:c.literal(v.Number),value:c.number(),autogeneration:Xl.nullable()})}function vU(){return Ut().extend({name:c.literal(v.Boolean),value:c.boolean(),autogeneration:zl.nullable()})}function IU(){return Ut().extend({name:c.literal(v.Null),value:c.null(),autogeneration:c.null()})}function PU(){return Ut().extend({name:c.literal(v.Date),value:c.date(),autogeneration:Ql.nullable()})}function DU(){return Ut().extend({name:c.literal(v.JSON),value:bb(),autogeneration:c.null()})}function AU(){return Ut().extend({name:c.literal(v.Enum),value:c.string(),autogeneration:c.null()})}function SU(){return Ut().extend({name:c.literal(v.File),value:c.string(),autogeneration:c.null()})}function OU(){return Ut().extend({name:c.literal(v.UUID),value:c.string(),autogeneration:Yl.nullable()})}function CU(){return Ut().extend({name:c.literal(v.EntityTemplate),value:nr(),autogeneration:c.null()})}function BU(){return Ut().extend({name:c.literal(v.ActionDescriptor),value:Qi(),autogeneration:c.null()})}function mc(){return c.union([bU(),gU(),vU(),IU(),PU(),DU(),AU(),SU(),OU(),CU(),BU()])}function cn(){return c.union([c.object({type:c.literal(r.DataType)}),c.record(c.string(),c.any())])}function Tc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.DataType)})}function Ec(){return c.object({id:c.string(),type:c.literal(r.DataType),isNullable:c.boolean(),isList:c.boolean(),constant:c.boolean(),asType:c.boolean(),options:c.array(c.string()).optional()})}function wU(){return Ec().merge(c.object({version:c.number()}))}function _U(){return Ec().merge(c.object({}))}function MU(){return c.object({defaultValue:mc().nullable(),entity:c.union([ti(),Jr(),Ps(),Yt()]).nullable(),parent:c.union([hb(),Db(),on(),yb()])})}function NU(){return wU().merge(MU())}function Rc(){return c.union([c.object({type:c.literal(r.VariableDeclaration)}),c.record(c.string(),c.any())])}function $U(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.VariableDeclaration)})}function bc(){return c.object({id:c.string(),type:c.literal(r.VariableDeclaration),name:c.string(),description:c.string().nullable()})}function VU(){return bc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function LU(){return bc().merge(c.object({}))}function GU(){return c.object({dataType:cn().nullable(),readsValue:Xi().nullable(),writesValues:c.array(dn()),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),internalCalls:c.array(Zi()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),parent:c.union([un(),Et()])})}function FU(){return VU().merge(GU())}function Ib(){return c.union([c.object({type:c.literal(r.VariableInstance)}),c.record(c.string(),c.any())])}function UU(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.VariableInstance)})}function gc(){return c.object({id:c.string(),type:c.literal(r.VariableInstance)})}function xU(){return gc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function jU(){return gc().merge(c.object({}))}function kU(){return c.object({declaration:Rc(),dataType:cn().nullable(),readsValue:Xi().nullable(),writesValues:c.array(dn()),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),internalCalls:c.array(Zi()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),parent:c.union([un(),Et()])})}function qU(){return xU().merge(kU())}function vc(){return c.union([c.object({type:c.literal(r.InstalledProject)}),c.record(c.string(),c.any())])}function Ms(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InstalledProject)})}function JU(){return c.object({id:c.string(),type:c.literal(r.InstalledProject)})}function WU(){return c.object({version:c.number(),x:c.number(),y:c.number()})}function HU(){return c.object({})}function YU(){return c.object({implements:Et(),description:c.string().nullable(),functions:c.array(At()),events:c.array(Ic()),parent:Et()})}function zU(){return WU().merge(YU())}function Ic(){return c.union([c.object({type:c.literal(r.GlobalEvent)}),c.record(c.string(),c.any())])}function ZU(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.GlobalEvent)})}function Ns(){return c.object({id:c.string(),type:c.literal(r.GlobalEvent),name:c.string(),collapsed:c.boolean()})}function XU(){return Ns().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function QU(){return Ns().merge(c.object({}))}function KU(){return Ns().merge(c.object({returnStatements:c.array(Kn()),implements:c.array(mb()),inputs:c.array(tr()),calls:c.array(ke()),parent:c.union([Et(),Ms()])}))}function ex(){return XU().merge(KU())}function er(){return c.union([Rc(),Ib()])}function Cn(){return c.union([$U(),UU()])}function dn(){return c.union([er(),Dt(),Zt()])}function Pb(){return c.union([Cn(),Bs(),Eb()])}function Xi(){return c.union([er(),tr(),ut(),Kr(),Zi(),Qr()])}function tx(){return c.union([Cn(),Pc(),cc(),ei(),yc(),Yi()])}function nx(){return c.union([tr(),ut(),dn()])}function Db(){return c.union([Pc(),cc(),Pb()])}function $s(){return Ic()}function Vs(){return ZU()}function Ls(){return c.union([Kr(),Qr(),zi(),Hi(),er(),Zi(),Wr()])}function ye(){return c.union([ei(),Yi(),Cs(),Zr(),Cn(),yc(),zt()])}function Gs(){return c.union([Kr(),Qr(),zi(),Hi(),er(),Wr()])}function Fs(){return c.union([ei(),Yi(),Cs(),Zr(),Cn(),zt()])}function Ab(){return c.union([Ls(),Kn(),Xr(),Hr()])}function ke(){return c.union([ye(),zr(),ln(),Yr()])}function Sb(){return c.union([Gs(),Kn(),Xr(),Hr()])}function Ob(){return c.union([Fs(),zr(),ln(),Yr()])}function Bn(){return c.union([At(),$s()])}function Ue(){return c.union([Qi(),Vs()])}function rx(){return c.union([Ls(),Bn()])}function ix(){return c.union([ye(),Ue()])}function ax(){return c.union([Gs(),Bn()])}function sx(){return c.union([Fs(),Ue()])}function ox(){return c.union([Ab(),Bn()])}function lx(){return c.union([ke(),Ue()])}function cx(){return c.union([Sb(),Bn()])}function dx(){return c.union([Ob(),Ue()])}function ux(){return c.union([Bn(),Wr()])}function un(){return c.union([Ue(),zt()])}function px(){return c.union([Ls(),Bn()])}function yx(){return c.union([ye(),Ue()])}function hx(){return c.union([Gs(),Bn()])}function fx(){return c.union([Fs(),Ue()])}function mx(){return c.union([Kn(),Xr(),Hr()])}function Tx(){return c.union([zr(),ln(),Yr()])}function Ex(){return c.union([Jr(),Bx(),vc(),ti(),At(),$s(),er(),Dt(),ut(),zi(),Kr(),Qr(),Zt(),tr(),Ps(),cn(),Qn(),Yt(),Kn(),Hr(),Xr(),Wr(),Hi(),Yt(),Yt(),ec(),Zi()])}function Rx(){return c.union([Ss(),Et(),Ms(),nr(),Qi(),Vs(),Cn(),Bs(),cc(),Cs(),ei(),Yi(),Eb(),Pc(),Ds(),Tc(),hb(),on(),zr(),Yr(),ln(),zt(),Zr(),on(),on(),yb(),yc()])}function bx(){return c.union([vc(),ti(),At(),$s(),er(),zi(),Kr(),Qr(),Kn(),Hr(),Xr(),Wr(),Hi()])}function gx(){return c.union([Ms(),nr(),Qi(),Vs(),Cn(),Cs(),ei(),Yi(),zr(),Yr(),ln(),zt(),Zr()])}function tr(){return c.union([c.object({type:c.literal(r.ArgumentDeclaration)}),c.record(c.string(),c.any())])}function Pc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ArgumentDeclaration)})}function Dc(){return c.object({id:c.string(),type:c.literal(r.ArgumentDeclaration)})}function vx(){return Dc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Ix(){return Dc().merge(c.object({}))}function Px(){return c.object({dataType:cn().nullable(),writesValues:c.array(dn()),parent:c.union([Ue(),on(),on(),Zr(),ln()])})}function Dx(){return vx().merge(Px())}function At(){return c.union([c.object({type:c.literal(r.FunctionDeclaration)}),c.record(c.string(),c.any())])}function Qi(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.FunctionDeclaration)})}function Ac(){return c.object({id:c.string(),type:c.literal(r.FunctionDeclaration),name:c.string(),description:c.string().nullable()})}function Ax(){return Ac().merge(c.object({version:c.number(),x:c.number(),y:c.number(),index:c.number().nullable()}))}function Sx(){return Ac()}function Ox(){return c.object({inputs:c.array(tr()),implements:Yt().nullable(),returnStatements:c.array(Kn()),parent:c.union([Et(),Ms(),nr(),zt(),Ss(),Ds()])})}function Cx(){return Ax().merge(Ox())}function Bx(){return c.union([c.object({type:c.literal(r.Project)}),c.record(c.string(),c.any())])}function Et(){return c.object({entityType:c.literal(r.Project),entityId:c.string(),id:c.string(),type:c.literal(r.GenericReference)})}function Sc(){return c.object({id:c.string(),type:c.literal(r.Project),name:c.string(),description:c.string().nullable()})}function wx(){return Sc().merge(c.object({version:c.number()}))}function _x(){return Sc()}function Mx(){return c.object({entities:c.array(ti()),functions:c.array(At()),events:c.array(Ic()),projects:c.array(vc()),variableDeclarations:c.array(Rc()),variableInstances:c.array(Ib()),conditions:c.array(zi()),operations:c.array(Kr()),functionCalls:c.array(Qr()),loops:c.array(Wr()),searches:c.array(Hi())})}function Nx(){return wx().merge(Mx())}function ti(){return c.union([c.object({type:c.literal(r.CustomEntity)}),c.record(c.string(),c.any())])}function nr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.CustomEntity)})}function Oc(){return c.object({id:c.string(),type:c.literal(r.CustomEntity),name:c.string(),description:c.string().nullable(),static:c.boolean(),abstract:c.boolean()})}function $x(){return Oc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Vx(){return Oc().merge(c.object({}))}function Lx(){return c.union([Et(),Tc()])}function Gx(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([ti(),Jr()])),implements:c.array(c.union([ti(),Jr()])),parent:Lx()})}function Fx(){return $x().merge(Gx())}function Ux(n){const e=Fx(),t=n.toJSON();e.safeParse(t).success;const a=n.implements.flatMap(T=>kx(n,T)),s=n.extends.flatMap(T=>qx(n,T)),o=Wx(n),d=Jx(n);n.methods.flatMap(T=>T.validate());const p=[...a,...s,...o,...d];return X(n.errors,p)}function xx(n,e){const t=e.properties.filter(s=>s.abstract),i=[];let a=[...n.properties];return t.forEach(s=>{const o=a.find(d=>{var p;return((p=d.implements)==null?void 0:p.id)===s.id});o?a=a.filter(d=>d.id!==o.id):i.push(s)}),i}function jx(n,e){const t=e.abstractMethods,i=[];let a=[...n.methods];return t.forEach(s=>{const o=a.find(d=>{var p;return((p=d.implements)==null?void 0:p.id)===s.id});o?a=a.filter(d=>d.id!==o.id):i.push(s)}),i}function kx(n,e){const t=[];if(!e.abstract){const T=j({id:n.id+"--"+S.ImplementingNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is implementing a non-abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:S.ImplementingNonAbstractEntity,entity:n});return t.push(T.error),t}const i=e.properties.filter(T=>T.abstract),a=[];let s=[...n.properties];i.forEach(T=>{const m=s.find(b=>{var I;return((I=b.implements)==null?void 0:I.id)===T.id});m?s=s.filter(b=>b.id!==m.id):a.push(T)}),a.length&&a.forEach(T=>{const m=j({id:n.id+"--"+S.MissingPropertyImplementation+"--"+T.id,message:`Property "${T.name}" with id "${T.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:f.Error,code:S.MissingPropertyImplementation,entity:n});t.push(m.error)});const o=[];let d=[...n.methods];e.abstractMethods.forEach(T=>{const m=d.find(b=>{var I;return((I=b.implements)==null?void 0:I.id)===T.id});m?d=d.filter(b=>b.id!==m.id):o.push(T)}),o.length&&o.forEach(T=>{const m=j({id:n.id+"--"+S.MissingMethodImplementation+"--"+T.id,message:`Method "${T.name}" with id "${T.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:f.Error,code:S.MissingMethodImplementation,entity:n});t.push(m.error)});const p=[];e.properties.forEach(T=>{const m=s.find(b=>b.name===T.name);m&&p.push([m,T])}),p.length&&p.forEach(([T])=>{const m=j({id:n.id+"--"+g.PropertyOverwrite+"--"+T.id,message:`Property "${T.name}" with id "${T.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:g.PropertyOverwrite,entity:n});t.push(m.error)});const h=[];return e.methods.forEach(T=>{const m=d.find(b=>b.name===T.name);m&&h.push([m,T])}),h.length&&h.forEach(([T])=>{const m=j({id:n.id+"--"+g.MethodOverwrite+"--"+T.id,message:`Method "${T.name}" with id "${T.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:g.MethodOverwrite,entity:n});t.push(m.error)}),t}function qx(n,e){const t=[],i=[];if(e.abstract){const s=j({id:n.id+"--"+S.ExtendingAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is extending an abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:S.ExtendingAbstractEntity,entity:n});return t.push(s.error),t}n.properties.forEach(s=>{var d;const o=e.properties.find(p=>p.name===s.name);((d=s.implements)==null?void 0:d.id)!==(o==null?void 0:o.id)&&o&&i.push(s)}),i.length&&i.forEach(s=>{const o=j({id:n.id+"--"+g.PropertyOverwrite,message:`Property "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:g.PropertyOverwrite,entity:n});t.push(o.error)});const a=[];return n.methods.forEach(s=>{var d;const o=e.methods.find(p=>p.name===s.name);((d=s.implements)==null?void 0:d.id)!==(o==null?void 0:o.id)&&o&&a.push(s)}),a.length&&a.forEach(s=>{const o=j({id:n.id+"--"+g.MethodOverwrite,message:`Method "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:g.MethodOverwrite,entity:n});t.push(o.error)}),t}function Jx(n){const e=[];if(!n.properties.length){const t=j({id:n.id+"--"+S.NoProperties,message:"No properties implemented",issue:null,severity:f.Warning,code:S.NoProperties,entity:n});e.push(t.error)}return n.properties.forEach(t=>{t.validate()}),e}function Wx(n){const e=[];if(n.abstract){if(n.methods.length){const t=j({id:n.id+"--"+S.AbstractEntityWithNonAbstractMethods,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:f.Error,code:S.AbstractEntityWithNonAbstractMethods,entity:n});e.push(t.error)}if(n.properties.some(t=>!t.abstract)){const t=j({id:n.id+"--"+S.AbstractEntityWithNonAbstractProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:f.Error,code:S.AbstractEntityWithNonAbstractProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.abstract){const a=j({id:n.id+"--"+S.StaticEntityWithNonStaticProperties+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:f.Error,code:S.StaticEntityWithNonStaticProperties,entity:n});e.push(a.error)}})}}else{if(n.abstractMethods.length){const t=j({id:n.id+"--"+S.AbstractPropertyInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract methods`,issue:null,severity:f.Error,code:S.AbstractPropertyInNonAbstractEntity,entity:n});e.push(t.error)}if(n.properties.some(t=>t.abstract)){const t=j({id:n.id+"--"+S.AbstractMethodInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract properties`,issue:null,severity:f.Error,code:S.AbstractMethodInNonAbstractEntity,entity:n});e.push(t.error),n.properties.forEach(i=>{if(i.abstract){const a=j({id:n.id+"--"+S.AbstractMethodInNonAbstractEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:f.Error,code:S.AbstractMethodInNonAbstractEntity,entity:n});e.push(a.error)}})}}if(n.static&&n.properties.some(t=>!t.static)){const t=j({id:n.id+"--"+S.StaticEntityWithNonStaticProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as static but has non-static properties`,issue:null,severity:f.Error,code:S.StaticEntityWithNonStaticProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.static){const a=j({id:n.id+"--"+S.NonStaticPropertyInStaticEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as static but the entity is marked as static`,issue:null,severity:f.Error,code:S.NonStaticPropertyInStaticEntity,entity:n});e.push(a.error)}})}return e}function Hx(n){return n instanceof Error&&n.name==="ZodError"&&"issues"in n&&Array.isArray(n.issues)}var Yx=class extends Error{constructor(e,t){super(e,t);l(this,"name");l(this,"details");this.name="ZodValidationError",this.details=zx(t)}toString(){return this.message}};function zx(n){if(n){const e=n.cause;if(Hx(e))return e.issues}return[]}var Zx="; ",Cb="Validation error",Xx=": ",Qx=", or ";function Kx(n,e,t){return e!==null?n.length>0?[e,n].join(t):e:n.length>0?n:Cb}var e8=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function t8(n){return n.length===1?n[0].toString():n.reduce((e,t)=>{if(typeof t=="number")return e+"["+t.toString()+"]";if(t.includes('"'))return e+'["'+n8(t)+'"]';if(!e8.test(t))return e+'["'+t+'"]';const i=e.length===0?"":".";return e+i+t},"")}function n8(n){return n.replace(/"/g,'\\"')}function r8(n){return n.length!==0}function Us(n){const{issue:e,issueSeparator:t,unionSeparator:i,includePath:a}=n;if(e.code==="invalid_union")return e.unionErrors.reduce((s,o)=>{const d=o.issues.map(p=>Us({issue:p,issueSeparator:t,unionSeparator:i,includePath:a})).join(t);return s.includes(d)||s.push(d),s},[]).join(i);if(e.code==="invalid_arguments")return[e.message,...e.argumentsError.issues.map(s=>Us({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(e.code==="invalid_return_type")return[e.message,...e.returnTypeError.issues.map(s=>Us({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(a&&r8(e.path)){if(e.path.length===1){const s=e.path[0];if(typeof s=="number")return`${e.message} at index ${s}`}return`${e.message} at "${t8(e.path)}"`}return e.message}function i8(n,e={}){const{issueSeparator:t=Zx,unionSeparator:i=Qx,prefixSeparator:a=Xx,prefix:s=Cb,includePath:o=!0}=e,d=Us({issue:n,issueSeparator:t,unionSeparator:i,includePath:o}),p=Kx(d,s,a);return new Yx(p,{cause:new ft([n])})}var Bb="1.13.7",wb=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},xs=Array.prototype,Cc=Object.prototype,_b=typeof Symbol<"u"?Symbol.prototype:null,a8=xs.push,Ki=xs.slice,ea=Cc.toString,s8=Cc.hasOwnProperty,Mb=typeof ArrayBuffer<"u",o8=typeof DataView<"u",l8=Array.isArray,Nb=Object.keys,$b=Object.create,Vb=Mb&&ArrayBuffer.isView,c8=isNaN,d8=isFinite,Lb=!{toString:null}.propertyIsEnumerable("toString"),Gb=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],u8=Math.pow(2,53)-1;function Rt(n,e){return e=e==null?n.length-1:+e,function(){for(var t=Math.max(arguments.length-e,0),i=Array(t),a=0;a<t;a++)i[a]=arguments[a+e];switch(e){case 0:return n.call(this,i);case 1:return n.call(this,arguments[0],i);case 2:return n.call(this,arguments[0],arguments[1],i)}var s=Array(e+1);for(a=0;a<e;a++)s[a]=arguments[a];return s[e]=i,n.apply(this,s)}}function wn(n){var e=typeof n;return e==="function"||e==="object"&&!!n}function p8(n){return n===null}function Fb(n){return n===void 0}function Ub(n){return n===!0||n===!1||ea.call(n)==="[object Boolean]"}function y8(n){return!!(n&&n.nodeType===1)}function rt(n){var e="[object "+n+"]";return function(t){return ea.call(t)===e}}const Bc=rt("String"),xb=rt("Number"),h8=rt("Date"),f8=rt("RegExp"),m8=rt("Error"),jb=rt("Symbol"),kb=rt("ArrayBuffer");var qb=rt("Function"),T8=wb.document&&wb.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof T8!="function"&&(qb=function(n){return typeof n=="function"||!1});const pt=qb,Jb=rt("Object");var Wb=o8&&(!/\[native code\]/.test(String(DataView))||Jb(new DataView(new ArrayBuffer(8)))),wc=typeof Map<"u"&&Jb(new Map),E8=rt("DataView");function R8(n){return n!=null&&pt(n.getInt8)&&kb(n.buffer)}const js=Wb?R8:E8,rr=l8||rt("Array");function _n(n,e){return n!=null&&s8.call(n,e)}var _c=rt("Arguments");(function(){_c(arguments)||(_c=function(n){return _n(n,"callee")})})();const Mc=_c;function b8(n){return!jb(n)&&d8(n)&&!isNaN(parseFloat(n))}function Hb(n){return xb(n)&&c8(n)}function Yb(n){return function(){return n}}function zb(n){return function(e){var t=n(e);return typeof t=="number"&&t>=0&&t<=u8}}function Zb(n){return function(e){return e==null?void 0:e[n]}}const ks=Zb("byteLength"),g8=zb(ks);var v8=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function I8(n){return Vb?Vb(n)&&!js(n):g8(n)&&v8.test(ea.call(n))}const Xb=Mb?I8:Yb(!1),bt=Zb("length");function P8(n){for(var e={},t=n.length,i=0;i<t;++i)e[n[i]]=!0;return{contains:function(a){return e[a]===!0},push:function(a){return e[a]=!0,n.push(a)}}}function Qb(n,e){e=P8(e);var t=Gb.length,i=n.constructor,a=pt(i)&&i.prototype||Cc,s="constructor";for(_n(n,s)&&!e.contains(s)&&e.push(s);t--;)s=Gb[t],s in n&&n[s]!==a[s]&&!e.contains(s)&&e.push(s)}function We(n){if(!wn(n))return[];if(Nb)return Nb(n);var e=[];for(var t in n)_n(n,t)&&e.push(t);return Lb&&Qb(n,e),e}function ta(n){if(n==null)return!0;var e=bt(n);return typeof e=="number"&&(rr(n)||Bc(n)||Mc(n))?e===0:bt(We(n))===0}function Kb(n,e){var t=We(e),i=t.length;if(n==null)return!i;for(var a=Object(n),s=0;s<i;s++){var o=t[s];if(e[o]!==a[o]||!(o in a))return!1}return!0}function Q(n){if(n instanceof Q)return n;if(!(this instanceof Q))return new Q(n);this._wrapped=n}Q.VERSION=Bb,Q.prototype.value=function(){return this._wrapped},Q.prototype.valueOf=Q.prototype.toJSON=Q.prototype.value,Q.prototype.toString=function(){return String(this._wrapped)};function eg(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,ks(n))}var tg="[object DataView]";function Nc(n,e,t,i){if(n===e)return n!==0||1/n===1/e;if(n==null||e==null)return!1;if(n!==n)return e!==e;var a=typeof n;return a!=="function"&&a!=="object"&&typeof e!="object"?!1:ng(n,e,t,i)}function ng(n,e,t,i){n instanceof Q&&(n=n._wrapped),e instanceof Q&&(e=e._wrapped);var a=ea.call(n);if(a!==ea.call(e))return!1;if(Wb&&a=="[object Object]"&&js(n)){if(!js(e))return!1;a=tg}switch(a){case"[object RegExp]":case"[object String]":return""+n==""+e;case"[object Number]":return+n!=+n?+e!=+e:+n==0?1/+n===1/e:+n==+e;case"[object Date]":case"[object Boolean]":return+n==+e;case"[object Symbol]":return _b.valueOf.call(n)===_b.valueOf.call(e);case"[object ArrayBuffer]":case tg:return ng(eg(n),eg(e),t,i)}var s=a==="[object Array]";if(!s&&Xb(n)){var o=ks(n);if(o!==ks(e))return!1;if(n.buffer===e.buffer&&n.byteOffset===e.byteOffset)return!0;s=!0}if(!s){if(typeof n!="object"||typeof e!="object")return!1;var d=n.constructor,p=e.constructor;if(d!==p&&!(pt(d)&&d instanceof d&&pt(p)&&p instanceof p)&&"constructor"in n&&"constructor"in e)return!1}t=t||[],i=i||[];for(var h=t.length;h--;)if(t[h]===n)return i[h]===e;if(t.push(n),i.push(e),s){if(h=n.length,h!==e.length)return!1;for(;h--;)if(!Nc(n[h],e[h],t,i))return!1}else{var T=We(n),m;if(h=T.length,We(e).length!==h)return!1;for(;h--;)if(m=T[h],!(_n(e,m)&&Nc(n[m],e[m],t,i)))return!1}return t.pop(),i.pop(),!0}function D8(n,e){return Nc(n,e)}function na(n){if(!wn(n))return[];var e=[];for(var t in n)e.push(t);return Lb&&Qb(n,e),e}function $c(n){var e=bt(n);return function(t){if(t==null)return!1;var i=na(t);if(bt(i))return!1;for(var a=0;a<e;a++)if(!pt(t[n[a]]))return!1;return n!==ag||!pt(t[Vc])}}var Vc="forEach",rg="has",Lc=["clear","delete"],ig=["get",rg,"set"],A8=Lc.concat(Vc,ig),ag=Lc.concat(ig),S8=["add"].concat(Lc,Vc,rg);const O8=wc?$c(A8):rt("Map"),C8=wc?$c(ag):rt("WeakMap"),B8=wc?$c(S8):rt("Set"),w8=rt("WeakSet");function ni(n){for(var e=We(n),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=n[e[a]];return i}function _8(n){for(var e=We(n),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=[e[a],n[e[a]]];return i}function sg(n){for(var e={},t=We(n),i=0,a=t.length;i<a;i++)e[n[t[i]]]=t[i];return e}function Gc(n){var e=[];for(var t in n)pt(n[t])&&e.push(t);return e.sort()}function Fc(n,e){return function(t){var i=arguments.length;if(e&&(t=Object(t)),i<2||t==null)return t;for(var a=1;a<i;a++)for(var s=arguments[a],o=n(s),d=o.length,p=0;p<d;p++){var h=o[p];(!e||t[h]===void 0)&&(t[h]=s[h])}return t}}const og=Fc(na),qs=Fc(We),lg=Fc(na,!0);function M8(){return function(){}}function cg(n){if(!wn(n))return{};if($b)return $b(n);var e=M8();e.prototype=n;var t=new e;return e.prototype=null,t}function N8(n,e){var t=cg(n);return e&&qs(t,e),t}function $8(n){return wn(n)?rr(n)?n.slice():og({},n):n}function V8(n,e){return e(n),n}function dg(n){return rr(n)?n:[n]}Q.toPath=dg;function ra(n){return Q.toPath(n)}function Uc(n,e){for(var t=e.length,i=0;i<t;i++){if(n==null)return;n=n[e[i]]}return t?n:void 0}function ug(n,e,t){var i=Uc(n,ra(e));return Fb(i)?t:i}function L8(n,e){e=ra(e);for(var t=e.length,i=0;i<t;i++){var a=e[i];if(!_n(n,a))return!1;n=n[a]}return!!t}function xc(n){return n}function ia(n){return n=qs({},n),function(e){return Kb(e,n)}}function jc(n){return n=ra(n),function(e){return Uc(e,n)}}function aa(n,e,t){if(e===void 0)return n;switch(t??3){case 1:return function(i){return n.call(e,i)};case 3:return function(i,a,s){return n.call(e,i,a,s)};case 4:return function(i,a,s,o){return n.call(e,i,a,s,o)}}return function(){return n.apply(e,arguments)}}function pg(n,e,t){return n==null?xc:pt(n)?aa(n,e,t):wn(n)&&!rr(n)?ia(n):jc(n)}function kc(n,e){return pg(n,e,1/0)}Q.iteratee=kc;function gt(n,e,t){return Q.iteratee!==kc?Q.iteratee(n,e):pg(n,e,t)}function G8(n,e,t){e=gt(e,t);for(var i=We(n),a=i.length,s={},o=0;o<a;o++){var d=i[o];s[d]=e(n[d],d,n)}return s}function yg(){}function F8(n){return n==null?yg:function(e){return ug(n,e)}}function U8(n,e,t){var i=Array(Math.max(0,n));e=aa(e,t,1);for(var a=0;a<n;a++)i[a]=e(a);return i}function qc(n,e){return e==null&&(e=n,n=0),n+Math.floor(Math.random()*(e-n+1))}const sa=Date.now||function(){return new Date().getTime()};function hg(n){var e=function(s){return n[s]},t="(?:"+We(n).join("|")+")",i=RegExp(t),a=RegExp(t,"g");return function(s){return s=s==null?"":""+s,i.test(s)?s.replace(a,e):s}}const fg={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},x8=hg(fg),j8=sg(fg),k8=hg(j8),q8=Q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Jc=/(.)^/,J8={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W8=/\\|'|\r|\n|\u2028|\u2029/g;function H8(n){return"\\"+J8[n]}var Y8=/^\s*(\w|\$)+\s*$/;function z8(n,e,t){!e&&t&&(e=t),e=lg({},e,Q.templateSettings);var i=RegExp([(e.escape||Jc).source,(e.interpolate||Jc).source,(e.evaluate||Jc).source].join("|")+"|$","g"),a=0,s="__p+='";n.replace(i,function(h,T,m,b,I){return s+=n.slice(a,I).replace(W8,H8),a=I+h.length,T?s+=`'+
|
|
2
2
|
((__t=(`+T+`))==null?'':_.escape(__t))+
|
|
3
3
|
'`:m?s+=`'+
|
|
4
4
|
((__t=(`+m+`))==null?'':__t)+
|
|
@@ -10,9 +10,9 @@ __p+='`),h}),s+=`';
|
|
|
10
10
|
`,o="obj";s=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
|
11
11
|
`+s+`return __p;
|
|
12
12
|
`;var d;try{d=new Function(o,"_",s)}catch(h){throw h.source=s,h}var p=function(h){return d.call(this,h,Q)};return p.source="function("+o+`){
|
|
13
|
-
`+s+"}",p}function Z8(n,e,t){e=ra(e);var i=e.length;if(!i)return pt(t)?t.call(n):t;for(var a=0;a<i;a++){var s=n==null?void 0:n[e[a]];s===void 0&&(s=t,a=i),n=pt(s)?s.call(n):s}return n}var X8=0;function Q8(n){var e=++X8+"";return n?n+e:e}function K8(n){var e=Q(n);return e._chain=!0,e}function mg(n,e,t,i,a){if(!(i instanceof e))return n.apply(t,a);var s=cg(n.prototype),o=n.apply(s,a);return wn(o)?o:s}var ri=Rt(function(n,e){var t=ri.placeholder,i=function(){for(var a=0,s=e.length,o=Array(s),d=0;d<s;d++)o[d]=e[d]===t?arguments[a++]:e[d];for(;a<arguments.length;)o.push(arguments[a++]);return mg(n,i,this,this,o)};return i});ri.placeholder=Q;const Tg=Rt(function(n,e,t){if(!pt(n))throw new TypeError("Bind must be called on a function");var i=Rt(function(a){return mg(n,i,e,this,t.concat(a))});return i}),St=zb(bt);function ir(n,e,t,i){if(i=i||[],!e&&e!==0)e=1/0;else if(e<=0)return i.concat(n);for(var a=i.length,s=0,o=bt(n);s<o;s++){var d=n[s];if(St(d)&&(rr(d)||Mc(d)))if(e>1)ir(d,e-1,t,i),a=i.length;else for(var p=0,h=d.length;p<h;)i[a++]=d[p++];else t||(i[a++]=d)}return i}const e6=Rt(function(n,e){e=ir(e,!1,!1);var t=e.length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var i=e[t];n[i]=Tg(n[i],n)}return n});function t6(n,e){var t=function(i){var a=t.cache,s=""+(e?e.apply(this,arguments):i);return _n(a,s)||(a[s]=n.apply(this,arguments)),a[s]};return t.cache={},t}const Eg=Rt(function(n,e,t){return setTimeout(function(){return n.apply(null,t)},e)}),n6=ri(Eg,Q,1);function r6(n,e,t){var i,a,s,o,d=0;t||(t={});var p=function(){d=t.leading===!1?0:sa(),i=null,o=n.apply(a,s),i||(a=s=null)},h=function(){var T=sa();!d&&t.leading===!1&&(d=T);var m=e-(T-d);return a=this,s=arguments,m<=0||m>e?(i&&(clearTimeout(i),i=null),d=T,o=n.apply(a,s),i||(a=s=null)):!i&&t.trailing!==!1&&(i=setTimeout(p,m)),o};return h.cancel=function(){clearTimeout(i),d=0,i=a=s=null},h}function i6(n,e,t){var i,a,s,o,d,p=function(){var T=sa()-a;e>T?i=setTimeout(p,e-T):(i=null,t||(o=n.apply(d,s)),i||(s=d=null))},h=Rt(function(T){return d=this,s=T,a=sa(),i||(i=setTimeout(p,e),t&&(o=n.apply(d,s))),o});return h.cancel=function(){clearTimeout(i),i=s=d=null},h}function a6(n,e){return ri(e,n)}function Wc(n){return function(){return!n.apply(this,arguments)}}function s6(){var n=arguments,e=n.length-1;return function(){for(var t=e,i=n[e].apply(this,arguments);t--;)i=n[t].call(this,i);return i}}function o6(n,e){return function(){if(--n<1)return e.apply(this,arguments)}}function Rg(n,e){var t;return function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=null),t}}const l6=ri(Rg,2);function bg(n,e,t){e=gt(e,t);for(var i=We(n),a,s=0,o=i.length;s<o;s++)if(a=i[s],e(n[a],a,n))return a}function gg(n){return function(e,t,i){t=gt(t,i);for(var a=bt(e),s=n>0?0:a-1;s>=0&&s<a;s+=n)if(t(e[s],s,e))return s;return-1}}const Hc=gg(1),vg=gg(-1);function Ig(n,e,t,i){t=gt(t,i,1);for(var a=t(e),s=0,o=bt(n);s<o;){var d=Math.floor((s+o)/2);t(n[d])<a?s=d+1:o=d}return s}function Pg(n,e,t){return function(i,a,s){var o=0,d=bt(i);if(typeof s=="number")n>0?o=s>=0?s:Math.max(s+d,o):d=s>=0?Math.min(s+1,d):s+d+1;else if(t&&s&&d)return s=t(i,a),i[s]===a?s:-1;if(a!==a)return s=e(Ki.call(i,o,d),Hb),s>=0?s+o:-1;for(s=n>0?o:d-1;s>=0&&s<d;s+=n)if(i[s]===a)return s;return-1}}const Dg=Pg(1,Hc,Ig),c6=Pg(-1,vg);function Yc(n,e,t){var i=St(n)?Hc:bg,a=i(n,e,t);if(a!==void 0&&a!==-1)return n[a]}function d6(n,e){return Yc(n,ia(e))}function pn(n,e,t){e=aa(e,t);var i,a;if(St(n))for(i=0,a=n.length;i<a;i++)e(n[i],i,n);else{var s=We(n);for(i=0,a=s.length;i<a;i++)e(n[s[i]],s[i],n)}return n}function ar(n,e,t){e=gt(e,t);for(var i=!St(n)&&We(n),a=(i||n).length,s=Array(a),o=0;o<a;o++){var d=i?i[o]:o;s[o]=e(n[d],d,n)}return s}function Ag(n){var e=function(t,i,a,s){var o=!St(t)&&We(t),d=(o||t).length,p=n>0?0:d-1;for(s||(a=t[o?o[p]:p],p+=n);p>=0&&p<d;p+=n){var h=o?o[p]:p;a=i(a,t[h],h,t)}return a};return function(t,i,a,s){var o=arguments.length>=3;return e(t,aa(i,s,4),a,o)}}const zc=Ag(1),Sg=Ag(-1);function ii(n,e,t){var i=[];return e=gt(e,t),pn(n,function(a,s,o){e(a,s,o)&&i.push(a)}),i}function u6(n,e,t){return ii(n,Wc(gt(e)),t)}function Og(n,e,t){e=gt(e,t);for(var i=!St(n)&&We(n),a=(i||n).length,s=0;s<a;s++){var o=i?i[s]:s;if(!e(n[o],o,n))return!1}return!0}function Cg(n,e,t){e=gt(e,t);for(var i=!St(n)&&We(n),a=(i||n).length,s=0;s<a;s++){var o=i?i[s]:s;if(e(n[o],o,n))return!0}return!1}function yn(n,e,t,i){return St(n)||(n=ni(n)),(typeof t!="number"||i)&&(t=0),Dg(n,e,t)>=0}const p6=Rt(function(n,e,t){var i,a;return pt(e)?a=e:(e=ra(e),i=e.slice(0,-1),e=e[e.length-1]),ar(n,function(s){var o=a;if(!o){if(i&&i.length&&(s=Uc(s,i)),s==null)return;o=s[e]}return o==null?o:o.apply(s,t)})});function Zc(n,e){return ar(n,jc(e))}function y6(n,e){return ii(n,ia(e))}function Bg(n,e,t){var i=-1/0,a=-1/0,s,o;if(e==null||typeof e=="number"&&typeof n[0]!="object"&&n!=null){n=St(n)?n:ni(n);for(var d=0,p=n.length;d<p;d++)s=n[d],s!=null&&s>i&&(i=s)}else e=gt(e,t),pn(n,function(h,T,m){o=e(h,T,m),(o>a||o===-1/0&&i===-1/0)&&(i=h,a=o)});return i}function h6(n,e,t){var i=1/0,a=1/0,s,o;if(e==null||typeof e=="number"&&typeof n[0]!="object"&&n!=null){n=St(n)?n:ni(n);for(var d=0,p=n.length;d<p;d++)s=n[d],s!=null&&s<i&&(i=s)}else e=gt(e,t),pn(n,function(h,T,m){o=e(h,T,m),(o<a||o===1/0&&i===1/0)&&(i=h,a=o)});return i}var f6=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function wg(n){return n?rr(n)?Ki.call(n):Bc(n)?n.match(f6):St(n)?ar(n,xc):ni(n):[]}function _g(n,e,t){if(e==null||t)return St(n)||(n=ni(n)),n[qc(n.length-1)];var i=wg(n),a=bt(i);e=Math.max(Math.min(e,a),0);for(var s=a-1,o=0;o<e;o++){var d=qc(o,s),p=i[o];i[o]=i[d],i[d]=p}return i.slice(0,e)}function m6(n){return _g(n,1/0)}function T6(n,e,t){var i=0;return e=gt(e,t),Zc(ar(n,function(a,s,o){return{value:a,index:i++,criteria:e(a,s,o)}}).sort(function(a,s){var o=a.criteria,d=s.criteria;if(o!==d){if(o>d||o===void 0)return 1;if(o<d||d===void 0)return-1}return a.index-s.index}),"value")}function Js(n,e){return function(t,i,a){var s=e?[[],[]]:{};return i=gt(i,a),pn(t,function(o,d){var p=i(o,d,t);n(s,o,p)}),s}}const E6=Js(function(n,e,t){_n(n,t)?n[t].push(e):n[t]=[e]}),R6=Js(function(n,e,t){n[t]=e}),b6=Js(function(n,e,t){_n(n,t)?n[t]++:n[t]=1}),g6=Js(function(n,e,t){n[t?0:1].push(e)},!0);function v6(n){return n==null?0:St(n)?n.length:We(n).length}function I6(n,e,t){return e in t}const Mg=Rt(function(n,e){var t={},i=e[0];if(n==null)return t;pt(i)?(e.length>1&&(i=aa(i,e[1])),e=na(n)):(i=I6,e=ir(e,!1,!1),n=Object(n));for(var a=0,s=e.length;a<s;a++){var o=e[a],d=n[o];i(d,o,n)&&(t[o]=d)}return t}),P6=Rt(function(n,e){var t=e[0],i;return pt(t)?(t=Wc(t),e.length>1&&(i=e[1])):(e=ar(ir(e,!1,!1),String),t=function(a,s){return!yn(e,s)}),Mg(n,t,i)});function Ng(n,e,t){return Ki.call(n,0,Math.max(0,n.length-(e==null||t?1:e)))}function Xc(n,e,t){return n==null||n.length<1?e==null||t?void 0:[]:e==null||t?n[0]:Ng(n,n.length-e)}function Ws(n,e,t){return Ki.call(n,e==null||t?1:e)}function D6(n,e,t){return n==null||n.length<1?e==null||t?void 0:[]:e==null||t?n[n.length-1]:Ws(n,Math.max(0,n.length-e))}function A6(n){return ii(n,Boolean)}function S6(n,e){return ir(n,e,!1)}const $g=Rt(function(n,e){return e=ir(e,!0,!0),ii(n,function(t){return!yn(e,t)})}),O6=Rt(function(n,e){return $g(n,e)});function Qc(n,e,t,i){Ub(e)||(i=t,t=e,e=!1),t!=null&&(t=gt(t,i));for(var a=[],s=[],o=0,d=bt(n);o<d;o++){var p=n[o],h=t?t(p,o,n):p;e&&!t?((!o||s!==h)&&a.push(p),s=h):t?yn(s,h)||(s.push(h),a.push(p)):yn(a,p)||a.push(p)}return a}const C6=Rt(function(n){return Qc(ir(n,!0,!0))});function B6(n){for(var e=[],t=arguments.length,i=0,a=bt(n);i<a;i++){var s=n[i];if(!yn(e,s)){var o;for(o=1;o<t&&yn(arguments[o],s);o++);o===t&&e.push(s)}}return e}function Kc(n){for(var e=n&&Bg(n,bt).length||0,t=Array(e),i=0;i<e;i++)t[i]=Zc(n,i);return t}const w6=Rt(Kc);function _6(n,e){for(var t={},i=0,a=bt(n);i<a;i++)e?t[n[i]]=e[i]:t[n[i][0]]=n[i][1];return t}function M6(n,e,t){e==null&&(e=n||0,n=0),t||(t=e<n?-1:1);for(var i=Math.max(Math.ceil((e-n)/t),0),a=Array(i),s=0;s<i;s++,n+=t)a[s]=n;return a}function N6(n,e){if(e==null||e<1)return[];for(var t=[],i=0,a=n.length;i<a;)t.push(Ki.call(n,i,i+=e));return t}function ed(n,e){return n._chain?Q(e).chain():e}function Vg(n){return pn(Gc(n),function(e){var t=Q[e]=n[e];Q.prototype[e]=function(){var i=[this._wrapped];return a8.apply(i,arguments),ed(this,t.apply(Q,i))}}),Q}pn(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var e=xs[n];Q.prototype[n]=function(){var t=this._wrapped;return t!=null&&(e.apply(t,arguments),(n==="shift"||n==="splice")&&t.length===0&&delete t[0]),ed(this,t)}}),pn(["concat","join","slice"],function(n){var e=xs[n];Q.prototype[n]=function(){var t=this._wrapped;return t!=null&&(t=e.apply(t,arguments)),ed(this,t)}});var Lg=Vg(Object.freeze(Object.defineProperty({__proto__:null,VERSION:Bb,after:o6,all:Og,allKeys:na,any:Cg,assign:qs,before:Rg,bind:Tg,bindAll:e6,chain:K8,chunk:N6,clone:$8,collect:ar,compact:A6,compose:s6,constant:Yb,contains:yn,countBy:b6,create:N8,debounce:i6,default:Q,defaults:lg,defer:n6,delay:Eg,detect:Yc,difference:$g,drop:Ws,each:pn,escape:x8,every:Og,extend:og,extendOwn:qs,filter:ii,find:Yc,findIndex:Hc,findKey:bg,findLastIndex:vg,findWhere:d6,first:Xc,flatten:S6,foldl:zc,foldr:Sg,forEach:pn,functions:Gc,get:ug,groupBy:E6,has:L8,head:Xc,identity:xc,include:yn,includes:yn,indexBy:R6,indexOf:Dg,initial:Ng,inject:zc,intersection:B6,invert:sg,invoke:p6,isArguments:Mc,isArray:rr,isArrayBuffer:kb,isBoolean:Ub,isDataView:js,isDate:h8,isElement:y8,isEmpty:ta,isEqual:D8,isError:m8,isFinite:b8,isFunction:pt,isMap:O8,isMatch:Kb,isNaN:Hb,isNull:p8,isNumber:xb,isObject:wn,isRegExp:f8,isSet:B8,isString:Bc,isSymbol:jb,isTypedArray:Xb,isUndefined:Fb,isWeakMap:C8,isWeakSet:w8,iteratee:kc,keys:We,last:D6,lastIndexOf:c6,map:ar,mapObject:G8,matcher:ia,matches:ia,max:Bg,memoize:t6,methods:Gc,min:h6,mixin:Vg,negate:Wc,noop:yg,now:sa,object:_6,omit:P6,once:l6,pairs:_8,partial:ri,partition:g6,pick:Mg,pluck:Zc,property:jc,propertyOf:F8,random:qc,range:M6,reduce:zc,reduceRight:Sg,reject:u6,rest:Ws,restArguments:Rt,result:Z8,sample:_g,select:ii,shuffle:m6,size:v6,some:Cg,sortBy:T6,sortedIndex:Ig,tail:Ws,take:Xc,tap:V8,template:z8,templateSettings:q8,throttle:r6,times:U8,toArray:wg,toPath:dg,transpose:Kc,unescape:k8,union:C6,uniq:Qc,unique:Qc,uniqueId:Q8,unzip:Kc,values:ni,where:y6,without:O6,wrap:a6,zip:w6},Symbol.toStringTag,{value:"Module"})));Lg._=Lg;function Hs(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Gg(n){return n.charAt(0).toLowerCase()+n.slice(1)}function Fg(n,e){if(n.type!==r.Property||e.type!==r.Property)throw new Error(`Expected property entities for comparison. But got ${n.type} and ${e.type}.`);return n===e||n.id===e.id?!0:n.name!==e.name||n.static!==e.static||n.abstract!==e.abstract?!1:Ys(n.dataType,e.dataType).compatible}function Ug(n,e){if(n.type!==r.CustomEntity||e.type!==r.CustomEntity)throw new Error(`Expected custom entities for comparison. But got ${n.type} and ${e.type}.`);if(n===e||n.id===e.id)return!0;if(n.properties.length!==e.properties.length)return!1;let t=[...e.properties];const i=[];for(let a=0;a<n.properties.length;a++){const s=n.properties[a];t.find(d=>{const p=Fg(s,d);return p&&(t=t.filter(h=>h.id!==d.id)),p})||i.push(s)}return!(i.length>0)}var wt=(n=>(n.BothUnconstrained="both-unconstrained",n.AConstraintBUnconstrained="a-constraint-b-unconstrained",n.BConstraintAUnconstrained="b-constraint-a-unconstrained",n.Same="same",n.AIsListBIsNot="a-is-list-b-is-not",n.BIsListAIsNot="b-is-list-a-is-not",n.AIsNullableBIsNot="a-is-nullable-b-is-not",n.BIsNullableAIsNot="b-is-nullable-a-is-not",n.AIsTemplateBIsNot="a-is-template-b-is-not",n.BIsTemplateAIsNot="b-is-template-a-is-not",n.BothUntyped="both-untyped",n.AIsUntypedBIsNot="a-is-untyped-b-is-not",n.BIsUntypedAIsNot="b-is-untyped-a-is-not",n.TypeEntityMismatch="type-entity-mismatch",n.SameCustomEntities="same-custom-entities",n.CompatibleCustomEntities="compatible-custom-entities",n.IncompatibleCustomEntities="incompatible-custom-entities",n.SamePrimitiveEntities="same-primitive-entities",n.IncompatiblePrimitiveEntities="incompatible-primitive-entities",n.SameBuiltInBaseEntities="same-built-in-base-entities",n.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",n.CheckUnknown="check-unknown",n))(wt||{});function Ys(n,e){var t,i,a,s,o,d,p,h,T,m,b;if(n&&n.type!==r.DataType||e&&e.type!==r.DataType)throw new Error(`Expected data-type entities for comparison. But got ${n==null?void 0:n.type} and ${e==null?void 0:e.type}.`);if(n===null&&e===null)return{compatible:!0,type:"both-unconstrained"};if(n===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(e===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(n===e)return{compatible:!0,type:"same"};if(n.id===e.id)return{compatible:!0,type:"same"};if(n.isList!==e.isList)return{compatible:!1,type:n.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(n.isNullable!==e.isNullable)return{compatible:!1,type:n.isNullable?"a-is-nullable-b-is-not":"b-is-nullable-a-is-not"};if(n.asType!==e.asType)return{compatible:!1,type:n.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!n.entity&&e.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(n.entity&&!e.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!n.entity&&!e.entity)return{compatible:!0,type:"both-untyped"};if(((t=n.entity)==null?void 0:t.type)!==((i=e.entity)==null?void 0:i.type))return{compatible:!1,type:"type-entity-mismatch"};if(((a=n.entity)==null?void 0:a.type)===r.CustomEntity){if(((s=n.entity)==null?void 0:s.id)===((o=e.entity)==null?void 0:o.id))return{compatible:!0,type:"same-custom-entities"};const I=Ug(n.entity,e.entity);return{compatible:I,type:I?"compatible-custom-entities":"incompatible-custom-entities"}}return((d=n.entity)==null?void 0:d.type)===r.PrimitiveEntity?((p=n.entity)==null?void 0:p.id)===((h=e.entity)==null?void 0:h.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((T=n.entity)==null?void 0:T.type)===r.BuiltInBaseEntity?((m=n.entity)==null?void 0:m.id)===((b=e.entity)==null?void 0:b.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function xg(n){const e=n.project.builtInBaseEntities.find(a=>a.id===_.EXECUTION),t={id:n.id+"--infered-data-type",version:1,type:r.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},i=R(t,n.project);return i.inferred=!0,i.sync(t),i.setParent(n),i.entity=e,i}function jg(n){return n.dataType?n.dataType:null}function kg(n){return n.declaration?n.declaration.dataType:n.readsValue?zs(n.readsValue):null}function qg(n){return n.declaration.dataType}function Jg(n){if(n.dataType)return n.dataType;if(n.readsValue)return[r.Operation,r.FunctionCall,r.InternalCall].includes(n.readsValue.type)?xg(n):zs(n.readsValue);const e={id:n.id+"--infered-entity",type:r.CustomEntity,version:1,name:A(n,n.project),description:n.description,static:!0,abstract:!1,properties:[],methods:[],extends:[],implements:[],abstractMethods:[],x:0,y:0,parent:null},t=R(e,n.project);t.sync(e);const i=n.inputs.map(s=>{const o=zs(s),d={id:s.id+"--infered-property",type:r.Property,version:1,name:A(s,n.project),description:s.description,static:!0,abstract:!1,private:!1,required:!1,index:s.index,implements:null,dataType:null,parent:null},p=R(d,n.project);return p.setParent(t),p.dataType=o,p});t.properties=Uv(t.properties,i);const a=R({id:n.id+"--infered-data-type",version:1,type:r.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},n.project);return a.inferred=!0,t.setParent(a),a.entity=t,a.setParent(n),a}function Wg(n){return n.declaration?n.declaration.dataType:null}function zs(n){switch(n.type){case r.VariableDeclaration:return Jg(n);case r.ArgumentDeclaration:return jg(n);case r.ReturnDeclaration:return null;case r.VariableInstance:return qg(n);case r.InputMap:return kg(n);case r.OutputMap:return Wg(n);default:throw new Error(`Cannot infer data type from entity of type ${n.type}.`)}}function Zs(n){var e;switch(n.type){case r.ArgumentDeclaration:return n.dataType;case r.InputMap:return((e=n.declaration)==null?void 0:e.dataType)||null;case r.VariableDeclaration:return n.dataType;case r.VariableInstance:return n.declaration.dataType;case r.OutputMap:return n.declaration.dataType;case r.ReturnDeclaration:return n.dataType;default:return null}}function D(n){if(n){let e=null;return typeof n=="string"?e=n:n.entityId?e=n.entityId:n.type!==r.GenericReference&&(e=n.id),e}return null}function td(n){return n.declaration||n}function $6(n){return n.type===r.VariableDeclaration?n.parent===n.project?"global-declaration":"local-declaration":n.declaration.parent===n.project?"global-instance":"local-instance"}function nd(n,e){const t=[];if(n.type===r.Project)t.push(...n.variableDeclarations);else{const a=_t(Ie(n)).filter(s=>s.type===r.VariableDeclaration);t.push(...a),n.parent&&(st.includes(n.parent.type)||n.parent.type===r.Project)&&t.push(...nd(n.parent))}return t}function V6(n){return n.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,t){return t===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")}function L6(n){return n.split(/\s+/).map(i=>i[0].toUpperCase()+i.slice(1).toLowerCase()).join("")}function Hg(n){var e;return(e=n.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:e.map(t=>t.toLowerCase()).join("-")}function Xs(n){return Hg(n).toLowerCase()}function sr(n,e=!0){if(!(n!=null&&n.dataType))return"Any data type";if(!n.dataType.entity)return n.dataType.isList?"List of an unknown data type":"Unknown data type";if(n.dataType.entity.type===r.PrimitiveEntity){let t=n.dataType.entity.name;switch(n.dataType.entity.name){case v.String:t="Text";break;case v.JSON:t=e?"Any data structure":"Unknown data structure";break;default:t=n.dataType.entity.name;break}return n.dataType.isList?`List of ${t}s`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}else return n.dataType.isList?`List of ${n.dataType.entity.name} entities`:`${n.dataType.entity.name.slice(0,1).toUpperCase()+n.dataType.entity.name.slice(1)} entity`}function Yg(n){return sr(n.declaration)}function G6(n){return n.type===r.VariableInstance?Yg(n):sr(n)}function zg(n){if(!n)return"Any data type";if(!n.entity)return"Inherited";if(n.entity.type===r.PrimitiveEntity){const e=n.entity.name===v.String?"Text":n.entity.name;return n.isList?`List of ${e}s`:`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}else if(n.entity.type===r.CustomEntity){const e=id(n.entity);return n.isList?`List of ${e} entities`:e.slice(0,1).toUpperCase()+e.slice(1)}else if(n.entity.type===r.BuiltInBaseEntity){const e=rd(n.entity);return n.isList?`List of ${e} entities`:e.slice(0,1).toUpperCase()+e.slice(1)}else return n.isList?`List of ${n.entity.name} entities`:`${n.entity.name.slice(0,1).toUpperCase()+n.entity.name.slice(1)} entity`}function Zg(n){if(!n.dataType)return"Any data type";if(!n.dataType.entity)return"Inherited";if(n.dataType.entity.type===r.PrimitiveEntity){const e=n.dataType.entity.name===v.String?"Text":n.dataType.entity.name;return n.dataType.isList?`List of ${e}s`:`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}else if(n.dataType.entity.type===r.CustomEntity){const e=id(n.dataType.entity);return n.dataType.isList?`List of ${e} entities`:e.slice(0,1).toUpperCase()+e.slice(1)}else if(n.dataType.entity.type===r.BuiltInBaseEntity){const e=rd(n.dataType.entity);return n.dataType.isList?`List of ${e} entities`:e.slice(0,1).toUpperCase()+e.slice(1)}else return n.dataType.isList?`List of ${n.dataType.entity.name} entities`:`${n.dataType.entity.name.slice(0,1).toUpperCase()+n.dataType.entity.name.slice(1)} entity`}function Xg(n){switch(n.type){case r.Property:return Zg(n);case r.VariableDeclaration:return sr(n);case r.ArgumentDeclaration:return sr(n,!1);case r.InputMap:{const e=n.declaration;return e?Xg(e):"Unknown data type"}case r.ReturnDeclaration:return sr(n,!1);case r.OutputMap:{const e=n.declaration;return sr(e,!1)}}return"Unknown data type"}function Qs(n){switch(n.declaration.id){case Se.Equal:return"is equal to";case Se.NotEqual:return"is not equal to";case Se.MoreThan:return"is greater than";case Se.MoreThanOrEqual:return"is greater than or equal to";case Se.LessThan:return"is less than";case Se.LessThanOrEqual:return"is less than or equal to";case Se.And:return"and";case Se.Or:return"or";case Ct.Empty:return"is empty";case Ct.NotEmpty:return"is not empty"}}function Qg(n){return n.includes(_.HTTP_ENDPOINT)?"HTTP endpoint":n.includes(_.PERSISTED_ENTITY)?"Persisted entity":n.includes(_.CRON_JOB)?"Scheduled execution":n.includes(_.RELATIONAL_DATABASE)?"Relational database":"Entity"}function rd(n){switch(n.name){case _.HTTP_ENDPOINT:return"HTTP endpoint";case _.PERSISTED_ENTITY:return"Persisted entity";case _.CRON_JOB:return"Scheduled execution";case _.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function id(n){const e=$v(n);if(!e){const t=Mv(n);return t.includes(_.HTTP_ENDPOINT)?"HTTP endpoint":t.includes(_.PERSISTED_ENTITY)?"Persisted entity":t.includes(_.CRON_JOB)?"Scheduled execution":t.includes(_.RELATIONAL_DATABASE)?"Relational database":A(n,n.project)+" entity"}return A(e,n.project)+" entity"}function Kg(n){let e="Find ";return n.outputsDeclarations.forEach((t,i)=>{const a=Zs(t),s=Gg(a&&a.entity?A(a.entity,n.project):"unstructured data");i===0?e+=`${s} `:i===n.outputsDeclarations.length-1?e+=`and ${s} `:e+=`, ${s} `}),e}function ev(n){switch(n.name){case v.String:return"Text";case v.Number:return"Number";case v.Boolean:return"Boolean";case v.JSON:return"Data structure";case v.UUID:return"Unique identifier";case v.Date:return"Date";case v.EntityTemplate:return"Entity as template";case v.Enum:return"Enumeration";case v.File:return"File";case v.Null:return"Empty";case v.ActionDescriptor:return"Action descriptor";default:return n.name}}function tv(n){switch(n.id){case je.List:return"Loop over list items";case je.ManualFlow:return"Manual flow control loop";case je.ObjectKeys:return"Loop over object keys";case je.ObjectValues:return"Loop over object values";case je.Counted:return"Loop given number of times";case je.String:return"Loop over text characters";case at.Addition:return"Sum numbers";case at.Substraction:return"Subtract numbers";case at.Multiplication:return"Multiply numbers";case at.Division:return"Divide numbers";case at.Remainder:return"Get remainder of numbers";case at.Exponentiation:return"Get exponent of numbers";case ve.AddIndex:return"Add at index position";case ve.DeleteFirst:return"Delete first character";case ve.DeleteLast:return"Delete last character";case ve.DeleteIndex:return"Delete at index position";case ve.Join:return"Join texts";case ve.ReplaceAllMatches:return"Replace all matches";case ve.ReplaceFirst:return"Replace first match";case ve.ReplaceLast:return"Replace last match";case ve.Split:return"Split text";case ve.ReplaceIndex:return"Replace at index position";case ve.ReplaceSingleMatch:return"Replace single match";case ve.GetFirst:return"Get first character";case ve.GetLast:return"Get last character";case ve.GetIndex:return"Get at index position";case ve.Append:return"Add at the end";case ve.Prepend:return"Add at the start";case Pe.Wait:return"Wait";case Pe.Parallel:return"Run in parallel";case Pe.Sequential:return"Run in sequence";case Ye.HttpRequest:return"HTTP request";case Ze.CreateNewInstance:return"Create new copy of entity";case k.AddIndex:return"Add item at index position";case k.DeleteFirst:return"Delete first item";case k.DeleteLast:return"Delete last item";case k.DeleteIndex:return"Delete item at index position";case k.Join:return"Join lists";case k.ReplaceAllMatches:return"Replace all matches";case k.ReplaceFirst:return"Replace first match";case k.ReplaceLast:return"Replace last match";case k.Split:return"Split list";case k.ReplaceIndex:return"Replace at index position";case k.ReplaceSingleMatch:return"Replace single match";case k.GetFirst:return"Get first item";case k.GetLast:return"Get last item";case k.GetIndex:return"Get item at index position";case k.Append:return"Add item at the end";case k.Prepend:return"Add item at the start";case Kt.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(n.name.slice(0,1).toUpperCase()+n.name.slice(1)).replaceAll("-"," ")}}function A(n,e){var t;if(r.FunctionDeclaration===n.type){const i=n.name;if(Object.values(It).includes(i))switch(i){case It.AbortExecution:return"Abort execution";case It.DeletePersistedEntity:return"Delete persisted entity";case It.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return Hs(n.type).replaceAll("-"," ")}return i}if(r.BuiltInBaseEntity===n.type)return Qg([n.name]);if(Ld.includes(n.type)&&n.type!==r.ActionDescriptor)return n.name;switch(n.type){case r.Search:return Kg(n);case r.Operation:case r.InternalCall:case r.Loop:const i=Mt(n.declaration,e);return A(i,e);case r.ActionDescriptor:return tv(n);case r.BreakStatement:const a=Mt(n.parent,e);return`Stop loop ${A(a,e)}`;case r.ContinueStatement:const s=Mt(n.parent,e);return`Execute next iteration of ${A(s,e)}`;case r.FunctionCall:return Mt(n.declaration,e).name;case r.Condition:{const d=n;if((t=n.inputs)!=null&&t.length){const p=A(d.inputs[0],d.project);if(d.inputs[1]){const h=d.inputs[1].declaration.name;return`If ${p} ${Qs(d)} ${h}`}return`If ${p} ${Qs(d)}`}else return`If ${Qs(d)}`}case r.ReturnStatement:{const d=Mt(n.parent,e);return`Output of ${A(d,e)}`}case r.InputMap:if(n.declaration){const d=Mt(n.declaration,e);return A(d,e)||""}else return n.name||"";case r.VariableInstance:{const d=Mt(n.declaration,e);return A(d,e)||""}case r.OutputMap:if(n.declaration){const d=Mt(n.declaration,e);return(d==null?void 0:d.name)||""}else return"";case r.PrimitiveEntity:case r.PrimitiveValue:return ev(n);default:return Hs(n.type).replaceAll("-"," ")}}function Ks(n,e){const t=[];n.name||t.push(new E({id:`${n.id}--${g.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:f.Error,code:g.EmptyName,issue:null}));const i=e.entities.filter(a=>a.name===n.name);return i.length&&t.push(new E({id:`${n.id}--${g.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in the project. Entity with id "${i[0].id}" has the same name.
|
|
13
|
+
`+s+"}",p}function Z8(n,e,t){e=ra(e);var i=e.length;if(!i)return pt(t)?t.call(n):t;for(var a=0;a<i;a++){var s=n==null?void 0:n[e[a]];s===void 0&&(s=t,a=i),n=pt(s)?s.call(n):s}return n}var X8=0;function Q8(n){var e=++X8+"";return n?n+e:e}function K8(n){var e=Q(n);return e._chain=!0,e}function mg(n,e,t,i,a){if(!(i instanceof e))return n.apply(t,a);var s=cg(n.prototype),o=n.apply(s,a);return wn(o)?o:s}var ri=Rt(function(n,e){var t=ri.placeholder,i=function(){for(var a=0,s=e.length,o=Array(s),d=0;d<s;d++)o[d]=e[d]===t?arguments[a++]:e[d];for(;a<arguments.length;)o.push(arguments[a++]);return mg(n,i,this,this,o)};return i});ri.placeholder=Q;const Tg=Rt(function(n,e,t){if(!pt(n))throw new TypeError("Bind must be called on a function");var i=Rt(function(a){return mg(n,i,e,this,t.concat(a))});return i}),St=zb(bt);function ir(n,e,t,i){if(i=i||[],!e&&e!==0)e=1/0;else if(e<=0)return i.concat(n);for(var a=i.length,s=0,o=bt(n);s<o;s++){var d=n[s];if(St(d)&&(rr(d)||Mc(d)))if(e>1)ir(d,e-1,t,i),a=i.length;else for(var p=0,h=d.length;p<h;)i[a++]=d[p++];else t||(i[a++]=d)}return i}const e6=Rt(function(n,e){e=ir(e,!1,!1);var t=e.length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var i=e[t];n[i]=Tg(n[i],n)}return n});function t6(n,e){var t=function(i){var a=t.cache,s=""+(e?e.apply(this,arguments):i);return _n(a,s)||(a[s]=n.apply(this,arguments)),a[s]};return t.cache={},t}const Eg=Rt(function(n,e,t){return setTimeout(function(){return n.apply(null,t)},e)}),n6=ri(Eg,Q,1);function r6(n,e,t){var i,a,s,o,d=0;t||(t={});var p=function(){d=t.leading===!1?0:sa(),i=null,o=n.apply(a,s),i||(a=s=null)},h=function(){var T=sa();!d&&t.leading===!1&&(d=T);var m=e-(T-d);return a=this,s=arguments,m<=0||m>e?(i&&(clearTimeout(i),i=null),d=T,o=n.apply(a,s),i||(a=s=null)):!i&&t.trailing!==!1&&(i=setTimeout(p,m)),o};return h.cancel=function(){clearTimeout(i),d=0,i=a=s=null},h}function i6(n,e,t){var i,a,s,o,d,p=function(){var T=sa()-a;e>T?i=setTimeout(p,e-T):(i=null,t||(o=n.apply(d,s)),i||(s=d=null))},h=Rt(function(T){return d=this,s=T,a=sa(),i||(i=setTimeout(p,e),t&&(o=n.apply(d,s))),o});return h.cancel=function(){clearTimeout(i),i=s=d=null},h}function a6(n,e){return ri(e,n)}function Wc(n){return function(){return!n.apply(this,arguments)}}function s6(){var n=arguments,e=n.length-1;return function(){for(var t=e,i=n[e].apply(this,arguments);t--;)i=n[t].call(this,i);return i}}function o6(n,e){return function(){if(--n<1)return e.apply(this,arguments)}}function Rg(n,e){var t;return function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=null),t}}const l6=ri(Rg,2);function bg(n,e,t){e=gt(e,t);for(var i=We(n),a,s=0,o=i.length;s<o;s++)if(a=i[s],e(n[a],a,n))return a}function gg(n){return function(e,t,i){t=gt(t,i);for(var a=bt(e),s=n>0?0:a-1;s>=0&&s<a;s+=n)if(t(e[s],s,e))return s;return-1}}const Hc=gg(1),vg=gg(-1);function Ig(n,e,t,i){t=gt(t,i,1);for(var a=t(e),s=0,o=bt(n);s<o;){var d=Math.floor((s+o)/2);t(n[d])<a?s=d+1:o=d}return s}function Pg(n,e,t){return function(i,a,s){var o=0,d=bt(i);if(typeof s=="number")n>0?o=s>=0?s:Math.max(s+d,o):d=s>=0?Math.min(s+1,d):s+d+1;else if(t&&s&&d)return s=t(i,a),i[s]===a?s:-1;if(a!==a)return s=e(Ki.call(i,o,d),Hb),s>=0?s+o:-1;for(s=n>0?o:d-1;s>=0&&s<d;s+=n)if(i[s]===a)return s;return-1}}const Dg=Pg(1,Hc,Ig),c6=Pg(-1,vg);function Yc(n,e,t){var i=St(n)?Hc:bg,a=i(n,e,t);if(a!==void 0&&a!==-1)return n[a]}function d6(n,e){return Yc(n,ia(e))}function pn(n,e,t){e=aa(e,t);var i,a;if(St(n))for(i=0,a=n.length;i<a;i++)e(n[i],i,n);else{var s=We(n);for(i=0,a=s.length;i<a;i++)e(n[s[i]],s[i],n)}return n}function ar(n,e,t){e=gt(e,t);for(var i=!St(n)&&We(n),a=(i||n).length,s=Array(a),o=0;o<a;o++){var d=i?i[o]:o;s[o]=e(n[d],d,n)}return s}function Ag(n){var e=function(t,i,a,s){var o=!St(t)&&We(t),d=(o||t).length,p=n>0?0:d-1;for(s||(a=t[o?o[p]:p],p+=n);p>=0&&p<d;p+=n){var h=o?o[p]:p;a=i(a,t[h],h,t)}return a};return function(t,i,a,s){var o=arguments.length>=3;return e(t,aa(i,s,4),a,o)}}const zc=Ag(1),Sg=Ag(-1);function ii(n,e,t){var i=[];return e=gt(e,t),pn(n,function(a,s,o){e(a,s,o)&&i.push(a)}),i}function u6(n,e,t){return ii(n,Wc(gt(e)),t)}function Og(n,e,t){e=gt(e,t);for(var i=!St(n)&&We(n),a=(i||n).length,s=0;s<a;s++){var o=i?i[s]:s;if(!e(n[o],o,n))return!1}return!0}function Cg(n,e,t){e=gt(e,t);for(var i=!St(n)&&We(n),a=(i||n).length,s=0;s<a;s++){var o=i?i[s]:s;if(e(n[o],o,n))return!0}return!1}function yn(n,e,t,i){return St(n)||(n=ni(n)),(typeof t!="number"||i)&&(t=0),Dg(n,e,t)>=0}const p6=Rt(function(n,e,t){var i,a;return pt(e)?a=e:(e=ra(e),i=e.slice(0,-1),e=e[e.length-1]),ar(n,function(s){var o=a;if(!o){if(i&&i.length&&(s=Uc(s,i)),s==null)return;o=s[e]}return o==null?o:o.apply(s,t)})});function Zc(n,e){return ar(n,jc(e))}function y6(n,e){return ii(n,ia(e))}function Bg(n,e,t){var i=-1/0,a=-1/0,s,o;if(e==null||typeof e=="number"&&typeof n[0]!="object"&&n!=null){n=St(n)?n:ni(n);for(var d=0,p=n.length;d<p;d++)s=n[d],s!=null&&s>i&&(i=s)}else e=gt(e,t),pn(n,function(h,T,m){o=e(h,T,m),(o>a||o===-1/0&&i===-1/0)&&(i=h,a=o)});return i}function h6(n,e,t){var i=1/0,a=1/0,s,o;if(e==null||typeof e=="number"&&typeof n[0]!="object"&&n!=null){n=St(n)?n:ni(n);for(var d=0,p=n.length;d<p;d++)s=n[d],s!=null&&s<i&&(i=s)}else e=gt(e,t),pn(n,function(h,T,m){o=e(h,T,m),(o<a||o===1/0&&i===1/0)&&(i=h,a=o)});return i}var f6=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function wg(n){return n?rr(n)?Ki.call(n):Bc(n)?n.match(f6):St(n)?ar(n,xc):ni(n):[]}function _g(n,e,t){if(e==null||t)return St(n)||(n=ni(n)),n[qc(n.length-1)];var i=wg(n),a=bt(i);e=Math.max(Math.min(e,a),0);for(var s=a-1,o=0;o<e;o++){var d=qc(o,s),p=i[o];i[o]=i[d],i[d]=p}return i.slice(0,e)}function m6(n){return _g(n,1/0)}function T6(n,e,t){var i=0;return e=gt(e,t),Zc(ar(n,function(a,s,o){return{value:a,index:i++,criteria:e(a,s,o)}}).sort(function(a,s){var o=a.criteria,d=s.criteria;if(o!==d){if(o>d||o===void 0)return 1;if(o<d||d===void 0)return-1}return a.index-s.index}),"value")}function Js(n,e){return function(t,i,a){var s=e?[[],[]]:{};return i=gt(i,a),pn(t,function(o,d){var p=i(o,d,t);n(s,o,p)}),s}}const E6=Js(function(n,e,t){_n(n,t)?n[t].push(e):n[t]=[e]}),R6=Js(function(n,e,t){n[t]=e}),b6=Js(function(n,e,t){_n(n,t)?n[t]++:n[t]=1}),g6=Js(function(n,e,t){n[t?0:1].push(e)},!0);function v6(n){return n==null?0:St(n)?n.length:We(n).length}function I6(n,e,t){return e in t}const Mg=Rt(function(n,e){var t={},i=e[0];if(n==null)return t;pt(i)?(e.length>1&&(i=aa(i,e[1])),e=na(n)):(i=I6,e=ir(e,!1,!1),n=Object(n));for(var a=0,s=e.length;a<s;a++){var o=e[a],d=n[o];i(d,o,n)&&(t[o]=d)}return t}),P6=Rt(function(n,e){var t=e[0],i;return pt(t)?(t=Wc(t),e.length>1&&(i=e[1])):(e=ar(ir(e,!1,!1),String),t=function(a,s){return!yn(e,s)}),Mg(n,t,i)});function Ng(n,e,t){return Ki.call(n,0,Math.max(0,n.length-(e==null||t?1:e)))}function Xc(n,e,t){return n==null||n.length<1?e==null||t?void 0:[]:e==null||t?n[0]:Ng(n,n.length-e)}function Ws(n,e,t){return Ki.call(n,e==null||t?1:e)}function D6(n,e,t){return n==null||n.length<1?e==null||t?void 0:[]:e==null||t?n[n.length-1]:Ws(n,Math.max(0,n.length-e))}function A6(n){return ii(n,Boolean)}function S6(n,e){return ir(n,e,!1)}const $g=Rt(function(n,e){return e=ir(e,!0,!0),ii(n,function(t){return!yn(e,t)})}),O6=Rt(function(n,e){return $g(n,e)});function Qc(n,e,t,i){Ub(e)||(i=t,t=e,e=!1),t!=null&&(t=gt(t,i));for(var a=[],s=[],o=0,d=bt(n);o<d;o++){var p=n[o],h=t?t(p,o,n):p;e&&!t?((!o||s!==h)&&a.push(p),s=h):t?yn(s,h)||(s.push(h),a.push(p)):yn(a,p)||a.push(p)}return a}const C6=Rt(function(n){return Qc(ir(n,!0,!0))});function B6(n){for(var e=[],t=arguments.length,i=0,a=bt(n);i<a;i++){var s=n[i];if(!yn(e,s)){var o;for(o=1;o<t&&yn(arguments[o],s);o++);o===t&&e.push(s)}}return e}function Kc(n){for(var e=n&&Bg(n,bt).length||0,t=Array(e),i=0;i<e;i++)t[i]=Zc(n,i);return t}const w6=Rt(Kc);function _6(n,e){for(var t={},i=0,a=bt(n);i<a;i++)e?t[n[i]]=e[i]:t[n[i][0]]=n[i][1];return t}function M6(n,e,t){e==null&&(e=n||0,n=0),t||(t=e<n?-1:1);for(var i=Math.max(Math.ceil((e-n)/t),0),a=Array(i),s=0;s<i;s++,n+=t)a[s]=n;return a}function N6(n,e){if(e==null||e<1)return[];for(var t=[],i=0,a=n.length;i<a;)t.push(Ki.call(n,i,i+=e));return t}function ed(n,e){return n._chain?Q(e).chain():e}function Vg(n){return pn(Gc(n),function(e){var t=Q[e]=n[e];Q.prototype[e]=function(){var i=[this._wrapped];return a8.apply(i,arguments),ed(this,t.apply(Q,i))}}),Q}pn(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var e=xs[n];Q.prototype[n]=function(){var t=this._wrapped;return t!=null&&(e.apply(t,arguments),(n==="shift"||n==="splice")&&t.length===0&&delete t[0]),ed(this,t)}}),pn(["concat","join","slice"],function(n){var e=xs[n];Q.prototype[n]=function(){var t=this._wrapped;return t!=null&&(t=e.apply(t,arguments)),ed(this,t)}});var Lg=Vg(Object.freeze(Object.defineProperty({__proto__:null,VERSION:Bb,after:o6,all:Og,allKeys:na,any:Cg,assign:qs,before:Rg,bind:Tg,bindAll:e6,chain:K8,chunk:N6,clone:$8,collect:ar,compact:A6,compose:s6,constant:Yb,contains:yn,countBy:b6,create:N8,debounce:i6,default:Q,defaults:lg,defer:n6,delay:Eg,detect:Yc,difference:$g,drop:Ws,each:pn,escape:x8,every:Og,extend:og,extendOwn:qs,filter:ii,find:Yc,findIndex:Hc,findKey:bg,findLastIndex:vg,findWhere:d6,first:Xc,flatten:S6,foldl:zc,foldr:Sg,forEach:pn,functions:Gc,get:ug,groupBy:E6,has:L8,head:Xc,identity:xc,include:yn,includes:yn,indexBy:R6,indexOf:Dg,initial:Ng,inject:zc,intersection:B6,invert:sg,invoke:p6,isArguments:Mc,isArray:rr,isArrayBuffer:kb,isBoolean:Ub,isDataView:js,isDate:h8,isElement:y8,isEmpty:ta,isEqual:D8,isError:m8,isFinite:b8,isFunction:pt,isMap:O8,isMatch:Kb,isNaN:Hb,isNull:p8,isNumber:xb,isObject:wn,isRegExp:f8,isSet:B8,isString:Bc,isSymbol:jb,isTypedArray:Xb,isUndefined:Fb,isWeakMap:C8,isWeakSet:w8,iteratee:kc,keys:We,last:D6,lastIndexOf:c6,map:ar,mapObject:G8,matcher:ia,matches:ia,max:Bg,memoize:t6,methods:Gc,min:h6,mixin:Vg,negate:Wc,noop:yg,now:sa,object:_6,omit:P6,once:l6,pairs:_8,partial:ri,partition:g6,pick:Mg,pluck:Zc,property:jc,propertyOf:F8,random:qc,range:M6,reduce:zc,reduceRight:Sg,reject:u6,rest:Ws,restArguments:Rt,result:Z8,sample:_g,select:ii,shuffle:m6,size:v6,some:Cg,sortBy:T6,sortedIndex:Ig,tail:Ws,take:Xc,tap:V8,template:z8,templateSettings:q8,throttle:r6,times:U8,toArray:wg,toPath:dg,transpose:Kc,unescape:k8,union:C6,uniq:Qc,unique:Qc,uniqueId:Q8,unzip:Kc,values:ni,where:y6,without:O6,wrap:a6,zip:w6},Symbol.toStringTag,{value:"Module"})));Lg._=Lg;function Hs(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Gg(n){return n.charAt(0).toLowerCase()+n.slice(1)}function Fg(n,e){if(n.type!==r.Property||e.type!==r.Property)throw new Error(`Expected property entities for comparison. But got ${n.type} and ${e.type}.`);return n===e||n.id===e.id?!0:n.name!==e.name||n.static!==e.static||n.abstract!==e.abstract?!1:Ys(n.dataType,e.dataType).compatible}function Ug(n,e){if(n.type!==r.CustomEntity||e.type!==r.CustomEntity)throw new Error(`Expected custom entities for comparison. But got ${n.type} and ${e.type}.`);if(n===e||n.id===e.id)return!0;if(n.properties.length!==e.properties.length)return!1;let t=[...e.properties];const i=[];for(let a=0;a<n.properties.length;a++){const s=n.properties[a];t.find(d=>{const p=Fg(s,d);return p&&(t=t.filter(h=>h.id!==d.id)),p})||i.push(s)}return!(i.length>0)}var _t=(n=>(n.BothUnconstrained="both-unconstrained",n.AConstraintBUnconstrained="a-constraint-b-unconstrained",n.BConstraintAUnconstrained="b-constraint-a-unconstrained",n.Same="same",n.AIsListBIsNot="a-is-list-b-is-not",n.BIsListAIsNot="b-is-list-a-is-not",n.AIsNullableBIsNot="a-is-nullable-b-is-not",n.BIsNullableAIsNot="b-is-nullable-a-is-not",n.AIsTemplateBIsNot="a-is-template-b-is-not",n.BIsTemplateAIsNot="b-is-template-a-is-not",n.BothUntyped="both-untyped",n.AIsUntypedBIsNot="a-is-untyped-b-is-not",n.BIsUntypedAIsNot="b-is-untyped-a-is-not",n.TypeEntityMismatch="type-entity-mismatch",n.SameCustomEntities="same-custom-entities",n.CompatibleCustomEntities="compatible-custom-entities",n.IncompatibleCustomEntities="incompatible-custom-entities",n.SamePrimitiveEntities="same-primitive-entities",n.IncompatiblePrimitiveEntities="incompatible-primitive-entities",n.SameBuiltInBaseEntities="same-built-in-base-entities",n.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",n.CheckUnknown="check-unknown",n))(_t||{});function Ys(n,e){var t,i,a,s,o,d,p,h,T,m,b;if(n&&n.type!==r.DataType||e&&e.type!==r.DataType)throw new Error(`Expected data-type entities for comparison. But got ${n==null?void 0:n.type} and ${e==null?void 0:e.type}.`);if(n===null&&e===null)return{compatible:!0,type:"both-unconstrained"};if(n===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(e===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(n===e)return{compatible:!0,type:"same"};if(n.id===e.id)return{compatible:!0,type:"same"};if(n.isList!==e.isList)return{compatible:!1,type:n.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(n.isNullable!==e.isNullable)return{compatible:!1,type:n.isNullable?"a-is-nullable-b-is-not":"b-is-nullable-a-is-not"};if(n.asType!==e.asType)return{compatible:!1,type:n.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!n.entity&&e.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(n.entity&&!e.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!n.entity&&!e.entity)return{compatible:!0,type:"both-untyped"};if(((t=n.entity)==null?void 0:t.type)!==((i=e.entity)==null?void 0:i.type))return{compatible:!1,type:"type-entity-mismatch"};if(((a=n.entity)==null?void 0:a.type)===r.CustomEntity){if(((s=n.entity)==null?void 0:s.id)===((o=e.entity)==null?void 0:o.id))return{compatible:!0,type:"same-custom-entities"};const I=Ug(n.entity,e.entity);return{compatible:I,type:I?"compatible-custom-entities":"incompatible-custom-entities"}}return((d=n.entity)==null?void 0:d.type)===r.PrimitiveEntity?((p=n.entity)==null?void 0:p.id)===((h=e.entity)==null?void 0:h.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((T=n.entity)==null?void 0:T.type)===r.BuiltInBaseEntity?((m=n.entity)==null?void 0:m.id)===((b=e.entity)==null?void 0:b.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function xg(n){const e=n.project.builtInBaseEntities.find(a=>a.id===_.EXECUTION),t={id:n.id+"--infered-data-type",version:1,type:r.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},i=R(t,n.project);return i.inferred=!0,i.sync(t),i.setParent(n),i.entity=e,i}function jg(n){return n.dataType?n.dataType:null}function kg(n){return n.declaration?n.declaration.dataType:n.readsValue?zs(n.readsValue):null}function qg(n){return n.declaration.dataType}function Jg(n){if(n.dataType)return n.dataType;if(n.readsValue)return[r.Operation,r.FunctionCall,r.InternalCall].includes(n.readsValue.type)?xg(n):zs(n.readsValue);const e={id:n.id+"--infered-entity",type:r.CustomEntity,version:1,name:A(n,n.project),description:n.description,static:!0,abstract:!1,properties:[],methods:[],extends:[],implements:[],abstractMethods:[],x:0,y:0,parent:null},t=R(e,n.project);t.sync(e);const i=n.inputs.map(s=>{const o=zs(s),d={id:s.id+"--infered-property",type:r.Property,version:1,name:A(s,n.project),description:s.description,static:!0,abstract:!1,private:!1,required:!1,index:s.index,implements:null,dataType:null,parent:null},p=R(d,n.project);return p.setParent(t),p.dataType=o,p});t.properties=Uv(t.properties,i);const a=R({id:n.id+"--infered-data-type",version:1,type:r.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},n.project);return a.inferred=!0,t.setParent(a),a.entity=t,a.setParent(n),a}function Wg(n){return n.declaration?n.declaration.dataType:null}function zs(n){switch(n.type){case r.VariableDeclaration:return Jg(n);case r.ArgumentDeclaration:return jg(n);case r.ReturnDeclaration:return null;case r.VariableInstance:return qg(n);case r.InputMap:return kg(n);case r.OutputMap:return Wg(n);default:throw new Error(`Cannot infer data type from entity of type ${n.type}.`)}}function Zs(n){var e;switch(n.type){case r.ArgumentDeclaration:return n.dataType;case r.InputMap:return((e=n.declaration)==null?void 0:e.dataType)||null;case r.VariableDeclaration:return n.dataType;case r.VariableInstance:return n.declaration.dataType;case r.OutputMap:return n.declaration.dataType;case r.ReturnDeclaration:return n.dataType;default:return null}}function D(n){if(n){let e=null;return typeof n=="string"?e=n:n.entityId?e=n.entityId:n.type!==r.GenericReference&&(e=n.id),e}return null}function td(n){return n.declaration||n}function $6(n){return n.type===r.VariableDeclaration?n.parent===n.project?"global-declaration":"local-declaration":n.declaration.parent===n.project?"global-instance":"local-instance"}function nd(n,e){const t=[];if(n.type===r.Project)t.push(...n.variableDeclarations);else{const a=Mt(Ie(n)).filter(s=>s.type===r.VariableDeclaration);t.push(...a),n.parent&&(st.includes(n.parent.type)||n.parent.type===r.Project)&&t.push(...nd(n.parent))}return t}function V6(n){return n.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,t){return t===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")}function L6(n){return n.split(/\s+/).map(i=>i[0].toUpperCase()+i.slice(1).toLowerCase()).join("")}function Hg(n){var e;return(e=n.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:e.map(t=>t.toLowerCase()).join("-")}function Xs(n){return Hg(n).toLowerCase()}function sr(n,e=!0){if(!(n!=null&&n.dataType))return"Any data type";if(!n.dataType.entity)return n.dataType.isList?"List of an unknown data type":"Unknown data type";if(n.dataType.entity.type===r.PrimitiveEntity){let t=n.dataType.entity.name;switch(n.dataType.entity.name){case v.String:t="Text";break;case v.JSON:t=e?"Any data structure":"Unknown data structure";break;default:t=n.dataType.entity.name;break}return n.dataType.isList?`List of ${t}s`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}else return n.dataType.isList?`List of ${n.dataType.entity.name} entities`:`${n.dataType.entity.name.slice(0,1).toUpperCase()+n.dataType.entity.name.slice(1)} entity`}function Yg(n){return sr(n.declaration)}function G6(n){return n.type===r.VariableInstance?Yg(n):sr(n)}function zg(n){if(!n)return"Any data type";if(!n.entity)return"Inherited";if(n.entity.type===r.PrimitiveEntity){const e=n.entity.name===v.String?"Text":n.entity.name;return n.isList?`List of ${e}s`:`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}else if(n.entity.type===r.CustomEntity){const e=id(n.entity);return n.isList?`List of ${e} entities`:e.slice(0,1).toUpperCase()+e.slice(1)}else if(n.entity.type===r.BuiltInBaseEntity){const e=rd(n.entity);return n.isList?`List of ${e} entities`:e.slice(0,1).toUpperCase()+e.slice(1)}else return n.isList?`List of ${n.entity.name} entities`:`${n.entity.name.slice(0,1).toUpperCase()+n.entity.name.slice(1)} entity`}function Zg(n){if(!n.dataType)return"Any data type";if(!n.dataType.entity)return"Inherited";if(n.dataType.entity.type===r.PrimitiveEntity){const e=n.dataType.entity.name===v.String?"Text":n.dataType.entity.name;return n.dataType.isList?`List of ${e}s`:`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}else if(n.dataType.entity.type===r.CustomEntity){const e=id(n.dataType.entity);return n.dataType.isList?`List of ${e} entities`:e.slice(0,1).toUpperCase()+e.slice(1)}else if(n.dataType.entity.type===r.BuiltInBaseEntity){const e=rd(n.dataType.entity);return n.dataType.isList?`List of ${e} entities`:e.slice(0,1).toUpperCase()+e.slice(1)}else return n.dataType.isList?`List of ${n.dataType.entity.name} entities`:`${n.dataType.entity.name.slice(0,1).toUpperCase()+n.dataType.entity.name.slice(1)} entity`}function Xg(n){switch(n.type){case r.Property:return Zg(n);case r.VariableDeclaration:return sr(n);case r.ArgumentDeclaration:return sr(n,!1);case r.InputMap:{const e=n.declaration;return e?Xg(e):"Unknown data type"}case r.ReturnDeclaration:return sr(n,!1);case r.OutputMap:{const e=n.declaration;return sr(e,!1)}}return"Unknown data type"}function Qs(n){switch(n.declaration.id){case Se.Equal:return"is equal to";case Se.NotEqual:return"is not equal to";case Se.MoreThan:return"is greater than";case Se.MoreThanOrEqual:return"is greater than or equal to";case Se.LessThan:return"is less than";case Se.LessThanOrEqual:return"is less than or equal to";case Se.And:return"and";case Se.Or:return"or";case Bt.Empty:return"is empty";case Bt.NotEmpty:return"is not empty"}}function Qg(n){return n.includes(_.HTTP_ENDPOINT)?"HTTP endpoint":n.includes(_.PERSISTED_ENTITY)?"Persisted entity":n.includes(_.CRON_JOB)?"Scheduled execution":n.includes(_.RELATIONAL_DATABASE)?"Relational database":"Entity"}function rd(n){switch(n.name){case _.HTTP_ENDPOINT:return"HTTP endpoint";case _.PERSISTED_ENTITY:return"Persisted entity";case _.CRON_JOB:return"Scheduled execution";case _.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function id(n){const e=$v(n);if(!e){const t=Mv(n);return t.includes(_.HTTP_ENDPOINT)?"HTTP endpoint":t.includes(_.PERSISTED_ENTITY)?"Persisted entity":t.includes(_.CRON_JOB)?"Scheduled execution":t.includes(_.RELATIONAL_DATABASE)?"Relational database":A(n,n.project)+" entity"}return A(e,n.project)+" entity"}function Kg(n){let e="Find ";return n.outputsDeclarations.forEach((t,i)=>{const a=Zs(t),s=Gg(a&&a.entity?A(a.entity,n.project):"unstructured data");i===0?e+=`${s} `:i===n.outputsDeclarations.length-1?e+=`and ${s} `:e+=`, ${s} `}),e}function ev(n){switch(n.name){case v.String:return"Text";case v.Number:return"Number";case v.Boolean:return"Boolean";case v.JSON:return"Data structure";case v.UUID:return"Unique identifier";case v.Date:return"Date";case v.EntityTemplate:return"Entity as template";case v.Enum:return"Enumeration";case v.File:return"File";case v.Null:return"Empty";case v.ActionDescriptor:return"Action descriptor";default:return n.name}}function tv(n){switch(n.id){case je.List:return"Loop over list items";case je.ManualFlow:return"Manual flow control loop";case je.ObjectKeys:return"Loop over object keys";case je.ObjectValues:return"Loop over object values";case je.Counted:return"Loop given number of times";case je.String:return"Loop over text characters";case at.Addition:return"Sum numbers";case at.Substraction:return"Subtract numbers";case at.Multiplication:return"Multiply numbers";case at.Division:return"Divide numbers";case at.Remainder:return"Get remainder of numbers";case at.Exponentiation:return"Get exponent of numbers";case ve.AddIndex:return"Add at index position";case ve.DeleteFirst:return"Delete first character";case ve.DeleteLast:return"Delete last character";case ve.DeleteIndex:return"Delete at index position";case ve.Join:return"Join texts";case ve.ReplaceAllMatches:return"Replace all matches";case ve.ReplaceFirst:return"Replace first match";case ve.ReplaceLast:return"Replace last match";case ve.Split:return"Split text";case ve.ReplaceIndex:return"Replace at index position";case ve.ReplaceSingleMatch:return"Replace single match";case ve.GetFirst:return"Get first character";case ve.GetLast:return"Get last character";case ve.GetIndex:return"Get at index position";case ve.Append:return"Add at the end";case ve.Prepend:return"Add at the start";case Pe.Wait:return"Wait";case Pe.Parallel:return"Run in parallel";case Pe.Sequential:return"Run in sequence";case Ye.HttpRequest:return"HTTP request";case Ze.CreateNewInstance:return"Create new copy of entity";case k.AddIndex:return"Add item at index position";case k.DeleteFirst:return"Delete first item";case k.DeleteLast:return"Delete last item";case k.DeleteIndex:return"Delete item at index position";case k.Join:return"Join lists";case k.ReplaceAllMatches:return"Replace all matches";case k.ReplaceFirst:return"Replace first match";case k.ReplaceLast:return"Replace last match";case k.Split:return"Split list";case k.ReplaceIndex:return"Replace at index position";case k.ReplaceSingleMatch:return"Replace single match";case k.GetFirst:return"Get first item";case k.GetLast:return"Get last item";case k.GetIndex:return"Get item at index position";case k.Append:return"Add item at the end";case k.Prepend:return"Add item at the start";case Kt.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(n.name.slice(0,1).toUpperCase()+n.name.slice(1)).replaceAll("-"," ")}}function A(n,e){var t;if(r.FunctionDeclaration===n.type){const i=n.name;if(Object.values(It).includes(i))switch(i){case It.AbortExecution:return"Abort execution";case It.DeletePersistedEntity:return"Delete persisted entity";case It.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return Hs(n.type).replaceAll("-"," ")}return i}if(r.BuiltInBaseEntity===n.type)return Qg([n.name]);if(Ld.includes(n.type)&&n.type!==r.ActionDescriptor)return n.name;switch(n.type){case r.Search:return Kg(n);case r.Operation:case r.InternalCall:case r.Loop:const i=Nt(n.declaration,e);return A(i,e);case r.ActionDescriptor:return tv(n);case r.BreakStatement:const a=Nt(n.parent,e);return`Stop loop ${A(a,e)}`;case r.ContinueStatement:const s=Nt(n.parent,e);return`Execute next iteration of ${A(s,e)}`;case r.FunctionCall:return Nt(n.declaration,e).name;case r.Condition:{const d=n;if((t=n.inputs)!=null&&t.length){const p=A(d.inputs[0],d.project);if(d.inputs[1]){const h=d.inputs[1].declaration.name;return`If ${p} ${Qs(d)} ${h}`}return`If ${p} ${Qs(d)}`}else return`If ${Qs(d)}`}case r.ReturnStatement:{const d=Nt(n.parent,e);return`Output of ${A(d,e)}`}case r.InputMap:if(n.declaration){const d=Nt(n.declaration,e);return A(d,e)||""}else return n.name||"";case r.VariableInstance:{const d=Nt(n.declaration,e);return A(d,e)||""}case r.OutputMap:if(n.declaration){const d=Nt(n.declaration,e);return(d==null?void 0:d.name)||""}else return"";case r.PrimitiveEntity:case r.PrimitiveValue:return ev(n);default:return Hs(n.type).replaceAll("-"," ")}}function Ks(n,e){const t=[];n.name||t.push(new E({id:`${n.id}--${g.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:f.Error,code:g.EmptyName,issue:null}));const i=e.entities.filter(a=>a.name===n.name);return i.length&&t.push(new E({id:`${n.id}--${g.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in the project. Entity with id "${i[0].id}" has the same name.
|
|
14
14
|
Please provide a unique 'name' string.`,severity:f.Error,code:g.NameNotUniqueInScope,issue:null})),t}function ad(n,e){const t=[];n.name||t.push(new E({id:`${n.id}--${g.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:f.Error,code:g.EmptyName,issue:null}));const i=n.parent?D(n.parent):null;let a=e;i&&(a=e.get(i));const s=[];a.type===r.CustomEntity?s.push(...a.methods.map(d=>d)):a.type===r.Project?s.push(...a.functions.map(d=>d)):a.type===r.Loop?a.body&&s.push(a.body):a.type===r.InstalledProject&&s.push(...a.functions.map(d=>d));const o=s.filter(d=>d.name===n.name);return o.length&&t.push(new E({id:`${n.id}--${g.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in ${a.type===r.Project?"the globally declared project scope":"its parent entity"}. Entity with id "${o[0].id}" has the same name.
|
|
15
|
-
Please provide a unique 'name' string.`,severity:f.Error,code:g.NameNotUniqueInScope,issue:null})),t}function sd(n,e){const t=[];n.name||t.push(new E({id:`${n.id}--${g.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:f.Error,code:g.EmptyName,issue:null}));const i=n.parent&&
|
|
15
|
+
Please provide a unique 'name' string.`,severity:f.Error,code:g.NameNotUniqueInScope,issue:null})),t}function sd(n,e){const t=[];n.name||t.push(new E({id:`${n.id}--${g.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:f.Error,code:g.EmptyName,issue:null}));const i=n.parent&&Nt(n.parent,e)||e;if(!i)t.push(new E({id:`${n.id}--parent-reference--${y.ReferencedEntityNotFound}`,message:`The entity with id '${n.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:f.Error,code:y.ReferencedEntityNotFound,issue:null}));else{const s=nd(i).filter(o=>o.name===n.name);s.length&&t.push(new E({id:`${n.id}--${g.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in its scope or higher scopes. Entity with id "${s[0].id}" has the same name.
|
|
16
16
|
Please provide a unique 'name' string.`,severity:f.Error,code:g.NameNotUniqueInScope,issue:null}))}return t}function od(n,e){const t=[];n.name||t.push(new E({id:`${n.id}--${g.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:f.Error,code:g.EmptyName,issue:null}));const i=D(n.parent);if(!i)t.push(new E({id:`${n.id}--parent-reference--${y.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${n.id}" and type "${n.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:f.Error,code:y.InvalidReferenceObjectStructure,issue:null}));else{const a=e.get(i);if(!a)t.push(new E({id:`${n.id}--parent-reference--${y.ReferencedEntityNotFound}`,message:`The entity with id '${i}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:f.Error,code:y.ReferencedEntityNotFound,issue:null}));else{const o=a.properties.filter(d=>d.name===n.name);o.length&&t.push(new E({id:`${n.id}--${g.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique among all properties in the parent entity. Entity with id "${o[0].id}" has the same name.
|
|
17
17
|
Please provide a unique 'name' string.`,severity:f.Error,code:g.NameNotUniqueInScope,issue:null}))}}return t}function ld(n,e){const t=[];n.name||t.push(new E({id:`${n.id}--${g.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:f.Error,code:g.EmptyName,issue:null}));const i=D(n.parent);if(!i)t.push(new E({id:`${n.id}--parent-reference--${y.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${n.id}" and type "${n.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:f.Error,code:y.InvalidReferenceObjectStructure,issue:null}));else{const a=e.get(i);if(!a)t.push(new E({id:`${n.id}--parent-reference--${y.ReferencedEntityNotFound}`,message:`The entity with id '${i}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:f.Error,code:y.ReferencedEntityNotFound,issue:null}));else{const o=Dd(a).filter(d=>d.name===n.name);o.length&&t.push(new E({id:`${n.id}--${g.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique among all inputs declared in the parent entity. Entity with id "${o[0].id}" has the same name.
|
|
18
18
|
Please provide a unique 'name' string.`,severity:f.Error,code:g.NameNotUniqueInScope,issue:null}))}}return t}function cd(n,e){const t=[];n.name||t.push(new E({id:`${n.id}--${g.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:f.Error,code:g.EmptyName,issue:null}));const i=D(n.parent);if(!i)t.push(new E({id:`${n.id}--parent-reference--${y.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${n.id}" and type "${n.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:f.Error,code:y.InvalidReferenceObjectStructure,issue:null}));else{const a=e.get(i);if(!a)t.push(new E({id:`${n.id}--parent-reference--${y.ReferencedEntityNotFound}`,message:`The entity with id '${i}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:f.Error,code:y.ReferencedEntityNotFound,issue:null}));else{const o=Ad(a).filter(d=>d.name===n.name);o.length&&t.push(new E({id:`${n.id}--${g.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique among all outputs declared in the parent entity. Entity with id "${o[0].id}" has the same name.
|
|
@@ -34,7 +34,7 @@ ${$n}`,issue:null}))}}}const o=i.parent&&t.get(i.parent)||t.getBuiltIn(i.parent)
|
|
|
34
34
|
The entitities of type '${N(T,"', '","' and '")}' can only have one 'data-type' child under the 'dataType' property so no 'parentRelationType' is needed.`,issue:null})),o.dataType)){const m=(p=o.dataType)==null?void 0:p.id;a.push(new E({id:`${e.id}--${y.NewEntityWouldOverriteExisting}`,code:y.NewEntityWouldOverriteExisting,severity:f.Error,message:`The entity with id '${e.id}' and type '${e.type}', cannot be added as a child to the entity with id '${i.parent}' and type '${h}', because it already has a 'data-type' child with id '${m}'.
|
|
35
35
|
The entitities of type '${N(T,"', '","' and '")}' can only have one 'data-type' child under the 'dataType' property. You can inspect the existing data-type entity with the 'describe_entity' action. Like so:
|
|
36
36
|
${Qt({describe_entity:m})}
|
|
37
|
-
Alternatively you can update the entity with 'update' action. Or replace it by first removing it and then creating a new one.`,issue:null}))}h===r.ActionDescriptor&&(!i.parentRelationType||!(i.parentRelationType===qe.DynamicArgumentTypes||i.parentRelationType===qe.DynamicReturnTypes))&&a.push(new E({id:`${e.id}--${y.InvalidParentRelationType}`,code:y.InvalidParentRelationType,severity:f.Error,message:`The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either 'dynamic-argument-types' or 'dynamic-return-types' when being added as a child to an entity of type 'action-descriptor'.`,issue:null})),h===r.DataType&&(!i.parentRelationType||!(i.parentRelationType===qe.AndDataTypeGroup||i.parentRelationType===qe.OrDataTypeGroup))&&a.push(new E({id:`${e.id}--${y.InvalidParentRelationType}`,code:y.InvalidParentRelationType,severity:f.Error,message:`The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either 'or-data-type-group' or 'and-data-type-group' when being added as a child to an entity of type 'data-type'.`,issue:null}))}return{errors:a,modifiedData:i}}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}addSelfToProject(){return this.parent.type===r.DataType?this.parentRelationType===qe.AndDataTypeGroup?this.parent.addToAndGroup(this):this.parentRelationType===qe.OrDataTypeGroup&&this.parent.addToOrGroup(this):this.parent.type===r.ActionDescriptor?this.parentRelationType===qe.DynamicArgumentTypes?this.parent.setDynamicArgumentTypes(this):this.parentRelationType===qe.DynamicReturnTypes&&this.parent.setDynamicReturnTypes(this):this.parent.setDataType(this),this}setParent(e){return this.parent=e,this}removeChildGroup(e){if(this.andChildrenGroup){const t=this.andChildrenGroup.findIndex(i=>i.id===e.id);t!==-1&&this.andChildrenGroup.splice(t,1)}if(this.orChildrenGroup){const t=this.orChildrenGroup.findIndex(i=>i.id===e.id);t!==-1&&this.orChildrenGroup.splice(t,1)}return this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.defaultValue&&(this.defaultValue=R(this.initialData.defaultValue,this.project),this.defaultValue.setParent(this),this.defaultValue.initChildren()),this.initialData.entity)if(this.initialData.entity.type===r.GenericReference){const e=this.project.findSubscribedInstanceFromReference(this.initialData.entity);this.entity=e}else this.entity=R(this.initialData.entity,this.project);return this.initialData.andChildrenGroup&&(this.andChildrenGroup=this.initialData.andChildrenGroup.map(e=>R(e,this.project))),this.initialData.orChildrenGroup&&(this.orChildrenGroup=this.initialData.orChildrenGroup.map(e=>R(e,this.project))),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.isNullable=e.isNullable||this.isNullable,this.isList=e.isList||this.isList,this.constant=e.constant||this.constant,this.asType=e.asType||this.asType,this.options=e.options||this.options,this.parentRelationType=e.parentRelationType||this.parentRelationType,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.defaultValue){const{affected:s,removed:o}=this.defaultValue.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}if(this.entity&&this.entity.type===r.CustomEntity&&this.entity.parent===this){const{affected:s,removed:o}=this.entity.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}if(!e){this.parent.type===r.DataType&&this.parent.removeChildGroup(this);const s=this.parent;if(s.type===r.DataType){if(this.parentRelationType===qe.AndDataTypeGroup){if(Array.isArray(s.andChildrenGroup)){const o=s.andChildrenGroup.findIndex(d=>d.id===this.id);o!==-1&&s.andChildrenGroup.splice(o,1)}}else if(this.parentRelationType===qe.OrDataTypeGroup&&Array.isArray(s.orChildrenGroup)){const o=s.orChildrenGroup.findIndex(d=>d.id===this.id);o!==-1&&s.orChildrenGroup.splice(o,1)}}else if(s.type===r.ActionDescriptor){const o=this.parent;this.parentRelationType===qe.DynamicArgumentTypes?o.removeDynamicArgumentTypes():this.parentRelationType===qe.DynamicReturnTypes&&o.removeDynamicReturnTypes()}else this.parent.removeDataType();i.push(s)}return{affected:O(i),removed:O(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.defaultValue){const{affected:i}=this.defaultValue.restore({seenEntities:e});t.push(...i)}if(this.entity&&this.entity.type===r.CustomEntity&&this.entity.parent===this){const{affected:i}=this.entity.restore({seenEntities:e});t.push(...i)}if(this.parent.type===r.DataType){const i=this.parent;Array.isArray(i.andChildrenGroup)&&i.andChildrenGroup.push(this)}if(this.parent.type===r.DataType){const i=this.parent;this.parentRelationType===qe.AndDataTypeGroup?Array.isArray(i.andChildrenGroup)&&i.andChildrenGroup.push(this):this.parentRelationType===qe.OrDataTypeGroup&&Array.isArray(i.orChildrenGroup)&&i.orChildrenGroup.push(this)}else if(this.parent.type===r.ActionDescriptor){const i=this.parent;this.parentRelationType===qe.DynamicArgumentTypes?i.setDynamicArgumentTypes(this):this.parentRelationType===qe.DynamicReturnTypes&&i.setDynamicReturnTypes(this)}else{const i=this.parent;i.setDataType(this),t.push(i)}return{affected:t,self:this}}toFlat(e=new Set){var i,a,s;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.andChildrenGroup)==null?void 0:i.flatMap(o=>o.toFlat(e)))||[],...((a=this.orChildrenGroup)==null?void 0:a.flatMap(o=>o.toFlat(e)))||[],...((s=this.entity)==null?void 0:s.toFlat(e))||[]])}toFlatIds(e=new Set){var i,a,s;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.andChildrenGroup)==null?void 0:i.flatMap(o=>o.toFlatIds(e)))||[],...((a=this.orChildrenGroup)==null?void 0:a.flatMap(o=>o.toFlatIds(e)))||[],...((s=this.entity)==null?void 0:s.toFlatIds(e))||[]])}toJSON(){var e,t,i,a;return{id:this.id,version:this.version,type:this.type,isNullable:this.isNullable,options:this.options,isList:this.isList,constant:this.constant,asType:this.asType,defaultValue:((e=this.defaultValue)==null?void 0:e.toJSON())||null,parentRelationType:this.parentRelationType,andChildrenGroup:((t=this.andChildrenGroup)==null?void 0:t.map(s=>s.toJSON()))||null,orChildrenGroup:((i=this.orChildrenGroup)==null?void 0:i.map(s=>s.toJSON()))||null,entity:((a=this.entity)==null?void 0:a.toReference())||null,parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e,t,i,a;return{id:this.id,version:this.version,type:this.type,isList:this.isList,isNullable:this.isNullable,options:this.options,constant:this.constant,asType:this.asType,parentRelationType:this.parentRelationType,defaultValue:((e=this.defaultValue)==null?void 0:e.toReference())||null,andChildrenGroup:((t=this.andChildrenGroup)==null?void 0:t.map(s=>s.toReference()))||null,orChildrenGroup:((i=this.orChildrenGroup)==null?void 0:i.map(s=>s.toReference()))||null,entity:((a=this.entity)==null?void 0:a.toReference())||null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i,a,s,o;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.defaultValue)==null?void 0:i.toFlatJSON(e))||[],...((a=this.andChildrenGroup)==null?void 0:a.flatMap(d=>d.toFlatJSON(e)))||[],...((s=this.orChildrenGroup)==null?void 0:s.flatMap(d=>d.toFlatJSON(e)))||[],...((o=this.entity)==null?void 0:o.toFlatJSON(e))||[]])}toGenerationTarget(){var e;return{id:this.id,type:this.type,isNullable:this.isNullable,options:this.options,isList:this.isList,constant:this.constant,parentRelationType:this.parentRelationType,asType:this.asType,entity:((e=this.entity)==null?void 0:e.id)||null,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var i,a,s;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.defaultValue)==null?void 0:i.toFlatGenerationTarget(e))||[],...((a=this.andChildrenGroup)==null?void 0:a.flatMap(o=>o.toFlatGenerationTarget(e)))||[],...((s=this.orChildrenGroup)==null?void 0:s.flatMap(o=>o.toFlatGenerationTarget(e)))||[],...this.entity&&this.entity.type==r.CustomEntity&&this.entity.parent===this&&this.entity.toFlatGenerationTarget(e)||[]])}clearErrors(){var e,t,i,a;return this.errors=[],(e=this.defaultValue)==null||e.clearErrors(),(t=this.andChildrenGroup)==null||t.forEach(s=>s.clearErrors()),(i=this.orChildrenGroup)==null||i.forEach(s=>s.clearErrors()),this.inferred&&((a=this.entity)==null||a.clearErrors()),this}validate(){const e=W6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0){var b,I,B;const a=this.toJSON(),s=t||Xt(zg(this),r.DataType,this.project),o=s.split("-id"),d=o[o.length-1||0]||s;a.id=s;const p=fa(a,this.project);e&&p.setParent(e),i&&p.subscribe(),p.initChildren();const h=(b=this.defaultValue)==null?void 0:b.clone(p,d+"-default-value-id",i);p.defaultValue=h||null;const T=(I=this.andChildrenGroup)==null?void 0:I.map((G,W)=>G.clone(this,d+"-and-group-data-type-"+W+"-id",i)),m=(B=this.orChildrenGroup)==null?void 0:B.map((G,W)=>G.clone(this,d+"-or-group-data-type-"+W+"-id",i));return p.andChildrenGroup=T||null,p.orChildrenGroup=m||null,p}addToAndGroup(e){return this.andChildrenGroup||(this.andChildrenGroup=[]),this.andChildrenGroup.includes(e)||this.andChildrenGroup.push(e),this}addToOrGroup(e){return this.orChildrenGroup||(this.orChildrenGroup=[]),this.orChildrenGroup.includes(e)||this.orChildrenGroup.push(e),this}getDefaultValue(){return this.defaultValue}setDefaultValue(e){return this.defaultValue=e,this}setEntity(e){return this.entity=e,this}};l(fe,"MUTABLE_BASE_PROPERTIES",["isNullable","isList","constant","asType","options","parentRelationType"]),l(fe,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),l(fe,"BASE_PROPERTIES",[...fe.MUTABLE_BASE_PROPERTIES,...fe.INMUTABLE_BASE_PROPERTIES]),l(fe,"MUTABLE_META_PROPERTIES",[...fe.MUTABLE_BASE_PROPERTIES,"inferred"]),l(fe,"INMUTABLE_META_PROPERTIES",[...fe.INMUTABLE_BASE_PROPERTIES]),l(fe,"META_PROPERTIES",[...fe.MUTABLE_META_PROPERTIES,...fe.INMUTABLE_META_PROPERTIES]),l(fe,"MUTABLE_UPSTREAM_PROPERTIES",["entity","andChildrenGroup","orChildrenGroup","parent"]),l(fe,"INMUTABLE_UPSTREAM_PROPERTIES",[]),l(fe,"UPSTREAM_PROPERTIES",[...fe.MUTABLE_UPSTREAM_PROPERTIES,...fe.INMUTABLE_UPSTREAM_PROPERTIES]),l(fe,"MUTABLE_DOWNSTREAM_PROPERTIES",["defaultValue"]),l(fe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(fe,"DOWNSTREAM_PROPERTIES",[...fe.MUTABLE_DOWNSTREAM_PROPERTIES,...fe.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(fe,"PROPERTIES",[...fe.META_PROPERTIES,...fe.UPSTREAM_PROPERTIES,...fe.DOWNSTREAM_PROPERTIES]);let ai=fe;function Y6(n){var d;const e=fU(),t=n.toJSON();e.safeParse(t).success;const a=z6(n),s=mn(n),o=[...a,...s];if(n.id==="exec-sequentially-operation-call-id"){const p=j({id:`${n.id}--${S.PropertyImplementsNonAbstact}`,message:`Property "${A(n,n.project)}" with id "${n.id}" implements a non-abstract property "${A(n,n.project)}" with id "${n.id}".`,issue:null,severity:f.Error,code:S.PropertyImplementsNonAbstact,entity:n});o.push(p.error)}return n.outputs.forEach(p=>p.validate()),(d=n.error)==null||d.validate(),X(n.errors,o)}function z6(n){const e=[];return n.inputs.forEach(t=>{t.validate()}),n.dynamicArguments.forEach(t=>{t.validate()}),X(n.errors,e)}const ee=class ee{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"x");l(this,"y");l(this,"type",r.Operation);l(this,"declaration");l(this,"inputs",[]);l(this,"outputs",[]);l(this,"process",null);l(this,"successCalls",[]);l(this,"errorCalls",[]);l(this,"error",null);l(this,"dynamicArguments",[]);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"parent");l(this,"errors",[]);l(this,"project");l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.x=e.x,this.y=e.y}static fromGenerationTarget(e,t){let i=t;if(e.parent){const m=D(e.parent);i=t.get(m)}const a=D(e.declaration),s=t.get(a),o=e.calledByEntry.map(m=>{const b=D(m);return t.get(b)}),d=e.calledBySuccess.map(m=>{const b=D(m);return t.get(b)}),p=e.calledByError.map(m=>{const b=D(m);return t.get(b)}),h={id:e.id,version:1,type:r.Operation,declaration:s,calledByEntry:o,calledBySuccess:d,calledByError:p,errorCalls:[],successCalls:[],dynamicArguments:[],inputs:[],outputs:[],process:null,error:null,x:0,y:0,parent:i},T=R(h,t);return T.setParent(i),T.initChildren(),T}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:[...st,r.Project],optional:!0}},t);i=s.modifiedData,a.push(...s.errors,...De(i));const o=D(i.declaration);if(o){const d=yv(o,t);a.push(...d)}else{const d=`
|
|
37
|
+
Alternatively you can update the entity with 'update' action. Or replace it by first removing it and then creating a new one.`,issue:null}))}h===r.ActionDescriptor&&(!i.parentRelationType||!(i.parentRelationType===qe.DynamicArgumentTypes||i.parentRelationType===qe.DynamicReturnTypes))&&a.push(new E({id:`${e.id}--${y.InvalidParentRelationType}`,code:y.InvalidParentRelationType,severity:f.Error,message:`The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either 'dynamic-argument-types' or 'dynamic-return-types' when being added as a child to an entity of type 'action-descriptor'.`,issue:null})),h===r.DataType&&(!i.parentRelationType||!(i.parentRelationType===qe.AndDataTypeGroup||i.parentRelationType===qe.OrDataTypeGroup))&&a.push(new E({id:`${e.id}--${y.InvalidParentRelationType}`,code:y.InvalidParentRelationType,severity:f.Error,message:`The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either 'or-data-type-group' or 'and-data-type-group' when being added as a child to an entity of type 'data-type'.`,issue:null}))}return{errors:a,modifiedData:i}}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}addSelfToProject(){return this.parent.type===r.DataType?this.parentRelationType===qe.AndDataTypeGroup?this.parent.addToAndGroup(this):this.parentRelationType===qe.OrDataTypeGroup&&this.parent.addToOrGroup(this):this.parent.type===r.ActionDescriptor?this.parentRelationType===qe.DynamicArgumentTypes?this.parent.setDynamicArgumentTypes(this):this.parentRelationType===qe.DynamicReturnTypes&&this.parent.setDynamicReturnTypes(this):this.parent.setDataType(this),this}setParent(e){return this.parent=e,this}removeChildGroup(e){if(this.andChildrenGroup){const t=this.andChildrenGroup.findIndex(i=>i.id===e.id);t!==-1&&this.andChildrenGroup.splice(t,1)}if(this.orChildrenGroup){const t=this.orChildrenGroup.findIndex(i=>i.id===e.id);t!==-1&&this.orChildrenGroup.splice(t,1)}return this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.defaultValue&&(this.defaultValue=R(this.initialData.defaultValue,this.project),this.defaultValue.setParent(this),this.defaultValue.initChildren()),this.initialData.entity)if(this.initialData.entity.type===r.GenericReference){const e=this.project.findSubscribedInstanceFromReference(this.initialData.entity);this.entity=e}else this.entity=R(this.initialData.entity,this.project);return this.initialData.andChildrenGroup&&(this.andChildrenGroup=this.initialData.andChildrenGroup.map(e=>R(e,this.project))),this.initialData.orChildrenGroup&&(this.orChildrenGroup=this.initialData.orChildrenGroup.map(e=>R(e,this.project))),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.isNullable=e.isNullable||this.isNullable,this.isList=e.isList||this.isList,this.constant=e.constant||this.constant,this.asType=e.asType||this.asType,this.options=e.options||this.options,this.parentRelationType=e.parentRelationType||this.parentRelationType,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.defaultValue){const{affected:s,removed:o}=this.defaultValue.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}if(this.entity&&this.entity.type===r.CustomEntity&&this.entity.parent===this){const{affected:s,removed:o}=this.entity.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}if(!e){this.parent.type===r.DataType&&this.parent.removeChildGroup(this);const s=this.parent;if(s.type===r.DataType){if(this.parentRelationType===qe.AndDataTypeGroup){if(Array.isArray(s.andChildrenGroup)){const o=s.andChildrenGroup.findIndex(d=>d.id===this.id);o!==-1&&s.andChildrenGroup.splice(o,1)}}else if(this.parentRelationType===qe.OrDataTypeGroup&&Array.isArray(s.orChildrenGroup)){const o=s.orChildrenGroup.findIndex(d=>d.id===this.id);o!==-1&&s.orChildrenGroup.splice(o,1)}}else if(s.type===r.ActionDescriptor){const o=this.parent;this.parentRelationType===qe.DynamicArgumentTypes?o.removeDynamicArgumentTypes():this.parentRelationType===qe.DynamicReturnTypes&&o.removeDynamicReturnTypes()}else this.parent.removeDataType();i.push(s)}return{affected:O(i),removed:O(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.defaultValue){const{affected:i}=this.defaultValue.restore({seenEntities:e});t.push(...i)}if(this.entity&&this.entity.type===r.CustomEntity&&this.entity.parent===this){const{affected:i}=this.entity.restore({seenEntities:e});t.push(...i)}if(this.parent.type===r.DataType){const i=this.parent;Array.isArray(i.andChildrenGroup)&&i.andChildrenGroup.push(this)}if(this.parent.type===r.DataType){const i=this.parent;this.parentRelationType===qe.AndDataTypeGroup?Array.isArray(i.andChildrenGroup)&&i.andChildrenGroup.push(this):this.parentRelationType===qe.OrDataTypeGroup&&Array.isArray(i.orChildrenGroup)&&i.orChildrenGroup.push(this)}else if(this.parent.type===r.ActionDescriptor){const i=this.parent;this.parentRelationType===qe.DynamicArgumentTypes?i.setDynamicArgumentTypes(this):this.parentRelationType===qe.DynamicReturnTypes&&i.setDynamicReturnTypes(this)}else{const i=this.parent;i.setDataType(this),t.push(i)}return{affected:t,self:this}}toFlat(e=new Set){var i,a,s;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.andChildrenGroup)==null?void 0:i.flatMap(o=>o.toFlat(e)))||[],...((a=this.orChildrenGroup)==null?void 0:a.flatMap(o=>o.toFlat(e)))||[],...((s=this.entity)==null?void 0:s.toFlat(e))||[]])}toFlatIds(e=new Set){var i,a,s;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.andChildrenGroup)==null?void 0:i.flatMap(o=>o.toFlatIds(e)))||[],...((a=this.orChildrenGroup)==null?void 0:a.flatMap(o=>o.toFlatIds(e)))||[],...((s=this.entity)==null?void 0:s.toFlatIds(e))||[]])}toJSON(){var e,t,i,a;return{id:this.id,version:this.version,type:this.type,isNullable:this.isNullable,options:this.options,isList:this.isList,constant:this.constant,asType:this.asType,defaultValue:((e=this.defaultValue)==null?void 0:e.toJSON())||null,parentRelationType:this.parentRelationType,andChildrenGroup:((t=this.andChildrenGroup)==null?void 0:t.map(s=>s.toJSON()))||null,orChildrenGroup:((i=this.orChildrenGroup)==null?void 0:i.map(s=>s.toJSON()))||null,entity:((a=this.entity)==null?void 0:a.toReference())||null,parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e,t,i,a;return{id:this.id,version:this.version,type:this.type,isList:this.isList,isNullable:this.isNullable,options:this.options,constant:this.constant,asType:this.asType,parentRelationType:this.parentRelationType,defaultValue:((e=this.defaultValue)==null?void 0:e.toReference())||null,andChildrenGroup:((t=this.andChildrenGroup)==null?void 0:t.map(s=>s.toReference()))||null,orChildrenGroup:((i=this.orChildrenGroup)==null?void 0:i.map(s=>s.toReference()))||null,entity:((a=this.entity)==null?void 0:a.toReference())||null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i,a,s,o;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.defaultValue)==null?void 0:i.toFlatJSON(e))||[],...((a=this.andChildrenGroup)==null?void 0:a.flatMap(d=>d.toFlatJSON(e)))||[],...((s=this.orChildrenGroup)==null?void 0:s.flatMap(d=>d.toFlatJSON(e)))||[],...((o=this.entity)==null?void 0:o.toFlatJSON(e))||[]])}toGenerationTarget(){var e;return{id:this.id,type:this.type,isNullable:this.isNullable,options:this.options,isList:this.isList,constant:this.constant,parentRelationType:this.parentRelationType,asType:this.asType,entity:((e=this.entity)==null?void 0:e.id)||null,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var i,a,s;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.defaultValue)==null?void 0:i.toFlatGenerationTarget(e))||[],...((a=this.andChildrenGroup)==null?void 0:a.flatMap(o=>o.toFlatGenerationTarget(e)))||[],...((s=this.orChildrenGroup)==null?void 0:s.flatMap(o=>o.toFlatGenerationTarget(e)))||[],...this.entity&&this.entity.type==r.CustomEntity&&this.entity.parent===this&&this.entity.toFlatGenerationTarget(e)||[]])}clearErrors(){var e,t,i,a;return this.errors=[],(e=this.defaultValue)==null||e.clearErrors(),(t=this.andChildrenGroup)==null||t.forEach(s=>s.clearErrors()),(i=this.orChildrenGroup)==null||i.forEach(s=>s.clearErrors()),this.inferred&&((a=this.entity)==null||a.clearErrors()),this}validate(){const e=W6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0){var b,I,B;const a=this.toJSON(),s=t||Xt(zg(this),r.DataType,this.project),o=s.split("-id"),d=o[o.length-1||0]||s;a.id=s;const p=fa(a,this.project);e&&p.setParent(e),i&&p.subscribe(),p.initChildren();const h=(b=this.defaultValue)==null?void 0:b.clone(p,d+"-default-value-id",i);p.defaultValue=h||null;const T=(I=this.andChildrenGroup)==null?void 0:I.map((G,q)=>G.clone(this,d+"-and-group-data-type-"+q+"-id",i)),m=(B=this.orChildrenGroup)==null?void 0:B.map((G,q)=>G.clone(this,d+"-or-group-data-type-"+q+"-id",i));return p.andChildrenGroup=T||null,p.orChildrenGroup=m||null,p}addToAndGroup(e){return this.andChildrenGroup||(this.andChildrenGroup=[]),this.andChildrenGroup.includes(e)||this.andChildrenGroup.push(e),this}addToOrGroup(e){return this.orChildrenGroup||(this.orChildrenGroup=[]),this.orChildrenGroup.includes(e)||this.orChildrenGroup.push(e),this}getDefaultValue(){return this.defaultValue}setDefaultValue(e){return this.defaultValue=e,this}setEntity(e){return this.entity=e,this}};l(fe,"MUTABLE_BASE_PROPERTIES",["isNullable","isList","constant","asType","options","parentRelationType"]),l(fe,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),l(fe,"BASE_PROPERTIES",[...fe.MUTABLE_BASE_PROPERTIES,...fe.INMUTABLE_BASE_PROPERTIES]),l(fe,"MUTABLE_META_PROPERTIES",[...fe.MUTABLE_BASE_PROPERTIES,"inferred"]),l(fe,"INMUTABLE_META_PROPERTIES",[...fe.INMUTABLE_BASE_PROPERTIES]),l(fe,"META_PROPERTIES",[...fe.MUTABLE_META_PROPERTIES,...fe.INMUTABLE_META_PROPERTIES]),l(fe,"MUTABLE_UPSTREAM_PROPERTIES",["entity","andChildrenGroup","orChildrenGroup","parent"]),l(fe,"INMUTABLE_UPSTREAM_PROPERTIES",[]),l(fe,"UPSTREAM_PROPERTIES",[...fe.MUTABLE_UPSTREAM_PROPERTIES,...fe.INMUTABLE_UPSTREAM_PROPERTIES]),l(fe,"MUTABLE_DOWNSTREAM_PROPERTIES",["defaultValue"]),l(fe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(fe,"DOWNSTREAM_PROPERTIES",[...fe.MUTABLE_DOWNSTREAM_PROPERTIES,...fe.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(fe,"PROPERTIES",[...fe.META_PROPERTIES,...fe.UPSTREAM_PROPERTIES,...fe.DOWNSTREAM_PROPERTIES]);let ai=fe;function Y6(n){var d;const e=fU(),t=n.toJSON();e.safeParse(t).success;const a=z6(n),s=mn(n),o=[...a,...s];if(n.id==="exec-sequentially-operation-call-id"){const p=j({id:`${n.id}--${S.PropertyImplementsNonAbstact}`,message:`Property "${A(n,n.project)}" with id "${n.id}" implements a non-abstract property "${A(n,n.project)}" with id "${n.id}".`,issue:null,severity:f.Error,code:S.PropertyImplementsNonAbstact,entity:n});o.push(p.error)}return n.outputs.forEach(p=>p.validate()),(d=n.error)==null||d.validate(),X(n.errors,o)}function z6(n){const e=[];return n.inputs.forEach(t=>{t.validate()}),n.dynamicArguments.forEach(t=>{t.validate()}),X(n.errors,e)}const ee=class ee{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"x");l(this,"y");l(this,"type",r.Operation);l(this,"declaration");l(this,"inputs",[]);l(this,"outputs",[]);l(this,"process",null);l(this,"successCalls",[]);l(this,"errorCalls",[]);l(this,"error",null);l(this,"dynamicArguments",[]);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"parent");l(this,"errors",[]);l(this,"project");l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.x=e.x,this.y=e.y}static fromGenerationTarget(e,t){let i=t;if(e.parent){const m=D(e.parent);i=t.get(m)}const a=D(e.declaration),s=t.get(a),o=e.calledByEntry.map(m=>{const b=D(m);return t.get(b)}),d=e.calledBySuccess.map(m=>{const b=D(m);return t.get(b)}),p=e.calledByError.map(m=>{const b=D(m);return t.get(b)}),h={id:e.id,version:1,type:r.Operation,declaration:s,calledByEntry:o,calledBySuccess:d,calledByError:p,errorCalls:[],successCalls:[],dynamicArguments:[],inputs:[],outputs:[],process:null,error:null,x:0,y:0,parent:i},T=R(h,t);return T.setParent(i),T.initChildren(),T}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:[...st,r.Project],optional:!0}},t);i=s.modifiedData,a.push(...s.errors,...De(i));const o=D(i.declaration);if(o){const d=yv(o,t);a.push(...d)}else{const d=`
|
|
38
38
|
All built-in 'action-descriptor' entity ids are:
|
|
39
39
|
- ${t.operationDeclarations.map(p=>`${p.id} (${A(p,t)})`).join(`
|
|
40
40
|
- `)}.
|
|
@@ -62,30 +62,29 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
62
62
|
Specifically for variables, their scope is also calculated from their value readers and value writters.
|
|
63
63
|
You shouldn't have to manually update a 'parent' property. The equivalent result is to change its value readers, value writters, or callers.`,issue:null})),{errors:t,modifiedData:i}}addSelfToProject(){return this.parent===this.project&&this.project.addVariableInstance(this),this.readsValue&&this.readsValue.addValueReader(this),this.writesValues.forEach(e=>{e.setValueWriter(this)}),this.successCalls.forEach(e=>{e.addSuccessCaller(this)}),this.errorCalls.forEach(e=>{e.addErrorCaller(this)}),this.calledBySuccess.forEach(e=>{e.addSuccessCall(this)}),this.calledByError.forEach(e=>{e.addErrorCall(this)}),this.calledByEntry.forEach(e=>{e.addCall(this)}),this}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}get usedInputs(){return this.inputs.filter(e=>e.readsValue||e.dynamicArguments.length||e.defaultValue)}get unusedInputs(){return this.inputs.filter(e=>!e.readsValue&&!e.dynamicArguments.length&&!e.defaultValue)}get usedOutputs(){return this.outputs.filter(e=>e.writesValues.length)}get unusedOutputs(){return this.outputs.filter(e=>!e.writesValues.length)}removeInput(e){const t=this.inputs.findIndex(i=>i.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(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.push(e),this}addSuccessCall(e){return 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 i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}addValueReader(e){return this.writesValues.includes(e)?this:(this.writesValues.push(e),this)}setParent(e){return this.parent=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.declaration.type===r.GenericReference){const e=this.project.findSubscribedInstanceFromReference(this.initialData.declaration);if(!e)return this;this.declaration=e}else this.declaration=R(this.initialData.declaration,this.project),this.declaration.setParent(this.parent),this.declaration.initChildren();return la.initWritesValues(this,this.parent),oa.initReadsValue(this),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return t.addSuccessCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.internalCalls=this.initialData.internalCalls.reduce((e,t)=>{if(t.type===r.GenericReference){const i=this.project.findSubscribedInstanceFromReference(t);if(!i)return e;const a=i;return a.setParent(this),[...e,a]}else{const i=R(t,this.project);return i.setParent(this),i.initChildren(),[...e,i]}},[]),this.inputs.push(...this.generateUnusedInputs()),this.outputs.push(...this.generateUnusedOutputs()),this}setValueWriter(e){return this.readsValue=e,this}removeValueWriter(){return this.readsValue=null,this}removeValueReader(e){return this.writesValues=this.writesValues.filter(t=>t.id!==e.id),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(){return this}async create(){return this}async update(e){return this.sync(e),ya(e,this),this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.readsValue&&(i.push(this.readsValue),this.readsValue.removeValueReader(this)),this.writesValues.forEach(s=>{i.push(s),s.readsValue=null}),this.inputs.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.outputs.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.successCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),this.errorCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),this.internalCalls.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),e||this.calledBy.forEach(s=>{i.push(s),s.removeCall(this)}),{affected:O(i),removed:O(a)})}restore({seenEntities:e}={seenEntities:new Set}){this.subscribe();const t=[];return this.readsValue&&(t.push(this.readsValue),this.readsValue.addValueReader(this)),this.writesValues.forEach(i=>{t.push(i),i.setValueWriter(this)}),this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.internalCalls.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:O(t),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.writesValues.flatMap(i=>i.toFlat(e)),...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.internalCalls.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.writesValues.flatMap(i=>i.toFlatIds(e)),...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.internalCalls.flatMap(i=>i.toFlatIds(e))])}toJSON(){var e;return{id:this.id,version:this.version,type:this.type,declaration:this.declaration.toReference(),readsValue:((e=this.readsValue)==null?void 0:e.toReference())||null,writesValues:this.writesValues.map(t=>t.toJSON()),inputs:this.inputs.map(t=>t.toJSON()),outputs:this.outputs.map(t=>t.toJSON()),successCalls:this.successCalls.map(t=>t.toJSON()),errorCalls:this.errorCalls.map(t=>t.toJSON()),internalCalls:this.internalCalls.map(t=>t.toJSON()),calledBySuccess:this.calledBySuccess.map(t=>t.toReference()),calledByError:this.calledByError.map(t=>t.toReference()),calledByEntry:this.calledByEntry.map(t=>t.toReference()),parent:this.parent.toReference(),x:this.x,y:this.y}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,declaration:((e=this.declaration)==null?void 0:e.toReference())||null,readsValue:((t=this.readsValue)==null?void 0:t.toReference())||null,writesValues:this.writesValues.map(i=>i.toReference()),inputs:this.inputs.map(i=>i.toReference()),outputs:this.outputs.map(i=>i.toReference()),successCalls:this.successCalls.map(i=>i.toReference()),errorCalls:this.errorCalls.map(i=>i.toReference()),calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),internalCalls:this.internalCalls.map(i=>i.toReference()),parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.declaration)==null?void 0:i.toFlatJSON(e))||[],...this.writesValues.flatMap(a=>a.toFlatJSON(e)),...this.successCalls.flatMap(a=>a.toFlatJSON(e)),...this.errorCalls.flatMap(a=>a.toFlatJSON(e)),...this.inputs.flatMap(a=>a.toFlatJSON(e)),...this.outputs.flatMap(a=>a.toFlatJSON(e)),...this.internalCalls.flatMap(a=>a.toFlatJSON(e)),...this.calledBy.flatMap(a=>a.toFlatJSON(e))])}toGenerationTarget(){const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,type:this.type,declaration:this.declaration.id,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.declaration)==null?void 0:i.toFlatGenerationTarget(e))||[],...((a=this.readsValue)==null?void 0:a.toFlatGenerationTarget(e))||[],...this.writesValues.flatMap(s=>s.toFlatGenerationTarget(e)),...this.successCalls.flatMap(s=>s.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(s=>s.toFlatGenerationTarget(e)),...this.inputs.flatMap(s=>s.toFlatGenerationTarget(e)),...this.outputs.flatMap(s=>s.toFlatGenerationTarget(e)),...this.internalCalls.flatMap(s=>s.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.inputs.forEach(e=>e.clearErrors()),this.outputs.forEach(e=>e.clearErrors()),this.successCalls.forEach(e=>e.clearErrors()),this.errorCalls.forEach(e=>e.clearErrors()),this.internalCalls.forEach(e=>e.clearErrors()),this}validate(){const e=c9(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){var t;return[...this.errors,...this.inputs.flatMap(i=>i.getErrors()),...this.internalCalls.flatMap(i=>i.getErrors()),...this.outputs.flatMap(i=>i.getErrors()),...((t=this.readsValue)==null?void 0:t.getErrors())||[]]}getShallowErrors(){return this.errors}getDefaultValue(){var e,t;return((t=(e=this.declaration)==null?void 0:e.dataType)==null?void 0:t.defaultValue)||null}clone(e){return new ie(this.toJSON(),this.project)}addInternalCall(e){return this.internalCalls.find(t=>t===e)||this.internalCalls.push(e),this}setDeclaration(e){return this.declaration!==e&&(this.declaration=e),this}generateUnusedInputs(){if(this.declaration.dataType)if(this.declaration.dataType.entity){if(this.declaration.dataType.entity.type===r.CustomEntity)return this.declaration.dataType.entity.properties.filter(i=>!this.inputs.find(a=>a.declaration===i)).map(i=>{const a={id:$.UUID.uuid(),version:1,type:r.InputMap,parent:this.toReference(),name:null,description:null,dynamicArguments:[],declaration:i,defaultValue:null,index:i.index,readsValue:null},s=R(a,this.project);return s.setParent(this),s.initChildren(),s.suggestion=!0,s})}else return[];else return[];return[]}generateUnusedOutputs(){if(this.declaration.dataType)if(this.declaration.dataType.entity){if(this.declaration.dataType.entity.type===r.CustomEntity)return this.declaration.dataType.entity.properties.filter(i=>!this.outputs.find(a=>a.declaration===i)).map(i=>{const a={id:$.UUID.uuid(),version:1,type:r.OutputMap,parent:this.toReference(),declaration:i,index:i.index,writesValues:[]},s=R(a,this.project);return s.setParent(this),s.initChildren(),s.suggestion=!0,s})}else return[];else return[];return[]}getDataType(){var e;return((e=this.declaration)==null?void 0:e.getDataType())||null}getUnusedInputs(){return this.inputs.filter(e=>e.suggestion||!e.readsValue&&!e.defaultValue)}getUnusedOutputs(){return this.outputs.filter(e=>e.suggestion||!e.writesValues.length)}getUsedInputs(){return this.inputs.filter(e=>!e.suggestion&&(e.readsValue||e.defaultValue))}getUsedOutputs(){return this.outputs.filter(e=>!e.suggestion&&e.writesValues.length)}};l(ie,"MUTABLE_BASE_PROPERTIES",[]),l(ie,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(ie,"BASE_PROPERTIES",[...ie.MUTABLE_BASE_PROPERTIES,...ie.INMUTABLE_BASE_PROPERTIES]),l(ie,"MUTABLE_META_PROPERTIES",[...ie.MUTABLE_BASE_PROPERTIES,"x","y"]),l(ie,"INMUTABLE_META_PROPERTIES",[...ie.INMUTABLE_BASE_PROPERTIES]),l(ie,"META_PROPERTIES",[...ie.MUTABLE_META_PROPERTIES,...ie.INMUTABLE_META_PROPERTIES]),l(ie,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","readsValue"]),l(ie,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),l(ie,"UPSTREAM_PROPERTIES",[...ie.MUTABLE_UPSTREAM_PROPERTIES,...ie.INMUTABLE_UPSTREAM_PROPERTIES]),l(ie,"MUTABLE_DOWNSTREAM_PROPERTIES",["writesValues","inputs","outputs","successCalls","errorCalls","internalCalls"]),l(ie,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ie,"DOWNSTREAM_PROPERTIES",[...ie.MUTABLE_DOWNSTREAM_PROPERTIES,...ie.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(ie,"PROPERTIES",[...ie.META_PROPERTIES,...ie.UPSTREAM_PROPERTIES,...ie.DOWNSTREAM_PROPERTIES]);let yr=ie;function d9(n){var s;const e=U4(),t=n.toJSON();e.safeParse(t).success,(s=n.dataType)==null||s.validate();const a=[];if(n.id==="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id"){const o=j({id:`${n.id}--${S.PropertyImplementsNonAbstact}`,message:`Property "${A(n,n.project)}" with id "${n.id}" implements a non-abstract property "${A(n,n.project)}" with id "${n.id}".`,issue:null,severity:f.Error,code:S.PropertyImplementsNonAbstact,entity:n});a.push(o.error)}return X(n.errors,a)}const ae=class ae{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"index");l(this,"required");l(this,"isError");l(this,"type",r.ReturnDeclaration);l(this,"dataType",null);l(this,"readsValue",null);l(this,"project");l(this,"errors",[]);l(this,"parent");l(this,"initialized",!1);l(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.index=e.index,this.name=e.name,this.description=e.description,this.required=e.required,this.isError=e.isError}static fromGenerationTarget(e,t){const i=D(e.parent),a=t.get(i);let s=null;if(e.readsValue){const p=D(e.readsValue);s=t.get(p)}const o={id:e.id,version:1,name:e.name,type:r.ReturnDeclaration,index:a.outputs.length,isError:!1,description:e.description,required:e.required,readsValue:s,dataType:null,parent:a},d=R(o,t);return d.setParent(a),d.initChildren(),d}static validateGenerationTarget(e,t){var d,p;let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:[r.ReturnStatement,r.Search,r.BreakStatement,r.ContinueStatement]}},t),o=cd(i,t);if(i=s.modifiedData,i.parent){const h=t.get(D(i.parent));if(h&&[r.BreakStatement,r.ContinueStatement].includes(h.type)){const T=h,m=T.parent,b=[...m.breakStatements.filter(B=>B.id!==h.id),...m.continueStatements.filter(B=>B.id!==h.id)];if(T.outputs.length)a.push(new E({id:`${i.id}--${g.NoOverlapWithImplementedSignature}`,code:g.NoOverlapWithImplementedSignature,severity:f.Error,message:`Entity of type '${r.ReturnDeclaration}' with id '${i.id}' cannot be added to the parent entity of type '${T.type}' with id '${T.id}'. This '${T.type}' already has return declarations.
|
|
64
64
|
${fd}`,issue:null}));else{const B=(p=(d=b[0])==null?void 0:d.outputs[0])==null?void 0:p.name;B!==i.name&&a.push(new E({id:`${i.id}--${g.NoOverlapWithImplementedSignature}`,code:g.NoOverlapWithImplementedSignature,severity:f.Error,message:`Entity of type '${r.ReturnDeclaration}' with id '${i.id}' cannot be added to the parent entity of type '${T.type}' with id '${T.id}'. This new 'return-declaration' doesn't have the same name "${B}" as the return declarations on the other statements in the same scope.
|
|
65
|
-
${fd}`,issue:null}))}}else if(h&&h.type===r.ReturnStatement){const T=h.parent;if(T&&$e.includes(T.type)){const m=T.implements;if(m)if(m.returnsType===L.Fixed){const b=m.fixedReturns.find(Le=>Le.name===i.name),I=m.fixedReturns.filter(Le=>!h.outputs.find(Yv=>Yv.type===r.ReturnDeclaration&&Yv.name===Le.name)),B=h.outputs.filter(Le=>Le.type===r.ReturnDeclaration),G=B.find(Le=>Le.name===i.name),
|
|
65
|
+
${fd}`,issue:null}))}}else if(h&&h.type===r.ReturnStatement){const T=h.parent;if(T&&$e.includes(T.type)){const m=T.implements;if(m)if(m.returnsType===L.Fixed){const b=m.fixedReturns.find(Le=>Le.name===i.name),I=m.fixedReturns.filter(Le=>!h.outputs.find(Yv=>Yv.type===r.ReturnDeclaration&&Yv.name===Le.name)),B=h.outputs.filter(Le=>Le.type===r.ReturnDeclaration),G=B.find(Le=>Le.name===i.name),q=B.length?`The parent entity already implements the following return declarations: ${N(B.map(Le=>`'${Le.id}' (${Le.name})`),", "," and ")}.`:"The parent entity does not yet have any implemented return declarations.",xt=I.length?`The parent entity is still missing the following returns in the implementation: ${N(I.map(Le=>`'${Le.id}' (${Le.name})`),", "," and ")}.`:"The parent entity has all the returns it needs implemented.";b?G&&a.push(new E({id:`${i.id}--${g.NoOverlapWithImplementedSignature}`,code:g.NoOverlapWithImplementedSignature,severity:f.Error,message:`Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${h.type}' with id '${h.id}' that implements a ${r.ActionDescriptor} with fixed outputs.
|
|
66
66
|
Adding a new return would make the implementation invalid. An return with the same name already exists in the parent entity.
|
|
67
|
-
${
|
|
67
|
+
${q}
|
|
68
68
|
${xt}`,issue:null})):a.push(new E({id:`${i.id}--${g.NoOverlapWithImplementedSignature}`,code:g.NoOverlapWithImplementedSignature,severity:f.Error,message:`Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${h.type}' with id '${h.id}' that implements a ${r.ActionDescriptor} with fixed outputs.
|
|
69
69
|
Adding a new return would make the implementation invalid. There are no returns in the descriptor with the same name.
|
|
70
|
-
${
|
|
70
|
+
${q}
|
|
71
71
|
${xt}`,issue:null}))}else m.returnsType===L.Dynamic||m.returnsType===L.None&&a.push(new E({id:`${i.id}--${g.NoOverlapWithImplementedSignature}`,code:g.NoOverlapWithImplementedSignature,severity:f.Error,message:`Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${h.type}' with id '${h.id}' that implements a ${r.ActionDescriptor} with no outputs.
|
|
72
72
|
Adding a new return would make the implementation invalid.`,issue:null}))}}}return a.push(...s.errors,...o,...De(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];let i=JSON.parse(JSON.stringify(e));const a=da(i,this);return i=a.modifiedData,t.push(...a.errors),i.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.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.
|
|
73
73
|
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})),{errors:t,modifiedData:i}}addSelfToProject(){var e;return this.parent.addOutputDeclaration(this),(e=this.readsValue)==null||e.addValueReader(this),this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.initialData.dataType&&(this.dataType=R(this.initialData.dataType,this.project),this.dataType.setParent(this),this.dataType.initChildren()),oa.initReadsValue(this),this)}setValueWriter(e){return this.readsValue=e,this}removeValueWriter(){return this.readsValue=null,this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.index=e.index||this.index,this.name=e.name||this.name,this.description=e.description||this.description,this.required=e.required||this.required,this.isError=e.isError||this.isError,this}async load(){return this}async create(){return this}async update(e){return this.sync(e),ya(e,this),this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.dataType){const s=this.dataType.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s.affected),a.push(...s.removed)}return{affected:O(i),removed:O(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.dataType){const i=this.dataType.restore({seenEntities:e});t.push(...i.affected)}return{affected:[],self:this}}toFlat(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.dataType)==null?void 0:i.toFlat(e))||[]])}toFlatIds(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.dataType)==null?void 0:i.toFlatIds(e))||[]])}toJSON(){var e,t;return{id:this.id,version:this.version,name:this.name,description:this.description,type:this.type,index:this.index,required:this.required,isError:this.isError,dataType:((e=this.dataType)==null?void 0:e.toJSON())||null,readsValue:((t=this.readsValue)==null?void 0:t.toReference())||null,parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e,t;return{id:this.id,version:this.version,name:this.name,description:this.description,type:this.type,index:this.index,required:this.required,isError:this.isError,readsValue:((e=this.readsValue)==null?void 0:e.toReference())||null,dataType:((t=this.dataType)==null?void 0:t.toReference())||null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.dataType)==null?void 0:i.toFlatJSON(e))||[]])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,isError:this.isError,readsValue:(e=this.readsValue)==null?void 0:e.id,required:this.required,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.readsValue)==null?void 0:i.toFlatGenerationTarget(e))||[],...((a=this.dataType)==null?void 0:a.toFlatGenerationTarget(e))||[]])}clearErrors(){var e;return this.errors=[],(e=this.dataType)==null||e.clearErrors(),this}validate(){const e=d9(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){var t;return[...this.errors,...((t=this.dataType)==null?void 0:t.getErrors())||[]]}getShallowErrors(){return this.errors}getDefaultValue(){var e;return((e=this.dataType)==null?void 0:e.defaultValue)||null}clone(e){return new ae(this.toJSON(),this.project)}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}getDataType(){return this.dataType}};l(ae,"MUTABLE_BASE_PROPERTIES",["name","description","required","isError"]),l(ae,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(ae,"BASE_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,...ae.INMUTABLE_BASE_PROPERTIES]),l(ae,"MUTABLE_META_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,"index"]),l(ae,"INMUTABLE_META_PROPERTIES",[...ae.INMUTABLE_BASE_PROPERTIES]),l(ae,"META_PROPERTIES",[...ae.MUTABLE_META_PROPERTIES,...ae.INMUTABLE_META_PROPERTIES]),l(ae,"MUTABLE_UPSTREAM_PROPERTIES",["readsValue"]),l(ae,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","dataType"]),l(ae,"UPSTREAM_PROPERTIES",[...ae.MUTABLE_UPSTREAM_PROPERTIES,...ae.INMUTABLE_UPSTREAM_PROPERTIES]),l(ae,"MUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ae,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ae,"DOWNSTREAM_PROPERTIES",[...ae.MUTABLE_DOWNSTREAM_PROPERTIES,...ae.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(ae,"PROPERTIES",[...ae.META_PROPERTIES,...ae.UPSTREAM_PROPERTIES,...ae.DOWNSTREAM_PROPERTIES]);let Ot=ae;function u9(n){var o;const e=V4(),t=n.toJSON();e.safeParse(t).success,n.inputsDeclarations.forEach(d=>d.validate()),n.inputs.forEach(d=>d.validate()),n.outputsDeclarations.forEach(d=>d.validate()),n.outputs.forEach(d=>d.validate()),(o=n.error)==null||o.validate();const s=[...mn(n)];if(n.id==="search-person-by-id-id"){const d=j({id:`${n.id}--${S.PropertyImplementsNonAbstact}`,message:`Property "${A(n,n.project)}" with id "${n.id}" implements a non-abstract property "${A(n,n.project)}" with id "${n.id}".`,issue:null,severity:f.Error,code:S.PropertyImplementsNonAbstact,entity:n});s.push(d.error)}return X(n.errors,s)}const Ae=class Ae{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"x");l(this,"y");l(this,"query");l(this,"type",r.Search);l(this,"successCalls",[]);l(this,"errorCalls",[]);l(this,"inputsDeclarations",[]);l(this,"inputs",[]);l(this,"outputsDeclarations",[]);l(this,"outputs",[]);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"error",null);l(this,"parent");l(this,"errors",[]);l(this,"project");l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.x=e.x,this.y=e.y,this.name=e.name,this.query=e.query,this.description=e.description}static fromGenerationTarget(e,t){let i=t;if(e.parent){const h=D(e.parent);i=t.get(h)}const a=e.calledByEntry.map(h=>{const T=D(h);return t.get(T)}),s=e.calledBySuccess.map(h=>{const T=D(h);return t.get(T)}),o=e.calledByError.map(h=>{const T=D(h);return t.get(T)}),d={id:e.id,version:1,type:r.Search,name:e.name,description:e.description,query:e.query,calledByEntry:a,calledBySuccess:s,calledByError:o,errorCalls:[],successCalls:[],inputsDeclarations:[],inputs:[],outputsDeclarations:[],outputs:[],error:null,x:0,y:0,parent:i},p=R(d,t);return p.setParent(i),p.initChildren(),p}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:[...st,r.Project],optional:!0}},t);return i=s.modifiedData,a.push(...s.errors,...De(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.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.
|
|
74
74
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
75
75
|
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}}addSelfToProject(){return this.parent===this.project&&this.project.addSearch(this),this.successCalls.forEach(e=>{e.addSuccessCaller(this)}),this.errorCalls.forEach(e=>{e.addErrorCaller(this)}),this.calledByEntry.forEach(e=>{e.addCall(this)}),this.calledBySuccess.forEach(e=>{e.addSuccessCall(this)}),this.calledByError.forEach(e=>{e.addErrorCall(this)}),this}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(a=>a.id===e.id);t>-1&&this.inputs.splice(t,1);const i=this.inputsDeclarations.findIndex(a=>a.id===e.declaration.id);return i>-1&&this.inputsDeclarations.splice(i,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addInputDeclaration(e){return this.inputsDeclarations.includes(e)?this:(this.inputsDeclarations.push(e),this)}removeInputDeclaration(e){const t=this.inputsDeclarations.findIndex(i=>i.id===e.id);return t>-1&&this.inputsDeclarations.splice(t,1),this}addOutputDeclaration(e){return this.outputsDeclarations.includes(e)?this:(this.outputsDeclarations.push(e),this)}removeOutputDeclaration(e){const t=this.outputsDeclarations.findIndex(i=>i.id===e.id);return t>-1&&this.outputsDeclarations.splice(t,1),this}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.push(e),this}addSuccessCall(e){return 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 i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputsDeclarations=this.initialData.inputsDeclarations.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputsDeclarations=this.initialData.outputsDeclarations.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.x=e.x||this.x,this.y=e.y||this.y,this.name=e.name||this.name,this.query=e.query||this.query,this.description=e.description||this.description,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.inputsDeclarations.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.outputs.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.outputsDeclarations.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.error){const{affected:s,removed:o}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}return this.successCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),this.errorCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),e||this.calledBy.forEach(s=>{i.push(s),s.removeCall(this)}),{affected:O(i),removed:O(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputsDeclarations.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputsDeclarations.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:O(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.inputsDeclarations.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.outputsDeclarations.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.error?this.error.toFlatIds(e):[]])}toJSON(){var e;return{id:this.id,version:this.version,type:this.type,name:this.name,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(t=>t.toJSON()),errorCalls:this.errorCalls.map(t=>t.toJSON()),calledBySuccess:this.calledBySuccess.map(t=>t.toReference()),calledByError:this.calledByError.map(t=>t.toReference()),calledByEntry:this.calledByEntry.map(t=>t.toReference()),inputsDeclarations:this.inputsDeclarations.map(t=>t.toJSON()),inputs:this.inputs.map(t=>t.toJSON()),outputsDeclarations:this.outputsDeclarations.map(t=>t.toJSON()),outputs:this.outputs.map(t=>t.toJSON()),parent:this.parent.toReference(),error:((e=this.error)==null?void 0:e.toJSON())||null}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,query:this.query,x:this.x,y:this.y,inputs:this.inputs.map(e=>e.toReference()),inputsDeclarations:this.inputsDeclarations.map(e=>e.toReference()),outputs:this.outputs.map(e=>e.toReference()),outputsDeclarations:this.outputsDeclarations.map(e=>e.toReference()),successCalls:this.successCalls.map(e=>e.toReference()),errorCalls:this.errorCalls.map(e=>e.toReference()),calledBySuccess:this.calledBySuccess.map(e=>e.toReference()),calledByError:this.calledByError.map(e=>e.toReference()),calledByEntry:this.calledByEntry.map(e=>e.toReference()),error:this.error?this.error.toReference():null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.calledBy.flatMap(i=>i.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,query:this.query,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.inputsDeclarations.forEach(t=>t.clearErrors()),this.inputs.forEach(t=>t.clearErrors()),this.outputs.forEach(t=>t.clearErrors()),this.successCalls.forEach(t=>t.clearErrors()),this.errorCalls.forEach(t=>t.clearErrors()),(e=this.error)==null||e.clearErrors(),this}validate(){const e=u9(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputsDeclarations.flatMap(t=>t.getErrors()),...this.inputs.flatMap(t=>t.getErrors()),...this.outputsDeclarations.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[]]}getShallowErrors(){return this.errors}clone(e){return new Ae(this.toJSON(),this.project)}};l(Ae,"MUTABLE_BASE_PROPERTIES",["name","description","query"]),l(Ae,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(Ae,"BASE_PROPERTIES",[...Ae.MUTABLE_BASE_PROPERTIES,...Ae.INMUTABLE_BASE_PROPERTIES]),l(Ae,"MUTABLE_META_PROPERTIES",[...Ae.MUTABLE_BASE_PROPERTIES,"x","y"]),l(Ae,"INMUTABLE_META_PROPERTIES",[...Ae.INMUTABLE_BASE_PROPERTIES]),l(Ae,"META_PROPERTIES",[...Ae.MUTABLE_META_PROPERTIES,...Ae.INMUTABLE_META_PROPERTIES]),l(Ae,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),l(Ae,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),l(Ae,"UPSTREAM_PROPERTIES",[...Ae.MUTABLE_UPSTREAM_PROPERTIES,...Ae.INMUTABLE_UPSTREAM_PROPERTIES]),l(Ae,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs","outputsDeclarations","outputs","error"]),l(Ae,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(Ae,"DOWNSTREAM_PROPERTIES",[...Ae.MUTABLE_DOWNSTREAM_PROPERTIES,...Ae.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(Ae,"PROPERTIES",[...Ot.META_PROPERTIES,...Ot.UPSTREAM_PROPERTIES,...Ot.DOWNSTREAM_PROPERTIES]);let hr=Ae;function p9(n){const e=zU(),t=n.toJSON();e.safeParse(t).success,n.functions.forEach(s=>s.validate()),n.events.forEach(s=>s.validate());const a=[];return X(n.errors,a)}const Te=class Te{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"x");l(this,"y");l(this,"type",r.InstalledProject);l(this,"implements");l(this,"functions",[]);l(this,"events",[]);l(this,"parent");l(this,"errors",[]);l(this,"project");l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.implements=e.implements}static fromGenerationTarget(e,t){const i=t,a={id:e.id,version:1,name:e.name,type:r.InstalledProject,description:e.description,functions:[],events:[],implements:{entityId:e.implements,entityType:r.Project,type:r.GenericReference,id:$.UUID.uuid()},x:0,y:0,parent:i},s=R(a,t);return s.setParent(i),s.initChildren(),s}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[];return a.push(...De(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){return this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.functions=this.initialData.functions.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.events=this.initialData.events.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.x=e.x||this.x,this.y=e.y||this.y,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.functions.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!1,seenEntities:t});i.push(...o),a.push(...d)}),this.events.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!1,seenEntities:t});i.push(...o),a.push(...d)}),{affected:[],removed:[]})}restore({seenEntities:e}={seenEntities:new Set}){return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.functions.forEach(t=>{t.restore({seenEntities:e})}),this.events.forEach(t=>{t.restore({seenEntities:e})}),{affected:[],self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.functions.flatMap(i=>i.toFlatIds(e)),...this.events.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,implements:this.implements,functions:this.functions.map(e=>e.toJSON()),events:this.events.map(e=>e.toJSON()),parent:this.parent.toReference(),x:this.x,y:this.y}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,implements:this.implements,functions:this.functions.map(e=>e.toReference()),events:this.events.map(e=>e.toReference()),parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,name:this.name,description:this.description,type:this.type,implements:this.implements.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this}validate(){const e=p9(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new Te(this.toJSON(),this.project)}};l(Te,"MUTABLE_BASE_PROPERTIES",[]),l(Te,"INMUTABLE_BASE_PROPERTIES",["id","version","name","description","type"]),l(Te,"BASE_PROPERTIES",[...Te.MUTABLE_BASE_PROPERTIES,...Te.INMUTABLE_BASE_PROPERTIES]),l(Te,"MUTABLE_META_PROPERTIES",["x","y"]),l(Te,"INMUTABLE_META_PROPERTIES",[...Te.INMUTABLE_BASE_PROPERTIES]),l(Te,"META_PROPERTIES",[...Te.MUTABLE_META_PROPERTIES,...Te.INMUTABLE_META_PROPERTIES]),l(Te,"MUTABLE_UPSTREAM_PROPERTIES",[]),l(Te,"INMUTABLE_UPSTREAM_PROPERTIES",["implements","parent"]),l(Te,"UPSTREAM_PROPERTIES",[...Te.MUTABLE_UPSTREAM_PROPERTIES,...Te.INMUTABLE_UPSTREAM_PROPERTIES]),l(Te,"MUTABLE_DOWNSTREAM_PROPERTIES",["functions","events"]),l(Te,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(Te,"DOWNSTREAM_PROPERTIES",[...Te.MUTABLE_DOWNSTREAM_PROPERTIES,...Te.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(Te,"PROPERTIES",[...Te.META_PROPERTIES,...Te.UPSTREAM_PROPERTIES,...Te.DOWNSTREAM_PROPERTIES]);let fr=Te;function y9(n){var d;const e=oU(),t=n.toJSON();e.safeParse(t).success,n.inputs.forEach(p=>p.validate()),n.outputs.forEach(p=>p.validate()),(d=n.error)==null||d.validate();const a=mn(n),s=h9(n),o=[...a,...s];return X(n.errors,o)}function h9(n){const e=[],t=Zs(n.parent),i=t==null?void 0:t.entity;if(!i)e.push(j({id:`${n.id}--${g.InternalCallParentMissingDataType}`,code:g.InternalCallParentMissingDataType,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${n.declaration}".`,issue:null,entity:n}).error);else if(![r.CustomEntity,r.BuiltInBaseEntity,r.PrimitiveEntity].includes(i.type))e.push(j({id:`${n.id}--${g.InternalCallParentDeclarationEntityInvalidType}`,code:g.InternalCallParentDeclarationEntityInvalidType,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
|
|
76
|
-
This variable's data-type has an 'entity' field that references an entity with id '${i.id}' and of type '${i.type}'.`,issue:null,entity:n}).error);else{const a=Bd(i);let
|
|
76
|
+
This variable's data-type has an 'entity' field that references an entity with id '${i.id}' and of type '${i.type}'.`,issue:null,entity:n}).error);else{const a=Bd(i),s=[];[r.CustomEntity,r.BuiltInBaseEntity,r.PrimitiveEntity].includes(i.type)&&s.push(...i.getAllInteractiveMethods());let o="";a?i.methods.length?o=`
|
|
77
77
|
All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
|
|
78
|
-
- ${i.methods.map(
|
|
78
|
+
- ${i.methods.map(h=>h.id).join(`
|
|
79
79
|
- `)}
|
|
80
|
-
You can reference any of them as the 'delcaration' property on a new 'internal-call' entity.`:i.type===r.CustomEntity?
|
|
80
|
+
You can reference any of them as the 'delcaration' property on a new 'internal-call' entity.`:i.type===r.CustomEntity?o=`
|
|
81
81
|
This variable's data-type 'entity' is a custom entity which doesn't have any methods attached to it yet.
|
|
82
|
-
You can attach methods to it by creating 'function-declaration' entities which have the entity as its 'parent' field. Then you can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`:[r.BuiltInBaseEntity,r.PrimitiveEntity].includes(i.type)&&(
|
|
82
|
+
You can attach methods to it by creating 'function-declaration' entities which have the entity as its 'parent' field. Then you can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`:[r.BuiltInBaseEntity,r.PrimitiveEntity].includes(i.type)&&(o=`
|
|
83
83
|
This variable's data-type 'entity' is a ${i.type} which doesn't have any methods attached to it yet.
|
|
84
|
-
Built-in entity types can't have methods attached to them by the user. They are predefined entities that can't be modified. You can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`):i.type===r.CustomEntity?
|
|
85
|
-
This variable's data-type 'entity' is a custom entity which extends or implements a non-interactive 'built-in-base-entity'.s`:i.type===r.BuiltInBaseEntity&&(
|
|
86
|
-
This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s`);const
|
|
87
|
-
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${
|
|
88
|
-
The data type on this variable points to a different entity than the declaration of the internal-call.${s}`,issue:null,entity:n}).error):e.push(j({id:`${n.id}--${g.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:g.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${n.declaration}".${s}`,issue:null,entity:n}).error)}return e}const se=class se{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"index");l(this,"type",r.InternalCall);l(this,"declaration");l(this,"inputs",[]);l(this,"outputs",[]);l(this,"process",null);l(this,"successCalls",[]);l(this,"errorCalls",[]);l(this,"error",null);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"parent");l(this,"project");l(this,"errors",[]);l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version}static fromGenerationTarget(e,t){const i=D(e.parent),a=t.get(i),s=D(e.declaration),o=t.get(s),d=e.calledByEntry.map(b=>{const I=D(b);return t.get(I)}),p=e.calledBySuccess.map(b=>{const I=D(b);return t.get(I)}),h=e.calledByError.map(b=>{const I=D(b);return t.get(I)}),T={id:e.id,version:1,type:r.InternalCall,index:a.internalCalls.length,declaration:o.toReference(),calledByEntry:d,calledBySuccess:p,calledByError:h,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,parent:a},m=R(T,t);return m.setParent(a),m.initChildren(),m}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:Fe}},t);i=s.modifiedData;const o=D(i.parent),d=t.get(o);if(d){const p=Zs(d),h=p==null?void 0:p.entity;if(!h)a.push(new E({id:`${i.id}--${g.InternalCallParentMissingDataType}`,code:g.InternalCallParentMissingDataType,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${i.declaration}".`,issue:null}));else if(![r.CustomEntity,r.BuiltInBaseEntity,r.PrimitiveEntity].includes(h.type))a.push(new E({id:`${i.id}--${g.InternalCallParentDeclarationEntityInvalidType}`,code:g.InternalCallParentDeclarationEntityInvalidType,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
|
|
84
|
+
Built-in entity types can't have methods attached to them by the user. They are predefined entities that can't be modified. You can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`):i.type===r.CustomEntity?o=`
|
|
85
|
+
This variable's data-type 'entity' is a custom entity which extends or implements a non-interactive 'built-in-base-entity'.s`:i.type===r.BuiltInBaseEntity&&(o=`
|
|
86
|
+
This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s`);const d=s.find(p=>p.id===n.declaration.id);d?d.type!==r.FunctionDeclaration&&e.push(j({id:`${n.id}--${g.InternalCallDeclarationIsNotFunctionDeclaration}`,code:g.InternalCallDeclarationIsNotFunctionDeclaration,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
|
|
87
|
+
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${o}`,issue:null,entity:n}).error):e.push(j({id:`${n.id}--${g.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:g.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${n.declaration}".${o}`,issue:null,entity:n}).error)}return e}const se=class se{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"index");l(this,"type",r.InternalCall);l(this,"declaration");l(this,"inputs",[]);l(this,"outputs",[]);l(this,"process",null);l(this,"successCalls",[]);l(this,"errorCalls",[]);l(this,"error",null);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"parent");l(this,"project");l(this,"errors",[]);l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version}static fromGenerationTarget(e,t){const i=D(e.parent),a=t.get(i),s=D(e.declaration),o=t.get(s),d=e.calledByEntry.map(b=>{const I=D(b);return t.get(I)}),p=e.calledBySuccess.map(b=>{const I=D(b);return t.get(I)}),h=e.calledByError.map(b=>{const I=D(b);return t.get(I)}),T={id:e.id,version:1,type:r.InternalCall,index:a.internalCalls.length,declaration:o.toReference(),calledByEntry:d,calledBySuccess:p,calledByError:h,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,parent:a},m=R(T,t);return m.setParent(a),m.initChildren(),m}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:Fe}},t);i=s.modifiedData;const o=D(i.parent),d=t.get(o);if(d){const p=Zs(d),h=p==null?void 0:p.entity;if(!h)a.push(new E({id:`${i.id}--${g.InternalCallParentMissingDataType}`,code:g.InternalCallParentMissingDataType,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${i.declaration}".`,issue:null}));else if(![r.CustomEntity,r.BuiltInBaseEntity,r.PrimitiveEntity].includes(h.type))a.push(new E({id:`${i.id}--${g.InternalCallParentDeclarationEntityInvalidType}`,code:g.InternalCallParentDeclarationEntityInvalidType,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
|
|
89
88
|
This variable's data-type has an 'entity' field that references an entity with id '${h.id}' and of type '${h.type}'.`,issue:null}));else{const T=Bd(h);let m="";T?h.methods.length?m=`
|
|
90
89
|
All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
|
|
91
90
|
- ${h.methods.map(G=>G.id).join(`
|
|
@@ -98,9 +97,8 @@ Built-in entity types can't have methods attached to them by the user. They are
|
|
|
98
97
|
This variable's data-type 'entity' is a custom entity which extends or implements a non-interactive 'built-in-base-entity'.
|
|
99
98
|
${$n}`:h.type===r.BuiltInBaseEntity&&(m=`
|
|
100
99
|
This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.
|
|
101
|
-
${$n}`);const b=i.declaration
|
|
102
|
-
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${m}`,issue:null})):
|
|
103
|
-
The data type on this variable points to a different entity than the declaration of the internal-call.${m}`,issue:null})):a.push(new E({id:`${i.id}--${g.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:g.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${i.declaration}".${m}`,issue:null}))}}(d.inputs.length||d.outputs.length||d.internalCalls.length)&&a.push(new E({id:`${i.id}--${y.InvalidInternalCallParentRelation}`,code:y.InvalidInternalCallParentRelation,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", can only be added to a variable declaration or variable instance parent if the parent doesn't already have inputs, outputs or other internal calls.
|
|
100
|
+
${$n}`);const b=i.declaration;if(!t.get(b))a.push(new E({id:`${i.id}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't exist in the project.${m}`,issue:null}));else{const B=[];[r.CustomEntity,r.BuiltInBaseEntity,r.PrimitiveEntity].includes(h.type)&&B.push(...h.getAllInteractiveMethods());const G=B.find(q=>q.id===i.declaration);G?G.type!==r.FunctionDeclaration&&a.push(new E({id:`${i.id}--${g.InternalCallDeclarationIsNotFunctionDeclaration}`,code:g.InternalCallDeclarationIsNotFunctionDeclaration,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
|
|
101
|
+
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${m}`,issue:null})):a.push(new E({id:`${i.id}--${g.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:g.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${i.declaration}".${m}`,issue:null}))}}(d.inputs.length||d.outputs.length||d.internalCalls.length)&&a.push(new E({id:`${i.id}--${y.InvalidInternalCallParentRelation}`,code:y.InvalidInternalCallParentRelation,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", can only be added to a variable declaration or variable instance parent if the parent doesn't already have inputs, outputs or other internal calls.
|
|
104
102
|
If you need a new variable-instance for this, consider using the 'implement_variable_instance' generation action to create one and give it a caller.
|
|
105
103
|
The you can attach the new internal-call to it.`,issue:null}))}return a.push(...s.errors,...De(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.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.
|
|
106
104
|
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})),{errors:t,modifiedData:e}}addSelfToProject(){var e;return this.parent.addInternalCall(this),(e=this.process)==null||e.writesValues.forEach(t=>{t.setValueWriter(this.process)}),this.successCalls.forEach(t=>{t.addSuccessCaller(this)}),this.errorCalls.forEach(t=>{t.addErrorCaller(this)}),this.calledBySuccess.forEach(t=>{t.addSuccessCall(this)}),this.calledByError.forEach(t=>{t.addErrorCall(this)}),this.calledByEntry.forEach(t=>{t.addCall(this)}),this}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.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(i=>i.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){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.push(e),this}addSuccessCall(e){return 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 i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.parent.type!==r.GenericReference){const e=R(this.initialData.parent,this.project);this.setParent(e),this.parent.initChildren(),this.parent.addInternalCall(this);const t=this.calledBy.find(i=>!!i.parent&&st.includes(i.parent.type));if(t){const i=R(t.parent,this.project);this.parent.setParent(i)}else if(!t&&!this.parent.calledBy.length)throw new Error("Parent of internal call parent could not be resolved")}return this.declaration=R(this.initialData.declaration,this.project),this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return t.addSuccessCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this.initialData.process&&(this.process=R(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.index=e.index||this.index,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){var s;const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.process){const{affected:o,removed:d}=(s=this.process)==null?void 0:s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}if(this.inputs.forEach(o=>{const{affected:d,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...p)}),this.outputs.forEach(o=>{const{affected:d,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...p)}),this.error){const{affected:o,removed:d}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}return this.successCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),e||this.calledBy.forEach(o=>{i.push(o),o.removeCall(this)}),{affected:O(i),removed:O(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.process){const{affected:i}=this.process.restore({seenEntities:e});t.push(...i)}return this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:O(t),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.process?this.process.toFlatIds(e):[],...this.error?this.error.toFlatIds(e):[]])}toJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,index:this.index,successCalls:this.successCalls.map(i=>i.toJSON()),errorCalls:this.errorCalls.map(i=>i.toJSON()),calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),process:(e=this.process)==null?void 0:e.toJSON(),declaration:this.declaration.toJSON(),inputs:this.inputs.map(i=>i.toJSON()),outputs:this.outputs.map(i=>i.toJSON()),parent:this.parent.toReference(),error:(t=this.error)==null?void 0:t.toJSON()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,index:this.index,process:this.process?this.process.toReference():null,inputs:this.inputs.map(e=>e.toReference()),outputs:this.outputs.map(e=>e.toReference()),declaration:this.declaration.toReference(),successCalls:this.successCalls.map(e=>e.toReference()),errorCalls:this.errorCalls.map(e=>e.toReference()),calledBySuccess:this.calledBySuccess.map(e=>e.toReference()),calledByError:this.calledByError.map(e=>e.toReference()),calledByEntry:this.calledByEntry.map(e=>e.toReference()),error:this.error?this.error.toReference():null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.process?this.process.toFlatJSON(e):[],...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.calledBy.flatMap(i=>i.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){return{id:this.id,type:this.type,calledByEntry:this.calledByEntry.map(e=>e.id),calledBySuccess:this.calledBySuccess.map(e=>e.id),calledByError:this.calledByError.map(e=>e.id),declaration:this.declaration.id,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.process?this.process.toFlatGenerationTarget(e):[],...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=y9(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){return new se(this.toJSON(),this.project)}};l(se,"MUTABLE_BASE_PROPERTIES",[]),l(se,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(se,"BASE_PROPERTIES",[...se.MUTABLE_BASE_PROPERTIES,...se.INMUTABLE_BASE_PROPERTIES]),l(se,"MUTABLE_META_PROPERTIES",[...se.MUTABLE_BASE_PROPERTIES,"index"]),l(se,"INMUTABLE_META_PROPERTIES",[...se.INMUTABLE_BASE_PROPERTIES]),l(se,"META_PROPERTIES",[...se.MUTABLE_META_PROPERTIES,...se.INMUTABLE_META_PROPERTIES]),l(se,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),l(se,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","declaration"]),l(se,"UPSTREAM_PROPERTIES",[...se.MUTABLE_UPSTREAM_PROPERTIES,...se.INMUTABLE_UPSTREAM_PROPERTIES]),l(se,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","outputs","writesValues","successCalls","errorCalls","error"]),l(se,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(se,"DOWNSTREAM_PROPERTIES",[...se.MUTABLE_DOWNSTREAM_PROPERTIES,...se.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(se,"PROPERTIES",[...se.META_PROPERTIES,...se.UPSTREAM_PROPERTIES,...se.DOWNSTREAM_PROPERTIES]);let oi=se;function f9(n){const e=uU(),t=n.toJSON();e.safeParse(t).success;const a=[];if(n.id==="exec-sequentially-argument-map-id"){const s=j({id:`${n.id}--${S.PropertyImplementsNonAbstact}`,message:`Property "${A(n,n.project)}" with id "${n.id}" implements a non-abstract property "${A(n,n.project)}" with id "${n.id}".`,issue:null,severity:f.Error,code:S.PropertyImplementsNonAbstact,entity:n});a.push(s.error)}return X(n.errors,a)}const oe=class oe{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"index");l(this,"name",null);l(this,"description",null);l(this,"declaration",null);l(this,"type",r.InputMap);l(this,"defaultValue",null);l(this,"readsValue",null);l(this,"dynamicArguments",[]);l(this,"project");l(this,"errors",[]);l(this,"parent");l(this,"initialized",!1);l(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.index=e.index,this.name=e.name||null,this.description=e.description||null}static fromGenerationTarget(e,t){const i=D(e.parent),a=t.get(i);let s=null;if(e.declaration){const h=D(e.declaration);s=t.get(h)}let o=null;if(e.readsValue){const h=D(e.readsValue);o=t.get(h)}const d={id:e.id,version:1,name:e.name||null,type:r.InputMap,index:(a.inputs||a.dynamicArguments||[]).length,description:e.description||null,declaration:s,readsValue:o,dynamicArguments:[],defaultValue:null,parent:a},p=R(d,t);return p.setParent(a),p.initChildren(),p}static validateGenerationTarget(e,t){var h;let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:[..._e,r.InputMap]}},t);i=s.modifiedData;const o=t.get(i.parent),d=i.declaration&&(t.get(i.declaration)||t.getBuiltIn(i.declaration)),p=((o==null?void 0:o.inputs)||[]).find(T=>{var m;return i.declaration&&((m=T.declaration)==null?void 0:m.id)===i.declaration});if(i.declaration?d?[r.Property,r.ArgumentDeclaration,r.ValueDescriptor].includes(d.type)?o&&d.type===r.ArgumentDeclaration&&![r.FunctionCall,r.Search,r.InternalCall].includes(o.type)?a.push(new E({id:`${i.id}--${y.InvalidInputMapDeclaration}`,code:y.InvalidInputMapDeclaration,severity:f.Error,message:`Entity of type '${r.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${r.ArgumentDeclaration}' with id '${i.declaration}'.
|
|
@@ -187,11 +185,11 @@ ${Nn}`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null}))),T
|
|
|
187
185
|
${Nn}`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null})),n.calledByEntry&&t.push(new E({id:`${e.id}--${y.InvalidInmutablePropertyOverride}`,message:`Entity of type "${e.type}" with id "${e.id}" cannot have the property "calledByEntry" updated.
|
|
188
186
|
${Nn}`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null})),n.calledBySuccess&&t.push(new E({id:`${e.id}--${y.InvalidInmutablePropertyOverride}`,message:`Entity of type "${e.type}" with id "${e.id}" cannot have the property "calledBySuccess" updated.
|
|
189
187
|
${Nn}`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null})),n.calledByError&&t.push(new E({id:`${e.id}--${y.InvalidInmutablePropertyOverride}`,message:`Entity of type "${e.type}" with id "${e.id}" cannot have the property "calledByError" updated.
|
|
190
|
-
${Nn}`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null}))),t.length)return{errors:t,modifiedData:null,messageAddition:""};const a=ho(e.type);if(a){(a.INMUTABLE_META_PROPERTIES||[]).forEach(
|
|
191
|
-
If you need to update this property, you should delete the entity and create a new one with the updated value.`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null})),i=!0)}),(a.DOWNSTREAM_PROPERTIES||[]).forEach(
|
|
188
|
+
${Nn}`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null}))),t.length)return{errors:t,modifiedData:null,messageAddition:""};const a=ho(e.type);if(a){(a.INMUTABLE_META_PROPERTIES||[]).forEach(q=>{["type","id"].includes(q)||n[q]&&!ta(n[q])&&(t.push(new E({id:`${e.id}--${y.InvalidInmutablePropertyOverride}`,message:`Entity of type "${e.type}" with id "${e.id}" cannot have the property "${q}" updated. It is an inmutable property that is set only when the entity is created.
|
|
189
|
+
If you need to update this property, you should delete the entity and create a new one with the updated value.`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null})),i=!0)}),(a.DOWNSTREAM_PROPERTIES||[]).forEach(q=>{n[q]&&!ta(n[q])&&(t.push(new E({id:`${e.id}--${y.InvalidDownstreamPropertyOverride}`,message:`Entity of type "${e.type}" with id "${e.id}" cannot have the property "${q}" set directly. It is a downstream property that points to a downstream nested entity.
|
|
192
190
|
All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
|
|
193
|
-
To modify '${
|
|
194
|
-
If you need to update this property, you should delete the entity and create a new one with the updated value.`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null})),i=!0)});const G=a.PROPERTIES||[];G.length>0&&Object.keys(n).forEach(
|
|
191
|
+
To modify '${q}', target the entity that it points to and its equivalent property.`,severity:f.Error,code:y.InvalidDownstreamPropertyOverride,issue:null})),i=!0)}),(a.INMUTABLE_UPSTREAM_PROPERTIES||[]).forEach(q=>{n[q]&&!ta(n[q])&&(t.push(new E({id:`${e.id}--${y.InvalidInmutablePropertyOverride}`,message:`Entity of type "${e.type}" with id "${e.id}" cannot have the property "${q}" updated. It is an inmutable property that is set only when the entity is created.
|
|
192
|
+
If you need to update this property, you should delete the entity and create a new one with the updated value.`,severity:f.Error,code:y.InvalidInmutablePropertyOverride,issue:null})),i=!0)});const G=a.PROPERTIES||[];G.length>0&&Object.keys(n).forEach(q=>{G.includes(q)||t.push(new E({id:`${e.id}--${y.UnrecognizedProperty}`,message:`Entity of type "${e.type}" with id "${e.id}" has an unrecognized property "${q}" that will be ignored.`,severity:f.Warning,code:y.UnrecognizedProperty,issue:null}))})}if(t.length)return{errors:t,modifiedData:null,messageAddition:i?eo(e):""};const s=rv(e),o=s==null?void 0:s.partial(),d=o==null?void 0:o.safeParse(n),p={...n,id:e.id,type:e.type},h=pd(p,d);if(t.push(...h),t.length)return{errors:t,modifiedData:null,messageAddition:i?eo(e):""};const m=e.validateGeneratedUpdate(n);return{errors:[...t,...m.errors],modifiedData:m.modifiedData,messageAddition:i?eo(e):""}}function rv(n){switch(n.type){case r.PrimitiveValue:return As();case r.CustomEntity:return Oc();case r.PrimitiveEntity:return As();case r.FunctionDeclaration:return Ac();case r.GlobalEvent:return Ns();case r.DataType:return Ec();case r.Property:return nc();case r.FunctionCall:return uc();case r.Condition:return pc();case r.Operation:return ws();case r.VariableDeclaration:return bc();case r.VariableInstance:return gc();case r.OutputMap:return dc();case r.ReturnDeclaration:return oc();case r.ArgumentDeclaration:return Dc();case r.InputMap:return fc();case r.Project:return Sc();case r.InstalledProject:return JU();case r.ActionDescriptor:return Os();case r.ReturnStatement:return ac();case r.Loop:return Os();case r.Search:return sc();case r.ValueDescriptor:return tc();case r.BuiltInBaseEntity:return rc();case r.InternalCall:return hc();case r.ContinueStatement:return ic();case r.BreakStatement:return lc();default:return null}}function iv(n){switch(n.type){case r.PrimitiveValue:return RU();case r.CustomEntity:return Vx();case r.PrimitiveEntity:return s4();case r.FunctionDeclaration:return Sx();case r.GlobalEvent:return QU();case r.DataType:return _U();case r.Property:return d4();case r.FunctionCall:return Z4();case r.Condition:return tU();case r.Operation:return yU();case r.VariableDeclaration:return LU();case r.VariableInstance:return jU();case r.OutputMap:return W4();case r.ReturnDeclaration:return G4();case r.ArgumentDeclaration:return Ix();case r.InputMap:return cU();case r.Project:return _x();case r.InstalledProject:return HU();case r.ActionDescriptor:return R4();case r.ReturnStatement:return B4();case r.Loop:return v4();case r.Search:return N4();case r.ValueDescriptor:return n4();case r.BuiltInBaseEntity:return f4();case r.InternalCall:return aU();case r.ContinueStatement:return A4();case r.BreakStatement:return j4();default:return null}}function to(n){const e=[];wn(n)||e.push(new E({id:`${n}--${y.InvalidReferenceObjectStructure}`,message:`Reference object with id "${n}" is not an object. References should be objects with exactly 4 properties: 'entityId', 'entityType', 'id', and 'type'.`,severity:f.Error,code:y.InvalidReferenceObjectStructure,issue:null}));const t=n.id||"reference-to--"+(n.entityId||"unknown"),i=`Reference object ${n.id?`with id "${n.id}"`:`to entity with id "${n.entityId}" and type "${n.entityType}"`}`;return n.entityId||e.push(new E({id:`${t}--${y.InvalidReferenceObjectStructure}`,message:`${i} is missing an 'entityId' property.`,severity:f.Error,code:y.InvalidReferenceObjectStructure,issue:null})),n.entityType||e.push(new E({id:`${t}--${y.InvalidReferenceObjectStructure}`,message:`${i} is missing an 'entityType' property.`,severity:f.Error,code:y.InvalidReferenceObjectStructure,issue:null})),n.id||e.push(new E({id:`${t}--${y.MissingIdProperty}`,message:`${i} is missing an 'id' property.`,severity:f.Error,code:y.MissingIdProperty,issue:null})),n.type||e.push(new E({id:`${t}--${y.MissingTypeProperty}`,message:`${i} is missing a 'type' property.`,severity:f.Error,code:y.MissingTypeProperty,issue:null})),e}function pd(n,e){return e.success?[]:e.error.issues.map(t=>new E({id:`${n.id}--${g.InvalidObjectStructure}`,message:`Entity of type "${n.type}" and with id "${n.id}", has an invalid structure: ${i8(t).toString().replace("Validation error: ","")}`,severity:f.Error,code:g.InvalidObjectStructure,issue:t}))}function De(n,e){const t=[],i=iv(n);if(i){const s=i.safeParse(n);t.push(...pd(n,s))}const a=ho(n.type);if(a){(a.DOWNSTREAM_PROPERTIES||[]).forEach(d=>{n[d]&&!ta(n[d])&&t.push(new E({id:`${n.id}--${y.InvalidDownstreamPropertyOverride}`,message:`Entity of type "${n.type}" with id "${n.id}" cannot have the property "${d}" set directly. It is a downstream property that points to a downstream nested entity.
|
|
195
193
|
All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
|
|
196
194
|
To modify '${d}', target the entity that it points to and its equivalent property.`,severity:f.Error,code:y.InvalidDownstreamPropertyOverride,issue:null}))});const o=a.PROPERTIES||[];o.length>0&&Object.keys(n).forEach(d=>{o.includes(d)||t.push(new E({id:`${n.id}--${y.UnrecognizedProperty}`,message:`Entity of type "${n.type}" with id "${n.id}" has an unrecognized property "${d}" that will be ignored.`,severity:f.Warning,code:y.UnrecognizedProperty,issue:null}))})}return t}function w9(n,e){const t=[];if(!n.parent)return t;const i=e.get(n.parent);return i?(Ar.includes(i==null?void 0:i.type)?t.push(new E({id:`${n.id}--${y.BuiltInEntityParent}`,message:`Entity of type "${n.type}" with id "${n.id}" cannot have the parent with id "${i.id}", because it is a built in entity. Built in entities cannot be modified.`,severity:f.Error,code:y.BuiltInEntityParent,issue:null})):i.type===r.ActionDescriptor&&e.get(n.parent)&&t.push(new E({id:`${n.id}--${y.BuiltInEntityParent}`,message:`Entity of type "${n.type}" with id "${n.id}" cannot have the parent with id "${i.id}", because it is a built in entity. Built in entities cannot be modified. Action descriptors are only sometimes built in, other times they are managed by the user.`,severity:f.Error,code:y.BuiltInEntityParent,issue:null})),t):[]}function yd(n,e,t){const i=[],a=n[e.key];if(!a)return i.push(new E({id:`${n.id}--${e.key}--${g.InvalidObjectStructure}`,message:`Entity of type "${n.type}" with id "${n.id}" is missing a reference to a "${e.key}" entity. The '${e.key}' property of a "${n.type}" entity can be ${N(e.types,", "," or ")}.`,severity:f.Error,code:g.InvalidObjectStructure,issue:null})),{entityState:null,errors:i};let s=null;if(typeof a=="string")s=a;else{const d=to(a);i.push(...d),d.length===0&&(s=a.entityId)}if(!s)return{entityState:null,errors:i};if(n.id===s)return i.push(new E({id:`${n.id}--${s}--${y.SelfReference}`,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to itself at '${e.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,severity:f.Error,code:y.SelfReference,issue:null})),{entityState:null,errors:i};const o=t.get(s)||t.getBuiltIn(s);return o?e.types.includes(o.type)||i.push(new E({id:`${n.id}--${s}--${y.InvalidReference}`,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to "${s}" at '${e.key}' that isn't pointing to an entity of type '${N(e.types,"', '","' or '")}'.`,severity:f.Error,code:y.InvalidReference,issue:null})):i.push(new E({id:`${n.id}--${s}--${y.ReferencedEntityNotFound}`,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${s}" at '${e.key}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:f.Error,code:y.ReferencedEntityNotFound,issue:null})),{entityState:o,errors:i}}function no(n,e,t){const i=[],a=n[e];return a?Array.isArray(a)?{entities:a.map(o=>{let d=null;if(typeof o=="string")d=o;else{const h=to(o);i.push(...h),h.length===0&&(d=o.entityId)}if(!d)return{entityState:null,errors:[new E({id:`${n.id}--${e}--${y.InvalidReference}`,message:`Entity of type "${n.type}" with id "${n.id}", has a missing reference at '${e}'. A reference needs to be a 'id' string of an existing entity in the project.`,severity:f.Error,code:y.InvalidReference,issue:null})]};const p=t.get(d)||t.getBuiltIn(d);return p?{entityState:p,errors:[]}:(i.push(new E({id:`${n.id}--${d}--${y.ReferencedEntityNotFound}`,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${d}" at '${e}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:f.Error,code:y.ReferencedEntityNotFound,issue:null})),{entityState:null,errors:i})}),errors:[]}:(i.push(new E({id:`${n.id}--${e}--${g.InvalidObjectStructure}`,message:`Entity of type "${n.type}" with id "${n.id}" has an invalid structure for the "${e}" property. It should be an array of references.`,severity:f.Error,code:g.InvalidObjectStructure,issue:null})),{entities:[],errors:i}):(i.push(new E({id:`${n.id}--${e}--${g.InvalidObjectStructure}`,message:`Entity of type "${n.type}" with id "${n.id}" is missing a list of references to "${e}" entities.`,severity:f.Error,code:g.InvalidObjectStructure,issue:null})),{entities:[],errors:i})}function hd(n,e,t){const i=[],a=yd(n,e,t);if(a.errors.length>0)return a.errors;if(a.entityState){const s=a.entityState;e.types.includes(s.type)||i.push(new E({id:`${n.id}--${s.id}--${y.InvalidReference}`,code:y.InvalidReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to "${e.key}" that isn't pointing to an entity of type '${N(e.types,"', '","' or '")}'.`,issue:null})),n.id===s.id&&i.push(new E({id:`${n.id}--${s.id}--${y.SelfReference}`,code:y.SelfReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to itself at '${e.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}))}return i}function N(n,e,t){if(n.length===1)return n[0];if(n.length===2)return n.join(t);{const i=n.pop();return`${n.join(e)}${t}${i}`}}const Mn=`Pass-through callable entities are entities that need to be called by another caller, then they execute some internal logic and when finished, it can call other callable entities with the "calledBySuccess" property or "calledByError" property based on whether their internal execution was successful or an error ocurred respectively.
|
|
197
195
|
All pass-through callable entities are: ${N(_e,", "," and ")}.`,ca=`Entry point entities are the entities which start the execution of a logic chain. They are ${N($e,", "," and ")}.They aren't explicitly called by any entities. Rather, they can be called implicitly by the system, or as a function-call somewhere else in the case of a function-declaration. `,av=`Caller entities are entities that can call other entities. Regarless of whether they are entry-point entities or pass-through callable entities. All caller entity types are: ${N(en,", "," and ")}.`,_9=`Callable entities are entities that can be called by other entities. They can be called by an entry-point, a success caller, or an error caller.
|
|
@@ -257,12 +255,12 @@ ${ca}.
|
|
|
257
255
|
We have moved the reference to 'calledBySuccess' for you.`,issue:null}));else if(!en.includes(e.type))return t.push(new E({id:`${n.id}--${e.id}--${y.InvalidReference}`,code:y.InvalidReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity at 'calledByEntry' with id "${e.id}" that isn't a caller entity.
|
|
258
256
|
All caller entity types are: ${N(en,", "," and ")}.
|
|
259
257
|
For the 'calledByEntry' property, you specifically need to reference a pass-through callable entity.
|
|
260
|
-
${Mn}`,issue:null})),t;return t}function dv(n,e){const t=[];let i=JSON.parse(JSON.stringify(n));if(Tn.includes(i.type)){if(i.calledBySuccess){const s=no(i,"calledBySuccess",e);s.errors.length===0?s.entities.forEach(o=>{if(o.errors.length){t.push(...o.errors);return}const d=ov(i,o.entityState);i=d.modifiedData,t.push(...d.errors)}):t.push(...s.errors)}if(i.calledByError){const s=no(i,"calledByError",e);s.errors.length===0?s.entities.forEach(o=>{if(o.errors.length){t.push(...o.errors);return}const d=lv(i,o.entityState);t.push(...d)}):t.push(...s.errors)}if(i.calledByEntry){const s=no(i,"calledByEntry",e);s.errors.length===0?(s.entities.forEach(o=>{if(o.errors.length){t.push(...o.errors);return}const d=cv(i,o.entityState);t.push(...d)}),t.push(...t)):t.push(...s.errors)}const a=[...i.calledBySuccess||[],...i.calledByError||[],...i.calledByEntry||[]];if(a.length){const s=[...new Set(a)];a.length!==s.length&&t.push(new E({id:`${i.id}--${y.DuplicateReference}`,code:y.DuplicateReference,severity:f.Warning,message:`Entity of type "${i.type}" with id "${i.id}" has duplicate caller references. Each caller reference should be unique. Duplicate caller reference will be ignored.`,issue:null}));const o=ht(i,e);i.type===r.ReturnStatement&&o&&!$e.includes(o.type)?t.push(new E({id:`${i.id}--${y.IncompatibleScope}`,code:y.IncompatibleScope,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${N($e,"', '","' or '")}' entity. A return statement's parent should always be resolved to a function declaration or global event.${io}`,issue:null})):i.type===r.ContinueStatement&&o&&o.type!==r.Loop?t.push(new E({id:`${i.id}--${y.IncompatibleScope}`,code:y.IncompatibleScope,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${r.Loop}' entity. A continue statement's parent should always be resolved to a loop entity.${io}`,issue:null})):i.type===r.BreakStatement&&o&&o.type!==r.Loop&&t.push(new E({id:`${i.id}--${y.IncompatibleScope}`,code:y.IncompatibleScope,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${r.Loop}' entity. A break statement's parent should always be resolved to a loop entity.${io}`,issue:null}));const d=[],p=[];let h=null;if(s.forEach(T=>{const m=e.get(T);if(!m){t.push(new E({id:`${i.id}--${T}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity with id "${T}" that doesn't exist in the project.`,issue:null}));return}const b=ht(m,e);if(o)pa(o,b,e)?(Oe.includes(i.type)&&((i.calledBySuccess||[]).find(B=>B===m.id)?(m.successCalls||[]).find(
|
|
261
|
-
The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,issue:null})):(i.calledByError||[]).find(B=>B===m.id)?(m.errorCalls||[]).find(
|
|
262
|
-
The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,issue:null})):(i.calledByEntry||[]).find(B=>B===m.id)&&(m.calls||[]).find(
|
|
263
|
-
The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,issue:null}))),d.push({caller:m,scope:b})):p.push({caller:m,scope:b,errors:[new E({id:`${i.id}--${m.id}--${y.CallerWithIncompatibleScope}`,code:y.CallerWithIncompatibleScope,severity:f.Warning,message:`Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${m.type}" with id "${m.id}" that is in a different scope. The caller entity should be in the same scope or a higher valid scope. Or all callers should share the global project scope with the entity they call.`,issue:null})]});else if(!h)h=b;else{const{compatible:I}=pa(h,b,e);I?(Oe.includes(i.type)&&((i.calledBySuccess||[]).find(B=>B===m.id)?(m.successCalls||[]).find(
|
|
264
|
-
The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,issue:null})):(i.calledByError||[]).find(B=>B===m.id)?(m.errorCalls||[]).find(
|
|
265
|
-
The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,issue:null})):(i.calledByEntry||[]).find(B=>B===m.id)&&(m.calls||[]).find(
|
|
258
|
+
${Mn}`,issue:null})),t;return t}function dv(n,e){const t=[];let i=JSON.parse(JSON.stringify(n));if(Tn.includes(i.type)){if(i.calledBySuccess){const s=no(i,"calledBySuccess",e);s.errors.length===0?s.entities.forEach(o=>{if(o.errors.length){t.push(...o.errors);return}const d=ov(i,o.entityState);i=d.modifiedData,t.push(...d.errors)}):t.push(...s.errors)}if(i.calledByError){const s=no(i,"calledByError",e);s.errors.length===0?s.entities.forEach(o=>{if(o.errors.length){t.push(...o.errors);return}const d=lv(i,o.entityState);t.push(...d)}):t.push(...s.errors)}if(i.calledByEntry){const s=no(i,"calledByEntry",e);s.errors.length===0?(s.entities.forEach(o=>{if(o.errors.length){t.push(...o.errors);return}const d=cv(i,o.entityState);t.push(...d)}),t.push(...t)):t.push(...s.errors)}const a=[...i.calledBySuccess||[],...i.calledByError||[],...i.calledByEntry||[]];if(a.length){const s=[...new Set(a)];a.length!==s.length&&t.push(new E({id:`${i.id}--${y.DuplicateReference}`,code:y.DuplicateReference,severity:f.Warning,message:`Entity of type "${i.type}" with id "${i.id}" has duplicate caller references. Each caller reference should be unique. Duplicate caller reference will be ignored.`,issue:null}));const o=ht(i,e);i.type===r.ReturnStatement&&o&&!$e.includes(o.type)?t.push(new E({id:`${i.id}--${y.IncompatibleScope}`,code:y.IncompatibleScope,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${N($e,"', '","' or '")}' entity. A return statement's parent should always be resolved to a function declaration or global event.${io}`,issue:null})):i.type===r.ContinueStatement&&o&&o.type!==r.Loop?t.push(new E({id:`${i.id}--${y.IncompatibleScope}`,code:y.IncompatibleScope,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${r.Loop}' entity. A continue statement's parent should always be resolved to a loop entity.${io}`,issue:null})):i.type===r.BreakStatement&&o&&o.type!==r.Loop&&t.push(new E({id:`${i.id}--${y.IncompatibleScope}`,code:y.IncompatibleScope,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${r.Loop}' entity. A break statement's parent should always be resolved to a loop entity.${io}`,issue:null}));const d=[],p=[];let h=null;if(s.forEach(T=>{const m=e.get(T);if(!m){t.push(new E({id:`${i.id}--${T}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity with id "${T}" that doesn't exist in the project.`,issue:null}));return}const b=ht(m,e);if(o)pa(o,b,e)?(Oe.includes(i.type)&&((i.calledBySuccess||[]).find(B=>B===m.id)?(m.successCalls||[]).find(q=>Oe.includes(q.type))&&t.push(new E({id:`${i.id}--${m.id}--${g.UnreachableEntity}`,code:g.UnreachableEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${m.type}" with id "${m.id}" that already calls a termination statement.
|
|
259
|
+
The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,issue:null})):(i.calledByError||[]).find(B=>B===m.id)?(m.errorCalls||[]).find(q=>Oe.includes(q.type))&&t.push(new E({id:`${i.id}--${m.id}--${g.UnreachableEntity}`,code:g.UnreachableEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${m.type}" with id "${m.id}" that already calls a termination statement.
|
|
260
|
+
The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,issue:null})):(i.calledByEntry||[]).find(B=>B===m.id)&&(m.calls||[]).find(q=>Oe.includes(q.type))&&t.push(new E({id:`${i.id}--${m.id}--${g.UnreachableEntity}`,code:g.UnreachableEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${m.type}" with id "${m.id}" that already calls a termination statement.
|
|
261
|
+
The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,issue:null}))),d.push({caller:m,scope:b})):p.push({caller:m,scope:b,errors:[new E({id:`${i.id}--${m.id}--${y.CallerWithIncompatibleScope}`,code:y.CallerWithIncompatibleScope,severity:f.Warning,message:`Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${m.type}" with id "${m.id}" that is in a different scope. The caller entity should be in the same scope or a higher valid scope. Or all callers should share the global project scope with the entity they call.`,issue:null})]});else if(!h)h=b;else{const{compatible:I}=pa(h,b,e);I?(Oe.includes(i.type)&&((i.calledBySuccess||[]).find(B=>B===m.id)?(m.successCalls||[]).find(q=>Oe.includes(q.type))&&t.push(new E({id:`${i.id}--${m.id}--${g.UnreachableEntity}`,code:g.UnreachableEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${m.type}" with id "${m.id}" that already calls a termination statement.
|
|
262
|
+
The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,issue:null})):(i.calledByError||[]).find(B=>B===m.id)?(m.errorCalls||[]).find(q=>Oe.includes(q.type))&&t.push(new E({id:`${i.id}--${m.id}--${g.UnreachableEntity}`,code:g.UnreachableEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${m.type}" with id "${m.id}" that already calls a termination statement.
|
|
263
|
+
The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,issue:null})):(i.calledByEntry||[]).find(B=>B===m.id)&&(m.calls||[]).find(q=>Oe.includes(q.type))&&t.push(new E({id:`${i.id}--${m.id}--${g.UnreachableEntity}`,code:g.UnreachableEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${m.type}" with id "${m.id}" that already calls a termination statement.
|
|
266
264
|
The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,issue:null}))),d.push({caller:m,scope:b})):p.push({caller:m,scope:b,errors:[new E({id:`${i.id}--${m.id}--${y.CallerWithIncompatibleScope}`,code:y.CallerWithIncompatibleScope,severity:f.Warning,message:`Entity of type "${i.type}" with id "${i.id}" has multiple caller, but not all of them have compatible scopes. Caller of type "${m.type}" with id "${m.id}" is in a different scope than caller of type "${h.type}" with id "${h.id}". All callers should be in the same scope or a higher valid scope. Or all callers should share the global project scope.`,issue:null})]})}}),p.length)p.forEach(T=>{t.push(...T.errors)});else if(d.length&&!o&&Ro.includes(i.type)){const T=d.filter(m=>m.scope!==e);if(T.length){const m=jv(T.map(b=>b.scope));i.parent=m.id}else i.parent=e.id}}else{let s=`Entity of type "${i.type}" with id "${i.id}" isn't called by any other entity. Callable entities only get executed if they have a list of references from either 'calledByEntry', 'calledBySuccess' or 'calledByError'.
|
|
267
265
|
To add a caller, use the 'add_caller' action with the properties: 'callerEntityId', a 'calleeEntityId', and optionally a boolean 'fromError' (if the caller calls when an error occured in its execution).`;i.type===r.ReturnStatement?s+=`
|
|
268
266
|
Return statements need to have a caller when created, since their purpose is to terminate a call chain.`:i.type===r.ContinueStatement?s+=`
|
|
@@ -345,16 +343,16 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
|
|
|
345
343
|
`;return i?i.type===r.FunctionDeclaration?t.push(new E({id:`last-action--${y.InvalidActionDescriptorForCondition}`,code:y.InvalidActionDescriptorForCondition,severity:f.Error,message:`The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${a}`,issue:null})):i.type===r.ActionDescriptor?e.conditionDeclarations.find(o=>o.id===n)||t.push(new E({id:`last-action--${y.InvalidActionDescriptorForOperation}`,code:y.InvalidActionDescriptorForOperation,severity:f.Error,message:`The entity with id '${n}' is of type '${i.type}' entity but it isn't one of the allowed condition descriptors.${a}`,issue:null})):i.type!==r.ActionDescriptor&&t.push(new E({id:`last-action--${y.InvalidActionDescriptorForCondition}`,code:y.InvalidActionDescriptorForCondition,severity:f.Error,message:`The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${a}`,issue:null})):t.push(new E({id:`last-action--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`The entity with id '${n}' that isn't yet found in the project.${a}`,issue:null})),t}function U9(n,e){const t=[];if(!n)return[];const i=e.getBuiltIn(n),a=`
|
|
346
344
|
All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
|
|
347
345
|
- ${e.loopDeclarations.map(s=>`${s.id} (${A(s,e)}).`).join(`
|
|
348
|
-
- `)}`;return i?i.type===r.FunctionDeclaration?t.push(new E({id:`last-action--${y.InvalidActionDescriptorForLoop}`,code:y.InvalidActionDescriptorForLoop,severity:f.Error,message:`The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${a}`,issue:null})):i.type===r.ActionDescriptor?e.loopDeclarations.find(o=>o.id===n)||t.push(new E({id:`last-action--${y.InvalidActionDescriptorForOperation}`,code:y.InvalidActionDescriptorForOperation,severity:f.Error,message:`The entity with id '${n}' is of type '${i.type}' entity but it isn't one of the allowed loop descriptors.${a}`,issue:null})):i.type!==r.ActionDescriptor&&t.push(new E({id:`last-action--${y.InvalidActionDescriptorForLoop}`,code:y.InvalidActionDescriptorForLoop,severity:f.Error,message:`The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${a}`,issue:null})):t.push(new E({id:`last-action--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`The entity with id '${n}' that isn't yet found in the project.${a}`,issue:null})),t}function hv(n,e,t){var p,h,T,m;if(t.compatible)return"";const i=`entity of type "${n.type}" with id "${n.id}"`,a=`entity with id "${n.id}"`,s=`entity of type "${e.type}" with id "${e.id}"`,o=`entity with id "${e.id}"`,d=Hs(`${i} and ${s} have incompatible data types and cannot be connected as value-reader and value-writter.`);return t.type===
|
|
349
|
-
${a} is a list, but ${o} is not. A list can't be connected to a single value.`:t.type===
|
|
350
|
-
${a} is not a list, but ${o} is. A single value can't be connected to a list.`:t.type===
|
|
351
|
-
${a} is nullable, but ${o} is not. A nullable value can't be connected to a non-nullable value since an empty value might be incorrectly provided.`:t.type===
|
|
352
|
-
${a} is not nullable, but ${o} is. A non-nullable value can't be connected to a nullable value since an empty value might be incorrectly provided.`:t.type===
|
|
353
|
-
${a} is a template, but ${o} is not. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.`:t.type===
|
|
354
|
-
${a} is not a template, but ${o} is. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.`:t.type===
|
|
355
|
-
Their 'entity' property is of different types. They must be of the same type to be connected. For example, the 'entity' can be a '${r.CustomEntity}' or a '${r.PrimitiveEntity}'.`:t.type===
|
|
356
|
-
Both point to custom entities, but they are not compatible to be connected. They must be either the same custom entity, or a custom entity that has equivalent shape, which includes the same properties all with compatible data types with the properties in the counterpart entity.`:t.type===
|
|
357
|
-
${a} is of primitive type '${((p=n.getDataType())==null?void 0:p.entity).name}' and ${o} is of primitive type '${((h=e.getDataType())==null?void 0:h.entity).name}'. They must be of the same primitive type to be connected.`:t.type===
|
|
346
|
+
- `)}`;return i?i.type===r.FunctionDeclaration?t.push(new E({id:`last-action--${y.InvalidActionDescriptorForLoop}`,code:y.InvalidActionDescriptorForLoop,severity:f.Error,message:`The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${a}`,issue:null})):i.type===r.ActionDescriptor?e.loopDeclarations.find(o=>o.id===n)||t.push(new E({id:`last-action--${y.InvalidActionDescriptorForOperation}`,code:y.InvalidActionDescriptorForOperation,severity:f.Error,message:`The entity with id '${n}' is of type '${i.type}' entity but it isn't one of the allowed loop descriptors.${a}`,issue:null})):i.type!==r.ActionDescriptor&&t.push(new E({id:`last-action--${y.InvalidActionDescriptorForLoop}`,code:y.InvalidActionDescriptorForLoop,severity:f.Error,message:`The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${a}`,issue:null})):t.push(new E({id:`last-action--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`The entity with id '${n}' that isn't yet found in the project.${a}`,issue:null})),t}function hv(n,e,t){var p,h,T,m;if(t.compatible)return"";const i=`entity of type "${n.type}" with id "${n.id}"`,a=`entity with id "${n.id}"`,s=`entity of type "${e.type}" with id "${e.id}"`,o=`entity with id "${e.id}"`,d=Hs(`${i} and ${s} have incompatible data types and cannot be connected as value-reader and value-writter.`);return t.type===_t.AIsListBIsNot?`${d}
|
|
347
|
+
${a} is a list, but ${o} is not. A list can't be connected to a single value.`:t.type===_t.BIsListAIsNot?`${d}
|
|
348
|
+
${a} is not a list, but ${o} is. A single value can't be connected to a list.`:t.type===_t.AIsNullableBIsNot?`${d}
|
|
349
|
+
${a} is nullable, but ${o} is not. A nullable value can't be connected to a non-nullable value since an empty value might be incorrectly provided.`:t.type===_t.BIsNullableAIsNot?`${d}
|
|
350
|
+
${a} is not nullable, but ${o} is. A non-nullable value can't be connected to a nullable value since an empty value might be incorrectly provided.`:t.type===_t.AIsTemplateBIsNot?`${d}
|
|
351
|
+
${a} is a template, but ${o} is not. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.`:t.type===_t.BIsTemplateAIsNot?`${d}
|
|
352
|
+
${a} is not a template, but ${o} is. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.`:t.type===_t.TypeEntityMismatch?`${d}
|
|
353
|
+
Their 'entity' property is of different types. They must be of the same type to be connected. For example, the 'entity' can be a '${r.CustomEntity}' or a '${r.PrimitiveEntity}'.`:t.type===_t.IncompatibleCustomEntities?`${d}
|
|
354
|
+
Both point to custom entities, but they are not compatible to be connected. They must be either the same custom entity, or a custom entity that has equivalent shape, which includes the same properties all with compatible data types with the properties in the counterpart entity.`:t.type===_t.IncompatiblePrimitiveEntities?`${d}
|
|
355
|
+
${a} is of primitive type '${((p=n.getDataType())==null?void 0:p.entity).name}' and ${o} is of primitive type '${((h=e.getDataType())==null?void 0:h.entity).name}'. They must be of the same primitive type to be connected.`:t.type===_t.IncompatibleBuiltInBaseEntities?`${d}
|
|
358
356
|
Both point to a built-in-base-entity. But${a} is of built-in base type '${((T=n.getDataType())==null?void 0:T.entity).name}' and ${o} is of built-in base type '${((m=e.getDataType())==null?void 0:m.entity).name}'. They must be of the same built-in base type to be connected.`:d}function da(n,e){const t=[];if(n.readsValue){const i=e.project.get(D(n.readsValue));if(e.project.getBuiltIn(D(n.readsValue)))t.push(new E({id:`${e.id}--${y.InvalidBuiltInEntityReference}`,code:y.InvalidBuiltInEntityReference,severity:f.Error,message:`The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to a built-in entity with id '${n.readsValue}'. Only user-created entities can be referenced.`,issue:null}));else if(!i)t.push(new E({id:`${e.id}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to entity with id '${n.readsValue}' because the entity was not found in the project state.`,issue:null}));else{const s=vr(i);if(s)t.push(new E({id:`${e.id}--${y.InvalidBuiltInEntityReference}`,code:y.InvalidBuiltInEntityReference,severity:f.Error,message:`The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to entity with id '${n.readsValue}' because the entity belongs to a built-in '${s.type}' entity with id '${s.id}' (${A(s,e.project)}) higher up in the tree.`,issue:null}));else{const o=bd({...e.toGenerationTarget(),...n},i);t.push(...o);const d=Ys(e.getDataType(),i.getDataType());d.compatible||t.push(new E({id:`${e.id}--${g.ReaderWriterIncompatibleDataType}`,code:g.ReaderWriterIncompatibleDataType,severity:f.Error,message:hv(e,i,d),issue:null}))}}}return{errors:t,modifiedData:n}}function mn(n){const e=[];if(n.parent===n.project)n.calledBy.length||e.push(new Xn({id:`${n.id}--${S.DisconnectedCallableEntity}`,code:S.DisconnectedCallableEntity,severity:f.Warning,message:`This '${n.type}' entity "${A(n,n.project)}" with id "${n.id}" is globally declared and isn't called by any other entity.
|
|
359
357
|
Globally declared callable entities will not be part of any logic execution when the project is published.
|
|
360
358
|
To useful to the project when it is published, entities need to be called by a chain of logic that traces itself back to an entry point. Entry points can be either '${r.GlobalEvent}' or '${r.FunctionDeclaration}'.
|
|
@@ -369,7 +367,7 @@ All global 'function-declaration' entity ids are:
|
|
|
369
367
|
The project currently has no global 'function-declaration' entities that can be called as 'function-call' entities.`;a.push(new E({id:`${i.id}--${y.InvalidReference}`,code:y.InvalidReference,severity:f.Error,message:`Entity of type "${r.FunctionCall}" with id "${i.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'function-declaration' entity.
|
|
370
368
|
References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${d}`,issue:null}))}return{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.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.
|
|
371
369
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
372
|
-
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}}addSelfToProject(){var e;return this.parent===this.project&&this.project.addFunctionCall(this),(e=this.process)==null||e.writesValues.forEach(t=>{t.setValueWriter(this.process)}),this.successCalls.forEach(t=>{t.addSuccessCaller(this)}),this.errorCalls.forEach(t=>{t.addErrorCaller(this)}),this.calledBySuccess.forEach(t=>{t.addSuccessCall(this)}),this.calledByError.forEach(t=>{t.addErrorCall(this)}),this.calledByEntry.forEach(t=>{t.addCall(this)}),this}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.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(i=>i.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){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.push(e),this}addSuccessCall(e){return 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 i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.declaration.type===r.FunctionDeclaration){const e=R(this.initialData.declaration,this.project);this.declaration=e}else{const e=D(this.initialData.declaration),t=this.project.get(e);this.declaration=t}return this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return t.addSuccessCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initOutputs(),this.initialData.process&&(this.process=R(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this}initOutputs(){const e=[];this.outputs=this.initialData.outputs.map(s=>{const o=R(s,this.project);return e.push(o.index),o.setParent(this),o.initChildren(),o});const i=Ad(this).filter(s=>!this.outputs.find(o=>o.declaration.id===s.id));i.sort((s,o)=>s.index-o.index);const a=i.map((s,o)=>{const d=e.includes(s.index)?this.outputs.length-1+o:s.index,p={id:$.UUID.uuid(),type:r.OutputMap,version:1,declaration:s,index:d,parent:this,writesValues:[]},h=R(p,this.project);return h.setParent(this),h.initChildren(),h});return this.outputs.push(...a),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){var s;const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.process){const{affected:o,removed:d}=(s=this.process)==null?void 0:s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}if(this.inputs.forEach(o=>{const{affected:d,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...p)}),this.outputs.forEach(o=>{const{affected:d,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...p)}),this.error){const{affected:o,removed:d}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}return this.successCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),e||this.calledBy.forEach(o=>{i.push(o),o.removeCall(this)}),{affected:O(i),removed:O(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.process){const{affected:i}=this.process.restore({seenEntities:e});t.push(...i)}return this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:O(t),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e))])}toJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(i=>i.toJSON()),errorCalls:this.errorCalls.map(i=>i.toJSON()),calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),process:(e=this.process)==null?void 0:e.toJSON(),declaration:this.declaration.toJSON(),inputs:this.inputs.map(i=>i.toJSON()),outputs:this.outputs.map(i=>i.toJSON()),parent:this.parent.toReference(),error:(t=this.error)==null?void 0:t.toJSON()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference():null,inputs:this.inputs.map(e=>e.toReference()),outputs:this.outputs.map(e=>e.toReference()),declaration:this.declaration.toReference(),successCalls:this.successCalls.map(e=>e.toReference()),errorCalls:this.errorCalls.map(e=>e.toReference()),calledBySuccess:this.calledBySuccess.map(e=>e.toReference()),calledByError:this.calledByError.map(e=>e.toReference()),calledByEntry:this.calledByEntry.map(e=>e.toReference()),error:this.error?this.error.toReference():null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.process?this.process.toFlatJSON(e):[],...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,version:this.version,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(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=x9(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){return new ge(this.toJSON(),this.project)}};l(ge,"MUTABLE_BASE_PROPERTIES",[]),l(ge,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),l(ge,"BASE_PROPERTIES",[...ge.MUTABLE_BASE_PROPERTIES,...ge.INMUTABLE_BASE_PROPERTIES]),l(ge,"MUTABLE_META_PROPERTIES",["x","y"]),l(ge,"INMUTABLE_META_PROPERTIES",[...ge.INMUTABLE_BASE_PROPERTIES]),l(ge,"META_PROPERTIES",[...ge.MUTABLE_META_PROPERTIES,...ge.INMUTABLE_META_PROPERTIES]),l(ge,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),l(ge,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),l(ge,"UPSTREAM_PROPERTIES",[...ge.MUTABLE_UPSTREAM_PROPERTIES,...ge.INMUTABLE_UPSTREAM_PROPERTIES]),l(ge,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),l(ge,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ge,"DOWNSTREAM_PROPERTIES",[...ge.MUTABLE_DOWNSTREAM_PROPERTIES,...ge.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(ge,"PROPERTIES",[...ge.META_PROPERTIES,...ge.UPSTREAM_PROPERTIES,...ge.DOWNSTREAM_PROPERTIES]);let Rr=ge;function fv(n){var e,t,i;switch(n.id){case Ve["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const a=n.project.entities.filter(T=>!!T.implements.find(m=>m.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(a.find(T=>!!T.properties.find(m=>{var b;return m.implements&&m.implements.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default&&((b=m.getDefaultValue())==null?void 0:b.value)===!0}))){const m=a[0].properties.find(I=>I.implements&&I.implements.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default),b=(e=m==null?void 0:m.dataType)==null?void 0:e.defaultValue;if(b)b.value=!0;else if(m!=null&&m.dataType){const I=(t=m==null?void 0:m.dataType)==null?void 0:t.id.split("-id")[0],B=R({id:I+"-default-value-id",version:1,type:r.PrimitiveValue,name:v.EntityTemplate,autogeneration:null,value:!0,valueAsType:null,parent:m==null?void 0:m.dataType.toReference()},n.project);return B.setParent(m==null?void 0:m.dataType),B.initChildren(),B.addSelfToProject(),{newEntities:[B]}}return{newEntities:[]}}const o=n.project.get(Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),d=lo(o,"Main database");if(d.errors.length>0)return{newEntities:[]};const p=d.implemented.properties.find(T=>T.implements&&T.implements.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default),h=(i=p==null?void 0:p.dataType)==null?void 0:i.defaultValue;if(h)h.value=!0;else if(p!=null&&p.dataType){const T=p==null?void 0:p.dataType.id.split("-id")[0],m=R({id:T+"-default-value-id",version:1,type:r.PrimitiveValue,name:v.EntityTemplate,autogeneration:null,value:!0,valueAsType:null,parent:p==null?void 0:p.dataType.toReference()},n.project);m.setParent(p==null?void 0:p.dataType),m.initChildren(),m.addSelfToProject()}return{newEntities:[d.implemented]}}}return{newEntities:[]}}function mv(n){return n.implements.filter(t=>t.type===r.BuiltInBaseEntity).map(t=>{var i;switch(t.id){case Ve["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const s=n.project.entities.filter(p=>p.implements.find(h=>h.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(p=>!!p.properties.find(h=>{var T;return h.implements&&h.implements.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default&&((T=h.getDefaultValue())==null?void 0:T.value)===!0}));if(!s)return{newEntities:[]};const o=n.properties.find(p=>p.implements&&p.implements.id===Ve["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database),d=(i=o==null?void 0:o.dataType)==null?void 0:i.defaultValue;if(o&&(o!=null&&o.dataType)&&!d){const p=o==null?void 0:o.dataType.id.split("-id")[0],h=R({id:p+"-default-value-id",version:1,type:r.PrimitiveValue,name:v.EntityTemplate,autogeneration:null,value:null,valueAsType:s,parent:o==null?void 0:o.dataType.toReference()},n.project);return h.setParent(o==null?void 0:o.dataType),h.initChildren(),h.addSelfToProject(),{newEntities:[h]}}return{newEntities:[]}}}}),{newEntities:[]}}function lo(n,e,t){const i=t||Xt(e,r.CustomEntity,n.project),a=i.split("-id"),s=a[a.length-1||0]||i,o={id:i,version:1,name:e,type:r.CustomEntity,description:null,static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[n],x:0,y:0,parent:n.project},d=Ks(o,n.project);if(d.length>0)return{errors:d,implemented:null,entitiesChanges:{new:[],updated:[],deleted:[]}};const p=fv(n),h=R(o,n.project);h.setParent(n.project),h.initChildren();const T=n.properties.map(I=>{const B=s+"-"+Xt(A(I,n.project),r.Property,n.project),G=I.clone(h,B);return G.abstract=!1,G.implements=I,G.setParent(h),h.addProperty(G),G}),m=n.abstractMethods.map(I=>{const B=s+Xt(I.name,r.FunctionDeclaration,n.project),G=I.implementAsFunctionDeclaration(B),W={id:B+"-parent-ref-id",type:r.GenericReference,entityId:i,entityType:r.CustomEntity},xt={...G,implements:I,parent:W},Le=R(xt,n.project);return h.addMethod(Le),Le.setParent(h),Le.initChildren(),Le.implements=I,Le});o.properties=T,o.methods=m;const b=mv(h);return{implemented:h,errors:[],entitiesChanges:{new:[h,...p.newEntities,...b.newEntities],updated:[h],deleted:[]}}}function co(n,e){const t=gr(n);if(t.length===0)return{list:[],last:null};let i=null;return{list:t.flatMap(s=>{if(s===e)return i=s,[s];const o=co(s,e);return o.last&&(i=o.last),[s,...o.list]}),last:i}}function Tv(n,e,t=new Set){const i=Vn(n),a=Vn(e),s=i.filter(p=>!a.includes(p)),o=i.filter(p=>a.includes(p)),d=s.reduce((p,h)=>t.has(h.id)?p:(t.add(h.id),O([...p,...Tv(h,e,t)])),[]);return O([...o,...d])}function ua(n,e){const t=co(n,e);return t.last===e&&t.list.length>0&&t.list[0]!==e}function j9(n,e){return!!co(n,e).last}function k9(n){if($e.includes(n.type))return n;if([...Tn,r.VariableDeclaration].includes(n.type)){const e=n.parent;return $e.includes(e.type)?e:null}return null}function vd(n,e){if(!n||!e)throw new Error("Both entities must be defined to find a common ancestor");if(n===e)return n;const t=n.parent;if(t){if(t===e)return e;if(t.type===r.Project)return null}else return null;const i=e.parent;if(i){if(i===n)return n;if(i.type===r.Project)return null}else return null;return vd(t,i)}function He(n){if(bo.includes(n.type)){if(n.type===r.FunctionDeclaration){const e=n.parent;if(e.type===r.CustomEntity)return e}return n}else{const e=n.parent;return e?He(e):null}}function q9(n){return n.type===r.VariableDeclaration?[n]:_e.includes(n.type)?[...n.inputs,...n.outputs||[]]:n.type===r.ReturnStatement?n.outputs:Dr.includes(n.type)||n.type===r.FunctionDeclaration?n.inputs:[]}function J9(n){const e=Vn(n),t=[],i=[];Vd.includes(n.type)&&t.push(...Id(n));const a=e.filter(s=>{const o=t.includes(s);return o?!1:Tn.includes(s.type)&&!o?(i.push(s),!1):!0});return t.sort((s,o)=>ua(o,s)?-1:0),i.sort((s,o)=>ua(o,s)?-1:0),[...t,...i,...a]}function Ev(n){return[...n].sort((e,t)=>ua(t,e)?-1:0)}function W9(n){const e=Ev(n),t=[];return e.forEach(i=>{const a=t[t.length-1];if(a){const s=a[a.length-1];ua(i,s)?t.push([i]):a.push(i)}else t.push([i])}),t}function _t(n){const e=n.map(t=>He(t));return O(e)}function Id(n){return _e.includes(n.type)?[..._t(n.successCalls),..._t(n.errorCalls)]:$e.includes(n.type)?_t(n.calls):[]}function H9(n,e){return Id(n).includes(e)}function Pd(n){return n.writesValues||[]}function Y9(n,e){return Pd(n).includes(e)}function Rv(n){var e;return Fe.includes((e=n==null?void 0:n.readsValue)==null?void 0:e.type)?n.readsValue:null}function z9(n){return n.writesValues}function bv(n=[]){return n.map(Rv).filter(e=>!!e)}function uo(n=[]){return n.map(e=>e.writesValues).flat().filter(e=>Fe.includes(e.type))}function gv(n=[]){return n.map(e=>e.readsValue).filter(e=>!!e&&Fe.includes(e.type))}function vv(n){return Fe.includes(n.type)?n:null}function Iv(n){return n.writesValues.map(vv).filter(e=>!!e)}function Pv(n=[]){return n.reduce((e,t)=>t.type===r.OutputMap?[...e,...Iv(t)]:e,[])}function Ie(n){if(n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&console.log("Flattening calls for element"),_e.includes(n.type)){n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&console.log("Is a pass through callable type");const e=_t(n.successCalls),t=_t(n.errorCalls);n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&(console.log("Success calls",e),console.log("Error calls",t));const i=br(e),a=br(t);return n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&(console.log("Flat success calls",i),console.log("Flat error calls",a)),[...i,...a]}return $e.includes(n.type)?br(_t(n.calls)):[]}function Dv(n,e=new Set){return n.writesValues.filter(i=>Fe.includes(i.type)&&!e.has(i.id)).reduce((i,a)=>e.has(a.id)?i:[...i,...Z(a,e)],[])}function Av(n,e=new Set){var i;return(((i=n.readsValue)==null?void 0:i.writesValues)||[]).filter(a=>Fe.includes(a.type)&&!e.has(a.id)).reduce((a,s)=>e.has(s.id)?a:[...a,...Z(s,e)],[])}function Z(n,e=new Set){if(e.has(n.id))return[];if(n.type===r.ReturnStatement)return gv(n.outputs).reduce((i,a)=>[...i,...Z(a,e)],[]);if(n.type===r.FunctionCall||n.type===r.Operation||n.type===r.Condition)return[...Ie(n).reduce((s,o)=>{const d=He(o);return[...s,...Z(d||o,e)]},[]),...bv(n.inputs),...Pv(n.outputs)].reduce((s,o)=>[...s,...Z(o,e)],[]);if(Dr.includes(n.type)){const t=uo(n.inputs),a=Ie(n).reduce((s,o)=>{const d=He(o);return[...s,...Z(d||o,e)]},[]);return t.push(...a),t.reduce((s,o)=>[...s,...Z(o,e)],[])}if(n.type===r.FunctionDeclaration){const t=[...uo(n.inputs)],a=Ie(n).reduce((s,o)=>{const d=He(o);return[...s,...Z(d||o,e)]},[]);return t.push(...a),t.reduce((s,o)=>[...s,...Z(o)],[])}if(Fe.includes(n.type)){e.add(n.id);const i=Ie(n).reduce((a,s)=>{const o=He(s);return[...a,...Z(o||s,e)]},[]);return[n,...i,...Av(n,e),...Dv(n,e)]}return[]}function vt(n,e=new Set){return e.has(n.id)?[]:(e.add(n.id),[...Vn(n).reduce((a,s)=>[...a,s,...vt(s,e)],[])])}function br(n){return n.reduce((e,t)=>t.type===r.ReturnStatement||t.type===r.ContinueStatement||t.type===r.BreakStatement?[...e,t]:[...e,t,...Ie(t)],[])}function Sv(n){const e=n.entities||[],t=[...e,...n.functions||[],...n.events||[],...n.projects||[]],i=e.reduce((p,h)=>[...p,...h.properties],[]),a=e.reduce((p,h)=>[...p,...h.methods],[]),s=a.reduce((p,h)=>[...p,...uo(h.inputs),...br(_t(h.calls)),...h.returnStatements],[]),o=n.functions.reduce((p,h)=>[...p,...br(_t(h.calls)),...h.returnStatements],[]),d=n.events.reduce((p,h)=>[...p,...br(_t(h.calls)),...h.returnStatements],[]);return[...t,...i,...a,...s,...o,...d]}function Ov(n,e){return e.filter(i=>{if(!i)return!1;switch(i.type){case r.FunctionCall:return i.inputs.find(a=>a.id===n.id)!==void 0||i.outputs.find(a=>a.id===n.id)!==void 0;case r.Condition:return i.successCalls.find(a=>a.id===n.id)!==void 0||i.errorCalls.find(a=>a.id===n.id)!==void 0||i.inputs.find(a=>a.id===n.id)!==void 0;case r.Operation:return i.outputs.find(a=>a.id===n.id)!==void 0;case r.VariableDeclaration:return _e.includes(n.type)?Cv(n).find(s=>{var o;return((o=s.readsValue)==null?void 0:o.id)===i.id})!==void 0:!1;case r.CustomEntity:return i.properties.find(a=>a.id===n.id)!==void 0||i.methods.find(a=>a.id===n.id)!==void 0;case r.FunctionDeclaration:return i.inputs.find(a=>a.id===n.id)!==void 0||(i.returnStatements.map(a=>a.outputs).flat()||[]).find(a=>a.id===n.id)!==void 0;default:return!1}})}function Z9(n){const e=Sv(n.project);return Ov(n,e)}function gr(n){const e=[];if(Tn.includes(n.type)){n.calledBy.forEach(a=>{const s=He(a);s&&e.push(s)});const i=[...n.inputs||[],...n.outputs||[]].map(a=>Sd(a)).filter(a=>a!==null);e.push(...O(i))}if(Fe.includes(n.type)){const t=Sd(n);t&&e.push(t)}return O(e)}function Dd(n){return n.type===r.FunctionCall||n.type===r.InternalCall?n.declaration.inputs:[r.Operation,r.Condition,r.Loop].includes(n.type)?n.declaration.fixedArguments:n.type===r.FunctionDeclaration||Dr.includes(n.type)?n.inputs:n.type===r.Search?n.inputsDeclarations:[]}function X9(n,e){return e.type===r.Condition?e.inputs.find(t=>t.declaration.id===n.id):e.type===r.FunctionCall||e.type===r.Operation?e.inputs.find(t=>t.declaration.id===n.id):null}function Cv(n){return _e.includes(n.type)?n.inputs:[]}function Ad(n){var e;return n.type===r.FunctionCall?((e=n.declaration.returnStatements[0])==null?void 0:e.outputs)||[]:[r.Operation,r.Condition,r.Loop].includes(n.type)?n.declaration.fixedReturns:n.type===r.Search?n.outputsDeclarations:Oe.includes(n.type)?n.outputs:[]}function Q9(n,e){return e.type===r.Condition?null:e.type===r.FunctionCall||e.type===r.Operation?e.outputs.find(t=>t.declaration.id===n.id):null}function K9(n){return n.type===r.Condition?[]:_e.includes(n.type)?n.outputs:[]}function Sd(n){const e=n.readsValue;return e?He(e):null}function Bv(n){const e=n.internalCalls||[];return O(_t(O(e.flatMap(t=>[...t.successCalls,...t.errorCalls]))))}function di(n){const e=Pd(n),t=[];return e.forEach(i=>{if(Fe.includes(i.type))t.push(i);else if(i.type===r.InputMap){const a=i.parent;if(a.type===r.InputMap){const s=a.parent;t.push(s)}else t.push(a)}else[r.ActionDescriptor].includes(i.parent.type)||t.push(i.parent)}),t}function O(n){const e=new Set;return n.filter(t=>!t||e.has(t.id)?!1:(e.add(t.id),!0))}function Vn(n,e=!1){const t=[];if(n.type===r.Project&&t.push(...(n==null?void 0:n.entities)||[],...(n==null?void 0:n.functions)||[],...(n==null?void 0:n.variableDeclarations)||[],...(n==null?void 0:n.variableInstances)||[],...(n==null?void 0:n.searches)||[],...(n==null?void 0:n.loops)||[],...(n==null?void 0:n.operations)||[],...(n==null?void 0:n.conditions)||[],...(n==null?void 0:n.functionCalls)||[],...(n==null?void 0:n.events)||[],...(n==null?void 0:n.projects)||[]),st.includes(n.type)&&t.push(...(n==null?void 0:n.detachedChildren)||[]),n.type===r.CustomEntity){const i=[...n.suggestedMethods,...n.methods].flatMap(a=>a.collapsed&&e?[]:Vn(a));t.push(...i)}if(n.type===r.Condition){const i=n.successCalls.map(s=>He(s)),a=n.errorCalls.map(s=>He(s));t.push(...i,...a)}if(Dr.includes(n.type)){if(n.collapsed&&e)return[];const i=n.inputs.map(s=>di(s)).flat(),a=n.calls.map(s=>He(s));t.push(...O(i),...a)}if(_e.includes(n.type)&&n.type!==r.Condition){const i=n==null?void 0:n.outputs.map(o=>di(o)).flat(),a=n.successCalls.map(o=>He(o)),s=n.errorCalls.map(o=>He(o));t.push(...O(i),...a,...s)}if(Fe.includes(n.type)){const i=di(n),a=Bv(n);t.push(...i,...a)}if(n.type===r.Loop){const i=n.outputs.map(o=>di(o)).flat();if(n.body){const o=Vn(n.body,e);t.push(...o)}const a=n.errorCalls.map(o=>He(o)),s=n.successCalls.map(o=>He(o));t.push(...O(i),...s,...a)}if(n.type===r.FunctionDeclaration){if(n.collapsed&&e)return[];const i=n.inputs.map(s=>di(s)).flat(),a=n.calls.map(s=>He(s));t.push(...O(i),...a)}return O(t)}function wv(n,e=!1){const t=Vn(n,e),i=[...t,...t.reduce((a,s)=>[...a,...wv(s,e)],[])];return O(i)}function _v(n){const e=gr(n),t=[...e,...e.reduce((i,a)=>[...i,..._v(a)],[])];return O(t)}function po(n){return n.implements.reduce((e,t)=>t.type===r.CustomEntity?[...e,r.CustomEntity,...po(t),...yo(t)]:[...e,t.name],[])}function yo(n){return n.extends.reduce((e,t)=>t.type===r.CustomEntity?[...e,r.CustomEntity,...yo(t),...po(t)]:[...e,t.name],[])}function Od(n){return n.extends.reduce((e,t)=>t.type===r.CustomEntity?[...e,t,...Od(t),...Cd(t)]:[...e,t],[])}function Cd(n){return n.implements.reduce((e,t)=>t.type===r.CustomEntity?[...e,t,...Cd(t),...Od(t)]:[...e,t],[])}function Mv(n){return[...yo(n),...po(n)].filter((t,i,a)=>a.indexOf(t)===i)}function Nv(n){return n.implements.length===0&&n.extends.length===0?null:n.implements.find(i=>i.type===r.BuiltInBaseEntity&&i.name===_.PERSISTED_ENTITY)?n:[...n.implements,...n.extends].reduce((i,a)=>{if(a.type===r.CustomEntity){const s=Nv(a);if(s)return s}return i},null)}function e5(n){const e=n.extends.find(t=>t.type===r.BuiltInBaseEntity);return e&&e.type===r.BuiltInBaseEntity?e:null}function t5(n){const e=n.implements.find(t=>t.type===r.BuiltInBaseEntity);return e&&e.type===r.BuiltInBaseEntity?e:null}function $v(n){const e=n.extends.find(t=>t.type===r.CustomEntity);return e&&e.type===r.CustomEntity?e:null}function Ln(n){const e=[...n.implements,...n.extends].reduce((t,i)=>i.type===r.BuiltInBaseEntity?[...t,i]:i.type===r.CustomEntity?[...t,...Ln(i)]:t,[]);return O(e)}function Bd(n){return n.type===r.PrimitiveEntity?!0:n.type===r.BuiltInBaseEntity?n.interactive:!Ln(n).find(i=>!i.interactive)}function n5(n){return n.parent===n.project&&n.project.variableDeclarations.includes(n)}function wd(n){return n.parent!==n.project?!1:r.VariableDeclaration===n.type?n.project.variableDeclarations.includes(n):r.VariableInstance===n.type?n.project.variableInstances.includes(n):r.FunctionCall===n.type?n.project.functionCalls.includes(n):r.Condition===n.type?n.project.conditions.includes(n):r.Operation===n.type?n.project.operations.includes(n):r.Loop===n.type?n.project.loops.includes(n):r.Search===n.type?n.project.searches.includes(n):!1}function Vv(n){if([...$e,r.CustomEntity,r.InstalledProject,r.Project].includes(n.type)||wd(n))return!1;const e=gr(n);return e.length===0?!0:e.some(t=>Vv(t))}function _d(n){return[...$e,r.CustomEntity,r.InstalledProject,r.Project].includes(n.type)||wd(n)?!1:gr(n).length===0}function Lv(n,e=0){if(_d(n)){const t=gr(n);return t.length===0?n:t.map(a=>Lv(a,e+1)).reduce((a,s)=>a?s&&s.x<a.x?s:a:s,null)}return null}function Gv(n){const e=[];if(_d(n))e.push(n);else return[];return gr(n).forEach(i=>{e.push(...Gv(i))}),e}function Fv(n){return n.type===r.FunctionDeclaration&&n.parent!==n.project&&!![r.CustomEntity,r.Loop,r.InstalledProject].includes(n.parent.type)}function Uv(n,e){const t=new Map;return n.forEach(i=>{t.set(i.id,i)}),e.forEach(i=>{t.set(i.id,i)}),Array.from(t.values())}function ho(n){switch(n){case r.CustomEntity:return Ir;case r.FunctionDeclaration:return lr;case r.VariableDeclaration:return pr;case r.VariableInstance:return yr;case r.FunctionCall:return Rr;case r.Operation:return cr;case r.Condition:return ur;case r.ReturnStatement:return Tr;case r.Loop:return dr;case r.Search:return hr;case r.InputMap:return hn;case r.OutputMap:return fn;case r.ArgumentDeclaration:return mr;case r.ReturnDeclaration:return Ot;case r.Property:return or;case r.InstalledProject:return fr;case r.Project:return $;case r.BuiltInBaseEntity:return Ut;default:return null}}function ht(n,e){if(st.includes(n.type))return n;if(Ar.includes(n.type))return null;const t=n.parent;if(!t)return null;if(t.type===r.GenericReference){const i=D(t);if(!i)return null;const a=e.get(i);return a?ht(a,e):null}else return t===e?e:ht(t,e)}function Md(n,e){if(Ar.includes(n.type)||e.getAllBuiltInIds().includes(n.id))return null;const i=Mt(n.parent,e);return i?i===e?st.includes(n.type)?n:null:i.type===r.CustomEntity?n:Md(i,e):null}function fo(n,e,t){if(n===e||e===t||n===t)return!1;const i=ht(e.parent,t);return i===n?!0:fo(i,e,t)}var mo=(n=>(n.SameBothLocal="same-both-local",n.AInB="a-in-b",n.BInA="b-in-a",n.ParallelInCommonParent="parallel-in-common-parent",n.ParallelInProject="parallel-in-project",n.AIsGlobalBIsNot="a-is-global-b-is-not",n.BIsGlobalAIsNot="b-is-global-a-is-not",n.SameBothGlobal="same-both-global",n))(mo||{});function pa(n,e,t){const i=ht(n,t),a=ht(e,t);if(!i)throw new Error("Could not find scope owner for the entity: "+n.id);if(!a)throw new Error("Could not find scope owner for the entity: "+e.id);if(i===a&&i.type!==r.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:i};if(i===a&&i.type===r.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:i};if(i.type===r.Project&&a.type!==r.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:i};if(i.type!==r.Project&&a.type===r.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:a};if(fo(i,a,t))return{compatible:!0,type:"b-in-a",commonAncestorScope:i};if(fo(a,i,t))return{compatible:!0,type:"a-in-b",commonAncestorScope:a};const d=vd(i,a);return d===t?{compatible:!1,type:"parallel-in-project",commonAncestorScope:d}:d?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:ht(d,t)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:t}}function xv(n,e,t){const i=pa(n,e,t);if(!i.compatible||i.type!=="same-both-local")return null;if(n===e)return n;let a=ht(n.parent,t);if(a){if(a===e)return e;if(a.type===r.Project)return n}else return n;for(;a;){if(a){if(a===e)return e;if(a.type===r.Project)return n}else return n;a=ht(a.parent,t)}let s=ht(e.parent,t);if(s){if(s===n)return n;if(s.type===r.Project)return e}else return e;for(;s;){if(s){if(s===n)return n;if(s.type===r.Project)return e}else return e;s=ht(s.parent,t)}return null}function jv(n){return n.length===0?null:n.length===1?n[0]:n.reduce((t,i)=>{const a=xv(t,i,i.project);return!a||a===i?t:i},n[0])}function Mt(n,e){let t;return typeof n=="string"?t=n:n.type===r.GenericReference?t=D(n):t=n.id,t===e.id?e:e.get(t)}function vr(n){if(Ar.includes(n.type))return n;if(n.type===r.Project)return null;if(n.project.getAllBuiltInIds().includes(n.id))return n;const t=n.parent;return!t||t.type===r.Project?null:vr(t)}function ya(n,e){var t;if(n.readsValue){const i=Mt(n.readsValue,e.project);e.setValueWriter(i),i.addValueReader(e)}else n.readsValue===null&&((t=e.readsValue)==null||t.removeValueReader(e),e.readsValue=null);return e}function ha(n){const e=[];function t(s,o){return e.some(d=>d.blockedByCaller===s&&d.blockedByCalling===o)}function i(s,o){t(s,o)||e.push({blockedByCaller:s,blockedByCalling:o})}const a=Md(n,n.project);return n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&console.log("Validating reachability for entity: ",n),n.calledBySuccess.forEach(s=>{[...s.successCalls||[]].forEach(p=>{if(Oe.includes(p.type)&&p!==n){n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&console.log("Termination found: ",p);const h=Ie(n);n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&console.log("All following calls: ",h);const T=h.find(m=>m===p);T||(n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&console.log("Found termination in calls: ",T),i(s,p)),n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&console.log("Found termination in calls: ",T)}});let d;if(_e.includes(s.type)&&(d=s),d){const p=ha(d);n.id==="e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"&&console.log("Result of caller reachability: ",p),p.reachable||(console.log("Parent caller not reachable, adding blocks: ",p.blocks),Ie(n).find(m=>m===s)||p.blocks.forEach(m=>{i(s,m.blockedByCalling)}))}}),n.calledByError.forEach(s=>{[...s.errorCalls||[]].forEach(p=>{Oe.includes(p.type)&&p!==n&&(Ie(n).find(m=>m===p)||i(s,p))});let d;if(_e.includes(s.type)&&(d=s),d){const p=ha(d);p.reachable||Ie(n).find(m=>m===s)||p.blocks.forEach(m=>{i(s,m.blockedByCalling)})}}),n.calledByEntry.forEach(s=>{if([...s.calls||[]].forEach(p=>{Oe.includes(p.type)&&p!==n&&(Ie(n).find(m=>m===p)||i(s,p))}),s===a)return;let d;if(s.type===r.FunctionDeclaration){const p=He(s);if(p.type===r.CustomEntity)return;p.type===r.Loop&&(d=p)}if(d){const p=ha(d);p.reachable||p.blocks.forEach(h=>{i(s,h.blockedByCalling)})}}),{reachable:e.length===0,entryPoint:a,blocks:e}}function r5(n){return bo.includes(n.type)?n.type===r.FunctionDeclaration?!Fv(n):!0:!1}function i5(n){if(r.ActionDescriptor===n.type){if(n.project.operationDeclarations.find(s=>s.id===n.id))return r.Operation;if(n.project.globalEventActionDescriptors.find(s=>s.id===n.id))return r.GlobalEvent;if(n.project.loopDeclarations.find(s=>s.id===n.id))return r.Loop;if(n.project.conditionDeclarations.find(s=>s.id===n.id))return r.Condition}return n.type}function a5(n,e){const t=[];if(n.parent)if(n.id===n.parent)t.push(new E({id:`${n.id}--${n.parent}--${y.SelfReference}`,code:y.SelfReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.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 i=e.get(n.parent);i?[r.Project,r.DataType].includes(i.type)||t.push(new E({id:`${n.id}--${n.parent}--${y.InvalidParentReference}`,code:y.InvalidParentReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):t.push(new E({id:`${n.id}--${n.parent}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return n.implements&&Array.isArray(n.implements)?n.implements.forEach(i=>{if(n.id===i){t.push(new E({id:`${n.id}--${i}--${y.SelfReference}`,code:y.SelfReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.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 a=e.get(i);a?[r.CustomEntity,r.BuiltInBaseEntity].includes(a.type)?a.abstract||t.push(new E({id:`${n.id}--${i}--${y.InvalidImplementsReference}`,code:y.InvalidImplementsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.InvalidImplementsReference}`,code:y.InvalidImplementsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an entity of type 'custom-entity' or 'built-in-base-entity'.`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${i}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):t.push(new E({id:`${n.id}--${g.InvalidObjectStructure}`,code:g.InvalidObjectStructure,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' property that isn't an array.`,issue:null})),n.extends&&Array.isArray(n.extends)&&n.extends.forEach(i=>{const a=e.get(i);a?[r.CustomEntity,r.BuiltInBaseEntity].includes(a.type)?a.abstract&&t.push(new E({id:`${n.id}--${i}--${y.InvalidExtendsReference}`,code:y.InvalidExtendsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.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})):t.push(new E({id:`${n.id}--${i}--${y.InvalidExtendsReference}`,code:y.InvalidExtendsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'extends' reference that isn't pointing to an entity of type 'custom-entity' or 'built-in-base-entity'.`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${i}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),t}const pe=class pe{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"x");l(this,"y");l(this,"static");l(this,"abstract");l(this,"type",r.CustomEntity);l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"implements",[]);l(this,"project");l(this,"errors",[]);l(this,"parent");l(this,"initialized",!1);l(this,"suggestedProperties",[]);l(this,"suggestedMethods",[]);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.x=e.x,this.y=e.y,this.static=e.static,this.abstract=e.abstract}static fromGenerationTarget(e,t){let i=t;if(e.parent){const p=D(e.parent);i=t.get(p)}const a=[];e.implements&&e.implements.forEach(p=>{a.push(t.get(p)||t.getBuiltIn(p))});const s=[];e.extends&&e.extends.forEach(p=>{s.push(t.get(p)||t.getBuiltIn(p))});const o={id:e.id,version:1,name:e.name,type:r.CustomEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:s,implements:a,x:0,y:0,parent:i},d=R(o,t);return d.setParent(i),d.initChildren(),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=a5(i,t),o=Ks(i,t);a.push(...s,...o,...De(i));const d=i.parent?t.get(i.parent):null;if(d&&d.type===r.DataType){const p=d;p.entity&&a.push(new E({id:`${e.id}--${y.NewEntityWouldOverriteExisting}`,code:y.NewEntityWouldOverriteExisting,severity:f.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${p.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
|
|
370
|
+
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}}addSelfToProject(){var e;return this.parent===this.project&&this.project.addFunctionCall(this),(e=this.process)==null||e.writesValues.forEach(t=>{t.setValueWriter(this.process)}),this.successCalls.forEach(t=>{t.addSuccessCaller(this)}),this.errorCalls.forEach(t=>{t.addErrorCaller(this)}),this.calledBySuccess.forEach(t=>{t.addSuccessCall(this)}),this.calledByError.forEach(t=>{t.addErrorCall(this)}),this.calledByEntry.forEach(t=>{t.addCall(this)}),this}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.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(i=>i.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){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.push(e),this}addSuccessCall(e){return 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 i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.declaration.type===r.FunctionDeclaration){const e=R(this.initialData.declaration,this.project);this.declaration=e}else{const e=D(this.initialData.declaration),t=this.project.get(e);this.declaration=t}return this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return t.addSuccessCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initOutputs(),this.initialData.process&&(this.process=R(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this}initOutputs(){const e=[];this.outputs=this.initialData.outputs.map(s=>{const o=R(s,this.project);return e.push(o.index),o.setParent(this),o.initChildren(),o});const i=Ad(this).filter(s=>!this.outputs.find(o=>o.declaration.id===s.id));i.sort((s,o)=>s.index-o.index);const a=i.map((s,o)=>{const d=e.includes(s.index)?this.outputs.length-1+o:s.index,p={id:$.UUID.uuid(),type:r.OutputMap,version:1,declaration:s,index:d,parent:this,writesValues:[]},h=R(p,this.project);return h.setParent(this),h.initChildren(),h});return this.outputs.push(...a),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){var s;const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.process){const{affected:o,removed:d}=(s=this.process)==null?void 0:s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}if(this.inputs.forEach(o=>{const{affected:d,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...p)}),this.outputs.forEach(o=>{const{affected:d,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...p)}),this.error){const{affected:o,removed:d}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}return this.successCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),e||this.calledBy.forEach(o=>{i.push(o),o.removeCall(this)}),{affected:O(i),removed:O(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.process){const{affected:i}=this.process.restore({seenEntities:e});t.push(...i)}return this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:O(t),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e))])}toJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(i=>i.toJSON()),errorCalls:this.errorCalls.map(i=>i.toJSON()),calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),process:(e=this.process)==null?void 0:e.toJSON(),declaration:this.declaration.toJSON(),inputs:this.inputs.map(i=>i.toJSON()),outputs:this.outputs.map(i=>i.toJSON()),parent:this.parent.toReference(),error:(t=this.error)==null?void 0:t.toJSON()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference():null,inputs:this.inputs.map(e=>e.toReference()),outputs:this.outputs.map(e=>e.toReference()),declaration:this.declaration.toReference(),successCalls:this.successCalls.map(e=>e.toReference()),errorCalls:this.errorCalls.map(e=>e.toReference()),calledBySuccess:this.calledBySuccess.map(e=>e.toReference()),calledByError:this.calledByError.map(e=>e.toReference()),calledByEntry:this.calledByEntry.map(e=>e.toReference()),error:this.error?this.error.toReference():null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.process?this.process.toFlatJSON(e):[],...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,version:this.version,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(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=x9(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){return new ge(this.toJSON(),this.project)}};l(ge,"MUTABLE_BASE_PROPERTIES",[]),l(ge,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),l(ge,"BASE_PROPERTIES",[...ge.MUTABLE_BASE_PROPERTIES,...ge.INMUTABLE_BASE_PROPERTIES]),l(ge,"MUTABLE_META_PROPERTIES",["x","y"]),l(ge,"INMUTABLE_META_PROPERTIES",[...ge.INMUTABLE_BASE_PROPERTIES]),l(ge,"META_PROPERTIES",[...ge.MUTABLE_META_PROPERTIES,...ge.INMUTABLE_META_PROPERTIES]),l(ge,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),l(ge,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),l(ge,"UPSTREAM_PROPERTIES",[...ge.MUTABLE_UPSTREAM_PROPERTIES,...ge.INMUTABLE_UPSTREAM_PROPERTIES]),l(ge,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),l(ge,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ge,"DOWNSTREAM_PROPERTIES",[...ge.MUTABLE_DOWNSTREAM_PROPERTIES,...ge.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(ge,"PROPERTIES",[...ge.META_PROPERTIES,...ge.UPSTREAM_PROPERTIES,...ge.DOWNSTREAM_PROPERTIES]);let Rr=ge;function fv(n){var e,t,i;switch(n.id){case Ve["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const a=n.project.entities.filter(T=>!!T.implements.find(m=>m.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(a.find(T=>!!T.properties.find(m=>{var b;return m.implements&&m.implements.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default&&((b=m.getDefaultValue())==null?void 0:b.value)===!0}))){const m=a[0].properties.find(I=>I.implements&&I.implements.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default),b=(e=m==null?void 0:m.dataType)==null?void 0:e.defaultValue;if(b)b.value=!0;else if(m!=null&&m.dataType){const I=(t=m==null?void 0:m.dataType)==null?void 0:t.id.split("-id")[0],B=R({id:I+"-default-value-id",version:1,type:r.PrimitiveValue,name:v.EntityTemplate,autogeneration:null,value:!0,valueAsType:null,parent:m==null?void 0:m.dataType.toReference()},n.project);return B.setParent(m==null?void 0:m.dataType),B.initChildren(),B.addSelfToProject(),{newEntities:[B]}}return{newEntities:[]}}const o=n.project.get(Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),d=lo(o,"Main database");if(d.errors.length>0)return{newEntities:[]};const p=d.implemented.properties.find(T=>T.implements&&T.implements.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default),h=(i=p==null?void 0:p.dataType)==null?void 0:i.defaultValue;if(h)h.value=!0;else if(p!=null&&p.dataType){const T=p==null?void 0:p.dataType.id.split("-id")[0],m=R({id:T+"-default-value-id",version:1,type:r.PrimitiveValue,name:v.EntityTemplate,autogeneration:null,value:!0,valueAsType:null,parent:p==null?void 0:p.dataType.toReference()},n.project);m.setParent(p==null?void 0:p.dataType),m.initChildren(),m.addSelfToProject()}return{newEntities:[d.implemented]}}}return{newEntities:[]}}function mv(n){return n.implements.filter(t=>t.type===r.BuiltInBaseEntity).map(t=>{var i;switch(t.id){case Ve["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const s=n.project.entities.filter(p=>p.implements.find(h=>h.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(p=>!!p.properties.find(h=>{var T;return h.implements&&h.implements.id===Ve["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default&&((T=h.getDefaultValue())==null?void 0:T.value)===!0}));if(!s)return{newEntities:[]};const o=n.properties.find(p=>p.implements&&p.implements.id===Ve["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database),d=(i=o==null?void 0:o.dataType)==null?void 0:i.defaultValue;if(o&&(o!=null&&o.dataType)&&!d){const p=o==null?void 0:o.dataType.id.split("-id")[0],h=R({id:p+"-default-value-id",version:1,type:r.PrimitiveValue,name:v.EntityTemplate,autogeneration:null,value:null,valueAsType:s,parent:o==null?void 0:o.dataType.toReference()},n.project);return h.setParent(o==null?void 0:o.dataType),h.initChildren(),h.addSelfToProject(),{newEntities:[h]}}return{newEntities:[]}}}}),{newEntities:[]}}function lo(n,e,t){const i=t||Xt(e,r.CustomEntity,n.project),a=i.split("-id"),s=a[a.length-1||0]||i,o={id:i,version:1,name:e,type:r.CustomEntity,description:null,static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[n],x:0,y:0,parent:n.project},d=Ks(o,n.project);if(d.length>0)return{errors:d,implemented:null,entitiesChanges:{new:[],updated:[],deleted:[]}};const p=fv(n),h=R(o,n.project);h.setParent(n.project),h.initChildren();const T=n.properties.map(I=>{const B=s+"-"+Xt(A(I,n.project),r.Property,n.project),G=I.clone(h,B);return G.abstract=!1,G.implements=I,G.setParent(h),h.addProperty(G),G}),m=n.abstractMethods.map(I=>{const B=s+Xt(I.name,r.FunctionDeclaration,n.project),G=I.implementAsFunctionDeclaration(B),q={id:B+"-parent-ref-id",type:r.GenericReference,entityId:i,entityType:r.CustomEntity},xt={...G,implements:I,parent:q},Le=R(xt,n.project);return h.addMethod(Le),Le.setParent(h),Le.initChildren(),Le.implements=I,Le});o.properties=T,o.methods=m;const b=mv(h);return{implemented:h,errors:[],entitiesChanges:{new:[h,...p.newEntities,...b.newEntities],updated:[h],deleted:[]}}}function co(n,e){const t=gr(n);if(t.length===0)return{list:[],last:null};let i=null;return{list:t.flatMap(s=>{if(s===e)return i=s,[s];const o=co(s,e);return o.last&&(i=o.last),[s,...o.list]}),last:i}}function Tv(n,e,t=new Set){const i=Vn(n),a=Vn(e),s=i.filter(p=>!a.includes(p)),o=i.filter(p=>a.includes(p)),d=s.reduce((p,h)=>t.has(h.id)?p:(t.add(h.id),O([...p,...Tv(h,e,t)])),[]);return O([...o,...d])}function ua(n,e){const t=co(n,e);return t.last===e&&t.list.length>0&&t.list[0]!==e}function j9(n,e){return!!co(n,e).last}function k9(n){if($e.includes(n.type))return n;if([...Tn,r.VariableDeclaration].includes(n.type)){const e=n.parent;return $e.includes(e.type)?e:null}return null}function vd(n,e){if(!n||!e)throw new Error("Both entities must be defined to find a common ancestor");if(n===e)return n;const t=n.parent;if(t){if(t===e)return e;if(t.type===r.Project)return null}else return null;const i=e.parent;if(i){if(i===n)return n;if(i.type===r.Project)return null}else return null;return vd(t,i)}function He(n){if(bo.includes(n.type)){if(n.type===r.FunctionDeclaration){const e=n.parent;if(e.type===r.CustomEntity)return e}return n}else{const e=n.parent;return e?He(e):null}}function q9(n){return n.type===r.VariableDeclaration?[n]:_e.includes(n.type)?[...n.inputs,...n.outputs||[]]:n.type===r.ReturnStatement?n.outputs:Dr.includes(n.type)||n.type===r.FunctionDeclaration?n.inputs:[]}function J9(n){const e=Vn(n),t=[],i=[];Vd.includes(n.type)&&t.push(...Id(n));const a=e.filter(s=>{const o=t.includes(s);return o?!1:Tn.includes(s.type)&&!o?(i.push(s),!1):!0});return t.sort((s,o)=>ua(o,s)?-1:0),i.sort((s,o)=>ua(o,s)?-1:0),[...t,...i,...a]}function Ev(n){return[...n].sort((e,t)=>ua(t,e)?-1:0)}function W9(n){const e=Ev(n),t=[];return e.forEach(i=>{const a=t[t.length-1];if(a){const s=a[a.length-1];ua(i,s)?t.push([i]):a.push(i)}else t.push([i])}),t}function Mt(n){const e=n.map(t=>He(t));return O(e)}function Id(n){return _e.includes(n.type)?[...Mt(n.successCalls),...Mt(n.errorCalls)]:$e.includes(n.type)?Mt(n.calls):[]}function H9(n,e){return Id(n).includes(e)}function Pd(n){return n.writesValues||[]}function Y9(n,e){return Pd(n).includes(e)}function Rv(n){var e;return Fe.includes((e=n==null?void 0:n.readsValue)==null?void 0:e.type)?n.readsValue:null}function z9(n){return n.writesValues}function bv(n=[]){return n.map(Rv).filter(e=>!!e)}function uo(n=[]){return n.map(e=>e.writesValues).flat().filter(e=>Fe.includes(e.type))}function gv(n=[]){return n.map(e=>e.readsValue).filter(e=>!!e&&Fe.includes(e.type))}function vv(n){return Fe.includes(n.type)?n:null}function Iv(n){return n.writesValues.map(vv).filter(e=>!!e)}function Pv(n=[]){return n.reduce((e,t)=>t.type===r.OutputMap?[...e,...Iv(t)]:e,[])}function Ie(n){return _e.includes(n.type)?[...br(Mt(n.successCalls)),...br(Mt(n.errorCalls))]:$e.includes(n.type)?br(Mt(n.calls)):[]}function Dv(n,e=new Set){return n.writesValues.filter(i=>Fe.includes(i.type)&&!e.has(i.id)).reduce((i,a)=>e.has(a.id)?i:[...i,...Z(a,e)],[])}function Av(n,e=new Set){var i;return(((i=n.readsValue)==null?void 0:i.writesValues)||[]).filter(a=>Fe.includes(a.type)&&!e.has(a.id)).reduce((a,s)=>e.has(s.id)?a:[...a,...Z(s,e)],[])}function Z(n,e=new Set){if(e.has(n.id))return[];if(n.type===r.ReturnStatement)return gv(n.outputs).reduce((i,a)=>[...i,...Z(a,e)],[]);if(n.type===r.FunctionCall||n.type===r.Operation||n.type===r.Condition)return[...Ie(n).reduce((s,o)=>{const d=He(o);return[...s,...Z(d||o,e)]},[]),...bv(n.inputs),...Pv(n.outputs)].reduce((s,o)=>[...s,...Z(o,e)],[]);if(Dr.includes(n.type)){const t=uo(n.inputs),a=Ie(n).reduce((s,o)=>{const d=He(o);return[...s,...Z(d||o,e)]},[]);return t.push(...a),t.reduce((s,o)=>[...s,...Z(o,e)],[])}if(n.type===r.FunctionDeclaration){const t=[...uo(n.inputs)],a=Ie(n).reduce((s,o)=>{const d=He(o);return[...s,...Z(d||o,e)]},[]);return t.push(...a),t.reduce((s,o)=>[...s,...Z(o)],[])}if(Fe.includes(n.type)){e.add(n.id);const i=Ie(n).reduce((a,s)=>{const o=He(s);return[...a,...Z(o||s,e)]},[]);return[n,...i,...Av(n,e),...Dv(n,e)]}return[]}function vt(n,e=new Set){return e.has(n.id)?[]:(e.add(n.id),[...Vn(n).reduce((a,s)=>[...a,s,...vt(s,e)],[])])}function br(n){return n.reduce((e,t)=>t.type===r.ReturnStatement||t.type===r.ContinueStatement||t.type===r.BreakStatement?[...e,t]:[...e,t,...Ie(t)],[])}function Sv(n){const e=n.entities||[],t=[...e,...n.functions||[],...n.events||[],...n.projects||[]],i=e.reduce((p,h)=>[...p,...h.properties],[]),a=e.reduce((p,h)=>[...p,...h.methods],[]),s=a.reduce((p,h)=>[...p,...uo(h.inputs),...br(Mt(h.calls)),...h.returnStatements],[]),o=n.functions.reduce((p,h)=>[...p,...br(Mt(h.calls)),...h.returnStatements],[]),d=n.events.reduce((p,h)=>[...p,...br(Mt(h.calls)),...h.returnStatements],[]);return[...t,...i,...a,...s,...o,...d]}function Ov(n,e){return e.filter(i=>{if(!i)return!1;switch(i.type){case r.FunctionCall:return i.inputs.find(a=>a.id===n.id)!==void 0||i.outputs.find(a=>a.id===n.id)!==void 0;case r.Condition:return i.successCalls.find(a=>a.id===n.id)!==void 0||i.errorCalls.find(a=>a.id===n.id)!==void 0||i.inputs.find(a=>a.id===n.id)!==void 0;case r.Operation:return i.outputs.find(a=>a.id===n.id)!==void 0;case r.VariableDeclaration:return _e.includes(n.type)?Cv(n).find(s=>{var o;return((o=s.readsValue)==null?void 0:o.id)===i.id})!==void 0:!1;case r.CustomEntity:return i.properties.find(a=>a.id===n.id)!==void 0||i.methods.find(a=>a.id===n.id)!==void 0;case r.FunctionDeclaration:return i.inputs.find(a=>a.id===n.id)!==void 0||(i.returnStatements.map(a=>a.outputs).flat()||[]).find(a=>a.id===n.id)!==void 0;default:return!1}})}function Z9(n){const e=Sv(n.project);return Ov(n,e)}function gr(n){const e=[];if(Tn.includes(n.type)){n.calledBy.forEach(a=>{const s=He(a);s&&e.push(s)});const i=[...n.inputs||[],...n.outputs||[]].map(a=>Sd(a)).filter(a=>a!==null);e.push(...O(i))}if(Fe.includes(n.type)){const t=Sd(n);t&&e.push(t)}return O(e)}function Dd(n){return n.type===r.FunctionCall||n.type===r.InternalCall?n.declaration.inputs:[r.Operation,r.Condition,r.Loop].includes(n.type)?n.declaration.fixedArguments:n.type===r.FunctionDeclaration||Dr.includes(n.type)?n.inputs:n.type===r.Search?n.inputsDeclarations:[]}function X9(n,e){return e.type===r.Condition?e.inputs.find(t=>t.declaration.id===n.id):e.type===r.FunctionCall||e.type===r.Operation?e.inputs.find(t=>t.declaration.id===n.id):null}function Cv(n){return _e.includes(n.type)?n.inputs:[]}function Ad(n){var e;return n.type===r.FunctionCall?((e=n.declaration.returnStatements[0])==null?void 0:e.outputs)||[]:[r.Operation,r.Condition,r.Loop].includes(n.type)?n.declaration.fixedReturns:n.type===r.Search?n.outputsDeclarations:Oe.includes(n.type)?n.outputs:[]}function Q9(n,e){return e.type===r.Condition?null:e.type===r.FunctionCall||e.type===r.Operation?e.outputs.find(t=>t.declaration.id===n.id):null}function K9(n){return n.type===r.Condition?[]:_e.includes(n.type)?n.outputs:[]}function Sd(n){const e=n.readsValue;return e?He(e):null}function Bv(n){const e=n.internalCalls||[];return O(Mt(O(e.flatMap(t=>[...t.successCalls,...t.errorCalls]))))}function di(n){const e=Pd(n),t=[];return e.forEach(i=>{if(Fe.includes(i.type))t.push(i);else if(i.type===r.InputMap){const a=i.parent;if(a.type===r.InputMap){const s=a.parent;t.push(s)}else t.push(a)}else[r.ActionDescriptor].includes(i.parent.type)||t.push(i.parent)}),t}function O(n){const e=new Set;return n.filter(t=>!t||e.has(t.id)?!1:(e.add(t.id),!0))}function Vn(n,e=!1){const t=[];if(n.type===r.Project&&t.push(...(n==null?void 0:n.entities)||[],...(n==null?void 0:n.functions)||[],...(n==null?void 0:n.variableDeclarations)||[],...(n==null?void 0:n.variableInstances)||[],...(n==null?void 0:n.searches)||[],...(n==null?void 0:n.loops)||[],...(n==null?void 0:n.operations)||[],...(n==null?void 0:n.conditions)||[],...(n==null?void 0:n.functionCalls)||[],...(n==null?void 0:n.events)||[],...(n==null?void 0:n.projects)||[]),st.includes(n.type)&&t.push(...(n==null?void 0:n.detachedChildren)||[]),n.type===r.CustomEntity){const i=[...n.suggestedMethods,...n.methods].flatMap(a=>a.collapsed&&e?[]:Vn(a));t.push(...i)}if(n.type===r.Condition){const i=n.successCalls.map(s=>He(s)),a=n.errorCalls.map(s=>He(s));t.push(...i,...a)}if(Dr.includes(n.type)){if(n.collapsed&&e)return[];const i=n.inputs.map(s=>di(s)).flat(),a=n.calls.map(s=>He(s));t.push(...O(i),...a)}if(_e.includes(n.type)&&n.type!==r.Condition){const i=n==null?void 0:n.outputs.map(o=>di(o)).flat(),a=n.successCalls.map(o=>He(o)),s=n.errorCalls.map(o=>He(o));t.push(...O(i),...a,...s)}if(Fe.includes(n.type)){const i=di(n),a=Bv(n);t.push(...i,...a)}if(n.type===r.Loop){const i=n.outputs.map(o=>di(o)).flat();if(n.body){const o=Vn(n.body,e);t.push(...o)}const a=n.errorCalls.map(o=>He(o)),s=n.successCalls.map(o=>He(o));t.push(...O(i),...s,...a)}if(n.type===r.FunctionDeclaration){if(n.collapsed&&e)return[];const i=n.inputs.map(s=>di(s)).flat(),a=n.calls.map(s=>He(s));t.push(...O(i),...a)}return O(t)}function wv(n,e=!1){const t=Vn(n,e),i=[...t,...t.reduce((a,s)=>[...a,...wv(s,e)],[])];return O(i)}function _v(n){const e=gr(n),t=[...e,...e.reduce((i,a)=>[...i,..._v(a)],[])];return O(t)}function po(n){return n.implements.reduce((e,t)=>t.type===r.CustomEntity?[...e,r.CustomEntity,...po(t),...yo(t)]:[...e,t.name],[])}function yo(n){return n.extends.reduce((e,t)=>t.type===r.CustomEntity?[...e,r.CustomEntity,...yo(t),...po(t)]:[...e,t.name],[])}function Od(n){return n.extends.reduce((e,t)=>t.type===r.CustomEntity?[...e,t,...Od(t),...Cd(t)]:[...e,t],[])}function Cd(n){return n.implements.reduce((e,t)=>t.type===r.CustomEntity?[...e,t,...Cd(t),...Od(t)]:[...e,t],[])}function Mv(n){return[...yo(n),...po(n)].filter((t,i,a)=>a.indexOf(t)===i)}function Nv(n){return n.implements.length===0&&n.extends.length===0?null:n.implements.find(i=>i.type===r.BuiltInBaseEntity&&i.name===_.PERSISTED_ENTITY)?n:[...n.implements,...n.extends].reduce((i,a)=>{if(a.type===r.CustomEntity){const s=Nv(a);if(s)return s}return i},null)}function e3(n){const e=n.extends.find(t=>t.type===r.BuiltInBaseEntity);return e&&e.type===r.BuiltInBaseEntity?e:null}function t3(n){const e=n.implements.find(t=>t.type===r.BuiltInBaseEntity);return e&&e.type===r.BuiltInBaseEntity?e:null}function $v(n){const e=n.extends.find(t=>t.type===r.CustomEntity);return e&&e.type===r.CustomEntity?e:null}function Ln(n){const e=[...n.implements,...n.extends].reduce((t,i)=>i.type===r.BuiltInBaseEntity?[...t,i]:i.type===r.CustomEntity?[...t,...Ln(i)]:t,[]);return O(e)}function Bd(n){return n.type===r.PrimitiveEntity?!0:n.type===r.BuiltInBaseEntity?n.interactive:!Ln(n).find(i=>!i.interactive)}function n3(n){return n.parent===n.project&&n.project.variableDeclarations.includes(n)}function wd(n){return n.parent!==n.project?!1:r.VariableDeclaration===n.type?n.project.variableDeclarations.includes(n):r.VariableInstance===n.type?n.project.variableInstances.includes(n):r.FunctionCall===n.type?n.project.functionCalls.includes(n):r.Condition===n.type?n.project.conditions.includes(n):r.Operation===n.type?n.project.operations.includes(n):r.Loop===n.type?n.project.loops.includes(n):r.Search===n.type?n.project.searches.includes(n):!1}function Vv(n){if([...$e,r.CustomEntity,r.InstalledProject,r.Project].includes(n.type)||wd(n))return!1;const e=gr(n);return e.length===0?!0:e.some(t=>Vv(t))}function _d(n){return[...$e,r.CustomEntity,r.InstalledProject,r.Project].includes(n.type)||wd(n)?!1:gr(n).length===0}function Lv(n,e=0){if(_d(n)){const t=gr(n);return t.length===0?n:t.map(a=>Lv(a,e+1)).reduce((a,s)=>a?s&&s.x<a.x?s:a:s,null)}return null}function Gv(n){const e=[];if(_d(n))e.push(n);else return[];return gr(n).forEach(i=>{e.push(...Gv(i))}),e}function Fv(n){return n.type===r.FunctionDeclaration&&n.parent!==n.project&&!![r.CustomEntity,r.Loop,r.InstalledProject].includes(n.parent.type)}function Uv(n,e){const t=new Map;return n.forEach(i=>{t.set(i.id,i)}),e.forEach(i=>{t.set(i.id,i)}),Array.from(t.values())}function ho(n){switch(n){case r.CustomEntity:return Ir;case r.FunctionDeclaration:return lr;case r.VariableDeclaration:return pr;case r.VariableInstance:return yr;case r.FunctionCall:return Rr;case r.Operation:return cr;case r.Condition:return ur;case r.ReturnStatement:return Tr;case r.Loop:return dr;case r.Search:return hr;case r.InputMap:return hn;case r.OutputMap:return fn;case r.ArgumentDeclaration:return mr;case r.ReturnDeclaration:return Ot;case r.Property:return or;case r.InstalledProject:return fr;case r.Project:return $;case r.BuiltInBaseEntity:return Ct;default:return null}}function ht(n,e){if(st.includes(n.type))return n;if(Ar.includes(n.type))return null;const t=n.parent;if(!t)return null;if(t.type===r.GenericReference){const i=D(t);if(!i)return null;const a=e.get(i);return a?ht(a,e):null}else return t===e?e:ht(t,e)}function Md(n,e){if(Ar.includes(n.type)||e.getAllBuiltInIds().includes(n.id))return null;const i=Nt(n.parent,e);return i?i===e?st.includes(n.type)?n:null:i.type===r.CustomEntity?n:Md(i,e):null}function fo(n,e,t){if(n===e||e===t||n===t)return!1;const i=ht(e.parent,t);return i===n?!0:fo(i,e,t)}var mo=(n=>(n.SameBothLocal="same-both-local",n.AInB="a-in-b",n.BInA="b-in-a",n.ParallelInCommonParent="parallel-in-common-parent",n.ParallelInProject="parallel-in-project",n.AIsGlobalBIsNot="a-is-global-b-is-not",n.BIsGlobalAIsNot="b-is-global-a-is-not",n.SameBothGlobal="same-both-global",n))(mo||{});function pa(n,e,t){const i=ht(n,t),a=ht(e,t);if(!i)throw new Error("Could not find scope owner for the entity: "+n.id);if(!a)throw new Error("Could not find scope owner for the entity: "+e.id);if(i===a&&i.type!==r.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:i};if(i===a&&i.type===r.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:i};if(i.type===r.Project&&a.type!==r.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:i};if(i.type!==r.Project&&a.type===r.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:a};if(fo(i,a,t))return{compatible:!0,type:"b-in-a",commonAncestorScope:i};if(fo(a,i,t))return{compatible:!0,type:"a-in-b",commonAncestorScope:a};const d=vd(i,a);return d===t?{compatible:!1,type:"parallel-in-project",commonAncestorScope:d}:d?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:ht(d,t)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:t}}function xv(n,e,t){const i=pa(n,e,t);if(!i.compatible||i.type!=="same-both-local")return null;if(n===e)return n;let a=ht(n.parent,t);if(a){if(a===e)return e;if(a.type===r.Project)return n}else return n;for(;a;){if(a){if(a===e)return e;if(a.type===r.Project)return n}else return n;a=ht(a.parent,t)}let s=ht(e.parent,t);if(s){if(s===n)return n;if(s.type===r.Project)return e}else return e;for(;s;){if(s){if(s===n)return n;if(s.type===r.Project)return e}else return e;s=ht(s.parent,t)}return null}function jv(n){return n.length===0?null:n.length===1?n[0]:n.reduce((t,i)=>{const a=xv(t,i,i.project);return!a||a===i?t:i},n[0])}function Nt(n,e){let t;return typeof n=="string"?t=n:n.type===r.GenericReference?t=D(n):t=n.id,t===e.id?e:e.get(t)}function vr(n){if(Ar.includes(n.type))return n;if(n.type===r.Project)return null;if(n.project.getAllBuiltInIds().includes(n.id))return n;const t=n.parent;return!t||t.type===r.Project?null:vr(t)}function ya(n,e){var t;if(n.readsValue){const i=Nt(n.readsValue,e.project);e.setValueWriter(i),i.addValueReader(e)}else n.readsValue===null&&((t=e.readsValue)==null||t.removeValueReader(e),e.readsValue=null);return e}function ha(n){const e=[];function t(s,o){return e.some(d=>d.blockedByCaller===s&&d.blockedByCalling===o)}function i(s,o){t(s,o)||e.push({blockedByCaller:s,blockedByCalling:o})}const a=Md(n,n.project);return n.calledBySuccess.forEach(s=>{[...s.successCalls||[]].forEach(p=>{Oe.includes(p.type)&&p!==n&&(Ie(n).find(m=>m===p)||i(s,p))});let d;if(_e.includes(s.type)&&(d=s),d){const p=ha(d);p.reachable||Ie(n).find(m=>m===s)||p.blocks.forEach(m=>{i(s,m.blockedByCalling)})}}),n.calledByError.forEach(s=>{[...s.errorCalls||[]].forEach(p=>{Oe.includes(p.type)&&p!==n&&(Ie(n).find(m=>m===p)||i(s,p))});let d;if(_e.includes(s.type)&&(d=s),d){const p=ha(d);p.reachable||Ie(n).find(m=>m===s)||p.blocks.forEach(m=>{i(s,m.blockedByCalling)})}}),n.calledByEntry.forEach(s=>{if([...s.calls||[]].forEach(p=>{Oe.includes(p.type)&&p!==n&&(Ie(n).find(m=>m===p)||i(s,p))}),s===a)return;let d;if(s.type===r.FunctionDeclaration){const p=He(s);if(p.type===r.CustomEntity)return;p.type===r.Loop&&(d=p)}if(d){const p=ha(d);p.reachable||p.blocks.forEach(h=>{i(s,h.blockedByCalling)})}}),{reachable:e.length===0,entryPoint:a,blocks:e}}function r3(n){return bo.includes(n.type)?n.type===r.FunctionDeclaration?!Fv(n):!0:!1}function i3(n){if(r.ActionDescriptor===n.type){if(n.project.operationDeclarations.find(s=>s.id===n.id))return r.Operation;if(n.project.globalEventActionDescriptors.find(s=>s.id===n.id))return r.GlobalEvent;if(n.project.loopDeclarations.find(s=>s.id===n.id))return r.Loop;if(n.project.conditionDeclarations.find(s=>s.id===n.id))return r.Condition}return n.type}function a3(n,e){const t=[];if(n.parent)if(n.id===n.parent)t.push(new E({id:`${n.id}--${n.parent}--${y.SelfReference}`,code:y.SelfReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.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 i=e.get(n.parent);i?[r.Project,r.DataType].includes(i.type)||t.push(new E({id:`${n.id}--${n.parent}--${y.InvalidParentReference}`,code:y.InvalidParentReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):t.push(new E({id:`${n.id}--${n.parent}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return n.implements&&Array.isArray(n.implements)?n.implements.forEach(i=>{if(n.id===i){t.push(new E({id:`${n.id}--${i}--${y.SelfReference}`,code:y.SelfReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.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 a=e.get(i);a?[r.CustomEntity,r.BuiltInBaseEntity].includes(a.type)?a.abstract||t.push(new E({id:`${n.id}--${i}--${y.InvalidImplementsReference}`,code:y.InvalidImplementsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.InvalidImplementsReference}`,code:y.InvalidImplementsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an entity of type 'custom-entity' or 'built-in-base-entity'.`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${i}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):t.push(new E({id:`${n.id}--${g.InvalidObjectStructure}`,code:g.InvalidObjectStructure,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' property that isn't an array.`,issue:null})),n.extends&&Array.isArray(n.extends)&&n.extends.forEach(i=>{const a=e.get(i);a?[r.CustomEntity,r.BuiltInBaseEntity].includes(a.type)?a.abstract&&t.push(new E({id:`${n.id}--${i}--${y.InvalidExtendsReference}`,code:y.InvalidExtendsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.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})):t.push(new E({id:`${n.id}--${i}--${y.InvalidExtendsReference}`,code:y.InvalidExtendsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'extends' reference that isn't pointing to an entity of type 'custom-entity' or 'built-in-base-entity'.`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${i}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),t}const pe=class pe{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"x");l(this,"y");l(this,"static");l(this,"abstract");l(this,"type",r.CustomEntity);l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"implements",[]);l(this,"project");l(this,"errors",[]);l(this,"parent");l(this,"initialized",!1);l(this,"suggestedProperties",[]);l(this,"suggestedMethods",[]);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.x=e.x,this.y=e.y,this.static=e.static,this.abstract=e.abstract}static fromGenerationTarget(e,t){let i=t;if(e.parent){const p=D(e.parent);i=t.get(p)}const a=[];e.implements&&e.implements.forEach(p=>{a.push(t.get(p)||t.getBuiltIn(p))});const s=[];e.extends&&e.extends.forEach(p=>{s.push(t.get(p)||t.getBuiltIn(p))});const o={id:e.id,version:1,name:e.name,type:r.CustomEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:s,implements:a,x:0,y:0,parent:i},d=R(o,t);return d.setParent(i),d.initChildren(),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=a3(i,t),o=Ks(i,t);a.push(...s,...o,...De(i));const d=i.parent?t.get(i.parent):null;if(d&&d.type===r.DataType){const p=d;p.entity&&a.push(new E({id:`${e.id}--${y.NewEntityWouldOverriteExisting}`,code:y.NewEntityWouldOverriteExisting,severity:f.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${p.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
|
|
373
371
|
You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
|
|
374
372
|
${Qt({describe_entity:p.entity.id})}
|
|
375
|
-
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:i}}get extendedProperties(){return O(this.extends.reduce((e,t)=>[...[...t.properties,...t.extendedProperties].filter(a=>!a.abstract),...e],[]))}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.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}}addSelfToProject(){if(this.parent.type===r.DataType){const e=this.parent;e.entity=this}else this.project.addCustomEntity(this);return this}setParent(e){return this.parent=e,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(){return this.initialized?this:(this.initialized=!0,this.properties=this.initialData.properties.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.methods=this.initialData.methods.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.abstractMethods=this.initialData.abstractMethods.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.extends=this.initialData.extends.map(e=>R(e,this.project)),this.implements=this.initialData.implements.map(e=>R(e,this.project)),this.addSuggestions(),this)}addSuggestions(){return this.implements.forEach(e=>{xx(this,e).forEach(a=>{const s=a.toJSON();s.id=`_suggestion--parent--${this.id}--${a.id}`;const o=R(s,this.project);o.suggestion=!0,o.setParent(this),o.initChildren(),this.addSuggestedProperty(o)}),jx(this,e).forEach(a=>{const s=`_suggestion--parent--${this.id}--${a.id}`,o=a.implementAsFunctionDeclaration(s),d=R(o,this.project);if(d.suggestion=!0,d.setParent(this),d.initChildren(),d.inputs.forEach(p=>{p.suggestion=!0}),d.returnStatements.length){const p=d.returnStatements[0];p.suggestion=!0,p.outputs.forEach(h=>{h.suggestion=!0})}this.addSuggestedMethod(d)})}),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,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,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.properties.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.methods.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.abstractMethods.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.suggestedProperties.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.suggestedMethods.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),{affected:O(i),removed:O(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.properties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.methods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.abstractMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedProperties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),{affected:O(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.extends.flatMap(i=>i.toFlat(e)),...this.implements.flatMap(i=>i.toFlat(e)),...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.extends.flatMap(i=>i.toFlatIds(e)),...this.implements.flatMap(i=>i.toFlatIds(e)),...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,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(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),implements:this.implements.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON()),parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,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(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),implements:this.implements.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference()),parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e)),...this.implements.flatMap(i=>i.toFlatJSON(e)),...this.extends.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){const e=this.parent.type===r.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(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.CustomEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.CustomEntity).flatMap(i=>i.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=Ux(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(){return new pe(this.toJSON(),this.project)}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t){return lo(this,e,t)}};l(pe,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),l(pe,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),l(pe,"BASE_PROPERTIES",[...pe.MUTABLE_BASE_PROPERTIES,...pe.INMUTABLE_BASE_PROPERTIES]),l(pe,"MUTABLE_META_PROPERTIES",[...pe.MUTABLE_BASE_PROPERTIES,"x","y"]),l(pe,"INMUTABLE_META_PROPERTIES",[...pe.INMUTABLE_BASE_PROPERTIES]),l(pe,"META_PROPERTIES",[...pe.MUTABLE_META_PROPERTIES,...pe.INMUTABLE_META_PROPERTIES]),l(pe,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),l(pe,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),l(pe,"UPSTREAM_PROPERTIES",[...pe.MUTABLE_UPSTREAM_PROPERTIES,...pe.INMUTABLE_UPSTREAM_PROPERTIES]),l(pe,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),l(pe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(pe,"DOWNSTREAM_PROPERTIES",[...pe.MUTABLE_DOWNSTREAM_PROPERTIES,...pe.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(pe,"PROPERTIES",[...pe.META_PROPERTIES,...pe.UPSTREAM_PROPERTIES,...pe.DOWNSTREAM_PROPERTIES]);let Ir=pe;function s5(n){const e=l4(),t=n.toJSON();e.safeParse(t).success;const a=[];return X(n.errors,a)}class Nt{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"type",r.PrimitiveEntity);l(this,"static");l(this,"abstract");l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"errors",[]);l(this,"project");this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.static=e.static,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.parent=this,a})}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async load(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.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(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.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=s5(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}clone(){return new Nt(this.toJSON(),this.project)}}function o5(n){const e=T4(),t=n.toJSON();e.safeParse(t).success;const a=[];return X(n.errors,a)}class Ut{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"type",r.BuiltInBaseEntity);l(this,"abstract",!1);l(this,"static");l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"interactive",!1);l(this,"errors",[]);l(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(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.extends=this.initialData.extends.map(i=>R(i,this.project))}get extendedProperties(){return O(this.extends.reduce((e,t)=>{if(t instanceof Ut){const i=[...t.properties,...t.extendedProperties].filter(a=>!a.abstract);e.push(...i)}return e},[]))}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async load(){return this}remove(e={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.extends.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.extends.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.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(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.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=o5(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}clone(){return new Ut(this.toJSON(),this.project)}implement(e,t){return lo(this,e,t)}}function fa(n,e){if(!n)throw new Error("Entity is null");const t=e.findSubscribedInstance(n);switch(n.type){case r.PrimitiveValue:return t||new li(n,e);case r.CustomEntity:return t||new Ir(n,e);case r.PrimitiveEntity:return t||new Nt(n,e);case r.FunctionDeclaration:return t||new lr(n,e);case r.GlobalEvent:return t||new si(n,e);case r.DataType:return t||new ai(n,e);case r.Property:return t||new or(n,e);case r.FunctionCall:return t||new Rr(n,e);case r.Condition:return t||new ur(n,e);case r.Operation:return t||new cr(n,e);case r.VariableDeclaration:return t||new pr(n,e);case r.VariableInstance:return t||new yr(n,e);case r.OutputMap:return t||new fn(n,e);case r.ReturnDeclaration:return t||new Ot(n,e);case r.ArgumentDeclaration:return t||new mr(n,e);case r.InputMap:return t||new hn(n,e);case r.Project:return t||new $(n);case r.InstalledProject:return t||new fr(n,e);case r.ActionDescriptor:return t||new Ne(n,e);case r.ReturnStatement:return t||new Tr(n,e);case r.Loop:return t||new dr(n,e);case r.Search:return t||new hr(n,e);case r.ValueDescriptor:return t||new Er(n,e);case r.BuiltInBaseEntity:return t||new Ut(n,e);case r.InternalCall:return t||new oi(n,e);case r.ContinueStatement:return t||new yt(n,e);case r.BreakStatement:return t||new ci(n,e);default:throw new Error("Invalid entity type: "+n.type)}}function R(n,e){if(!n)throw new Error("Entity is null");const t=fa(n,e);return t.subscribe(),t}function l5(n,e){if(!n)throw new Error("Entity is null");switch(n.type){case r.PrimitiveValue:return li.fromGenerationTarget(n,e);case r.CustomEntity:return Ir.fromGenerationTarget(n,e);case r.FunctionDeclaration:return lr.fromGenerationTarget(n,e);case r.GlobalEvent:return si.fromGenerationTarget(n,e);case r.DataType:return ai.fromGenerationTarget(n,e);case r.Property:return or.fromGenerationTarget(n,e);case r.FunctionCall:return Rr.fromGenerationTarget(n,e);case r.Condition:return ur.fromGenerationTarget(n,e);case r.Operation:return cr.fromGenerationTarget(n,e);case r.VariableDeclaration:return pr.fromGenerationTarget(n,e);case r.VariableInstance:return yr.fromGenerationTarget(n,e);case r.OutputMap:return fn.fromGenerationTarget(n,e);case r.ReturnDeclaration:return Ot.fromGenerationTarget(n,e);case r.ArgumentDeclaration:return mr.fromGenerationTarget(n,e);case r.InputMap:return hn.fromGenerationTarget(n,e);case r.InstalledProject:return fr.fromGenerationTarget(n,e);case r.ReturnStatement:return Tr.fromGenerationTarget(n,e);case r.Loop:return dr.fromGenerationTarget(n,e);case r.Search:return hr.fromGenerationTarget(n,e);case r.ActionDescriptor:return Ne.fromGenerationTarget(n,e);case r.ValueDescriptor:return Er.fromGenerationTarget(n,e);case r.InternalCall:return oi.fromGenerationTarget(n,e);case r.ContinueStatement:return yt.fromGenerationTarget(n,e);case r.BreakStatement:return ci.fromGenerationTarget(n,e);default:throw new Error("Invalid entity type: "+n.type)}}const Y=class Y{constructor(e){l(this,"initialData");l(this,"id");l(this,"version");l(this,"type",r.Project);l(this,"name",null);l(this,"description",null);l(this,"x");l(this,"y");l(this,"entities",[]);l(this,"projects",[]);l(this,"functions",[]);l(this,"events",[]);l(this,"variableDeclarations",[]);l(this,"variableInstances",[]);l(this,"conditions",[]);l(this,"operations",[]);l(this,"functionCalls",[]);l(this,"loops",[]);l(this,"searches",[]);l(this,"primitives",[]);l(this,"builtInBaseEntities",[]);l(this,"operationDeclarations",[]);l(this,"globalEventActionDescriptors",[]);l(this,"loopDeclarations",[]);l(this,"conditionDeclarations",[]);l(this,"valueDescriptors",[]);l(this,"dataTypes",[]);l(this,"project");l(this,"instances",{});l(this,"builtInInstances",{});l(this,"errors",[]);l(this,"references",[]);this.initialData=e,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.x=0,this.y=0;try{Y.UUID||(Y.UUID=is==null?void 0:is())}catch(t){console.error("Error initializing UUID module",t),Y.UUID={uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:i=>i}}}static injectUUIDModule(e){Y.UUID=e}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[];return a.push(...De(i)),{errors:a,modifiedData:i}}async inject(...e){return await Promise.all(e.map(t=>new Promise(async i=>{await t.init(this),i(null)}))),this}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}addSelfToProject(){return 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(){return this.entities=this.initialData.entities.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.projects=this.initialData.projects.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.functions=this.initialData.functions.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.events=this.initialData.events.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.variableDeclarations=this.initialData.variableDeclarations.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.variableInstances=this.initialData.variableInstances.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.conditions=this.initialData.conditions.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.operations=this.initialData.operations.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.functionCalls=this.initialData.functionCalls.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.loops=this.initialData.loops.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.searches=this.initialData.searches.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.attachOrphanReferences(),this.validate(),this}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[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}findSubscribedInstance(e){return this.instances[e.id]||null}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getManaged(e){return 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}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e}={ignoreUpstream:!1}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{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.entities.flatMap(i=>i.toFlat(e)),...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e)),...this.projects.flatMap(i=>i.toFlat(e)),...this.variableDeclarations.flatMap(i=>i.toFlat(e)),...this.variableInstances.flatMap(i=>i.toFlat(e)),...this.conditions.flatMap(i=>i.toFlat(e)),...this.operations.flatMap(i=>i.toFlat(e)),...this.functionCalls.flatMap(i=>i.toFlat(e)),...this.loops.flatMap(i=>i.toFlat(e)),...this.searches.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),Array.from(e))}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,entities:this.entities.map(e=>e.toJSON()),functions:this.functions.map(e=>e.toJSON()),events:this.events.map(e=>e.toJSON()),projects:this.projects.map(e=>e.toJSON()),variableDeclarations:this.variableDeclarations.map(e=>e.toJSON()),variableInstances:this.variableInstances.map(e=>e.toJSON()),conditions:this.conditions.map(e=>e.toJSON()),operations:this.operations.map(e=>e.toJSON()),functionCalls:this.functionCalls.map(e=>e.toJSON()),loops:this.loops.map(e=>e.toJSON()),searches:this.searches.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+Y.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,entities:this.entities.map(e=>e.toReference()),functions:this.functions.map(e=>e.toReference()),events:this.events.map(e=>e.toReference()),projects:this.projects.map(e=>e.toReference()),variableDeclarations:this.variableDeclarations.map(e=>e.toReference()),variableInstances:this.variableInstances.map(e=>e.toReference()),conditions:this.conditions.map(e=>e.toReference()),operations:this.operations.map(e=>e.toReference()),functionCalls:this.functionCalls.map(e=>e.toReference()),loops:this.loops.map(e=>e.toReference()),searches:this.searches.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlatJSON(e)),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e)),...this.projects.flatMap(i=>i.toFlatJSON(e)),...this.variableDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.variableInstances.flatMap(i=>i.toFlatJSON(e)),...this.conditions.flatMap(i=>i.toFlatJSON(e)),...this.operations.flatMap(i=>i.toFlatJSON(e)),...this.functionCalls.flatMap(i=>i.toFlatJSON(e)),...this.loops.flatMap(i=>i.toFlatJSON(e)),...this.searches.flatMap(i=>i.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(i=>i.toFlatGenerationTarget(e)),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e)),...this.projects.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableInstances.flatMap(i=>i.toFlatGenerationTarget(e)),...this.conditions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.operations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functionCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.loops.flatMap(i=>i.toFlatGenerationTarget(e)),...this.searches.flatMap(i=>i.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=Nx(),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 new Y(this.toJSON())}getCustomEntity(e){return this.entities.find(t=>t.id===e)||null}addCustomEntityFromTransfer(e){const t=R(e,this);return this.addCustomEntity(t),t}addCustomEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=R(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=R(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=R(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=R(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=R(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=R(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=R(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=R(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=R(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=R(e,this);return this.addSearch(t),this}addSearch(e){return this.searches.includes(e)||this.searches.push(e),this}removeCustomEntity(e){const t=this.entities.findIndex(i=>i.id===e.id);if(t>-1){const i=this.entities[t];return this.entities.splice(t,1),i}return null}removeFunctionDeclaration(e){const t=this.functions.findIndex(i=>i.id===e.id);if(t>-1){const i=this.functions[t];return this.functions.splice(t,1),i}return null}removeExternalProject(e){const t=this.projects.findIndex(i=>i.id===e.id);if(t>-1){const i=this.projects[t];return this.projects.splice(t,1),i}return null}removeGlobalEvent(e){const t=this.events.findIndex(i=>i.id===e.id);if(t>-1){const i=this.events[t];return this.events.splice(t,1),i}return null}removeTopLevelVariableDeclaration(e){if(e.type!==r.VariableDeclaration)return null;const t=this.variableDeclarations.findIndex(i=>i.id===e.id);if(t>-1){const i=this.variableDeclarations[t];return this.variableDeclarations.splice(t,1),i}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,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.operations.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.loops.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.searches.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.conditions.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.loops.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.searches.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.functionCalls.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.conditions.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.operations.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.loops.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.searches.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[])]}getVariableDeclarations(){return O([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(i=>{if(!i.declaration){const a=i.initialData,s=a.declaration.entityId||a.declaration.id,o=t.find(d=>d.id===s);o&&i.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===_.PERSISTED_ENTITY)||null}};l(Y,"UUID",{uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),l(Y,"MUTABLE_BASE_PROPERTIES",["name","description"]),l(Y,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(Y,"BASE_PROPERTIES",[...Y.MUTABLE_BASE_PROPERTIES,...Y.INMUTABLE_BASE_PROPERTIES]),l(Y,"MUTABLE_META_PROPERTIES",[...Y.MUTABLE_BASE_PROPERTIES,"x","y"]),l(Y,"INMUTABLE_META_PROPERTIES",[...Y.INMUTABLE_BASE_PROPERTIES]),l(Y,"META_PROPERTIES",[...Y.MUTABLE_META_PROPERTIES,...Y.INMUTABLE_META_PROPERTIES]),l(Y,"MUTABLE_UPSTREAM_PROPERTIES",[]),l(Y,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),l(Y,"UPSTREAM_PROPERTIES",[...Y.MUTABLE_UPSTREAM_PROPERTIES,...Y.INMUTABLE_UPSTREAM_PROPERTIES]),l(Y,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),l(Y,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(Y,"DOWNSTREAM_PROPERTIES",[...Y.MUTABLE_DOWNSTREAM_PROPERTIES,...Y.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(Y,"PROPERTIES",[...Y.META_PROPERTIES,...Y.UPSTREAM_PROPERTIES,...Y.DOWNSTREAM_PROPERTIES]);let $=Y;class kv extends Ne{constructor(t){super($t,t);l(this,"id",Pe.Parallel);l(this,"name",Pe.Parallel);l(this,"description","Execute a list of actions one after the other");l(this,"version",1);l(this,"autoexecutable",!0);l(this,"initialData",$t);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");this.project=t,this.fixedArguments=$t.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=$t.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=$t.error?R($t.error,this.project):null}}class qv extends Ne{constructor(t){super(ot,t);l(this,"id",ot.id);l(this,"name",ot.name);l(this,"description",ot.description);l(this,"version",ot.version);l(this,"autoexecutable",!1);l(this,"initialData",ot);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");this.project=t,this.fixedArguments=ot.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=ot.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=ot.error?R(ot.error,this.project):null}}class Jv extends Ne{constructor(t){super(tn,t);l(this,"id",Pe.Sequential);l(this,"name",Pe.Sequential);l(this,"description","Execute a list of actions one after the other");l(this,"version",1);l(this,"autoexecutable",!0);l(this,"initialData",tn);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");this.project=t,this.fixedArguments=tn.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=tn.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=tn.error?R(tn.error,this.project):null}}function c5(n){const e=[new Jv(n),new kv(n),new qv(n),new Ne(hi,n),new Ne(Or,n),new Ne(xn,n),new Ne(ba,n),new Ne(Do,n),new Ne(Oo,n),new Ne(So,n),new Ne(Ta,n),new Ne(pi,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.operationDeclarations=e,e}class Wv extends Ut{constructor(t){super(we,t);l(this,"initialData");l(this,"id",_.PERSISTED_ENTITY);l(this,"version",1);l(this,"name",_.PERSISTED_ENTITY);l(this,"description",we.description);l(this,"type",r.BuiltInBaseEntity);l(this,"abstract",we.abstract);l(this,"static",we.static);l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"errors",[]);l(this,"project");this.initialData=we,this.project=t,this.id=we.id,this.version=we.version,this.name=we.name,this.static=we.static,this.abstract=we.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.extends=this.initialData.extends.map(i=>R(i,this.project))}}function d5(n){const e=[new Wv(n),new Ut(Oa,n),new Ut(Rn,n),new Ut(Jo,n),new Ut(Sa,n)];return e.forEach(t=>{n.subscribeBuiltInInstance(t)}),n.builtInBaseEntities=e,e}function u5(n){const e=[new Nt(F,n),new Nt(Fn,n),new Nt(Be,n),new Nt(Xe,n),new Nt(En,n),new Nt(Sr,n),new Nt(ma,n),new Nt(go,n)];return e.forEach(t=>{n.subscribeBuiltInInstance(t)}),n.primitives=e,e}function p5(n){const e=[new Ne(Ma,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.globalEventActionDescriptors=e,e}function y5(n){const e=[new Ne(jn,n),new Ne(Fo,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.loopDeclarations=e,e}function h5(n){const e=[new Er(zo,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.valueDescriptors=e,e}function f5(n){const e=[new Ne(kn,n),new Ne(Br,n)];return e.forEach(t=>{t.initChildren()}),n.conditionDeclarations=e,e}const Pr={},To={};async function m5(n,e={}){const t={...tb};return t.id=n.id,e.empty?{data:{id:n.id,type:r.Project,version:1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]}}:{data:t}}function Hv(n){const e=new $(n);return u5(e),d5(e),c5(e),p5(e),y5(e),h5(e),f5(e),e.initChildren(),e}async function T5(n,e={}){try{if(n.id&&Pr[n.id])return Pr[n.id];if(n.id&&To[n.id])return await To[n.id],Pr[n.id];const t=m5(n,e);n.id&&(To[n.id]=t);const i=await t;if(i.data){const a=Hv(i.data);return Pr[n.id]=a,n.id&&delete To[n.id],a}return null}catch(t){return console.error("Error fetching project: ",t),null}}function E5(n){return Pr[n.id]&&delete Pr[n.id],null}const R5="test_primitive_entities_export";u.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Rd,u.ActionDescriptorState=Ne,u.ActionDescriptorValuesType=L,u.ActionInputMapState=T9,u.ActionOutputMapState=b9,u.AppendToListOperationInputIds=cp,u.AppendToListOperationOutputIds=dp,u.ArgumentDeclarationState=mr,u.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=fd,u.BUILT_IN_BASE_ENTITY_IDS=Ve,u.BUILT_IN_ENTITY_TYPES=Ar,u.BaseCanvasDraggableState=t9,u.BaseEntityNames=_,u.BaseState=e9,u.BaseValueDescriptorIds=$o,u.BreakStatementState=ci,u.BuiltInBaseEntityState=Ut,u.CACHED_PROJECTS_BY_ID=Pr,u.CALLABLE_ENTITIES_EXPLANATION=_9,u.CALLABLE_TYPES=Tn,u.CALLER_ENTITIES_EXPLANATION=av,u.CALLER_TYPES=en,u.CALLS_UPDATE_EXPLANATION=Nn,u.COMPARISON_CONDITIONS=sm,u.CONDITIONS=II,u.CUSTOM_ENTITY_OPERATIONS=Py,u.CallableEntityClass=r9,u.CallerEntityClass=ud,u.ChildEntityState=n9,u.ComparisonOperatorTypes=Se,u.ConditionState=ur,u.ContinueStatementState=yt,u.CreateNewInputIds=ey,u.CreateNewOutputIds=ty,u.CustomEntityState=Ir,u.DRAGGABLE_CALLABLE_TYPES=Ro,u.DRAGGABLE_CALLER_TYPES=Vd,u.DRAGGABLE_ELEMENT_TYPES=bo,u.DRAGGABLE_EXECUTABLE_TYPES=Qv,u.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=Eo,u.DataTypeCompatibilityTypes=wt,u.DataTypeParentChildRelation=qe,u.DataTypeState=ai,u.ENTITIES_WITH_VALLUES_EXPLANATION=ro,u.ENTITY_TYPES=Kv,u.ENTITY_WITH_LOGIC_SCOPE_TYPES=st,u.ENTITY_WITH_NAMES_TYPES=Ld,u.ENTITY_WITH_VALUE_TYPES=$d,u.ENTRY_POINT_ENTITIES_EXPLANATION=ca,u.ENTRY_POINT_TYPES=$e,u.EVENT_TYPES=Dr,u.EXECUTABLE_TYPES=Xv,u.EXECUTION_OPERATIONS=Kp,u.EntityError=Xn,u.EntityErrorSeverity=f,u.EntityGenerationError=E,u.EntityGenerationErrorCode=y,u.EntityInstanceErrorCode=S,u.EntityOperations=Ze,u.EntityType=r,u.EntityWithLogicScopeClass=o9,u.EntityWithValueClass=s9,u.EntryPointEntityClass=i9,u.ExecutionOperations=Pe,u.FunctionCallState=Rr,u.FunctionDeclarationState=lr,u.GLOBAL_EVENT_DECLARATIONS=PI,u.GetLastInListOperationInputIds=Xu,u.GetLastInListOperationOutputIds=Qu,u.GlobalEventNames=Kt,u.GlobalEventState=si,u.HTTPOperations=Ye,u.HTTP_OPERATIONS=ih,u.InputMapState=hn,u.InstalledProjectState=fr,u.InternalCallState=oi,u.JoinListOperationInputIds=Tu,u.JoinListOperationOutputIds=Eu,u.JoinStringOperationInputIds=ru,u.JoinStringOperationOutputIds=iu,u.LIST_OPERATIONS=Ip,u.ListOperations=k,u.LoopState=dr,u.LoopTypes=je,u.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=$n,u.NUMBER_OPERATIONS=nu,u.NumberAdditionOperationInputIds=kd,u.NumberAdditionOperationOutputIds=qd,u.NumberOperations=at,u.OPERATION_DECLARATIONS=tI,u.OperationState=cr,u.OutputMapParentChildRelation=Nd,u.OutputMapState=fn,u.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=io,u.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Mn,u.PASS_THROUGH_CALLABLE_TYPES=_e,u.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=Ed,u.ParallelExecutionOperation=kv,u.ParallelExecutionOperationInputIds=Pp,u.ParallelExecutionOperationOutputIds=Dp,u.PassThroughCallableEntityClass=a9,u.PersistedEntity=Wv,u.PersistedEntityMethods=It,u.PrimitiveEntityState=Nt,u.PrimitiveTypes=v,u.PrimitiveValueState=li,u.ProjectState=$,u.PropertyState=or,u.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=M9,u.ReturnDeclarationState=Ot,u.ReturnStatementState=Tr,u.STANDALONE_CONDITIONS=em,u.STRING_OPERATIONS=mu,u.ScopeCompatibilityType=mo,u.SearchState=hr,u.SequentialExecutionOperation=Jv,u.SequentialExecutionOperationInputIds=jp,u.SequentialExecutionOperationOutputIds=kp,u.SharedEntityErrorCode=g,u.SharedStateFunctionality=nv,u.SplitListOperationInputIds=Mu,u.SplitListOperationOutputIds=Nu,u.StandaloneOperatorTypes=Ct,u.StringOperations=ve,u.TERMINATION_TYPES=Oe,u.USER_MANAGED_ENTITY_TYPES=eI,u.UserManagedEntityStateFunctionality=K6,u.VALUE_READING_ENTITIES_EXPLANATION=Td,u.VALUE_READING_TYPES=Gn,u.VALUE_WRITING_ENTITIES_EXPLANATION=sv,u.VALUE_WRITING_TYPES=Ce,u.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=md,u.VARIABLE_TYPES=Fe,u.ValidationInputIds=dy,u.ValidationOutputIds=uy,u.ValueAutogenerationType=xe,u.ValueDescriptorParentChildRelation=C,u.ValueDescriptorState=Er,u.ValueReadingEntityClass=oa,u.ValueWritingEntityClass=la,u.VariableDeclarationState=pr,u.VariableInputMapState=m9,u.VariableInstanceState=yr,u.VariableOutputMapState=R9,u.WaitOperation=qv,u.WaitOperationInputIds=$p,u.WaitOperationOutputIds=Vp,u._VALUE_READING_TYPES=zv,u._VALUE_WRITING_TYPES=Zv,u.appendToListOperation=ba,u.appendToListOperationElementToAppendArgument=Bo,u.appendToListOperationElementToAppendArgumentParentRef=Ep,u.appendToListOperationElementToAppendArgumentRef=yp,u.appendToListOperationError=vp,u.appendToListOperationErrorParentRef=gp,u.appendToListOperationListArgument=Co,u.appendToListOperationListArgumentParentRef=Tp,u.appendToListOperationListArgumentRef=up,u.appendToListOperationListDataType=pp,u.appendToListOperationResultListDataType=mp,u.appendToListOperationResultListReturn=bp,u.appendToListOperationResultListReturnParentRef=Rp,u.appendToListOperationResultListReturnRef=fp,u.appendToListOperationSecondListDataType=hp,u.asGenerationActionExample=Qt,u.baseHttpRequestFunctionDeclaration=hi,u.baseHttpRequestFunctionDeclarationErrorValueDescriptor=Go,u.baseHttpRequestFunctionDeclarationErrorValueDescriptorDatatype=rh,u.baseHttpRequestFunctionDeclarationErrorValueDescriptorRef=nh,u.baseHttpRequestFunctionDeclarationRef=Qy,u.baseHttpRequestFunctionDeclarationRefEight=eh,u.baseHttpRequestFunctionDeclarationRefFive=Zy,u.baseHttpRequestFunctionDeclarationRefFour=zy,u.baseHttpRequestFunctionDeclarationRefNine=th,u.baseHttpRequestFunctionDeclarationRefSeven=Ky,u.baseHttpRequestFunctionDeclarationRefSix=Xy,u.baseHttpRequestFunctionDeclarationRefThree=Yy,u.baseHttpRequestFunctionDeclarationRefTwo=Hy,u.booleanPrototype=Fn,u.capitalizeFirstLetter=Hs,u.checkAreCustomEntitiesCompatibleAsDataType=Ug,u.checkAreDataTypesCompatible=Ys,u.checkArePropertiesCompatibleAsDataType=Fg,u.checkIsBranchDependentButNotDirectlyOnBranch=ua,u.checkIsBranchDependentOnBranch=j9,u.checkIsCallableEntityReachable=ha,u.checkIsCanvasEntity=r5,u.checkIsDetachedBranch=Vv,u.checkIsDetachedBranchShallow=_d,u.checkIsGlobalVariable=n5,u.checkIsGloballyDeclared=wd,u.checkIsMethod=Fv,u.checkIsNestedScope=fo,u.checkScopeCompatibility=pa,u.createEntityError=j,u.createNewInstanceOperation=Or,u.createNewInstanceOperationEntityToInstanciateArgument=ay,u.createNewInstanceOperationEntityToInstanciateArgumentRef=ny,u.createNewInstanceOperationEntityToInstanciateDataType=ry,u.createNewInstanceOperationError=cy,u.createNewInstanceOperationErrorParentRef=ly,u.createNewInstanceOperationOutputEntityDeclaration=oy,u.createNewInstanceOperationOutputEntityDeclarationParentRef=sy,u.createNewInstanceOperationRef=iy,u.createSemanticId=Xt,u.createStateFromGenerationTargetType=l5,u.createStateFromType=fa,u.createStateFromTypeAndSubscribe=R,u.cronJobBuiltInBaseEntity=Jo,u.cronJobBuiltInBaseEntityExpressionProperty=Zf,u.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=bI,u.cronJobBuiltInBaseEntityExpressionPropertyRef=Yf,u.cronJobBuiltInBaseEntityRef=zf,u.cronJobTriggeredFunctionDeclarationBlueprint=qo,u.cronJobTriggeredFunctionDeclarationBlueprintParentRef=Wf,u.customEntityToZodSchema=Pm,u.dataTypeCompatibilityToErrorExplanation=hv,u.datePrototype=Sr,u.dateValueAutogenerationSchema=Ql,u.deletePersistedEntityMethod=ko,u.deletePersistedEntityMethodParentRef=Pf,u.deleteRootProject=E5,u.endpointBuiltInBaseEntity=Oa,u.endpointBuiltInBaseEntityRef=Dh,u.endpointBuiltInBaseEntityRefFour=hf,u.endpointBuiltInBaseEntityRefThree=Nh,u.endpointBuiltInBaseEntityRefTwo=Bh,u.endpointBuiltInCorsProperty=Ah,u.endpointBuiltInCorsPropertyDataType=Ph,u.endpointBuiltInCorsPropertyDataTypeRef=vh,u.endpointBuiltInCorsPropertyRef=Ih,u.endpointBuiltInMethodProperty=xo,u.endpointBuiltInMethodPropertyDataType=Mh,u.endpointBuiltInMethodPropertyDataTypeRef=wh,u.endpointBuiltInMethodPropertyRef=_h,u.endpointBuiltInPathProperty=Uo,u.endpointBuiltInPathPropertyDataType=Ch,u.endpointBuiltInPathPropertyDataTypeRef=Sh,u.endpointBuiltInPathPropertyRef=Oh,u.endpointPathParamsArgumentDeclaration=zh,u.endpointPathParamsArgumentDeclarationRef=qh,u.endpointPathParamsVariableDataType=Jh,u.endpointPathParamsVariableDataTypeRef=kh,u.endpointReachedTriggerActionDescriptor=jo,u.endpointReachedTriggerActionDescriptorRef=Wh,u.endpointReachedTriggerActionDescriptorRefFour=Qh,u.endpointReachedTriggerActionDescriptorRefThree=Zh,u.endpointReachedTriggerActionDescriptorRefTwo=Yh,u.endpointRequestBodyArgumentDeclaration=Kh,u.endpointRequestBodyArgumentDeclarationRef=Gh,u.endpointRequestBodyVariableDataType=Fh,u.endpointRequestHeadersArgumentDeclaration=Hh,u.endpointRequestHeadersArgumentDeclarationRef=Vh,u.endpointRequestHeadersVariableDataType=Lh,u.endpointRequestHeadersVariableDataTypeRef=$h,u.endpointRequestQueryParamsArgumentDeclaration=Xh,u.endpointRequestQueryParamsArgumentDeclarationRef=xh,u.endpointRequestQueryParamsVariableDataType=jh,u.endpointRequestQueryParamsVariableDataTypeRef=Uh,u.endpointResponseBodyDataType=uf,u.endpointResponseBodyReturnDeclaration=yf,u.endpointResponseBodyReturnDeclarationRef=df,u.endpointResponseCodeDataType=tf,u.endpointResponseCodeReturnDeclaration=rf,u.endpointResponseCodeReturnDeclarationRef=ef,u.endpointResponseHeadersDataType=of,u.endpointResponseHeadersDataTypeRef=af,u.endpointResponseHeadersReturnDeclaration=cf,u.endpointResponseHeadersReturnDeclarationRef=sf,u.endpointReturnStatementRef=nf,u.endpointReturnStatementRefThree=pf,u.endpointReturnStatementRefTwo=lf,u.enumOptionsProperty=jd,u.enumOptionsPropertyDataType=Ud,u.enumOptionsPropertyDataTypeRef=Gd,u.enumOptionsPropertyRef=Fd,u.enumPrototype=En,u.enumPrototypeRef=xd,u.executionBuiltInEntity=Ho,u.executionBuiltInEntityAbortMethod=Wo,u.executionBuiltInEntityAbortMethodParentRef=Xf,u.filterOutDuplicateEntities=O,u.filterOutDuplicateErrors=KF,u.findReferenceToSelfInList=Ov,u.findReferencesToSelfInProject=Z9,u.flattenCalls=br,u.flattenCanvasAncestorsUntil=co,u.flattenCustomEntityExtensionAndImplementationTypes=Mv,u.flattenCustomEntityExtensionTypes=yo,u.flattenCustomEntityExtensions=Od,u.flattenCustomEntityImplementations=Cd,u.flattenCustomEntityImplementionTypes=po,u.flattenDerivedCanvasEntities=vt,u.flattenDetachedBranch=Gv,u.flattenElementCalls=Ie,u.flattenProjectElements=Sv,u.flattenRelatedCanvasElementsOnTheLeft=_v,u.flattenRelatedCanvasElementsOnTheRight=wv,u.flattenVariableReads=Av,u.flattenVariableWrites=Dv,u.flattenVariables=Z,u.fromZodParseToEntityGenerationErrors=pd,u.generate=bD,u.generateActionExample=N9,u.generateExecutionDataType=xg,u.generateMutablePropertiesExplanation=eo,u.generateRandomBoolean=Zm,u.generateRandomDate=Om,u.generateRandomDateAfter=Dm,u.generateRandomDateBefore=Am,u.generateRandomDateBetweenRange=Sm,u.generateRandomNumber=Jm,u.generateRandomNumberAfter=jm,u.generateRandomNumberBefore=km,u.generateRandomNumberBetweenRange=qm,u.generateRandomText=zm,u.generateRandomTextAfter=Wm,u.generateRandomTextBefore=Hm,u.generateRandomTextBetweenRange=Ym,u.generateUniqueUUID=xm,u.getAllActionDescriptorsForConditions=oo,u.getAllActionDescriptorsForGlobalEvents=ao,u.getAllActionDescriptorsForLoops=so,u.getAllActionDescriptorsForOperations=G9,u.getAllGloballyDeclaredFunctionDeclarationsExplanation=uv,u.getBaseBuiltInEntities=Ln,u.getBaseSchemaBasedOnType=rv,u.getBuiltInEntityOwner=vr,u.getCallableEntityReferenceSchema=ke,u.getCallableEntityTypeSchema=Ab,u.getCallerEntityReferenceSchema=ix,u.getCallerEntityTypeSchema=rx,u.getCalls=Id,u.getCanvasEntitiesDerivedFromInternalCalls=Bv,u.getCanvasEntitiesDerivedFromWrites=di,u.getCanvasEntityDerivedFromValueReadingEntity=Sd,u.getCanvasEntityReferenceSchema=gx,u.getCanvasEntityTypeSchema=bx,u.getChildrenEntityWithValues=q9,u.getCommonAncestor=vd,u.getCommonChildren=Tv,u.getDeclaration=td,u.getDeepestScope=jv,u.getDraggableCallableEntityReferenceSchema=Ob,u.getDraggableCallableEntityTypeSchema=Sb,u.getDraggableCallerEntityReferenceSchema=sx,u.getDraggableCallerEntityTypeSchema=ax,u.getDraggableExecutableEntityReferenceSchema=dx,u.getDraggableExecutableEntityTypeSchema=cx,u.getDraggablePassThroughCallableEntityReferenceSchema=Fs,u.getDraggablePassThroughCallableEntityTypeSchema=Gs,u.getDraggablePlayableEntityReferenceSchema=fx,u.getDraggablePlayableEntityTypeSchema=hx,u.getEntityArgumentDeclarations=Dd,u.getEntityInputMaps=Cv,u.getEntityOutputMaps=K9,u.getEntityReferenceSchema=Rx,u.getEntityReturnDeclarations=Ad,u.getEntityTypeSchema=Ex,u.getEntityWithLogicScopeReferenceSchema=un,u.getEntityWithLogicScopeTypeSchema=ux,u.getEntityWithValueReferenceSchema=Db,u.getEntityWithValueTypeSchema=nx,u.getEntryPointEntityReferenceSchema=Ue,u.getEntryPointEntityTypeSchema=Bn,u.getEventEntityReferenceSchema=Vs,u.getEventEntityTypeSchema=$s,u.getExecutableEntityReferenceSchema=lx,u.getExecutableEntityTypeSchema=ox,u.getExtendedBuiltInEntity=e5,u.getExtendedCustomEntity=$v,u.getGenerationTargetSchemaBasedOnType=iv,u.getHeadIfPartOfDetachedBranch=Lv,u.getHighestScope=xv,u.getImplementedBuiltInEntity=t5,u.getIsInteractive=Bd,u.getLastInListOperation=Oo,u.getLastInListOperationError=lp,u.getLastInListOperationErrorParentRef=op,u.getLastInListOperationInputListArgument=ip,u.getLastInListOperationInputListArgumentParentRef=rp,u.getLastInListOperationInputListArgumentRef=Ku,u.getLastInListOperationInputListDataType=ep,u.getLastInListOperationOutputElementDataType=np,u.getLastInListOperationOutputElementReturn=sp,u.getLastInListOperationOutputElementReturnParentRef=ap,u.getLastInListOperationOutputElementReturnRef=tp,u.getLinkedEntitiesFromArgumentDeclaration=z9,u.getLowestPersistedEntityImplementation=Nv,u.getParentCanvasEntities=_t,u.getParentCanvasEntity=He,u.getParentEntryPoint=k9,u.getPassThroughCallableEntityReferenceSchema=ye,u.getPassThroughCallableEntityTypeSchema=Ls,u.getPlayableEntityReferenceSchema=yx,u.getPlayableEntityTypeSchema=px,u.getProject=T5,u.getPrototypeByType=ho,u.getReferenceEntityId=D,u.getReferencedEntitiesStateOrErrors=no,u.getReferencedEntityStateOrErrors=yd,u.getRelatedCanvasElementsOnTheLeft=gr,u.getRelatedCanvasElementsOnTheRight=Vn,u.getRootEntryPointScopeOwner=Md,u.getScopeOwner=ht,u.getTerminationReferenceSchema=Tx,u.getTerminationTypeSchema=mx,u.getUsedArgFromDeclaration=X9,u.getUsedReturnFromDeclaration=Q9,u.getValueReadingEntityReferenceSchema=Pb,u.getValueReadingEntityTypeSchema=dn,u.getValueWritingEntityReferenceSchema=tx,u.getValueWritingEntityTypeSchema=Xi,u.getVariableFromInputMapping=Rv,u.getVariableFromReturnVariablePointer=vv,u.getVariableReferenceSchema=Cn,u.getVariableTypeSchema=er,u.getVariablesFromArgumentDeclarations=uo,u.getVariablesFromInputMaps=bv,u.getVariablesFromOutputMapping=Iv,u.getVariablesFromOutputMaps=Pv,u.getVariablesFromReturnDeclarations=gv,u.getVariablesInSameOrHigherScope=nd,u.getWrites=Pd,u.groupCallsBasedOnParallelizableExecution=W9,u.handleAfterEntityImplementationSideEffects=mv,u.handleBeforeEntityImplementationSideEffects=fv,u.httpRequestBodyArgument=Pa,u.httpRequestBodyArgumentRef=Ly,u.httpRequestBodyDataType=Gy,u.httpRequestHeadersArgument=Ia,u.httpRequestHeadersArgumentRef=$y,u.httpRequestHeadersDataType=Vy,u.httpRequestMethodArgument=ga,u.httpRequestMethodArgumentRef=My,u.httpRequestMethodDataType=Ny,u.httpRequestMethodDataTypeRef=wy,u.httpRequestQueryParamsArgument=Vo,u.httpRequestQueryParamsArgumentRef=Cy,u.httpRequestQueryParamsDataType=By,u.httpRequestVariableURLArgument=va,u.httpRequestVariableURLArgumentRef=Sy,u.httpRequestVariableURLDataType=Oy,u.httpRequestVariableURLDataTypeRef=Dy,u.httpResponseBodyReturnDataType=Wy,u.httpResponseBodyReturnDataTypeRef=qy,u.httpResponseBodyReturnReturn=yi,u.httpResponseBodyReturnReturnRef=Jy,u.httpResponseCodeDataType=Uy,u.httpResponseCodeReturn=Lo,u.httpResponseCodeReturnRef=Fy,u.httpResponseHeadersDataType=ky,u.httpResponseHeadersDataTypeRef=xy,u.httpResponseHeadersReturn=Da,u.httpResponseHeadersReturnRef=jy,u.implement=lo,u.inferArgumentDeclarationDataType=jg,u.inferDataType=zs,u.inferInputMapDataType=kg,u.inferOutputMapDataType=Wg,u.inferVariableDeclarationDataType=Jg,u.inferVariableInstanceDataType=qg,u.initProject=Hv,u.iterateOverListActionDescriptor=jn,u.iterateOverListActionDescriptorListArgumentDeclaration=uh,u.iterateOverListActionDescriptorListArgumentDeclarationDataType=ch,u.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=lh,u.iterateOverListActionDescriptorListArgumentDeclarationParentRef=dh,u.iterateOverListActionDescriptorReturnDeclaration=oh,u.iterateOverListActionDescriptorReturnDeclarationParentRef=sh,u.joinListOperation=Do,u.joinListOperationError=_u,u.joinListOperationErrorParentRef=wu,u.joinListOperationFirstListArgument=Au,u.joinListOperationFirstListArgumentParentRef=Du,u.joinListOperationFirstListArgumentRef=Ru,u.joinListOperationFirstListDataType=bu,u.joinListOperationResultListDataType=Pu,u.joinListOperationResultListReturn=Bu,u.joinListOperationResultListReturnParentRef=Cu,u.joinListOperationResultListReturnRef=Iu,u.joinListOperationSecondListArgument=Ou,u.joinListOperationSecondListArgumentParentRef=Su,u.joinListOperationSecondListArgumentRef=gu,u.joinListOperationSecondListDataType=vu,u.joinListWithLastSeparator=N,u.joinStringOperation=pi,u.joinStringOperationError=fu,u.joinStringOperationErrorParentRef=hu,u.joinStringOperationFirstStringArgument=Ea,u.joinStringOperationFirstStringArgumentParentRef=uu,u.joinStringOperationFirstStringArgumentRef=au,u.joinStringOperationFirstStringDataType=su,u.joinStringOperationResultStringDataType=du,u.joinStringOperationResultStringReturn=ui,u.joinStringOperationResultStringReturnParentRef=yu,u.joinStringOperationResultStringReturnRef=cu,u.joinStringOperationSecondStringArgument=Ra,u.joinStringOperationSecondStringArgumentParentRef=pu,u.joinStringOperationSecondStringArgumentRef=ou,u.joinStringOperationSecondStringDataType=lu,u.jsonPrototype=go,u.keyValueParamBuiltInBaseEntity=Sa,u.keyValueParamBuiltInBaseEntityNameProperty=Eh,u.keyValueParamBuiltInBaseEntityNamePropertyDataTypeRef=rI,u.keyValueParamBuiltInBaseEntityNamePropertyParentRef=Th,u.keyValueParamBuiltInBaseEntityNamePropertyRef=mh,u.keyValueParamBuiltInBaseEntityValueProperty=gh,u.keyValueParamBuiltInBaseEntityValuePropertyDataTypeRef=aI,u.keyValueParamBuiltInBaseEntityValuePropertyParentRef=bh,u.keyValueParamBuiltInBaseEntityValuePropertyRef=Rh,u.lowercaseFirstLetter=Gg,u.manualFlowActionDescriptor=Fo,u.manualFlowActionDescriptorDeclarationReturnDeclaration=fh,u.manualFlowActionDescriptorDeclarationReturnDeclarationDataType=yh,u.manualFlowActionDescriptorDeclarationReturnDeclarationDataTypeParentRef=ph,u.manualFlowActionDescriptorDeclarationReturnDeclarationParentRef=hh,u.mapActionDescriptorToTypeItRepresents=i5,u.mergeEntityErrorsList=e4,u.mergeListOfEntities=Uv,u.methodDefaultValue=_y,u.mockClientProject=tb,u.moreThanOrEqualCondition=Br,u.moreThanOrEqualConditionLeftHandArgument=rm,u.moreThanOrEqualConditionLeftHandArgumentParentRef=nm,u.moreThanOrEqualConditionRightHandArgument=am,u.moreThanOrEqualConditionRightHandArgumentParentRef=im,u.notEmptyCondition=kn,u.notEmptyConditionArgument=Kf,u.notEmptyConditionRef=Qf,u.numberAdditionOperation=Ta,u.numberAdditionOperationError=tu,u.numberAdditionOperationErrorParentRef=eu,u.numberAdditionOperationFirstNumberArgument=vo,u.numberAdditionOperationFirstNumberArgumentRef=Jd,u.numberAdditionOperationFirstNumberDataType=Wd,u.numberAdditionOperationRef=Xd,u.numberAdditionOperationRefThree=Kd,u.numberAdditionOperationRefTwo=Qd,u.numberAdditionOperationResultNumberDataType=Zd,u.numberAdditionOperationResultNumberReturn=Po,u.numberAdditionOperationResultNumberReturnRef=zd,u.numberAdditionOperationSecondNumberArgument=Io,u.numberAdditionOperationSecondNumberArgumentRef=Hd,u.numberAdditionOperationSecondNumberDataType=Yd,u.numberPrototype=Be,u.numberValueAutogenerationSchema=Xl,u.parallelExecutionOperation=$t,u.parallelExecutionOperationError=Np,u.parallelExecutionOperationErrorParentRef=Mp,u.parallelExecutionOperationListOfExecutionResultsDataType=Bp,u.parallelExecutionOperationListOfExecutionResultsReturn=_o,u.parallelExecutionOperationListOfExecutionResultsReturnRef=Cp,u.parallelExecutionOperationListOfFunctionsArgument=wo,u.parallelExecutionOperationListOfFunctionsArgumentDatatype=Op,u.parallelExecutionOperationListOfFunctionsArgumentRef=Sp,u.parallelExecutionOperationListOfFunctionsBlueprint=Ap,u.parallelExecutionOperationRef=wp,u.parallelExecutionOperationRefThree=_p,u.persistedBuiltInBaseEntity=we,u.persistedBuiltInBaseEntityCreatedAtProperty=xf,u.persistedBuiltInBaseEntityCreatedAtPropertyDataType=Ff,u.persistedBuiltInBaseEntityCreatedAtPropertyDataTypeRef=EI,u.persistedBuiltInBaseEntityCreatedAtPropertyParentRef=Uf,u.persistedBuiltInBaseEntityCreatedAtPropertyRef=Gf,u.persistedBuiltInBaseEntityDatabaseProperty=mi,u.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=hI,u.persistedBuiltInBaseEntityDatabasePropertyParentRef=Cf,u.persistedBuiltInBaseEntityDatabasePropertyRef=Of,u.persistedBuiltInBaseEntityDeletedAtProperty=Lf,u.persistedBuiltInBaseEntityDeletedAtPropertyDataType=$f,u.persistedBuiltInBaseEntityDeletedAtPropertyDataTypeRef=TI,u.persistedBuiltInBaseEntityDeletedAtPropertyParentRef=Vf,u.persistedBuiltInBaseEntityDeletedAtPropertyRef=Nf,u.persistedBuiltInBaseEntityIdentifierProperty=Mf,u.persistedBuiltInBaseEntityIdentifierPropertyDataTypeRef=Bf,u.persistedBuiltInBaseEntityIdentifierPropertyParentRef=_f,u.persistedBuiltInBaseEntityIdentifierPropertyRef=wf,u.persistedBuiltInBaseEntityUpdatedAtProperty=Jf,u.persistedBuiltInBaseEntityUpdatedAtPropertyDataType=kf,u.persistedBuiltInBaseEntityUpdatedAtPropertyDataTypeRef=RI,u.persistedBuiltInBaseEntityUpdatedAtPropertyParentRef=qf,u.persistedBuiltInBaseEntityUpdatedAtPropertyRef=jf,u.processOutputGlobalValueDescriptorDataType=lm,u.processOutputGlobalValueDescriptorReturn=zo,u.processOutputGlobalValueDescriptorReturnRef=om,u.projectPublicationCompletedGlobalEvent=Ma,u.propertyToZodSchema=Im,u.relationalDatabaseBuiltInBaseEntity=Rn,u.relationalDatabaseBuiltInBaseEntityDefaultProperty=If,u.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=gf,u.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=vf,u.relationalDatabaseBuiltInBaseEntityIdentifierProperty=Ca,u.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=ff,u.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=mf,u.relationalDatabaseBuiltInBaseEntityMinSizeProperty=_a,u.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=Rf,u.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=bf,u.relationalDatabaseBuiltInBaseEntityPasswordProperty=wa,u.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=dI,u.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=Ef,u.relationalDatabaseBuiltInBaseEntityRef=Cr,u.relationalDatabaseBuiltInBaseEntityUsernameProperty=Ba,u.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=lI,u.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=Tf,u.resolveActionDescriptorName=tv,u.resolveBaseEntityName=Qg,u.resolveBuiltInBaseEntityDataTypeLabel=rd,u.resolveConditionOperatorLabel=Qs,u.resolveCustomEntityDataTypeLabel=id,u.resolveDataType=Zs,u.resolveDataTypeLabel=zg,u.resolveEntityDataTypeLabel=Xg,u.resolveEntityName=A,u.resolveFirstCallsSecond=H9,u.resolveFirstWritesSecond=Y9,u.resolvePrimitiveEntityName=ev,u.resolvePropertyDataTypeLabel=Zg,u.resolveSearchName=Kg,u.resolveVariableDataTypeLabel=G6,u.resolveVariableDeclarationDataTypeLabel=sr,u.resolveVariableInstanceDataTypeLabel=Yg,u.resolveVariableScope=$6,u.sequentialExecutionOperation=tn,u.sequentialExecutionOperationError=Qp,u.sequentialExecutionOperationErrorParentRef=Xp,u.sequentialExecutionOperationListOfExecutionResultsDataType=Yp,u.sequentialExecutionOperationListOfExecutionResultsReturn=No,u.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=Zp,u.sequentialExecutionOperationListOfExecutionResultsReturnRef=Hp,u.sequentialExecutionOperationListOfFunctionsArgument=Mo,u.sequentialExecutionOperationListOfFunctionsArgumentDatatype=Wp,u.sequentialExecutionOperationListOfFunctionsArgumentParentRef=zp,u.sequentialExecutionOperationListOfFunctionsArgumentRef=Jp,u.sequentialExecutionOperationListOfFunctionsBlueprint=qp,u.softDeletePersistedEntityMethod=Af,u.softDeletePersistedEntityMethodParentRef=Df,u.sortCallsBasedOnExecutionDependencies=Ev,u.sortChildrenEntitiesBasedOnExecutionDependencies=J9,u.splitListOperation=So,u.splitListOperationError=Zu,u.splitListOperationErrorParentRef=zu,u.splitListOperationFirstOutputListDataType=Fu,u.splitListOperationFirstOutputListReturn=Ju,u.splitListOperationFirstOutputListReturnParentRef=qu,u.splitListOperationFirstOutputListReturnRef=Ao,u.splitListOperationInputListArgument=xu,u.splitListOperationInputListArgumentParentRef=Uu,u.splitListOperationInputListArgumentRef=$u,u.splitListOperationInputListDataType=Vu,u.splitListOperationSecondOutputListDataType=Wu,u.splitListOperationSecondOutputListReturn=Yu,u.splitListOperationSecondOutputListReturnParentRef=Hu,u.splitListOperationSplitIndexArgument=ku,u.splitListOperationSplitIndexArgumentParentRef=ju,u.splitListOperationSplitIndexArgumentRef=Lu,u.splitListOperationSplitIndexDataType=Gu,u.stringPrototype=F,u.stringValueAutogenerationSchema=Zl,u.suggestNewIdForEntity=dd,u.test_primitive_entities_export=R5,u.toCamelCase=V6,u.toEntityState=Mt,u.toKebabCase=Hg,u.toLowerCaseKebabCase=Xs,u.toPascalCase=L6,u.untypedObjectPrototype=Xe,u.updateErrorsList=X,u.updateValueReader=ya,u.urlDefaultValue=Ay,u.uuidPrototype=ma,u.validateArgumentDeclarationName=ld,u.validateCalledByErrorIdInAction=V9,u.validateCalledByIdInAction=$9,u.validateCallers=dv,u.validateConditionEntityDeclaration=F9,u.validateCustomEntityName=Ks,u.validateDataOperation=xn,u.validateDataOperationDataToValidateArgument=fy,u.validateDataOperationDataToValidateArgumentParentRef=hy,u.validateDataOperationDataToValidateArgumentRef=py,u.validateDataOperationDataToValidateDataType=yy,u.validateDataOperationEntityToMatchTypeArgument=Ry,u.validateDataOperationEntityToMatchTypeArgumentParentRef=Ey,u.validateDataOperationEntityToMatchTypeArgumentRef=my,u.validateDataOperationEntityToMatchTypeDataType=Ty,u.validateDataOperationError=Iy,u.validateDataOperationErrorParentRef=vy,u.validateDataOperationOutputEntityDeclaration=gy,u.validateDataOperationOutputEntityDeclarationParentRef=by,u.validateEntryCaller=cv,u.validateErrorCaller=lv,u.validateFunctionCallDeclaration=pv,u.validateFunctionDeclarationName=ad,u.validateGeneratedEntityParentIsNotBuiltInEntity=w9,u.validateGeneration=C9,u.validateGenerationTarget=De,u.validateGenerationUpdate=B9,u.validateLoopEntityDeclaration=U9,u.validateName=F6,u.validateOperationEntityDeclaration=yv,u.validatePropertyName=od,u.validateReachability=mn,u.validateReadsValueInActionPayload=L9,u.validateReferenceObject=to,u.validateReferenceToOne=hd,u.validateReferences=Ge,u.validateReturnDeclarationName=cd,u.validateSuccessCaller=ov,u.validateValueReaderGenerationUpdate=da,u.validateValueWritter=bd,u.validateVariableDeclarationName=sd,u.validateVariableInternalCallUse=gd,u.valueAutogenerationCurrentDateAndTimeSchema=rb,u.valueAutogenerationGenericSchema=bs,u.valueAutogenerationOptions=Kl,u.valueAutogenerationOptionsSchema=nb,u.valueAutogenerationRandomBooleanSchema=zl,u.valueAutogenerationRandomDateBetweenSchema=pb,u.valueAutogenerationRandomDateFromSchema=db,u.valueAutogenerationRandomDateSchema=Is,u.valueAutogenerationRandomDateUntilSchema=ub,u.valueAutogenerationRandomNumberBetweenSchema=sb,u.valueAutogenerationRandomNumberFromSchema=ib,u.valueAutogenerationRandomNumberSchema=gs,u.valueAutogenerationRandomNumberUntilSchema=ab,u.valueAutogenerationRandomSchema=Wi,u.valueAutogenerationRandomTextBetweenSchema=cb,u.valueAutogenerationRandomTextFromSchema=ob,u.valueAutogenerationRandomTextSchema=vs,u.valueAutogenerationRandomTextUntilSchema=lb,u.valueAutogenerationRangeValueTypesSchema=Ji,u.valueAutogenerationUniqueSchema=Yl,u.waitOperation=ot,u.waitOperationMillisecondsNumberArgument=Un,u.waitOperationMillisecondsNumberArgumentRef=Lp,u.waitOperationMillisecondsNumberDataType=Gp,u.waitOperationOperationError=xp,u.waitOperationOperationErrorParentRef=Up,u.waitOperationRef=Fp,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
|
373
|
+
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:i}}get extendedProperties(){return O(this.extends.reduce((e,t)=>[...[...t.properties,...t.extendedProperties].filter(a=>!a.abstract),...e],[]))}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.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}}addSelfToProject(){if(this.parent.type===r.DataType){const e=this.parent;e.entity=this}else this.project.addCustomEntity(this);return this}setParent(e){return this.parent=e,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(){return this.initialized?this:(this.initialized=!0,this.properties=this.initialData.properties.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.methods=this.initialData.methods.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.abstractMethods=this.initialData.abstractMethods.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.extends=this.initialData.extends.map(e=>R(e,this.project)),this.implements=this.initialData.implements.map(e=>R(e,this.project)),this.addSuggestions(),this)}addSuggestions(){return this.implements.forEach(e=>{xx(this,e).forEach(a=>{const s=a.toJSON();s.id=`_suggestion--parent--${this.id}--${a.id}`;const o=R(s,this.project);o.suggestion=!0,o.setParent(this),o.initChildren(),this.addSuggestedProperty(o)}),jx(this,e).forEach(a=>{const s=`_suggestion--parent--${this.id}--${a.id}`,o=a.implementAsFunctionDeclaration(s),d=R(o,this.project);if(d.suggestion=!0,d.setParent(this),d.initChildren(),d.inputs.forEach(p=>{p.suggestion=!0}),d.returnStatements.length){const p=d.returnStatements[0];p.suggestion=!0,p.outputs.forEach(h=>{h.suggestion=!0})}this.addSuggestedMethod(d)})}),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,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,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.properties.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.methods.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.abstractMethods.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.suggestedProperties.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),this.suggestedMethods.forEach(s=>{const{affected:o,removed:d}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...d)}),{affected:O(i),removed:O(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.properties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.methods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.abstractMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedProperties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),{affected:O(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.extends.flatMap(i=>i.toFlat(e)),...this.implements.flatMap(i=>i.toFlat(e)),...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.extends.flatMap(i=>i.toFlatIds(e)),...this.implements.flatMap(i=>i.toFlatIds(e)),...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,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(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),implements:this.implements.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON()),parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,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(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),implements:this.implements.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference()),parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e)),...this.implements.flatMap(i=>i.toFlatJSON(e)),...this.extends.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){const e=this.parent.type===r.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(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.CustomEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.CustomEntity).flatMap(i=>i.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=Ux(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(){return new pe(this.toJSON(),this.project)}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t){return lo(this,e,t)}getAllInteractiveMethods(){const e=this.implements.filter(i=>i.type===r.CustomEntity||i.type===r.BuiltInBaseEntity&&i.interactive);return[...this.methods,...this.extends.flatMap(i=>i.getAllInteractiveMethods()),...e.flatMap(i=>i.getAllInteractiveMethods())]}};l(pe,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),l(pe,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),l(pe,"BASE_PROPERTIES",[...pe.MUTABLE_BASE_PROPERTIES,...pe.INMUTABLE_BASE_PROPERTIES]),l(pe,"MUTABLE_META_PROPERTIES",[...pe.MUTABLE_BASE_PROPERTIES,"x","y"]),l(pe,"INMUTABLE_META_PROPERTIES",[...pe.INMUTABLE_BASE_PROPERTIES]),l(pe,"META_PROPERTIES",[...pe.MUTABLE_META_PROPERTIES,...pe.INMUTABLE_META_PROPERTIES]),l(pe,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),l(pe,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),l(pe,"UPSTREAM_PROPERTIES",[...pe.MUTABLE_UPSTREAM_PROPERTIES,...pe.INMUTABLE_UPSTREAM_PROPERTIES]),l(pe,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),l(pe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(pe,"DOWNSTREAM_PROPERTIES",[...pe.MUTABLE_DOWNSTREAM_PROPERTIES,...pe.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(pe,"PROPERTIES",[...pe.META_PROPERTIES,...pe.UPSTREAM_PROPERTIES,...pe.DOWNSTREAM_PROPERTIES]);let Ir=pe;function s3(n){const e=T4(),t=n.toJSON();e.safeParse(t).success;const a=[];return X(n.errors,a)}class Ct{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"type",r.BuiltInBaseEntity);l(this,"abstract",!1);l(this,"static");l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"interactive",!1);l(this,"errors",[]);l(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(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.extends=this.initialData.extends.map(i=>R(i,this.project))}get extendedProperties(){return O(this.extends.reduce((e,t)=>{if(t instanceof Ct){const i=[...t.properties,...t.extendedProperties].filter(a=>!a.abstract);e.push(...i)}return e},[]))}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async load(){return this}remove(e={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.extends.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.extends.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.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(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.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=s3(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}clone(){return new Ct(this.toJSON(),this.project)}implement(e,t){return lo(this,e,t)}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(i=>i.type===r.BuiltInBaseEntity&&i.interactive||i.type===r.PrimitiveEntity).forEach(i=>{i instanceof Ct&&e.push(...i.getAllInteractiveMethods())})),e}}function o3(n){const e=l4(),t=n.toJSON();e.safeParse(t).success;const a=[];return X(n.errors,a)}class $t{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"type",r.PrimitiveEntity);l(this,"static");l(this,"abstract");l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"errors",[]);l(this,"project");this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.static=e.static,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.parent=this,a})}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async load(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.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(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.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=o3(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}clone(){return new $t(this.toJSON(),this.project)}getAllInteractiveMethods(){const e=[];return e.push(...this.methods),this.extends.filter(i=>i.type===r.BuiltInBaseEntity&&i.interactive||i.type===r.PrimitiveEntity).forEach(i=>{i instanceof Ct&&e.push(...i.getAllInteractiveMethods())}),e}}function fa(n,e){if(!n)throw new Error("Entity is null");const t=e.findSubscribedInstance(n);switch(n.type){case r.PrimitiveValue:return t||new li(n,e);case r.CustomEntity:return t||new Ir(n,e);case r.PrimitiveEntity:return t||new $t(n,e);case r.FunctionDeclaration:return t||new lr(n,e);case r.GlobalEvent:return t||new si(n,e);case r.DataType:return t||new ai(n,e);case r.Property:return t||new or(n,e);case r.FunctionCall:return t||new Rr(n,e);case r.Condition:return t||new ur(n,e);case r.Operation:return t||new cr(n,e);case r.VariableDeclaration:return t||new pr(n,e);case r.VariableInstance:return t||new yr(n,e);case r.OutputMap:return t||new fn(n,e);case r.ReturnDeclaration:return t||new Ot(n,e);case r.ArgumentDeclaration:return t||new mr(n,e);case r.InputMap:return t||new hn(n,e);case r.Project:return t||new $(n);case r.InstalledProject:return t||new fr(n,e);case r.ActionDescriptor:return t||new Ne(n,e);case r.ReturnStatement:return t||new Tr(n,e);case r.Loop:return t||new dr(n,e);case r.Search:return t||new hr(n,e);case r.ValueDescriptor:return t||new Er(n,e);case r.BuiltInBaseEntity:return t||new Ct(n,e);case r.InternalCall:return t||new oi(n,e);case r.ContinueStatement:return t||new yt(n,e);case r.BreakStatement:return t||new ci(n,e);default:throw new Error("Invalid entity type: "+n.type)}}function R(n,e){if(!n)throw new Error("Entity is null");const t=fa(n,e);return t.subscribe(),t}function l3(n,e){if(!n)throw new Error("Entity is null");switch(n.type){case r.PrimitiveValue:return li.fromGenerationTarget(n,e);case r.CustomEntity:return Ir.fromGenerationTarget(n,e);case r.FunctionDeclaration:return lr.fromGenerationTarget(n,e);case r.GlobalEvent:return si.fromGenerationTarget(n,e);case r.DataType:return ai.fromGenerationTarget(n,e);case r.Property:return or.fromGenerationTarget(n,e);case r.FunctionCall:return Rr.fromGenerationTarget(n,e);case r.Condition:return ur.fromGenerationTarget(n,e);case r.Operation:return cr.fromGenerationTarget(n,e);case r.VariableDeclaration:return pr.fromGenerationTarget(n,e);case r.VariableInstance:return yr.fromGenerationTarget(n,e);case r.OutputMap:return fn.fromGenerationTarget(n,e);case r.ReturnDeclaration:return Ot.fromGenerationTarget(n,e);case r.ArgumentDeclaration:return mr.fromGenerationTarget(n,e);case r.InputMap:return hn.fromGenerationTarget(n,e);case r.InstalledProject:return fr.fromGenerationTarget(n,e);case r.ReturnStatement:return Tr.fromGenerationTarget(n,e);case r.Loop:return dr.fromGenerationTarget(n,e);case r.Search:return hr.fromGenerationTarget(n,e);case r.ActionDescriptor:return Ne.fromGenerationTarget(n,e);case r.ValueDescriptor:return Er.fromGenerationTarget(n,e);case r.InternalCall:return oi.fromGenerationTarget(n,e);case r.ContinueStatement:return yt.fromGenerationTarget(n,e);case r.BreakStatement:return ci.fromGenerationTarget(n,e);default:throw new Error("Invalid entity type: "+n.type)}}const Y=class Y{constructor(e){l(this,"initialData");l(this,"id");l(this,"version");l(this,"type",r.Project);l(this,"name",null);l(this,"description",null);l(this,"x");l(this,"y");l(this,"entities",[]);l(this,"projects",[]);l(this,"functions",[]);l(this,"events",[]);l(this,"variableDeclarations",[]);l(this,"variableInstances",[]);l(this,"conditions",[]);l(this,"operations",[]);l(this,"functionCalls",[]);l(this,"loops",[]);l(this,"searches",[]);l(this,"primitives",[]);l(this,"builtInBaseEntities",[]);l(this,"operationDeclarations",[]);l(this,"globalEventActionDescriptors",[]);l(this,"loopDeclarations",[]);l(this,"conditionDeclarations",[]);l(this,"valueDescriptors",[]);l(this,"dataTypes",[]);l(this,"project");l(this,"instances",{});l(this,"builtInInstances",{});l(this,"errors",[]);l(this,"references",[]);this.initialData=e,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.x=0,this.y=0;try{Y.UUID||(Y.UUID=is==null?void 0:is())}catch(t){console.error("Error initializing UUID module",t),Y.UUID={uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:i=>i}}}static injectUUIDModule(e){Y.UUID=e}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[];return a.push(...De(i)),{errors:a,modifiedData:i}}async inject(...e){return await Promise.all(e.map(t=>new Promise(async i=>{await t.init(this),i(null)}))),this}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}addSelfToProject(){return 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(){return this.entities=this.initialData.entities.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.projects=this.initialData.projects.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.functions=this.initialData.functions.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.events=this.initialData.events.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.variableDeclarations=this.initialData.variableDeclarations.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.variableInstances=this.initialData.variableInstances.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.conditions=this.initialData.conditions.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.operations=this.initialData.operations.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.functionCalls=this.initialData.functionCalls.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.loops=this.initialData.loops.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.searches=this.initialData.searches.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.attachOrphanReferences(),this.validate(),this}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[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}findSubscribedInstance(e){return this.instances[e.id]||null}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getManaged(e){return 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}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e}={ignoreUpstream:!1}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{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.entities.flatMap(i=>i.toFlat(e)),...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e)),...this.projects.flatMap(i=>i.toFlat(e)),...this.variableDeclarations.flatMap(i=>i.toFlat(e)),...this.variableInstances.flatMap(i=>i.toFlat(e)),...this.conditions.flatMap(i=>i.toFlat(e)),...this.operations.flatMap(i=>i.toFlat(e)),...this.functionCalls.flatMap(i=>i.toFlat(e)),...this.loops.flatMap(i=>i.toFlat(e)),...this.searches.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),Array.from(e))}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,entities:this.entities.map(e=>e.toJSON()),functions:this.functions.map(e=>e.toJSON()),events:this.events.map(e=>e.toJSON()),projects:this.projects.map(e=>e.toJSON()),variableDeclarations:this.variableDeclarations.map(e=>e.toJSON()),variableInstances:this.variableInstances.map(e=>e.toJSON()),conditions:this.conditions.map(e=>e.toJSON()),operations:this.operations.map(e=>e.toJSON()),functionCalls:this.functionCalls.map(e=>e.toJSON()),loops:this.loops.map(e=>e.toJSON()),searches:this.searches.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+Y.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,entities:this.entities.map(e=>e.toReference()),functions:this.functions.map(e=>e.toReference()),events:this.events.map(e=>e.toReference()),projects:this.projects.map(e=>e.toReference()),variableDeclarations:this.variableDeclarations.map(e=>e.toReference()),variableInstances:this.variableInstances.map(e=>e.toReference()),conditions:this.conditions.map(e=>e.toReference()),operations:this.operations.map(e=>e.toReference()),functionCalls:this.functionCalls.map(e=>e.toReference()),loops:this.loops.map(e=>e.toReference()),searches:this.searches.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlatJSON(e)),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e)),...this.projects.flatMap(i=>i.toFlatJSON(e)),...this.variableDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.variableInstances.flatMap(i=>i.toFlatJSON(e)),...this.conditions.flatMap(i=>i.toFlatJSON(e)),...this.operations.flatMap(i=>i.toFlatJSON(e)),...this.functionCalls.flatMap(i=>i.toFlatJSON(e)),...this.loops.flatMap(i=>i.toFlatJSON(e)),...this.searches.flatMap(i=>i.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(i=>i.toFlatGenerationTarget(e)),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e)),...this.projects.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableInstances.flatMap(i=>i.toFlatGenerationTarget(e)),...this.conditions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.operations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functionCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.loops.flatMap(i=>i.toFlatGenerationTarget(e)),...this.searches.flatMap(i=>i.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=Nx(),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 new Y(this.toJSON())}getCustomEntity(e){return this.entities.find(t=>t.id===e)||null}addCustomEntityFromTransfer(e){const t=R(e,this);return this.addCustomEntity(t),t}addCustomEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=R(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=R(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=R(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=R(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=R(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=R(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=R(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=R(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=R(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=R(e,this);return this.addSearch(t),this}addSearch(e){return this.searches.includes(e)||this.searches.push(e),this}removeCustomEntity(e){const t=this.entities.findIndex(i=>i.id===e.id);if(t>-1){const i=this.entities[t];return this.entities.splice(t,1),i}return null}removeFunctionDeclaration(e){const t=this.functions.findIndex(i=>i.id===e.id);if(t>-1){const i=this.functions[t];return this.functions.splice(t,1),i}return null}removeExternalProject(e){const t=this.projects.findIndex(i=>i.id===e.id);if(t>-1){const i=this.projects[t];return this.projects.splice(t,1),i}return null}removeGlobalEvent(e){const t=this.events.findIndex(i=>i.id===e.id);if(t>-1){const i=this.events[t];return this.events.splice(t,1),i}return null}removeTopLevelVariableDeclaration(e){if(e.type!==r.VariableDeclaration)return null;const t=this.variableDeclarations.findIndex(i=>i.id===e.id);if(t>-1){const i=this.variableDeclarations[t];return this.variableDeclarations.splice(t,1),i}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,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.operations.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.loops.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.searches.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.conditions.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.loops.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.searches.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const a=Ie(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.functionCalls.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.conditions.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.operations.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.loops.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[]),...this.searches.reduce((t,i)=>{const a=Z(i);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[])]}getVariableDeclarations(){return O([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=Z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(i=>{if(!i.declaration){const a=i.initialData,s=a.declaration.entityId||a.declaration.id,o=t.find(d=>d.id===s);o&&i.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===_.PERSISTED_ENTITY)||null}};l(Y,"UUID",{uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),l(Y,"MUTABLE_BASE_PROPERTIES",["name","description"]),l(Y,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(Y,"BASE_PROPERTIES",[...Y.MUTABLE_BASE_PROPERTIES,...Y.INMUTABLE_BASE_PROPERTIES]),l(Y,"MUTABLE_META_PROPERTIES",[...Y.MUTABLE_BASE_PROPERTIES,"x","y"]),l(Y,"INMUTABLE_META_PROPERTIES",[...Y.INMUTABLE_BASE_PROPERTIES]),l(Y,"META_PROPERTIES",[...Y.MUTABLE_META_PROPERTIES,...Y.INMUTABLE_META_PROPERTIES]),l(Y,"MUTABLE_UPSTREAM_PROPERTIES",[]),l(Y,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),l(Y,"UPSTREAM_PROPERTIES",[...Y.MUTABLE_UPSTREAM_PROPERTIES,...Y.INMUTABLE_UPSTREAM_PROPERTIES]),l(Y,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),l(Y,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(Y,"DOWNSTREAM_PROPERTIES",[...Y.MUTABLE_DOWNSTREAM_PROPERTIES,...Y.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(Y,"PROPERTIES",[...Y.META_PROPERTIES,...Y.UPSTREAM_PROPERTIES,...Y.DOWNSTREAM_PROPERTIES]);let $=Y;class kv extends Ne{constructor(t){super(Vt,t);l(this,"id",Pe.Parallel);l(this,"name",Pe.Parallel);l(this,"description","Execute a list of actions one after the other");l(this,"version",1);l(this,"autoexecutable",!0);l(this,"initialData",Vt);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");this.project=t,this.fixedArguments=Vt.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=Vt.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=Vt.error?R(Vt.error,this.project):null}}class qv extends Ne{constructor(t){super(ot,t);l(this,"id",ot.id);l(this,"name",ot.name);l(this,"description",ot.description);l(this,"version",ot.version);l(this,"autoexecutable",!1);l(this,"initialData",ot);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");this.project=t,this.fixedArguments=ot.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=ot.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=ot.error?R(ot.error,this.project):null}}class Jv extends Ne{constructor(t){super(tn,t);l(this,"id",Pe.Sequential);l(this,"name",Pe.Sequential);l(this,"description","Execute a list of actions one after the other");l(this,"version",1);l(this,"autoexecutable",!0);l(this,"initialData",tn);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");this.project=t,this.fixedArguments=tn.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=tn.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=tn.error?R(tn.error,this.project):null}}function c3(n){const e=[new Jv(n),new kv(n),new qv(n),new Ne(hi,n),new Ne(Or,n),new Ne(xn,n),new Ne(ba,n),new Ne(Do,n),new Ne(Oo,n),new Ne(So,n),new Ne(Ta,n),new Ne(pi,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.operationDeclarations=e,e}class Wv extends Ct{constructor(t){super(we,t);l(this,"initialData");l(this,"id",_.PERSISTED_ENTITY);l(this,"version",1);l(this,"name",_.PERSISTED_ENTITY);l(this,"description",we.description);l(this,"type",r.BuiltInBaseEntity);l(this,"abstract",we.abstract);l(this,"static",we.static);l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"errors",[]);l(this,"project");this.initialData=we,this.project=t,this.id=we.id,this.version=we.version,this.name=we.name,this.static=we.static,this.abstract=we.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.extends=this.initialData.extends.map(i=>R(i,this.project))}}function d3(n){const e=[new Wv(n),new Ct(Oa,n),new Ct(Rn,n),new Ct(Jo,n),new Ct(Sa,n)];return e.forEach(t=>{n.subscribeBuiltInInstance(t)}),n.builtInBaseEntities=e,e}function u3(n){const e=[new $t(F,n),new $t(Fn,n),new $t(Be,n),new $t(Xe,n),new $t(En,n),new $t(Sr,n),new $t(ma,n),new $t(go,n)];return e.forEach(t=>{n.subscribeBuiltInInstance(t)}),n.primitives=e,e}function p3(n){const e=[new Ne(Ma,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.globalEventActionDescriptors=e,e}function y3(n){const e=[new Ne(jn,n),new Ne(Fo,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.loopDeclarations=e,e}function h3(n){const e=[new Er(zo,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.valueDescriptors=e,e}function f3(n){const e=[new Ne(kn,n),new Ne(Br,n)];return e.forEach(t=>{t.initChildren()}),n.conditionDeclarations=e,e}const Pr={},To={};async function m3(n,e={}){const t={...tb};return t.id=n.id,e.empty?{data:{id:n.id,type:r.Project,version:1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]}}:{data:t}}function Hv(n){const e=new $(n);return u3(e),d3(e),c3(e),p3(e),y3(e),h3(e),f3(e),e.initChildren(),e}async function T3(n,e={}){try{if(n.id&&Pr[n.id])return Pr[n.id];if(n.id&&To[n.id])return await To[n.id],Pr[n.id];const t=m3(n,e);n.id&&(To[n.id]=t);const i=await t;if(i.data){const a=Hv(i.data);return Pr[n.id]=a,n.id&&delete To[n.id],a}return null}catch(t){return console.error("Error fetching project: ",t),null}}function E3(n){return Pr[n.id]&&delete Pr[n.id],null}const R3="test_primitive_entities_export";u.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Rd,u.ActionDescriptorState=Ne,u.ActionDescriptorValuesType=L,u.ActionInputMapState=T9,u.ActionOutputMapState=b9,u.AppendToListOperationInputIds=cp,u.AppendToListOperationOutputIds=dp,u.ArgumentDeclarationState=mr,u.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=fd,u.BUILT_IN_BASE_ENTITY_IDS=Ve,u.BUILT_IN_ENTITY_TYPES=Ar,u.BaseCanvasDraggableState=t9,u.BaseEntityNames=_,u.BaseState=e9,u.BaseValueDescriptorIds=$o,u.BreakStatementState=ci,u.BuiltInBaseEntityState=Ct,u.CACHED_PROJECTS_BY_ID=Pr,u.CALLABLE_ENTITIES_EXPLANATION=_9,u.CALLABLE_TYPES=Tn,u.CALLER_ENTITIES_EXPLANATION=av,u.CALLER_TYPES=en,u.CALLS_UPDATE_EXPLANATION=Nn,u.COMPARISON_CONDITIONS=sm,u.CONDITIONS=II,u.CUSTOM_ENTITY_OPERATIONS=Py,u.CallableEntityClass=r9,u.CallerEntityClass=ud,u.ChildEntityState=n9,u.ComparisonOperatorTypes=Se,u.ConditionState=ur,u.ContinueStatementState=yt,u.CreateNewInputIds=ey,u.CreateNewOutputIds=ty,u.CustomEntityState=Ir,u.DRAGGABLE_CALLABLE_TYPES=Ro,u.DRAGGABLE_CALLER_TYPES=Vd,u.DRAGGABLE_ELEMENT_TYPES=bo,u.DRAGGABLE_EXECUTABLE_TYPES=Qv,u.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=Eo,u.DataTypeCompatibilityTypes=_t,u.DataTypeParentChildRelation=qe,u.DataTypeState=ai,u.ENTITIES_WITH_VALLUES_EXPLANATION=ro,u.ENTITY_TYPES=Kv,u.ENTITY_WITH_LOGIC_SCOPE_TYPES=st,u.ENTITY_WITH_NAMES_TYPES=Ld,u.ENTITY_WITH_VALUE_TYPES=$d,u.ENTRY_POINT_ENTITIES_EXPLANATION=ca,u.ENTRY_POINT_TYPES=$e,u.EVENT_TYPES=Dr,u.EXECUTABLE_TYPES=Xv,u.EXECUTION_OPERATIONS=Kp,u.EntityError=Xn,u.EntityErrorSeverity=f,u.EntityGenerationError=E,u.EntityGenerationErrorCode=y,u.EntityInstanceErrorCode=S,u.EntityOperations=Ze,u.EntityType=r,u.EntityWithLogicScopeClass=o9,u.EntityWithValueClass=s9,u.EntryPointEntityClass=i9,u.ExecutionOperations=Pe,u.FunctionCallState=Rr,u.FunctionDeclarationState=lr,u.GLOBAL_EVENT_DECLARATIONS=PI,u.GetLastInListOperationInputIds=Xu,u.GetLastInListOperationOutputIds=Qu,u.GlobalEventNames=Kt,u.GlobalEventState=si,u.HTTPOperations=Ye,u.HTTP_OPERATIONS=ih,u.InputMapState=hn,u.InstalledProjectState=fr,u.InternalCallState=oi,u.JoinListOperationInputIds=Tu,u.JoinListOperationOutputIds=Eu,u.JoinStringOperationInputIds=ru,u.JoinStringOperationOutputIds=iu,u.LIST_OPERATIONS=Ip,u.ListOperations=k,u.LoopState=dr,u.LoopTypes=je,u.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=$n,u.NUMBER_OPERATIONS=nu,u.NumberAdditionOperationInputIds=kd,u.NumberAdditionOperationOutputIds=qd,u.NumberOperations=at,u.OPERATION_DECLARATIONS=tI,u.OperationState=cr,u.OutputMapParentChildRelation=Nd,u.OutputMapState=fn,u.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=io,u.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Mn,u.PASS_THROUGH_CALLABLE_TYPES=_e,u.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=Ed,u.ParallelExecutionOperation=kv,u.ParallelExecutionOperationInputIds=Pp,u.ParallelExecutionOperationOutputIds=Dp,u.PassThroughCallableEntityClass=a9,u.PersistedEntity=Wv,u.PersistedEntityMethods=It,u.PrimitiveEntityState=$t,u.PrimitiveTypes=v,u.PrimitiveValueState=li,u.ProjectState=$,u.PropertyState=or,u.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=M9,u.ReturnDeclarationState=Ot,u.ReturnStatementState=Tr,u.STANDALONE_CONDITIONS=em,u.STRING_OPERATIONS=mu,u.ScopeCompatibilityType=mo,u.SearchState=hr,u.SequentialExecutionOperation=Jv,u.SequentialExecutionOperationInputIds=jp,u.SequentialExecutionOperationOutputIds=kp,u.SharedEntityErrorCode=g,u.SharedStateFunctionality=nv,u.SplitListOperationInputIds=Mu,u.SplitListOperationOutputIds=Nu,u.StandaloneOperatorTypes=Bt,u.StringOperations=ve,u.TERMINATION_TYPES=Oe,u.USER_MANAGED_ENTITY_TYPES=eI,u.UserManagedEntityStateFunctionality=K6,u.VALUE_READING_ENTITIES_EXPLANATION=Td,u.VALUE_READING_TYPES=Gn,u.VALUE_WRITING_ENTITIES_EXPLANATION=sv,u.VALUE_WRITING_TYPES=Ce,u.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=md,u.VARIABLE_TYPES=Fe,u.ValidationInputIds=dy,u.ValidationOutputIds=uy,u.ValueAutogenerationType=xe,u.ValueDescriptorParentChildRelation=C,u.ValueDescriptorState=Er,u.ValueReadingEntityClass=oa,u.ValueWritingEntityClass=la,u.VariableDeclarationState=pr,u.VariableInputMapState=m9,u.VariableInstanceState=yr,u.VariableOutputMapState=R9,u.WaitOperation=qv,u.WaitOperationInputIds=$p,u.WaitOperationOutputIds=Vp,u._VALUE_READING_TYPES=zv,u._VALUE_WRITING_TYPES=Zv,u.appendToListOperation=ba,u.appendToListOperationElementToAppendArgument=Bo,u.appendToListOperationElementToAppendArgumentParentRef=Ep,u.appendToListOperationElementToAppendArgumentRef=yp,u.appendToListOperationError=vp,u.appendToListOperationErrorParentRef=gp,u.appendToListOperationListArgument=Co,u.appendToListOperationListArgumentParentRef=Tp,u.appendToListOperationListArgumentRef=up,u.appendToListOperationListDataType=pp,u.appendToListOperationResultListDataType=mp,u.appendToListOperationResultListReturn=bp,u.appendToListOperationResultListReturnParentRef=Rp,u.appendToListOperationResultListReturnRef=fp,u.appendToListOperationSecondListDataType=hp,u.asGenerationActionExample=Qt,u.baseHttpRequestFunctionDeclaration=hi,u.baseHttpRequestFunctionDeclarationErrorValueDescriptor=Go,u.baseHttpRequestFunctionDeclarationErrorValueDescriptorDatatype=rh,u.baseHttpRequestFunctionDeclarationErrorValueDescriptorRef=nh,u.baseHttpRequestFunctionDeclarationRef=Qy,u.baseHttpRequestFunctionDeclarationRefEight=eh,u.baseHttpRequestFunctionDeclarationRefFive=Zy,u.baseHttpRequestFunctionDeclarationRefFour=zy,u.baseHttpRequestFunctionDeclarationRefNine=th,u.baseHttpRequestFunctionDeclarationRefSeven=Ky,u.baseHttpRequestFunctionDeclarationRefSix=Xy,u.baseHttpRequestFunctionDeclarationRefThree=Yy,u.baseHttpRequestFunctionDeclarationRefTwo=Hy,u.booleanPrototype=Fn,u.capitalizeFirstLetter=Hs,u.checkAreCustomEntitiesCompatibleAsDataType=Ug,u.checkAreDataTypesCompatible=Ys,u.checkArePropertiesCompatibleAsDataType=Fg,u.checkIsBranchDependentButNotDirectlyOnBranch=ua,u.checkIsBranchDependentOnBranch=j9,u.checkIsCallableEntityReachable=ha,u.checkIsCanvasEntity=r3,u.checkIsDetachedBranch=Vv,u.checkIsDetachedBranchShallow=_d,u.checkIsGlobalVariable=n3,u.checkIsGloballyDeclared=wd,u.checkIsMethod=Fv,u.checkIsNestedScope=fo,u.checkScopeCompatibility=pa,u.createEntityError=j,u.createNewInstanceOperation=Or,u.createNewInstanceOperationEntityToInstanciateArgument=ay,u.createNewInstanceOperationEntityToInstanciateArgumentRef=ny,u.createNewInstanceOperationEntityToInstanciateDataType=ry,u.createNewInstanceOperationError=cy,u.createNewInstanceOperationErrorParentRef=ly,u.createNewInstanceOperationOutputEntityDeclaration=oy,u.createNewInstanceOperationOutputEntityDeclarationParentRef=sy,u.createNewInstanceOperationRef=iy,u.createSemanticId=Xt,u.createStateFromGenerationTargetType=l3,u.createStateFromType=fa,u.createStateFromTypeAndSubscribe=R,u.cronJobBuiltInBaseEntity=Jo,u.cronJobBuiltInBaseEntityExpressionProperty=Zf,u.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=bI,u.cronJobBuiltInBaseEntityExpressionPropertyRef=Yf,u.cronJobBuiltInBaseEntityRef=zf,u.cronJobTriggeredFunctionDeclarationBlueprint=qo,u.cronJobTriggeredFunctionDeclarationBlueprintParentRef=Wf,u.customEntityToZodSchema=Pm,u.dataTypeCompatibilityToErrorExplanation=hv,u.datePrototype=Sr,u.dateValueAutogenerationSchema=Ql,u.deletePersistedEntityMethod=ko,u.deletePersistedEntityMethodParentRef=Pf,u.deleteRootProject=E3,u.endpointBuiltInBaseEntity=Oa,u.endpointBuiltInBaseEntityRef=Dh,u.endpointBuiltInBaseEntityRefFour=hf,u.endpointBuiltInBaseEntityRefThree=Nh,u.endpointBuiltInBaseEntityRefTwo=Bh,u.endpointBuiltInCorsProperty=Ah,u.endpointBuiltInCorsPropertyDataType=Ph,u.endpointBuiltInCorsPropertyDataTypeRef=vh,u.endpointBuiltInCorsPropertyRef=Ih,u.endpointBuiltInMethodProperty=xo,u.endpointBuiltInMethodPropertyDataType=Mh,u.endpointBuiltInMethodPropertyDataTypeRef=wh,u.endpointBuiltInMethodPropertyRef=_h,u.endpointBuiltInPathProperty=Uo,u.endpointBuiltInPathPropertyDataType=Ch,u.endpointBuiltInPathPropertyDataTypeRef=Sh,u.endpointBuiltInPathPropertyRef=Oh,u.endpointPathParamsArgumentDeclaration=zh,u.endpointPathParamsArgumentDeclarationRef=qh,u.endpointPathParamsVariableDataType=Jh,u.endpointPathParamsVariableDataTypeRef=kh,u.endpointReachedTriggerActionDescriptor=jo,u.endpointReachedTriggerActionDescriptorRef=Wh,u.endpointReachedTriggerActionDescriptorRefFour=Qh,u.endpointReachedTriggerActionDescriptorRefThree=Zh,u.endpointReachedTriggerActionDescriptorRefTwo=Yh,u.endpointRequestBodyArgumentDeclaration=Kh,u.endpointRequestBodyArgumentDeclarationRef=Gh,u.endpointRequestBodyVariableDataType=Fh,u.endpointRequestHeadersArgumentDeclaration=Hh,u.endpointRequestHeadersArgumentDeclarationRef=Vh,u.endpointRequestHeadersVariableDataType=Lh,u.endpointRequestHeadersVariableDataTypeRef=$h,u.endpointRequestQueryParamsArgumentDeclaration=Xh,u.endpointRequestQueryParamsArgumentDeclarationRef=xh,u.endpointRequestQueryParamsVariableDataType=jh,u.endpointRequestQueryParamsVariableDataTypeRef=Uh,u.endpointResponseBodyDataType=uf,u.endpointResponseBodyReturnDeclaration=yf,u.endpointResponseBodyReturnDeclarationRef=df,u.endpointResponseCodeDataType=tf,u.endpointResponseCodeReturnDeclaration=rf,u.endpointResponseCodeReturnDeclarationRef=ef,u.endpointResponseHeadersDataType=of,u.endpointResponseHeadersDataTypeRef=af,u.endpointResponseHeadersReturnDeclaration=cf,u.endpointResponseHeadersReturnDeclarationRef=sf,u.endpointReturnStatementRef=nf,u.endpointReturnStatementRefThree=pf,u.endpointReturnStatementRefTwo=lf,u.enumOptionsProperty=jd,u.enumOptionsPropertyDataType=Ud,u.enumOptionsPropertyDataTypeRef=Gd,u.enumOptionsPropertyRef=Fd,u.enumPrototype=En,u.enumPrototypeRef=xd,u.executionBuiltInEntity=Ho,u.executionBuiltInEntityAbortMethod=Wo,u.executionBuiltInEntityAbortMethodParentRef=Xf,u.filterOutDuplicateEntities=O,u.filterOutDuplicateErrors=KF,u.findReferenceToSelfInList=Ov,u.findReferencesToSelfInProject=Z9,u.flattenCalls=br,u.flattenCanvasAncestorsUntil=co,u.flattenCustomEntityExtensionAndImplementationTypes=Mv,u.flattenCustomEntityExtensionTypes=yo,u.flattenCustomEntityExtensions=Od,u.flattenCustomEntityImplementations=Cd,u.flattenCustomEntityImplementionTypes=po,u.flattenDerivedCanvasEntities=vt,u.flattenDetachedBranch=Gv,u.flattenElementCalls=Ie,u.flattenProjectElements=Sv,u.flattenRelatedCanvasElementsOnTheLeft=_v,u.flattenRelatedCanvasElementsOnTheRight=wv,u.flattenVariableReads=Av,u.flattenVariableWrites=Dv,u.flattenVariables=Z,u.fromZodParseToEntityGenerationErrors=pd,u.generate=bD,u.generateActionExample=N9,u.generateExecutionDataType=xg,u.generateMutablePropertiesExplanation=eo,u.generateRandomBoolean=Zm,u.generateRandomDate=Om,u.generateRandomDateAfter=Dm,u.generateRandomDateBefore=Am,u.generateRandomDateBetweenRange=Sm,u.generateRandomNumber=Jm,u.generateRandomNumberAfter=jm,u.generateRandomNumberBefore=km,u.generateRandomNumberBetweenRange=qm,u.generateRandomText=zm,u.generateRandomTextAfter=Wm,u.generateRandomTextBefore=Hm,u.generateRandomTextBetweenRange=Ym,u.generateUniqueUUID=xm,u.getAllActionDescriptorsForConditions=oo,u.getAllActionDescriptorsForGlobalEvents=ao,u.getAllActionDescriptorsForLoops=so,u.getAllActionDescriptorsForOperations=G9,u.getAllGloballyDeclaredFunctionDeclarationsExplanation=uv,u.getBaseBuiltInEntities=Ln,u.getBaseSchemaBasedOnType=rv,u.getBuiltInEntityOwner=vr,u.getCallableEntityReferenceSchema=ke,u.getCallableEntityTypeSchema=Ab,u.getCallerEntityReferenceSchema=ix,u.getCallerEntityTypeSchema=rx,u.getCalls=Id,u.getCanvasEntitiesDerivedFromInternalCalls=Bv,u.getCanvasEntitiesDerivedFromWrites=di,u.getCanvasEntityDerivedFromValueReadingEntity=Sd,u.getCanvasEntityReferenceSchema=gx,u.getCanvasEntityTypeSchema=bx,u.getChildrenEntityWithValues=q9,u.getCommonAncestor=vd,u.getCommonChildren=Tv,u.getDeclaration=td,u.getDeepestScope=jv,u.getDraggableCallableEntityReferenceSchema=Ob,u.getDraggableCallableEntityTypeSchema=Sb,u.getDraggableCallerEntityReferenceSchema=sx,u.getDraggableCallerEntityTypeSchema=ax,u.getDraggableExecutableEntityReferenceSchema=dx,u.getDraggableExecutableEntityTypeSchema=cx,u.getDraggablePassThroughCallableEntityReferenceSchema=Fs,u.getDraggablePassThroughCallableEntityTypeSchema=Gs,u.getDraggablePlayableEntityReferenceSchema=fx,u.getDraggablePlayableEntityTypeSchema=hx,u.getEntityArgumentDeclarations=Dd,u.getEntityInputMaps=Cv,u.getEntityOutputMaps=K9,u.getEntityReferenceSchema=Rx,u.getEntityReturnDeclarations=Ad,u.getEntityTypeSchema=Ex,u.getEntityWithLogicScopeReferenceSchema=un,u.getEntityWithLogicScopeTypeSchema=ux,u.getEntityWithValueReferenceSchema=Db,u.getEntityWithValueTypeSchema=nx,u.getEntryPointEntityReferenceSchema=Ue,u.getEntryPointEntityTypeSchema=Bn,u.getEventEntityReferenceSchema=Vs,u.getEventEntityTypeSchema=$s,u.getExecutableEntityReferenceSchema=lx,u.getExecutableEntityTypeSchema=ox,u.getExtendedBuiltInEntity=e3,u.getExtendedCustomEntity=$v,u.getGenerationTargetSchemaBasedOnType=iv,u.getHeadIfPartOfDetachedBranch=Lv,u.getHighestScope=xv,u.getImplementedBuiltInEntity=t3,u.getIsInteractive=Bd,u.getLastInListOperation=Oo,u.getLastInListOperationError=lp,u.getLastInListOperationErrorParentRef=op,u.getLastInListOperationInputListArgument=ip,u.getLastInListOperationInputListArgumentParentRef=rp,u.getLastInListOperationInputListArgumentRef=Ku,u.getLastInListOperationInputListDataType=ep,u.getLastInListOperationOutputElementDataType=np,u.getLastInListOperationOutputElementReturn=sp,u.getLastInListOperationOutputElementReturnParentRef=ap,u.getLastInListOperationOutputElementReturnRef=tp,u.getLinkedEntitiesFromArgumentDeclaration=z9,u.getLowestPersistedEntityImplementation=Nv,u.getParentCanvasEntities=Mt,u.getParentCanvasEntity=He,u.getParentEntryPoint=k9,u.getPassThroughCallableEntityReferenceSchema=ye,u.getPassThroughCallableEntityTypeSchema=Ls,u.getPlayableEntityReferenceSchema=yx,u.getPlayableEntityTypeSchema=px,u.getProject=T3,u.getPrototypeByType=ho,u.getReferenceEntityId=D,u.getReferencedEntitiesStateOrErrors=no,u.getReferencedEntityStateOrErrors=yd,u.getRelatedCanvasElementsOnTheLeft=gr,u.getRelatedCanvasElementsOnTheRight=Vn,u.getRootEntryPointScopeOwner=Md,u.getScopeOwner=ht,u.getTerminationReferenceSchema=Tx,u.getTerminationTypeSchema=mx,u.getUsedArgFromDeclaration=X9,u.getUsedReturnFromDeclaration=Q9,u.getValueReadingEntityReferenceSchema=Pb,u.getValueReadingEntityTypeSchema=dn,u.getValueWritingEntityReferenceSchema=tx,u.getValueWritingEntityTypeSchema=Xi,u.getVariableFromInputMapping=Rv,u.getVariableFromReturnVariablePointer=vv,u.getVariableReferenceSchema=Cn,u.getVariableTypeSchema=er,u.getVariablesFromArgumentDeclarations=uo,u.getVariablesFromInputMaps=bv,u.getVariablesFromOutputMapping=Iv,u.getVariablesFromOutputMaps=Pv,u.getVariablesFromReturnDeclarations=gv,u.getVariablesInSameOrHigherScope=nd,u.getWrites=Pd,u.groupCallsBasedOnParallelizableExecution=W9,u.handleAfterEntityImplementationSideEffects=mv,u.handleBeforeEntityImplementationSideEffects=fv,u.httpRequestBodyArgument=Pa,u.httpRequestBodyArgumentRef=Ly,u.httpRequestBodyDataType=Gy,u.httpRequestHeadersArgument=Ia,u.httpRequestHeadersArgumentRef=$y,u.httpRequestHeadersDataType=Vy,u.httpRequestMethodArgument=ga,u.httpRequestMethodArgumentRef=My,u.httpRequestMethodDataType=Ny,u.httpRequestMethodDataTypeRef=wy,u.httpRequestQueryParamsArgument=Vo,u.httpRequestQueryParamsArgumentRef=Cy,u.httpRequestQueryParamsDataType=By,u.httpRequestVariableURLArgument=va,u.httpRequestVariableURLArgumentRef=Sy,u.httpRequestVariableURLDataType=Oy,u.httpRequestVariableURLDataTypeRef=Dy,u.httpResponseBodyReturnDataType=Wy,u.httpResponseBodyReturnDataTypeRef=qy,u.httpResponseBodyReturnReturn=yi,u.httpResponseBodyReturnReturnRef=Jy,u.httpResponseCodeDataType=Uy,u.httpResponseCodeReturn=Lo,u.httpResponseCodeReturnRef=Fy,u.httpResponseHeadersDataType=ky,u.httpResponseHeadersDataTypeRef=xy,u.httpResponseHeadersReturn=Da,u.httpResponseHeadersReturnRef=jy,u.implement=lo,u.inferArgumentDeclarationDataType=jg,u.inferDataType=zs,u.inferInputMapDataType=kg,u.inferOutputMapDataType=Wg,u.inferVariableDeclarationDataType=Jg,u.inferVariableInstanceDataType=qg,u.initProject=Hv,u.iterateOverListActionDescriptor=jn,u.iterateOverListActionDescriptorListArgumentDeclaration=uh,u.iterateOverListActionDescriptorListArgumentDeclarationDataType=ch,u.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=lh,u.iterateOverListActionDescriptorListArgumentDeclarationParentRef=dh,u.iterateOverListActionDescriptorReturnDeclaration=oh,u.iterateOverListActionDescriptorReturnDeclarationParentRef=sh,u.joinListOperation=Do,u.joinListOperationError=_u,u.joinListOperationErrorParentRef=wu,u.joinListOperationFirstListArgument=Au,u.joinListOperationFirstListArgumentParentRef=Du,u.joinListOperationFirstListArgumentRef=Ru,u.joinListOperationFirstListDataType=bu,u.joinListOperationResultListDataType=Pu,u.joinListOperationResultListReturn=Bu,u.joinListOperationResultListReturnParentRef=Cu,u.joinListOperationResultListReturnRef=Iu,u.joinListOperationSecondListArgument=Ou,u.joinListOperationSecondListArgumentParentRef=Su,u.joinListOperationSecondListArgumentRef=gu,u.joinListOperationSecondListDataType=vu,u.joinListWithLastSeparator=N,u.joinStringOperation=pi,u.joinStringOperationError=fu,u.joinStringOperationErrorParentRef=hu,u.joinStringOperationFirstStringArgument=Ea,u.joinStringOperationFirstStringArgumentParentRef=uu,u.joinStringOperationFirstStringArgumentRef=au,u.joinStringOperationFirstStringDataType=su,u.joinStringOperationResultStringDataType=du,u.joinStringOperationResultStringReturn=ui,u.joinStringOperationResultStringReturnParentRef=yu,u.joinStringOperationResultStringReturnRef=cu,u.joinStringOperationSecondStringArgument=Ra,u.joinStringOperationSecondStringArgumentParentRef=pu,u.joinStringOperationSecondStringArgumentRef=ou,u.joinStringOperationSecondStringDataType=lu,u.jsonPrototype=go,u.keyValueParamBuiltInBaseEntity=Sa,u.keyValueParamBuiltInBaseEntityNameProperty=Eh,u.keyValueParamBuiltInBaseEntityNamePropertyDataTypeRef=rI,u.keyValueParamBuiltInBaseEntityNamePropertyParentRef=Th,u.keyValueParamBuiltInBaseEntityNamePropertyRef=mh,u.keyValueParamBuiltInBaseEntityValueProperty=gh,u.keyValueParamBuiltInBaseEntityValuePropertyDataTypeRef=aI,u.keyValueParamBuiltInBaseEntityValuePropertyParentRef=bh,u.keyValueParamBuiltInBaseEntityValuePropertyRef=Rh,u.lowercaseFirstLetter=Gg,u.manualFlowActionDescriptor=Fo,u.manualFlowActionDescriptorDeclarationReturnDeclaration=fh,u.manualFlowActionDescriptorDeclarationReturnDeclarationDataType=yh,u.manualFlowActionDescriptorDeclarationReturnDeclarationDataTypeParentRef=ph,u.manualFlowActionDescriptorDeclarationReturnDeclarationParentRef=hh,u.mapActionDescriptorToTypeItRepresents=i3,u.mergeEntityErrorsList=e4,u.mergeListOfEntities=Uv,u.methodDefaultValue=_y,u.mockClientProject=tb,u.moreThanOrEqualCondition=Br,u.moreThanOrEqualConditionLeftHandArgument=rm,u.moreThanOrEqualConditionLeftHandArgumentParentRef=nm,u.moreThanOrEqualConditionRightHandArgument=am,u.moreThanOrEqualConditionRightHandArgumentParentRef=im,u.notEmptyCondition=kn,u.notEmptyConditionArgument=Kf,u.notEmptyConditionRef=Qf,u.numberAdditionOperation=Ta,u.numberAdditionOperationError=tu,u.numberAdditionOperationErrorParentRef=eu,u.numberAdditionOperationFirstNumberArgument=vo,u.numberAdditionOperationFirstNumberArgumentRef=Jd,u.numberAdditionOperationFirstNumberDataType=Wd,u.numberAdditionOperationRef=Xd,u.numberAdditionOperationRefThree=Kd,u.numberAdditionOperationRefTwo=Qd,u.numberAdditionOperationResultNumberDataType=Zd,u.numberAdditionOperationResultNumberReturn=Po,u.numberAdditionOperationResultNumberReturnRef=zd,u.numberAdditionOperationSecondNumberArgument=Io,u.numberAdditionOperationSecondNumberArgumentRef=Hd,u.numberAdditionOperationSecondNumberDataType=Yd,u.numberPrototype=Be,u.numberValueAutogenerationSchema=Xl,u.parallelExecutionOperation=Vt,u.parallelExecutionOperationError=Np,u.parallelExecutionOperationErrorParentRef=Mp,u.parallelExecutionOperationListOfExecutionResultsDataType=Bp,u.parallelExecutionOperationListOfExecutionResultsReturn=_o,u.parallelExecutionOperationListOfExecutionResultsReturnRef=Cp,u.parallelExecutionOperationListOfFunctionsArgument=wo,u.parallelExecutionOperationListOfFunctionsArgumentDatatype=Op,u.parallelExecutionOperationListOfFunctionsArgumentRef=Sp,u.parallelExecutionOperationListOfFunctionsBlueprint=Ap,u.parallelExecutionOperationRef=wp,u.parallelExecutionOperationRefThree=_p,u.persistedBuiltInBaseEntity=we,u.persistedBuiltInBaseEntityCreatedAtProperty=xf,u.persistedBuiltInBaseEntityCreatedAtPropertyDataType=Ff,u.persistedBuiltInBaseEntityCreatedAtPropertyDataTypeRef=EI,u.persistedBuiltInBaseEntityCreatedAtPropertyParentRef=Uf,u.persistedBuiltInBaseEntityCreatedAtPropertyRef=Gf,u.persistedBuiltInBaseEntityDatabaseProperty=mi,u.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=hI,u.persistedBuiltInBaseEntityDatabasePropertyParentRef=Cf,u.persistedBuiltInBaseEntityDatabasePropertyRef=Of,u.persistedBuiltInBaseEntityDeletedAtProperty=Lf,u.persistedBuiltInBaseEntityDeletedAtPropertyDataType=$f,u.persistedBuiltInBaseEntityDeletedAtPropertyDataTypeRef=TI,u.persistedBuiltInBaseEntityDeletedAtPropertyParentRef=Vf,u.persistedBuiltInBaseEntityDeletedAtPropertyRef=Nf,u.persistedBuiltInBaseEntityIdentifierProperty=Mf,u.persistedBuiltInBaseEntityIdentifierPropertyDataTypeRef=Bf,u.persistedBuiltInBaseEntityIdentifierPropertyParentRef=_f,u.persistedBuiltInBaseEntityIdentifierPropertyRef=wf,u.persistedBuiltInBaseEntityUpdatedAtProperty=Jf,u.persistedBuiltInBaseEntityUpdatedAtPropertyDataType=kf,u.persistedBuiltInBaseEntityUpdatedAtPropertyDataTypeRef=RI,u.persistedBuiltInBaseEntityUpdatedAtPropertyParentRef=qf,u.persistedBuiltInBaseEntityUpdatedAtPropertyRef=jf,u.processOutputGlobalValueDescriptorDataType=lm,u.processOutputGlobalValueDescriptorReturn=zo,u.processOutputGlobalValueDescriptorReturnRef=om,u.projectPublicationCompletedGlobalEvent=Ma,u.propertyToZodSchema=Im,u.relationalDatabaseBuiltInBaseEntity=Rn,u.relationalDatabaseBuiltInBaseEntityDefaultProperty=If,u.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=gf,u.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=vf,u.relationalDatabaseBuiltInBaseEntityIdentifierProperty=Ca,u.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=ff,u.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=mf,u.relationalDatabaseBuiltInBaseEntityMinSizeProperty=_a,u.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=Rf,u.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=bf,u.relationalDatabaseBuiltInBaseEntityPasswordProperty=wa,u.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=dI,u.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=Ef,u.relationalDatabaseBuiltInBaseEntityRef=Cr,u.relationalDatabaseBuiltInBaseEntityUsernameProperty=Ba,u.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=lI,u.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=Tf,u.resolveActionDescriptorName=tv,u.resolveBaseEntityName=Qg,u.resolveBuiltInBaseEntityDataTypeLabel=rd,u.resolveConditionOperatorLabel=Qs,u.resolveCustomEntityDataTypeLabel=id,u.resolveDataType=Zs,u.resolveDataTypeLabel=zg,u.resolveEntityDataTypeLabel=Xg,u.resolveEntityName=A,u.resolveFirstCallsSecond=H9,u.resolveFirstWritesSecond=Y9,u.resolvePrimitiveEntityName=ev,u.resolvePropertyDataTypeLabel=Zg,u.resolveSearchName=Kg,u.resolveVariableDataTypeLabel=G6,u.resolveVariableDeclarationDataTypeLabel=sr,u.resolveVariableInstanceDataTypeLabel=Yg,u.resolveVariableScope=$6,u.sequentialExecutionOperation=tn,u.sequentialExecutionOperationError=Qp,u.sequentialExecutionOperationErrorParentRef=Xp,u.sequentialExecutionOperationListOfExecutionResultsDataType=Yp,u.sequentialExecutionOperationListOfExecutionResultsReturn=No,u.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=Zp,u.sequentialExecutionOperationListOfExecutionResultsReturnRef=Hp,u.sequentialExecutionOperationListOfFunctionsArgument=Mo,u.sequentialExecutionOperationListOfFunctionsArgumentDatatype=Wp,u.sequentialExecutionOperationListOfFunctionsArgumentParentRef=zp,u.sequentialExecutionOperationListOfFunctionsArgumentRef=Jp,u.sequentialExecutionOperationListOfFunctionsBlueprint=qp,u.softDeletePersistedEntityMethod=Af,u.softDeletePersistedEntityMethodParentRef=Df,u.sortCallsBasedOnExecutionDependencies=Ev,u.sortChildrenEntitiesBasedOnExecutionDependencies=J9,u.splitListOperation=So,u.splitListOperationError=Zu,u.splitListOperationErrorParentRef=zu,u.splitListOperationFirstOutputListDataType=Fu,u.splitListOperationFirstOutputListReturn=Ju,u.splitListOperationFirstOutputListReturnParentRef=qu,u.splitListOperationFirstOutputListReturnRef=Ao,u.splitListOperationInputListArgument=xu,u.splitListOperationInputListArgumentParentRef=Uu,u.splitListOperationInputListArgumentRef=$u,u.splitListOperationInputListDataType=Vu,u.splitListOperationSecondOutputListDataType=Wu,u.splitListOperationSecondOutputListReturn=Yu,u.splitListOperationSecondOutputListReturnParentRef=Hu,u.splitListOperationSplitIndexArgument=ku,u.splitListOperationSplitIndexArgumentParentRef=ju,u.splitListOperationSplitIndexArgumentRef=Lu,u.splitListOperationSplitIndexDataType=Gu,u.stringPrototype=F,u.stringValueAutogenerationSchema=Zl,u.suggestNewIdForEntity=dd,u.test_primitive_entities_export=R3,u.toCamelCase=V6,u.toEntityState=Nt,u.toKebabCase=Hg,u.toLowerCaseKebabCase=Xs,u.toPascalCase=L6,u.untypedObjectPrototype=Xe,u.updateErrorsList=X,u.updateValueReader=ya,u.urlDefaultValue=Ay,u.uuidPrototype=ma,u.validateArgumentDeclarationName=ld,u.validateCalledByErrorIdInAction=V9,u.validateCalledByIdInAction=$9,u.validateCallers=dv,u.validateConditionEntityDeclaration=F9,u.validateCustomEntityName=Ks,u.validateDataOperation=xn,u.validateDataOperationDataToValidateArgument=fy,u.validateDataOperationDataToValidateArgumentParentRef=hy,u.validateDataOperationDataToValidateArgumentRef=py,u.validateDataOperationDataToValidateDataType=yy,u.validateDataOperationEntityToMatchTypeArgument=Ry,u.validateDataOperationEntityToMatchTypeArgumentParentRef=Ey,u.validateDataOperationEntityToMatchTypeArgumentRef=my,u.validateDataOperationEntityToMatchTypeDataType=Ty,u.validateDataOperationError=Iy,u.validateDataOperationErrorParentRef=vy,u.validateDataOperationOutputEntityDeclaration=gy,u.validateDataOperationOutputEntityDeclarationParentRef=by,u.validateEntryCaller=cv,u.validateErrorCaller=lv,u.validateFunctionCallDeclaration=pv,u.validateFunctionDeclarationName=ad,u.validateGeneratedEntityParentIsNotBuiltInEntity=w9,u.validateGeneration=C9,u.validateGenerationTarget=De,u.validateGenerationUpdate=B9,u.validateLoopEntityDeclaration=U9,u.validateName=F6,u.validateOperationEntityDeclaration=yv,u.validatePropertyName=od,u.validateReachability=mn,u.validateReadsValueInActionPayload=L9,u.validateReferenceObject=to,u.validateReferenceToOne=hd,u.validateReferences=Ge,u.validateReturnDeclarationName=cd,u.validateSuccessCaller=ov,u.validateValueReaderGenerationUpdate=da,u.validateValueWritter=bd,u.validateVariableDeclarationName=sd,u.validateVariableInternalCallUse=gd,u.valueAutogenerationCurrentDateAndTimeSchema=rb,u.valueAutogenerationGenericSchema=bs,u.valueAutogenerationOptions=Kl,u.valueAutogenerationOptionsSchema=nb,u.valueAutogenerationRandomBooleanSchema=zl,u.valueAutogenerationRandomDateBetweenSchema=pb,u.valueAutogenerationRandomDateFromSchema=db,u.valueAutogenerationRandomDateSchema=Is,u.valueAutogenerationRandomDateUntilSchema=ub,u.valueAutogenerationRandomNumberBetweenSchema=sb,u.valueAutogenerationRandomNumberFromSchema=ib,u.valueAutogenerationRandomNumberSchema=gs,u.valueAutogenerationRandomNumberUntilSchema=ab,u.valueAutogenerationRandomSchema=Wi,u.valueAutogenerationRandomTextBetweenSchema=cb,u.valueAutogenerationRandomTextFromSchema=ob,u.valueAutogenerationRandomTextSchema=vs,u.valueAutogenerationRandomTextUntilSchema=lb,u.valueAutogenerationRangeValueTypesSchema=Ji,u.valueAutogenerationUniqueSchema=Yl,u.waitOperation=ot,u.waitOperationMillisecondsNumberArgument=Un,u.waitOperationMillisecondsNumberArgumentRef=Lp,u.waitOperationMillisecondsNumberDataType=Gp,u.waitOperationOperationError=xp,u.waitOperationOperationErrorParentRef=Up,u.waitOperationRef=Fp,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|