@nfdi4plants/arctrl 3.0.0-beta.4 → 3.0.0-beta.6
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/node_modules/@fable-org/fable-library-js/Array.js +894 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
- package/dist/ts/ts/ARC.d.ts +12 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +172 -93
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +8 -1
- package/dist/ts/ts/Contract/ArcAssay.js +14 -5
- package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
- package/dist/ts/ts/Contract/ArcRun.js +19 -6
- package/dist/ts/ts/Contract/ArcStudy.js +19 -6
- package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
- package/dist/ts/ts/Contract/Contract.js +42 -1
- package/dist/ts/ts/Contract/Datamap.js +61 -17
- package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +22 -6
- package/dist/ts/ts/Contract/License.d.ts +5 -0
- package/dist/ts/ts/Contract/License.d.ts.map +1 -0
- package/dist/ts/ts/Contract/License.js +34 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
- package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
- package/dist/ts/ts/Conversion.js +321 -48
- package/dist/ts/ts/Core/ArcTypes.js +216 -15
- package/dist/ts/ts/Core/Comment.js +11 -1
- package/dist/ts/ts/Core/CommentList.js +77 -2
- package/dist/ts/ts/Core/Conversion.js +123 -43
- package/dist/ts/ts/Core/Data.js +9 -2
- package/dist/ts/ts/Core/DataContext.js +19 -4
- package/dist/ts/ts/Core/DataFile.js +38 -1
- package/dist/ts/ts/Core/DataMap.js +111 -5
- package/dist/ts/ts/Core/Helper/Collections.js +106 -5
- package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
- package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
- package/dist/ts/ts/Core/Helper/Regex.js +134 -2
- package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
- package/dist/ts/ts/Core/IdentifierSetters.d.ts +3 -1
- package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
- package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
- package/dist/ts/ts/Core/Person.js +8 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
- package/dist/ts/ts/Core/Process/Component.js +37 -4
- package/dist/ts/ts/Core/Process/Factor.js +9 -4
- package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
- package/dist/ts/ts/Core/Process/Material.js +14 -4
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
- package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
- package/dist/ts/ts/Core/Process/Process.js +150 -7
- package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
- package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
- package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
- package/dist/ts/ts/Core/Process/Protocol.js +78 -4
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
- package/dist/ts/ts/Core/Process/Sample.js +21 -3
- package/dist/ts/ts/Core/Process/Source.js +13 -3
- package/dist/ts/ts/Core/Publication.js +8 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
- package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
- package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
- package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
- package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
- package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
- package/dist/ts/ts/Core/Template.js +12 -2
- package/dist/ts/ts/Core/Templates.js +8 -4
- package/dist/ts/ts/Core/Value.js +7 -3
- package/dist/ts/ts/CrossAsync.js +11 -1
- package/dist/ts/ts/FileSystem/Commit.js +18 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
- package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +17 -3
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +28 -28
- package/dist/ts/ts/Json/Comment.js +10 -10
- package/dist/ts/ts/Json/Data.js +6 -6
- package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
- package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
- package/dist/ts/ts/Json/Decode.js +14 -9
- package/dist/ts/ts/Json/Encode.js +43 -11
- package/dist/ts/ts/Json/Investigation.js +40 -22
- package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
- package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
- package/dist/ts/ts/Json/Person.js +26 -26
- package/dist/ts/ts/Json/Process/Component.d.ts +6 -4
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +27 -7
- package/dist/ts/ts/Json/Process/Factor.js +3 -3
- package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
- package/dist/ts/ts/Json/Process/Material.js +9 -9
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
- package/dist/ts/ts/Json/Process/Process.js +12 -12
- package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
- package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +11 -8
- package/dist/ts/ts/Json/Process/Protocol.js +13 -13
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -2
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +21 -12
- package/dist/ts/ts/Json/Process/Sample.js +14 -14
- package/dist/ts/ts/Json/Process/Source.js +9 -9
- package/dist/ts/ts/Json/Process/Value.js +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +1 -1
- package/dist/ts/ts/Json/Publication.js +6 -6
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
- package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
- package/dist/ts/ts/Json/Run.d.ts +11 -0
- package/dist/ts/ts/Json/Run.d.ts.map +1 -0
- package/dist/ts/ts/Json/Run.js +76 -0
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +34 -34
- package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
- package/dist/ts/ts/Json/Table/CellTable.js +6 -6
- package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
- package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
- package/dist/ts/ts/Json/Table/IOType.js +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +7 -7
- package/dist/ts/ts/Json/Table/Templates.js +92 -6
- package/dist/ts/ts/Json/Workflow.d.ts +11 -0
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Json/Workflow.js +93 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
- package/dist/ts/ts/Json.d.ts +34 -2
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +129 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- package/dist/ts/ts/JsonIO/Investigation.js +15 -3
- package/dist/ts/ts/JsonIO/LDObject.js +17 -3
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
- package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
- package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Person.js +67 -0
- package/dist/ts/ts/JsonIO/Run.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Run.js +50 -0
- package/dist/ts/ts/JsonIO/Study.js +15 -3
- package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
- package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
- package/dist/ts/ts/JsonIO/Workflow.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Workflow.js +50 -0
- package/dist/ts/ts/License.d.ts +39 -0
- package/dist/ts/ts/License.d.ts.map +1 -0
- package/dist/ts/ts/License.js +123 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
- package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
- package/dist/ts/ts/ROCrate/LDContext.js +15 -6
- package/dist/ts/ts/ROCrate/LDObject.js +53 -17
- package/dist/ts/ts/ROCrateIO.d.ts +9 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +67 -14
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
- package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
- package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/Template.Web.js +5 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
- package/dist/ts/ts/Xlsx.d.ts +21 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +81 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
- package/package.json +1 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getEnumerator, disposeSafe, toIterator, isArrayLike, isDisposable, equals, defaultOf, clear } from './Util.js';
|
|
2
2
|
import { toString } from './Types.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { class_type } from './Reflection.js';
|
|
4
|
+
import { value, some } from './Option.js';
|
|
5
|
+
import { Operators_NullArg, Operators_Lock } from './FSharp.Core.js';
|
|
6
|
+
import { singleton as singleton$1, tryFindBack as tryFindBack$1, tryFindIndexBack as tryFindIndexBack$1, foldBack as foldBack$1, foldBack2 as foldBack2$1, tryHead as tryHead$1, tryItem as tryItem$1, mapFold as mapFold$1, mapFoldBack as mapFoldBack$1, reverse as reverse$1, scanBack as scanBack$1, pairwise as pairwise$1, splitInto as splitInto$1, windowed as windowed$1, map as map$1, transpose as transpose$1, permute as permute$1, chunkBySize as chunkBySize$1 } from './Array.js';
|
|
7
|
+
import { FSharpList, toArray as toArray$1, ofArray as ofArray$1, ofSeq as ofSeq$1, tryHead as tryHead$2, isEmpty as isEmpty$1, tryItem as tryItem$2, length as length$1 } from './List.js';
|
|
7
8
|
import { SR_indexOutOfBounds } from './Global.js';
|
|
8
9
|
|
|
9
10
|
const SR_enumerationAlreadyFinished = "Enumeration already finished.";
|
|
@@ -60,6 +61,9 @@ class Enumerator_Seq {
|
|
|
60
61
|
return x.f();
|
|
61
62
|
}
|
|
62
63
|
}
|
|
64
|
+
function Enumerator_Seq_$reflection(gen0) {
|
|
65
|
+
return class_type("SeqModule.Enumerator.Seq", [gen0], Enumerator_Seq);
|
|
66
|
+
}
|
|
63
67
|
function Enumerator_Seq_$ctor_673A07F2(f) {
|
|
64
68
|
return new Enumerator_Seq(f);
|
|
65
69
|
}
|
|
@@ -89,9 +93,17 @@ class Enumerator_FromFunctions$1 {
|
|
|
89
93
|
_.dispose();
|
|
90
94
|
}
|
|
91
95
|
}
|
|
96
|
+
function Enumerator_FromFunctions$1_$reflection(gen0) {
|
|
97
|
+
return class_type("SeqModule.Enumerator.FromFunctions`1", [gen0], Enumerator_FromFunctions$1);
|
|
98
|
+
}
|
|
92
99
|
function Enumerator_FromFunctions$1_$ctor_58C54629(current, next, dispose) {
|
|
93
100
|
return new Enumerator_FromFunctions$1(current, next, dispose);
|
|
94
101
|
}
|
|
102
|
+
function Enumerator_cast(e) {
|
|
103
|
+
return Enumerator_FromFunctions$1_$ctor_58C54629(() => e["System.Collections.Generic.IEnumerator`1.get_Current"](), () => e["System.Collections.IEnumerator.MoveNext"](), () => {
|
|
104
|
+
disposeSafe(e);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
95
107
|
function Enumerator_concat(sources) {
|
|
96
108
|
let outerOpt = undefined;
|
|
97
109
|
let innerOpt = undefined;
|
|
@@ -191,6 +203,7 @@ function Enumerator_enumerateThenFinally(f, e) {
|
|
|
191
203
|
disposeSafe(e);
|
|
192
204
|
}
|
|
193
205
|
finally {
|
|
206
|
+
f();
|
|
194
207
|
}
|
|
195
208
|
});
|
|
196
209
|
}
|
|
@@ -261,7 +274,7 @@ function Enumerator_unfold(f, state) {
|
|
|
261
274
|
return Enumerator_FromFunctions$1_$ctor_58C54629(() => {
|
|
262
275
|
if (curr != null) {
|
|
263
276
|
const x = value(curr)[0];
|
|
264
|
-
value(curr)[1];
|
|
277
|
+
const st = value(curr)[1];
|
|
265
278
|
return x;
|
|
266
279
|
}
|
|
267
280
|
else {
|
|
@@ -270,7 +283,7 @@ function Enumerator_unfold(f, state) {
|
|
|
270
283
|
}, () => {
|
|
271
284
|
curr = f(acc);
|
|
272
285
|
if (curr != null) {
|
|
273
|
-
value(curr)[0];
|
|
286
|
+
const x_1 = value(curr)[0];
|
|
274
287
|
const st_1 = value(curr)[1];
|
|
275
288
|
acc = st_1;
|
|
276
289
|
return true;
|
|
@@ -323,6 +336,9 @@ function toArray(xs) {
|
|
|
323
336
|
return Array.from(xs);
|
|
324
337
|
}
|
|
325
338
|
}
|
|
339
|
+
function ofList(xs) {
|
|
340
|
+
return xs;
|
|
341
|
+
}
|
|
326
342
|
function toList(xs) {
|
|
327
343
|
if (isArrayLike(xs)) {
|
|
328
344
|
return ofArray$1(xs);
|
|
@@ -349,6 +365,12 @@ function generateIndexed(create, compute, dispose) {
|
|
|
349
365
|
function append(xs, ys) {
|
|
350
366
|
return concat([xs, ys]);
|
|
351
367
|
}
|
|
368
|
+
function cast(xs) {
|
|
369
|
+
return mkSeq(() => {
|
|
370
|
+
checkNonNull("source", xs);
|
|
371
|
+
return Enumerator_cast(getEnumerator(xs));
|
|
372
|
+
});
|
|
373
|
+
}
|
|
352
374
|
function choose(chooser, xs) {
|
|
353
375
|
return generate(() => ofSeq(xs), (e) => {
|
|
354
376
|
let curr = undefined;
|
|
@@ -407,6 +429,37 @@ function enumerateFromFunctions(create, moveNext, current) {
|
|
|
407
429
|
}
|
|
408
430
|
});
|
|
409
431
|
}
|
|
432
|
+
function enumerateThenFinally(source, compensation) {
|
|
433
|
+
const compensation_1 = compensation;
|
|
434
|
+
return mkSeq(() => {
|
|
435
|
+
try {
|
|
436
|
+
return Enumerator_enumerateThenFinally(compensation_1, ofSeq(source));
|
|
437
|
+
}
|
|
438
|
+
catch (matchValue) {
|
|
439
|
+
compensation_1();
|
|
440
|
+
throw matchValue;
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
function enumerateUsing(resource, source) {
|
|
445
|
+
const compensation = () => {
|
|
446
|
+
if (equals(resource, defaultOf())) {
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
let copyOfStruct = resource;
|
|
450
|
+
disposeSafe(copyOfStruct);
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
return mkSeq(() => {
|
|
454
|
+
try {
|
|
455
|
+
return Enumerator_enumerateThenFinally(compensation, ofSeq(source(resource)));
|
|
456
|
+
}
|
|
457
|
+
catch (matchValue_1) {
|
|
458
|
+
compensation();
|
|
459
|
+
throw matchValue_1;
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
}
|
|
410
463
|
function enumerateWhile(guard, xs) {
|
|
411
464
|
return concat(unfold((i) => (guard() ? [xs, i + 1] : undefined), 0));
|
|
412
465
|
}
|
|
@@ -433,6 +486,25 @@ function exists(predicate, xs) {
|
|
|
433
486
|
disposeSafe(e);
|
|
434
487
|
}
|
|
435
488
|
}
|
|
489
|
+
function exists2(predicate, xs, ys) {
|
|
490
|
+
const e1 = ofSeq(xs);
|
|
491
|
+
try {
|
|
492
|
+
const e2 = ofSeq(ys);
|
|
493
|
+
try {
|
|
494
|
+
let found = false;
|
|
495
|
+
while ((!found && e1["System.Collections.IEnumerator.MoveNext"]()) && e2["System.Collections.IEnumerator.MoveNext"]()) {
|
|
496
|
+
found = predicate(e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
497
|
+
}
|
|
498
|
+
return found;
|
|
499
|
+
}
|
|
500
|
+
finally {
|
|
501
|
+
disposeSafe(e2);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
finally {
|
|
505
|
+
disposeSafe(e1);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
436
508
|
function exactlyOne(xs) {
|
|
437
509
|
const e = ofSeq(xs);
|
|
438
510
|
try {
|
|
@@ -453,6 +525,21 @@ function exactlyOne(xs) {
|
|
|
453
525
|
disposeSafe(e);
|
|
454
526
|
}
|
|
455
527
|
}
|
|
528
|
+
function tryExactlyOne(xs) {
|
|
529
|
+
const e = ofSeq(xs);
|
|
530
|
+
try {
|
|
531
|
+
if (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
532
|
+
const v = e["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
533
|
+
return e["System.Collections.IEnumerator.MoveNext"]() ? undefined : some(v);
|
|
534
|
+
}
|
|
535
|
+
else {
|
|
536
|
+
return undefined;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
finally {
|
|
540
|
+
disposeSafe(e);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
456
543
|
function tryFind(predicate, xs) {
|
|
457
544
|
const e = ofSeq(xs);
|
|
458
545
|
try {
|
|
@@ -478,6 +565,18 @@ function find(predicate, xs) {
|
|
|
478
565
|
return value(matchValue);
|
|
479
566
|
}
|
|
480
567
|
}
|
|
568
|
+
function tryFindBack(predicate, xs) {
|
|
569
|
+
return tryFindBack$1(predicate, toArray(xs));
|
|
570
|
+
}
|
|
571
|
+
function findBack(predicate, xs) {
|
|
572
|
+
const matchValue = tryFindBack(predicate, xs);
|
|
573
|
+
if (matchValue == null) {
|
|
574
|
+
return indexNotFound();
|
|
575
|
+
}
|
|
576
|
+
else {
|
|
577
|
+
return value(matchValue);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
481
580
|
function tryFindIndex(predicate, xs) {
|
|
482
581
|
const e = ofSeq(xs);
|
|
483
582
|
try {
|
|
@@ -515,6 +614,19 @@ function findIndex(predicate, xs) {
|
|
|
515
614
|
return value(matchValue) | 0;
|
|
516
615
|
}
|
|
517
616
|
}
|
|
617
|
+
function tryFindIndexBack(predicate, xs) {
|
|
618
|
+
return tryFindIndexBack$1(predicate, toArray(xs));
|
|
619
|
+
}
|
|
620
|
+
function findIndexBack(predicate, xs) {
|
|
621
|
+
const matchValue = tryFindIndexBack(predicate, xs);
|
|
622
|
+
if (matchValue == null) {
|
|
623
|
+
indexNotFound();
|
|
624
|
+
return -1;
|
|
625
|
+
}
|
|
626
|
+
else {
|
|
627
|
+
return value(matchValue) | 0;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
518
630
|
function fold(folder, state, xs) {
|
|
519
631
|
const e = ofSeq(xs);
|
|
520
632
|
try {
|
|
@@ -528,9 +640,37 @@ function fold(folder, state, xs) {
|
|
|
528
640
|
disposeSafe(e);
|
|
529
641
|
}
|
|
530
642
|
}
|
|
643
|
+
function foldBack(folder, xs, state) {
|
|
644
|
+
return foldBack$1(folder, toArray(xs), state);
|
|
645
|
+
}
|
|
646
|
+
function fold2(folder, state, xs, ys) {
|
|
647
|
+
const e1 = ofSeq(xs);
|
|
648
|
+
try {
|
|
649
|
+
const e2 = ofSeq(ys);
|
|
650
|
+
try {
|
|
651
|
+
let acc = state;
|
|
652
|
+
while (e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) {
|
|
653
|
+
acc = folder(acc, e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
654
|
+
}
|
|
655
|
+
return acc;
|
|
656
|
+
}
|
|
657
|
+
finally {
|
|
658
|
+
disposeSafe(e2);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
finally {
|
|
662
|
+
disposeSafe(e1);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
function foldBack2(folder, xs, ys, state) {
|
|
666
|
+
return foldBack2$1(folder, toArray(xs), toArray(ys), state);
|
|
667
|
+
}
|
|
531
668
|
function forAll(predicate, xs) {
|
|
532
669
|
return !exists((x) => !predicate(x), xs);
|
|
533
670
|
}
|
|
671
|
+
function forAll2(predicate, xs, ys) {
|
|
672
|
+
return !exists2((x, y) => !predicate(x, y), xs, ys);
|
|
673
|
+
}
|
|
534
674
|
function tryHead(xs) {
|
|
535
675
|
if (isArrayLike(xs)) {
|
|
536
676
|
return tryHead$1(xs);
|
|
@@ -560,6 +700,9 @@ function head(xs) {
|
|
|
560
700
|
function initialize(count, f) {
|
|
561
701
|
return unfold((i) => ((i < count) ? [f(i), i + 1] : undefined), 0);
|
|
562
702
|
}
|
|
703
|
+
function initializeInfinite(f) {
|
|
704
|
+
return initialize(2147483647, f);
|
|
705
|
+
}
|
|
563
706
|
function isEmpty(xs) {
|
|
564
707
|
if (isArrayLike(xs)) {
|
|
565
708
|
const a = xs;
|
|
@@ -625,12 +768,23 @@ function iterate(action, xs) {
|
|
|
625
768
|
action(x);
|
|
626
769
|
}, undefined, xs);
|
|
627
770
|
}
|
|
771
|
+
function iterate2(action, xs, ys) {
|
|
772
|
+
fold2((unitVar, x, y) => {
|
|
773
|
+
action(x, y);
|
|
774
|
+
}, undefined, xs, ys);
|
|
775
|
+
}
|
|
628
776
|
function iterateIndexed(action, xs) {
|
|
629
777
|
fold((i, x) => {
|
|
630
778
|
action(i, x);
|
|
631
779
|
return (i + 1) | 0;
|
|
632
780
|
}, 0, xs);
|
|
633
781
|
}
|
|
782
|
+
function iterateIndexed2(action, xs, ys) {
|
|
783
|
+
fold2((i, x, y) => {
|
|
784
|
+
action(i, x, y);
|
|
785
|
+
return (i + 1) | 0;
|
|
786
|
+
}, 0, xs, ys);
|
|
787
|
+
}
|
|
634
788
|
function tryLast(xs) {
|
|
635
789
|
const e = ofSeq(xs);
|
|
636
790
|
try {
|
|
@@ -711,6 +865,151 @@ function map2(mapping, xs, ys) {
|
|
|
711
865
|
}
|
|
712
866
|
});
|
|
713
867
|
}
|
|
868
|
+
function mapIndexed2(mapping, xs, ys) {
|
|
869
|
+
return generateIndexed(() => [ofSeq(xs), ofSeq(ys)], (i, tupledArg) => {
|
|
870
|
+
const e1 = tupledArg[0];
|
|
871
|
+
const e2 = tupledArg[1];
|
|
872
|
+
return (e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) ? some(mapping(i, e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined;
|
|
873
|
+
}, (tupledArg_1) => {
|
|
874
|
+
try {
|
|
875
|
+
disposeSafe(tupledArg_1[0]);
|
|
876
|
+
}
|
|
877
|
+
finally {
|
|
878
|
+
disposeSafe(tupledArg_1[1]);
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
function map3(mapping, xs, ys, zs) {
|
|
883
|
+
return generate(() => [ofSeq(xs), ofSeq(ys), ofSeq(zs)], (tupledArg) => {
|
|
884
|
+
const e1 = tupledArg[0];
|
|
885
|
+
const e2 = tupledArg[1];
|
|
886
|
+
const e3 = tupledArg[2];
|
|
887
|
+
return ((e1["System.Collections.IEnumerator.MoveNext"]() && e2["System.Collections.IEnumerator.MoveNext"]()) && e3["System.Collections.IEnumerator.MoveNext"]()) ? some(mapping(e1["System.Collections.Generic.IEnumerator`1.get_Current"](), e2["System.Collections.Generic.IEnumerator`1.get_Current"](), e3["System.Collections.Generic.IEnumerator`1.get_Current"]())) : undefined;
|
|
888
|
+
}, (tupledArg_1) => {
|
|
889
|
+
try {
|
|
890
|
+
disposeSafe(tupledArg_1[0]);
|
|
891
|
+
}
|
|
892
|
+
finally {
|
|
893
|
+
try {
|
|
894
|
+
disposeSafe(tupledArg_1[1]);
|
|
895
|
+
}
|
|
896
|
+
finally {
|
|
897
|
+
disposeSafe(tupledArg_1[2]);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
function readOnly(xs) {
|
|
903
|
+
checkNonNull("source", xs);
|
|
904
|
+
return map((x) => x, xs);
|
|
905
|
+
}
|
|
906
|
+
class CachedSeq$1 {
|
|
907
|
+
constructor(cleanup, res) {
|
|
908
|
+
this.cleanup = cleanup;
|
|
909
|
+
this.res = res;
|
|
910
|
+
}
|
|
911
|
+
Dispose() {
|
|
912
|
+
const _ = this;
|
|
913
|
+
_.cleanup();
|
|
914
|
+
}
|
|
915
|
+
GetEnumerator() {
|
|
916
|
+
const _ = this;
|
|
917
|
+
return getEnumerator(_.res);
|
|
918
|
+
}
|
|
919
|
+
[Symbol.iterator]() {
|
|
920
|
+
return toIterator(getEnumerator(this));
|
|
921
|
+
}
|
|
922
|
+
"System.Collections.IEnumerable.GetEnumerator"() {
|
|
923
|
+
const _ = this;
|
|
924
|
+
return getEnumerator(_.res);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
function CachedSeq$1_$reflection(gen0) {
|
|
928
|
+
return class_type("SeqModule.CachedSeq`1", [gen0], CachedSeq$1);
|
|
929
|
+
}
|
|
930
|
+
function CachedSeq$1_$ctor_Z7A8347D4(cleanup, res) {
|
|
931
|
+
return new CachedSeq$1(cleanup, res);
|
|
932
|
+
}
|
|
933
|
+
function CachedSeq$1__Clear(_) {
|
|
934
|
+
_.cleanup();
|
|
935
|
+
}
|
|
936
|
+
function cache(source) {
|
|
937
|
+
checkNonNull("source", source);
|
|
938
|
+
const prefix = [];
|
|
939
|
+
let enumeratorR = undefined;
|
|
940
|
+
return CachedSeq$1_$ctor_Z7A8347D4(() => {
|
|
941
|
+
Operators_Lock(prefix, () => {
|
|
942
|
+
clear(prefix);
|
|
943
|
+
let matchResult, e;
|
|
944
|
+
if (enumeratorR != null) {
|
|
945
|
+
if (value(enumeratorR) != null) {
|
|
946
|
+
matchResult = 0;
|
|
947
|
+
e = value(value(enumeratorR));
|
|
948
|
+
}
|
|
949
|
+
else {
|
|
950
|
+
matchResult = 1;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
else {
|
|
954
|
+
matchResult = 1;
|
|
955
|
+
}
|
|
956
|
+
switch (matchResult) {
|
|
957
|
+
case 0: {
|
|
958
|
+
disposeSafe(e);
|
|
959
|
+
break;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
enumeratorR = undefined;
|
|
963
|
+
});
|
|
964
|
+
}, unfold((i_1) => Operators_Lock(prefix, () => {
|
|
965
|
+
if (i_1 < prefix.length) {
|
|
966
|
+
return [prefix[i_1], i_1 + 1];
|
|
967
|
+
}
|
|
968
|
+
else {
|
|
969
|
+
if (i_1 >= prefix.length) {
|
|
970
|
+
let optEnumerator_2;
|
|
971
|
+
if (enumeratorR != null) {
|
|
972
|
+
optEnumerator_2 = value(enumeratorR);
|
|
973
|
+
}
|
|
974
|
+
else {
|
|
975
|
+
const optEnumerator = getEnumerator(source);
|
|
976
|
+
enumeratorR = some(optEnumerator);
|
|
977
|
+
optEnumerator_2 = optEnumerator;
|
|
978
|
+
}
|
|
979
|
+
if (optEnumerator_2 == null) {
|
|
980
|
+
}
|
|
981
|
+
else {
|
|
982
|
+
const enumerator = value(optEnumerator_2);
|
|
983
|
+
if (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
984
|
+
void (prefix.push(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]()));
|
|
985
|
+
}
|
|
986
|
+
else {
|
|
987
|
+
disposeSafe(enumerator);
|
|
988
|
+
enumeratorR = some(undefined);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
if (i_1 < prefix.length) {
|
|
993
|
+
return [prefix[i_1], i_1 + 1];
|
|
994
|
+
}
|
|
995
|
+
else {
|
|
996
|
+
return undefined;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}), 0));
|
|
1000
|
+
}
|
|
1001
|
+
function allPairs(xs, ys) {
|
|
1002
|
+
const ysCache = cache(ys);
|
|
1003
|
+
return delay(() => concat(map((x) => map((y) => [x, y], ysCache), xs)));
|
|
1004
|
+
}
|
|
1005
|
+
function mapFold(mapping, state, xs) {
|
|
1006
|
+
const patternInput = mapFold$1(mapping, state, toArray(xs));
|
|
1007
|
+
return [readOnly(patternInput[0]), patternInput[1]];
|
|
1008
|
+
}
|
|
1009
|
+
function mapFoldBack(mapping, xs, state) {
|
|
1010
|
+
const patternInput = mapFoldBack$1(mapping, toArray(xs), state);
|
|
1011
|
+
return [readOnly(patternInput[0]), patternInput[1]];
|
|
1012
|
+
}
|
|
714
1013
|
function tryPick(chooser, xs) {
|
|
715
1014
|
const e = ofSeq(xs);
|
|
716
1015
|
try {
|
|
@@ -724,6 +1023,15 @@ function tryPick(chooser, xs) {
|
|
|
724
1023
|
disposeSafe(e);
|
|
725
1024
|
}
|
|
726
1025
|
}
|
|
1026
|
+
function pick(chooser, xs) {
|
|
1027
|
+
const matchValue = tryPick(chooser, xs);
|
|
1028
|
+
if (matchValue == null) {
|
|
1029
|
+
return indexNotFound();
|
|
1030
|
+
}
|
|
1031
|
+
else {
|
|
1032
|
+
return value(matchValue);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
727
1035
|
function reduce(folder, xs) {
|
|
728
1036
|
const e = ofSeq(xs);
|
|
729
1037
|
try {
|
|
@@ -751,6 +1059,33 @@ function reduce(folder, xs) {
|
|
|
751
1059
|
disposeSafe(e);
|
|
752
1060
|
}
|
|
753
1061
|
}
|
|
1062
|
+
function reduceBack(folder, xs) {
|
|
1063
|
+
const arr = toArray(xs);
|
|
1064
|
+
if (arr.length > 0) {
|
|
1065
|
+
return arr.reduceRight(folder);
|
|
1066
|
+
}
|
|
1067
|
+
else {
|
|
1068
|
+
throw new Error(SR_inputSequenceEmpty);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
function replicate(n, x) {
|
|
1072
|
+
return initialize(n, (_arg) => x);
|
|
1073
|
+
}
|
|
1074
|
+
function reverse(xs) {
|
|
1075
|
+
return delay(() => ofArray(reverse$1(toArray(xs))));
|
|
1076
|
+
}
|
|
1077
|
+
function scan(folder, state, xs) {
|
|
1078
|
+
return delay(() => {
|
|
1079
|
+
let acc = state;
|
|
1080
|
+
return concat([singleton(state), map((x) => {
|
|
1081
|
+
acc = folder(acc, x);
|
|
1082
|
+
return acc;
|
|
1083
|
+
}, xs)]);
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
function scanBack(folder, xs, state) {
|
|
1087
|
+
return delay(() => ofArray(scanBack$1(folder, toArray(xs), state)));
|
|
1088
|
+
}
|
|
754
1089
|
function skip(count, source) {
|
|
755
1090
|
return mkSeq(() => {
|
|
756
1091
|
const e = ofSeq(source);
|
|
@@ -783,17 +1118,57 @@ function skipWhile(predicate, xs) {
|
|
|
783
1118
|
function tail(xs) {
|
|
784
1119
|
return skip(1, xs);
|
|
785
1120
|
}
|
|
1121
|
+
function take(count, xs) {
|
|
1122
|
+
return generateIndexed(() => ofSeq(xs), (i, e) => {
|
|
1123
|
+
if (i < count) {
|
|
1124
|
+
if (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1125
|
+
return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1126
|
+
}
|
|
1127
|
+
else {
|
|
1128
|
+
throw new Error((SR_notEnoughElements + "\\nParameter name: ") + "source");
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
else {
|
|
1132
|
+
return undefined;
|
|
1133
|
+
}
|
|
1134
|
+
}, (e_1) => {
|
|
1135
|
+
disposeSafe(e_1);
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
786
1138
|
function takeWhile(predicate, xs) {
|
|
787
1139
|
return generate(() => ofSeq(xs), (e) => ((e["System.Collections.IEnumerator.MoveNext"]() && predicate(e["System.Collections.Generic.IEnumerator`1.get_Current"]())) ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined), (e_1) => {
|
|
788
1140
|
disposeSafe(e_1);
|
|
789
1141
|
});
|
|
790
1142
|
}
|
|
1143
|
+
function truncate(count, xs) {
|
|
1144
|
+
return generateIndexed(() => ofSeq(xs), (i, e) => (((i < count) && e["System.Collections.IEnumerator.MoveNext"]()) ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined), (e_1) => {
|
|
1145
|
+
disposeSafe(e_1);
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
791
1148
|
function zip(xs, ys) {
|
|
792
1149
|
return map2((x, y) => [x, y], xs, ys);
|
|
793
1150
|
}
|
|
1151
|
+
function zip3(xs, ys, zs) {
|
|
1152
|
+
return map3((x, y, z) => [x, y, z], xs, ys, zs);
|
|
1153
|
+
}
|
|
794
1154
|
function collect(mapping, xs) {
|
|
795
1155
|
return delay(() => concat(map(mapping, xs)));
|
|
796
1156
|
}
|
|
1157
|
+
function where(predicate, xs) {
|
|
1158
|
+
return filter(predicate, xs);
|
|
1159
|
+
}
|
|
1160
|
+
function pairwise(xs) {
|
|
1161
|
+
return delay(() => ofArray(pairwise$1(toArray(xs))));
|
|
1162
|
+
}
|
|
1163
|
+
function splitInto(chunks, xs) {
|
|
1164
|
+
return delay(() => ofArray(splitInto$1(chunks, toArray(xs))));
|
|
1165
|
+
}
|
|
1166
|
+
function windowed(windowSize, xs) {
|
|
1167
|
+
return delay(() => ofArray(windowed$1(windowSize, toArray(xs))));
|
|
1168
|
+
}
|
|
1169
|
+
function transpose(xss) {
|
|
1170
|
+
return delay(() => ofArray(map$1(ofArray, transpose$1(map$1(toArray, toArray(xss))))));
|
|
1171
|
+
}
|
|
797
1172
|
function sortWith(comparer, xs) {
|
|
798
1173
|
return delay(() => {
|
|
799
1174
|
const arr = toArray(xs);
|
|
@@ -807,6 +1182,18 @@ function sort(xs, comparer) {
|
|
|
807
1182
|
function sortBy(projection, xs, comparer) {
|
|
808
1183
|
return sortWith((x, y) => comparer.Compare(projection(x), projection(y)), xs);
|
|
809
1184
|
}
|
|
1185
|
+
function sortDescending(xs, comparer) {
|
|
1186
|
+
return sortWith((x, y) => (comparer.Compare(x, y) * -1), xs);
|
|
1187
|
+
}
|
|
1188
|
+
function sortByDescending(projection, xs, comparer) {
|
|
1189
|
+
return sortWith((x, y) => (comparer.Compare(projection(x), projection(y)) * -1), xs);
|
|
1190
|
+
}
|
|
1191
|
+
function sum(xs, adder) {
|
|
1192
|
+
return fold((acc, x) => adder.Add(acc, x), adder.GetZero(), xs);
|
|
1193
|
+
}
|
|
1194
|
+
function sumBy(f, xs, adder) {
|
|
1195
|
+
return fold((acc, x) => adder.Add(acc, f(x)), adder.GetZero(), xs);
|
|
1196
|
+
}
|
|
810
1197
|
function maxBy(projection, xs, comparer) {
|
|
811
1198
|
return reduce((x, y) => ((comparer.Compare(projection(y), projection(x)) > 0) ? y : x), xs);
|
|
812
1199
|
}
|
|
@@ -819,6 +1206,104 @@ function minBy(projection, xs, comparer) {
|
|
|
819
1206
|
function min(xs, comparer) {
|
|
820
1207
|
return reduce((x, y) => ((comparer.Compare(y, x) > 0) ? x : y), xs);
|
|
821
1208
|
}
|
|
1209
|
+
function average(xs, averager) {
|
|
1210
|
+
let count = 0;
|
|
1211
|
+
const total = fold((acc, x) => {
|
|
1212
|
+
count = ((count + 1) | 0);
|
|
1213
|
+
return averager.Add(acc, x);
|
|
1214
|
+
}, averager.GetZero(), xs);
|
|
1215
|
+
if (count === 0) {
|
|
1216
|
+
throw new Error((SR_inputSequenceEmpty + "\\nParameter name: ") + "source");
|
|
1217
|
+
}
|
|
1218
|
+
else {
|
|
1219
|
+
return averager.DivideByInt(total, count);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
function averageBy(f, xs, averager) {
|
|
1223
|
+
let count = 0;
|
|
1224
|
+
const total = fold((acc, x) => {
|
|
1225
|
+
count = ((count + 1) | 0);
|
|
1226
|
+
return averager.Add(acc, f(x));
|
|
1227
|
+
}, averager.GetZero(), xs);
|
|
1228
|
+
if (count === 0) {
|
|
1229
|
+
throw new Error((SR_inputSequenceEmpty + "\\nParameter name: ") + "source");
|
|
1230
|
+
}
|
|
1231
|
+
else {
|
|
1232
|
+
return averager.DivideByInt(total, count);
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
function permute(f, xs) {
|
|
1236
|
+
return delay(() => ofArray(permute$1(f, toArray(xs))));
|
|
1237
|
+
}
|
|
1238
|
+
function chunkBySize(chunkSize, xs) {
|
|
1239
|
+
return delay(() => ofArray(chunkBySize$1(chunkSize, toArray(xs))));
|
|
1240
|
+
}
|
|
1241
|
+
function insertAt(index, y, xs) {
|
|
1242
|
+
let isDone = false;
|
|
1243
|
+
if (index < 0) {
|
|
1244
|
+
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1245
|
+
}
|
|
1246
|
+
return generateIndexed(() => ofSeq(xs), (i, e) => {
|
|
1247
|
+
if ((isDone ? true : (i < index)) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1248
|
+
return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1249
|
+
}
|
|
1250
|
+
else if (i === index) {
|
|
1251
|
+
isDone = true;
|
|
1252
|
+
return some(y);
|
|
1253
|
+
}
|
|
1254
|
+
else {
|
|
1255
|
+
if (!isDone) {
|
|
1256
|
+
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1257
|
+
}
|
|
1258
|
+
return undefined;
|
|
1259
|
+
}
|
|
1260
|
+
}, (e_1) => {
|
|
1261
|
+
disposeSafe(e_1);
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
function insertManyAt(index, ys, xs) {
|
|
1265
|
+
let status = -1;
|
|
1266
|
+
if (index < 0) {
|
|
1267
|
+
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1268
|
+
}
|
|
1269
|
+
return generateIndexed(() => [ofSeq(xs), ofSeq(ys)], (i, tupledArg) => {
|
|
1270
|
+
const e1 = tupledArg[0];
|
|
1271
|
+
const e2 = tupledArg[1];
|
|
1272
|
+
if (i === index) {
|
|
1273
|
+
status = 0;
|
|
1274
|
+
}
|
|
1275
|
+
let inserted;
|
|
1276
|
+
if (status === 0) {
|
|
1277
|
+
if (e2["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1278
|
+
inserted = some(e2["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1279
|
+
}
|
|
1280
|
+
else {
|
|
1281
|
+
status = 1;
|
|
1282
|
+
inserted = undefined;
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
else {
|
|
1286
|
+
inserted = undefined;
|
|
1287
|
+
}
|
|
1288
|
+
if (inserted == null) {
|
|
1289
|
+
if (e1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1290
|
+
return some(e1["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1291
|
+
}
|
|
1292
|
+
else {
|
|
1293
|
+
if (status < 1) {
|
|
1294
|
+
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1295
|
+
}
|
|
1296
|
+
return undefined;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
else {
|
|
1300
|
+
return some(value(inserted));
|
|
1301
|
+
}
|
|
1302
|
+
}, (tupledArg_1) => {
|
|
1303
|
+
disposeSafe(tupledArg_1[0]);
|
|
1304
|
+
disposeSafe(tupledArg_1[1]);
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
822
1307
|
function removeAt(index, xs) {
|
|
823
1308
|
let isDone = false;
|
|
824
1309
|
if (index < 0) {
|
|
@@ -842,5 +1327,55 @@ function removeAt(index, xs) {
|
|
|
842
1327
|
disposeSafe(e_1);
|
|
843
1328
|
});
|
|
844
1329
|
}
|
|
1330
|
+
function removeManyAt(index, count, xs) {
|
|
1331
|
+
if (index < 0) {
|
|
1332
|
+
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1333
|
+
}
|
|
1334
|
+
return generateIndexed(() => ofSeq(xs), (i, e) => {
|
|
1335
|
+
if (i < index) {
|
|
1336
|
+
if (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1337
|
+
return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1338
|
+
}
|
|
1339
|
+
else {
|
|
1340
|
+
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
else {
|
|
1344
|
+
if (i === index) {
|
|
1345
|
+
for (let _ = 1; _ <= count; _++) {
|
|
1346
|
+
if (!e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1347
|
+
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "count");
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : undefined;
|
|
1352
|
+
}
|
|
1353
|
+
}, (e_1) => {
|
|
1354
|
+
disposeSafe(e_1);
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
function updateAt(index, y, xs) {
|
|
1358
|
+
let isDone = false;
|
|
1359
|
+
if (index < 0) {
|
|
1360
|
+
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1361
|
+
}
|
|
1362
|
+
return generateIndexed(() => ofSeq(xs), (i, e) => {
|
|
1363
|
+
if ((isDone ? true : (i < index)) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1364
|
+
return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1365
|
+
}
|
|
1366
|
+
else if ((i === index) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1367
|
+
isDone = true;
|
|
1368
|
+
return some(y);
|
|
1369
|
+
}
|
|
1370
|
+
else {
|
|
1371
|
+
if (!isDone) {
|
|
1372
|
+
throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
|
|
1373
|
+
}
|
|
1374
|
+
return undefined;
|
|
1375
|
+
}
|
|
1376
|
+
}, (e_1) => {
|
|
1377
|
+
disposeSafe(e_1);
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
845
1380
|
|
|
846
|
-
export { Enumerator_FromFunctions$1, Enumerator_FromFunctions$1_$ctor_58C54629, Enumerator_Seq, Enumerator_Seq_$ctor_673A07F2, Enumerator_alreadyFinished, Enumerator_concat, Enumerator_enumerateThenFinally, Enumerator_generateWhileSome, Enumerator_noReset, Enumerator_notStarted, Enumerator_unfold, SR_enumerationAlreadyFinished, SR_enumerationNotStarted, SR_inputSequenceEmpty, SR_inputSequenceTooLong, SR_keyNotFoundAlt, SR_notEnoughElements, SR_resetNotSupported, append, checkNonNull, choose, collect, compareWith, concat, contains, delay, empty, enumerateFromFunctions, enumerateWhile, exactlyOne, exists, filter, find, findIndex, fold, forAll, generate, generateIndexed, head, indexNotFound, indexed, initialize, isEmpty, item, iterate, iterateIndexed, last, length, map, map2, mapIndexed, max, maxBy, min, minBy, mkSeq, ofArray, ofSeq, reduce, removeAt, singleton, skip, skipWhile, sort, sortBy, sortWith, tail, takeWhile, toArray, toList, tryFind, tryFindIndex, tryHead, tryItem, tryLast, tryPick, unfold, zip };
|
|
1381
|
+
export { CachedSeq$1, CachedSeq$1_$ctor_Z7A8347D4, CachedSeq$1_$reflection, CachedSeq$1__Clear, Enumerator_FromFunctions$1, Enumerator_FromFunctions$1_$ctor_58C54629, Enumerator_FromFunctions$1_$reflection, Enumerator_Seq, Enumerator_Seq_$ctor_673A07F2, Enumerator_Seq_$reflection, Enumerator_alreadyFinished, Enumerator_cast, Enumerator_concat, Enumerator_enumerateThenFinally, Enumerator_generateWhileSome, Enumerator_noReset, Enumerator_notStarted, Enumerator_unfold, SR_enumerationAlreadyFinished, SR_enumerationNotStarted, SR_inputSequenceEmpty, SR_inputSequenceTooLong, SR_keyNotFoundAlt, SR_notEnoughElements, SR_resetNotSupported, allPairs, append, average, averageBy, cache, cast, checkNonNull, choose, chunkBySize, collect, compareWith, concat, contains, delay, empty, enumerateFromFunctions, enumerateThenFinally, enumerateUsing, enumerateWhile, exactlyOne, exists, exists2, filter, find, findBack, findIndex, findIndexBack, fold, fold2, foldBack, foldBack2, forAll, forAll2, generate, generateIndexed, head, indexNotFound, indexed, initialize, initializeInfinite, insertAt, insertManyAt, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, length, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, max, maxBy, min, minBy, mkSeq, ofArray, ofList, ofSeq, pairwise, permute, pick, readOnly, reduce, reduceBack, removeAt, removeManyAt, replicate, reverse, scan, scanBack, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortWith, splitInto, sum, sumBy, tail, take, takeWhile, toArray, toList, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, updateAt, where, windowed, zip, zip3 };
|