@ryuzaki13/react-foundation-lib 2.31.0 → 2.31.3
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/README.md +17 -5
- package/dist/analytical-table/definition/analyticalDefinitionConstants.d.ts +17 -0
- package/dist/analytical-table/definition/analyticalDefinitionConstants.d.ts.map +1 -0
- package/dist/analytical-table/definition/compileAnalyticalTableDefinition.d.ts.map +1 -1
- package/dist/analytical-table/definition/types.d.ts +6 -5
- package/dist/analytical-table/definition/types.d.ts.map +1 -1
- package/dist/analytical-table/dynamic-columns/analyticalDateColumnConstants.d.ts +7 -0
- package/dist/analytical-table/dynamic-columns/analyticalDateColumnConstants.d.ts.map +1 -0
- package/dist/analytical-table/dynamic-columns/dateColumns.d.ts.map +1 -1
- package/dist/analytical-table/dynamic-columns/types.d.ts +2 -1
- package/dist/analytical-table/dynamic-columns/types.d.ts.map +1 -1
- package/dist/analytical-table/index.js +124 -113
- package/dist/analytical-table/index.js.map +1 -1
- package/dist/analytical-table/projections/analyticalExportConstants.d.ts +7 -0
- package/dist/analytical-table/projections/analyticalExportConstants.d.ts.map +1 -0
- package/dist/analytical-table/projections/expansion.d.ts +2 -1
- package/dist/analytical-table/projections/expansion.d.ts.map +1 -1
- package/dist/analytical-table/projections/exportProjection.d.ts.map +1 -1
- package/dist/analytical-table/projections/types.d.ts +3 -2
- package/dist/analytical-table/projections/types.d.ts.map +1 -1
- package/dist/analytical-table/runtime/aggregation.d.ts.map +1 -1
- package/dist/analytical-table/runtime/analyticalRowConstants.d.ts +4 -0
- package/dist/analytical-table/runtime/analyticalRowConstants.d.ts.map +1 -0
- package/dist/analytical-table/runtime/analyticalViewConstants.d.ts +16 -0
- package/dist/analytical-table/runtime/analyticalViewConstants.d.ts.map +1 -0
- package/dist/analytical-table/runtime/buildGroupedModel.d.ts.map +1 -1
- package/dist/analytical-table/runtime/filtering.d.ts.map +1 -1
- package/dist/analytical-table/runtime/grouping.d.ts.map +1 -1
- package/dist/analytical-table/runtime/hierarchy.d.ts +2 -1
- package/dist/analytical-table/runtime/hierarchy.d.ts.map +1 -1
- package/dist/analytical-table/runtime/totals.d.ts +2 -2
- package/dist/analytical-table/runtime/totals.d.ts.map +1 -1
- package/dist/analytical-table/runtime/types.d.ts +5 -3
- package/dist/analytical-table/runtime/types.d.ts.map +1 -1
- package/dist/analytical-table/runtime/valueComparison.d.ts.map +1 -1
- package/dist/array/index.js +1 -1
- package/dist/array/reorder.d.ts +6 -1
- package/dist/array/reorder.d.ts.map +1 -1
- package/dist/async-task-runner/createCoalescingTaskRunner.d.ts.map +1 -1
- package/dist/async-task-runner/createDeadlineTimer.d.ts.map +1 -1
- package/dist/async-task-runner/index.js +39 -36
- package/dist/async-task-runner/index.js.map +1 -1
- package/dist/async-task-runner/nativeTimerConstants.d.ts +3 -0
- package/dist/async-task-runner/nativeTimerConstants.d.ts.map +1 -0
- package/dist/binary/base64Constants.d.ts +6 -0
- package/dist/binary/base64Constants.d.ts.map +1 -0
- package/dist/binary/binaryToBlob.d.ts.map +1 -1
- package/dist/binary/getBase64DecodedSize.d.ts.map +1 -1
- package/dist/binary/index.js +95 -70
- package/dist/binary/index.js.map +1 -1
- package/dist/browser-notifications/browserNotificationConstants.d.ts +3 -0
- package/dist/browser-notifications/browserNotificationConstants.d.ts.map +1 -0
- package/dist/browser-notifications/browserNotificationTypes.d.ts +2 -1
- package/dist/browser-notifications/browserNotificationTypes.d.ts.map +1 -1
- package/dist/browser-notifications/createBrowserNotificationPresenter.d.ts.map +1 -1
- package/dist/browser-notifications/index.js +38 -37
- package/dist/browser-notifications/index.js.map +1 -1
- package/dist/chunks/{array-D-_yMMUK.js → array-bd7LYFto.js} +1 -3
- package/dist/chunks/{array-D-_yMMUK.js.map → array-bd7LYFto.js.map} +1 -1
- package/dist/chunks/{dom-BK22UmgF.js → dom-ZSeWZ0Gg.js} +103 -98
- package/dist/chunks/dom-ZSeWZ0Gg.js.map +1 -0
- package/dist/chunks/formatDate-CNPcfNte.js +133 -0
- package/dist/chunks/formatDate-CNPcfNte.js.map +1 -0
- package/dist/chunks/{formatters-CZnnbdud.js → formatters-CO40zvVB.js} +496 -496
- package/dist/chunks/formatters-CO40zvVB.js.map +1 -0
- package/dist/chunks/{formulas-BXT_XBWI.js → formulas-Y0HOcFhe.js} +90 -86
- package/dist/chunks/formulas-Y0HOcFhe.js.map +1 -0
- package/dist/chunks/hasSignatureBytes-D2wO_Myl.js +11 -0
- package/dist/chunks/hasSignatureBytes-D2wO_Myl.js.map +1 -0
- package/dist/chunks/keyboardConstants-BZKskWsm.js +6 -0
- package/dist/chunks/keyboardConstants-BZKskWsm.js.map +1 -0
- package/dist/chunks/media-imBOXWwa.js +192 -0
- package/dist/chunks/media-imBOXWwa.js.map +1 -0
- package/dist/chunks/mimeTypeConstants-BzONV-b1.js +6 -0
- package/dist/chunks/mimeTypeConstants-BzONV-b1.js.map +1 -0
- package/dist/chunks/{query-client-CVRfrYZM.js → query-client-D0HQZ84w.js} +142 -142
- package/dist/chunks/query-client-D0HQZ84w.js.map +1 -0
- package/dist/chunks/scalarTypeClassification-D4YcGxtQ.js +766 -0
- package/dist/chunks/scalarTypeClassification-D4YcGxtQ.js.map +1 -0
- package/dist/chunks/scalarTypeConstants-CnSsjpGO.js +6 -0
- package/dist/chunks/scalarTypeConstants-CnSsjpGO.js.map +1 -0
- package/dist/chunks/utils-DW0Yso1Q.js +210 -0
- package/dist/chunks/utils-DW0Yso1Q.js.map +1 -0
- package/dist/chunks/{uuid-CUJPAbRY.js → uuid-izDzLv18.js} +1 -2
- package/dist/chunks/uuid-izDzLv18.js.map +1 -0
- package/dist/chunks/validate-8URYKKly.js +613 -0
- package/dist/chunks/validate-8URYKKly.js.map +1 -0
- package/dist/copy/index.js +5 -5
- package/dist/copy/index.js.map +1 -1
- package/dist/copy/useCopyFeedback.d.ts.map +1 -1
- package/dist/crypto/hashString.d.ts.map +1 -1
- package/dist/crypto/hexadecimalConstants.d.ts +3 -0
- package/dist/crypto/hexadecimalConstants.d.ts.map +1 -0
- package/dist/crypto/index.js +25 -24
- package/dist/crypto/index.js.map +1 -1
- package/dist/crypto/uuid.d.ts.map +1 -1
- package/dist/date-segments/index.js +81 -81
- package/dist/date-segments/index.js.map +1 -1
- package/dist/date-segments/mask.d.ts +13 -3
- package/dist/date-segments/mask.d.ts.map +1 -1
- package/dist/decimal/decimalConstants.d.ts +3 -0
- package/dist/decimal/decimalConstants.d.ts.map +1 -0
- package/dist/decimal/index.js +0 -2
- package/dist/decimal/index.js.map +1 -1
- package/dist/decimal/normalizeDecimal.d.ts.map +1 -1
- package/dist/decimal/normalizeDecimalLiteral.d.ts.map +1 -1
- package/dist/decimal/resolveDecimalMaxLength.d.ts.map +1 -1
- package/dist/decimal/sumDecimals.d.ts.map +1 -1
- package/dist/decimal/writeDecimalParts.d.ts.map +1 -1
- package/dist/dom/document-scroll/acquireDocumentScrollLock.d.ts.map +1 -1
- package/dist/dom/document-scroll/attachDocumentTouchScrollGuard.d.ts.map +1 -1
- package/dist/dom/document-scroll/canConsumeVerticalTouchScroll.d.ts.map +1 -1
- package/dist/dom/domEventConstants.d.ts +4 -0
- package/dist/dom/domEventConstants.d.ts.map +1 -0
- package/dist/dom/domScrollConstants.d.ts +3 -0
- package/dist/dom/domScrollConstants.d.ts.map +1 -0
- package/dist/dom/index.js +1 -1
- package/dist/dom/installFaviconOverride.d.ts.map +1 -1
- package/dist/dom/overlayFocusConstants.d.ts +4 -0
- package/dist/dom/overlayFocusConstants.d.ts.map +1 -0
- package/dist/dom/scroll-anchor/captureScrollAnchor.d.ts.map +1 -1
- package/dist/dom/useClickOutside.d.ts +1 -1
- package/dist/dom/useClickOutside.d.ts.map +1 -1
- package/dist/dom/useEscapeDismiss.d.ts +1 -1
- package/dist/dom/useEscapeDismiss.d.ts.map +1 -1
- package/dist/dom/useFocusTrap.d.ts.map +1 -1
- package/dist/dom/useIsTouchDevice.d.ts.map +1 -1
- package/dist/dom/useOverlayFocus.d.ts +3 -2
- package/dist/dom/useOverlayFocus.d.ts.map +1 -1
- package/dist/dom/visual-viewport/attachVisualViewportFrame.d.ts.map +1 -1
- package/dist/error-report/breadcrumbs.d.ts.map +1 -1
- package/dist/error-report/capture.d.ts.map +1 -1
- package/dist/error-report/captureOptions.d.ts +3 -2
- package/dist/error-report/captureOptions.d.ts.map +1 -1
- package/dist/error-report/capturePolicyConstants.d.ts +4 -0
- package/dist/error-report/capturePolicyConstants.d.ts.map +1 -0
- package/dist/error-report/dataPreview.d.ts.map +1 -1
- package/dist/error-report/diagnostics.d.ts.map +1 -1
- package/dist/error-report/drafts.d.ts.map +1 -1
- package/dist/error-report/environment.d.ts.map +1 -1
- package/dist/error-report/errorInfo.d.ts.map +1 -1
- package/dist/error-report/errorReportCaptureLimits.d.ts +26 -0
- package/dist/error-report/errorReportCaptureLimits.d.ts.map +1 -0
- package/dist/error-report/errorReportContractConstants.d.ts +32 -0
- package/dist/error-report/errorReportContractConstants.d.ts.map +1 -0
- package/dist/error-report/index.js +586 -587
- package/dist/error-report/index.js.map +1 -1
- package/dist/error-report/payload.d.ts.map +1 -1
- package/dist/error-report/queue.d.ts.map +1 -1
- package/dist/error-report/queueContract.d.ts +7 -6
- package/dist/error-report/queueContract.d.ts.map +1 -1
- package/dist/error-report/queueRecord.d.ts.map +1 -1
- package/dist/error-report/queueResultConstants.d.ts +14 -0
- package/dist/error-report/queueResultConstants.d.ts.map +1 -0
- package/dist/error-report/runtimeDeduplication.d.ts +2 -1
- package/dist/error-report/runtimeDeduplication.d.ts.map +1 -1
- package/dist/error-report/safeValue.d.ts.map +1 -1
- package/dist/error-report/safeValueMarkerConstants.d.ts +16 -0
- package/dist/error-report/safeValueMarkerConstants.d.ts.map +1 -0
- package/dist/error-report/schema.d.ts.map +1 -1
- package/dist/error-report/types.d.ts +10 -8
- package/dist/error-report/types.d.ts.map +1 -1
- package/dist/error-report-source-maps/archive.d.ts.map +1 -1
- package/dist/error-report-source-maps/artifact.d.ts.map +1 -1
- package/dist/error-report-source-maps/index.js +238 -238
- package/dist/error-report-source-maps/index.js.map +1 -1
- package/dist/error-report-source-maps/manifest.d.ts.map +1 -1
- package/dist/error-report-source-maps/package.d.ts.map +1 -1
- package/dist/error-report-source-maps/sourceMapArtifactConstants.d.ts +11 -0
- package/dist/error-report-source-maps/sourceMapArtifactConstants.d.ts.map +1 -0
- package/dist/error-report-source-maps/symbolicate.d.ts.map +1 -1
- package/dist/error-report-source-maps/symbolicationResultConstants.d.ts +6 -0
- package/dist/error-report-source-maps/symbolicationResultConstants.d.ts.map +1 -0
- package/dist/error-report-source-maps/types.d.ts +4 -2
- package/dist/error-report-source-maps/types.d.ts.map +1 -1
- package/dist/excel/excel.d.ts.map +1 -1
- package/dist/excel/excelWorkbookConstants.d.ts +6 -0
- package/dist/excel/excelWorkbookConstants.d.ts.map +1 -0
- package/dist/excel/index.js +121 -120
- package/dist/excel/index.js.map +1 -1
- package/dist/excel/matrixWorkbook.d.ts +6 -1
- package/dist/excel/matrixWorkbook.d.ts.map +1 -1
- package/dist/excel/tableExport.d.ts +2 -2
- package/dist/excel/tableExport.d.ts.map +1 -1
- package/dist/file/checkFileSignature.d.ts.map +1 -1
- package/dist/file/contentDisposition.d.ts.map +1 -1
- package/dist/file/fileSignatureConstants.d.ts +14 -18
- package/dist/file/fileSignatureConstants.d.ts.map +1 -1
- package/dist/file/fileSignatureTypes.d.ts +3 -3
- package/dist/file/fileSignatureTypes.d.ts.map +1 -1
- package/dist/file/image/imageReadConstants.d.ts +3 -0
- package/dist/file/image/imageReadConstants.d.ts.map +1 -0
- package/dist/file/image/readImageFile.d.ts +3 -2
- package/dist/file/image/readImageFile.d.ts.map +1 -1
- package/dist/file/image/types.d.ts +5 -3
- package/dist/file/image/types.d.ts.map +1 -1
- package/dist/file/index.js +139 -165
- package/dist/file/index.js.map +1 -1
- package/dist/file/mimeType.d.ts.map +1 -1
- package/dist/file/mimeTypeConstants.d.ts +18 -0
- package/dist/file/mimeTypeConstants.d.ts.map +1 -0
- package/dist/file/read-file/assert.d.ts.map +1 -1
- package/dist/file/read-file/readFile.d.ts +3 -11
- package/dist/file/read-file/readFile.d.ts.map +1 -1
- package/dist/file/read-file/readFileConstants.d.ts +13 -0
- package/dist/file/read-file/readFileConstants.d.ts.map +1 -0
- package/dist/file/read-file/types.d.ts +7 -6
- package/dist/file/read-file/types.d.ts.map +1 -1
- package/dist/file/signature/checkArchiveSignature.d.ts.map +1 -1
- package/dist/file-system/fileSystemConstants.d.ts +5 -0
- package/dist/file-system/fileSystemConstants.d.ts.map +1 -0
- package/dist/file-system/fileSystemTypes.d.ts +2 -1
- package/dist/file-system/fileSystemTypes.d.ts.map +1 -1
- package/dist/file-system/index.js +11 -10
- package/dist/file-system/index.js.map +1 -1
- package/dist/file-system/resolvePathInsideRoot.d.ts.map +1 -1
- package/dist/formatters/boolean/parseAbapBoolean.d.ts.map +1 -1
- package/dist/formatters/boolean/toAbapBoolean.d.ts.map +1 -1
- package/dist/formatters/date/calendarDate.d.ts.map +1 -1
- package/dist/formatters/date/calendarDateConstants.d.ts +13 -0
- package/dist/formatters/date/calendarDateConstants.d.ts.map +1 -0
- package/dist/formatters/date/calendarPeriod.d.ts +11 -2
- package/dist/formatters/date/calendarPeriod.d.ts.map +1 -1
- package/dist/formatters/date/dateFormatConstants.d.ts +17 -0
- package/dist/formatters/date/dateFormatConstants.d.ts.map +1 -0
- package/dist/formatters/date/datePatternConstants.d.ts +16 -0
- package/dist/formatters/date/datePatternConstants.d.ts.map +1 -0
- package/dist/formatters/date/datePresetNameConstants.d.ts +27 -0
- package/dist/formatters/date/datePresetNameConstants.d.ts.map +1 -0
- package/dist/formatters/date/dateRange.d.ts +3 -1
- package/dist/formatters/date/dateRange.d.ts.map +1 -1
- package/dist/formatters/date/dateValueConstants.d.ts +15 -0
- package/dist/formatters/date/dateValueConstants.d.ts.map +1 -0
- package/dist/formatters/date/educationDate.d.ts.map +1 -1
- package/dist/formatters/date/formatDate.d.ts.map +1 -1
- package/dist/formatters/date/formatInstantDateTime.d.ts.map +1 -1
- package/dist/formatters/date/parseDate.d.ts.map +1 -1
- package/dist/formatters/date/pattern.d.ts.map +1 -1
- package/dist/formatters/date/presets.d.ts.map +1 -1
- package/dist/formatters/date/types.d.ts +8 -6
- package/dist/formatters/date/types.d.ts.map +1 -1
- package/dist/formatters/formatDurationMinutes.d.ts.map +1 -1
- package/dist/formatters/formatFileSize.d.ts.map +1 -1
- package/dist/formatters/formatPhone.d.ts.map +1 -1
- package/dist/formatters/index.js +6 -5
- package/dist/formatters/normalizeLeadingZeros.d.ts.map +1 -1
- package/dist/formatters/number/compact.d.ts.map +1 -1
- package/dist/formatters/number/formatCompactNumber.d.ts.map +1 -1
- package/dist/formatters/number/formatNumber.d.ts.map +1 -1
- package/dist/formatters/number/numberFormatConstants.d.ts +11 -0
- package/dist/formatters/number/numberFormatConstants.d.ts.map +1 -0
- package/dist/formatters/number/numberPresetNameConstants.d.ts +16 -0
- package/dist/formatters/number/numberPresetNameConstants.d.ts.map +1 -0
- package/dist/formatters/number/parseNumber.d.ts.map +1 -1
- package/dist/formatters/number/presets.d.ts.map +1 -1
- package/dist/formatters/number/types.d.ts +2 -1
- package/dist/formatters/number/types.d.ts.map +1 -1
- package/dist/formatters/pipeline/clone.d.ts.map +1 -1
- package/dist/formatters/pipeline/definitions.d.ts.map +1 -1
- package/dist/formatters/pipeline/dependencies.d.ts.map +1 -1
- package/dist/formatters/pipeline/execute.d.ts +4 -1
- package/dist/formatters/pipeline/execute.d.ts.map +1 -1
- package/dist/formatters/pipeline/formattersPipelineConstants.d.ts +19 -0
- package/dist/formatters/pipeline/formattersPipelineConstants.d.ts.map +1 -0
- package/dist/formatters/pipeline/normalize.d.ts.map +1 -1
- package/dist/formatters/pipeline/pipelineValidationConstants.d.ts +40 -0
- package/dist/formatters/pipeline/pipelineValidationConstants.d.ts.map +1 -0
- package/dist/formatters/pipeline/registry.d.ts +1 -1
- package/dist/formatters/pipeline/registry.d.ts.map +1 -1
- package/dist/formatters/pipeline/rekey.d.ts.map +1 -1
- package/dist/formatters/pipeline/runtime.d.ts.map +1 -1
- package/dist/formatters/pipeline/types.d.ts +28 -25
- package/dist/formatters/pipeline/types.d.ts.map +1 -1
- package/dist/formatters/pipeline/validate.d.ts +2 -1
- package/dist/formatters/pipeline/validate.d.ts.map +1 -1
- package/dist/formatters/strings/spaceCharacterConstants.d.ts +5 -0
- package/dist/formatters/strings/spaceCharacterConstants.d.ts.map +1 -0
- package/dist/formatters/strings/stripInnerSpaces.d.ts.map +1 -1
- package/dist/formatters/strings/stripLeadingZeros.d.ts.map +1 -1
- package/dist/formatters/valueState/fixedValueStateResolver.d.ts.map +1 -1
- package/dist/formatters/valueState/presentation.d.ts.map +1 -1
- package/dist/formatters/valueState/resolveValueStateClassName.d.ts.map +1 -1
- package/dist/formatters/valueState/thresholdValueStateResolver.d.ts.map +1 -1
- package/dist/formatters/valueState/types.d.ts +2 -1
- package/dist/formatters/valueState/types.d.ts.map +1 -1
- package/dist/formatters/valueState/valueStateRegistry.d.ts.map +1 -1
- package/dist/formatters/valueState/valueStateResolverConstants.d.ts +6 -0
- package/dist/formatters/valueState/valueStateResolverConstants.d.ts.map +1 -0
- package/dist/formulas/execute.d.ts +3 -2
- package/dist/formulas/execute.d.ts.map +1 -1
- package/dist/formulas/index.js +1 -1
- package/dist/formulas/isTableFormulaDependency.d.ts.map +1 -1
- package/dist/formulas/tableFormulaConstants.d.ts +12 -0
- package/dist/formulas/tableFormulaConstants.d.ts.map +1 -0
- package/dist/formulas/types.d.ts +2 -1
- package/dist/formulas/types.d.ts.map +1 -1
- package/dist/formulas/validate.d.ts +2 -1
- package/dist/formulas/validate.d.ts.map +1 -1
- package/dist/hooks/index.js +110 -107
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useBlockBrowserZoom.d.ts.map +1 -1
- package/dist/hooks/useDndSortableSensors.d.ts.map +1 -1
- package/dist/hooks/useFloatingListbox.d.ts +15 -33
- package/dist/hooks/useFloatingListbox.d.ts.map +1 -1
- package/dist/http/index.js +8 -7
- package/dist/http/index.js.map +1 -1
- package/dist/http/textResponse.d.ts.map +1 -1
- package/dist/indexed-records/createIndexedRecordsSchema.d.ts.map +1 -1
- package/dist/indexed-records/schema.js +24 -23
- package/dist/indexed-records/schema.js.map +1 -1
- package/dist/media/breakpointConstants.d.ts +5 -0
- package/dist/media/breakpointConstants.d.ts.map +1 -0
- package/dist/media/breakpoints.d.ts +2 -1
- package/dist/media/breakpoints.d.ts.map +1 -1
- package/dist/media/createNotificationTonePlayer.d.ts.map +1 -1
- package/dist/media/getCurrentFontSize.d.ts.map +1 -1
- package/dist/media/index.js +1 -1
- package/dist/media/mediaQueryConstants.d.ts +3 -0
- package/dist/media/mediaQueryConstants.d.ts.map +1 -0
- package/dist/media/responsive.d.ts +1 -1
- package/dist/media/responsive.d.ts.map +1 -1
- package/dist/media/useMatchMedia.d.ts.map +1 -1
- package/dist/media/useMediaQuery.d.ts.map +1 -1
- package/dist/metadata/baseMetaTypes.d.ts +7 -0
- package/dist/metadata/baseMetaTypes.d.ts.map +1 -0
- package/dist/metadata/metadataTypes.d.ts +17 -0
- package/dist/metadata/metadataTypes.d.ts.map +1 -0
- package/dist/metadata/scalarTypeClassification.d.ts +8 -0
- package/dist/metadata/scalarTypeClassification.d.ts.map +1 -0
- package/dist/metadata/scalarTypeConstants.d.ts +21 -0
- package/dist/metadata/scalarTypeConstants.d.ts.map +1 -0
- package/dist/notifications/index.js +62 -62
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications/notificationTypeConstants.d.ts +6 -0
- package/dist/notifications/notificationTypeConstants.d.ts.map +1 -0
- package/dist/notifications/notify.d.ts.map +1 -1
- package/dist/notifications/store.d.ts.map +1 -1
- package/dist/notifications/types.d.ts +2 -1
- package/dist/notifications/types.d.ts.map +1 -1
- package/dist/number-scale/index.js +47 -46
- package/dist/number-scale/index.js.map +1 -1
- package/dist/number-scale/marksPositionConstants.d.ts +4 -0
- package/dist/number-scale/marksPositionConstants.d.ts.map +1 -0
- package/dist/number-scale/numberScale.d.ts +1 -1
- package/dist/number-scale/numberScale.d.ts.map +1 -1
- package/dist/number-scale/types.d.ts +2 -1
- package/dist/number-scale/types.d.ts.map +1 -1
- package/dist/odata-service/baseTypes.d.ts +1 -5
- package/dist/odata-service/baseTypes.d.ts.map +1 -1
- package/dist/odata-service/builder.d.ts.map +1 -1
- package/dist/odata-service/columns.d.ts.map +1 -1
- package/dist/odata-service/entityOperationConstants.d.ts +4 -0
- package/dist/odata-service/entityOperationConstants.d.ts.map +1 -0
- package/dist/odata-service/filterDefinitionConstants.d.ts +24 -0
- package/dist/odata-service/filterDefinitionConstants.d.ts.map +1 -0
- package/dist/odata-service/filterDefinitions.d.ts +19 -17
- package/dist/odata-service/filterDefinitions.d.ts.map +1 -1
- package/dist/odata-service/filterOperationConstants.d.ts +14 -0
- package/dist/odata-service/filterOperationConstants.d.ts.map +1 -0
- package/dist/odata-service/filters.d.ts.map +1 -1
- package/dist/odata-service/formatters.d.ts +1 -2
- package/dist/odata-service/formatters.d.ts.map +1 -1
- package/dist/odata-service/index.js +1317 -2
- package/dist/odata-service/index.js.map +1 -0
- package/dist/odata-service/odataMetadataConstants.d.ts +8 -0
- package/dist/odata-service/odataMetadataConstants.d.ts.map +1 -0
- package/dist/odata-service/parser.d.ts +1 -3
- package/dist/odata-service/parser.d.ts.map +1 -1
- package/dist/odata-service/schema.d.ts.map +1 -1
- package/dist/odata-service/sorts.d.ts.map +1 -1
- package/dist/odata-service/sqlFilters.d.ts +10 -5
- package/dist/odata-service/sqlFilters.d.ts.map +1 -1
- package/dist/odata-service/types.d.ts +13 -14
- package/dist/odata-service/types.d.ts.map +1 -1
- package/dist/odata-service/typesValidation.d.ts +1 -5
- package/dist/odata-service/typesValidation.d.ts.map +1 -1
- package/dist/pwa/index.js +72 -71
- package/dist/pwa/index.js.map +1 -1
- package/dist/pwa/sw-cache-policy.js +47 -47
- package/dist/pwa/sw-cache-policy.js.map +1 -1
- package/dist/pwa/swCachePolicy.d.ts +5 -1
- package/dist/pwa/swCachePolicy.d.ts.map +1 -1
- package/dist/pwa/useBrowserOnlineStatus.d.ts.map +1 -1
- package/dist/query-client/broadcast.d.ts +4 -3
- package/dist/query-client/broadcast.d.ts.map +1 -1
- package/dist/query-client/createQueryRestoreSchedulerGuard.d.ts.map +1 -1
- package/dist/query-client/createQueryRestoreStorage.d.ts.map +1 -1
- package/dist/query-client/index.js +1 -1
- package/dist/query-client/invalidationBroadcast.d.ts +2 -1
- package/dist/query-client/invalidationBroadcast.d.ts.map +1 -1
- package/dist/query-client/persistence.d.ts +9 -6
- package/dist/query-client/persistence.d.ts.map +1 -1
- package/dist/query-client/queryCacheEventConstants.d.ts +11 -0
- package/dist/query-client/queryCacheEventConstants.d.ts.map +1 -0
- package/dist/query-client/queryClient.d.ts +2 -1
- package/dist/query-client/queryClient.d.ts.map +1 -1
- package/dist/query-client/queryMeta.d.ts.map +1 -1
- package/dist/query-client/sessionPersistenceConstants.d.ts +5 -0
- package/dist/query-client/sessionPersistenceConstants.d.ts.map +1 -0
- package/dist/query-client/sessionScoped.d.ts.map +1 -1
- package/dist/query-client/sessionScopedResetConstants.d.ts +4 -0
- package/dist/query-client/sessionScopedResetConstants.d.ts.map +1 -0
- package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts +2 -1
- package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts.map +1 -1
- package/dist/seo/index.js +0 -1
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/seo.d.ts +3 -2
- package/dist/seo/seo.d.ts.map +1 -1
- package/dist/seo/seoContentTypeConstants.d.ts +6 -0
- package/dist/seo/seoContentTypeConstants.d.ts.map +1 -0
- package/dist/seo/types.d.ts +2 -1
- package/dist/seo/types.d.ts.map +1 -1
- package/dist/session-storage/index.js +1 -1
- package/dist/table/cellSelection.d.ts.map +1 -1
- package/dist/table/index.js +83 -79
- package/dist/table/index.js.map +1 -1
- package/dist/table/odataAdapter.d.ts +3 -3
- package/dist/table/odataAdapter.d.ts.map +1 -1
- package/dist/table/selection.d.ts +2 -2
- package/dist/table/selection.d.ts.map +1 -1
- package/dist/table/tableColumnConstants.d.ts +5 -0
- package/dist/table/tableColumnConstants.d.ts.map +1 -0
- package/dist/table/tableSelectionConstants.d.ts +8 -0
- package/dist/table/tableSelectionConstants.d.ts.map +1 -0
- package/dist/table/tanStackFeatures.d.ts +8 -8
- package/dist/table/types.d.ts +5 -3
- package/dist/table/types.d.ts.map +1 -1
- package/dist/table/useTableRowSelection.d.ts +2 -2
- package/dist/table/useTableRowSelection.d.ts.map +1 -1
- package/dist/table-document/index.js +88 -87
- package/dist/table-document/index.js.map +1 -1
- package/dist/table-document/insertTableDocumentAxis.d.ts +2 -1
- package/dist/table-document/insertTableDocumentAxis.d.ts.map +1 -1
- package/dist/table-document/tableDocument.d.ts +2 -1
- package/dist/table-document/tableDocument.d.ts.map +1 -1
- package/dist/table-document/tableDocumentAxisGroups.d.ts +4 -3
- package/dist/table-document/tableDocumentAxisGroups.d.ts.map +1 -1
- package/dist/table-document/tableDocumentConstants.d.ts +8 -0
- package/dist/table-document/tableDocumentConstants.d.ts.map +1 -0
- package/dist/table-document/tableDocumentGeometry.d.ts.map +1 -1
- package/dist/three-scene/index.js +32 -32
- package/dist/three-scene/index.js.map +1 -1
- package/dist/three-scene/threeSceneAvailability.d.ts +4 -3
- package/dist/three-scene/threeSceneAvailability.d.ts.map +1 -1
- package/dist/three-scene/threeSceneConstants.d.ts +14 -0
- package/dist/three-scene/threeSceneConstants.d.ts.map +1 -0
- package/dist/three-scene/useThreeSceneAvailability.d.ts.map +1 -1
- package/dist/tree-table/index.js +1 -1
- package/dist/types/abapBooleanConstants.d.ts +4 -0
- package/dist/types/abapBooleanConstants.d.ts.map +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/types.d.ts +4 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/valueStateConstants.d.ts +8 -0
- package/dist/types/valueStateConstants.d.ts.map +1 -0
- package/dist/utils/cloneFunctionStrategyConstants.d.ts +4 -0
- package/dist/utils/cloneFunctionStrategyConstants.d.ts.map +1 -0
- package/dist/utils/createLazyComponent.d.ts.map +1 -1
- package/dist/utils/deepCloneWithoutFunctions.d.ts +2 -1
- package/dist/utils/deepCloneWithoutFunctions.d.ts.map +1 -1
- package/dist/utils/deepCopyWithoutFunctions.d.ts +2 -1
- package/dist/utils/deepCopyWithoutFunctions.d.ts.map +1 -1
- package/dist/utils/index.js +2 -209
- package/dist/utils/keyboard.d.ts +2 -1
- package/dist/utils/keyboard.d.ts.map +1 -1
- package/dist/utils/keyboardConstants.d.ts +16 -0
- package/dist/utils/keyboardConstants.d.ts.map +1 -0
- package/dist/validators/index.js +3 -3
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/validateUrl.d.ts.map +1 -1
- package/dist/value-transformers/execute.d.ts.map +1 -1
- package/dist/value-transformers/index.js +9 -6
- package/dist/value-transformers/index.js.map +1 -1
- package/dist/value-transformers/types.d.ts +3 -2
- package/dist/value-transformers/types.d.ts.map +1 -1
- package/dist/value-transformers/valueTransformerConstants.d.ts +4 -0
- package/dist/value-transformers/valueTransformerConstants.d.ts.map +1 -0
- package/package.json +6 -5
- package/src/binary/README.mdx +1 -1
- package/src/dom/README.mdx +1 -1
- package/src/formatters/README.mdx +5 -0
- package/src/foundationLib.mdx +8 -0
- package/src/metadata/README.md +35 -0
- package/src/odata-service/README.mdx +36 -1
- package/src/query-client/README.mdx +4 -4
- package/dist/chunks/dom-BK22UmgF.js.map +0 -1
- package/dist/chunks/formatters-CZnnbdud.js.map +0 -1
- package/dist/chunks/formulas-BXT_XBWI.js.map +0 -1
- package/dist/chunks/media-WK38KtMl.js +0 -191
- package/dist/chunks/media-WK38KtMl.js.map +0 -1
- package/dist/chunks/odata-service-tp2U5yIr.js +0 -2211
- package/dist/chunks/odata-service-tp2U5yIr.js.map +0 -1
- package/dist/chunks/query-client-CVRfrYZM.js.map +0 -1
- package/dist/chunks/uuid-CUJPAbRY.js.map +0 -1
- package/dist/chunks/validate-CEQHqevt.js +0 -608
- package/dist/chunks/validate-CEQHqevt.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Ut as e } from "../chunks/formatters-
|
|
2
|
-
import { _ as t } from "../chunks/array-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as i } from "../chunks/uuid-
|
|
1
|
+
import { Ut as e } from "../chunks/formatters-CO40zvVB.js";
|
|
2
|
+
import { _ as t } from "../chunks/array-bd7LYFto.js";
|
|
3
|
+
import { a as n } from "../chunks/utils-DW0Yso1Q.js";
|
|
4
|
+
import { b as r } from "../chunks/formatDate-CNPcfNte.js";
|
|
5
|
+
import { t as i } from "../chunks/uuid-izDzLv18.js";
|
|
6
6
|
import { hashString128 as a } from "../crypto/index.js";
|
|
7
7
|
import { ERROR_REPORT_BUILD_ID_PATTERN as o } from "../error-report-build/index.js";
|
|
8
|
-
import { p as s } from "../chunks/query-client-
|
|
8
|
+
import { p as s } from "../chunks/query-client-D0HQZ84w.js";
|
|
9
9
|
import { getSessionStorageId as ee } from "../session-storage/index.js";
|
|
10
10
|
import { z as c } from "zod";
|
|
11
|
-
//#region src/error-report/
|
|
12
|
-
var te =
|
|
13
|
-
valuePolicy:
|
|
11
|
+
//#region src/error-report/capturePolicyConstants.ts
|
|
12
|
+
var te = "redacted", l = "verbatim", ne = 8192, re = 16384, ie = 2048, u = 2048, ae = 32768, oe = {
|
|
13
|
+
valuePolicy: te,
|
|
14
14
|
dataPreviewBytes: {
|
|
15
15
|
query: 0,
|
|
16
16
|
persistedQuery: 0,
|
|
17
17
|
mutation: 0
|
|
18
18
|
}
|
|
19
|
-
},
|
|
20
|
-
function
|
|
21
|
-
return e === void 0 || !Number.isFinite(e) ? 0 : Math.max(0, Math.min(
|
|
19
|
+
}, se = oe;
|
|
20
|
+
function ce(e) {
|
|
21
|
+
return e === void 0 || !Number.isFinite(e) ? 0 : Math.max(0, Math.min(re, Math.trunc(e)));
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
valuePolicy: e.valuePolicy ??
|
|
23
|
+
function le(e) {
|
|
24
|
+
se = e ? {
|
|
25
|
+
valuePolicy: e.valuePolicy ?? oe.valuePolicy,
|
|
26
26
|
dataPreviewBytes: {
|
|
27
|
-
query:
|
|
28
|
-
persistedQuery:
|
|
29
|
-
mutation:
|
|
27
|
+
query: ce(e.dataPreviewBytes?.query),
|
|
28
|
+
persistedQuery: ce(e.dataPreviewBytes?.persistedQuery),
|
|
29
|
+
mutation: ce(e.dataPreviewBytes?.mutation)
|
|
30
30
|
}
|
|
31
|
-
} :
|
|
31
|
+
} : oe;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function d() {
|
|
34
|
+
return se;
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
|
-
//#region src/error-report/
|
|
38
|
-
var
|
|
37
|
+
//#region src/error-report/errorReportContractConstants.ts
|
|
38
|
+
var ue = "query", de = "mutation", fe = "runtime", pe = "react", me = "mutation", he = "pending", ge = "sending", _e = "sent", ve = "failed", ye = "route", be = "click", xe = "visibility", Se = "query-error", Ce = "mutation-error", we = "runtime-error", Te = "development", Ee = "production", f = "breadcrumb-detail", p = "context", De = "draft-failed-reason", Oe = "mutation-key", ke = "mutation-meta", Ae = "persisted-query-key", je = "query-data-shape", Me = "query-meta", Ne = "stack-trace", Pe = "payload-size", m = "truncated", Fe = "non-finite-number", Ie = "undefined", Le = "function", Re = "symbol", ze = "invalid-date", Be = "unknown", Ve = "circular", He = "unreadable", Ue = "[REDACTED]", We = 4, Ge = 4096, Ke = 3, qe = "https://error-report.invalid", Je = "[TRUNCATED]", Ye = [
|
|
39
39
|
"apikey",
|
|
40
40
|
"authorization",
|
|
41
41
|
"cookie",
|
|
@@ -46,303 +46,303 @@ var ae = 4, oe = 20, d = 40, se = 4096, ce = 8192, le = "[REDACTED]", ue = [
|
|
|
46
46
|
"secret",
|
|
47
47
|
"sessiontoken",
|
|
48
48
|
"token"
|
|
49
|
-
],
|
|
50
|
-
function
|
|
49
|
+
], Xe = "url", Ze;
|
|
50
|
+
function Qe(e) {
|
|
51
51
|
return e.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
let t =
|
|
55
|
-
return
|
|
53
|
+
function $e(e) {
|
|
54
|
+
let t = Qe(e);
|
|
55
|
+
return Ye.some((e) => t.includes(e));
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function et(e) {
|
|
58
|
+
return Qe(e).endsWith(Xe);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function tt(e) {
|
|
61
61
|
return /^(?:https?:\/\/|\/)[^\s]*[?#]/i.test(e);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function nt(e) {
|
|
64
64
|
try {
|
|
65
|
-
let t = new URL(e,
|
|
66
|
-
return t.origin ===
|
|
65
|
+
let t = new URL(e, qe), n = t.pathname;
|
|
66
|
+
return t.origin === qe ? n : `${t.origin}${n}`;
|
|
67
67
|
} catch {
|
|
68
68
|
return e.split(/[?#]/, 1)[0] ?? e;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
if (
|
|
71
|
+
function h(e, t = Ge) {
|
|
72
|
+
if (d().valuePolicy === "verbatim") {
|
|
73
73
|
if (e.length <= t) return e;
|
|
74
74
|
let n = `… [TRUNCATED: ${e.length} characters total]`;
|
|
75
|
-
if (n.length > t) return
|
|
75
|
+
if (n.length > t) return Je.slice(0, Math.max(0, t));
|
|
76
76
|
let r = e.slice(0, Math.max(0, t - n.length)), i = r.charCodeAt(r.length - 1);
|
|
77
77
|
return `${i >= 55296 && i <= 56319 ? r.slice(0, -1) : r}${n}`;
|
|
78
78
|
}
|
|
79
79
|
let n = e.slice(0, t);
|
|
80
80
|
return /\bbearer\s/i.test(n) && (n = n.replace(/\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi, "Bearer [REDACTED]")), n.includes("@") && (n = n.replace(/[A-Z0-9._%+-]{1,254}@[A-Z0-9.-]{1,253}\.[A-Z]{2,63}/gi, "[REDACTED_EMAIL]")), n;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function g(e) {
|
|
83
83
|
return new TextEncoder().encode(e).byteLength;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
let n =
|
|
85
|
+
function _(e, t) {
|
|
86
|
+
if (d().valuePolicy === "verbatim") {
|
|
87
|
+
let n = g(e);
|
|
88
88
|
if (n <= t) return e;
|
|
89
89
|
let r = `… [TRUNCATED: ${n} UTF-8 bytes total]`;
|
|
90
|
-
if (
|
|
91
|
-
let i = Math.max(0, t -
|
|
90
|
+
if (g(r) > t) return Je.slice(0, Math.max(0, t));
|
|
91
|
+
let i = Math.max(0, t - g(r)), a = 0, o = e.length;
|
|
92
92
|
for (; a < o;) {
|
|
93
93
|
let t = Math.ceil((a + o) / 2);
|
|
94
|
-
|
|
94
|
+
g(e.slice(0, t)) <= i ? a = t : o = t - 1;
|
|
95
95
|
}
|
|
96
96
|
let s = e.charCodeAt(a - 1), ee = s >= 55296 && s <= 56319 ? a - 1 : a;
|
|
97
97
|
return `${e.slice(0, ee)}${r}`;
|
|
98
98
|
}
|
|
99
|
-
let n =
|
|
100
|
-
if (
|
|
99
|
+
let n = h(e, t);
|
|
100
|
+
if (g(n) <= t) return n;
|
|
101
101
|
let r = 0, i = n.length;
|
|
102
102
|
for (; r < i;) {
|
|
103
103
|
let e = Math.ceil((r + i) / 2);
|
|
104
|
-
|
|
104
|
+
g(n.slice(0, e)) <= t ? r = e : i = e - 1;
|
|
105
105
|
}
|
|
106
106
|
let a = n.charCodeAt(r - 1), o = a >= 55296 && a <= 56319 ? r - 1 : r;
|
|
107
107
|
return n.slice(0, o);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
let i =
|
|
111
|
-
if (!i && r &&
|
|
112
|
-
if (t >=
|
|
109
|
+
function v(e, t, n, r) {
|
|
110
|
+
let i = d().valuePolicy === l;
|
|
111
|
+
if (!i && r && $e(r)) return Ue;
|
|
112
|
+
if (t >= We) return { type: m };
|
|
113
113
|
if (e === null || typeof e == "boolean") return e;
|
|
114
|
-
if (typeof e == "number") return Number.isFinite(e) ? e : { type:
|
|
115
|
-
if (typeof e == "string") return
|
|
116
|
-
if (e === void 0) return { type:
|
|
117
|
-
if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type:
|
|
114
|
+
if (typeof e == "number") return Number.isFinite(e) ? e : { type: Fe };
|
|
115
|
+
if (typeof e == "string") return h(!i && (r && et(r) || tt(e)) ? nt(e) : e, n.maxStringLength);
|
|
116
|
+
if (e === void 0) return { type: Ie };
|
|
117
|
+
if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type: ze } : e.toISOString();
|
|
118
118
|
if (typeof e == "object") {
|
|
119
|
-
if (n.seen.has(e)) return { type:
|
|
119
|
+
if (n.seen.has(e)) return { type: Ve };
|
|
120
120
|
n.seen.add(e);
|
|
121
121
|
}
|
|
122
122
|
if (Array.isArray(e)) {
|
|
123
|
-
let r = i && e.length >
|
|
123
|
+
let r = i && e.length > 20 ? 19 : 20, a = e.slice(0, r).map((e) => v(e, t + 1, n));
|
|
124
124
|
return i && e.length > r && a.push({
|
|
125
|
-
type:
|
|
125
|
+
type: m,
|
|
126
126
|
omittedItems: e.length - r
|
|
127
127
|
}), a;
|
|
128
128
|
}
|
|
129
129
|
if (typeof e == "object") try {
|
|
130
|
-
let r = Object.entries(e).sort(([e], [t]) => e.localeCompare(t)), a = i && r.length >
|
|
130
|
+
let r = Object.entries(e).sort(([e], [t]) => e.localeCompare(t)), a = i && r.length > 40 ? 39 : 40, o = Object.fromEntries(r.slice(0, a).map(([e, r]) => [e, v(r, t + 1, n, e)]));
|
|
131
131
|
if (i && r.length > a) {
|
|
132
132
|
let t = "$truncated";
|
|
133
133
|
for (; Object.hasOwn(e, t);) t += "_";
|
|
134
134
|
o[t] = {
|
|
135
|
-
type:
|
|
135
|
+
type: m,
|
|
136
136
|
omittedKeys: r.length - a
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
return o;
|
|
140
140
|
} catch {
|
|
141
|
-
return { type:
|
|
141
|
+
return { type: He };
|
|
142
142
|
}
|
|
143
|
-
return typeof e == "function" ? { type:
|
|
143
|
+
return typeof e == "function" ? { type: Le } : typeof e == "symbol" ? { type: Re } : typeof e == "bigint" ? e.toString() : { type: Be };
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
return
|
|
145
|
+
function rt(e, t = 0) {
|
|
146
|
+
return v(e, t, {
|
|
147
147
|
seen: /* @__PURE__ */ new WeakSet(),
|
|
148
|
-
maxStringLength:
|
|
148
|
+
maxStringLength: Ge
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (t >=
|
|
151
|
+
function y(e, t = 0) {
|
|
152
|
+
if (t >= We) return { type: m };
|
|
153
153
|
if (e === null) return { type: "null" };
|
|
154
|
-
if (e === void 0) return { type:
|
|
154
|
+
if (e === void 0) return { type: Ie };
|
|
155
155
|
if (Array.isArray(e)) return {
|
|
156
156
|
type: "array",
|
|
157
157
|
length: e.length,
|
|
158
|
-
firstItemsShape: e.slice(0,
|
|
158
|
+
firstItemsShape: e.slice(0, Ke).map((e) => y(e, t + 1))
|
|
159
159
|
};
|
|
160
160
|
if (typeof e == "object") {
|
|
161
|
-
let n = Object.entries(e).slice(0,
|
|
161
|
+
let n = Object.entries(e).slice(0, 40);
|
|
162
162
|
return {
|
|
163
163
|
type: "object",
|
|
164
164
|
keys: n.map(([e]) => e),
|
|
165
|
-
shape: Object.fromEntries(n.map(([e, n]) => [e,
|
|
165
|
+
shape: Object.fromEntries(n.map(([e, n]) => [e, y(n, t + 1)]))
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
return { type: typeof e };
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
170
|
+
function it(e) {
|
|
171
|
+
Ze = e;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
let r = t.scope === "query-key" || t.scope === "mutation-key" || t.scope === "persisted-query-key", i =
|
|
173
|
+
function b(e, t, n = Ge) {
|
|
174
|
+
let r = t.scope === "query-key" || t.scope === "mutation-key" || t.scope === "persisted-query-key", i = d().valuePolicy === "verbatim" && r ? Math.max(n, ne) : n, a = (e) => v(e, 0, {
|
|
175
175
|
seen: /* @__PURE__ */ new WeakSet(),
|
|
176
176
|
maxStringLength: i
|
|
177
177
|
}), o = a(e);
|
|
178
|
-
if (!
|
|
178
|
+
if (!Ze) return o;
|
|
179
179
|
try {
|
|
180
|
-
let e =
|
|
180
|
+
let e = Ze(o, t);
|
|
181
181
|
return e === void 0 ? void 0 : a(e);
|
|
182
182
|
} catch {
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function x(e, t = { scope: p }) {
|
|
187
187
|
if (!e) return;
|
|
188
|
-
let n =
|
|
188
|
+
let n = b(e, t);
|
|
189
189
|
if (!(!n || Array.isArray(n) || typeof n != "object")) return Object.keys(n).length ? n : void 0;
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/error-report/breadcrumbs.ts
|
|
193
|
-
var
|
|
193
|
+
var at = "click", ot = "visibilitychange", st = "data-error-report-target", ct = "data-ui", lt = "data-action", ut = 20, dt = 120, ft = [
|
|
194
194
|
"button",
|
|
195
195
|
"a",
|
|
196
196
|
"input",
|
|
197
197
|
"select",
|
|
198
198
|
"textarea",
|
|
199
199
|
"[role]"
|
|
200
|
-
].join(","),
|
|
201
|
-
function
|
|
200
|
+
].join(","), pt = /^[a-z0-9][a-z0-9._:/-]*$/i, S = [];
|
|
201
|
+
function mt() {
|
|
202
202
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
204
|
+
function C(e) {
|
|
205
|
+
S = [...S, {
|
|
206
206
|
...e,
|
|
207
|
-
utc:
|
|
208
|
-
routeId: e.routeId ?
|
|
209
|
-
appId: e.appId ?
|
|
210
|
-
viewId: e.viewId ?
|
|
211
|
-
target: e.target ?
|
|
212
|
-
detail:
|
|
213
|
-
scope:
|
|
207
|
+
utc: h(e.utc ?? mt(), 64),
|
|
208
|
+
routeId: e.routeId ? h(d().valuePolicy === "verbatim" ? e.routeId : e.routeId.split(/[?#]/, 1)[0] ?? e.routeId, 512) : void 0,
|
|
209
|
+
appId: e.appId ? h(e.appId, 128) : void 0,
|
|
210
|
+
viewId: e.viewId ? h(e.viewId, 128) : void 0,
|
|
211
|
+
target: e.target ? h(e.target, ie) : void 0,
|
|
212
|
+
detail: x(e.detail, {
|
|
213
|
+
scope: f,
|
|
214
214
|
source: e.type
|
|
215
215
|
})
|
|
216
216
|
}].slice(-80);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
return
|
|
218
|
+
function ht() {
|
|
219
|
+
return S.slice();
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
221
|
+
function gt() {
|
|
222
|
+
S = [];
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
return e(t,
|
|
224
|
+
function _t(t) {
|
|
225
|
+
return e(t, dt);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
let t =
|
|
229
|
-
return t &&
|
|
227
|
+
function vt(e) {
|
|
228
|
+
let t = _t(e.getAttribute(st));
|
|
229
|
+
return t && pt.test(t) ? t : void 0;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
let n =
|
|
233
|
-
return n &&
|
|
231
|
+
function w(e, t) {
|
|
232
|
+
let n = _t(e.getAttribute(t));
|
|
233
|
+
return n && pt.test(n) ? n : void 0;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let t =
|
|
235
|
+
function yt(e) {
|
|
236
|
+
let t = vt(e);
|
|
237
237
|
return {
|
|
238
|
-
role:
|
|
239
|
-
type:
|
|
238
|
+
role: w(e, "role"),
|
|
239
|
+
type: w(e, "type"),
|
|
240
240
|
errorReportTarget: t,
|
|
241
|
-
dataUi: t ? void 0 :
|
|
242
|
-
dataAction: t ? void 0 :
|
|
241
|
+
dataUi: t ? void 0 : w(e, ct),
|
|
242
|
+
dataAction: t ? void 0 : w(e, lt)
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function bt(e) {
|
|
246
246
|
return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/["\\#.[\]>~+:]/g, "\\$&");
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
let t =
|
|
250
|
-
return t.role && n.push(`[role="${t.role}"]`), t.type && n.push(`[type="${t.type}"]`), t.errorReportTarget ? n.push(`[
|
|
248
|
+
function xt(e) {
|
|
249
|
+
let t = yt(e), n = [e.tagName.toLowerCase()];
|
|
250
|
+
return t.role && n.push(`[role="${t.role}"]`), t.type && n.push(`[type="${t.type}"]`), t.errorReportTarget ? n.push(`[${st}="${bt(t.errorReportTarget)}"]`) : (t.dataUi && n.push(`[${ct}="${bt(t.dataUi)}"]`), t.dataAction && n.push(`[${lt}="${bt(t.dataAction)}"]`)), n.join("");
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
let t =
|
|
252
|
+
function St(e) {
|
|
253
|
+
let t = yt(e);
|
|
254
254
|
return {
|
|
255
255
|
tag: e.tagName.toLowerCase(),
|
|
256
|
-
selector:
|
|
256
|
+
selector: xt(e),
|
|
257
257
|
...t
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ct(e) {
|
|
261
261
|
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0 && (!Array.isArray(e) || e.length > 0)));
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function wt(e) {
|
|
264
264
|
let t = [], n = e;
|
|
265
|
-
for (; n && n !== document.documentElement && t.length <
|
|
265
|
+
for (; n && n !== document.documentElement && t.length < ut && (t.push(n), n !== document.body);) n = n.parentElement;
|
|
266
266
|
return t;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
let t =
|
|
270
|
-
return t.find((e) =>
|
|
268
|
+
function Tt(e) {
|
|
269
|
+
let t = wt(e);
|
|
270
|
+
return t.find((e) => vt(e)) || (t.find((e) => e.matches(ft) || w(e, lt) !== void 0 || w(e, ct) !== void 0) ?? e);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
if (e instanceof Element) return
|
|
272
|
+
function Et(e) {
|
|
273
|
+
if (e instanceof Element) return wt(Tt(e)).map((e) => xt(e)).join(" > ");
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
let t = e.target instanceof Element ? e.target : void 0, n = t ?
|
|
277
|
-
return
|
|
275
|
+
function Dt(e) {
|
|
276
|
+
let t = e.target instanceof Element ? e.target : void 0, n = t ? Tt(t) : void 0, r = n ? wt(n).map((e) => Ct(St(e))) : [];
|
|
277
|
+
return x({
|
|
278
278
|
button: e.button,
|
|
279
279
|
ctrlKey: e.ctrlKey,
|
|
280
280
|
shiftKey: e.shiftKey,
|
|
281
281
|
altKey: e.altKey,
|
|
282
282
|
clientX: e.clientX,
|
|
283
283
|
clientY: e.clientY,
|
|
284
|
-
target: n ?
|
|
284
|
+
target: n ? Ct(St(n)) : void 0,
|
|
285
285
|
chain: r
|
|
286
286
|
}, {
|
|
287
|
-
scope:
|
|
288
|
-
source:
|
|
287
|
+
scope: f,
|
|
288
|
+
source: be
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Ot() {
|
|
292
292
|
if (typeof window > "u") return () => void 0;
|
|
293
293
|
let e = (e) => {
|
|
294
|
-
|
|
295
|
-
type:
|
|
296
|
-
target:
|
|
297
|
-
detail:
|
|
294
|
+
C({
|
|
295
|
+
type: be,
|
|
296
|
+
target: Et(e.target),
|
|
297
|
+
detail: Dt(e)
|
|
298
298
|
});
|
|
299
299
|
}, t = () => {
|
|
300
|
-
|
|
301
|
-
type:
|
|
302
|
-
detail:
|
|
303
|
-
scope:
|
|
304
|
-
source:
|
|
300
|
+
C({
|
|
301
|
+
type: xe,
|
|
302
|
+
detail: x({ visibilityState: document.visibilityState }, {
|
|
303
|
+
scope: f,
|
|
304
|
+
source: xe
|
|
305
305
|
})
|
|
306
306
|
});
|
|
307
307
|
};
|
|
308
|
-
return window.addEventListener(
|
|
309
|
-
window.removeEventListener(
|
|
308
|
+
return window.addEventListener(at, e, !0), document.addEventListener(ot, t), () => {
|
|
309
|
+
window.removeEventListener(at, e, !0), document.removeEventListener(ot, t);
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/error-report/dataPreview.ts
|
|
314
|
-
var
|
|
315
|
-
function
|
|
316
|
-
if (t >=
|
|
314
|
+
var kt = 6, At = 12, jt = 24, Mt = 1024, Nt = 128, Pt = 4;
|
|
315
|
+
function Ft(e, t, n) {
|
|
316
|
+
if (t >= kt || n.nodesLeft-- <= 0) return n.truncated = !0, { type: m };
|
|
317
317
|
if (e === null || typeof e == "boolean") return e;
|
|
318
|
-
if (typeof e == "number") return Number.isFinite(e) ? e : { type:
|
|
318
|
+
if (typeof e == "number") return Number.isFinite(e) ? e : { type: Fe };
|
|
319
319
|
if (typeof e == "string") {
|
|
320
|
-
e.length >
|
|
321
|
-
let t = e.slice(0,
|
|
320
|
+
e.length > Mt && (n.truncated = !0);
|
|
321
|
+
let t = e.slice(0, Mt), r = t.charCodeAt(t.length - 1);
|
|
322
322
|
return r >= 55296 && r <= 56319 ? t.slice(0, -1) : t;
|
|
323
323
|
}
|
|
324
324
|
if (typeof e == "bigint") return e.toString();
|
|
325
|
-
if (e === void 0) return { type:
|
|
326
|
-
if (typeof e == "function") return { type:
|
|
327
|
-
if (typeof e == "symbol") return { type:
|
|
328
|
-
if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type:
|
|
329
|
-
if (typeof e != "object") return { type:
|
|
330
|
-
if (n.seen.has(e)) return { type:
|
|
331
|
-
if (n.seen.add(e), Array.isArray(e)) return e.length >
|
|
325
|
+
if (e === void 0) return { type: Ie };
|
|
326
|
+
if (typeof e == "function") return { type: Le };
|
|
327
|
+
if (typeof e == "symbol") return { type: Re };
|
|
328
|
+
if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type: ze } : e.toISOString();
|
|
329
|
+
if (typeof e != "object") return { type: Be };
|
|
330
|
+
if (n.seen.has(e)) return { type: Ve };
|
|
331
|
+
if (n.seen.add(e), Array.isArray(e)) return e.length > At && (n.truncated = !0), e.slice(0, At).map((e) => Ft(e, t + 1, n));
|
|
332
332
|
try {
|
|
333
333
|
let r = Object.entries(e);
|
|
334
|
-
return r.length >
|
|
334
|
+
return r.length > jt && (n.truncated = !0), Object.fromEntries(r.slice(0, jt).map(([e, r]) => [e, Ft(r, t + 1, n)]));
|
|
335
335
|
} catch {
|
|
336
|
-
return { type:
|
|
336
|
+
return { type: He };
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function It(e) {
|
|
340
340
|
let t = Array.from(e);
|
|
341
341
|
return t.slice(0, Math.floor(t.length / 2)).join("");
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Lt(e) {
|
|
344
344
|
if (typeof e == "string") return e ? {
|
|
345
|
-
value:
|
|
345
|
+
value: It(e),
|
|
346
346
|
changed: !0
|
|
347
347
|
} : {
|
|
348
348
|
value: e,
|
|
@@ -354,7 +354,7 @@ function We(e) {
|
|
|
354
354
|
changed: !0
|
|
355
355
|
};
|
|
356
356
|
if (e.length === 1) {
|
|
357
|
-
let t =
|
|
357
|
+
let t = Lt(e[0]);
|
|
358
358
|
return t.changed ? (e[0] = t.value, {
|
|
359
359
|
value: e,
|
|
360
360
|
changed: !0
|
|
@@ -375,7 +375,7 @@ function We(e) {
|
|
|
375
375
|
changed: !1
|
|
376
376
|
};
|
|
377
377
|
if (t.length === 1) {
|
|
378
|
-
let t =
|
|
378
|
+
let t = Lt(e[n]);
|
|
379
379
|
if (t.changed) return e[n] = t.value, {
|
|
380
380
|
value: e,
|
|
381
381
|
changed: !0
|
|
@@ -391,15 +391,15 @@ function We(e) {
|
|
|
391
391
|
changed: !1
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function T(e, t) {
|
|
395
395
|
let n = {
|
|
396
396
|
seen: /* @__PURE__ */ new WeakSet(),
|
|
397
|
-
nodesLeft:
|
|
397
|
+
nodesLeft: Nt,
|
|
398
398
|
truncated: !1
|
|
399
|
-
}, r =
|
|
400
|
-
for (;
|
|
399
|
+
}, r = Ft(e, 0, n), i = JSON.stringify(r), a = Math.max(Pt, t);
|
|
400
|
+
for (; g(i) > a;) {
|
|
401
401
|
n.truncated = !0;
|
|
402
|
-
let e =
|
|
402
|
+
let e = Lt(r);
|
|
403
403
|
r = e.changed ? e.value : null, i = JSON.stringify(r);
|
|
404
404
|
}
|
|
405
405
|
return {
|
|
@@ -409,155 +409,159 @@ function w(e, t) {
|
|
|
409
409
|
}
|
|
410
410
|
//#endregion
|
|
411
411
|
//#region src/error-report/payload.ts
|
|
412
|
-
var
|
|
413
|
-
|
|
412
|
+
var Rt = 1, E = 262144, D = 131072, O = 65536, zt = 128, Bt = 128, Vt = 4096, Ht = 10, Ut = 10, Wt = 10, Gt = 20, Kt = [
|
|
413
|
+
512,
|
|
414
|
+
128,
|
|
415
|
+
4
|
|
416
|
+
], k = "bytes", qt = "characters";
|
|
417
|
+
function Jt(e) {
|
|
414
418
|
return new TextEncoder().encode(JSON.stringify(e)).byteLength;
|
|
415
419
|
}
|
|
416
|
-
function
|
|
417
|
-
return
|
|
420
|
+
function Yt(e) {
|
|
421
|
+
return h(d().valuePolicy === "verbatim" ? e : e.split(/[?#]/, 1)[0] ?? e, u);
|
|
418
422
|
}
|
|
419
|
-
function
|
|
420
|
-
if (!(!e || t <= 0 ||
|
|
423
|
+
function Xt(e, t) {
|
|
424
|
+
if (!(!e || t <= 0 || d().valuePolicy !== "verbatim")) try {
|
|
421
425
|
let n = JSON.parse(e.json);
|
|
422
|
-
return
|
|
423
|
-
...
|
|
426
|
+
return g(e.json) <= t ? e : {
|
|
427
|
+
...T(n, t),
|
|
424
428
|
truncated: !0
|
|
425
429
|
};
|
|
426
430
|
} catch {
|
|
427
431
|
return;
|
|
428
432
|
}
|
|
429
433
|
}
|
|
430
|
-
function
|
|
431
|
-
let i =
|
|
432
|
-
if (typeof i == "string") return r ===
|
|
434
|
+
function Zt(e, t, n, r = qt) {
|
|
435
|
+
let i = b(r === k ? _(e, n) : h(e, n), t, n);
|
|
436
|
+
if (typeof i == "string") return r === k ? _(i, n) : h(i, n);
|
|
433
437
|
}
|
|
434
|
-
function
|
|
435
|
-
let n =
|
|
438
|
+
function A(e, t) {
|
|
439
|
+
let n = d().valuePolicy === l;
|
|
436
440
|
return {
|
|
437
|
-
name:
|
|
438
|
-
message:
|
|
441
|
+
name: h(e.name, 256),
|
|
442
|
+
message: Zt(e.message, {
|
|
439
443
|
scope: "error-message",
|
|
440
444
|
source: t
|
|
441
|
-
}, n ? 131072 :
|
|
442
|
-
code: e.code ?
|
|
443
|
-
stackTrace: e.stackTrace ?
|
|
444
|
-
scope:
|
|
445
|
+
}, n ? 131072 : Vt, n ? k : qt) ?? (n ? _(e.message, 131072) : "[REDACTED]"),
|
|
446
|
+
code: e.code ? h(e.code, 128) : void 0,
|
|
447
|
+
stackTrace: e.stackTrace ? Zt(e.stackTrace, {
|
|
448
|
+
scope: Ne,
|
|
445
449
|
source: t
|
|
446
|
-
},
|
|
450
|
+
}, O, k) : void 0,
|
|
447
451
|
httpStatus: e.httpStatus
|
|
448
452
|
};
|
|
449
453
|
}
|
|
450
|
-
function
|
|
451
|
-
let t =
|
|
454
|
+
function Qt(e) {
|
|
455
|
+
let t = d();
|
|
452
456
|
return {
|
|
453
457
|
...e,
|
|
454
|
-
queryHash:
|
|
455
|
-
queryKey:
|
|
458
|
+
queryHash: h(e.queryHash, 512),
|
|
459
|
+
queryKey: b(e.queryKey, {
|
|
456
460
|
scope: "query-key",
|
|
457
461
|
source: e.queryHash
|
|
458
462
|
}) ?? { type: "redacted" },
|
|
459
|
-
meta:
|
|
460
|
-
scope:
|
|
463
|
+
meta: x(e.meta, {
|
|
464
|
+
scope: Me,
|
|
461
465
|
source: e.queryHash
|
|
462
466
|
}),
|
|
463
|
-
dataShape: e.dataShape ?
|
|
464
|
-
scope:
|
|
467
|
+
dataShape: e.dataShape ? b(e.dataShape, {
|
|
468
|
+
scope: je,
|
|
465
469
|
source: e.queryHash
|
|
466
470
|
}) : void 0,
|
|
467
|
-
dataPreview:
|
|
468
|
-
error: e.error ?
|
|
471
|
+
dataPreview: Xt(e.dataPreview, t.dataPreviewBytes.query),
|
|
472
|
+
error: e.error ? A(e.error, e.queryHash) : void 0
|
|
469
473
|
};
|
|
470
474
|
}
|
|
471
|
-
function
|
|
472
|
-
let t =
|
|
475
|
+
function $t(e) {
|
|
476
|
+
let t = d();
|
|
473
477
|
return {
|
|
474
478
|
...e,
|
|
475
|
-
mutationKey: e.mutationKey ?
|
|
476
|
-
meta:
|
|
477
|
-
variablesPreview:
|
|
478
|
-
error: e.error ?
|
|
479
|
+
mutationKey: e.mutationKey ? b(e.mutationKey, { scope: Oe }) : void 0,
|
|
480
|
+
meta: x(e.meta, { scope: ke }),
|
|
481
|
+
variablesPreview: Xt(e.variablesPreview, t.dataPreviewBytes.mutation),
|
|
482
|
+
error: e.error ? A(e.error, me) : void 0
|
|
479
483
|
};
|
|
480
484
|
}
|
|
481
|
-
function
|
|
482
|
-
let t =
|
|
485
|
+
function en(e) {
|
|
486
|
+
let t = d();
|
|
483
487
|
return {
|
|
484
488
|
...e,
|
|
485
|
-
buster: e.buster ?
|
|
486
|
-
queryHash: e.queryHash ?
|
|
487
|
-
queryKey: e.queryKey ?
|
|
488
|
-
scope:
|
|
489
|
+
buster: e.buster ? h(e.buster, 512) : void 0,
|
|
490
|
+
queryHash: e.queryHash ? h(e.queryHash, 512) : void 0,
|
|
491
|
+
queryKey: e.queryKey ? b(e.queryKey, {
|
|
492
|
+
scope: Ae,
|
|
489
493
|
source: e.queryHash
|
|
490
494
|
}) : void 0,
|
|
491
|
-
dataPreview:
|
|
492
|
-
error: e.error ?
|
|
495
|
+
dataPreview: Xt(e.dataPreview, t.dataPreviewBytes.persistedQuery),
|
|
496
|
+
error: e.error ? A(e.error, e.queryHash) : void 0
|
|
493
497
|
};
|
|
494
498
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
499
|
+
function j(e) {
|
|
500
|
+
return Jt(e);
|
|
497
501
|
}
|
|
498
|
-
function
|
|
499
|
-
let t =
|
|
502
|
+
function tn(e) {
|
|
503
|
+
let t = d().valuePolicy === l;
|
|
500
504
|
return {
|
|
501
505
|
...e,
|
|
502
|
-
reportId:
|
|
503
|
-
sessionId:
|
|
504
|
-
createdUtc:
|
|
505
|
-
application:
|
|
506
|
-
source:
|
|
507
|
-
error:
|
|
506
|
+
reportId: h(e.reportId, zt),
|
|
507
|
+
sessionId: h(e.sessionId, Bt),
|
|
508
|
+
createdUtc: h(e.createdUtc, 64),
|
|
509
|
+
application: h(e.application, 128),
|
|
510
|
+
source: h(e.source, 256),
|
|
511
|
+
error: A(e.error, e.source),
|
|
508
512
|
environment: {
|
|
509
513
|
...e.environment,
|
|
510
|
-
buildId: e.environment.buildId ?
|
|
514
|
+
buildId: e.environment.buildId ? h(e.environment.buildId, 128) : void 0
|
|
511
515
|
},
|
|
512
516
|
client: e.client ? {
|
|
513
|
-
userAgent: e.client.userAgent ?
|
|
514
|
-
language: e.client.language ?
|
|
515
|
-
timeZone: e.client.timeZone ?
|
|
517
|
+
userAgent: e.client.userAgent ? h(e.client.userAgent) : void 0,
|
|
518
|
+
language: e.client.language ? h(e.client.language, 128) : void 0,
|
|
519
|
+
timeZone: e.client.timeZone ? h(e.client.timeZone, 128) : void 0
|
|
516
520
|
} : void 0,
|
|
517
521
|
location: e.location ? {
|
|
518
|
-
pathname:
|
|
519
|
-
origin: e.location.origin ?
|
|
520
|
-
search:
|
|
521
|
-
hash:
|
|
522
|
+
pathname: Yt(e.location.pathname),
|
|
523
|
+
origin: e.location.origin ? h(e.location.origin.split(/[?#]/, 1)[0] ?? e.location.origin, u) : void 0,
|
|
524
|
+
search: d().valuePolicy === "verbatim" && e.location.search ? h(e.location.search, u) : void 0,
|
|
525
|
+
hash: d().valuePolicy === "verbatim" && e.location.hash ? h(e.location.hash, u) : void 0
|
|
522
526
|
} : void 0,
|
|
523
|
-
react: e.react?.componentStack ? { componentStack:
|
|
524
|
-
scope:
|
|
527
|
+
react: e.react?.componentStack ? { componentStack: Zt(e.react.componentStack, {
|
|
528
|
+
scope: Ne,
|
|
525
529
|
source: "react-component-stack"
|
|
526
|
-
},
|
|
527
|
-
query: e.query ?
|
|
528
|
-
mutation: e.mutation ?
|
|
530
|
+
}, ae, k) } : void 0,
|
|
531
|
+
query: e.query ? Qt(e.query) : void 0,
|
|
532
|
+
mutation: e.mutation ? $t(e.mutation) : void 0,
|
|
529
533
|
queryClient: e.queryClient ? {
|
|
530
|
-
queries: e.queryClient.queries.slice(-40).map(
|
|
531
|
-
mutations: e.queryClient.mutations.slice(-40).map(
|
|
534
|
+
queries: e.queryClient.queries.slice(-40).map(Qt),
|
|
535
|
+
mutations: e.queryClient.mutations.slice(-40).map($t),
|
|
532
536
|
...t ? {
|
|
533
537
|
omittedQueries: (e.queryClient.omittedQueries ?? 0) + Math.max(0, e.queryClient.queries.length - 40) || void 0,
|
|
534
538
|
omittedMutations: (e.queryClient.omittedMutations ?? 0) + Math.max(0, e.queryClient.mutations.length - 40) || void 0
|
|
535
539
|
} : {}
|
|
536
540
|
} : void 0,
|
|
537
|
-
persistedQueries: e.persistedQueries?.slice(-40).map(
|
|
541
|
+
persistedQueries: e.persistedQueries?.slice(-40).map(en),
|
|
538
542
|
breadcrumbs: e.breadcrumbs.slice(-80).map((e) => ({
|
|
539
543
|
...e,
|
|
540
|
-
utc:
|
|
541
|
-
routeId: e.routeId ?
|
|
542
|
-
appId: e.appId ?
|
|
543
|
-
viewId: e.viewId ?
|
|
544
|
-
target: e.target ?
|
|
545
|
-
detail:
|
|
546
|
-
scope:
|
|
544
|
+
utc: h(e.utc, 64),
|
|
545
|
+
routeId: e.routeId ? h(e.routeId, 512) : void 0,
|
|
546
|
+
appId: e.appId ? h(e.appId, 128) : void 0,
|
|
547
|
+
viewId: e.viewId ? h(e.viewId, 128) : void 0,
|
|
548
|
+
target: e.target ? h(e.target, ie) : void 0,
|
|
549
|
+
detail: x(e.detail, {
|
|
550
|
+
scope: f,
|
|
547
551
|
source: e.type
|
|
548
552
|
})
|
|
549
553
|
})),
|
|
550
|
-
context:
|
|
551
|
-
scope:
|
|
554
|
+
context: x(e.context, {
|
|
555
|
+
scope: p,
|
|
552
556
|
source: e.source
|
|
553
557
|
})
|
|
554
558
|
};
|
|
555
559
|
}
|
|
556
|
-
function
|
|
557
|
-
if (!e ||
|
|
560
|
+
function M(e, t) {
|
|
561
|
+
if (!e || g(e.json) <= t) return e;
|
|
558
562
|
try {
|
|
559
563
|
return {
|
|
560
|
-
...
|
|
564
|
+
...T(JSON.parse(e.json), t),
|
|
561
565
|
truncated: !0
|
|
562
566
|
};
|
|
563
567
|
} catch {
|
|
@@ -567,74 +571,70 @@ function A(e, t) {
|
|
|
567
571
|
};
|
|
568
572
|
}
|
|
569
573
|
}
|
|
570
|
-
function
|
|
574
|
+
function nn(e, t, n) {
|
|
571
575
|
return n ? {
|
|
572
576
|
...e,
|
|
573
577
|
queryClient: e.queryClient ? {
|
|
574
578
|
...e.queryClient,
|
|
575
579
|
queries: e.queryClient.queries.map((e) => ({
|
|
576
580
|
...e,
|
|
577
|
-
dataPreview:
|
|
581
|
+
dataPreview: M(e.dataPreview, t)
|
|
578
582
|
})),
|
|
579
583
|
mutations: e.queryClient.mutations.map((e) => ({
|
|
580
584
|
...e,
|
|
581
|
-
variablesPreview:
|
|
585
|
+
variablesPreview: M(e.variablesPreview, t)
|
|
582
586
|
}))
|
|
583
587
|
} : void 0,
|
|
584
588
|
persistedQueries: e.persistedQueries?.map((e) => ({
|
|
585
589
|
...e,
|
|
586
|
-
dataPreview:
|
|
590
|
+
dataPreview: M(e.dataPreview, t)
|
|
587
591
|
}))
|
|
588
592
|
} : {
|
|
589
593
|
...e,
|
|
590
594
|
query: e.query ? {
|
|
591
595
|
...e.query,
|
|
592
|
-
dataPreview:
|
|
596
|
+
dataPreview: M(e.query.dataPreview, t)
|
|
593
597
|
} : void 0,
|
|
594
598
|
mutation: e.mutation ? {
|
|
595
599
|
...e.mutation,
|
|
596
|
-
variablesPreview:
|
|
600
|
+
variablesPreview: M(e.mutation.variablesPreview, t)
|
|
597
601
|
} : void 0
|
|
598
602
|
};
|
|
599
603
|
}
|
|
600
|
-
function
|
|
601
|
-
let t =
|
|
604
|
+
function rn(e) {
|
|
605
|
+
let t = tn(e), n = j(t);
|
|
602
606
|
if (n <= 262144) return t;
|
|
603
607
|
let r = [], i = {
|
|
604
608
|
...t,
|
|
605
609
|
truncation: {
|
|
606
|
-
reason:
|
|
607
|
-
limitBytes:
|
|
610
|
+
reason: Pe,
|
|
611
|
+
limitBytes: E,
|
|
608
612
|
originalBytes: n,
|
|
609
613
|
droppedSections: r
|
|
610
614
|
}
|
|
611
615
|
};
|
|
612
|
-
if (
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
4
|
|
616
|
-
]) {
|
|
617
|
-
if (k(i) <= 262144 || (i = it(i, e, !0), k(i) <= 262144)) break;
|
|
618
|
-
i = it(i, e, !1);
|
|
616
|
+
if (d().valuePolicy === "verbatim") for (let e of Kt) {
|
|
617
|
+
if (j(i) <= 262144 || (i = nn(i, e, !0), j(i) <= 262144)) break;
|
|
618
|
+
i = nn(i, e, !1);
|
|
619
619
|
}
|
|
620
620
|
let a = (e, t, n) => {
|
|
621
|
-
!t(i) ||
|
|
621
|
+
!t(i) || j(i) <= 262144 || (r.push(e), i = n(i));
|
|
622
622
|
};
|
|
623
|
-
return
|
|
623
|
+
return d().valuePolicy === "verbatim" && (a("queryClient.queries:oldest", (e) => (e.queryClient?.queries.length ?? 0) > Ht, (e) => ({
|
|
624
624
|
...e,
|
|
625
625
|
queryClient: e.queryClient ? {
|
|
626
626
|
...e.queryClient,
|
|
627
627
|
queries: e.queryClient.queries.slice(-10),
|
|
628
|
-
omittedQueries: (e.queryClient.omittedQueries ?? 0) + e.queryClient.queries.length -
|
|
628
|
+
omittedQueries: (e.queryClient.omittedQueries ?? 0) + e.queryClient.queries.length - Ht
|
|
629
629
|
} : void 0
|
|
630
|
-
})), a("queryClient.mutations:oldest", (e) => (e.queryClient?.mutations.length ?? 0) >
|
|
630
|
+
})), a("queryClient.mutations:oldest", (e) => (e.queryClient?.mutations.length ?? 0) > Ut, (e) => ({
|
|
631
631
|
...e,
|
|
632
632
|
queryClient: e.queryClient ? {
|
|
633
633
|
...e.queryClient,
|
|
634
634
|
mutations: e.queryClient.mutations.slice(-10),
|
|
635
|
-
omittedMutations: (e.queryClient.omittedMutations ?? 0) + e.queryClient.mutations.length -
|
|
635
|
+
omittedMutations: (e.queryClient.omittedMutations ?? 0) + e.queryClient.mutations.length - Ut
|
|
636
636
|
} : void 0
|
|
637
|
-
})), a("persistedQueries:oldest", (e) => (e.persistedQueries?.length ?? 0) >
|
|
637
|
+
})), a("persistedQueries:oldest", (e) => (e.persistedQueries?.length ?? 0) > Wt, (e) => ({
|
|
638
638
|
...e,
|
|
639
639
|
persistedQueries: e.persistedQueries?.slice(-10)
|
|
640
640
|
}))), a("queryClient", (e) => e.queryClient !== void 0, (e) => ({
|
|
@@ -664,7 +664,7 @@ function at(e) {
|
|
|
664
664
|
...e.mutation,
|
|
665
665
|
meta: void 0
|
|
666
666
|
} : void 0
|
|
667
|
-
})), a("breadcrumbs:oldest", (e) => e.breadcrumbs.length >
|
|
667
|
+
})), a("breadcrumbs:oldest", (e) => e.breadcrumbs.length > Gt, (e) => ({
|
|
668
668
|
...e,
|
|
669
669
|
breadcrumbs: e.breadcrumbs.slice(-20)
|
|
670
670
|
})), a("query", (e) => e.query !== void 0, (e) => ({
|
|
@@ -689,108 +689,108 @@ function at(e) {
|
|
|
689
689
|
}
|
|
690
690
|
//#endregion
|
|
691
691
|
//#region src/error-report/errorInfo.ts
|
|
692
|
-
var
|
|
693
|
-
function
|
|
694
|
-
return t(e) ?
|
|
692
|
+
var an = "Неизвестная ошибка", on = "Error";
|
|
693
|
+
function N(e) {
|
|
694
|
+
return t(e) ? d().valuePolicy === "verbatim" ? _(e, D) : h(e) : an;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function sn(e) {
|
|
697
697
|
let t = e.status ?? e.statusCode ?? e.httpStatus;
|
|
698
698
|
return typeof t == "number" && Number.isFinite(t) ? t : void 0;
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function cn(e) {
|
|
701
701
|
if (!e || typeof e != "object") return null;
|
|
702
702
|
let n = e.appError;
|
|
703
703
|
if (!n || typeof n != "object") return null;
|
|
704
704
|
let r = n, i = t(r.message);
|
|
705
705
|
return i ? {
|
|
706
706
|
name: "AppError",
|
|
707
|
-
message:
|
|
708
|
-
code: t(r.code) ?
|
|
709
|
-
httpStatus:
|
|
707
|
+
message: N(i),
|
|
708
|
+
code: t(r.code) ? h(String(r.code), 128) : void 0,
|
|
709
|
+
httpStatus: sn(r)
|
|
710
710
|
} : null;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
let t =
|
|
712
|
+
function P(e) {
|
|
713
|
+
let t = cn(e);
|
|
714
714
|
if (t) return t;
|
|
715
715
|
if (e instanceof Error) return {
|
|
716
|
-
name:
|
|
717
|
-
message:
|
|
718
|
-
stackTrace: e.stack ?
|
|
716
|
+
name: h(e.name || on, 256),
|
|
717
|
+
message: N(e.message),
|
|
718
|
+
stackTrace: e.stack ? _(e.stack, O) : void 0
|
|
719
719
|
};
|
|
720
720
|
if (e && typeof e == "object") {
|
|
721
721
|
let t = e;
|
|
722
722
|
return {
|
|
723
|
-
name:
|
|
724
|
-
message:
|
|
725
|
-
stackTrace: typeof t.stack == "string" ?
|
|
726
|
-
httpStatus:
|
|
723
|
+
name: h(typeof t.name == "string" ? t.name : on, 256),
|
|
724
|
+
message: N(typeof t.message == "string" ? t.message : String(e)),
|
|
725
|
+
stackTrace: typeof t.stack == "string" ? _(t.stack, O) : void 0,
|
|
726
|
+
httpStatus: sn(t)
|
|
727
727
|
};
|
|
728
728
|
}
|
|
729
729
|
return {
|
|
730
|
-
name:
|
|
731
|
-
message:
|
|
730
|
+
name: on,
|
|
731
|
+
message: N(typeof e == "string" ? e : String(e ?? an))
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
734
|
//#endregion
|
|
735
735
|
//#region src/error-report/runtimeDeduplication.ts
|
|
736
|
-
var
|
|
737
|
-
function
|
|
736
|
+
var ln = 6e4, un = 100, F = /* @__PURE__ */ new Map();
|
|
737
|
+
function dn(e) {
|
|
738
738
|
if (e) return e.split("\n").map((e) => e.trim()).filter(Boolean);
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function fn(e) {
|
|
741
741
|
return a(n({
|
|
742
742
|
category: e.category,
|
|
743
743
|
source: e.source,
|
|
744
744
|
error: {
|
|
745
745
|
...e.error,
|
|
746
|
-
stackTrace:
|
|
746
|
+
stackTrace: dn(e.error.stackTrace)
|
|
747
747
|
},
|
|
748
748
|
pathname: e.pathname,
|
|
749
749
|
scope: e.scope
|
|
750
750
|
}));
|
|
751
751
|
}
|
|
752
|
-
function
|
|
753
|
-
let n =
|
|
754
|
-
!n || t && n.capture !== t || (clearTimeout(n.expirationTimer),
|
|
752
|
+
function I(e, t) {
|
|
753
|
+
let n = F.get(e);
|
|
754
|
+
!n || t && n.capture !== t || (clearTimeout(n.expirationTimer), F.delete(e));
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
for (let [t, n] of
|
|
756
|
+
function pn(e) {
|
|
757
|
+
for (let [t, n] of F) e - n.capturedAt >= 6e4 && I(t, n.capture);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
let e =
|
|
761
|
-
e &&
|
|
759
|
+
function mn() {
|
|
760
|
+
let e = F.keys().next().value;
|
|
761
|
+
e && I(e);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
let n = Date.now(), r =
|
|
763
|
+
function hn(e, t) {
|
|
764
|
+
let n = Date.now(), r = fn(e), i = F.get(r);
|
|
765
765
|
if (i && n - i.capturedAt < 6e4) return i.capture;
|
|
766
|
-
for (
|
|
766
|
+
for (pn(n); F.size >= un;) mn();
|
|
767
767
|
let a = t(), o = setTimeout(() => {
|
|
768
|
-
|
|
769
|
-
},
|
|
770
|
-
return
|
|
768
|
+
I(r, a);
|
|
769
|
+
}, ln);
|
|
770
|
+
return F.set(r, {
|
|
771
771
|
capturedAt: n,
|
|
772
772
|
capture: a,
|
|
773
773
|
expirationTimer: o
|
|
774
774
|
}), a.catch(() => {
|
|
775
|
-
|
|
775
|
+
I(r, a);
|
|
776
776
|
}), a;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
for (let e of
|
|
780
|
-
|
|
778
|
+
function gn() {
|
|
779
|
+
for (let e of F.values()) clearTimeout(e.expirationTimer);
|
|
780
|
+
F.clear();
|
|
781
781
|
}
|
|
782
782
|
//#endregion
|
|
783
783
|
//#region src/error-report/schema.ts
|
|
784
|
-
var
|
|
785
|
-
c.string().max(
|
|
784
|
+
var _n = 64, vn = 64, yn = 64, bn = 4096, xn = 4096, Sn = 128, Cn = 32, wn = 16384, L = c.lazy(() => c.union([
|
|
785
|
+
c.string().max(ne),
|
|
786
786
|
c.number().finite(),
|
|
787
787
|
c.boolean(),
|
|
788
788
|
c.null(),
|
|
789
|
-
c.array(
|
|
790
|
-
c.record(c.string(),
|
|
791
|
-
])),
|
|
789
|
+
c.array(L).max(20),
|
|
790
|
+
c.record(c.string(), L).refine((e) => Object.keys(e).length <= 40)
|
|
791
|
+
])), R = c.record(c.string(), L).refine((e) => Object.keys(e).length <= 40), z = c.object({
|
|
792
792
|
json: c.string().refine((e) => {
|
|
793
|
-
if (
|
|
793
|
+
if (g(e) > 16384) return !1;
|
|
794
794
|
try {
|
|
795
795
|
return JSON.parse(e), !0;
|
|
796
796
|
} catch {
|
|
@@ -798,207 +798,206 @@ var F = c.lazy(() => c.union([
|
|
|
798
798
|
}
|
|
799
799
|
}),
|
|
800
800
|
truncated: c.boolean()
|
|
801
|
-
}).strict(),
|
|
801
|
+
}).strict(), B = c.object({
|
|
802
802
|
name: c.string().min(1).max(256),
|
|
803
|
-
message: c.string().min(1).max(
|
|
803
|
+
message: c.string().min(1).max(D).refine((e) => g(e) <= D),
|
|
804
804
|
code: c.string().max(128).optional(),
|
|
805
|
-
stackTrace: c.string().refine((e) =>
|
|
805
|
+
stackTrace: c.string().refine((e) => g(e) <= O).optional(),
|
|
806
806
|
httpStatus: c.number().finite().optional()
|
|
807
|
-
}).strict(),
|
|
807
|
+
}).strict(), Tn = c.object({
|
|
808
808
|
utc: c.string().min(1).max(64),
|
|
809
809
|
type: c.enum([
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
810
|
+
ye,
|
|
811
|
+
be,
|
|
812
|
+
xe,
|
|
813
|
+
Se,
|
|
814
|
+
Ce,
|
|
815
|
+
we
|
|
816
816
|
]),
|
|
817
817
|
routeId: c.string().max(512).optional(),
|
|
818
818
|
appId: c.string().max(128).optional(),
|
|
819
819
|
viewId: c.string().max(128).optional(),
|
|
820
|
-
target: c.string().max(
|
|
821
|
-
detail:
|
|
822
|
-
}).strict(),
|
|
820
|
+
target: c.string().max(ie).optional(),
|
|
821
|
+
detail: R.optional()
|
|
822
|
+
}).strict(), En = c.object({
|
|
823
823
|
queryHash: c.string().max(512),
|
|
824
|
-
queryKey:
|
|
825
|
-
status: c.string().max(
|
|
826
|
-
fetchStatus: c.string().max(
|
|
824
|
+
queryKey: L,
|
|
825
|
+
status: c.string().max(_n).optional(),
|
|
826
|
+
fetchStatus: c.string().max(vn).optional(),
|
|
827
827
|
dataUpdatedAt: c.number().finite().optional(),
|
|
828
828
|
errorUpdatedAt: c.number().finite().optional(),
|
|
829
829
|
failureCount: c.number().finite().optional(),
|
|
830
830
|
isInvalidated: c.boolean().optional(),
|
|
831
831
|
observersCount: c.number().finite().optional(),
|
|
832
|
-
meta:
|
|
833
|
-
dataShape:
|
|
834
|
-
dataPreview:
|
|
835
|
-
error:
|
|
836
|
-
}).strict(),
|
|
837
|
-
mutationKey:
|
|
838
|
-
status: c.string().max(
|
|
832
|
+
meta: R.optional(),
|
|
833
|
+
dataShape: L.optional(),
|
|
834
|
+
dataPreview: z.optional(),
|
|
835
|
+
error: B.optional()
|
|
836
|
+
}).strict(), Dn = c.object({
|
|
837
|
+
mutationKey: L.optional(),
|
|
838
|
+
status: c.string().max(yn).optional(),
|
|
839
839
|
failureCount: c.number().finite().optional(),
|
|
840
840
|
submittedAt: c.number().finite().optional(),
|
|
841
|
-
meta:
|
|
842
|
-
variablesPreview:
|
|
843
|
-
error:
|
|
844
|
-
}).strict(),
|
|
841
|
+
meta: R.optional(),
|
|
842
|
+
variablesPreview: z.optional(),
|
|
843
|
+
error: B.optional()
|
|
844
|
+
}).strict(), On = c.object({
|
|
845
845
|
buster: c.string().max(512).optional(),
|
|
846
846
|
queryHash: c.string().max(512).optional(),
|
|
847
|
-
queryKey:
|
|
848
|
-
status: c.string().max(
|
|
849
|
-
fetchStatus: c.string().max(
|
|
847
|
+
queryKey: L.optional(),
|
|
848
|
+
status: c.string().max(_n).optional(),
|
|
849
|
+
fetchStatus: c.string().max(vn).optional(),
|
|
850
850
|
dataUpdatedAt: c.number().finite().optional(),
|
|
851
851
|
errorUpdatedAt: c.number().finite().optional(),
|
|
852
852
|
failureCount: c.number().finite().optional(),
|
|
853
|
-
dataPreview:
|
|
854
|
-
error:
|
|
855
|
-
}).strict(),
|
|
853
|
+
dataPreview: z.optional(),
|
|
854
|
+
error: B.optional()
|
|
855
|
+
}).strict(), kn = c.object({
|
|
856
856
|
payloadVersion: c.literal(1),
|
|
857
857
|
application: c.string().min(1).max(128),
|
|
858
858
|
reportId: c.string().uuid(),
|
|
859
859
|
sessionId: c.string().uuid(),
|
|
860
860
|
createdUtc: c.string().min(1).max(64),
|
|
861
861
|
category: c.enum([
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
862
|
+
ue,
|
|
863
|
+
de,
|
|
864
|
+
fe,
|
|
865
|
+
pe
|
|
866
866
|
]),
|
|
867
867
|
source: c.string().min(1).max(256),
|
|
868
|
-
error:
|
|
868
|
+
error: B,
|
|
869
869
|
environment: c.object({
|
|
870
|
-
mode: c.enum([
|
|
870
|
+
mode: c.enum([Te, Ee]),
|
|
871
871
|
buildId: c.string().max(128).optional()
|
|
872
872
|
}).strict(),
|
|
873
873
|
client: c.object({
|
|
874
|
-
userAgent: c.string().max(
|
|
874
|
+
userAgent: c.string().max(bn).optional(),
|
|
875
875
|
language: c.string().max(128).optional(),
|
|
876
876
|
timeZone: c.string().max(128).optional()
|
|
877
877
|
}).strict().optional(),
|
|
878
878
|
location: c.object({
|
|
879
|
-
pathname: c.string().max(
|
|
880
|
-
origin: c.string().max(
|
|
881
|
-
search: c.string().max(
|
|
882
|
-
hash: c.string().max(
|
|
879
|
+
pathname: c.string().max(u),
|
|
880
|
+
origin: c.string().max(u).optional(),
|
|
881
|
+
search: c.string().max(u).optional(),
|
|
882
|
+
hash: c.string().max(u).optional()
|
|
883
883
|
}).strict().optional(),
|
|
884
884
|
viewport: c.object({
|
|
885
885
|
width: c.number().finite(),
|
|
886
886
|
height: c.number().finite(),
|
|
887
887
|
devicePixelRatio: c.number().finite().optional()
|
|
888
888
|
}).strict().optional(),
|
|
889
|
-
react: c.object({ componentStack: c.string().refine((e) =>
|
|
890
|
-
query:
|
|
891
|
-
mutation:
|
|
889
|
+
react: c.object({ componentStack: c.string().refine((e) => g(e) <= ae).optional() }).strict().optional(),
|
|
890
|
+
query: En.optional(),
|
|
891
|
+
mutation: Dn.optional(),
|
|
892
892
|
queryClient: c.object({
|
|
893
|
-
queries: c.array(
|
|
894
|
-
mutations: c.array(
|
|
893
|
+
queries: c.array(En).max(40),
|
|
894
|
+
mutations: c.array(Dn).max(40),
|
|
895
895
|
omittedQueries: c.number().int().nonnegative().optional(),
|
|
896
896
|
omittedMutations: c.number().int().nonnegative().optional()
|
|
897
897
|
}).strict().optional(),
|
|
898
|
-
persistedQueries: c.array(
|
|
899
|
-
breadcrumbs: c.array(
|
|
900
|
-
context:
|
|
898
|
+
persistedQueries: c.array(On).max(40).optional(),
|
|
899
|
+
breadcrumbs: c.array(Tn).max(80),
|
|
900
|
+
context: R.optional(),
|
|
901
901
|
truncation: c.object({
|
|
902
|
-
reason: c.literal(
|
|
903
|
-
limitBytes: c.literal(
|
|
902
|
+
reason: c.literal(Pe),
|
|
903
|
+
limitBytes: c.literal(E),
|
|
904
904
|
originalBytes: c.number().int().positive(),
|
|
905
|
-
droppedSections: c.array(c.string().max(
|
|
905
|
+
droppedSections: c.array(c.string().max(Sn)).max(Cn)
|
|
906
906
|
}).strict().optional()
|
|
907
|
-
}).strict().refine((e) =>
|
|
907
|
+
}).strict().refine((e) => j(e) <= E), An = c.object({
|
|
908
908
|
reportId: c.string().uuid(),
|
|
909
909
|
sessionId: c.string().uuid(),
|
|
910
910
|
createdUtc: c.string().min(1).max(64),
|
|
911
911
|
category: c.enum([
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
912
|
+
ue,
|
|
913
|
+
de,
|
|
914
|
+
fe,
|
|
915
|
+
pe
|
|
916
916
|
]),
|
|
917
917
|
status: c.enum([
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
918
|
+
he,
|
|
919
|
+
ge,
|
|
920
|
+
_e,
|
|
921
|
+
ve
|
|
922
922
|
]),
|
|
923
923
|
sentUtc: c.string().min(1).max(64).optional(),
|
|
924
|
-
failedReason: c.string().max(
|
|
925
|
-
payload:
|
|
924
|
+
failedReason: c.string().max(xn).optional(),
|
|
925
|
+
payload: kn
|
|
926
926
|
}).strict().superRefine((e, t) => {
|
|
927
927
|
(e.reportId !== e.payload.reportId || e.sessionId !== e.payload.sessionId || e.createdUtc !== e.payload.createdUtc || e.category !== e.payload.category) && t.addIssue({
|
|
928
928
|
code: "custom",
|
|
929
929
|
message: "Draft identity должна совпадать с payload identity."
|
|
930
930
|
});
|
|
931
931
|
});
|
|
932
|
-
function
|
|
932
|
+
function jn(e, t) {
|
|
933
933
|
try {
|
|
934
934
|
return new TextEncoder().encode(JSON.stringify(e)).byteLength <= t;
|
|
935
935
|
} catch {
|
|
936
936
|
return !1;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
-
function
|
|
940
|
-
if (
|
|
941
|
-
let t =
|
|
939
|
+
function Mn(e) {
|
|
940
|
+
if (jn(e, 262144)) try {
|
|
941
|
+
let t = kn.safeParse(e);
|
|
942
942
|
return t.success ? t.data : void 0;
|
|
943
943
|
} catch {
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
if (
|
|
949
|
-
let t =
|
|
947
|
+
function V(e) {
|
|
948
|
+
if (jn(e, 262144 + wn)) try {
|
|
949
|
+
let t = An.safeParse(e);
|
|
950
950
|
return t.success ? t.data : void 0;
|
|
951
951
|
} catch {
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Nn(e) {
|
|
956
956
|
return Array.isArray(e) ? e.flatMap((e) => {
|
|
957
|
-
let t =
|
|
957
|
+
let t = V(e);
|
|
958
958
|
return t ? [t] : [];
|
|
959
959
|
}) : [];
|
|
960
960
|
}
|
|
961
961
|
//#endregion
|
|
962
962
|
//#region src/error-report/errorReportStorage.ts
|
|
963
|
-
var
|
|
964
|
-
function
|
|
965
|
-
typeof window > "u" ||
|
|
966
|
-
}
|
|
967
|
-
function
|
|
968
|
-
return !
|
|
969
|
-
}
|
|
970
|
-
function
|
|
971
|
-
if (
|
|
972
|
-
if (
|
|
973
|
-
let e = sessionStorage.getItem(
|
|
974
|
-
|
|
963
|
+
var Pn = `${__APP_ID__}.errorReport.drafts.v2`, Fn = `${__APP_ID__}.errorReport.sessionId.v1`, H = !1, U, In = [], Ln;
|
|
964
|
+
function Rn() {
|
|
965
|
+
typeof window > "u" || H || (H = !0, U = void 0, gn());
|
|
966
|
+
}
|
|
967
|
+
function zn() {
|
|
968
|
+
return !H;
|
|
969
|
+
}
|
|
970
|
+
function W() {
|
|
971
|
+
if (H) return In;
|
|
972
|
+
if (U === void 0 && (U = [], typeof sessionStorage < "u")) try {
|
|
973
|
+
let e = sessionStorage.getItem(Pn);
|
|
974
|
+
U = Nn(e ? JSON.parse(e) : []);
|
|
975
975
|
} catch {}
|
|
976
|
-
return
|
|
976
|
+
return U;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Bn(e) {
|
|
979
979
|
let t = e.slice(-10);
|
|
980
|
-
if (
|
|
981
|
-
|
|
980
|
+
if (H) {
|
|
981
|
+
In = t;
|
|
982
982
|
return;
|
|
983
983
|
}
|
|
984
|
-
if (
|
|
985
|
-
sessionStorage.setItem(
|
|
984
|
+
if (U = t, !(typeof sessionStorage > "u")) try {
|
|
985
|
+
sessionStorage.setItem(Pn, JSON.stringify(U));
|
|
986
986
|
} catch {}
|
|
987
987
|
}
|
|
988
|
-
function
|
|
989
|
-
return
|
|
988
|
+
function Vn() {
|
|
989
|
+
return H ? (Ln ??= i(), Ln) : ee(Fn);
|
|
990
990
|
}
|
|
991
991
|
//#endregion
|
|
992
992
|
//#region src/error-report/diagnostics.ts
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
return y(e, {
|
|
993
|
+
function Hn(e, t, n) {
|
|
994
|
+
return x(e, {
|
|
996
995
|
scope: t,
|
|
997
996
|
source: n
|
|
998
997
|
});
|
|
999
998
|
}
|
|
1000
|
-
function
|
|
1001
|
-
let t =
|
|
999
|
+
function Un(e) {
|
|
1000
|
+
let t = d(), r = b(e.queryKey, { scope: "query-key" }) ?? { type: "redacted" }, i = t.valuePolicy === "verbatim" ? a(e.queryHash) : a(n(r));
|
|
1002
1001
|
return {
|
|
1003
1002
|
queryHash: i,
|
|
1004
1003
|
queryKey: r,
|
|
@@ -1009,42 +1008,42 @@ function W(e) {
|
|
|
1009
1008
|
failureCount: e.state.fetchFailureCount,
|
|
1010
1009
|
isInvalidated: e.state.isInvalidated,
|
|
1011
1010
|
observersCount: e.getObserversCount(),
|
|
1012
|
-
meta:
|
|
1013
|
-
dataShape:
|
|
1014
|
-
scope:
|
|
1011
|
+
meta: Hn(e.meta, Me, i),
|
|
1012
|
+
dataShape: b(y(e.state.data), {
|
|
1013
|
+
scope: je,
|
|
1015
1014
|
source: i
|
|
1016
1015
|
}),
|
|
1017
|
-
dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.query > 0 && e.state.data !== void 0 ?
|
|
1018
|
-
error: e.state.error ?
|
|
1016
|
+
dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.query > 0 && e.state.data !== void 0 ? T(e.state.data, t.dataPreviewBytes.query) : void 0,
|
|
1017
|
+
error: e.state.error ? P(e.state.error) : void 0
|
|
1019
1018
|
};
|
|
1020
1019
|
}
|
|
1021
|
-
function
|
|
1022
|
-
let t =
|
|
1020
|
+
function Wn(e) {
|
|
1021
|
+
let t = d();
|
|
1023
1022
|
return {
|
|
1024
|
-
mutationKey: e.options.mutationKey ?
|
|
1023
|
+
mutationKey: e.options.mutationKey ? b(e.options.mutationKey, { scope: Oe }) : void 0,
|
|
1025
1024
|
status: e.state.status,
|
|
1026
1025
|
failureCount: e.state.failureCount,
|
|
1027
1026
|
submittedAt: e.state.submittedAt,
|
|
1028
|
-
meta:
|
|
1029
|
-
variablesPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.mutation > 0 && e.state.variables !== void 0 ?
|
|
1030
|
-
error: e.state.error ?
|
|
1027
|
+
meta: Hn(e.meta, ke),
|
|
1028
|
+
variablesPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.mutation > 0 && e.state.variables !== void 0 ? T(e.state.variables, t.dataPreviewBytes.mutation) : void 0,
|
|
1029
|
+
error: e.state.error ? P(e.state.error) : void 0
|
|
1031
1030
|
};
|
|
1032
1031
|
}
|
|
1033
|
-
function
|
|
1032
|
+
function G(e) {
|
|
1034
1033
|
let t = e.getQueryCache().getAll(), n = e.getMutationCache().getAll();
|
|
1035
1034
|
return {
|
|
1036
|
-
queries: t.slice(-40).map(
|
|
1037
|
-
mutations: n.slice(-40).map(
|
|
1038
|
-
...
|
|
1039
|
-
omittedQueries: Math.max(0, t.length -
|
|
1040
|
-
omittedMutations: Math.max(0, n.length -
|
|
1035
|
+
queries: t.slice(-40).map(Un),
|
|
1036
|
+
mutations: n.slice(-40).map(Wn),
|
|
1037
|
+
...d().valuePolicy === "verbatim" ? {
|
|
1038
|
+
omittedQueries: Math.max(0, t.length - 40) || void 0,
|
|
1039
|
+
omittedMutations: Math.max(0, n.length - 40) || void 0
|
|
1041
1040
|
} : {}
|
|
1042
1041
|
};
|
|
1043
1042
|
}
|
|
1044
|
-
function
|
|
1045
|
-
let t =
|
|
1043
|
+
function Gn(e) {
|
|
1044
|
+
let t = d(), r = e.state, i = b(e.queryKey, { scope: Ae }), o = t.valuePolicy === "verbatim" ? a(e.queryHash) : i ? a(n(i)) : void 0;
|
|
1046
1045
|
return {
|
|
1047
|
-
buster: e.buster ?
|
|
1046
|
+
buster: e.buster ? h(e.buster, 512) : void 0,
|
|
1048
1047
|
queryHash: o,
|
|
1049
1048
|
queryKey: i,
|
|
1050
1049
|
status: r.status,
|
|
@@ -1052,34 +1051,34 @@ function It(e) {
|
|
|
1052
1051
|
dataUpdatedAt: r.dataUpdatedAt,
|
|
1053
1052
|
errorUpdatedAt: r.errorUpdatedAt,
|
|
1054
1053
|
failureCount: r.fetchFailureCount,
|
|
1055
|
-
dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.persistedQuery > 0 && r.data !== void 0 ?
|
|
1056
|
-
error: r.error ?
|
|
1054
|
+
dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.persistedQuery > 0 && r.data !== void 0 ? T(r.data, t.dataPreviewBytes.persistedQuery) : void 0,
|
|
1055
|
+
error: r.error ? P(r.error) : void 0
|
|
1057
1056
|
};
|
|
1058
1057
|
}
|
|
1059
|
-
async function
|
|
1060
|
-
if (!
|
|
1058
|
+
async function K() {
|
|
1059
|
+
if (!zn()) return [];
|
|
1061
1060
|
let e = s();
|
|
1062
1061
|
if (!e?.entries) return [];
|
|
1063
1062
|
try {
|
|
1064
1063
|
let t = await e.entries();
|
|
1065
|
-
return
|
|
1064
|
+
return zn() ? t.slice(-40).map(([, e]) => Gn(e)) : [];
|
|
1066
1065
|
} catch {
|
|
1067
1066
|
return [];
|
|
1068
1067
|
}
|
|
1069
1068
|
}
|
|
1070
1069
|
//#endregion
|
|
1071
1070
|
//#region src/error-report/environment.ts
|
|
1072
|
-
function
|
|
1071
|
+
function Kn(e = {}) {
|
|
1073
1072
|
let t = e.isDev ?? __DEV__;
|
|
1074
1073
|
return typeof window < "u" && !t;
|
|
1075
1074
|
}
|
|
1076
|
-
function
|
|
1075
|
+
function qn() {
|
|
1077
1076
|
return {
|
|
1078
|
-
mode: __DEV__ ?
|
|
1077
|
+
mode: __DEV__ ? Te : Ee,
|
|
1079
1078
|
buildId: typeof __APP_BUILD_ID__ == "string" ? __APP_BUILD_ID__ : void 0
|
|
1080
1079
|
};
|
|
1081
1080
|
}
|
|
1082
|
-
function
|
|
1081
|
+
function Jn() {
|
|
1083
1082
|
if (!(typeof window > "u")) return {
|
|
1084
1083
|
userAgent: window.navigator.userAgent,
|
|
1085
1084
|
language: window.navigator.language,
|
|
@@ -1088,12 +1087,12 @@ function zt() {
|
|
|
1088
1087
|
}
|
|
1089
1088
|
//#endregion
|
|
1090
1089
|
//#region src/error-report/drafts.ts
|
|
1091
|
-
function
|
|
1090
|
+
function Yn() {
|
|
1092
1091
|
return r(/* @__PURE__ */ new Date());
|
|
1093
1092
|
}
|
|
1094
|
-
function
|
|
1093
|
+
function Xn() {
|
|
1095
1094
|
if (typeof window > "u") return;
|
|
1096
|
-
let e =
|
|
1095
|
+
let e = d().valuePolicy === l;
|
|
1097
1096
|
return {
|
|
1098
1097
|
pathname: window.location.pathname,
|
|
1099
1098
|
origin: window.location.origin,
|
|
@@ -1101,77 +1100,77 @@ function Vt() {
|
|
|
1101
1100
|
hash: e ? window.location.hash : void 0
|
|
1102
1101
|
};
|
|
1103
1102
|
}
|
|
1104
|
-
function
|
|
1103
|
+
function Zn() {
|
|
1105
1104
|
if (!(typeof window > "u")) return {
|
|
1106
1105
|
width: window.innerWidth,
|
|
1107
1106
|
height: window.innerHeight,
|
|
1108
1107
|
devicePixelRatio: window.devicePixelRatio
|
|
1109
1108
|
};
|
|
1110
1109
|
}
|
|
1111
|
-
function
|
|
1110
|
+
function Qn(e) {
|
|
1112
1111
|
if (!e) return;
|
|
1113
|
-
let t =
|
|
1114
|
-
scope:
|
|
1112
|
+
let t = b(e, {
|
|
1113
|
+
scope: De,
|
|
1115
1114
|
source: "delivery"
|
|
1116
1115
|
});
|
|
1117
1116
|
return typeof t == "string" ? t : void 0;
|
|
1118
1117
|
}
|
|
1119
|
-
function
|
|
1120
|
-
return
|
|
1118
|
+
function $n(e) {
|
|
1119
|
+
return W().find((t) => t.reportId === e);
|
|
1121
1120
|
}
|
|
1122
|
-
function
|
|
1123
|
-
let n =
|
|
1121
|
+
function er(e, t) {
|
|
1122
|
+
let n = $n(e);
|
|
1124
1123
|
if (!n) return;
|
|
1125
|
-
let r =
|
|
1124
|
+
let r = V({
|
|
1126
1125
|
...n,
|
|
1127
1126
|
...t,
|
|
1128
|
-
sentUtc: "sentUtc" in t ? t.sentUtc ?
|
|
1129
|
-
failedReason: "failedReason" in t ?
|
|
1127
|
+
sentUtc: "sentUtc" in t ? t.sentUtc ? h(t.sentUtc, 64) : void 0 : n.sentUtc,
|
|
1128
|
+
failedReason: "failedReason" in t ? Qn(t.failedReason) : n.failedReason
|
|
1130
1129
|
});
|
|
1131
|
-
if (r) return
|
|
1130
|
+
if (r) return Bn(W().map((t) => t.reportId === e ? r : t)), r;
|
|
1132
1131
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1132
|
+
function tr() {
|
|
1133
|
+
return W();
|
|
1135
1134
|
}
|
|
1136
|
-
function
|
|
1137
|
-
if (!
|
|
1138
|
-
let t = i(), n =
|
|
1135
|
+
function q(e) {
|
|
1136
|
+
if (!Kn()) return;
|
|
1137
|
+
let t = i(), n = Vn(), r = Yn(), a = rn({
|
|
1139
1138
|
payloadVersion: 1,
|
|
1140
1139
|
application: __APP_ID__,
|
|
1141
1140
|
reportId: t,
|
|
1142
1141
|
sessionId: n,
|
|
1143
1142
|
createdUtc: r,
|
|
1144
1143
|
category: e.category,
|
|
1145
|
-
source:
|
|
1144
|
+
source: h(e.source, 256),
|
|
1146
1145
|
error: e.error,
|
|
1147
|
-
environment:
|
|
1148
|
-
client:
|
|
1149
|
-
location:
|
|
1150
|
-
viewport:
|
|
1146
|
+
environment: qn(),
|
|
1147
|
+
client: Jn(),
|
|
1148
|
+
location: Xn(),
|
|
1149
|
+
viewport: Zn(),
|
|
1151
1150
|
react: e.react,
|
|
1152
1151
|
query: e.query,
|
|
1153
1152
|
mutation: e.mutation,
|
|
1154
1153
|
queryClient: e.queryClient,
|
|
1155
|
-
persistedQueries:
|
|
1156
|
-
breadcrumbs:
|
|
1157
|
-
context:
|
|
1158
|
-
scope:
|
|
1154
|
+
persistedQueries: zn() ? e.persistedQueries : void 0,
|
|
1155
|
+
breadcrumbs: ht(),
|
|
1156
|
+
context: x(e.context, {
|
|
1157
|
+
scope: p,
|
|
1159
1158
|
source: e.source
|
|
1160
1159
|
})
|
|
1161
|
-
}), o =
|
|
1160
|
+
}), o = V({
|
|
1162
1161
|
reportId: t,
|
|
1163
1162
|
sessionId: n,
|
|
1164
1163
|
createdUtc: r,
|
|
1165
1164
|
category: e.category,
|
|
1166
|
-
status:
|
|
1165
|
+
status: he,
|
|
1167
1166
|
payload: a
|
|
1168
1167
|
});
|
|
1169
|
-
if (o) return
|
|
1168
|
+
if (o) return Bn([...W(), o]), o;
|
|
1170
1169
|
}
|
|
1171
1170
|
//#endregion
|
|
1172
1171
|
//#region src/error-report/transport.ts
|
|
1173
|
-
var
|
|
1174
|
-
function
|
|
1172
|
+
var nr = 6e4, rr = 100, ir = 250, ar, or = /* @__PURE__ */ new WeakSet(), sr = /* @__PURE__ */ new WeakSet(), J = /* @__PURE__ */ new Map();
|
|
1173
|
+
function cr(e) {
|
|
1175
1174
|
return [
|
|
1176
1175
|
e.source,
|
|
1177
1176
|
e.method,
|
|
@@ -1180,103 +1179,103 @@ function $t(e) {
|
|
|
1180
1179
|
e.responseUrl
|
|
1181
1180
|
].filter(Boolean).join("|");
|
|
1182
1181
|
}
|
|
1183
|
-
function
|
|
1184
|
-
let t = Date.now(), n =
|
|
1185
|
-
for (let [e, n] of
|
|
1186
|
-
let r =
|
|
1187
|
-
return r && t - r <
|
|
1182
|
+
function lr(e) {
|
|
1183
|
+
let t = Date.now(), n = cr(e);
|
|
1184
|
+
for (let [e, n] of J) (t - n > nr || J.size > rr) && J.delete(e);
|
|
1185
|
+
let r = J.get(n);
|
|
1186
|
+
return r && t - r < nr ? !0 : (J.set(n, t), !1);
|
|
1188
1187
|
}
|
|
1189
|
-
function
|
|
1190
|
-
|
|
1188
|
+
function ur(e) {
|
|
1189
|
+
ar = e, J.clear();
|
|
1191
1190
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return e instanceof Error &&
|
|
1191
|
+
function dr(e) {
|
|
1192
|
+
return e instanceof Error && or.has(e);
|
|
1194
1193
|
}
|
|
1195
|
-
function
|
|
1196
|
-
e instanceof Error &&
|
|
1194
|
+
function fr(e) {
|
|
1195
|
+
e instanceof Error && sr.add(e);
|
|
1197
1196
|
}
|
|
1198
|
-
function
|
|
1199
|
-
|
|
1200
|
-
if (!
|
|
1201
|
-
let n =
|
|
1197
|
+
function pr(e, t) {
|
|
1198
|
+
or.add(e), setTimeout(() => {
|
|
1199
|
+
if (!sr.has(e) && ar && !lr(t)) try {
|
|
1200
|
+
let n = ar(e, t);
|
|
1202
1201
|
Promise.resolve(n).catch(() => void 0);
|
|
1203
1202
|
} catch {}
|
|
1204
|
-
},
|
|
1203
|
+
}, ir);
|
|
1205
1204
|
}
|
|
1206
1205
|
//#endregion
|
|
1207
1206
|
//#region src/error-report/capture.ts
|
|
1208
|
-
async function
|
|
1209
|
-
|
|
1207
|
+
async function mr(e, t, n, r) {
|
|
1208
|
+
fr(e);
|
|
1210
1209
|
let i = r?.source ?? "query";
|
|
1211
|
-
|
|
1212
|
-
type:
|
|
1213
|
-
detail:
|
|
1210
|
+
C({
|
|
1211
|
+
type: Se,
|
|
1212
|
+
detail: x({
|
|
1214
1213
|
queryKey: r?.queryKey ?? t.queryKey,
|
|
1215
1214
|
...r?.detail
|
|
1216
1215
|
}, {
|
|
1217
|
-
scope:
|
|
1216
|
+
scope: f,
|
|
1218
1217
|
source: i
|
|
1219
1218
|
})
|
|
1220
1219
|
});
|
|
1221
|
-
let [a, o] = await Promise.all([
|
|
1222
|
-
return
|
|
1223
|
-
category:
|
|
1220
|
+
let [a, o] = await Promise.all([K(), Promise.resolve(G(n))]);
|
|
1221
|
+
return q({
|
|
1222
|
+
category: ue,
|
|
1224
1223
|
source: i,
|
|
1225
|
-
error: r?.errorInfo ??
|
|
1226
|
-
query:
|
|
1224
|
+
error: r?.errorInfo ?? P(e),
|
|
1225
|
+
query: Un(t),
|
|
1227
1226
|
queryClient: o,
|
|
1228
1227
|
persistedQueries: a,
|
|
1229
|
-
context:
|
|
1230
|
-
scope:
|
|
1228
|
+
context: x(r?.detail, {
|
|
1229
|
+
scope: p,
|
|
1231
1230
|
source: i
|
|
1232
1231
|
})
|
|
1233
1232
|
});
|
|
1234
1233
|
}
|
|
1235
|
-
async function
|
|
1236
|
-
|
|
1234
|
+
async function hr(e, t, n, r = {}) {
|
|
1235
|
+
fr(e);
|
|
1237
1236
|
let i = r.source ?? "mutation";
|
|
1238
|
-
|
|
1239
|
-
type:
|
|
1240
|
-
detail:
|
|
1237
|
+
C({
|
|
1238
|
+
type: Ce,
|
|
1239
|
+
detail: x({
|
|
1241
1240
|
mutationKey: t.options.mutationKey,
|
|
1242
1241
|
...r.detail
|
|
1243
1242
|
}, {
|
|
1244
|
-
scope:
|
|
1243
|
+
scope: f,
|
|
1245
1244
|
source: i
|
|
1246
1245
|
})
|
|
1247
1246
|
});
|
|
1248
|
-
let [a, o] = await Promise.all([
|
|
1249
|
-
return
|
|
1250
|
-
category:
|
|
1247
|
+
let [a, o] = await Promise.all([K(), Promise.resolve(G(n))]);
|
|
1248
|
+
return q({
|
|
1249
|
+
category: de,
|
|
1251
1250
|
source: i,
|
|
1252
|
-
error: r.errorInfo ??
|
|
1253
|
-
mutation:
|
|
1251
|
+
error: r.errorInfo ?? P(e),
|
|
1252
|
+
mutation: Wn(t),
|
|
1254
1253
|
queryClient: o,
|
|
1255
1254
|
persistedQueries: a,
|
|
1256
|
-
context:
|
|
1257
|
-
scope:
|
|
1255
|
+
context: x(r.detail, {
|
|
1256
|
+
scope: p,
|
|
1258
1257
|
source: i
|
|
1259
1258
|
})
|
|
1260
1259
|
});
|
|
1261
1260
|
}
|
|
1262
|
-
function
|
|
1263
|
-
let r = t.category ?? "runtime", i = t.source ?? t.category ?? "runtime", a = t.errorInfo ??
|
|
1264
|
-
scope:
|
|
1261
|
+
function gr(e, t = {}, n) {
|
|
1262
|
+
let r = t.category ?? "runtime", i = t.source ?? t.category ?? "runtime", a = t.errorInfo ?? P(e), o = x(t.detail, {
|
|
1263
|
+
scope: p,
|
|
1265
1264
|
source: i
|
|
1266
1265
|
}), s = async () => {
|
|
1267
|
-
|
|
1268
|
-
type:
|
|
1269
|
-
detail:
|
|
1266
|
+
C({
|
|
1267
|
+
type: we,
|
|
1268
|
+
detail: x({
|
|
1270
1269
|
category: r,
|
|
1271
1270
|
source: i,
|
|
1272
1271
|
...t.detail
|
|
1273
1272
|
}, {
|
|
1274
|
-
scope:
|
|
1273
|
+
scope: f,
|
|
1275
1274
|
source: i
|
|
1276
1275
|
})
|
|
1277
1276
|
});
|
|
1278
|
-
let [e, s] = n ? await Promise.all([
|
|
1279
|
-
return
|
|
1277
|
+
let [e, s] = n ? await Promise.all([K(), Promise.resolve(G(n))]) : [void 0, void 0];
|
|
1278
|
+
return q({
|
|
1280
1279
|
category: r,
|
|
1281
1280
|
source: i,
|
|
1282
1281
|
error: a,
|
|
@@ -1286,7 +1285,7 @@ function cn(e, t = {}, n) {
|
|
|
1286
1285
|
context: o
|
|
1287
1286
|
});
|
|
1288
1287
|
};
|
|
1289
|
-
return typeof window > "u" ? s() :
|
|
1288
|
+
return typeof window > "u" ? s() : hn({
|
|
1290
1289
|
category: r,
|
|
1291
1290
|
source: i,
|
|
1292
1291
|
error: a,
|
|
@@ -1299,41 +1298,41 @@ function cn(e, t = {}, n) {
|
|
|
1299
1298
|
}
|
|
1300
1299
|
//#endregion
|
|
1301
1300
|
//#region src/error-report/queueContract.ts
|
|
1302
|
-
var
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1301
|
+
var _r = 1, vr = 50, yr = 6048e5, br = 3e4, xr = "http", Sr = "network", Cr = "timeout", wr = "unknown", Tr = "enqueued", Er = "duplicate", Dr = "invalid-payload", Or = "capacity-exceeded", Y = "updated", kr = "missing", Ar = "lease-mismatch", jr = 100, Mr = 599, Nr = /* @__PURE__ */ new Set([
|
|
1302
|
+
xr,
|
|
1303
|
+
Sr,
|
|
1304
|
+
Cr,
|
|
1305
|
+
wr
|
|
1307
1306
|
]);
|
|
1308
|
-
function
|
|
1307
|
+
function Pr(e) {
|
|
1309
1308
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1310
1309
|
}
|
|
1311
1310
|
function X(e) {
|
|
1312
1311
|
return typeof e == "string" && e.length <= 64 && Number.isFinite(Date.parse(e));
|
|
1313
1312
|
}
|
|
1314
|
-
function
|
|
1313
|
+
function Fr(e) {
|
|
1315
1314
|
return typeof e == "number" && Number.isSafeInteger(e) && e >= 0;
|
|
1316
1315
|
}
|
|
1317
|
-
function
|
|
1318
|
-
if (e !== void 0 && !(!
|
|
1316
|
+
function Ir(e) {
|
|
1317
|
+
if (e !== void 0 && !(!Pr(e) || !X(e.utc) || typeof e.kind != "string") && Nr.has(e.kind) && !(e.httpStatus !== void 0 && (typeof e.httpStatus != "number" || !Number.isInteger(e.httpStatus) || e.httpStatus < jr || e.httpStatus > Mr))) return {
|
|
1319
1318
|
utc: e.utc,
|
|
1320
1319
|
kind: e.kind,
|
|
1321
1320
|
httpStatus: e.httpStatus
|
|
1322
1321
|
};
|
|
1323
1322
|
}
|
|
1324
|
-
function
|
|
1325
|
-
if (e !== void 0 && !(!
|
|
1323
|
+
function Lr(e) {
|
|
1324
|
+
if (e !== void 0 && !(!Pr(e) || typeof e.ownerId != "string" || e.ownerId.length === 0 || e.ownerId.length > 128) && X(e.expiresUtc)) return {
|
|
1326
1325
|
ownerId: e.ownerId,
|
|
1327
1326
|
expiresUtc: e.expiresUtc
|
|
1328
1327
|
};
|
|
1329
1328
|
}
|
|
1330
|
-
function
|
|
1331
|
-
if (!
|
|
1332
|
-
let t =
|
|
1329
|
+
function Rr(e) {
|
|
1330
|
+
if (!Pr(e) || e.queueVersion !== 1 || typeof e.reportId != "string" || !X(e.enqueuedUtc) || !X(e.expiresUtc) || !X(e.nextAttemptUtc) || !Fr(e.attemptCount)) return;
|
|
1331
|
+
let t = Mn(e.payload);
|
|
1333
1332
|
if (!t || t.reportId !== e.reportId) return;
|
|
1334
|
-
let n =
|
|
1333
|
+
let n = Lr(e.lease);
|
|
1335
1334
|
if (e.lease !== void 0 && !n) return;
|
|
1336
|
-
let r =
|
|
1335
|
+
let r = Ir(e.lastFailure);
|
|
1337
1336
|
if (!(e.lastFailure !== void 0 && !r)) return {
|
|
1338
1337
|
queueVersion: 1,
|
|
1339
1338
|
reportId: e.reportId,
|
|
@@ -1350,14 +1349,14 @@ function Z(e, t) {
|
|
|
1350
1349
|
if (!Array.isArray(e)) return [];
|
|
1351
1350
|
let n = /* @__PURE__ */ new Set(), r = [];
|
|
1352
1351
|
for (let i of e) {
|
|
1353
|
-
let e =
|
|
1352
|
+
let e = Rr(i);
|
|
1354
1353
|
if (!(!e || Date.parse(e.expiresUtc) <= t || n.has(e.reportId)) && (n.add(e.reportId), r.push(e), r.length === 50)) break;
|
|
1355
1354
|
}
|
|
1356
1355
|
return r;
|
|
1357
1356
|
}
|
|
1358
1357
|
//#endregion
|
|
1359
1358
|
//#region src/error-report/queue.ts
|
|
1360
|
-
var
|
|
1359
|
+
var zr = "queue.v1", Br = "records";
|
|
1361
1360
|
function Q(e) {
|
|
1362
1361
|
return new Date(e).toISOString();
|
|
1363
1362
|
}
|
|
@@ -1366,32 +1365,32 @@ function $(e) {
|
|
|
1366
1365
|
if (t.length === 0 || t.length > 128) throw Error("Error report lease owner должен содержать от 1 до 128 символов");
|
|
1367
1366
|
return t;
|
|
1368
1367
|
}
|
|
1369
|
-
function
|
|
1368
|
+
function Vr(e, t) {
|
|
1370
1369
|
return Date.parse(e.nextAttemptUtc) - Date.parse(t.nextAttemptUtc) || Date.parse(e.enqueuedUtc) - Date.parse(t.enqueuedUtc);
|
|
1371
1370
|
}
|
|
1372
|
-
function
|
|
1371
|
+
function Hr(e, t, n) {
|
|
1373
1372
|
let r = e.findIndex((e) => e.reportId === t);
|
|
1374
1373
|
return r < 0 ? {
|
|
1375
1374
|
index: r,
|
|
1376
|
-
result:
|
|
1375
|
+
result: kr
|
|
1377
1376
|
} : e[r]?.lease?.ownerId === n ? {
|
|
1378
1377
|
index: r,
|
|
1379
|
-
result:
|
|
1378
|
+
result: Y
|
|
1380
1379
|
} : {
|
|
1381
1380
|
index: r,
|
|
1382
|
-
result:
|
|
1381
|
+
result: Ar
|
|
1383
1382
|
};
|
|
1384
1383
|
}
|
|
1385
|
-
function
|
|
1384
|
+
function Ur(e = {}) {
|
|
1386
1385
|
let t = e.storage ?? s({
|
|
1387
1386
|
dbName: e.dbName ?? `${__APP_ID__}.error-report.queue.v1`,
|
|
1388
|
-
storeName:
|
|
1387
|
+
storeName: Br,
|
|
1389
1388
|
indexedDB: e.indexedDB
|
|
1390
1389
|
});
|
|
1391
1390
|
if (!t) return;
|
|
1392
1391
|
let n = t;
|
|
1393
1392
|
function r(e, t) {
|
|
1394
|
-
return n.updateItem(
|
|
1393
|
+
return n.updateItem(zr, (n) => {
|
|
1395
1394
|
let r = t(Z(n, e));
|
|
1396
1395
|
return {
|
|
1397
1396
|
action: "set",
|
|
@@ -1402,13 +1401,13 @@ function Cn(e = {}) {
|
|
|
1402
1401
|
}
|
|
1403
1402
|
return {
|
|
1404
1403
|
enqueue: async (e, t = /* @__PURE__ */ new Date()) => {
|
|
1405
|
-
let n =
|
|
1406
|
-
if (!n) return { status:
|
|
1404
|
+
let n = Mn(e);
|
|
1405
|
+
if (!n) return { status: Dr };
|
|
1407
1406
|
let i = t.getTime();
|
|
1408
1407
|
return Number.isFinite(i) ? r(i, (e) => {
|
|
1409
1408
|
if (e.some((e) => e.reportId === n.reportId)) return {
|
|
1410
1409
|
records: e,
|
|
1411
|
-
result: { status:
|
|
1410
|
+
result: { status: Er }
|
|
1412
1411
|
};
|
|
1413
1412
|
let t;
|
|
1414
1413
|
if (e.length >= 50) {
|
|
@@ -1418,7 +1417,7 @@ function Cn(e = {}) {
|
|
|
1418
1417
|
})).filter(({ record: e }) => e.lease === void 0).sort((e, t) => Date.parse(e.record.enqueuedUtc) - Date.parse(t.record.enqueuedUtc))[0]?.index;
|
|
1419
1418
|
if (n === void 0) return {
|
|
1420
1419
|
records: e,
|
|
1421
|
-
result: { status:
|
|
1420
|
+
result: { status: Or }
|
|
1422
1421
|
};
|
|
1423
1422
|
t = e[n]?.reportId, e.splice(n, 1);
|
|
1424
1423
|
}
|
|
@@ -1427,24 +1426,24 @@ function Cn(e = {}) {
|
|
|
1427
1426
|
queueVersion: 1,
|
|
1428
1427
|
reportId: n.reportId,
|
|
1429
1428
|
enqueuedUtc: r,
|
|
1430
|
-
expiresUtc: Q(i +
|
|
1429
|
+
expiresUtc: Q(i + yr),
|
|
1431
1430
|
nextAttemptUtc: r,
|
|
1432
1431
|
attemptCount: 0,
|
|
1433
1432
|
payload: n
|
|
1434
1433
|
}), {
|
|
1435
1434
|
records: e,
|
|
1436
1435
|
result: t ? {
|
|
1437
|
-
status:
|
|
1436
|
+
status: Tr,
|
|
1438
1437
|
evictedReportId: t
|
|
1439
|
-
} : { status:
|
|
1438
|
+
} : { status: Tr }
|
|
1440
1439
|
};
|
|
1441
|
-
}) : { status:
|
|
1440
|
+
}) : { status: Dr };
|
|
1442
1441
|
},
|
|
1443
|
-
leaseNext: async ({ ownerId: e, now: t = /* @__PURE__ */ new Date(), leaseDurationMs: n =
|
|
1442
|
+
leaseNext: async ({ ownerId: e, now: t = /* @__PURE__ */ new Date(), leaseDurationMs: n = br }) => {
|
|
1444
1443
|
let i = $(e), a = t.getTime();
|
|
1445
1444
|
if (!Number.isFinite(a) || !Number.isFinite(n) || n <= 0) throw Error("Error report lease требует валидное время и положительную длительность");
|
|
1446
1445
|
return r(a, (e) => {
|
|
1447
|
-
let t = e.filter((e) => Date.parse(e.nextAttemptUtc) <= a && (e.lease === void 0 || Date.parse(e.lease.expiresUtc) <= a)).sort(
|
|
1446
|
+
let t = e.filter((e) => Date.parse(e.nextAttemptUtc) <= a && (e.lease === void 0 || Date.parse(e.lease.expiresUtc) <= a)).sort(Vr)[0];
|
|
1448
1447
|
if (!t) return {
|
|
1449
1448
|
records: e,
|
|
1450
1449
|
result: void 0
|
|
@@ -1466,10 +1465,10 @@ function Cn(e = {}) {
|
|
|
1466
1465
|
acknowledge: async (e, t) => {
|
|
1467
1466
|
let n = $(t);
|
|
1468
1467
|
return r(Date.now(), (t) => {
|
|
1469
|
-
let r =
|
|
1468
|
+
let r = Hr(t, e, n);
|
|
1470
1469
|
return r.result === "updated" ? (t.splice(r.index, 1), {
|
|
1471
1470
|
records: t,
|
|
1472
|
-
result:
|
|
1471
|
+
result: Y
|
|
1473
1472
|
}) : {
|
|
1474
1473
|
records: t,
|
|
1475
1474
|
result: r.result
|
|
@@ -1480,7 +1479,7 @@ function Cn(e = {}) {
|
|
|
1480
1479
|
let i = $(t), a = Date.parse(n.nextAttemptUtc), o = Date.parse(n.failure.utc);
|
|
1481
1480
|
if (!Number.isFinite(a) || !Number.isFinite(o)) throw Error("Error report retry требует валидные UTC timestamps");
|
|
1482
1481
|
return r(o, (t) => {
|
|
1483
|
-
let r =
|
|
1482
|
+
let r = Hr(t, e, i);
|
|
1484
1483
|
if (r.result !== "updated") return {
|
|
1485
1484
|
records: t,
|
|
1486
1485
|
result: r.result
|
|
@@ -1493,20 +1492,20 @@ function Cn(e = {}) {
|
|
|
1493
1492
|
lastFailure: n.failure
|
|
1494
1493
|
}, {
|
|
1495
1494
|
records: t,
|
|
1496
|
-
result:
|
|
1495
|
+
result: Y
|
|
1497
1496
|
}) : {
|
|
1498
1497
|
records: t,
|
|
1499
|
-
result:
|
|
1498
|
+
result: kr
|
|
1500
1499
|
};
|
|
1501
1500
|
});
|
|
1502
1501
|
},
|
|
1503
1502
|
discard: async (e, t) => {
|
|
1504
1503
|
let n = $(t);
|
|
1505
1504
|
return r(Date.now(), (t) => {
|
|
1506
|
-
let r =
|
|
1505
|
+
let r = Hr(t, e, n);
|
|
1507
1506
|
return r.result === "updated" ? (t.splice(r.index, 1), {
|
|
1508
1507
|
records: t,
|
|
1509
|
-
result:
|
|
1508
|
+
result: Y
|
|
1510
1509
|
}) : {
|
|
1511
1510
|
records: t,
|
|
1512
1511
|
result: r.result
|
|
@@ -1515,12 +1514,12 @@ function Cn(e = {}) {
|
|
|
1515
1514
|
},
|
|
1516
1515
|
getRecords: async (e = /* @__PURE__ */ new Date()) => {
|
|
1517
1516
|
let t = e.getTime();
|
|
1518
|
-
return Number.isFinite(t) ? Z(await n.getItem(
|
|
1517
|
+
return Number.isFinite(t) ? Z(await n.getItem(zr), t).sort(Vr) : [];
|
|
1519
1518
|
},
|
|
1520
1519
|
getNextWakeUtc: async (e = /* @__PURE__ */ new Date()) => {
|
|
1521
1520
|
let t = e.getTime();
|
|
1522
1521
|
if (!Number.isFinite(t)) return;
|
|
1523
|
-
let r = Z(await n.getItem(
|
|
1522
|
+
let r = Z(await n.getItem(zr), t).reduce((e, t) => {
|
|
1524
1523
|
let n = Math.max(Date.parse(t.nextAttemptUtc), t.lease ? Date.parse(t.lease.expiresUtc) : 0);
|
|
1525
1524
|
return e === void 0 || n < e ? n : e;
|
|
1526
1525
|
}, void 0);
|
|
@@ -1530,16 +1529,16 @@ function Cn(e = {}) {
|
|
|
1530
1529
|
}
|
|
1531
1530
|
//#endregion
|
|
1532
1531
|
//#region src/error-report/runtime.ts
|
|
1533
|
-
var
|
|
1534
|
-
function
|
|
1535
|
-
|
|
1532
|
+
var Wr;
|
|
1533
|
+
function Gr(e) {
|
|
1534
|
+
Wr = e, gn();
|
|
1536
1535
|
}
|
|
1537
|
-
async function
|
|
1538
|
-
if (
|
|
1539
|
-
await
|
|
1536
|
+
async function Kr(e, t = {}) {
|
|
1537
|
+
if (Wr) try {
|
|
1538
|
+
await Wr(e, t);
|
|
1540
1539
|
} catch {}
|
|
1541
1540
|
}
|
|
1542
1541
|
//#endregion
|
|
1543
|
-
export { o as ERROR_REPORT_BUILD_ID_PATTERN,
|
|
1542
|
+
export { o as ERROR_REPORT_BUILD_ID_PATTERN, E as ERROR_REPORT_PAYLOAD_MAX_BYTES, Rt as ERROR_REPORT_PAYLOAD_VERSION, br as ERROR_REPORT_QUEUE_LEASE_MS, vr as ERROR_REPORT_QUEUE_MAX_ITEMS, yr as ERROR_REPORT_QUEUE_TTL_MS, _r as ERROR_REPORT_QUEUE_VERSION, O as ERROR_REPORT_STACK_TRACE_MAX_BYTES, D as ERROR_REPORT_VERBATIM_MESSAGE_MAX_BYTES, C as addErrorReportBreadcrumb, q as captureErrorReportDraft, hr as captureMutationErrorReport, mr as captureQueryErrorReport, gr as captureRuntimeErrorReport, gt as clearErrorReportBreadcrumbs, Wn as collectMutationDiagnostics, K as collectPersistedQueryDiagnostics, G as collectQueryClientDiagnostics, Un as collectQueryDiagnostics, y as createDataShape, rt as createDiagnosticValue, P as createErrorInfo, Ur as createErrorReportQueue, Rn as disableErrorReportBrowserStorage, ht as getErrorReportBreadcrumbs, Jn as getErrorReportClientEnvironment, $n as getErrorReportDraft, tr as getErrorReportDrafts, qn as getErrorReportEnvironment, j as getErrorReportPayloadSize, g as getUtf8TextSize, Ot as installErrorReportBrowserBreadcrumbs, Kn as isErrorReportingEnabled, dr as isTransportErrorReportScheduled, rn as limitErrorReportPayload, Z as normalizeErrorReportQueueRecords, V as parseErrorReportDraft, Nn as parseErrorReportDrafts, Mn as parseErrorReportPayload, Rr as parseErrorReportQueueRecord, Kr as reportRuntimeError, pr as reportTransportError, x as sanitizeDetail, h as sanitizeDiagnosticText, _ as sanitizeDiagnosticTextBytes, b as sanitizeErrorReportValue, le as setErrorReportCaptureOptions, Gr as setErrorReportRuntimeErrorReporter, it as setErrorReportSanitizer, ur as setErrorReportTransportErrorReporter, fr as suppressTransportErrorReport, er as updateErrorReportDraft };
|
|
1544
1543
|
|
|
1545
1544
|
//# sourceMappingURL=index.js.map
|