@nfdi4plants/arctrl 3.2.3 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ts/index.d.ts +44 -7
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +45 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
- package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
- package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
- package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
- package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
- package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
- package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
- package/dist/ts/ts/ARC.d.ts +19 -2
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +128 -89
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
- package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLTypes.js +887 -201
- package/dist/ts/ts/CWL/Decode.d.ts +480 -211
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +3614 -2462
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
- package/dist/ts/ts/CWL/Encode.d.ts +225 -85
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +1858 -970
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
- package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/HashHelpers.js +255 -6
- package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Inputs.js +107 -16
- package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/OperationDescription.js +35 -9
- package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Outputs.js +101 -19
- package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
- package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterReference.js +18 -25
- package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
- package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterValue.js +59 -35
- package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Requirements.js +462 -89
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ToolDescription.js +34 -13
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
- package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
- package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
- package/dist/ts/ts/CWLRunResolver.js +221 -86
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +13 -14
- package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcAssay.js +4 -4
- package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
- package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
- package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcRun.js +47 -20
- package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcStudy.js +4 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
- package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Datamap.js +16 -17
- package/dist/ts/ts/Contract/Git.js +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
- package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Assay.js +26 -18
- package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
- package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Basic.js +55 -31
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
- package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/DateTime.js +1 -2
- package/dist/ts/ts/Conversion/Investigation.js +11 -11
- package/dist/ts/ts/Conversion/Person.js +11 -11
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Process.js +107 -86
- package/dist/ts/ts/Conversion/Run.d.ts +36 -6
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Run.js +320 -136
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
- package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Study.js +23 -12
- package/dist/ts/ts/Conversion/Table.js +5 -5
- package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Workflow.js +655 -163
- package/dist/ts/ts/Conversion.js +6 -6
- package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +219 -129
- package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Core/Comment.js +2 -2
- package/dist/ts/ts/Core/CommentList.js +7 -7
- package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Core/Conversion.js +41 -41
- package/dist/ts/ts/Core/Data.d.ts.map +1 -1
- package/dist/ts/ts/Core/Data.js +14 -11
- package/dist/ts/ts/Core/DataContext.d.ts +1 -1
- package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataContext.js +4 -4
- package/dist/ts/ts/Core/DataFile.d.ts +11 -8
- package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataFile.js +55 -61
- package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Core/Datamap.js +2 -3
- package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Collections.js +2 -4
- package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
- package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
- package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Regex.js +52 -53
- package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
- package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
- package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Url.js +1 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
- package/dist/ts/ts/Core/Person.d.ts.map +1 -1
- package/dist/ts/ts/Core/Person.js +2 -2
- package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
- package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Component.js +22 -22
- package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Factor.js +7 -7
- package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
- package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Material.js +2 -2
- package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
- package/dist/ts/ts/Core/Process/Process.js +21 -21
- package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
- package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
- package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Protocol.js +9 -9
- package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Core/Publication.js +3 -3
- package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/ScalarValue.js +9 -13
- package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.js +50 -70
- package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
- package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
- package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
- package/dist/ts/ts/Core/Templates.js +2 -2
- package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +37 -19
- package/dist/ts/ts/Json/Assay.js +22 -22
- package/dist/ts/ts/Json/Comment.js +9 -9
- package/dist/ts/ts/Json/Data.d.ts.map +1 -1
- package/dist/ts/ts/Json/Data.js +11 -11
- package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
- package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
- package/dist/ts/ts/Json/Decode.js +3 -5
- package/dist/ts/ts/Json/Encode.js +2 -2
- package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/Json/Investigation.js +20 -20
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
- package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
- package/dist/ts/ts/Json/Person.d.ts.map +1 -1
- package/dist/ts/ts/Json/Person.js +20 -20
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +5 -6
- package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +7 -7
- package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
- package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Material.js +9 -10
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
- package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Process.js +8 -9
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
- package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +17 -17
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +9 -9
- package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Source.js +10 -11
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
- package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +24 -24
- package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Json/Publication.js +10 -10
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
- package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
- package/dist/ts/ts/Json/Run.js +9 -9
- package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
- package/dist/ts/ts/Json/StringTable.js +4 -7
- package/dist/ts/ts/Json/Study.js +20 -20
- package/dist/ts/ts/Json/Table/CellTable.js +1 -2
- package/dist/ts/ts/Json/Table/OATable.js +1 -2
- package/dist/ts/ts/Json/Workflow.js +9 -9
- package/dist/ts/ts/Json.d.ts +121 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +310 -2
- package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Comment.js +67 -0
- package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Data.js +49 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/DataFile.js +48 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/JsonIO/LDObject.js +173 -17
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Publication.js +68 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
- package/dist/ts/ts/License.d.ts.map +1 -1
- package/dist/ts/ts/License.js +6 -6
- package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDContext.js +31 -39
- package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDObject.js +56 -49
- package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
- package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
- package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
- package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
- package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
- package/dist/ts/ts/ROCrateIO.d.ts +18 -4
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +49 -38
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +8 -8
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
- package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
- package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +7 -7
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
- package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +8 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
- package/dist/ts/ts/Xlsx.js +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
- package/package.json +5 -4
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { isValid, getPrefix } from './Int32.js';
|
|
1
|
+
import { isValid, getPrefix, parseOverflow } from './Int32.js';
|
|
2
2
|
import { fromString } from './BigInt.js';
|
|
3
3
|
import { Exception } from './Util.js';
|
|
4
|
+
import { ArgumentNullException_$ctor_Z721C83C5, FormatException_$ctor_Z721C83C5 } from './System.js';
|
|
4
5
|
|
|
5
6
|
function getRange(unsigned, bitsize) {
|
|
6
7
|
switch (bitsize) {
|
|
@@ -11,6 +12,9 @@ function getRange(unsigned, bitsize) {
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
function parse(str, style, unsigned, bitsize, radix) {
|
|
15
|
+
if (str == null) {
|
|
16
|
+
throw ArgumentNullException_$ctor_Z721C83C5("s");
|
|
17
|
+
}
|
|
14
18
|
const res = isValid(str, style, radix);
|
|
15
19
|
if (res != null) {
|
|
16
20
|
let v = fromString(getPrefix(res.radix) + res.digits);
|
|
@@ -25,8 +29,9 @@ function parse(str, style, unsigned, bitsize, radix) {
|
|
|
25
29
|
if (v >= min && v <= max) {
|
|
26
30
|
return v;
|
|
27
31
|
}
|
|
32
|
+
throw parseOverflow(unsigned, bitsize);
|
|
28
33
|
}
|
|
29
|
-
throw
|
|
34
|
+
throw FormatException_$ctor_Z721C83C5(`The input string '${str}' was not in a correct format.`);
|
|
30
35
|
}
|
|
31
36
|
function tryParse(str, style, unsigned, bitsize, defValue) {
|
|
32
37
|
try {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { class_type, record_type, list_type, bool_type, option_type } from './Reflection.js';
|
|
2
2
|
import { value, some } from './Option.js';
|
|
3
|
-
import { Exception, isArrayLike, getEnumerator, disposeSafe, equals, toIterator, compare, structuralHash } from './Util.js';
|
|
3
|
+
import { Exception, isArrayLike, getEnumerator, disposeSafe, physicalHash, equals, toIterator, compare, structuralHash } from './Util.js';
|
|
4
4
|
import { KeyNotFoundException_$ctor } from './System.Collections.Generic.js';
|
|
5
5
|
import { cons, empty as empty$1, fold as fold$1, FSharpList, isEmpty as isEmpty$1, tail, head, ofArrayWithTail, singleton } from './List.js';
|
|
6
6
|
import { setItem, fill, item, map as map$2 } from './Array.js';
|
|
7
7
|
import { Record } from './Types.js';
|
|
8
|
+
import { Operators_InvalidOp } from './FSharp.Core.js';
|
|
8
9
|
import { unfold, map as map$1, compareWith, iterate as iterate$1, pick as pick$1, tryPick as tryPick$1 } from './Seq.js';
|
|
9
10
|
import { join, format } from './String.js';
|
|
10
11
|
import { NotSupportedException_$ctor_Z721C83C5 } from './System.js';
|
|
@@ -58,7 +59,7 @@ function MapTreeModule_sizeAux(acc_mut, m_mut) {
|
|
|
58
59
|
while (true) {
|
|
59
60
|
const acc = acc_mut, m = m_mut;
|
|
60
61
|
if (m != null) {
|
|
61
|
-
const m2 =
|
|
62
|
+
const m2 = m;
|
|
62
63
|
if (m2 instanceof MapTreeNode$2) {
|
|
63
64
|
const mn = m2;
|
|
64
65
|
acc_mut = MapTreeModule_sizeAux(acc + 1, MapTreeNode$2__get_Left(mn));
|
|
@@ -81,7 +82,7 @@ function MapTreeModule_mk(l, k, v, r) {
|
|
|
81
82
|
let hl;
|
|
82
83
|
const m = l;
|
|
83
84
|
if (m != null) {
|
|
84
|
-
const m2 =
|
|
85
|
+
const m2 = m;
|
|
85
86
|
hl = m2 instanceof MapTreeNode$2 ? (mn = m2, MapTreeNode$2__get_Height(mn)) : 1;
|
|
86
87
|
} else {
|
|
87
88
|
hl = 0;
|
|
@@ -89,7 +90,7 @@ function MapTreeModule_mk(l, k, v, r) {
|
|
|
89
90
|
let hr;
|
|
90
91
|
const m_1 = r;
|
|
91
92
|
if (m_1 != null) {
|
|
92
|
-
const m2_1 =
|
|
93
|
+
const m2_1 = m_1;
|
|
93
94
|
hr = m2_1 instanceof MapTreeNode$2 ? (mn_1 = m2_1, MapTreeNode$2__get_Height(mn_1)) : 1;
|
|
94
95
|
} else {
|
|
95
96
|
hr = 0;
|
|
@@ -106,7 +107,7 @@ function MapTreeModule_rebalance(t1, k, v, t2) {
|
|
|
106
107
|
let t1h;
|
|
107
108
|
const m = t1;
|
|
108
109
|
if (m != null) {
|
|
109
|
-
const m2 =
|
|
110
|
+
const m2 = m;
|
|
110
111
|
t1h = m2 instanceof MapTreeNode$2 ? (mn = m2, MapTreeNode$2__get_Height(mn)) : 1;
|
|
111
112
|
} else {
|
|
112
113
|
t1h = 0;
|
|
@@ -114,7 +115,7 @@ function MapTreeModule_rebalance(t1, k, v, t2) {
|
|
|
114
115
|
let t2h;
|
|
115
116
|
const m_1 = t2;
|
|
116
117
|
if (m_1 != null) {
|
|
117
|
-
const m2_1 =
|
|
118
|
+
const m2_1 = m_1;
|
|
118
119
|
t2h = m2_1 instanceof MapTreeNode$2 ? (mn_1 = m2_1, MapTreeNode$2__get_Height(mn_1)) : 1;
|
|
119
120
|
} else {
|
|
120
121
|
t2h = 0;
|
|
@@ -123,7 +124,7 @@ function MapTreeModule_rebalance(t1, k, v, t2) {
|
|
|
123
124
|
const matchValue = value(t2);
|
|
124
125
|
if (matchValue instanceof MapTreeNode$2) {
|
|
125
126
|
const t2$0027 = matchValue;
|
|
126
|
-
if ((m_2 = MapTreeNode$2__get_Left(t2$0027), m_2 != null ? (m2_2 =
|
|
127
|
+
if ((m_2 = MapTreeNode$2__get_Left(t2$0027), m_2 != null ? (m2_2 = m_2, m2_2 instanceof MapTreeNode$2 ? (mn_2 = m2_2, MapTreeNode$2__get_Height(mn_2)) : 1) : 0) > t1h + 1) {
|
|
127
128
|
const matchValue_1 = value(MapTreeNode$2__get_Left(t2$0027));
|
|
128
129
|
if (matchValue_1 instanceof MapTreeNode$2) {
|
|
129
130
|
const t2l = matchValue_1;
|
|
@@ -141,7 +142,7 @@ function MapTreeModule_rebalance(t1, k, v, t2) {
|
|
|
141
142
|
const matchValue_2 = value(t1);
|
|
142
143
|
if (matchValue_2 instanceof MapTreeNode$2) {
|
|
143
144
|
const t1$0027 = matchValue_2;
|
|
144
|
-
if ((m_3 = MapTreeNode$2__get_Right(t1$0027), m_3 != null ? (m2_3 =
|
|
145
|
+
if ((m_3 = MapTreeNode$2__get_Right(t1$0027), m_3 != null ? (m2_3 = m_3, m2_3 instanceof MapTreeNode$2 ? (mn_3 = m2_3, MapTreeNode$2__get_Height(mn_3)) : 1) : 0) > t2h + 1) {
|
|
145
146
|
const matchValue_3 = value(MapTreeNode$2__get_Right(t1$0027));
|
|
146
147
|
if (matchValue_3 instanceof MapTreeNode$2) {
|
|
147
148
|
const t1r = matchValue_3;
|
|
@@ -161,7 +162,7 @@ function MapTreeModule_rebalance(t1, k, v, t2) {
|
|
|
161
162
|
}
|
|
162
163
|
function MapTreeModule_add(comparer, k, v, m) {
|
|
163
164
|
if (m != null) {
|
|
164
|
-
const m2 =
|
|
165
|
+
const m2 = m;
|
|
165
166
|
const c = comparer.Compare(k, MapTreeLeaf$2__get_Key(m2)) | 0;
|
|
166
167
|
if (m2 instanceof MapTreeNode$2) {
|
|
167
168
|
const mn = m2;
|
|
@@ -188,7 +189,7 @@ function MapTreeModule_tryFind(comparer_mut, k_mut, m_mut) {
|
|
|
188
189
|
while (true) {
|
|
189
190
|
const comparer = comparer_mut, k = k_mut, m = m_mut;
|
|
190
191
|
if (m != null) {
|
|
191
|
-
const m2 =
|
|
192
|
+
const m2 = m;
|
|
192
193
|
const c = comparer.Compare(k, MapTreeLeaf$2__get_Key(m2)) | 0;
|
|
193
194
|
if (c === 0) {
|
|
194
195
|
return some(MapTreeLeaf$2__get_Value(m2));
|
|
@@ -228,7 +229,7 @@ function MapTreeModule_partitionAux(comparer_mut, f_mut, m_mut, acc__mut, acc__1
|
|
|
228
229
|
const comparer = comparer_mut, f = f_mut, m = m_mut, acc_ = acc__mut, acc__1 = acc__1_mut;
|
|
229
230
|
const acc = [acc_, acc__1];
|
|
230
231
|
if (m != null) {
|
|
231
|
-
const m2 =
|
|
232
|
+
const m2 = m;
|
|
232
233
|
if (m2 instanceof MapTreeNode$2) {
|
|
233
234
|
const mn = m2;
|
|
234
235
|
const acc_1 = MapTreeModule_partitionAux(comparer, f, MapTreeNode$2__get_Right(mn), acc[0], acc[1]);
|
|
@@ -263,7 +264,7 @@ function MapTreeModule_filterAux(comparer_mut, f_mut, m_mut, acc_mut) {
|
|
|
263
264
|
while (true) {
|
|
264
265
|
const comparer = comparer_mut, f = f_mut, m = m_mut, acc = acc_mut;
|
|
265
266
|
if (m != null) {
|
|
266
|
-
const m2 =
|
|
267
|
+
const m2 = m;
|
|
267
268
|
if (m2 instanceof MapTreeNode$2) {
|
|
268
269
|
const mn = m2;
|
|
269
270
|
const acc_1 = MapTreeModule_filterAux(comparer, f, MapTreeNode$2__get_Left(mn), acc);
|
|
@@ -287,7 +288,7 @@ function MapTreeModule_filter(comparer, f, m) {
|
|
|
287
288
|
}
|
|
288
289
|
function MapTreeModule_spliceOutSuccessor(m) {
|
|
289
290
|
if (m != null) {
|
|
290
|
-
const m2 =
|
|
291
|
+
const m2 = m;
|
|
291
292
|
if (m2 instanceof MapTreeNode$2) {
|
|
292
293
|
const mn = m2;
|
|
293
294
|
if (MapTreeNode$2__get_Left(mn) == null) {
|
|
@@ -305,7 +306,7 @@ function MapTreeModule_spliceOutSuccessor(m) {
|
|
|
305
306
|
}
|
|
306
307
|
function MapTreeModule_remove(comparer, k, m) {
|
|
307
308
|
if (m != null) {
|
|
308
|
-
const m2 =
|
|
309
|
+
const m2 = m;
|
|
309
310
|
const c = comparer.Compare(k, MapTreeLeaf$2__get_Key(m2)) | 0;
|
|
310
311
|
if (m2 instanceof MapTreeNode$2) {
|
|
311
312
|
const mn = m2;
|
|
@@ -334,7 +335,7 @@ function MapTreeModule_remove(comparer, k, m) {
|
|
|
334
335
|
}
|
|
335
336
|
function MapTreeModule_change(comparer, k, u, m) {
|
|
336
337
|
if (m != null) {
|
|
337
|
-
const m2 =
|
|
338
|
+
const m2 = m;
|
|
338
339
|
if (m2 instanceof MapTreeNode$2) {
|
|
339
340
|
const mn = m2;
|
|
340
341
|
const c = comparer.Compare(k, MapTreeLeaf$2__get_Key(mn)) | 0;
|
|
@@ -394,7 +395,7 @@ function MapTreeModule_mem(comparer_mut, k_mut, m_mut) {
|
|
|
394
395
|
while (true) {
|
|
395
396
|
const comparer = comparer_mut, k = k_mut, m = m_mut;
|
|
396
397
|
if (m != null) {
|
|
397
|
-
const m2 =
|
|
398
|
+
const m2 = m;
|
|
398
399
|
const c = comparer.Compare(k, MapTreeLeaf$2__get_Key(m2)) | 0;
|
|
399
400
|
if (m2 instanceof MapTreeNode$2) {
|
|
400
401
|
const mn = m2;
|
|
@@ -425,7 +426,7 @@ function MapTreeModule_iterOpt(f_mut, m_mut) {
|
|
|
425
426
|
while (true) {
|
|
426
427
|
const f = f_mut, m = m_mut;
|
|
427
428
|
if (m != null) {
|
|
428
|
-
const m2 =
|
|
429
|
+
const m2 = m;
|
|
429
430
|
if (m2 instanceof MapTreeNode$2) {
|
|
430
431
|
const mn = m2;
|
|
431
432
|
MapTreeModule_iterOpt(f, MapTreeNode$2__get_Left(mn));
|
|
@@ -448,7 +449,7 @@ function MapTreeModule_tryPickOpt(f_mut, m_mut) {
|
|
|
448
449
|
while (true) {
|
|
449
450
|
const f = f_mut, m = m_mut;
|
|
450
451
|
if (m != null) {
|
|
451
|
-
const m2 =
|
|
452
|
+
const m2 = m;
|
|
452
453
|
if (m2 instanceof MapTreeNode$2) {
|
|
453
454
|
const mn = m2;
|
|
454
455
|
const matchValue = MapTreeModule_tryPickOpt(f, MapTreeNode$2__get_Left(mn));
|
|
@@ -481,7 +482,7 @@ function MapTreeModule_existsOpt(f_mut, m_mut) {
|
|
|
481
482
|
while (true) {
|
|
482
483
|
const f = f_mut, m = m_mut;
|
|
483
484
|
if (m != null) {
|
|
484
|
-
const m2 =
|
|
485
|
+
const m2 = m;
|
|
485
486
|
if (m2 instanceof MapTreeNode$2) {
|
|
486
487
|
const mn = m2;
|
|
487
488
|
if (MapTreeModule_existsOpt(f, MapTreeNode$2__get_Left(mn)) ? true : f(MapTreeLeaf$2__get_Key(mn), MapTreeLeaf$2__get_Value(mn))) {
|
|
@@ -508,7 +509,7 @@ function MapTreeModule_forallOpt(f_mut, m_mut) {
|
|
|
508
509
|
while (true) {
|
|
509
510
|
const f = f_mut, m = m_mut;
|
|
510
511
|
if (m != null) {
|
|
511
|
-
const m2 =
|
|
512
|
+
const m2 = m;
|
|
512
513
|
if (m2 instanceof MapTreeNode$2) {
|
|
513
514
|
const mn = m2;
|
|
514
515
|
if (MapTreeModule_forallOpt(f, MapTreeNode$2__get_Left(mn)) && f(MapTreeLeaf$2__get_Key(mn), MapTreeLeaf$2__get_Value(mn))) {
|
|
@@ -532,7 +533,7 @@ function MapTreeModule_forall(f, m) {
|
|
|
532
533
|
}
|
|
533
534
|
function MapTreeModule_map(f, m) {
|
|
534
535
|
if (m != null) {
|
|
535
|
-
const m2 =
|
|
536
|
+
const m2 = m;
|
|
536
537
|
if (m2 instanceof MapTreeNode$2) {
|
|
537
538
|
const mn = m2;
|
|
538
539
|
const l2 = MapTreeModule_map(f, MapTreeNode$2__get_Left(mn));
|
|
@@ -548,7 +549,7 @@ function MapTreeModule_map(f, m) {
|
|
|
548
549
|
}
|
|
549
550
|
function MapTreeModule_mapiOpt(f, m) {
|
|
550
551
|
if (m != null) {
|
|
551
|
-
const m2 =
|
|
552
|
+
const m2 = m;
|
|
552
553
|
if (m2 instanceof MapTreeNode$2) {
|
|
553
554
|
const mn = m2;
|
|
554
555
|
const l2 = MapTreeModule_mapiOpt(f, MapTreeNode$2__get_Left(mn));
|
|
@@ -570,7 +571,7 @@ function MapTreeModule_foldBackOpt(f_mut, m_mut, x_mut) {
|
|
|
570
571
|
while (true) {
|
|
571
572
|
const f = f_mut, m = m_mut, x = x_mut;
|
|
572
573
|
if (m != null) {
|
|
573
|
-
const m2 =
|
|
574
|
+
const m2 = m;
|
|
574
575
|
if (m2 instanceof MapTreeNode$2) {
|
|
575
576
|
const mn = m2;
|
|
576
577
|
const x_1 = MapTreeModule_foldBackOpt(f, MapTreeNode$2__get_Right(mn), x);
|
|
@@ -596,7 +597,7 @@ function MapTreeModule_foldOpt(f_mut, x_mut, m_mut) {
|
|
|
596
597
|
while (true) {
|
|
597
598
|
const f = f_mut, x = x_mut, m = m_mut;
|
|
598
599
|
if (m != null) {
|
|
599
|
-
const m2 =
|
|
600
|
+
const m2 = m;
|
|
600
601
|
if (m2 instanceof MapTreeNode$2) {
|
|
601
602
|
const mn = m2;
|
|
602
603
|
f_mut = f;
|
|
@@ -621,7 +622,7 @@ function MapTreeModule_foldSectionOpt(comparer, lo, hi, f, m, x) {
|
|
|
621
622
|
while (true) {
|
|
622
623
|
const f_1 = f_1_mut, m_1 = m_1_mut, x_1 = x_1_mut;
|
|
623
624
|
if (m_1 != null) {
|
|
624
|
-
const m2 =
|
|
625
|
+
const m2 = m_1;
|
|
625
626
|
if (m2 instanceof MapTreeNode$2) {
|
|
626
627
|
const mn = m2;
|
|
627
628
|
const cLoKey = comparer.Compare(lo, MapTreeLeaf$2__get_Key(mn)) | 0;
|
|
@@ -666,7 +667,7 @@ function MapTreeModule_toList(m) {
|
|
|
666
667
|
while (true) {
|
|
667
668
|
const m_1 = m_1_mut, acc = acc_mut;
|
|
668
669
|
if (m_1 != null) {
|
|
669
|
-
const m2 =
|
|
670
|
+
const m2 = m_1;
|
|
670
671
|
if (m2 instanceof MapTreeNode$2) {
|
|
671
672
|
const mn = m2;
|
|
672
673
|
m_1_mut = MapTreeNode$2__get_Left(mn);
|
|
@@ -743,6 +744,12 @@ class MapTreeModule_MapIterator$2 extends Record {
|
|
|
743
744
|
this.stack = stack;
|
|
744
745
|
this.started = started;
|
|
745
746
|
}
|
|
747
|
+
Equals(other) {
|
|
748
|
+
return this === other;
|
|
749
|
+
}
|
|
750
|
+
GetHashCode() {
|
|
751
|
+
return physicalHash(this);
|
|
752
|
+
}
|
|
746
753
|
}
|
|
747
754
|
function MapTreeModule_MapIterator$2_$reflection(gen0, gen1) {
|
|
748
755
|
return record_type("Map.MapTreeModule.MapIterator`2", [gen0, gen1], MapTreeModule_MapIterator$2, () => [["stack", list_type(option_type(MapTreeLeaf$2_$reflection(gen0, gen1)))], ["started", bool_type]]);
|
|
@@ -755,7 +762,7 @@ function MapTreeModule_collapseLHS(stack_mut) {
|
|
|
755
762
|
const rest = tail(stack);
|
|
756
763
|
const m = head(stack);
|
|
757
764
|
if (m != null) {
|
|
758
|
-
const m2 =
|
|
765
|
+
const m2 = m;
|
|
759
766
|
if (m2 instanceof MapTreeNode$2) {
|
|
760
767
|
const mn = m2;
|
|
761
768
|
stack_mut = ofArrayWithTail([MapTreeNode$2__get_Left(mn), MapTreeLeaf$2_$ctor_5BDDA1(MapTreeLeaf$2__get_Key(mn), MapTreeLeaf$2__get_Value(mn)), MapTreeNode$2__get_Right(mn)], rest);
|
|
@@ -777,17 +784,17 @@ function MapTreeModule_mkIterator(m) {
|
|
|
777
784
|
return new MapTreeModule_MapIterator$2(MapTreeModule_collapseLHS(singleton(m)), false);
|
|
778
785
|
}
|
|
779
786
|
function MapTreeModule_notStarted() {
|
|
780
|
-
throw
|
|
787
|
+
throw Operators_InvalidOp("Enumeration has not started. Call MoveNext.");
|
|
781
788
|
}
|
|
782
789
|
function MapTreeModule_alreadyFinished() {
|
|
783
|
-
throw
|
|
790
|
+
throw Operators_InvalidOp("Enumeration already finished.");
|
|
784
791
|
}
|
|
785
792
|
function MapTreeModule_current(i) {
|
|
786
793
|
if (i.started) {
|
|
787
794
|
const matchValue = i.stack;
|
|
788
795
|
if (!isEmpty$1(matchValue)) {
|
|
789
796
|
if (head(matchValue) != null) {
|
|
790
|
-
const m =
|
|
797
|
+
const m = head(matchValue);
|
|
791
798
|
if (m instanceof MapTreeNode$2) {
|
|
792
799
|
throw new Exception("Please report error: Map iterator, unexpected stack for current");
|
|
793
800
|
} else {
|
|
@@ -808,7 +815,7 @@ function MapTreeModule_moveNext(i) {
|
|
|
808
815
|
const matchValue = i.stack;
|
|
809
816
|
if (!isEmpty$1(matchValue)) {
|
|
810
817
|
if (head(matchValue) != null) {
|
|
811
|
-
const m =
|
|
818
|
+
const m = head(matchValue);
|
|
812
819
|
if (m instanceof MapTreeNode$2) {
|
|
813
820
|
throw new Exception("Please report error: Map iterator, unexpected stack for moveNext");
|
|
814
821
|
} else {
|
|
@@ -859,7 +866,7 @@ function MapTreeModule_leftmost(m_mut) {
|
|
|
859
866
|
while (true) {
|
|
860
867
|
const m = m_mut;
|
|
861
868
|
if (m != null) {
|
|
862
|
-
const m2 =
|
|
869
|
+
const m2 = m;
|
|
863
870
|
let matchResult = void 0, nd_1 = void 0;
|
|
864
871
|
if (m2 instanceof MapTreeNode$2) {
|
|
865
872
|
if (MapTreeNode$2__get_Height(m2) > 1) {
|
|
@@ -893,7 +900,7 @@ function MapTreeModule_rightmost(m_mut) {
|
|
|
893
900
|
while (true) {
|
|
894
901
|
const m = m_mut;
|
|
895
902
|
if (m != null) {
|
|
896
|
-
const m2 =
|
|
903
|
+
const m2 = m;
|
|
897
904
|
let matchResult = void 0, nd_1 = void 0;
|
|
898
905
|
if (m2 instanceof MapTreeNode$2) {
|
|
899
906
|
if (MapTreeNode$2__get_Height(m2) > 1) {
|
|
@@ -999,13 +1006,13 @@ class FSharpMap {
|
|
|
999
1006
|
}, this$, that)) : 1) | 0;
|
|
1000
1007
|
}
|
|
1001
1008
|
"System.Collections.Generic.ICollection`1.Add2B595"(x) {
|
|
1002
|
-
throw NotSupportedException_$ctor_Z721C83C5("Map cannot be mutated");
|
|
1009
|
+
throw NotSupportedException_$ctor_Z721C83C5("Map values cannot be mutated.");
|
|
1003
1010
|
}
|
|
1004
1011
|
"System.Collections.Generic.ICollection`1.Clear"() {
|
|
1005
|
-
throw NotSupportedException_$ctor_Z721C83C5("Map cannot be mutated");
|
|
1012
|
+
throw NotSupportedException_$ctor_Z721C83C5("Map values cannot be mutated.");
|
|
1006
1013
|
}
|
|
1007
1014
|
"System.Collections.Generic.ICollection`1.Remove2B595"(x) {
|
|
1008
|
-
throw NotSupportedException_$ctor_Z721C83C5("Map cannot be mutated");
|
|
1015
|
+
throw NotSupportedException_$ctor_Z721C83C5("Map values cannot be mutated.");
|
|
1009
1016
|
}
|
|
1010
1017
|
"System.Collections.Generic.ICollection`1.Contains2B595"(x) {
|
|
1011
1018
|
const m = this;
|
|
@@ -1031,10 +1038,10 @@ class FSharpMap {
|
|
|
1031
1038
|
return FSharpMap__get_Count(m) | 0;
|
|
1032
1039
|
}
|
|
1033
1040
|
clear() {
|
|
1034
|
-
throw
|
|
1041
|
+
throw NotSupportedException_$ctor_Z721C83C5("Map values cannot be mutated.");
|
|
1035
1042
|
}
|
|
1036
1043
|
delete(_arg) {
|
|
1037
|
-
throw
|
|
1044
|
+
throw NotSupportedException_$ctor_Z721C83C5("Map values cannot be mutated.");
|
|
1038
1045
|
return false;
|
|
1039
1046
|
}
|
|
1040
1047
|
entries() {
|
|
@@ -1055,7 +1062,7 @@ class FSharpMap {
|
|
|
1055
1062
|
}
|
|
1056
1063
|
set(k, v) {
|
|
1057
1064
|
const m = this;
|
|
1058
|
-
throw
|
|
1065
|
+
throw NotSupportedException_$ctor_Z721C83C5("Map values cannot be mutated.");
|
|
1059
1066
|
return m;
|
|
1060
1067
|
}
|
|
1061
1068
|
values() {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { defaultOf, getEnumerator, disposeSafe, toIterator, equals } from './Util.js';
|
|
2
2
|
import { concat, iterateIndexed, toArray, delay, map, iterate } from './Seq.js';
|
|
3
|
-
import { value } from './Option.js';
|
|
4
3
|
import { setItem, item } from './Array.js';
|
|
5
4
|
import { FSharpRef } from './Types.js';
|
|
6
5
|
import { class_type } from './Reflection.js';
|
|
7
|
-
import {
|
|
6
|
+
import { getItemFromDict } from './MapUtil.js';
|
|
8
7
|
import { KeyNotFoundException_$ctor_Z721C83C5 } from './System.Collections.Generic.js';
|
|
9
8
|
import { ArgumentException_$ctor_Z721C83C5 } from './System.js';
|
|
10
9
|
import { format } from './String.js';
|
|
@@ -15,6 +14,7 @@ class Dictionary {
|
|
|
15
14
|
this.comparer = comparer;
|
|
16
15
|
this$.contents = this;
|
|
17
16
|
this.hashMap = /* @__PURE__ */ new Map([]);
|
|
17
|
+
this.count = 0;
|
|
18
18
|
this["init@9"] = 1;
|
|
19
19
|
const enumerator = getEnumerator(pairs);
|
|
20
20
|
try {
|
|
@@ -57,9 +57,9 @@ class Dictionary {
|
|
|
57
57
|
const matchValue = Dictionary__TryFind_2B595(this$, item[0]);
|
|
58
58
|
let matchResult = void 0, pair_1 = void 0;
|
|
59
59
|
if (matchValue != null) {
|
|
60
|
-
if (equals(
|
|
60
|
+
if (equals(matchValue[1], item[1])) {
|
|
61
61
|
matchResult = 0;
|
|
62
|
-
pair_1 =
|
|
62
|
+
pair_1 = matchValue;
|
|
63
63
|
} else {
|
|
64
64
|
matchResult = 1;
|
|
65
65
|
}
|
|
@@ -91,9 +91,9 @@ class Dictionary {
|
|
|
91
91
|
const matchValue = Dictionary__TryFind_2B595(this$, item[0]);
|
|
92
92
|
let matchResult = void 0, pair_1 = void 0;
|
|
93
93
|
if (matchValue != null) {
|
|
94
|
-
if (equals(
|
|
94
|
+
if (equals(matchValue[1], item[1])) {
|
|
95
95
|
matchResult = 0;
|
|
96
|
-
pair_1 =
|
|
96
|
+
pair_1 = matchValue;
|
|
97
97
|
} else {
|
|
98
98
|
matchResult = 1;
|
|
99
99
|
}
|
|
@@ -131,12 +131,12 @@ class Dictionary {
|
|
|
131
131
|
const this$ = this;
|
|
132
132
|
return Dictionary__Remove_2B595(this$, key);
|
|
133
133
|
}
|
|
134
|
-
"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(key, value
|
|
134
|
+
"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(key, value) {
|
|
135
135
|
const this$ = this;
|
|
136
136
|
const matchValue = Dictionary__TryFind_2B595(this$, key);
|
|
137
137
|
if (matchValue != null) {
|
|
138
|
-
const pair =
|
|
139
|
-
value
|
|
138
|
+
const pair = matchValue;
|
|
139
|
+
value.contents = pair[1];
|
|
140
140
|
return true;
|
|
141
141
|
} else {
|
|
142
142
|
return false;
|
|
@@ -196,36 +196,36 @@ function Dictionary_$reflection(gen0, gen1) {
|
|
|
196
196
|
function Dictionary_$ctor_6623D9B3(pairs, comparer) {
|
|
197
197
|
return new Dictionary(pairs, comparer);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
let outArg = defaultOf();
|
|
203
|
-
matchValue = [tryGetValue(this$.hashMap, h, new FSharpRef(() => outArg, (v) => {
|
|
204
|
-
outArg = v;
|
|
205
|
-
})), outArg];
|
|
206
|
-
if (matchValue[0]) {
|
|
207
|
-
return [true, h, matchValue[1].findIndex((pair) => this$.comparer.Equals(k, pair[0]))];
|
|
199
|
+
function Dictionary__TryFindBucket_Z524259A4(this$, h) {
|
|
200
|
+
if (this$.hashMap.has(h)) {
|
|
201
|
+
return getItemFromDict(this$.hashMap, h);
|
|
208
202
|
} else {
|
|
209
|
-
return
|
|
203
|
+
return void 0;
|
|
210
204
|
}
|
|
211
205
|
}
|
|
212
|
-
function
|
|
213
|
-
|
|
214
|
-
let
|
|
215
|
-
|
|
216
|
-
if (
|
|
217
|
-
|
|
218
|
-
} else {
|
|
219
|
-
matchResult = 1;
|
|
206
|
+
function Dictionary__FindIndex_Z61A8C007(this$, k, bucket) {
|
|
207
|
+
let i = 0;
|
|
208
|
+
let found = -1;
|
|
209
|
+
while (found < 0 && i < bucket.length) {
|
|
210
|
+
if (this$.comparer.Equals(k, item(i, bucket)[0])) {
|
|
211
|
+
found = i | 0;
|
|
220
212
|
}
|
|
221
|
-
|
|
222
|
-
matchResult = 1;
|
|
213
|
+
i = i + 1 | 0;
|
|
223
214
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
215
|
+
return found | 0;
|
|
216
|
+
}
|
|
217
|
+
function Dictionary__TryFind_2B595(this$, k) {
|
|
218
|
+
const matchValue = Dictionary__TryFindBucket_Z524259A4(this$, this$.comparer.GetHashCode(k));
|
|
219
|
+
if (matchValue == null) {
|
|
220
|
+
return void 0;
|
|
221
|
+
} else {
|
|
222
|
+
const bucket = matchValue;
|
|
223
|
+
const i = Dictionary__FindIndex_Z61A8C007(this$, k, bucket) | 0;
|
|
224
|
+
if (i > -1) {
|
|
225
|
+
return item(i, bucket);
|
|
226
|
+
} else {
|
|
228
227
|
return void 0;
|
|
228
|
+
}
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
function Dictionary__get_Comparer(this$) {
|
|
@@ -233,94 +233,77 @@ function Dictionary__get_Comparer(this$) {
|
|
|
233
233
|
}
|
|
234
234
|
function Dictionary__Clear(this$) {
|
|
235
235
|
this$.hashMap.clear();
|
|
236
|
+
this$.count = 0;
|
|
236
237
|
}
|
|
237
238
|
function Dictionary__get_Count(this$) {
|
|
238
|
-
|
|
239
|
-
let enumerator = getEnumerator(this$.hashMap.values());
|
|
240
|
-
try {
|
|
241
|
-
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
242
|
-
const pairs = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
243
|
-
count = count + pairs.length | 0;
|
|
244
|
-
}
|
|
245
|
-
} finally {
|
|
246
|
-
disposeSafe(enumerator);
|
|
247
|
-
}
|
|
248
|
-
return count | 0;
|
|
239
|
+
return this$.count | 0;
|
|
249
240
|
}
|
|
250
241
|
function Dictionary__get_Item_2B595(this$, k) {
|
|
251
242
|
const matchValue = Dictionary__TryFind_2B595(this$, k);
|
|
252
243
|
if (matchValue != null) {
|
|
253
|
-
return
|
|
244
|
+
return matchValue[1];
|
|
254
245
|
} else {
|
|
255
246
|
throw KeyNotFoundException_$ctor_Z721C83C5("The item was not found in collection");
|
|
256
247
|
}
|
|
257
248
|
}
|
|
258
249
|
function Dictionary__set_Item_5BDDA1(this$, k, v) {
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
250
|
+
const h = this$.comparer.GetHashCode(k) | 0;
|
|
251
|
+
const matchValue = Dictionary__TryFindBucket_Z524259A4(this$, h);
|
|
252
|
+
if (matchValue == null) {
|
|
253
|
+
this$.hashMap.set(h, [[k, v]]);
|
|
254
|
+
this$.count = this$.count + 1 | 0;
|
|
255
|
+
} else {
|
|
256
|
+
const bucket = matchValue;
|
|
257
|
+
const i = Dictionary__FindIndex_Z61A8C007(this$, k, bucket) | 0;
|
|
258
|
+
if (i > -1) {
|
|
259
|
+
setItem(bucket, i, [k, v]);
|
|
263
260
|
} else {
|
|
264
|
-
void
|
|
261
|
+
void bucket.push([k, v]);
|
|
262
|
+
this$.count = this$.count + 1 | 0;
|
|
265
263
|
}
|
|
266
|
-
} else {
|
|
267
|
-
this$.hashMap.set(matchValue[1], [[k, v]]);
|
|
268
264
|
}
|
|
269
265
|
}
|
|
270
266
|
function Dictionary__Add_5BDDA1(this$, k, v) {
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
|
|
267
|
+
const h = this$.comparer.GetHashCode(k) | 0;
|
|
268
|
+
const matchValue = Dictionary__TryFindBucket_Z524259A4(this$, h);
|
|
269
|
+
if (matchValue == null) {
|
|
270
|
+
this$.hashMap.set(h, [[k, v]]);
|
|
271
|
+
this$.count = this$.count + 1 | 0;
|
|
272
|
+
} else {
|
|
273
|
+
const bucket = matchValue;
|
|
274
|
+
if (Dictionary__FindIndex_Z61A8C007(this$, k, bucket) > -1) {
|
|
274
275
|
throw ArgumentException_$ctor_Z721C83C5(format("An item with the same key has already been added. Key: {0}", k));
|
|
275
|
-
} else {
|
|
276
|
-
void getItemFromDict(this$.hashMap, matchValue[1]).push([k, v]);
|
|
277
276
|
}
|
|
278
|
-
|
|
279
|
-
this$.
|
|
277
|
+
void bucket.push([k, v]);
|
|
278
|
+
this$.count = this$.count + 1 | 0;
|
|
280
279
|
}
|
|
281
280
|
}
|
|
282
281
|
function Dictionary__ContainsKey_2B595(this$, k) {
|
|
283
|
-
const matchValue =
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
if (matchValue[2] > -1) {
|
|
287
|
-
matchResult = 0;
|
|
288
|
-
} else {
|
|
289
|
-
matchResult = 1;
|
|
290
|
-
}
|
|
282
|
+
const matchValue = Dictionary__TryFindBucket_Z524259A4(this$, this$.comparer.GetHashCode(k));
|
|
283
|
+
if (matchValue == null) {
|
|
284
|
+
return false;
|
|
291
285
|
} else {
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
switch (matchResult) {
|
|
295
|
-
case 0:
|
|
296
|
-
return true;
|
|
297
|
-
default:
|
|
298
|
-
return false;
|
|
286
|
+
return Dictionary__FindIndex_Z61A8C007(this$, k, matchValue) > -1;
|
|
299
287
|
}
|
|
300
288
|
}
|
|
301
289
|
function Dictionary__Remove_2B595(this$, k) {
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
if (matchValue
|
|
305
|
-
|
|
306
|
-
matchResult = 0;
|
|
307
|
-
} else {
|
|
308
|
-
matchResult = 1;
|
|
309
|
-
}
|
|
290
|
+
const h = this$.comparer.GetHashCode(k) | 0;
|
|
291
|
+
const matchValue = Dictionary__TryFindBucket_Z524259A4(this$, h);
|
|
292
|
+
if (matchValue == null) {
|
|
293
|
+
return false;
|
|
310
294
|
} else {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
this$.hashMap.delete(h_1);
|
|
295
|
+
const bucket = matchValue;
|
|
296
|
+
const i = Dictionary__FindIndex_Z61A8C007(this$, k, bucket) | 0;
|
|
297
|
+
if (i > -1) {
|
|
298
|
+
bucket.splice(i, 1);
|
|
299
|
+
this$.count = this$.count - 1 | 0;
|
|
300
|
+
if (bucket.length === 0) {
|
|
301
|
+
this$.hashMap.delete(h);
|
|
319
302
|
}
|
|
320
303
|
return true;
|
|
321
|
-
}
|
|
322
|
-
default:
|
|
304
|
+
} else {
|
|
323
305
|
return false;
|
|
306
|
+
}
|
|
324
307
|
}
|
|
325
308
|
}
|
|
326
309
|
|