legalesign-document-viewer 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-Czv4Oowx.js +2010 -0
- package/dist/cjs/index-Czv4Oowx.js.map +1 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/ls-compose-manager.cjs.entry.js +26 -0
- package/dist/cjs/ls-document-options_45.cjs.entry.js +51718 -0
- package/dist/cjs/ls-document-viewer.cjs.js +27 -0
- package/dist/cjs/ls-document-viewer.cjs.js.map +1 -0
- package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +19 -0
- package/dist/cjs/ls-formfield.cjs.entry.js +160 -0
- package/dist/cjs/ls-number-input_5.cjs.entry.js +1129 -0
- package/dist/cjs/ls-title-input.cjs.entry.js +49 -0
- package/dist/collection/collection-manifest.json +65 -0
- package/dist/collection/components/interfaces/IToolboxField.js +2 -0
- package/dist/collection/components/interfaces/IToolboxField.js.map +1 -0
- package/dist/collection/components/ls-compose-manager/ls-compose-manager.css +3 -0
- package/dist/collection/components/ls-compose-manager/ls-compose-manager.js +54 -0
- package/dist/collection/components/ls-compose-manager/ls-compose-manager.js.map +1 -0
- package/dist/collection/components/ls-document-options/ls-document-options.css +386 -0
- package/dist/collection/components/ls-document-options/ls-document-options.js +163 -0
- package/dist/collection/components/ls-document-options/ls-document-options.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js +89 -0
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/elementActions.js +72 -0
- package/dist/collection/components/ls-document-viewer/adapter/elementActions.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js +96 -0
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/parameters.js +16 -0
- package/dist/collection/components/ls-document-viewer/adapter/parameters.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/roleActions.js +70 -0
- package/dist/collection/components/ls-document-viewer/adapter/roleActions.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js +95 -0
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js +20 -0
- package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js.map +1 -0
- package/dist/{ls-document-viewer/defaultFieldLabels-CUaKk41L.js → collection/components/ls-document-viewer/defaultFieldLabels.js} +7 -11
- package/dist/collection/components/ls-document-viewer/defaultFieldLabels.js.map +1 -0
- package/dist/{ls-document-viewer/defaultPalette-CwCWCxsI.js → collection/components/ls-document-viewer/defaultPalette.js} +2 -6
- package/dist/collection/components/ls-document-viewer/defaultPalette.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/editorCalculator.js +133 -0
- package/dist/collection/components/ls-document-viewer/editorCalculator.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/editorUtils.js +210 -0
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/keyHandlers.js +76 -0
- package/dist/collection/components/ls-document-viewer/keyHandlers.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.css +688 -0
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +1292 -0
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -0
- package/dist/{ls-document-viewer/mouseHandlers-8wT9GBoG.js → collection/components/ls-document-viewer/mouseHandlers.js} +10 -15
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/validator.js +51 -0
- package/dist/collection/components/ls-document-viewer/validator.js.map +1 -0
- package/dist/collection/components/ls-editor-field/ls-editor-field.css +89 -0
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +468 -0
- package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +1 -0
- package/dist/collection/components/ls-editor-table/ls-editor-table.css +16 -0
- package/dist/collection/components/ls-editor-table/ls-editor-table.js +69 -0
- package/dist/collection/components/ls-editor-table/ls-editor-table.js.map +1 -0
- package/dist/collection/components/ls-feature-column/ls-feature-column.css +27 -0
- package/dist/collection/components/ls-feature-column/ls-feature-column.js +114 -0
- package/dist/collection/components/ls-feature-column/ls-feature-column.js.map +1 -0
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.css +370 -0
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js +208 -0
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js.map +1 -0
- package/dist/collection/components/ls-field-content/ls-field-content.css +288 -0
- package/dist/collection/components/ls-field-content/ls-field-content.js +141 -0
- package/dist/collection/components/ls-field-content/ls-field-content.js.map +1 -0
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.css +353 -0
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +141 -0
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js.map +1 -0
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.css +376 -0
- package/dist/{ls-document-viewer/ls-field-distribute.entry.js → collection/components/ls-field-distribute/ls-field-distribute.js} +72 -18
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js.map +1 -0
- package/dist/collection/components/ls-field-footer/ls-field-footer.css +55 -0
- package/dist/collection/components/ls-field-footer/ls-field-footer.js +145 -0
- package/dist/collection/components/ls-field-footer/ls-field-footer.js.map +1 -0
- package/dist/collection/components/ls-field-format/ls-field-format.css +297 -0
- package/dist/collection/components/ls-field-format/ls-field-format.js +145 -0
- package/dist/collection/components/ls-field-format/ls-field-format.js.map +1 -0
- package/dist/collection/components/ls-field-placement/ls-field-placement.css +370 -0
- package/dist/collection/components/ls-field-placement/ls-field-placement.js +121 -0
- package/dist/collection/components/ls-field-placement/ls-field-placement.js.map +1 -0
- package/dist/collection/components/ls-field-properties/ls-field-properties.css +286 -0
- package/dist/collection/components/ls-field-properties/ls-field-properties.js +83 -0
- package/dist/collection/components/ls-field-properties/ls-field-properties.js.map +1 -0
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.css +391 -0
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js +144 -0
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js.map +1 -0
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.css +284 -0
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +47 -0
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js.map +1 -0
- package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.css +65 -0
- package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.js +91 -0
- package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.js.map +1 -0
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.css +302 -0
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +47 -0
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js.map +1 -0
- package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.css +3 -0
- package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.js +47 -0
- package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.js.map +1 -0
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.css +304 -0
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +47 -0
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js.map +1 -0
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.css +304 -0
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +47 -0
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js.map +1 -0
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.css +304 -0
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +47 -0
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js.map +1 -0
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.css +304 -0
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +47 -0
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js.map +1 -0
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.css +459 -0
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +148 -0
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +1 -0
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.css +304 -0
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +47 -0
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js.map +1 -0
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.css +304 -0
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +47 -0
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js.map +1 -0
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.css +301 -0
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +47 -0
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js.map +1 -0
- package/dist/collection/components/ls-field-size/ls-field-size.css +376 -0
- package/dist/collection/components/ls-field-size/ls-field-size.js +87 -0
- package/dist/collection/components/ls-field-size/ls-field-size.js.map +1 -0
- package/dist/collection/components/ls-field-type-display/ls-field-type-display.css +35 -0
- package/dist/collection/components/ls-field-type-display/ls-field-type-display.js +75 -0
- package/dist/collection/components/ls-field-type-display/ls-field-type-display.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.css +273 -0
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js +336 -0
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.css +69 -0
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js +172 -0
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.css +228 -0
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js +288 -0
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.css +218 -0
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js +365 -0
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.css +208 -0
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js +326 -0
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/ls-formfield.css +98 -0
- package/dist/collection/components/ls-formfield/ls-formfield.js +546 -0
- package/dist/collection/components/ls-formfield/ls-formfield.js.map +1 -0
- package/dist/collection/components/ls-helper-bar/ls-helper-bar.css +33 -0
- package/dist/collection/components/ls-helper-bar/ls-helper-bar.js +71 -0
- package/dist/collection/components/ls-helper-bar/ls-helper-bar.js.map +1 -0
- package/dist/collection/components/ls-icon/icons.js +6639 -0
- package/dist/collection/components/ls-icon/icons.js.map +1 -0
- package/dist/collection/components/ls-icon/ls-icon.js +145 -0
- package/dist/collection/components/ls-icon/ls-icon.js.map +1 -0
- package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.css +29 -0
- package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.js +70 -0
- package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.js.map +1 -0
- package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.css +45 -0
- package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.js +19 -0
- package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.js.map +1 -0
- package/dist/collection/components/ls-page-loader/ls-page-loader.css +20 -0
- package/dist/{ls-document-viewer/ls-page-loader.entry.js → collection/components/ls-page-loader/ls-page-loader.js} +16 -13
- package/dist/collection/components/ls-page-loader/ls-page-loader.js.map +1 -0
- package/dist/collection/components/ls-participant-card/ls-participant-card.css +430 -0
- package/dist/collection/components/ls-participant-card/ls-participant-card.js +280 -0
- package/dist/collection/components/ls-participant-card/ls-participant-card.js.map +1 -0
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.css +350 -0
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +190 -0
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js.map +1 -0
- package/dist/collection/components/ls-participant-select/ls-participant-select.css +431 -0
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +198 -0
- package/dist/collection/components/ls-participant-select/ls-participant-select.js.map +1 -0
- package/dist/collection/components/ls-props-section/ls-props-section.css +42 -0
- package/dist/collection/components/ls-props-section/ls-props-section.js +84 -0
- package/dist/collection/components/ls-props-section/ls-props-section.js.map +1 -0
- package/dist/collection/components/ls-recipient-card/ls-recipient-card.css +464 -0
- package/dist/collection/components/ls-recipient-card/ls-recipient-card.js +299 -0
- package/dist/collection/components/ls-recipient-card/ls-recipient-card.js.map +1 -0
- package/dist/collection/components/ls-recipient-manager/ls-recipient-manager.css +29 -0
- package/dist/collection/components/ls-recipient-manager/ls-recipient-manager.js +19 -0
- package/dist/collection/components/ls-recipient-manager/ls-recipient-manager.js.map +1 -0
- package/dist/collection/components/ls-statusbar/ls-statusbar.css +212 -0
- package/dist/collection/components/ls-statusbar/ls-statusbar.js +143 -0
- package/dist/collection/components/ls-statusbar/ls-statusbar.js.map +1 -0
- package/dist/collection/components/ls-title-input/ls-title-input.css +320 -0
- package/dist/collection/components/ls-title-input/ls-title-input.js +106 -0
- package/dist/collection/components/ls-title-input/ls-title-input.js.map +1 -0
- package/dist/collection/components/ls-toggle/ls-toggle.css +90 -0
- package/dist/collection/components/ls-toggle/ls-toggle.js +86 -0
- package/dist/collection/components/ls-toggle/ls-toggle.js.map +1 -0
- package/dist/collection/components/ls-toolbar/ls-toolbar.css +303 -0
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +215 -0
- package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +1 -0
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.css +329 -0
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +381 -0
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js.map +1 -0
- package/dist/collection/components/ls-tooltip/ls-tooltip.css +55 -0
- package/dist/collection/components/ls-tooltip/ls-tooltip.js +205 -0
- package/dist/collection/components/ls-tooltip/ls-tooltip.js.map +1 -0
- package/dist/collection/components/ls-validation-manager/ls-validation-manager.css +159 -0
- package/dist/collection/components/ls-validation-manager/ls-validation-manager.js +63 -0
- package/dist/collection/components/ls-validation-manager/ls-validation-manager.js.map +1 -0
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.css +232 -0
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js +170 -0
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/types/Icon.js +369 -0
- package/dist/collection/types/Icon.js.map +1 -0
- package/dist/collection/types/LSApiElement.js +2 -0
- package/dist/collection/types/LSApiElement.js.map +1 -0
- package/dist/collection/types/LSApiElementType.js +16 -0
- package/dist/collection/types/LSApiElementType.js.map +1 -0
- package/dist/collection/types/LSApiRecipient.js +2 -0
- package/dist/collection/types/LSApiRecipient.js.map +1 -0
- package/dist/collection/types/LSApiRole.js +2 -0
- package/dist/collection/types/LSApiRole.js.map +1 -0
- package/dist/collection/types/LSApiTemplate.js +2 -0
- package/dist/collection/types/LSApiTemplate.js.map +1 -0
- package/dist/collection/types/LSMutateEvent.js +2 -0
- package/dist/collection/types/LSMutateEvent.js.map +1 -0
- package/dist/collection/types/RoleColor.js +2 -0
- package/dist/collection/types/RoleColor.js.map +1 -0
- package/dist/collection/types/ValidationError.js +2 -0
- package/dist/collection/types/ValidationError.js.map +1 -0
- package/dist/collection/types/ValidationType.js +2 -0
- package/dist/collection/types/ValidationType.js.map +1 -0
- package/dist/collection/utils/tooltip.js +28 -0
- package/dist/collection/utils/tooltip.js.map +1 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.js +10 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/ls-compose-manager.js +49 -0
- package/dist/components/ls-compose-manager.js.map +1 -0
- package/dist/components/ls-document-options.js +9 -0
- package/dist/components/ls-document-options.js.map +1 -0
- package/dist/{ls-document-viewer/ls-document-viewer.entry.js → components/ls-document-viewer.js} +502 -879
- package/dist/components/ls-document-viewer.js.map +1 -0
- package/dist/components/ls-editor-field.js +9 -0
- package/dist/components/ls-editor-field.js.map +1 -0
- package/dist/components/ls-editor-table.js +9 -0
- package/dist/components/ls-editor-table.js.map +1 -0
- package/dist/components/ls-feature-column.js +9 -0
- package/dist/components/ls-feature-column.js.map +1 -0
- package/dist/components/ls-field-alignment.js +9 -0
- package/dist/components/ls-field-alignment.js.map +1 -0
- package/dist/components/ls-field-content.js +9 -0
- package/dist/components/ls-field-content.js.map +1 -0
- package/dist/components/ls-field-dimensions.js +9 -0
- package/dist/components/ls-field-dimensions.js.map +1 -0
- package/dist/components/ls-field-distribute.js +9 -0
- package/dist/components/ls-field-distribute.js.map +1 -0
- package/dist/components/ls-field-footer.js +9 -0
- package/dist/components/ls-field-footer.js.map +1 -0
- package/dist/components/ls-field-format.js +9 -0
- package/dist/components/ls-field-format.js.map +1 -0
- package/dist/components/ls-field-placement.js +9 -0
- package/dist/components/ls-field-placement.js.map +1 -0
- package/dist/components/ls-field-properties-advanced.js +9 -0
- package/dist/components/ls-field-properties-advanced.js.map +1 -0
- package/dist/components/ls-field-properties-autosign.js +9 -0
- package/dist/components/ls-field-properties-autosign.js.map +1 -0
- package/dist/components/ls-field-properties-container.js +9 -0
- package/dist/components/ls-field-properties-container.js.map +1 -0
- package/dist/components/ls-field-properties-date.js +9 -0
- package/dist/components/ls-field-properties-date.js.map +1 -0
- package/dist/components/ls-field-properties-dropdown.js +120 -0
- package/dist/components/ls-field-properties-dropdown.js.map +1 -0
- package/dist/components/ls-field-properties-email.js +9 -0
- package/dist/components/ls-field-properties-email.js.map +1 -0
- package/dist/components/ls-field-properties-file.js +9 -0
- package/dist/components/ls-field-properties-file.js.map +1 -0
- package/dist/components/ls-field-properties-general.js +9 -0
- package/dist/components/ls-field-properties-general.js.map +1 -0
- package/dist/components/ls-field-properties-image.js +9 -0
- package/dist/components/ls-field-properties-image.js.map +1 -0
- package/dist/components/ls-field-properties-multiple.js +9 -0
- package/dist/components/ls-field-properties-multiple.js.map +1 -0
- package/dist/components/ls-field-properties-number.js +9 -0
- package/dist/components/ls-field-properties-number.js.map +1 -0
- package/dist/components/ls-field-properties-signature.js +9 -0
- package/dist/components/ls-field-properties-signature.js.map +1 -0
- package/dist/components/ls-field-properties-text.js +9 -0
- package/dist/components/ls-field-properties-text.js.map +1 -0
- package/dist/components/ls-field-properties.js +9 -0
- package/dist/components/ls-field-properties.js.map +1 -0
- package/dist/components/ls-field-size.js +9 -0
- package/dist/components/ls-field-size.js.map +1 -0
- package/dist/components/ls-field-type-display.js +9 -0
- package/dist/components/ls-field-type-display.js.map +1 -0
- package/dist/components/ls-formfield.js +243 -0
- package/dist/components/ls-formfield.js.map +1 -0
- package/dist/components/ls-helper-bar.js +9 -0
- package/dist/components/ls-helper-bar.js.map +1 -0
- package/dist/components/ls-icon.js +9 -0
- package/dist/components/ls-icon.js.map +1 -0
- package/dist/components/ls-input-wrapper.js +9 -0
- package/dist/components/ls-input-wrapper.js.map +1 -0
- package/dist/components/ls-keyboard-shortcuts.js +9 -0
- package/dist/components/ls-keyboard-shortcuts.js.map +1 -0
- package/dist/components/ls-number-input.js +9 -0
- package/dist/components/ls-number-input.js.map +1 -0
- package/dist/components/ls-page-loader.js +9 -0
- package/dist/components/ls-page-loader.js.map +1 -0
- package/dist/components/ls-participant-card.js +9 -0
- package/dist/components/ls-participant-card.js.map +1 -0
- package/dist/components/ls-participant-manager.js +9 -0
- package/dist/components/ls-participant-manager.js.map +1 -0
- package/dist/components/ls-participant-select.js +9 -0
- package/dist/components/ls-participant-select.js.map +1 -0
- package/dist/components/ls-props-section.js +9 -0
- package/dist/components/ls-props-section.js.map +1 -0
- package/dist/components/ls-radio-input.js +9 -0
- package/dist/components/ls-radio-input.js.map +1 -0
- package/dist/components/ls-recipient-card.js +9 -0
- package/dist/components/ls-recipient-card.js.map +1 -0
- package/dist/components/ls-recipient-manager.js +9 -0
- package/dist/components/ls-recipient-manager.js.map +1 -0
- package/dist/components/ls-select-input.js +9 -0
- package/dist/components/ls-select-input.js.map +1 -0
- package/dist/components/ls-statusbar.js +9 -0
- package/dist/components/ls-statusbar.js.map +1 -0
- package/dist/components/ls-text-input.js +9 -0
- package/dist/components/ls-text-input.js.map +1 -0
- package/dist/components/ls-textarea-input.js +9 -0
- package/dist/components/ls-textarea-input.js.map +1 -0
- package/dist/components/ls-title-input.js +79 -0
- package/dist/components/ls-title-input.js.map +1 -0
- package/dist/components/ls-toggle.js +9 -0
- package/dist/components/ls-toggle.js.map +1 -0
- package/dist/components/ls-toolbar.js +9 -0
- package/dist/components/ls-toolbar.js.map +1 -0
- package/dist/components/ls-toolbox-field.js +9 -0
- package/dist/components/ls-toolbox-field.js.map +1 -0
- package/dist/components/ls-tooltip.js +9 -0
- package/dist/components/ls-tooltip.js.map +1 -0
- package/dist/components/ls-validation-manager.js +9 -0
- package/dist/components/ls-validation-manager.js.map +1 -0
- package/dist/components/ls-validation-tag.js +9 -0
- package/dist/components/ls-validation-tag.js.map +1 -0
- package/dist/{ls-document-viewer/ls-participant-card.entry.js → components/p-B4_-Y3Tc.js} +60 -11
- package/dist/components/p-B4_-Y3Tc.js.map +1 -0
- package/dist/components/p-B5cnJ7Uh.js +47 -0
- package/dist/components/p-B5cnJ7Uh.js.map +1 -0
- package/dist/{ls-document-viewer/ls-select-input.entry.js → components/p-B6kmJVw0.js} +47 -9
- package/dist/components/p-B6kmJVw0.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-footer.entry.js → components/p-BDTgDxaX.js} +36 -8
- package/dist/components/p-BDTgDxaX.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-container.entry.js → components/p-BFUdzGLI.js} +32 -8
- package/dist/components/p-BFUdzGLI.js.map +1 -0
- package/dist/components/p-BKrsDBDB.js +219 -0
- package/dist/components/p-BKrsDBDB.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-general.entry.js → components/p-BREZ8Ewj.js} +108 -8
- package/dist/components/p-BREZ8Ewj.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-advanced.entry.js → components/p-BSpwN-xy.js} +43 -8
- package/dist/components/p-BSpwN-xy.js.map +1 -0
- package/dist/components/p-B_JOCgcw.js +105 -0
- package/dist/components/p-B_JOCgcw.js.map +1 -0
- package/dist/{ls-document-viewer/ls-document-options.entry.js → components/p-Bd5hHfVU.js} +53 -10
- package/dist/components/p-Bd5hHfVU.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-email.entry.js → components/p-Begt0qBL.js} +108 -8
- package/dist/components/p-Begt0qBL.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-number.entry.js → components/p-BgQSapwC.js} +108 -8
- package/dist/components/p-BgQSapwC.js.map +1 -0
- package/dist/components/p-BhZ5Udbm.js +1765 -0
- package/dist/components/p-BhZ5Udbm.js.map +1 -0
- package/dist/components/p-Bkyhs-9F.js +60 -0
- package/dist/components/p-Bkyhs-9F.js.map +1 -0
- package/dist/{ls-document-viewer/ls-number-input.entry.js → components/p-BrNFnrQ5.js} +50 -9
- package/dist/components/p-BrNFnrQ5.js.map +1 -0
- package/dist/{ls-document-viewer/ls-statusbar.entry.js → components/p-Bw19bxna.js} +62 -13
- package/dist/components/p-Bw19bxna.js.map +1 -0
- package/dist/components/p-Bxq4Jou6.js +568 -0
- package/dist/components/p-Bxq4Jou6.js.map +1 -0
- package/dist/{ls-document-viewer/ls-radio-input.entry.js → components/p-C6pzA2Lp.js} +42 -9
- package/dist/components/p-C6pzA2Lp.js.map +1 -0
- package/dist/{ls-document-viewer/ls-toolbox-field.entry.js → components/p-CI3IFKqK.js} +56 -11
- package/dist/components/p-CI3IFKqK.js.map +1 -0
- package/dist/{ls-document-viewer/editorUtils-KdYXvZ56.js → components/p-CKnixZlS.js} +248 -58
- package/dist/components/p-CKnixZlS.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-multiple.entry.js → components/p-CMsyvCsL.js} +98 -10
- package/dist/components/p-CMsyvCsL.js.map +1 -0
- package/dist/{ls-document-viewer/ls-helper-bar.entry.js → components/p-CN4S8Tr6.js} +51 -10
- package/dist/components/p-CN4S8Tr6.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-image.entry.js → components/p-CSPv-sVd.js} +108 -8
- package/dist/components/p-CSPv-sVd.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-placement.entry.js → components/p-CYMm2d62.js} +44 -10
- package/dist/components/p-CYMm2d62.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-file.entry.js → components/p-Ca-YBRIi.js} +108 -8
- package/dist/components/p-Ca-YBRIi.js.map +1 -0
- package/dist/{ls-document-viewer/tooltip-Cb8nDMs-.js → components/p-Cb8nDMs-.js} +2 -2
- package/dist/components/p-Cb8nDMs-.js.map +1 -0
- package/dist/{ls-document-viewer/ls-recipient-card.entry.js → components/p-CbSH7gJL.js} +58 -10
- package/dist/components/p-CbSH7gJL.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-signature.entry.js → components/p-Cdp9Kc36.js} +108 -8
- package/dist/components/p-Cdp9Kc36.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-format.entry.js → components/p-Ch9RTQWk.js} +46 -10
- package/dist/components/p-Ch9RTQWk.js.map +1 -0
- package/dist/{ls-document-viewer/clsx-ChV9xqsO.js → components/p-ChV9xqsO.js} +2 -2
- package/dist/components/p-ChV9xqsO.js.map +1 -0
- package/dist/{ls-document-viewer/ls-textarea-input.entry.js → components/p-CntMVGQM.js} +50 -9
- package/dist/components/p-CntMVGQM.js.map +1 -0
- package/dist/{ls-document-viewer/defaultFieldIcons-Cp3IxvzK.js → components/p-Cp3IxvzK.js} +2 -2
- package/dist/components/p-Cp3IxvzK.js.map +1 -0
- package/dist/{ls-document-viewer/ls-props-section.entry.js → components/p-CwkNbClZ.js} +32 -8
- package/dist/components/p-CwkNbClZ.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-autosign.entry.js → components/p-Cx-QcGQg.js} +66 -8
- package/dist/components/p-Cx-QcGQg.js.map +1 -0
- package/dist/components/p-D1Vbun-H.js +36 -0
- package/dist/components/p-D1Vbun-H.js.map +1 -0
- package/dist/{ls-document-viewer/ls-feature-column.entry.js → components/p-D9j4pLd9.js} +45 -10
- package/dist/components/p-D9j4pLd9.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-dimensions.entry.js → components/p-DBZFz4Ni.js} +44 -10
- package/dist/components/p-DBZFz4Ni.js.map +1 -0
- package/dist/{ls-document-viewer/ls-participant-select.entry.js → components/p-DK4_6BnD.js} +42 -9
- package/dist/components/p-DK4_6BnD.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-date.entry.js → components/p-DThoxHje.js} +108 -8
- package/dist/components/p-DThoxHje.js.map +1 -0
- package/dist/{ls-document-viewer/ls-validation-tag.entry.js → components/p-DdAAJAZW.js} +41 -9
- package/dist/components/p-DdAAJAZW.js.map +1 -0
- package/dist/components/p-DfV8Cje6.js +231 -0
- package/dist/components/p-DfV8Cje6.js.map +1 -0
- package/dist/{ls-document-viewer/ls-keyboard-shortcuts.entry.js → components/p-DfkXv1vI.js} +28 -8
- package/dist/components/p-DfkXv1vI.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-size.entry.js → components/p-DirhmWEt.js} +44 -10
- package/dist/components/p-DirhmWEt.js.map +1 -0
- package/dist/{ls-document-viewer/ls-icon.entry.js → components/p-DnyBXRV4.js} +33 -15
- package/dist/components/p-DnyBXRV4.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-content.entry.js → components/p-Dsi4R7Oq.js} +68 -11
- package/dist/components/p-Dsi4R7Oq.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-properties-text.entry.js → components/p-MT9M7yVh.js} +108 -8
- package/dist/components/p-MT9M7yVh.js.map +1 -0
- package/dist/{ls-document-viewer/ls-validation-manager.entry.js → components/p-T6MZpv4Y.js} +49 -9
- package/dist/components/p-T6MZpv4Y.js.map +1 -0
- package/dist/{ls-document-viewer/ls-field-alignment.entry.js → components/p-UffBQXtF.js} +44 -10
- package/dist/components/p-UffBQXtF.js.map +1 -0
- package/dist/{ls-document-viewer/ls-participant-manager.entry.js → components/p-enO8g-4z.js} +58 -11
- package/dist/components/p-enO8g-4z.js.map +1 -0
- package/dist/{ls-document-viewer/ls-tooltip.entry.js → components/p-faUZy676.js} +44 -694
- package/dist/components/p-faUZy676.js.map +1 -0
- package/dist/components/p-kug3tj7P.js +115 -0
- package/dist/components/p-kug3tj7P.js.map +1 -0
- package/dist/{ls-document-viewer/ls-toggle.entry.js → components/p-mm_laW9q.js} +30 -8
- package/dist/components/p-mm_laW9q.js.map +1 -0
- package/dist/{ls-document-viewer/ls-toolbar.entry.js → components/p-pumCOAgo.js} +59 -9
- package/dist/components/p-pumCOAgo.js.map +1 -0
- package/dist/{ls-document-viewer/ls-text-input.entry.js → components/p-tbdpKil5.js} +51 -9
- package/dist/components/p-tbdpKil5.js.map +1 -0
- package/dist/esm/index-BwdJ-HOC.js +2000 -0
- package/dist/esm/index-BwdJ-HOC.js.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/{ls-document-viewer → esm}/ls-compose-manager.entry.js +2 -2
- package/dist/esm/ls-compose-manager.entry.js.map +1 -0
- package/dist/esm/ls-document-options_45.entry.js +51671 -0
- package/dist/esm/ls-document-viewer.js +23 -0
- package/dist/esm/ls-document-viewer.js.map +1 -0
- package/dist/{ls-document-viewer → esm}/ls-field-properties-dropdown.entry.js +2 -2
- package/dist/esm/ls-field-properties-dropdown.entry.js.map +1 -0
- package/dist/{ls-document-viewer → esm}/ls-formfield.entry.js +2 -2
- package/dist/esm/ls-formfield.entry.js.map +1 -0
- package/dist/esm/ls-number-input_5.entry.js +1123 -0
- package/dist/{ls-document-viewer → esm}/ls-title-input.entry.js +2 -2
- package/dist/esm/ls-title-input.entry.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/ls-document-viewer/index.esm.js +1 -17
- package/dist/ls-document-viewer/index.esm.js.map +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.css +1 -259
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -49
- package/dist/ls-document-viewer/ls-document-viewer.esm.js.map +1 -1
- package/dist/ls-document-viewer/p-00ab25ff.entry.js +2 -0
- package/dist/ls-document-viewer/p-00ab25ff.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-131fe514.entry.js +2 -0
- package/dist/ls-document-viewer/p-131fe514.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-18dc496a.entry.js +4922 -0
- package/dist/ls-document-viewer/p-18dc496a.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-96fe16df.entry.js +2 -0
- package/dist/ls-document-viewer/p-96fe16df.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-BwdJ-HOC.js +3 -0
- package/dist/ls-document-viewer/p-BwdJ-HOC.js.map +1 -0
- package/dist/ls-document-viewer/p-bd532735.entry.js +2 -0
- package/dist/ls-document-viewer/p-bd532735.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-ccbc4663.entry.js +2 -0
- package/dist/ls-document-viewer/p-ccbc4663.entry.js.map +1 -0
- package/dist/types/components/ls-document-viewer/adapter/LsDocumentAdapter.d.ts +1 -1
- package/dist/types/components/ls-document-viewer/editorUtils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ls-document-viewer/clsx-ChV9xqsO.js.map +0 -1
- package/dist/ls-document-viewer/defaultFieldIcons-Cp3IxvzK.js.map +0 -1
- package/dist/ls-document-viewer/defaultFieldLabels-CUaKk41L.js.map +0 -1
- package/dist/ls-document-viewer/defaultPalette-CwCWCxsI.js.map +0 -1
- package/dist/ls-document-viewer/editorUtils-KdYXvZ56.js.map +0 -1
- package/dist/ls-document-viewer/index-DANCsk1i.js +0 -4417
- package/dist/ls-document-viewer/index-DANCsk1i.js.map +0 -1
- package/dist/ls-document-viewer/ls-editor-field.entry.js +0 -203
- package/dist/ls-document-viewer/ls-editor-table.entry.js +0 -38
- package/dist/ls-document-viewer/ls-field-properties.entry.js +0 -53
- package/dist/ls-document-viewer/ls-field-type-display.entry.js +0 -29
- package/dist/ls-document-viewer/ls-input-wrapper.entry.js +0 -18
- package/dist/ls-document-viewer/ls-recipient-manager.entry.js +0 -16
- package/dist/ls-document-viewer/mouseHandlers-8wT9GBoG.js.map +0 -1
- package/dist/ls-document-viewer/tooltip-Cb8nDMs-.js.map +0 -1
package/dist/{ls-document-viewer/ls-document-viewer.entry.js → components/ls-document-viewer.js}
RENAMED
|
@@ -1,7 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as alter, o as oob, u as updateTemplate, r as recalculateCoordinates, m as matchData, v as validate, b as moveField, g as getApiType, c as addField,
|
|
3
|
-
import { m as mouseClick, a as mouseDown, b as mouseMove, c as mouseUp,
|
|
4
|
-
import { a as attachAllTooltips } from './
|
|
1
|
+
import { t as transformTag, p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-BhZ5Udbm.js';
|
|
2
|
+
import { a as alter, o as oob, u as updateTemplate, r as recalculateCoordinates, d as defineCustomElement$I, m as matchData, v as validate, b as moveField, g as getApiType, c as addField, e as getTemplate } from './p-CKnixZlS.js';
|
|
3
|
+
import { d as defineCustomElement$C, m as mouseClick, a as mouseDown, b as mouseMove, c as mouseUp, e as mouseDoubleClick, f as mouseDrop } from './p-Bxq4Jou6.js';
|
|
4
|
+
import { a as attachAllTooltips } from './p-Cb8nDMs-.js';
|
|
5
|
+
import { d as defineCustomElement$J } from './p-Bd5hHfVU.js';
|
|
6
|
+
import { d as defineCustomElement$H } from './p-Bkyhs-9F.js';
|
|
7
|
+
import { d as defineCustomElement$G } from './p-D9j4pLd9.js';
|
|
8
|
+
import { d as defineCustomElement$F } from './p-UffBQXtF.js';
|
|
9
|
+
import { d as defineCustomElement$E } from './p-Dsi4R7Oq.js';
|
|
10
|
+
import { d as defineCustomElement$D } from './p-DBZFz4Ni.js';
|
|
11
|
+
import { d as defineCustomElement$B } from './p-BDTgDxaX.js';
|
|
12
|
+
import { d as defineCustomElement$A } from './p-Ch9RTQWk.js';
|
|
13
|
+
import { d as defineCustomElement$z } from './p-CYMm2d62.js';
|
|
14
|
+
import { d as defineCustomElement$y } from './p-DfV8Cje6.js';
|
|
15
|
+
import { d as defineCustomElement$x } from './p-BSpwN-xy.js';
|
|
16
|
+
import { d as defineCustomElement$w } from './p-Cx-QcGQg.js';
|
|
17
|
+
import { d as defineCustomElement$v } from './p-BFUdzGLI.js';
|
|
18
|
+
import { d as defineCustomElement$u } from './p-DThoxHje.js';
|
|
19
|
+
import { d as defineCustomElement$t } from './p-Begt0qBL.js';
|
|
20
|
+
import { d as defineCustomElement$s } from './p-Ca-YBRIi.js';
|
|
21
|
+
import { d as defineCustomElement$r } from './p-BREZ8Ewj.js';
|
|
22
|
+
import { d as defineCustomElement$q } from './p-CSPv-sVd.js';
|
|
23
|
+
import { d as defineCustomElement$p } from './p-CMsyvCsL.js';
|
|
24
|
+
import { d as defineCustomElement$o } from './p-BgQSapwC.js';
|
|
25
|
+
import { d as defineCustomElement$n } from './p-Cdp9Kc36.js';
|
|
26
|
+
import { d as defineCustomElement$m } from './p-MT9M7yVh.js';
|
|
27
|
+
import { d as defineCustomElement$l } from './p-DirhmWEt.js';
|
|
28
|
+
import { d as defineCustomElement$k } from './p-kug3tj7P.js';
|
|
29
|
+
import { d as defineCustomElement$j } from './p-CN4S8Tr6.js';
|
|
30
|
+
import { d as defineCustomElement$i } from './p-DnyBXRV4.js';
|
|
31
|
+
import { d as defineCustomElement$h } from './p-B5cnJ7Uh.js';
|
|
32
|
+
import { d as defineCustomElement$g } from './p-DfkXv1vI.js';
|
|
33
|
+
import { d as defineCustomElement$f } from './p-B_JOCgcw.js';
|
|
34
|
+
import { d as defineCustomElement$e } from './p-B4_-Y3Tc.js';
|
|
35
|
+
import { d as defineCustomElement$d } from './p-enO8g-4z.js';
|
|
36
|
+
import { d as defineCustomElement$c } from './p-DK4_6BnD.js';
|
|
37
|
+
import { d as defineCustomElement$b } from './p-CwkNbClZ.js';
|
|
38
|
+
import { d as defineCustomElement$a } from './p-CbSH7gJL.js';
|
|
39
|
+
import { d as defineCustomElement$9 } from './p-D1Vbun-H.js';
|
|
40
|
+
import { d as defineCustomElement$8 } from './p-Bw19bxna.js';
|
|
41
|
+
import { d as defineCustomElement$7 } from './p-mm_laW9q.js';
|
|
42
|
+
import { d as defineCustomElement$6 } from './p-pumCOAgo.js';
|
|
43
|
+
import { d as defineCustomElement$5 } from './p-CI3IFKqK.js';
|
|
44
|
+
import { d as defineCustomElement$4 } from './p-faUZy676.js';
|
|
45
|
+
import { d as defineCustomElement$3 } from './p-T6MZpv4Y.js';
|
|
46
|
+
import { d as defineCustomElement$2 } from './p-DdAAJAZW.js';
|
|
5
47
|
|
|
6
48
|
/**
|
|
7
49
|
* @licstart The following is the entire license notice for the
|
|
@@ -25,45 +67,13 @@ import { a as attachAllTooltips } from './tooltip-Cb8nDMs-.js';
|
|
|
25
67
|
* JavaScript code in this page
|
|
26
68
|
*/
|
|
27
69
|
|
|
28
|
-
/**
|
|
29
|
-
* pdfjsVersion = 5.4.449
|
|
30
|
-
* pdfjsBuild = f44e5f0e6
|
|
31
|
-
*/
|
|
32
|
-
/******/ // The require scope
|
|
33
|
-
/******/ var __webpack_require__$1 = {};
|
|
34
|
-
/******/
|
|
35
|
-
/************************************************************************/
|
|
36
|
-
/******/ /* webpack/runtime/define property getters */
|
|
37
|
-
/******/ (() => {
|
|
38
|
-
/******/ // define getter functions for harmony exports
|
|
39
|
-
/******/ __webpack_require__$1.d = (exports, definition) => {
|
|
40
|
-
/******/ for(var key in definition) {
|
|
41
|
-
/******/ if(__webpack_require__$1.o(definition, key) && !__webpack_require__$1.o(exports, key)) {
|
|
42
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
43
|
-
/******/ }
|
|
44
|
-
/******/ }
|
|
45
|
-
/******/ };
|
|
46
|
-
/******/ })();
|
|
47
|
-
/******/
|
|
48
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
49
|
-
/******/ (() => {
|
|
50
|
-
/******/ __webpack_require__$1.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
|
|
51
|
-
/******/ })();
|
|
52
|
-
/******/
|
|
53
|
-
/************************************************************************/
|
|
54
|
-
var __webpack_exports__$1 = {};
|
|
55
|
-
|
|
56
|
-
;// ./src/shared/util.js
|
|
57
70
|
const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser");
|
|
58
71
|
const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
|
|
59
72
|
const LINE_FACTOR = 1.35;
|
|
60
|
-
const LINE_DESCENT_FACTOR = 0.35;
|
|
61
|
-
const BASELINE_FACTOR = LINE_DESCENT_FACTOR / LINE_FACTOR;
|
|
62
73
|
const RenderingIntentFlag = {
|
|
63
74
|
ANY: 0x01,
|
|
64
75
|
DISPLAY: 0x02,
|
|
65
76
|
PRINT: 0x04,
|
|
66
|
-
SAVE: 0x08,
|
|
67
77
|
ANNOTATIONS_FORMS: 0x10,
|
|
68
78
|
ANNOTATIONS_STORAGE: 0x20,
|
|
69
79
|
ANNOTATIONS_DISABLE: 0x40,
|
|
@@ -88,7 +98,7 @@ const AnnotationEditorType$1 = {
|
|
|
88
98
|
SIGNATURE: 101,
|
|
89
99
|
COMMENT: 102
|
|
90
100
|
};
|
|
91
|
-
const AnnotationEditorParamsType
|
|
101
|
+
const AnnotationEditorParamsType = {
|
|
92
102
|
RESIZE: 1,
|
|
93
103
|
CREATE: 2,
|
|
94
104
|
FREETEXT_SIZE: 11,
|
|
@@ -115,18 +125,12 @@ const PermissionFlag$1 = {
|
|
|
115
125
|
};
|
|
116
126
|
const MeshFigureType = {
|
|
117
127
|
TRIANGLES: 1,
|
|
118
|
-
LATTICE: 2
|
|
119
|
-
PATCH: 3
|
|
120
|
-
};
|
|
128
|
+
LATTICE: 2};
|
|
121
129
|
const TextRenderingMode = {
|
|
122
130
|
FILL: 0,
|
|
123
131
|
STROKE: 1,
|
|
124
132
|
FILL_STROKE: 2,
|
|
125
133
|
INVISIBLE: 3,
|
|
126
|
-
FILL_ADD_TO_PATH: 4,
|
|
127
|
-
STROKE_ADD_TO_PATH: 5,
|
|
128
|
-
FILL_STROKE_ADD_TO_PATH: 6,
|
|
129
|
-
ADD_TO_PATH: 7,
|
|
130
134
|
FILL_STROKE_MASK: 3,
|
|
131
135
|
ADD_TO_PATH_FLAG: 4
|
|
132
136
|
};
|
|
@@ -163,43 +167,6 @@ const AnnotationType$1 = {
|
|
|
163
167
|
THREED: 25,
|
|
164
168
|
REDACT: 26
|
|
165
169
|
};
|
|
166
|
-
const AnnotationReplyType = {
|
|
167
|
-
GROUP: "Group",
|
|
168
|
-
REPLY: "R"
|
|
169
|
-
};
|
|
170
|
-
const AnnotationFlag = {
|
|
171
|
-
INVISIBLE: 0x01,
|
|
172
|
-
HIDDEN: 0x02,
|
|
173
|
-
PRINT: 0x04,
|
|
174
|
-
NOZOOM: 0x08,
|
|
175
|
-
NOROTATE: 0x10,
|
|
176
|
-
NOVIEW: 0x20,
|
|
177
|
-
READONLY: 0x40,
|
|
178
|
-
LOCKED: 0x80,
|
|
179
|
-
TOGGLENOVIEW: 0x100,
|
|
180
|
-
LOCKEDCONTENTS: 0x200
|
|
181
|
-
};
|
|
182
|
-
const AnnotationFieldFlag = {
|
|
183
|
-
READONLY: 0x0000001,
|
|
184
|
-
REQUIRED: 0x0000002,
|
|
185
|
-
NOEXPORT: 0x0000004,
|
|
186
|
-
MULTILINE: 0x0001000,
|
|
187
|
-
PASSWORD: 0x0002000,
|
|
188
|
-
NOTOGGLETOOFF: 0x0004000,
|
|
189
|
-
RADIO: 0x0008000,
|
|
190
|
-
PUSHBUTTON: 0x0010000,
|
|
191
|
-
COMBO: 0x0020000,
|
|
192
|
-
EDIT: 0x0040000,
|
|
193
|
-
SORT: 0x0080000,
|
|
194
|
-
FILESELECT: 0x0100000,
|
|
195
|
-
MULTISELECT: 0x0200000,
|
|
196
|
-
DONOTSPELLCHECK: 0x0400000,
|
|
197
|
-
DONOTSCROLL: 0x0800000,
|
|
198
|
-
COMB: 0x1000000,
|
|
199
|
-
RICHTEXT: 0x2000000,
|
|
200
|
-
RADIOSINUNISON: 0x2000000,
|
|
201
|
-
COMMITONSELCHANGE: 0x4000000
|
|
202
|
-
};
|
|
203
170
|
const AnnotationBorderStyleType = {
|
|
204
171
|
SOLID: 1,
|
|
205
172
|
DASHED: 2,
|
|
@@ -207,39 +174,12 @@ const AnnotationBorderStyleType = {
|
|
|
207
174
|
INSET: 4,
|
|
208
175
|
UNDERLINE: 5
|
|
209
176
|
};
|
|
210
|
-
const
|
|
211
|
-
E: "Mouse Enter",
|
|
212
|
-
X: "Mouse Exit",
|
|
213
|
-
D: "Mouse Down",
|
|
214
|
-
U: "Mouse Up",
|
|
215
|
-
Fo: "Focus",
|
|
216
|
-
Bl: "Blur",
|
|
217
|
-
PO: "PageOpen",
|
|
218
|
-
PC: "PageClose",
|
|
219
|
-
PV: "PageVisible",
|
|
220
|
-
PI: "PageInvisible",
|
|
221
|
-
K: "Keystroke",
|
|
222
|
-
F: "Format",
|
|
223
|
-
V: "Validate",
|
|
224
|
-
C: "Calculate"
|
|
225
|
-
};
|
|
226
|
-
const DocumentActionEventType = {
|
|
227
|
-
WC: "WillClose",
|
|
228
|
-
WS: "WillSave",
|
|
229
|
-
DS: "DidSave",
|
|
230
|
-
WP: "WillPrint",
|
|
231
|
-
DP: "DidPrint"
|
|
232
|
-
};
|
|
233
|
-
const PageActionEventType = {
|
|
234
|
-
O: "PageOpen",
|
|
235
|
-
C: "PageClose"
|
|
236
|
-
};
|
|
237
|
-
const VerbosityLevel$1 = {
|
|
177
|
+
const VerbosityLevel = {
|
|
238
178
|
ERRORS: 0,
|
|
239
179
|
WARNINGS: 1,
|
|
240
180
|
INFOS: 5
|
|
241
181
|
};
|
|
242
|
-
const OPS
|
|
182
|
+
const OPS = {
|
|
243
183
|
dependency: 1,
|
|
244
184
|
setLineWidth: 2,
|
|
245
185
|
setLineCap: 3,
|
|
@@ -339,11 +279,11 @@ const DrawOPS = {
|
|
|
339
279
|
quadraticCurveTo: 3,
|
|
340
280
|
closePath: 4
|
|
341
281
|
};
|
|
342
|
-
const PasswordResponses
|
|
282
|
+
const PasswordResponses = {
|
|
343
283
|
NEED_PASSWORD: 1,
|
|
344
284
|
INCORRECT_PASSWORD: 2
|
|
345
285
|
};
|
|
346
|
-
let verbosity = VerbosityLevel
|
|
286
|
+
let verbosity = VerbosityLevel.WARNINGS;
|
|
347
287
|
function setVerbosityLevel(level) {
|
|
348
288
|
if (Number.isInteger(level)) {
|
|
349
289
|
verbosity = level;
|
|
@@ -353,12 +293,12 @@ function getVerbosityLevel() {
|
|
|
353
293
|
return verbosity;
|
|
354
294
|
}
|
|
355
295
|
function info(msg) {
|
|
356
|
-
if (verbosity >= VerbosityLevel
|
|
296
|
+
if (verbosity >= VerbosityLevel.INFOS) {
|
|
357
297
|
console.info(`Info: ${msg}`);
|
|
358
298
|
}
|
|
359
299
|
}
|
|
360
300
|
function warn(msg) {
|
|
361
|
-
if (verbosity >= VerbosityLevel
|
|
301
|
+
if (verbosity >= VerbosityLevel.WARNINGS) {
|
|
362
302
|
console.warn(`Warning: ${msg}`);
|
|
363
303
|
}
|
|
364
304
|
}
|
|
@@ -443,18 +383,18 @@ class UnknownErrorException extends BaseException {
|
|
|
443
383
|
this.details = details;
|
|
444
384
|
}
|
|
445
385
|
}
|
|
446
|
-
|
|
386
|
+
class InvalidPDFException extends BaseException {
|
|
447
387
|
constructor(msg) {
|
|
448
388
|
super(msg, "InvalidPDFException");
|
|
449
389
|
}
|
|
450
|
-
}
|
|
451
|
-
|
|
390
|
+
}
|
|
391
|
+
class ResponseException extends BaseException {
|
|
452
392
|
constructor(msg, status, missing) {
|
|
453
393
|
super(msg, "ResponseException");
|
|
454
394
|
this.status = status;
|
|
455
395
|
this.missing = missing;
|
|
456
396
|
}
|
|
457
|
-
}
|
|
397
|
+
}
|
|
458
398
|
class FormatError extends BaseException {
|
|
459
399
|
constructor(msg) {
|
|
460
400
|
super(msg, "FormatError");
|
|
@@ -496,9 +436,6 @@ function stringToBytes(str) {
|
|
|
496
436
|
function string32(value) {
|
|
497
437
|
return String.fromCharCode(value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff);
|
|
498
438
|
}
|
|
499
|
-
function objectSize(obj) {
|
|
500
|
-
return Object.keys(obj).length;
|
|
501
|
-
}
|
|
502
439
|
function isLittleEndian() {
|
|
503
440
|
const buffer8 = new Uint8Array(4);
|
|
504
441
|
buffer8[0] = 1;
|
|
@@ -765,75 +702,9 @@ let Util$1 = class Util {
|
|
|
765
702
|
this.#getExtremum(x0, x1, x2, x3, y0, y1, y2, y3, 3 * (-y0 + 3 * (y1 - y2) + y3), 6 * (y0 - 2 * y1 + y2), 3 * (y1 - y0), minMax);
|
|
766
703
|
}
|
|
767
704
|
};
|
|
768
|
-
const PDFStringTranslateTable = (/* unused pure expression or super */ null && ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2d8, 0x2c7, 0x2c6, 0x2d9, 0x2dd, 0x2db, 0x2da, 0x2dc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014, 0x2013, 0x192, 0x2044, 0x2039, 0x203a, 0x2212, 0x2030, 0x201e, 0x201c, 0x201d, 0x2018, 0x2019, 0x201a, 0x2122, 0xfb01, 0xfb02, 0x141, 0x152, 0x160, 0x178, 0x17d, 0x131, 0x142, 0x153, 0x161, 0x17e, 0, 0x20ac]));
|
|
769
|
-
function stringToPDFString(str, keepEscapeSequence = false) {
|
|
770
|
-
if (str[0] >= "\xEF") {
|
|
771
|
-
let encoding;
|
|
772
|
-
if (str[0] === "\xFE" && str[1] === "\xFF") {
|
|
773
|
-
encoding = "utf-16be";
|
|
774
|
-
if (str.length % 2 === 1) {
|
|
775
|
-
str = str.slice(0, -1);
|
|
776
|
-
}
|
|
777
|
-
} else if (str[0] === "\xFF" && str[1] === "\xFE") {
|
|
778
|
-
encoding = "utf-16le";
|
|
779
|
-
if (str.length % 2 === 1) {
|
|
780
|
-
str = str.slice(0, -1);
|
|
781
|
-
}
|
|
782
|
-
} else if (str[0] === "\xEF" && str[1] === "\xBB" && str[2] === "\xBF") {
|
|
783
|
-
encoding = "utf-8";
|
|
784
|
-
}
|
|
785
|
-
if (encoding) {
|
|
786
|
-
try {
|
|
787
|
-
const decoder = new TextDecoder(encoding, {
|
|
788
|
-
fatal: true
|
|
789
|
-
});
|
|
790
|
-
const buffer = stringToBytes(str);
|
|
791
|
-
const decoded = decoder.decode(buffer);
|
|
792
|
-
if (keepEscapeSequence || !decoded.includes("\x1b")) {
|
|
793
|
-
return decoded;
|
|
794
|
-
}
|
|
795
|
-
return decoded.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g, "");
|
|
796
|
-
} catch (ex) {
|
|
797
|
-
warn(`stringToPDFString: "${ex}".`);
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
const strBuf = [];
|
|
802
|
-
for (let i = 0, ii = str.length; i < ii; i++) {
|
|
803
|
-
const charCode = str.charCodeAt(i);
|
|
804
|
-
if (!keepEscapeSequence && charCode === 0x1b) {
|
|
805
|
-
while (++i < ii && str.charCodeAt(i) !== 0x1b) {}
|
|
806
|
-
continue;
|
|
807
|
-
}
|
|
808
|
-
const code = PDFStringTranslateTable[charCode];
|
|
809
|
-
strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
|
|
810
|
-
}
|
|
811
|
-
return strBuf.join("");
|
|
812
|
-
}
|
|
813
705
|
function stringToUTF8String(str) {
|
|
814
706
|
return decodeURIComponent(escape(str));
|
|
815
707
|
}
|
|
816
|
-
function utf8StringToString(str) {
|
|
817
|
-
return unescape(encodeURIComponent(str));
|
|
818
|
-
}
|
|
819
|
-
function isArrayEqual(arr1, arr2) {
|
|
820
|
-
if (arr1.length !== arr2.length) {
|
|
821
|
-
return false;
|
|
822
|
-
}
|
|
823
|
-
for (let i = 0, ii = arr1.length; i < ii; i++) {
|
|
824
|
-
if (arr1[i] !== arr2[i]) {
|
|
825
|
-
return false;
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
return true;
|
|
829
|
-
}
|
|
830
|
-
function getModificationDate(date = new Date()) {
|
|
831
|
-
if (!(date instanceof Date)) {
|
|
832
|
-
date = new Date(date);
|
|
833
|
-
}
|
|
834
|
-
const buffer = [date.getUTCFullYear().toString(), (date.getUTCMonth() + 1).toString().padStart(2, "0"), date.getUTCDate().toString().padStart(2, "0"), date.getUTCHours().toString().padStart(2, "0"), date.getUTCMinutes().toString().padStart(2, "0"), date.getUTCSeconds().toString().padStart(2, "0")];
|
|
835
|
-
return buffer.join("");
|
|
836
|
-
}
|
|
837
708
|
let NormalizeRegex = null;
|
|
838
709
|
let NormalizationMap = null;
|
|
839
710
|
function normalizeUnicode$1(str) {
|
|
@@ -843,7 +714,7 @@ function normalizeUnicode$1(str) {
|
|
|
843
714
|
}
|
|
844
715
|
return str.replaceAll(NormalizeRegex, (_, p1, p2) => p1 ? p1.normalize("NFKC") : NormalizationMap.get(p2));
|
|
845
716
|
}
|
|
846
|
-
function getUuid
|
|
717
|
+
function getUuid() {
|
|
847
718
|
if (typeof crypto.randomUUID === "function") {
|
|
848
719
|
return crypto.randomUUID();
|
|
849
720
|
}
|
|
@@ -902,12 +773,6 @@ function _isValidExplicitDest(validRef, validName, dest) {
|
|
|
902
773
|
function MathClamp$1(v, min, max) {
|
|
903
774
|
return Math.min(Math.max(v, min), max);
|
|
904
775
|
}
|
|
905
|
-
function toHexUtil(arr) {
|
|
906
|
-
if (Uint8Array.prototype.toHex) {
|
|
907
|
-
return arr.toHex();
|
|
908
|
-
}
|
|
909
|
-
return Array.from(arr, num => hexNumbers[num]).join("");
|
|
910
|
-
}
|
|
911
776
|
function toBase64Util(arr) {
|
|
912
777
|
if (Uint8Array.prototype.toBase64) {
|
|
913
778
|
return arr.toBase64();
|
|
@@ -932,8 +797,6 @@ if (typeof Math.sumPrecise !== "function") {
|
|
|
932
797
|
return numbers.reduce((a, b) => a + b, 0);
|
|
933
798
|
};
|
|
934
799
|
}
|
|
935
|
-
|
|
936
|
-
;// ./src/display/xfa_text.js
|
|
937
800
|
class XfaText {
|
|
938
801
|
static textContent(xfa) {
|
|
939
802
|
const items = [];
|
|
@@ -976,8 +839,6 @@ class XfaText {
|
|
|
976
839
|
}
|
|
977
840
|
}
|
|
978
841
|
|
|
979
|
-
;// ./src/display/xfa_layer.js
|
|
980
|
-
|
|
981
842
|
let XfaLayer$1 = class XfaLayer {
|
|
982
843
|
static setupStorage(html, id, element, storage, intent) {
|
|
983
844
|
const storedData = storage.getValue(id, {
|
|
@@ -1187,8 +1048,6 @@ let XfaLayer$1 = class XfaLayer {
|
|
|
1187
1048
|
}
|
|
1188
1049
|
};
|
|
1189
1050
|
|
|
1190
|
-
;// ./src/display/display_utils.js
|
|
1191
|
-
|
|
1192
1051
|
|
|
1193
1052
|
const SVG_NS = "http://www.w3.org/2000/svg";
|
|
1194
1053
|
let PixelsPerInch$1 = class PixelsPerInch {
|
|
@@ -1359,7 +1218,7 @@ let RenderingCancelledException$1 = class RenderingCancelledException extends Ba
|
|
|
1359
1218
|
this.extraDelay = extraDelay;
|
|
1360
1219
|
}
|
|
1361
1220
|
};
|
|
1362
|
-
function isDataScheme
|
|
1221
|
+
function isDataScheme(url) {
|
|
1363
1222
|
const ii = url.length;
|
|
1364
1223
|
let i = 0;
|
|
1365
1224
|
while (i < ii && url[i].trim() === "") {
|
|
@@ -1370,7 +1229,7 @@ function isDataScheme$1(url) {
|
|
|
1370
1229
|
function isPdfFile$1(filename) {
|
|
1371
1230
|
return typeof filename === "string" && /\.pdf$/i.test(filename);
|
|
1372
1231
|
}
|
|
1373
|
-
function getFilenameFromUrl
|
|
1232
|
+
function getFilenameFromUrl(url) {
|
|
1374
1233
|
[url] = url.split(/[#?]/, 1);
|
|
1375
1234
|
return url.substring(url.lastIndexOf("/") + 1);
|
|
1376
1235
|
}
|
|
@@ -1378,7 +1237,7 @@ function getPdfFilenameFromUrl$1(url, defaultFilename = "document.pdf") {
|
|
|
1378
1237
|
if (typeof url !== "string") {
|
|
1379
1238
|
return defaultFilename;
|
|
1380
1239
|
}
|
|
1381
|
-
if (isDataScheme
|
|
1240
|
+
if (isDataScheme(url)) {
|
|
1382
1241
|
warn('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.');
|
|
1383
1242
|
return defaultFilename;
|
|
1384
1243
|
}
|
|
@@ -1490,7 +1349,7 @@ function isValidFetchUrl(url, baseUrl) {
|
|
|
1490
1349
|
const res = baseUrl ? URL.parse(url, baseUrl) : URL.parse(url);
|
|
1491
1350
|
return res?.protocol === "http:" || res?.protocol === "https:";
|
|
1492
1351
|
}
|
|
1493
|
-
function noContextMenu
|
|
1352
|
+
function noContextMenu(e) {
|
|
1494
1353
|
e.preventDefault();
|
|
1495
1354
|
}
|
|
1496
1355
|
function stopEvent$1(e) {
|
|
@@ -1500,7 +1359,7 @@ function stopEvent$1(e) {
|
|
|
1500
1359
|
function deprecated(details) {
|
|
1501
1360
|
console.log("Deprecated API usage: " + details);
|
|
1502
1361
|
}
|
|
1503
|
-
|
|
1362
|
+
class PDFDateString {
|
|
1504
1363
|
static #regex;
|
|
1505
1364
|
static toDateObject(input) {
|
|
1506
1365
|
if (input instanceof Date) {
|
|
@@ -1539,8 +1398,8 @@ let PDFDateString$1 = class PDFDateString {
|
|
|
1539
1398
|
}
|
|
1540
1399
|
return new Date(Date.UTC(year, month, day, hour, minute, second));
|
|
1541
1400
|
}
|
|
1542
|
-
}
|
|
1543
|
-
function getXfaPageViewport
|
|
1401
|
+
}
|
|
1402
|
+
function getXfaPageViewport(xfaPage, {
|
|
1544
1403
|
scale = 1,
|
|
1545
1404
|
rotation = 0
|
|
1546
1405
|
}) {
|
|
@@ -1556,7 +1415,7 @@ function getXfaPageViewport$1(xfaPage, {
|
|
|
1556
1415
|
rotation
|
|
1557
1416
|
});
|
|
1558
1417
|
}
|
|
1559
|
-
function getRGB
|
|
1418
|
+
function getRGB(color) {
|
|
1560
1419
|
if (color.startsWith("#")) {
|
|
1561
1420
|
const colorRGB = parseInt(color.slice(1), 16);
|
|
1562
1421
|
return [(colorRGB & 0xff0000) >> 16, (colorRGB & 0x00ff00) >> 8, colorRGB & 0x0000ff];
|
|
@@ -1578,7 +1437,7 @@ function getColorValues(colors) {
|
|
|
1578
1437
|
for (const name of colors.keys()) {
|
|
1579
1438
|
span.style.color = name;
|
|
1580
1439
|
const computedColor = window.getComputedStyle(span).color;
|
|
1581
|
-
colors.set(name, getRGB
|
|
1440
|
+
colors.set(name, getRGB(computedColor));
|
|
1582
1441
|
}
|
|
1583
1442
|
span.remove();
|
|
1584
1443
|
}
|
|
@@ -1675,13 +1534,13 @@ let OutputScale$1 = class OutputScale {
|
|
|
1675
1534
|
return maxPixels;
|
|
1676
1535
|
}
|
|
1677
1536
|
};
|
|
1678
|
-
const SupportedImageMimeTypes
|
|
1537
|
+
const SupportedImageMimeTypes = ["image/apng", "image/avif", "image/bmp", "image/gif", "image/jpeg", "image/png", "image/svg+xml", "image/webp", "image/x-icon"];
|
|
1679
1538
|
class ColorScheme {
|
|
1680
1539
|
static get isDarkMode() {
|
|
1681
1540
|
return shadow$1(this, "isDarkMode", !!window?.matchMedia?.("(prefers-color-scheme: dark)").matches);
|
|
1682
1541
|
}
|
|
1683
1542
|
}
|
|
1684
|
-
|
|
1543
|
+
class CSSConstants {
|
|
1685
1544
|
static get commentForegroundColor() {
|
|
1686
1545
|
const element = document.createElement("span");
|
|
1687
1546
|
element.classList.add("comment", "sidebar");
|
|
@@ -1696,10 +1555,10 @@ let CSSConstants$1 = class CSSConstants {
|
|
|
1696
1555
|
color
|
|
1697
1556
|
} = window.getComputedStyle(element);
|
|
1698
1557
|
element.remove();
|
|
1699
|
-
return shadow$1(this, "commentForegroundColor", getRGB
|
|
1558
|
+
return shadow$1(this, "commentForegroundColor", getRGB(color));
|
|
1700
1559
|
}
|
|
1701
|
-
}
|
|
1702
|
-
function applyOpacity
|
|
1560
|
+
}
|
|
1561
|
+
function applyOpacity(r, g, b, opacity) {
|
|
1703
1562
|
opacity = Math.min(Math.max(opacity ?? 1, 0), 1);
|
|
1704
1563
|
const white = 255 * (1 - opacity);
|
|
1705
1564
|
r = Math.round(r * opacity + white);
|
|
@@ -1787,7 +1646,7 @@ function contrastRatio(hsl1, hsl2, output) {
|
|
|
1787
1646
|
return lum1 > lum2 ? (lum1 + 0.05) / (lum2 + 0.05) : (lum2 + 0.05) / (lum1 + 0.05);
|
|
1788
1647
|
}
|
|
1789
1648
|
const contrastCache = new Map();
|
|
1790
|
-
function findContrastColor
|
|
1649
|
+
function findContrastColor(baseColor, fixedColor) {
|
|
1791
1650
|
const key = baseColor[0] + baseColor[1] * 0x100 + baseColor[2] * 0x10000 + fixedColor[0] * 0x1000000 + fixedColor[1] * 0x100000000 + fixedColor[2] * 0x10000000000;
|
|
1792
1651
|
let cachedValue = contrastCache.get(key);
|
|
1793
1652
|
if (cachedValue) {
|
|
@@ -1827,7 +1686,7 @@ function findContrastColor$1(baseColor, fixedColor) {
|
|
|
1827
1686
|
contrastCache.set(key, cachedValue);
|
|
1828
1687
|
return cachedValue;
|
|
1829
1688
|
}
|
|
1830
|
-
function renderRichText
|
|
1689
|
+
function renderRichText({
|
|
1831
1690
|
html,
|
|
1832
1691
|
dir,
|
|
1833
1692
|
className
|
|
@@ -1885,8 +1744,6 @@ function makePathFromDrawOPS(data) {
|
|
|
1885
1744
|
return path;
|
|
1886
1745
|
}
|
|
1887
1746
|
|
|
1888
|
-
;// ./src/display/editor/toolbar.js
|
|
1889
|
-
|
|
1890
1747
|
class EditorToolbar {
|
|
1891
1748
|
#toolbar = null;
|
|
1892
1749
|
#colorPicker = null;
|
|
@@ -1913,7 +1770,7 @@ class EditorToolbar {
|
|
|
1913
1770
|
editToolbar.setAttribute("role", "toolbar");
|
|
1914
1771
|
const signal = this.#editor._uiManager._signal;
|
|
1915
1772
|
if (signal instanceof AbortSignal && !signal.aborted) {
|
|
1916
|
-
editToolbar.addEventListener("contextmenu", noContextMenu
|
|
1773
|
+
editToolbar.addEventListener("contextmenu", noContextMenu, {
|
|
1917
1774
|
signal
|
|
1918
1775
|
});
|
|
1919
1776
|
editToolbar.addEventListener("pointerdown", EditorToolbar.#pointerDown, {
|
|
@@ -1961,7 +1818,7 @@ class EditorToolbar {
|
|
|
1961
1818
|
capture: true,
|
|
1962
1819
|
signal
|
|
1963
1820
|
});
|
|
1964
|
-
element.addEventListener("contextmenu", noContextMenu
|
|
1821
|
+
element.addEventListener("contextmenu", noContextMenu, {
|
|
1965
1822
|
signal
|
|
1966
1823
|
});
|
|
1967
1824
|
return true;
|
|
@@ -2110,7 +1967,7 @@ class FloatingToolbar {
|
|
|
2110
1967
|
editToolbar.setAttribute("role", "toolbar");
|
|
2111
1968
|
const signal = this.#uiManager._signal;
|
|
2112
1969
|
if (signal instanceof AbortSignal && !signal.aborted) {
|
|
2113
|
-
editToolbar.addEventListener("contextmenu", noContextMenu
|
|
1970
|
+
editToolbar.addEventListener("contextmenu", noContextMenu, {
|
|
2114
1971
|
signal
|
|
2115
1972
|
});
|
|
2116
1973
|
}
|
|
@@ -2174,7 +2031,7 @@ class FloatingToolbar {
|
|
|
2174
2031
|
span.setAttribute("data-l10n-id", labelL10nId);
|
|
2175
2032
|
const signal = this.#uiManager._signal;
|
|
2176
2033
|
if (signal instanceof AbortSignal && !signal.aborted) {
|
|
2177
|
-
button.addEventListener("contextmenu", noContextMenu
|
|
2034
|
+
button.addEventListener("contextmenu", noContextMenu, {
|
|
2178
2035
|
signal
|
|
2179
2036
|
});
|
|
2180
2037
|
button.addEventListener("click", clickHandler, {
|
|
@@ -2185,8 +2042,6 @@ class FloatingToolbar {
|
|
|
2185
2042
|
}
|
|
2186
2043
|
}
|
|
2187
2044
|
|
|
2188
|
-
;// ./src/display/editor/tools.js
|
|
2189
|
-
|
|
2190
2045
|
|
|
2191
2046
|
|
|
2192
2047
|
function bindEvents(obj, element, names) {
|
|
@@ -2249,7 +2104,7 @@ class IdManager {
|
|
|
2249
2104
|
}
|
|
2250
2105
|
}
|
|
2251
2106
|
class ImageManager {
|
|
2252
|
-
#baseId = getUuid
|
|
2107
|
+
#baseId = getUuid();
|
|
2253
2108
|
#id = 0;
|
|
2254
2109
|
#cache = null;
|
|
2255
2110
|
static get _isSVGFittingCanvas() {
|
|
@@ -2599,7 +2454,7 @@ class ColorManager {
|
|
|
2599
2454
|
return shadow$1(this, "_colors", colors);
|
|
2600
2455
|
}
|
|
2601
2456
|
convert(color) {
|
|
2602
|
-
const rgb = getRGB
|
|
2457
|
+
const rgb = getRGB(color);
|
|
2603
2458
|
if (!window.matchMedia("(forced-colors: active)").matches) {
|
|
2604
2459
|
return rgb;
|
|
2605
2460
|
}
|
|
@@ -3478,7 +3333,7 @@ let AnnotationEditorUIManager$1 = class AnnotationEditorUIManager {
|
|
|
3478
3333
|
details: Object.assign(this.#previousStates, details)
|
|
3479
3334
|
});
|
|
3480
3335
|
if (this.#mode === AnnotationEditorType$1.HIGHLIGHT && details.hasSelectedEditor === false) {
|
|
3481
|
-
this.#dispatchUpdateUI([[AnnotationEditorParamsType
|
|
3336
|
+
this.#dispatchUpdateUI([[AnnotationEditorParamsType.HIGHLIGHT_FREE, true]]);
|
|
3482
3337
|
}
|
|
3483
3338
|
}
|
|
3484
3339
|
}
|
|
@@ -3651,10 +3506,10 @@ let AnnotationEditorUIManager$1 = class AnnotationEditorUIManager {
|
|
|
3651
3506
|
return;
|
|
3652
3507
|
}
|
|
3653
3508
|
switch (type) {
|
|
3654
|
-
case AnnotationEditorParamsType
|
|
3509
|
+
case AnnotationEditorParamsType.CREATE:
|
|
3655
3510
|
this.currentLayer.addNewEditor(value);
|
|
3656
3511
|
return;
|
|
3657
|
-
case AnnotationEditorParamsType
|
|
3512
|
+
case AnnotationEditorParamsType.HIGHLIGHT_SHOW_ALL:
|
|
3658
3513
|
this._eventBus.dispatch("reporttelemetry", {
|
|
3659
3514
|
source: this,
|
|
3660
3515
|
details: {
|
|
@@ -3685,9 +3540,9 @@ let AnnotationEditorUIManager$1 = class AnnotationEditorUIManager {
|
|
|
3685
3540
|
editor.show(visible);
|
|
3686
3541
|
}
|
|
3687
3542
|
}
|
|
3688
|
-
const state = this.#showAllStates?.get(AnnotationEditorParamsType
|
|
3543
|
+
const state = this.#showAllStates?.get(AnnotationEditorParamsType.HIGHLIGHT_SHOW_ALL) ?? true;
|
|
3689
3544
|
if (state !== visible) {
|
|
3690
|
-
this.#dispatchUpdateUI([[AnnotationEditorParamsType
|
|
3545
|
+
this.#dispatchUpdateUI([[AnnotationEditorParamsType.HIGHLIGHT_SHOW_ALL, visible]]);
|
|
3691
3546
|
}
|
|
3692
3547
|
}
|
|
3693
3548
|
enableWaiting(mustWait = false) {
|
|
@@ -4237,8 +4092,6 @@ let AnnotationEditorUIManager$1 = class AnnotationEditorUIManager {
|
|
|
4237
4092
|
}
|
|
4238
4093
|
};
|
|
4239
4094
|
|
|
4240
|
-
;// ./src/display/editor/alt_text.js
|
|
4241
|
-
|
|
4242
4095
|
class AltText {
|
|
4243
4096
|
#altText = null;
|
|
4244
4097
|
#altTextDecorative = false;
|
|
@@ -4284,7 +4137,7 @@ class AltText {
|
|
|
4284
4137
|
label.setAttribute("data-l10n-id", "pdfjs-editor-alt-text-button-label");
|
|
4285
4138
|
}
|
|
4286
4139
|
const signal = this.#editor._uiManager._signal;
|
|
4287
|
-
altText.addEventListener("contextmenu", noContextMenu
|
|
4140
|
+
altText.addEventListener("contextmenu", noContextMenu, {
|
|
4288
4141
|
signal
|
|
4289
4142
|
});
|
|
4290
4143
|
altText.addEventListener("pointerdown", event => event.stopPropagation(), {
|
|
@@ -4502,8 +4355,6 @@ class AltText {
|
|
|
4502
4355
|
}
|
|
4503
4356
|
}
|
|
4504
4357
|
|
|
4505
|
-
;// ./src/display/editor/comment.js
|
|
4506
|
-
|
|
4507
4358
|
class Comment {
|
|
4508
4359
|
#commentStandaloneButton = null;
|
|
4509
4360
|
#commentToolbarButton = null;
|
|
@@ -4619,7 +4470,7 @@ class Comment {
|
|
|
4619
4470
|
if (!(signal instanceof AbortSignal) || signal.aborted) {
|
|
4620
4471
|
return comment;
|
|
4621
4472
|
}
|
|
4622
|
-
comment.addEventListener("contextmenu", noContextMenu
|
|
4473
|
+
comment.addEventListener("contextmenu", noContextMenu, {
|
|
4623
4474
|
signal
|
|
4624
4475
|
});
|
|
4625
4476
|
if (isStandalone) {
|
|
@@ -4764,9 +4615,7 @@ class Comment {
|
|
|
4764
4615
|
}
|
|
4765
4616
|
}
|
|
4766
4617
|
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
let TouchManager$1 = class TouchManager {
|
|
4618
|
+
class TouchManager {
|
|
4770
4619
|
#container;
|
|
4771
4620
|
#isPinching = false;
|
|
4772
4621
|
#isPinchingStopped = null;
|
|
@@ -4938,9 +4787,7 @@ let TouchManager$1 = class TouchManager {
|
|
|
4938
4787
|
this.#pointerDownAC?.abort();
|
|
4939
4788
|
this.#pointerDownAC = null;
|
|
4940
4789
|
}
|
|
4941
|
-
}
|
|
4942
|
-
|
|
4943
|
-
;// ./src/display/editor/editor.js
|
|
4790
|
+
}
|
|
4944
4791
|
|
|
4945
4792
|
|
|
4946
4793
|
|
|
@@ -5420,7 +5267,7 @@ class AnnotationEditor {
|
|
|
5420
5267
|
div.addEventListener("pointerdown", this.#resizerPointerdown.bind(this, name), {
|
|
5421
5268
|
signal
|
|
5422
5269
|
});
|
|
5423
|
-
div.addEventListener("contextmenu", noContextMenu
|
|
5270
|
+
div.addEventListener("contextmenu", noContextMenu, {
|
|
5424
5271
|
signal
|
|
5425
5272
|
});
|
|
5426
5273
|
div.tabIndex = -1;
|
|
@@ -5451,7 +5298,7 @@ class AnnotationEditor {
|
|
|
5451
5298
|
passive: false,
|
|
5452
5299
|
signal
|
|
5453
5300
|
});
|
|
5454
|
-
window.addEventListener("contextmenu", noContextMenu
|
|
5301
|
+
window.addEventListener("contextmenu", noContextMenu, {
|
|
5455
5302
|
signal
|
|
5456
5303
|
});
|
|
5457
5304
|
this.#savedDimensions = {
|
|
@@ -5853,7 +5700,7 @@ class AnnotationEditor {
|
|
|
5853
5700
|
this.translate(tx, ty);
|
|
5854
5701
|
bindEvents(this, div, ["keydown", "pointerdown", "dblclick"]);
|
|
5855
5702
|
if (this.isResizable && this._uiManager._supportsPinchToZoom) {
|
|
5856
|
-
this.#touchManager ||= new TouchManager
|
|
5703
|
+
this.#touchManager ||= new TouchManager({
|
|
5857
5704
|
container: div,
|
|
5858
5705
|
isPinchingDisabled: () => !this.isSelected,
|
|
5859
5706
|
onPinchStart: this.#touchPinchStartCallback.bind(this),
|
|
@@ -6592,8 +6439,6 @@ class FakeEditor extends AnnotationEditor {
|
|
|
6592
6439
|
return this.serializeDeleted();
|
|
6593
6440
|
}
|
|
6594
6441
|
}
|
|
6595
|
-
|
|
6596
|
-
;// ./src/shared/murmurhash3.js
|
|
6597
6442
|
const SEED = 0xc3d2e1f0;
|
|
6598
6443
|
const MASK_HIGH = 0xffff0000;
|
|
6599
6444
|
const MASK_LOW = 0xffff;
|
|
@@ -6686,8 +6531,6 @@ class MurmurHash3_64 {
|
|
|
6686
6531
|
}
|
|
6687
6532
|
}
|
|
6688
6533
|
|
|
6689
|
-
;// ./src/display/annotation_storage.js
|
|
6690
|
-
|
|
6691
6534
|
|
|
6692
6535
|
|
|
6693
6536
|
const SerializableEmpty = Object.freeze({
|
|
@@ -6944,8 +6787,6 @@ class PrintAnnotationStorage extends AnnotationStorage {
|
|
|
6944
6787
|
}
|
|
6945
6788
|
}
|
|
6946
6789
|
|
|
6947
|
-
;// ./src/display/font_loader.js
|
|
6948
|
-
|
|
6949
6790
|
|
|
6950
6791
|
class FontLoader {
|
|
6951
6792
|
#systemFonts = new Set();
|
|
@@ -7293,8 +7134,6 @@ class FontFaceObject {
|
|
|
7293
7134
|
}
|
|
7294
7135
|
}
|
|
7295
7136
|
|
|
7296
|
-
;// ./src/shared/obj-bin-transform.js
|
|
7297
|
-
|
|
7298
7137
|
class CssFontInfo {
|
|
7299
7138
|
#buffer;
|
|
7300
7139
|
#view;
|
|
@@ -7947,8 +7786,6 @@ class PatternInfo {
|
|
|
7947
7786
|
}
|
|
7948
7787
|
}
|
|
7949
7788
|
|
|
7950
|
-
;// ./src/display/api_utils.js
|
|
7951
|
-
|
|
7952
7789
|
function getUrlProp(val) {
|
|
7953
7790
|
if (val instanceof URL) {
|
|
7954
7791
|
return val.href;
|
|
@@ -8035,8 +7872,6 @@ class LoopbackPort {
|
|
|
8035
7872
|
}
|
|
8036
7873
|
}
|
|
8037
7874
|
|
|
8038
|
-
;// ./src/shared/message_handler.js
|
|
8039
|
-
|
|
8040
7875
|
const CallbackKind = {
|
|
8041
7876
|
DATA: 1,
|
|
8042
7877
|
ERROR: 2
|
|
@@ -8053,7 +7888,7 @@ const StreamKind = {
|
|
|
8053
7888
|
};
|
|
8054
7889
|
function onFn() {}
|
|
8055
7890
|
function wrapReason(ex) {
|
|
8056
|
-
if (ex instanceof AbortException$1 || ex instanceof InvalidPDFException
|
|
7891
|
+
if (ex instanceof AbortException$1 || ex instanceof InvalidPDFException || ex instanceof PasswordException || ex instanceof ResponseException || ex instanceof UnknownErrorException) {
|
|
8057
7892
|
return ex;
|
|
8058
7893
|
}
|
|
8059
7894
|
if (!(ex instanceof Error || typeof ex === "object" && ex !== null)) {
|
|
@@ -8063,11 +7898,11 @@ function wrapReason(ex) {
|
|
|
8063
7898
|
case "AbortException":
|
|
8064
7899
|
return new AbortException$1(ex.message);
|
|
8065
7900
|
case "InvalidPDFException":
|
|
8066
|
-
return new InvalidPDFException
|
|
7901
|
+
return new InvalidPDFException(ex.message);
|
|
8067
7902
|
case "PasswordException":
|
|
8068
7903
|
return new PasswordException(ex.message, ex.code);
|
|
8069
7904
|
case "ResponseException":
|
|
8070
|
-
return new ResponseException
|
|
7905
|
+
return new ResponseException(ex.message, ex.status, ex.missing);
|
|
8071
7906
|
case "UnknownErrorException":
|
|
8072
7907
|
return new UnknownErrorException(ex.message, ex.details);
|
|
8073
7908
|
}
|
|
@@ -8438,8 +8273,6 @@ class MessageHandler {
|
|
|
8438
8273
|
}
|
|
8439
8274
|
}
|
|
8440
8275
|
|
|
8441
|
-
;// ./src/display/canvas_factory.js
|
|
8442
|
-
|
|
8443
8276
|
class BaseCanvasFactory {
|
|
8444
8277
|
#enableHWA = false;
|
|
8445
8278
|
constructor({
|
|
@@ -8500,8 +8333,6 @@ class DOMCanvasFactory extends BaseCanvasFactory {
|
|
|
8500
8333
|
}
|
|
8501
8334
|
}
|
|
8502
8335
|
|
|
8503
|
-
;// ./src/display/cmap_reader_factory.js
|
|
8504
|
-
|
|
8505
8336
|
|
|
8506
8337
|
class BaseCMapReaderFactory {
|
|
8507
8338
|
constructor({
|
|
@@ -8539,8 +8370,6 @@ class DOMCMapReaderFactory extends BaseCMapReaderFactory {
|
|
|
8539
8370
|
}
|
|
8540
8371
|
}
|
|
8541
8372
|
|
|
8542
|
-
;// ./src/display/filter_factory.js
|
|
8543
|
-
|
|
8544
8373
|
|
|
8545
8374
|
class BaseFilterFactory {
|
|
8546
8375
|
addFilter(maps) {
|
|
@@ -8630,7 +8459,7 @@ class DOMFilterFactory extends BaseFilterFactory {
|
|
|
8630
8459
|
this.#baseUrl = "";
|
|
8631
8460
|
const url = this.#document.URL;
|
|
8632
8461
|
if (url !== this.#document.baseURI) {
|
|
8633
|
-
if (isDataScheme
|
|
8462
|
+
if (isDataScheme(url)) {
|
|
8634
8463
|
warn('#createUrl: ignore "data:"-URL for performance reasons.');
|
|
8635
8464
|
} else {
|
|
8636
8465
|
this.#baseUrl = updateUrlHash$1(url, "");
|
|
@@ -8871,12 +8700,10 @@ class DOMFilterFactory extends BaseFilterFactory {
|
|
|
8871
8700
|
}
|
|
8872
8701
|
#getRGB(color) {
|
|
8873
8702
|
this.#defs.style.color = color;
|
|
8874
|
-
return getRGB
|
|
8703
|
+
return getRGB(getComputedStyle(this.#defs).getPropertyValue("color"));
|
|
8875
8704
|
}
|
|
8876
8705
|
}
|
|
8877
8706
|
|
|
8878
|
-
;// ./src/display/standard_fontdata_factory.js
|
|
8879
|
-
|
|
8880
8707
|
|
|
8881
8708
|
class BaseStandardFontDataFactory {
|
|
8882
8709
|
constructor({
|
|
@@ -8909,8 +8736,6 @@ class DOMStandardFontDataFactory extends BaseStandardFontDataFactory {
|
|
|
8909
8736
|
}
|
|
8910
8737
|
}
|
|
8911
8738
|
|
|
8912
|
-
;// ./src/display/wasm_factory.js
|
|
8913
|
-
|
|
8914
8739
|
|
|
8915
8740
|
class BaseWasmFactory {
|
|
8916
8741
|
constructor({
|
|
@@ -8943,8 +8768,6 @@ class DOMWasmFactory extends BaseWasmFactory {
|
|
|
8943
8768
|
}
|
|
8944
8769
|
}
|
|
8945
8770
|
|
|
8946
|
-
;// ./src/display/node_utils.js
|
|
8947
|
-
|
|
8948
8771
|
|
|
8949
8772
|
|
|
8950
8773
|
|
|
@@ -8982,8 +8805,6 @@ class NodeWasmFactory extends BaseWasmFactory {
|
|
|
8982
8805
|
}
|
|
8983
8806
|
}
|
|
8984
8807
|
|
|
8985
|
-
;// ./src/display/canvas_dependency_tracker.js
|
|
8986
|
-
|
|
8987
8808
|
const FORCED_DEPENDENCY_LABEL = "__forcedDependency";
|
|
8988
8809
|
const {
|
|
8989
8810
|
floor,
|
|
@@ -9549,8 +9370,6 @@ const Dependencies = {
|
|
|
9549
9370
|
transformAndFill: ["transform", "fillColor"]
|
|
9550
9371
|
};
|
|
9551
9372
|
|
|
9552
|
-
;// ./src/display/pattern_helper.js
|
|
9553
|
-
|
|
9554
9373
|
|
|
9555
9374
|
const PathType = {
|
|
9556
9375
|
FILL: "Fill",
|
|
@@ -10040,18 +9859,6 @@ class TilingPattern {
|
|
|
10040
9859
|
return pattern;
|
|
10041
9860
|
}
|
|
10042
9861
|
}
|
|
10043
|
-
|
|
10044
|
-
;// ./src/shared/image_utils.js
|
|
10045
|
-
|
|
10046
|
-
function convertToRGBA(params) {
|
|
10047
|
-
switch (params.kind) {
|
|
10048
|
-
case ImageKind.GRAYSCALE_1BPP:
|
|
10049
|
-
return convertBlackAndWhiteToRGBA(params);
|
|
10050
|
-
case ImageKind.RGB_24BPP:
|
|
10051
|
-
return convertRGBToRGBA(params);
|
|
10052
|
-
}
|
|
10053
|
-
return null;
|
|
10054
|
-
}
|
|
10055
9862
|
function convertBlackAndWhiteToRGBA({
|
|
10056
9863
|
src,
|
|
10057
9864
|
srcPos = 0,
|
|
@@ -10093,63 +9900,6 @@ function convertBlackAndWhiteToRGBA({
|
|
|
10093
9900
|
destPos
|
|
10094
9901
|
};
|
|
10095
9902
|
}
|
|
10096
|
-
function convertRGBToRGBA({
|
|
10097
|
-
src,
|
|
10098
|
-
srcPos = 0,
|
|
10099
|
-
dest,
|
|
10100
|
-
destPos = 0,
|
|
10101
|
-
width,
|
|
10102
|
-
height
|
|
10103
|
-
}) {
|
|
10104
|
-
let i = 0;
|
|
10105
|
-
const len = width * height * 3;
|
|
10106
|
-
const len32 = len >> 2;
|
|
10107
|
-
const src32 = new Uint32Array(src.buffer, srcPos, len32);
|
|
10108
|
-
if (FeatureTest.isLittleEndian) {
|
|
10109
|
-
for (; i < len32 - 2; i += 3, destPos += 4) {
|
|
10110
|
-
const s1 = src32[i];
|
|
10111
|
-
const s2 = src32[i + 1];
|
|
10112
|
-
const s3 = src32[i + 2];
|
|
10113
|
-
dest[destPos] = s1 | 0xff000000;
|
|
10114
|
-
dest[destPos + 1] = s1 >>> 24 | s2 << 8 | 0xff000000;
|
|
10115
|
-
dest[destPos + 2] = s2 >>> 16 | s3 << 16 | 0xff000000;
|
|
10116
|
-
dest[destPos + 3] = s3 >>> 8 | 0xff000000;
|
|
10117
|
-
}
|
|
10118
|
-
for (let j = i * 4, jj = srcPos + len; j < jj; j += 3) {
|
|
10119
|
-
dest[destPos++] = src[j] | src[j + 1] << 8 | src[j + 2] << 16 | 0xff000000;
|
|
10120
|
-
}
|
|
10121
|
-
} else {
|
|
10122
|
-
for (; i < len32 - 2; i += 3, destPos += 4) {
|
|
10123
|
-
const s1 = src32[i];
|
|
10124
|
-
const s2 = src32[i + 1];
|
|
10125
|
-
const s3 = src32[i + 2];
|
|
10126
|
-
dest[destPos] = s1 | 0xff;
|
|
10127
|
-
dest[destPos + 1] = s1 << 24 | s2 >>> 8 | 0xff;
|
|
10128
|
-
dest[destPos + 2] = s2 << 16 | s3 >>> 16 | 0xff;
|
|
10129
|
-
dest[destPos + 3] = s3 << 8 | 0xff;
|
|
10130
|
-
}
|
|
10131
|
-
for (let j = i * 4, jj = srcPos + len; j < jj; j += 3) {
|
|
10132
|
-
dest[destPos++] = src[j] << 24 | src[j + 1] << 16 | src[j + 2] << 8 | 0xff;
|
|
10133
|
-
}
|
|
10134
|
-
}
|
|
10135
|
-
return {
|
|
10136
|
-
srcPos: srcPos + len,
|
|
10137
|
-
destPos
|
|
10138
|
-
};
|
|
10139
|
-
}
|
|
10140
|
-
function grayToRGBA(src, dest) {
|
|
10141
|
-
if (FeatureTest.isLittleEndian) {
|
|
10142
|
-
for (let i = 0, ii = src.length; i < ii; i++) {
|
|
10143
|
-
dest[i] = src[i] * 0x10101 | 0xff000000;
|
|
10144
|
-
}
|
|
10145
|
-
} else {
|
|
10146
|
-
for (let i = 0, ii = src.length; i < ii; i++) {
|
|
10147
|
-
dest[i] = src[i] * 0x1010100 | 0x000000ff;
|
|
10148
|
-
}
|
|
10149
|
-
}
|
|
10150
|
-
}
|
|
10151
|
-
|
|
10152
|
-
;// ./src/display/canvas.js
|
|
10153
9903
|
|
|
10154
9904
|
|
|
10155
9905
|
|
|
@@ -10421,7 +10171,7 @@ function putBinaryImageData(ctx, imgData) {
|
|
|
10421
10171
|
const srcDiff = srcLength - srcPos;
|
|
10422
10172
|
let k = 0;
|
|
10423
10173
|
const kEnd = srcDiff > fullSrcDiff ? width : srcDiff * 8 - 7;
|
|
10424
|
-
const kEndUnrolled = kEnd &
|
|
10174
|
+
const kEndUnrolled = kEnd & -8;
|
|
10425
10175
|
let mask = 0;
|
|
10426
10176
|
let srcByte = 0;
|
|
10427
10177
|
for (; k < kEndUnrolled; k += 8) {
|
|
@@ -10657,7 +10407,7 @@ class CanvasGraphics {
|
|
|
10657
10407
|
if (!operationsFilter || operationsFilter(i)) {
|
|
10658
10408
|
fnId = fnArray[i];
|
|
10659
10409
|
fnArgs = argsArray[i] ?? null;
|
|
10660
|
-
if (fnId !== OPS
|
|
10410
|
+
if (fnId !== OPS.dependency) {
|
|
10661
10411
|
if (fnArgs === null) {
|
|
10662
10412
|
this[fnId](i);
|
|
10663
10413
|
} else {
|
|
@@ -11073,7 +10823,7 @@ class CanvasGraphics {
|
|
|
11073
10823
|
return;
|
|
11074
10824
|
}
|
|
11075
10825
|
if (this.dependencyTracker !== null) {
|
|
11076
|
-
const outerExtraSize = op === OPS
|
|
10826
|
+
const outerExtraSize = op === OPS.stroke ? this.current.lineWidth / 2 : 0;
|
|
11077
10827
|
this.dependencyTracker.resetBBox(opIdx).recordBBox(opIdx, this.ctx, minMax[0] - outerExtraSize, minMax[2] + outerExtraSize, minMax[1] - outerExtraSize, minMax[3] + outerExtraSize).recordDependencies(opIdx, ["transform"]);
|
|
11078
10828
|
}
|
|
11079
10829
|
if (!(path instanceof Path2D)) {
|
|
@@ -12262,14 +12012,12 @@ class CanvasGraphics {
|
|
|
12262
12012
|
return true;
|
|
12263
12013
|
}
|
|
12264
12014
|
}
|
|
12265
|
-
for (const op in OPS
|
|
12015
|
+
for (const op in OPS) {
|
|
12266
12016
|
if (CanvasGraphics.prototype[op] !== undefined) {
|
|
12267
|
-
CanvasGraphics.prototype[OPS
|
|
12017
|
+
CanvasGraphics.prototype[OPS[op]] = CanvasGraphics.prototype[op];
|
|
12268
12018
|
}
|
|
12269
12019
|
}
|
|
12270
|
-
|
|
12271
|
-
;// ./src/display/worker_options.js
|
|
12272
|
-
let GlobalWorkerOptions$1 = class GlobalWorkerOptions {
|
|
12020
|
+
class GlobalWorkerOptions {
|
|
12273
12021
|
static #port = null;
|
|
12274
12022
|
static #src = "";
|
|
12275
12023
|
static get workerPort() {
|
|
@@ -12290,9 +12038,7 @@ let GlobalWorkerOptions$1 = class GlobalWorkerOptions {
|
|
|
12290
12038
|
}
|
|
12291
12039
|
this.#src = val;
|
|
12292
12040
|
}
|
|
12293
|
-
}
|
|
12294
|
-
|
|
12295
|
-
;// ./src/display/metadata.js
|
|
12041
|
+
}
|
|
12296
12042
|
class Metadata {
|
|
12297
12043
|
#map;
|
|
12298
12044
|
#data;
|
|
@@ -12314,8 +12060,6 @@ class Metadata {
|
|
|
12314
12060
|
}
|
|
12315
12061
|
}
|
|
12316
12062
|
|
|
12317
|
-
;// ./src/display/optional_content_config.js
|
|
12318
|
-
|
|
12319
12063
|
|
|
12320
12064
|
const INTERNAL = Symbol("INTERNAL");
|
|
12321
12065
|
class OptionalContentGroup {
|
|
@@ -12577,8 +12321,6 @@ class OptionalContentConfig {
|
|
|
12577
12321
|
}
|
|
12578
12322
|
}
|
|
12579
12323
|
|
|
12580
|
-
;// ./src/display/transport_stream.js
|
|
12581
|
-
|
|
12582
12324
|
|
|
12583
12325
|
class PDFDataTransportStream {
|
|
12584
12326
|
constructor(pdfDataRangeTransport, {
|
|
@@ -12845,8 +12587,6 @@ class PDFDataTransportStreamRangeReader {
|
|
|
12845
12587
|
}
|
|
12846
12588
|
}
|
|
12847
12589
|
|
|
12848
|
-
;// ./src/display/content_disposition.js
|
|
12849
|
-
|
|
12850
12590
|
function getFilenameFromContentDispositionHeader(contentDisposition) {
|
|
12851
12591
|
let needsEncodingFixup = true;
|
|
12852
12592
|
let tmp = toParamRegExp("filename\\*", "i").exec(contentDisposition);
|
|
@@ -12976,8 +12716,6 @@ function getFilenameFromContentDispositionHeader(contentDisposition) {
|
|
|
12976
12716
|
return "";
|
|
12977
12717
|
}
|
|
12978
12718
|
|
|
12979
|
-
;// ./src/display/network_utils.js
|
|
12980
|
-
|
|
12981
12719
|
|
|
12982
12720
|
|
|
12983
12721
|
function createHeaders(isHttp, httpHeaders) {
|
|
@@ -13043,14 +12781,12 @@ function extractFilenameFromHeader(responseHeaders) {
|
|
|
13043
12781
|
return null;
|
|
13044
12782
|
}
|
|
13045
12783
|
function createResponseError(status, url) {
|
|
13046
|
-
return new ResponseException
|
|
12784
|
+
return new ResponseException(`Unexpected server response (${status}) while retrieving PDF "${url}".`, status, status === 404 || status === 0 && url.startsWith("file:"));
|
|
13047
12785
|
}
|
|
13048
12786
|
function validateResponseStatus(status) {
|
|
13049
12787
|
return status === 200 || status === 206;
|
|
13050
12788
|
}
|
|
13051
12789
|
|
|
13052
|
-
;// ./src/display/fetch_stream.js
|
|
13053
|
-
|
|
13054
12790
|
|
|
13055
12791
|
function createFetchOptions(headers, withCredentials, abortController) {
|
|
13056
12792
|
return {
|
|
@@ -13248,8 +12984,6 @@ class PDFFetchStreamRangeReader {
|
|
|
13248
12984
|
}
|
|
13249
12985
|
}
|
|
13250
12986
|
|
|
13251
|
-
;// ./src/display/network.js
|
|
13252
|
-
|
|
13253
12987
|
|
|
13254
12988
|
const OK_RESPONSE = 200;
|
|
13255
12989
|
const PARTIAL_CONTENT_RESPONSE = 206;
|
|
@@ -13657,8 +13391,6 @@ class PDFNetworkStreamRangeRequestReader {
|
|
|
13657
13391
|
}
|
|
13658
13392
|
}
|
|
13659
13393
|
|
|
13660
|
-
;// ./src/display/node_stream.js
|
|
13661
|
-
|
|
13662
13394
|
|
|
13663
13395
|
const urlRegex = /^[a-z][a-z0-9\-+.]+:/i;
|
|
13664
13396
|
function parseUrlOrPath(sourceUrl) {
|
|
@@ -13881,8 +13613,6 @@ class PDFNodeStreamFsRangeReader {
|
|
|
13881
13613
|
}
|
|
13882
13614
|
}
|
|
13883
13615
|
}
|
|
13884
|
-
|
|
13885
|
-
;// ./src/display/pdf_objects.js
|
|
13886
13616
|
const INITIAL_DATA = Symbol("INITIAL_DATA");
|
|
13887
13617
|
class PDFObjects {
|
|
13888
13618
|
#objs = Object.create(null);
|
|
@@ -13943,8 +13673,6 @@ class PDFObjects {
|
|
|
13943
13673
|
}
|
|
13944
13674
|
}
|
|
13945
13675
|
|
|
13946
|
-
;// ./src/display/text_layer.js
|
|
13947
|
-
|
|
13948
13676
|
|
|
13949
13677
|
const MAX_TEXT_DIVS_TO_RENDER = 100000;
|
|
13950
13678
|
const DEFAULT_FONT_SIZE = 30;
|
|
@@ -14308,8 +14036,6 @@ let TextLayer$1 = class TextLayer {
|
|
|
14308
14036
|
}
|
|
14309
14037
|
};
|
|
14310
14038
|
|
|
14311
|
-
;// ./src/display/api.js
|
|
14312
|
-
|
|
14313
14039
|
|
|
14314
14040
|
|
|
14315
14041
|
|
|
@@ -14335,7 +14061,7 @@ let TextLayer$1 = class TextLayer {
|
|
|
14335
14061
|
|
|
14336
14062
|
|
|
14337
14063
|
const RENDERING_CANCELLED_TIMEOUT = 100;
|
|
14338
|
-
function getDocument
|
|
14064
|
+
function getDocument(src = {}) {
|
|
14339
14065
|
if (typeof src === "string" || src instanceof URL) {
|
|
14340
14066
|
src = {
|
|
14341
14067
|
url: src
|
|
@@ -14354,11 +14080,11 @@ function getDocument$1(src = {}) {
|
|
|
14354
14080
|
const httpHeaders = src.httpHeaders || null;
|
|
14355
14081
|
const withCredentials = src.withCredentials === true;
|
|
14356
14082
|
const password = src.password ?? null;
|
|
14357
|
-
const rangeTransport = src.range instanceof PDFDataRangeTransport
|
|
14083
|
+
const rangeTransport = src.range instanceof PDFDataRangeTransport ? src.range : null;
|
|
14358
14084
|
const rangeChunkSize = Number.isInteger(src.rangeChunkSize) && src.rangeChunkSize > 0 ? src.rangeChunkSize : 2 ** 16;
|
|
14359
|
-
let worker = src.worker instanceof PDFWorker
|
|
14085
|
+
let worker = src.worker instanceof PDFWorker ? src.worker : null;
|
|
14360
14086
|
const verbosity = src.verbosity;
|
|
14361
|
-
const docBaseUrl = typeof src.docBaseUrl === "string" && !isDataScheme
|
|
14087
|
+
const docBaseUrl = typeof src.docBaseUrl === "string" && !isDataScheme(src.docBaseUrl) ? src.docBaseUrl : null;
|
|
14362
14088
|
const cMapUrl = getFactoryUrlProp(src.cMapUrl);
|
|
14363
14089
|
const cMapPacked = src.cMapPacked !== false;
|
|
14364
14090
|
const CMapReaderFactory = src.CMapReaderFactory || (isNodeJS ? NodeCMapReaderFactory : DOMCMapReaderFactory);
|
|
@@ -14411,9 +14137,9 @@ function getDocument$1(src = {}) {
|
|
|
14411
14137
|
})
|
|
14412
14138
|
};
|
|
14413
14139
|
if (!worker) {
|
|
14414
|
-
worker = PDFWorker
|
|
14140
|
+
worker = PDFWorker.create({
|
|
14415
14141
|
verbosity,
|
|
14416
|
-
port: GlobalWorkerOptions
|
|
14142
|
+
port: GlobalWorkerOptions.workerPort
|
|
14417
14143
|
});
|
|
14418
14144
|
task._worker = worker;
|
|
14419
14145
|
}
|
|
@@ -14531,7 +14257,7 @@ class PDFDocumentLoadingTask {
|
|
|
14531
14257
|
return this._transport.getData();
|
|
14532
14258
|
}
|
|
14533
14259
|
}
|
|
14534
|
-
|
|
14260
|
+
class PDFDataRangeTransport {
|
|
14535
14261
|
#capability = Promise.withResolvers();
|
|
14536
14262
|
#progressiveDoneListeners = [];
|
|
14537
14263
|
#progressiveReadListeners = [];
|
|
@@ -14588,7 +14314,7 @@ let PDFDataRangeTransport$1 = class PDFDataRangeTransport {
|
|
|
14588
14314
|
unreachable("Abstract method PDFDataRangeTransport.requestDataRange");
|
|
14589
14315
|
}
|
|
14590
14316
|
abort() {}
|
|
14591
|
-
}
|
|
14317
|
+
}
|
|
14592
14318
|
class PDFDocumentProxy {
|
|
14593
14319
|
constructor(pdfInfo, transport) {
|
|
14594
14320
|
this._pdfInfo = pdfInfo;
|
|
@@ -15155,7 +14881,7 @@ class PDFPageProxy {
|
|
|
15155
14881
|
return this._stats;
|
|
15156
14882
|
}
|
|
15157
14883
|
}
|
|
15158
|
-
|
|
14884
|
+
class PDFWorker {
|
|
15159
14885
|
#capability = Promise.withResolvers();
|
|
15160
14886
|
#messageHandler = null;
|
|
15161
14887
|
#port = null;
|
|
@@ -15166,7 +14892,7 @@ let PDFWorker$1 = class PDFWorker {
|
|
|
15166
14892
|
static {
|
|
15167
14893
|
if (isNodeJS) {
|
|
15168
14894
|
this.#isWorkerDisabled = true;
|
|
15169
|
-
GlobalWorkerOptions
|
|
14895
|
+
GlobalWorkerOptions.workerSrc ||= "./pdf.worker.mjs";
|
|
15170
14896
|
}
|
|
15171
14897
|
this._isSameOrigin = (baseUrl, otherUrl) => {
|
|
15172
14898
|
const base = URL.parse(baseUrl);
|
|
@@ -15338,8 +15064,8 @@ let PDFWorker$1 = class PDFWorker {
|
|
|
15338
15064
|
return new PDFWorker(params);
|
|
15339
15065
|
}
|
|
15340
15066
|
static get workerSrc() {
|
|
15341
|
-
if (GlobalWorkerOptions
|
|
15342
|
-
return GlobalWorkerOptions
|
|
15067
|
+
if (GlobalWorkerOptions.workerSrc) {
|
|
15068
|
+
return GlobalWorkerOptions.workerSrc;
|
|
15343
15069
|
}
|
|
15344
15070
|
throw new Error('No "GlobalWorkerOptions.workerSrc" specified.');
|
|
15345
15071
|
}
|
|
@@ -15363,7 +15089,7 @@ let PDFWorker$1 = class PDFWorker {
|
|
|
15363
15089
|
};
|
|
15364
15090
|
return shadow$1(this, "_setupFakeWorkerGlobal", loader());
|
|
15365
15091
|
}
|
|
15366
|
-
}
|
|
15092
|
+
}
|
|
15367
15093
|
class WorkerTransport {
|
|
15368
15094
|
#methodPromises = new Map();
|
|
15369
15095
|
#pageCache = new Map();
|
|
@@ -16085,13 +15811,11 @@ class InternalRenderTask {
|
|
|
16085
15811
|
}
|
|
16086
15812
|
}
|
|
16087
15813
|
const version$1 = "5.4.449";
|
|
16088
|
-
const build
|
|
16089
|
-
|
|
16090
|
-
;// ./src/display/editor/color_picker.js
|
|
15814
|
+
const build = "f44e5f0e6";
|
|
16091
15815
|
|
|
16092
15816
|
|
|
16093
15817
|
|
|
16094
|
-
|
|
15818
|
+
class ColorPicker {
|
|
16095
15819
|
#button = null;
|
|
16096
15820
|
#buttonSwatch = null;
|
|
16097
15821
|
#defaultColor;
|
|
@@ -16159,7 +15883,7 @@ let ColorPicker$1 = class ColorPicker {
|
|
|
16159
15883
|
#getDropdownRoot() {
|
|
16160
15884
|
const div = document.createElement("div");
|
|
16161
15885
|
const signal = this.#uiManager._signal;
|
|
16162
|
-
div.addEventListener("contextmenu", noContextMenu
|
|
15886
|
+
div.addEventListener("contextmenu", noContextMenu, {
|
|
16163
15887
|
signal
|
|
16164
15888
|
});
|
|
16165
15889
|
div.className = "dropdown";
|
|
@@ -16196,7 +15920,7 @@ let ColorPicker$1 = class ColorPicker {
|
|
|
16196
15920
|
event.stopPropagation();
|
|
16197
15921
|
this.#eventBus.dispatch("switchannotationeditorparams", {
|
|
16198
15922
|
source: this,
|
|
16199
|
-
type: AnnotationEditorParamsType
|
|
15923
|
+
type: AnnotationEditorParamsType.HIGHLIGHT_COLOR,
|
|
16200
15924
|
value: color
|
|
16201
15925
|
});
|
|
16202
15926
|
this.updateColor(color);
|
|
@@ -16320,7 +16044,7 @@ let ColorPicker$1 = class ColorPicker {
|
|
|
16320
16044
|
this.#dropdown?.remove();
|
|
16321
16045
|
this.#dropdown = null;
|
|
16322
16046
|
}
|
|
16323
|
-
}
|
|
16047
|
+
}
|
|
16324
16048
|
class BasicColorPicker {
|
|
16325
16049
|
#input = null;
|
|
16326
16050
|
#editor = null;
|
|
@@ -16368,8 +16092,6 @@ class BasicColorPicker {
|
|
|
16368
16092
|
}
|
|
16369
16093
|
hideDropdown() {}
|
|
16370
16094
|
}
|
|
16371
|
-
|
|
16372
|
-
;// ./src/shared/scripting_utils.js
|
|
16373
16095
|
function makeColorComp(n) {
|
|
16374
16096
|
return Math.floor(Math.max(0, Math.min(1, n)) * 255).toString(16).padStart(2, "0");
|
|
16375
16097
|
}
|
|
@@ -16427,10 +16149,6 @@ class ColorConverters {
|
|
|
16427
16149
|
return ["CMYK", c, m, y, k];
|
|
16428
16150
|
}
|
|
16429
16151
|
}
|
|
16430
|
-
const DateFormats = (/* unused pure expression or super */ null && (["m/d", "m/d/yy", "mm/dd/yy", "mm/yy", "d-mmm", "d-mmm-yy", "dd-mmm-yy", "yy-mm-dd", "mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:MM tt", "m/d/yy HH:MM"]));
|
|
16431
|
-
const TimeFormats = (/* unused pure expression or super */ null && (["HH:MM", "h:MM tt", "HH:MM:ss", "h:MM:ss tt"]));
|
|
16432
|
-
|
|
16433
|
-
;// ./src/display/svg_factory.js
|
|
16434
16152
|
|
|
16435
16153
|
|
|
16436
16154
|
class BaseSVGFactory {
|
|
@@ -16458,13 +16176,11 @@ class BaseSVGFactory {
|
|
|
16458
16176
|
unreachable("Abstract method `_createSVG` called.");
|
|
16459
16177
|
}
|
|
16460
16178
|
}
|
|
16461
|
-
|
|
16179
|
+
class DOMSVGFactory extends BaseSVGFactory {
|
|
16462
16180
|
_createSVG(type) {
|
|
16463
16181
|
return document.createElementNS(SVG_NS, type);
|
|
16464
16182
|
}
|
|
16465
|
-
}
|
|
16466
|
-
|
|
16467
|
-
;// ./src/display/annotation_layer.js
|
|
16183
|
+
}
|
|
16468
16184
|
|
|
16469
16185
|
|
|
16470
16186
|
|
|
@@ -16819,8 +16535,6 @@ class AnnotationElement {
|
|
|
16819
16535
|
case AnnotationBorderStyleType.UNDERLINE:
|
|
16820
16536
|
style.borderBottomStyle = "solid";
|
|
16821
16537
|
break;
|
|
16822
|
-
default:
|
|
16823
|
-
break;
|
|
16824
16538
|
}
|
|
16825
16539
|
const borderColor = data.borderColor || null;
|
|
16826
16540
|
if (borderColor) {
|
|
@@ -18369,7 +18083,7 @@ class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement {
|
|
|
18369
18083
|
}
|
|
18370
18084
|
if (this.data.combo) {
|
|
18371
18085
|
this._setTextStyle(selectElement);
|
|
18372
|
-
}
|
|
18086
|
+
}
|
|
18373
18087
|
this._setBackgroundColor(selectElement);
|
|
18374
18088
|
this._setDefaultPropertiesFromJS(selectElement);
|
|
18375
18089
|
this.container.append(selectElement);
|
|
@@ -18483,7 +18197,7 @@ class PopupElement {
|
|
|
18483
18197
|
this.#elements = elements;
|
|
18484
18198
|
this.#commentManager = commentManager;
|
|
18485
18199
|
this.#firstElement = elements[0];
|
|
18486
|
-
this.#dateObj = PDFDateString
|
|
18200
|
+
this.#dateObj = PDFDateString.toDateObject(modificationDate);
|
|
18487
18201
|
this.trigger = elements.flatMap(e => e.getElementsToTriggerPopup());
|
|
18488
18202
|
if (!commentManager) {
|
|
18489
18203
|
this.#addEventListeners();
|
|
@@ -18761,7 +18475,7 @@ class PopupElement {
|
|
|
18761
18475
|
modificationDate.dateTime = this.#dateObj.toISOString();
|
|
18762
18476
|
header.append(modificationDate);
|
|
18763
18477
|
}
|
|
18764
|
-
renderRichText
|
|
18478
|
+
renderRichText({
|
|
18765
18479
|
html: this.#html || this.#contentsObj.str,
|
|
18766
18480
|
dir: this.#contentsObj?.dir,
|
|
18767
18481
|
className: "popupContent"
|
|
@@ -18858,7 +18572,7 @@ class PopupElement {
|
|
|
18858
18572
|
}
|
|
18859
18573
|
if (popup && popup.text) {
|
|
18860
18574
|
this.#richText = this.#makePopupContent(popup.text);
|
|
18861
|
-
this.#dateObj = PDFDateString
|
|
18575
|
+
this.#dateObj = PDFDateString.toDateObject(popup.date);
|
|
18862
18576
|
this.#contentsObj = null;
|
|
18863
18577
|
}
|
|
18864
18578
|
this.#popup?.remove();
|
|
@@ -19583,7 +19297,7 @@ let AnnotationLayer$1 = class AnnotationLayer {
|
|
|
19583
19297
|
downloadManager: params.downloadManager,
|
|
19584
19298
|
imageResourcesPath: params.imageResourcesPath || "",
|
|
19585
19299
|
renderForms: params.renderForms !== false,
|
|
19586
|
-
svgFactory: new DOMSVGFactory
|
|
19300
|
+
svgFactory: new DOMSVGFactory(),
|
|
19587
19301
|
annotationStorage: this.#annotationStorage,
|
|
19588
19302
|
enableComment: params.enableComment === true,
|
|
19589
19303
|
enableScripting: params.enableScripting === true,
|
|
@@ -19688,7 +19402,7 @@ let AnnotationLayer$1 = class AnnotationLayer {
|
|
|
19688
19402
|
}
|
|
19689
19403
|
}) => {
|
|
19690
19404
|
if (a0 === a2 && a1 === a3) {
|
|
19691
|
-
return
|
|
19405
|
+
return 1;
|
|
19692
19406
|
}
|
|
19693
19407
|
if (b0 === b2 && b1 === b3) {
|
|
19694
19408
|
return -1;
|
|
@@ -19703,7 +19417,7 @@ let AnnotationLayer$1 = class AnnotationLayer {
|
|
|
19703
19417
|
return -1;
|
|
19704
19418
|
}
|
|
19705
19419
|
if (mid2 >= top1 && mid1 <= bot2) {
|
|
19706
|
-
return
|
|
19420
|
+
return 1;
|
|
19707
19421
|
}
|
|
19708
19422
|
const centerX1 = (a0 + a2) / 2;
|
|
19709
19423
|
const centerX2 = (b0 + b2) / 2;
|
|
@@ -19731,7 +19445,7 @@ let AnnotationLayer$1 = class AnnotationLayer {
|
|
|
19731
19445
|
data: null,
|
|
19732
19446
|
layer: this.div,
|
|
19733
19447
|
linkService: this.#linkService,
|
|
19734
|
-
svgFactory: new DOMSVGFactory
|
|
19448
|
+
svgFactory: new DOMSVGFactory(),
|
|
19735
19449
|
parent: this
|
|
19736
19450
|
};
|
|
19737
19451
|
for (const data of annotations) {
|
|
@@ -19859,8 +19573,6 @@ let AnnotationLayer$1 = class AnnotationLayer {
|
|
|
19859
19573
|
}
|
|
19860
19574
|
};
|
|
19861
19575
|
|
|
19862
|
-
;// ./src/display/editor/freetext.js
|
|
19863
|
-
|
|
19864
19576
|
|
|
19865
19577
|
|
|
19866
19578
|
|
|
@@ -19930,36 +19642,36 @@ class FreeTextEditor extends AnnotationEditor {
|
|
|
19930
19642
|
}
|
|
19931
19643
|
static updateDefaultParams(type, value) {
|
|
19932
19644
|
switch (type) {
|
|
19933
|
-
case AnnotationEditorParamsType
|
|
19645
|
+
case AnnotationEditorParamsType.FREETEXT_SIZE:
|
|
19934
19646
|
FreeTextEditor._defaultFontSize = value;
|
|
19935
19647
|
break;
|
|
19936
|
-
case AnnotationEditorParamsType
|
|
19648
|
+
case AnnotationEditorParamsType.FREETEXT_COLOR:
|
|
19937
19649
|
FreeTextEditor._defaultColor = value;
|
|
19938
19650
|
break;
|
|
19939
19651
|
}
|
|
19940
19652
|
}
|
|
19941
19653
|
updateParams(type, value) {
|
|
19942
19654
|
switch (type) {
|
|
19943
|
-
case AnnotationEditorParamsType
|
|
19655
|
+
case AnnotationEditorParamsType.FREETEXT_SIZE:
|
|
19944
19656
|
this.#updateFontSize(value);
|
|
19945
19657
|
break;
|
|
19946
|
-
case AnnotationEditorParamsType
|
|
19658
|
+
case AnnotationEditorParamsType.FREETEXT_COLOR:
|
|
19947
19659
|
this.#updateColor(value);
|
|
19948
19660
|
break;
|
|
19949
19661
|
}
|
|
19950
19662
|
}
|
|
19951
19663
|
static get defaultPropertiesToUpdate() {
|
|
19952
|
-
return [[AnnotationEditorParamsType
|
|
19664
|
+
return [[AnnotationEditorParamsType.FREETEXT_SIZE, FreeTextEditor._defaultFontSize], [AnnotationEditorParamsType.FREETEXT_COLOR, FreeTextEditor._defaultColor || AnnotationEditor._defaultLineColor]];
|
|
19953
19665
|
}
|
|
19954
19666
|
get propertiesToUpdate() {
|
|
19955
|
-
return [[AnnotationEditorParamsType
|
|
19667
|
+
return [[AnnotationEditorParamsType.FREETEXT_SIZE, this.#fontSize], [AnnotationEditorParamsType.FREETEXT_COLOR, this.color]];
|
|
19956
19668
|
}
|
|
19957
19669
|
get toolbarButtons() {
|
|
19958
19670
|
this._colorPicker ||= new BasicColorPicker(this);
|
|
19959
19671
|
return [["colorPicker", this._colorPicker]];
|
|
19960
19672
|
}
|
|
19961
19673
|
get colorType() {
|
|
19962
|
-
return AnnotationEditorParamsType
|
|
19674
|
+
return AnnotationEditorParamsType.FREETEXT_COLOR;
|
|
19963
19675
|
}
|
|
19964
19676
|
#updateFontSize(fontSize) {
|
|
19965
19677
|
const setFontsize = size => {
|
|
@@ -19974,7 +19686,7 @@ class FreeTextEditor extends AnnotationEditor {
|
|
|
19974
19686
|
undo: setFontsize.bind(this, savedFontsize),
|
|
19975
19687
|
post: this._uiManager.updateUI.bind(this._uiManager, this),
|
|
19976
19688
|
mustExec: true,
|
|
19977
|
-
type: AnnotationEditorParamsType
|
|
19689
|
+
type: AnnotationEditorParamsType.FREETEXT_SIZE,
|
|
19978
19690
|
overwriteIfSameType: true,
|
|
19979
19691
|
keepUndo: true
|
|
19980
19692
|
});
|
|
@@ -19995,7 +19707,7 @@ class FreeTextEditor extends AnnotationEditor {
|
|
|
19995
19707
|
undo: setColor.bind(this, savedColor),
|
|
19996
19708
|
post: this._uiManager.updateUI.bind(this._uiManager, this),
|
|
19997
19709
|
mustExec: true,
|
|
19998
|
-
type: AnnotationEditorParamsType
|
|
19710
|
+
type: AnnotationEditorParamsType.FREETEXT_COLOR,
|
|
19999
19711
|
overwriteIfSameType: true,
|
|
20000
19712
|
keepUndo: true
|
|
20001
19713
|
});
|
|
@@ -20501,8 +20213,6 @@ class FreeTextEditor extends AnnotationEditor {
|
|
|
20501
20213
|
}
|
|
20502
20214
|
}
|
|
20503
20215
|
|
|
20504
|
-
;// ./src/display/editor/drawers/outline.js
|
|
20505
|
-
|
|
20506
20216
|
class Outline {
|
|
20507
20217
|
static PRECISION = 1e-4;
|
|
20508
20218
|
toSVGPath() {
|
|
@@ -20570,8 +20280,6 @@ class Outline {
|
|
|
20570
20280
|
}
|
|
20571
20281
|
}
|
|
20572
20282
|
|
|
20573
|
-
;// ./src/display/editor/drawers/freedraw.js
|
|
20574
|
-
|
|
20575
20283
|
|
|
20576
20284
|
class FreeDrawOutliner {
|
|
20577
20285
|
#box;
|
|
@@ -20935,8 +20643,6 @@ class FreeDrawOutline extends Outline {
|
|
|
20935
20643
|
}
|
|
20936
20644
|
}
|
|
20937
20645
|
|
|
20938
|
-
;// ./src/display/editor/drawers/highlight.js
|
|
20939
|
-
|
|
20940
20646
|
|
|
20941
20647
|
|
|
20942
20648
|
class HighlightOutliner {
|
|
@@ -20947,8 +20653,7 @@ class HighlightOutliner {
|
|
|
20947
20653
|
#intervals = [];
|
|
20948
20654
|
constructor(boxes, borderWidth = 0, innerMargin = 0, isLTR = true) {
|
|
20949
20655
|
const minMax = [Infinity, Infinity, -Infinity, -Infinity];
|
|
20950
|
-
const
|
|
20951
|
-
const EPSILON = 10 ** -NUMBER_OF_DIGITS;
|
|
20656
|
+
const EPSILON = 10 ** -4;
|
|
20952
20657
|
for (const {
|
|
20953
20658
|
x,
|
|
20954
20659
|
y,
|
|
@@ -21198,8 +20903,6 @@ class FreeHighlightOutline extends FreeDrawOutline {
|
|
|
21198
20903
|
}
|
|
21199
20904
|
}
|
|
21200
20905
|
|
|
21201
|
-
;// ./src/display/editor/highlight.js
|
|
21202
|
-
|
|
21203
20906
|
|
|
21204
20907
|
|
|
21205
20908
|
|
|
@@ -21400,10 +21103,10 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
21400
21103
|
}
|
|
21401
21104
|
static updateDefaultParams(type, value) {
|
|
21402
21105
|
switch (type) {
|
|
21403
|
-
case AnnotationEditorParamsType
|
|
21106
|
+
case AnnotationEditorParamsType.HIGHLIGHT_COLOR:
|
|
21404
21107
|
HighlightEditor._defaultColor = value;
|
|
21405
21108
|
break;
|
|
21406
|
-
case AnnotationEditorParamsType
|
|
21109
|
+
case AnnotationEditorParamsType.HIGHLIGHT_THICKNESS:
|
|
21407
21110
|
HighlightEditor._defaultThickness = value;
|
|
21408
21111
|
break;
|
|
21409
21112
|
}
|
|
@@ -21417,19 +21120,19 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
21417
21120
|
}
|
|
21418
21121
|
updateParams(type, value) {
|
|
21419
21122
|
switch (type) {
|
|
21420
|
-
case AnnotationEditorParamsType
|
|
21123
|
+
case AnnotationEditorParamsType.HIGHLIGHT_COLOR:
|
|
21421
21124
|
this.#updateColor(value);
|
|
21422
21125
|
break;
|
|
21423
|
-
case AnnotationEditorParamsType
|
|
21126
|
+
case AnnotationEditorParamsType.HIGHLIGHT_THICKNESS:
|
|
21424
21127
|
this.#updateThickness(value);
|
|
21425
21128
|
break;
|
|
21426
21129
|
}
|
|
21427
21130
|
}
|
|
21428
21131
|
static get defaultPropertiesToUpdate() {
|
|
21429
|
-
return [[AnnotationEditorParamsType
|
|
21132
|
+
return [[AnnotationEditorParamsType.HIGHLIGHT_COLOR, HighlightEditor._defaultColor], [AnnotationEditorParamsType.HIGHLIGHT_THICKNESS, HighlightEditor._defaultThickness]];
|
|
21430
21133
|
}
|
|
21431
21134
|
get propertiesToUpdate() {
|
|
21432
|
-
return [[AnnotationEditorParamsType
|
|
21135
|
+
return [[AnnotationEditorParamsType.HIGHLIGHT_COLOR, this.color || HighlightEditor._defaultColor], [AnnotationEditorParamsType.HIGHLIGHT_THICKNESS, this.#thickness || HighlightEditor._defaultThickness], [AnnotationEditorParamsType.HIGHLIGHT_FREE, this.#isFreeHighlight]];
|
|
21433
21136
|
}
|
|
21434
21137
|
onUpdatedColor() {
|
|
21435
21138
|
this.parent?.drawLayer.updateProperties(this.#id, {
|
|
@@ -21454,7 +21157,7 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
21454
21157
|
undo: setColorAndOpacity.bind(this, savedColor, savedOpacity),
|
|
21455
21158
|
post: this._uiManager.updateUI.bind(this._uiManager, this),
|
|
21456
21159
|
mustExec: true,
|
|
21457
|
-
type: AnnotationEditorParamsType
|
|
21160
|
+
type: AnnotationEditorParamsType.HIGHLIGHT_COLOR,
|
|
21458
21161
|
overwriteIfSameType: true,
|
|
21459
21162
|
keepUndo: true
|
|
21460
21163
|
});
|
|
@@ -21474,7 +21177,7 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
21474
21177
|
undo: setThickness.bind(this, savedThickness),
|
|
21475
21178
|
post: this._uiManager.updateUI.bind(this._uiManager, this),
|
|
21476
21179
|
mustExec: true,
|
|
21477
|
-
type: AnnotationEditorParamsType
|
|
21180
|
+
type: AnnotationEditorParamsType.INK_THICKNESS,
|
|
21478
21181
|
overwriteIfSameType: true,
|
|
21479
21182
|
keepUndo: true
|
|
21480
21183
|
});
|
|
@@ -21485,7 +21188,7 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
21485
21188
|
}
|
|
21486
21189
|
get toolbarButtons() {
|
|
21487
21190
|
if (this._uiManager.highlightColors) {
|
|
21488
|
-
const colorPicker = this.#colorPicker = new ColorPicker
|
|
21191
|
+
const colorPicker = this.#colorPicker = new ColorPicker({
|
|
21489
21192
|
editor: this
|
|
21490
21193
|
});
|
|
21491
21194
|
return [["colorPicker", colorPicker]];
|
|
@@ -21815,7 +21518,7 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
21815
21518
|
passive: false,
|
|
21816
21519
|
signal
|
|
21817
21520
|
});
|
|
21818
|
-
window.addEventListener("contextmenu", noContextMenu
|
|
21521
|
+
window.addEventListener("contextmenu", noContextMenu, {
|
|
21819
21522
|
signal
|
|
21820
21523
|
});
|
|
21821
21524
|
textLayer.addEventListener("pointermove", this.#highlightMove.bind(this, parent), {
|
|
@@ -22068,8 +21771,6 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
22068
21771
|
}
|
|
22069
21772
|
}
|
|
22070
21773
|
|
|
22071
|
-
;// ./src/display/editor/draw.js
|
|
22072
|
-
|
|
22073
21774
|
|
|
22074
21775
|
|
|
22075
21776
|
|
|
@@ -22544,7 +22245,7 @@ class DrawingEditor extends AnnotationEditor {
|
|
|
22544
22245
|
passive: false,
|
|
22545
22246
|
signal
|
|
22546
22247
|
});
|
|
22547
|
-
window.addEventListener("contextmenu", noContextMenu
|
|
22248
|
+
window.addEventListener("contextmenu", noContextMenu, {
|
|
22548
22249
|
signal
|
|
22549
22250
|
});
|
|
22550
22251
|
target.addEventListener("pointermove", this._drawMove.bind(this), {
|
|
@@ -22572,7 +22273,6 @@ class DrawingEditor extends AnnotationEditor {
|
|
|
22572
22273
|
} = parent.drawLayer.draw(this._mergeSVGProperties(DrawingEditor.#currentDrawingOptions.toSVGProperties(), DrawingEditor.#currentDraw.defaultSVGProperties), true, false));
|
|
22573
22274
|
}
|
|
22574
22275
|
static _drawMove(event) {
|
|
22575
|
-
CurrentPointers.isSameTimeStamp(event.timeStamp);
|
|
22576
22276
|
if (!DrawingEditor.#currentDraw) {
|
|
22577
22277
|
return;
|
|
22578
22278
|
}
|
|
@@ -22629,7 +22329,7 @@ class DrawingEditor extends AnnotationEditor {
|
|
|
22629
22329
|
parent.drawLayer.updateProperties(drawId, draw.removeLastElement());
|
|
22630
22330
|
},
|
|
22631
22331
|
mustExec: false,
|
|
22632
|
-
type: AnnotationEditorParamsType
|
|
22332
|
+
type: AnnotationEditorParamsType.DRAW_STEP
|
|
22633
22333
|
});
|
|
22634
22334
|
return;
|
|
22635
22335
|
}
|
|
@@ -22641,7 +22341,7 @@ class DrawingEditor extends AnnotationEditor {
|
|
|
22641
22341
|
return null;
|
|
22642
22342
|
}
|
|
22643
22343
|
parent.toggleDrawing(true);
|
|
22644
|
-
parent.cleanUndoStack(AnnotationEditorParamsType
|
|
22344
|
+
parent.cleanUndoStack(AnnotationEditorParamsType.DRAW_STEP);
|
|
22645
22345
|
if (!DrawingEditor.#currentDraw.isEmpty()) {
|
|
22646
22346
|
const {
|
|
22647
22347
|
pageDimensions: [pageWidth, pageHeight],
|
|
@@ -22703,8 +22403,6 @@ class DrawingEditor extends AnnotationEditor {
|
|
|
22703
22403
|
}
|
|
22704
22404
|
}
|
|
22705
22405
|
|
|
22706
|
-
;// ./src/display/editor/drawers/inkdraw.js
|
|
22707
|
-
|
|
22708
22406
|
|
|
22709
22407
|
class InkDrawOutliner {
|
|
22710
22408
|
#last = new Float64Array(6);
|
|
@@ -23364,8 +23062,6 @@ class InkDrawOutline extends Outline {
|
|
|
23364
23062
|
}
|
|
23365
23063
|
}
|
|
23366
23064
|
|
|
23367
|
-
;// ./src/display/editor/ink.js
|
|
23368
|
-
|
|
23369
23065
|
|
|
23370
23066
|
|
|
23371
23067
|
|
|
@@ -23423,7 +23119,7 @@ class InkEditor extends DrawingEditor {
|
|
|
23423
23119
|
return true;
|
|
23424
23120
|
}
|
|
23425
23121
|
static get typesMap() {
|
|
23426
|
-
return shadow$1(this, "typesMap", new Map([[AnnotationEditorParamsType
|
|
23122
|
+
return shadow$1(this, "typesMap", new Map([[AnnotationEditorParamsType.INK_THICKNESS, "stroke-width"], [AnnotationEditorParamsType.INK_COLOR, "stroke"], [AnnotationEditorParamsType.INK_OPACITY, "stroke-opacity"]]));
|
|
23427
23123
|
}
|
|
23428
23124
|
static createDrawerInstance(x, y, parentWidth, parentHeight, rotation) {
|
|
23429
23125
|
return new InkDrawOutliner(x, y, parentWidth, parentHeight, rotation, this._defaultDrawingOptions["stroke-width"]);
|
|
@@ -23491,7 +23187,7 @@ class InkEditor extends DrawingEditor {
|
|
|
23491
23187
|
return [["colorPicker", this._colorPicker]];
|
|
23492
23188
|
}
|
|
23493
23189
|
get colorType() {
|
|
23494
|
-
return AnnotationEditorParamsType
|
|
23190
|
+
return AnnotationEditorParamsType.INK_COLOR;
|
|
23495
23191
|
}
|
|
23496
23192
|
get color() {
|
|
23497
23193
|
return this._drawingOptions.stroke;
|
|
@@ -23598,8 +23294,6 @@ class InkEditor extends DrawingEditor {
|
|
|
23598
23294
|
}
|
|
23599
23295
|
}
|
|
23600
23296
|
|
|
23601
|
-
;// ./src/display/editor/drawers/contour.js
|
|
23602
|
-
|
|
23603
23297
|
class ContourDrawOutline extends InkDrawOutline {
|
|
23604
23298
|
toSVGPath() {
|
|
23605
23299
|
let path = super.toSVGPath();
|
|
@@ -23610,14 +23304,12 @@ class ContourDrawOutline extends InkDrawOutline {
|
|
|
23610
23304
|
}
|
|
23611
23305
|
}
|
|
23612
23306
|
|
|
23613
|
-
;// ./src/display/editor/drawers/signaturedraw.js
|
|
23614
|
-
|
|
23615
23307
|
|
|
23616
23308
|
|
|
23617
23309
|
|
|
23618
23310
|
const BASE_HEADER_LENGTH = 8;
|
|
23619
23311
|
const POINTS_PROPERTIES_NUMBER = 3;
|
|
23620
|
-
|
|
23312
|
+
class SignatureExtractor {
|
|
23621
23313
|
static #PARAMETERS = {
|
|
23622
23314
|
maxDim: 512,
|
|
23623
23315
|
sigmaSFactor: 0.02,
|
|
@@ -24226,9 +23918,7 @@ let SignatureExtractor$1 = class SignatureExtractor {
|
|
|
24226
23918
|
return null;
|
|
24227
23919
|
}
|
|
24228
23920
|
}
|
|
24229
|
-
}
|
|
24230
|
-
|
|
24231
|
-
;// ./src/display/editor/signature.js
|
|
23921
|
+
}
|
|
24232
23922
|
|
|
24233
23923
|
|
|
24234
23924
|
|
|
@@ -24355,7 +24045,7 @@ class SignatureEditor extends DrawingEditor {
|
|
|
24355
24045
|
},
|
|
24356
24046
|
rotation
|
|
24357
24047
|
} = this.parent.viewport;
|
|
24358
|
-
const outline = SignatureExtractor
|
|
24048
|
+
const outline = SignatureExtractor.processDrawnLines({
|
|
24359
24049
|
lines,
|
|
24360
24050
|
pageWidth,
|
|
24361
24051
|
pageHeight,
|
|
@@ -24414,7 +24104,7 @@ class SignatureEditor extends DrawingEditor {
|
|
|
24414
24104
|
height
|
|
24415
24105
|
} = this.#signatureData;
|
|
24416
24106
|
const maxDim = Math.max(width, height);
|
|
24417
|
-
const outlineData = SignatureExtractor
|
|
24107
|
+
const outlineData = SignatureExtractor.processDrawnLines({
|
|
24418
24108
|
lines: {
|
|
24419
24109
|
curves: newCurves.map(points => ({
|
|
24420
24110
|
points
|
|
@@ -24499,7 +24189,7 @@ class SignatureEditor extends DrawingEditor {
|
|
|
24499
24189
|
},
|
|
24500
24190
|
rotation
|
|
24501
24191
|
} = this.parent.viewport;
|
|
24502
|
-
return SignatureExtractor
|
|
24192
|
+
return SignatureExtractor.process(bitmap, pageWidth, pageHeight, rotation, SignatureEditor._INNER_MARGIN);
|
|
24503
24193
|
}
|
|
24504
24194
|
getFromText(text, fontInfo) {
|
|
24505
24195
|
const {
|
|
@@ -24509,7 +24199,7 @@ class SignatureEditor extends DrawingEditor {
|
|
|
24509
24199
|
},
|
|
24510
24200
|
rotation
|
|
24511
24201
|
} = this.parent.viewport;
|
|
24512
|
-
return SignatureExtractor
|
|
24202
|
+
return SignatureExtractor.extractContoursFromText(text, fontInfo, pageWidth, pageHeight, rotation, SignatureEditor._INNER_MARGIN);
|
|
24513
24203
|
}
|
|
24514
24204
|
getDrawnSignature(curves) {
|
|
24515
24205
|
const {
|
|
@@ -24519,7 +24209,7 @@ class SignatureEditor extends DrawingEditor {
|
|
|
24519
24209
|
},
|
|
24520
24210
|
rotation
|
|
24521
24211
|
} = this.parent.viewport;
|
|
24522
|
-
return SignatureExtractor
|
|
24212
|
+
return SignatureExtractor.processDrawnLines({
|
|
24523
24213
|
lines: curves,
|
|
24524
24214
|
pageWidth,
|
|
24525
24215
|
pageHeight,
|
|
@@ -24595,8 +24285,6 @@ class SignatureEditor extends DrawingEditor {
|
|
|
24595
24285
|
}
|
|
24596
24286
|
}
|
|
24597
24287
|
|
|
24598
|
-
;// ./src/display/editor/stamp.js
|
|
24599
|
-
|
|
24600
24288
|
|
|
24601
24289
|
|
|
24602
24290
|
|
|
@@ -24627,7 +24315,7 @@ class StampEditor extends AnnotationEditor {
|
|
|
24627
24315
|
AnnotationEditor.initialize(l10n, uiManager);
|
|
24628
24316
|
}
|
|
24629
24317
|
static isHandlingMimeForPasting(mime) {
|
|
24630
|
-
return SupportedImageMimeTypes
|
|
24318
|
+
return SupportedImageMimeTypes.includes(mime);
|
|
24631
24319
|
}
|
|
24632
24320
|
static paste(item, parent) {
|
|
24633
24321
|
parent.pasteEditor({
|
|
@@ -24768,7 +24456,7 @@ class StampEditor extends AnnotationEditor {
|
|
|
24768
24456
|
}
|
|
24769
24457
|
const input = document.createElement("input");
|
|
24770
24458
|
input.type = "file";
|
|
24771
|
-
input.accept = SupportedImageMimeTypes
|
|
24459
|
+
input.accept = SupportedImageMimeTypes.join(",");
|
|
24772
24460
|
const signal = this._uiManager._signal;
|
|
24773
24461
|
this.#bitmapPromise = new Promise(resolve => {
|
|
24774
24462
|
input.addEventListener("change", async () => {
|
|
@@ -25289,8 +24977,6 @@ class StampEditor extends AnnotationEditor {
|
|
|
25289
24977
|
}
|
|
25290
24978
|
}
|
|
25291
24979
|
|
|
25292
|
-
;// ./src/display/editor/annotation_editor_layer.js
|
|
25293
|
-
|
|
25294
24980
|
|
|
25295
24981
|
|
|
25296
24982
|
|
|
@@ -26047,8 +25733,6 @@ let AnnotationEditorLayer$1 = class AnnotationEditorLayer {
|
|
|
26047
25733
|
}
|
|
26048
25734
|
};
|
|
26049
25735
|
|
|
26050
|
-
;// ./src/display/draw_layer.js
|
|
26051
|
-
|
|
26052
25736
|
|
|
26053
25737
|
let DrawLayer$1 = class DrawLayer {
|
|
26054
25738
|
#parent = null;
|
|
@@ -26076,7 +25760,7 @@ let DrawLayer$1 = class DrawLayer {
|
|
|
26076
25760
|
}
|
|
26077
25761
|
}
|
|
26078
25762
|
static get _svgFactory() {
|
|
26079
|
-
return shadow$1(this, "_svgFactory", new DOMSVGFactory
|
|
25763
|
+
return shadow$1(this, "_svgFactory", new DOMSVGFactory());
|
|
26080
25764
|
}
|
|
26081
25765
|
static #setBox(element, [x, y, width, height]) {
|
|
26082
25766
|
const {
|
|
@@ -26250,8 +25934,6 @@ let DrawLayer$1 = class DrawLayer {
|
|
|
26250
25934
|
}
|
|
26251
25935
|
};
|
|
26252
25936
|
|
|
26253
|
-
;// ./src/pdf.js
|
|
26254
|
-
|
|
26255
25937
|
|
|
26256
25938
|
|
|
26257
25939
|
|
|
@@ -26275,58 +25957,58 @@ let DrawLayer$1 = class DrawLayer {
|
|
|
26275
25957
|
globalThis.pdfjsLib = {
|
|
26276
25958
|
AbortException: AbortException$1,
|
|
26277
25959
|
AnnotationEditorLayer: AnnotationEditorLayer$1,
|
|
26278
|
-
AnnotationEditorParamsType: AnnotationEditorParamsType
|
|
25960
|
+
AnnotationEditorParamsType: AnnotationEditorParamsType,
|
|
26279
25961
|
AnnotationEditorType: AnnotationEditorType$1,
|
|
26280
25962
|
AnnotationEditorUIManager: AnnotationEditorUIManager$1,
|
|
26281
25963
|
AnnotationLayer: AnnotationLayer$1,
|
|
26282
25964
|
AnnotationMode: AnnotationMode$1,
|
|
26283
25965
|
AnnotationType: AnnotationType$1,
|
|
26284
|
-
applyOpacity: applyOpacity
|
|
26285
|
-
build: build
|
|
26286
|
-
ColorPicker: ColorPicker
|
|
25966
|
+
applyOpacity: applyOpacity,
|
|
25967
|
+
build: build,
|
|
25968
|
+
ColorPicker: ColorPicker,
|
|
26287
25969
|
createValidAbsoluteUrl: createValidAbsoluteUrl$1,
|
|
26288
|
-
CSSConstants: CSSConstants
|
|
26289
|
-
DOMSVGFactory: DOMSVGFactory
|
|
25970
|
+
CSSConstants: CSSConstants,
|
|
25971
|
+
DOMSVGFactory: DOMSVGFactory,
|
|
26290
25972
|
DrawLayer: DrawLayer$1,
|
|
26291
25973
|
FeatureTest: util_FeatureTest,
|
|
26292
25974
|
fetchData: fetchData$1,
|
|
26293
|
-
findContrastColor: findContrastColor
|
|
26294
|
-
getDocument: getDocument
|
|
26295
|
-
getFilenameFromUrl: getFilenameFromUrl
|
|
25975
|
+
findContrastColor: findContrastColor,
|
|
25976
|
+
getDocument: getDocument,
|
|
25977
|
+
getFilenameFromUrl: getFilenameFromUrl,
|
|
26296
25978
|
getPdfFilenameFromUrl: getPdfFilenameFromUrl$1,
|
|
26297
|
-
getRGB: getRGB
|
|
26298
|
-
getUuid: getUuid
|
|
26299
|
-
getXfaPageViewport: getXfaPageViewport
|
|
26300
|
-
GlobalWorkerOptions: GlobalWorkerOptions
|
|
25979
|
+
getRGB: getRGB,
|
|
25980
|
+
getUuid: getUuid,
|
|
25981
|
+
getXfaPageViewport: getXfaPageViewport,
|
|
25982
|
+
GlobalWorkerOptions: GlobalWorkerOptions,
|
|
26301
25983
|
ImageKind: util_ImageKind,
|
|
26302
|
-
InvalidPDFException: InvalidPDFException
|
|
26303
|
-
isDataScheme: isDataScheme
|
|
25984
|
+
InvalidPDFException: InvalidPDFException,
|
|
25985
|
+
isDataScheme: isDataScheme,
|
|
26304
25986
|
isPdfFile: isPdfFile$1,
|
|
26305
25987
|
isValidExplicitDest: isValidExplicitDest$1,
|
|
26306
25988
|
MathClamp: MathClamp$1,
|
|
26307
|
-
noContextMenu: noContextMenu
|
|
25989
|
+
noContextMenu: noContextMenu,
|
|
26308
25990
|
normalizeUnicode: normalizeUnicode$1,
|
|
26309
|
-
OPS: OPS
|
|
25991
|
+
OPS: OPS,
|
|
26310
25992
|
OutputScale: OutputScale$1,
|
|
26311
|
-
PasswordResponses: PasswordResponses
|
|
26312
|
-
PDFDataRangeTransport: PDFDataRangeTransport
|
|
26313
|
-
PDFDateString: PDFDateString
|
|
26314
|
-
PDFWorker: PDFWorker
|
|
25993
|
+
PasswordResponses: PasswordResponses,
|
|
25994
|
+
PDFDataRangeTransport: PDFDataRangeTransport,
|
|
25995
|
+
PDFDateString: PDFDateString,
|
|
25996
|
+
PDFWorker: PDFWorker,
|
|
26315
25997
|
PermissionFlag: PermissionFlag$1,
|
|
26316
25998
|
PixelsPerInch: PixelsPerInch$1,
|
|
26317
25999
|
RenderingCancelledException: RenderingCancelledException$1,
|
|
26318
|
-
renderRichText: renderRichText
|
|
26319
|
-
ResponseException: ResponseException
|
|
26000
|
+
renderRichText: renderRichText,
|
|
26001
|
+
ResponseException: ResponseException,
|
|
26320
26002
|
setLayerDimensions: setLayerDimensions$1,
|
|
26321
26003
|
shadow: shadow$1,
|
|
26322
|
-
SignatureExtractor: SignatureExtractor
|
|
26004
|
+
SignatureExtractor: SignatureExtractor,
|
|
26323
26005
|
stopEvent: stopEvent$1,
|
|
26324
|
-
SupportedImageMimeTypes: SupportedImageMimeTypes
|
|
26006
|
+
SupportedImageMimeTypes: SupportedImageMimeTypes,
|
|
26325
26007
|
TextLayer: TextLayer$1,
|
|
26326
|
-
TouchManager: TouchManager
|
|
26008
|
+
TouchManager: TouchManager,
|
|
26327
26009
|
updateUrlHash: updateUrlHash$1,
|
|
26328
26010
|
Util: Util$1,
|
|
26329
|
-
VerbosityLevel: VerbosityLevel
|
|
26011
|
+
VerbosityLevel: VerbosityLevel,
|
|
26330
26012
|
version: version$1,
|
|
26331
26013
|
XfaLayer: XfaLayer$1
|
|
26332
26014
|
};
|
|
@@ -26353,96 +26035,37 @@ globalThis.pdfjsLib = {
|
|
|
26353
26035
|
* JavaScript code in this page
|
|
26354
26036
|
*/
|
|
26355
26037
|
|
|
26356
|
-
/**
|
|
26357
|
-
* pdfjsVersion = 5.4.449
|
|
26358
|
-
* pdfjsBuild = f44e5f0e6
|
|
26359
|
-
*/
|
|
26360
|
-
/******/ // The require scope
|
|
26361
|
-
/******/ var __webpack_require__ = {};
|
|
26362
|
-
/******/
|
|
26363
|
-
/************************************************************************/
|
|
26364
|
-
/******/ /* webpack/runtime/define property getters */
|
|
26365
|
-
/******/ (() => {
|
|
26366
|
-
/******/ // define getter functions for harmony exports
|
|
26367
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
26368
|
-
/******/ for(var key in definition) {
|
|
26369
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
26370
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26371
|
-
/******/ }
|
|
26372
|
-
/******/ }
|
|
26373
|
-
/******/ };
|
|
26374
|
-
/******/ })();
|
|
26375
|
-
/******/
|
|
26376
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
26377
|
-
/******/ (() => {
|
|
26378
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
|
|
26379
|
-
/******/ })();
|
|
26380
|
-
/******/
|
|
26381
|
-
/************************************************************************/
|
|
26382
|
-
var __webpack_exports__ = {};
|
|
26383
|
-
|
|
26384
|
-
;// ./web/pdfjs.js
|
|
26385
26038
|
const {
|
|
26386
26039
|
AbortException,
|
|
26387
26040
|
AnnotationEditorLayer,
|
|
26388
|
-
AnnotationEditorParamsType,
|
|
26389
26041
|
AnnotationEditorType,
|
|
26390
26042
|
AnnotationEditorUIManager,
|
|
26391
26043
|
AnnotationLayer,
|
|
26392
26044
|
AnnotationMode,
|
|
26393
26045
|
AnnotationType,
|
|
26394
|
-
applyOpacity,
|
|
26395
|
-
build,
|
|
26396
|
-
ColorPicker,
|
|
26397
26046
|
createValidAbsoluteUrl,
|
|
26398
|
-
CSSConstants,
|
|
26399
|
-
DOMSVGFactory,
|
|
26400
26047
|
DrawLayer,
|
|
26401
|
-
FeatureTest
|
|
26048
|
+
FeatureTest,
|
|
26402
26049
|
fetchData,
|
|
26403
|
-
findContrastColor,
|
|
26404
|
-
getDocument,
|
|
26405
|
-
getFilenameFromUrl,
|
|
26406
26050
|
getPdfFilenameFromUrl,
|
|
26407
|
-
getRGB,
|
|
26408
|
-
getUuid,
|
|
26409
|
-
getXfaPageViewport,
|
|
26410
|
-
GlobalWorkerOptions,
|
|
26411
|
-
ImageKind: ImageKind$1,
|
|
26412
|
-
InvalidPDFException,
|
|
26413
|
-
isDataScheme,
|
|
26414
26051
|
isPdfFile,
|
|
26415
26052
|
isValidExplicitDest,
|
|
26416
26053
|
MathClamp,
|
|
26417
|
-
noContextMenu,
|
|
26418
26054
|
normalizeUnicode,
|
|
26419
|
-
OPS,
|
|
26420
26055
|
OutputScale,
|
|
26421
|
-
PasswordResponses,
|
|
26422
|
-
PDFDataRangeTransport,
|
|
26423
|
-
PDFDateString,
|
|
26424
|
-
PDFWorker,
|
|
26425
26056
|
PermissionFlag,
|
|
26426
26057
|
PixelsPerInch,
|
|
26427
26058
|
RenderingCancelledException,
|
|
26428
|
-
renderRichText,
|
|
26429
|
-
ResponseException,
|
|
26430
26059
|
setLayerDimensions,
|
|
26431
26060
|
shadow,
|
|
26432
|
-
SignatureExtractor,
|
|
26433
26061
|
stopEvent,
|
|
26434
|
-
SupportedImageMimeTypes,
|
|
26435
26062
|
TextLayer,
|
|
26436
|
-
TouchManager,
|
|
26437
26063
|
updateUrlHash,
|
|
26438
26064
|
Util,
|
|
26439
|
-
VerbosityLevel,
|
|
26440
26065
|
version,
|
|
26441
26066
|
XfaLayer
|
|
26442
26067
|
} = globalThis.pdfjsLib;
|
|
26443
26068
|
|
|
26444
|
-
;// ./web/ui_utils.js
|
|
26445
|
-
|
|
26446
26069
|
const DEFAULT_SCALE_VALUE = "auto";
|
|
26447
26070
|
const DEFAULT_SCALE = 1.0;
|
|
26448
26071
|
const DEFAULT_SCALE_DELTA = 1.1;
|
|
@@ -26464,14 +26087,6 @@ const PresentationModeState = {
|
|
|
26464
26087
|
CHANGING: 2,
|
|
26465
26088
|
FULLSCREEN: 3
|
|
26466
26089
|
};
|
|
26467
|
-
const SidebarView = {
|
|
26468
|
-
UNKNOWN: -1,
|
|
26469
|
-
NONE: 0,
|
|
26470
|
-
THUMBS: 1,
|
|
26471
|
-
OUTLINE: 2,
|
|
26472
|
-
ATTACHMENTS: 3,
|
|
26473
|
-
LAYERS: 4
|
|
26474
|
-
};
|
|
26475
26090
|
const TextLayerMode = {
|
|
26476
26091
|
DISABLE: 0,
|
|
26477
26092
|
ENABLE: 1,
|
|
@@ -26490,12 +26105,6 @@ const SpreadMode = {
|
|
|
26490
26105
|
ODD: 1,
|
|
26491
26106
|
EVEN: 2
|
|
26492
26107
|
};
|
|
26493
|
-
const CursorTool = {
|
|
26494
|
-
SELECT: 0,
|
|
26495
|
-
HAND: 1,
|
|
26496
|
-
ZOOM: 2
|
|
26497
|
-
};
|
|
26498
|
-
const AutoPrintRegExp = /\bprint\s*\(/;
|
|
26499
26108
|
function scrollIntoView(element, spot, scrollMatches = false) {
|
|
26500
26109
|
let parent = element.offsetParent;
|
|
26501
26110
|
if (!parent) {
|
|
@@ -26646,20 +26255,6 @@ function approximateFraction(x) {
|
|
|
26646
26255
|
function floorToDivide(x, div) {
|
|
26647
26256
|
return x - x % div;
|
|
26648
26257
|
}
|
|
26649
|
-
function getPageSizeInches({
|
|
26650
|
-
view,
|
|
26651
|
-
userUnit,
|
|
26652
|
-
rotate
|
|
26653
|
-
}) {
|
|
26654
|
-
const [x1, y1, x2, y2] = view;
|
|
26655
|
-
const changeOrientation = rotate % 180 !== 0;
|
|
26656
|
-
const width = (x2 - x1) / 72 * userUnit;
|
|
26657
|
-
const height = (y2 - y1) / 72 * userUnit;
|
|
26658
|
-
return {
|
|
26659
|
-
width: changeOrientation ? height : width,
|
|
26660
|
-
height: changeOrientation ? width : height
|
|
26661
|
-
};
|
|
26662
|
-
}
|
|
26663
26258
|
function backtrackBeforeAllVisibleElements(index, views, top) {
|
|
26664
26259
|
if (index < 2) {
|
|
26665
26260
|
return index;
|
|
@@ -26769,26 +26364,6 @@ function getVisibleElements({
|
|
|
26769
26364
|
ids
|
|
26770
26365
|
};
|
|
26771
26366
|
}
|
|
26772
|
-
function normalizeWheelEventDirection(evt) {
|
|
26773
|
-
let delta = Math.hypot(evt.deltaX, evt.deltaY);
|
|
26774
|
-
const angle = Math.atan2(evt.deltaY, evt.deltaX);
|
|
26775
|
-
if (-0.25 * Math.PI < angle && angle < 0.75 * Math.PI) {
|
|
26776
|
-
delta = -delta;
|
|
26777
|
-
}
|
|
26778
|
-
return delta;
|
|
26779
|
-
}
|
|
26780
|
-
function normalizeWheelEventDelta(evt) {
|
|
26781
|
-
const deltaMode = evt.deltaMode;
|
|
26782
|
-
let delta = normalizeWheelEventDirection(evt);
|
|
26783
|
-
const MOUSE_PIXELS_PER_LINE = 30;
|
|
26784
|
-
const MOUSE_LINES_PER_PAGE = 30;
|
|
26785
|
-
if (deltaMode === WheelEvent.DOM_DELTA_PIXEL) {
|
|
26786
|
-
delta /= MOUSE_PIXELS_PER_LINE * MOUSE_LINES_PER_PAGE;
|
|
26787
|
-
} else if (deltaMode === WheelEvent.DOM_DELTA_LINE) {
|
|
26788
|
-
delta /= MOUSE_LINES_PER_PAGE;
|
|
26789
|
-
}
|
|
26790
|
-
return delta;
|
|
26791
|
-
}
|
|
26792
26367
|
function isValidRotation(angle) {
|
|
26793
26368
|
return Number.isInteger(angle) && angle % 90 === 0;
|
|
26794
26369
|
}
|
|
@@ -26801,7 +26376,7 @@ function isValidSpreadMode(mode) {
|
|
|
26801
26376
|
function isPortraitOrientation(size) {
|
|
26802
26377
|
return size.width <= size.height;
|
|
26803
26378
|
}
|
|
26804
|
-
|
|
26379
|
+
new Promise(function (resolve) {
|
|
26805
26380
|
window.requestAnimationFrame(resolve);
|
|
26806
26381
|
});
|
|
26807
26382
|
const docStyle = document.documentElement.style;
|
|
@@ -26865,15 +26440,6 @@ class ProgressBar {
|
|
|
26865
26440
|
this.#classList.remove("hidden");
|
|
26866
26441
|
}
|
|
26867
26442
|
}
|
|
26868
|
-
function getActiveOrFocusedElement() {
|
|
26869
|
-
let curRoot = document;
|
|
26870
|
-
let curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(":focus");
|
|
26871
|
-
while (curActiveOrFocused?.shadowRoot) {
|
|
26872
|
-
curRoot = curActiveOrFocused.shadowRoot;
|
|
26873
|
-
curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(":focus");
|
|
26874
|
-
}
|
|
26875
|
-
return curActiveOrFocused;
|
|
26876
|
-
}
|
|
26877
26443
|
function apiPageLayoutToViewerModes(layout) {
|
|
26878
26444
|
let scrollMode = ScrollMode.VERTICAL,
|
|
26879
26445
|
spreadMode = SpreadMode.NONE;
|
|
@@ -26899,39 +26465,12 @@ function apiPageLayoutToViewerModes(layout) {
|
|
|
26899
26465
|
spreadMode
|
|
26900
26466
|
};
|
|
26901
26467
|
}
|
|
26902
|
-
function apiPageModeToSidebarView(mode) {
|
|
26903
|
-
switch (mode) {
|
|
26904
|
-
case "UseNone":
|
|
26905
|
-
return SidebarView.NONE;
|
|
26906
|
-
case "UseThumbs":
|
|
26907
|
-
return SidebarView.THUMBS;
|
|
26908
|
-
case "UseOutlines":
|
|
26909
|
-
return SidebarView.OUTLINE;
|
|
26910
|
-
case "UseAttachments":
|
|
26911
|
-
return SidebarView.ATTACHMENTS;
|
|
26912
|
-
case "UseOC":
|
|
26913
|
-
return SidebarView.LAYERS;
|
|
26914
|
-
}
|
|
26915
|
-
return SidebarView.NONE;
|
|
26916
|
-
}
|
|
26917
|
-
function toggleCheckedBtn(button, toggle, view = null) {
|
|
26918
|
-
button.classList.toggle("toggled", toggle);
|
|
26919
|
-
button.setAttribute("aria-checked", toggle);
|
|
26920
|
-
view?.classList.toggle("hidden", !toggle);
|
|
26921
|
-
}
|
|
26922
|
-
function toggleExpandedBtn(button, toggle, view = null) {
|
|
26923
|
-
button.classList.toggle("toggled", toggle);
|
|
26924
|
-
button.setAttribute("aria-expanded", toggle);
|
|
26925
|
-
view?.classList.toggle("hidden", !toggle);
|
|
26926
|
-
}
|
|
26927
26468
|
const calcRound = function () {
|
|
26928
26469
|
const e = document.createElement("div");
|
|
26929
26470
|
e.style.width = "round(down, calc(1.6666666666666665 * 792px), 1px)";
|
|
26930
26471
|
return e.style.width === "calc(1320px)" ? Math.fround : x => x;
|
|
26931
26472
|
}();
|
|
26932
26473
|
|
|
26933
|
-
;// ./web/pdf_find_utils.js
|
|
26934
|
-
|
|
26935
26474
|
const CharacterType = {
|
|
26936
26475
|
SPACE: 0,
|
|
26937
26476
|
ALPHA_LETTER: 1,
|
|
@@ -27004,8 +26543,6 @@ function getNormalizeWithNFKC() {
|
|
|
27004
26543
|
return NormalizeWithNFKC;
|
|
27005
26544
|
}
|
|
27006
26545
|
|
|
27007
|
-
;// ./web/pdf_find_controller.js
|
|
27008
|
-
|
|
27009
26546
|
|
|
27010
26547
|
const FindState = {
|
|
27011
26548
|
FOUND: 0,
|
|
@@ -27777,8 +27314,6 @@ class PDFFindController {
|
|
|
27777
27314
|
}
|
|
27778
27315
|
}
|
|
27779
27316
|
|
|
27780
|
-
;// ./web/pdf_link_service.js
|
|
27781
|
-
|
|
27782
27317
|
|
|
27783
27318
|
const DEFAULT_LINK_REL = "noopener noreferrer nofollow";
|
|
27784
27319
|
const LinkTarget = {
|
|
@@ -28072,8 +27607,6 @@ class PDFLinkService {
|
|
|
28072
27607
|
case "FirstPage":
|
|
28073
27608
|
this.page = 1;
|
|
28074
27609
|
break;
|
|
28075
|
-
default:
|
|
28076
|
-
break;
|
|
28077
27610
|
}
|
|
28078
27611
|
this.eventBus.dispatch("namedaction", {
|
|
28079
27612
|
source: this,
|
|
@@ -28097,8 +27630,6 @@ class SimpleLinkService extends PDFLinkService {
|
|
|
28097
27630
|
setDocument(pdfDocument, baseUrl = null) {}
|
|
28098
27631
|
}
|
|
28099
27632
|
|
|
28100
|
-
;// ./web/annotation_layer_builder.js
|
|
28101
|
-
|
|
28102
27633
|
|
|
28103
27634
|
class AnnotationLayerBuilder {
|
|
28104
27635
|
#annotations = null;
|
|
@@ -28323,8 +27854,6 @@ class AnnotationLayerBuilder {
|
|
|
28323
27854
|
}
|
|
28324
27855
|
}
|
|
28325
27856
|
|
|
28326
|
-
;// ./web/download_manager.js
|
|
28327
|
-
|
|
28328
27857
|
function download(blobUrl, filename) {
|
|
28329
27858
|
const a = document.createElement("a");
|
|
28330
27859
|
if (!a.click) {
|
|
@@ -28369,8 +27898,6 @@ class DownloadManager {
|
|
|
28369
27898
|
download(blobUrl, filename);
|
|
28370
27899
|
}
|
|
28371
27900
|
}
|
|
28372
|
-
|
|
28373
|
-
;// ./web/event_utils.js
|
|
28374
27901
|
const WaitOnType = {
|
|
28375
27902
|
EVENT: "event",
|
|
28376
27903
|
TIMEOUT: "timeout"
|
|
@@ -28380,7 +27907,7 @@ async function waitOnEventOrTimeout({
|
|
|
28380
27907
|
name,
|
|
28381
27908
|
delay = 0
|
|
28382
27909
|
}) {
|
|
28383
|
-
if (typeof target !== "object" ||
|
|
27910
|
+
if (typeof target !== "object" || false || !(Number.isInteger(delay) && delay >= 0)) {
|
|
28384
27911
|
throw new Error("waitOnEventOrTimeout - invalid parameters.");
|
|
28385
27912
|
}
|
|
28386
27913
|
const {
|
|
@@ -28476,22 +28003,6 @@ class EventBus {
|
|
|
28476
28003
|
}
|
|
28477
28004
|
}
|
|
28478
28005
|
}
|
|
28479
|
-
class FirefoxEventBus extends EventBus {
|
|
28480
|
-
#externalServices;
|
|
28481
|
-
#globalEventNames;
|
|
28482
|
-
#isInAutomation;
|
|
28483
|
-
constructor(globalEventNames, externalServices, isInAutomation) {
|
|
28484
|
-
super();
|
|
28485
|
-
this.#globalEventNames = globalEventNames;
|
|
28486
|
-
this.#externalServices = externalServices;
|
|
28487
|
-
this.#isInAutomation = isInAutomation;
|
|
28488
|
-
}
|
|
28489
|
-
dispatch(eventName, data) {
|
|
28490
|
-
throw new Error("Not implemented: FirefoxEventBus.dispatch");
|
|
28491
|
-
}
|
|
28492
|
-
}
|
|
28493
|
-
|
|
28494
|
-
;// ./node_modules/@fluent/bundle/esm/types.js
|
|
28495
28006
|
class FluentType {
|
|
28496
28007
|
constructor(value) {
|
|
28497
28008
|
this.value = value;
|
|
@@ -28587,7 +28098,6 @@ class FluentDateTime extends FluentType {
|
|
|
28587
28098
|
return this.value.toString();
|
|
28588
28099
|
}
|
|
28589
28100
|
}
|
|
28590
|
-
;// ./node_modules/@fluent/bundle/esm/resolver.js
|
|
28591
28101
|
|
|
28592
28102
|
const MAX_PLACEABLES = 100;
|
|
28593
28103
|
const FSI = "\u2068";
|
|
@@ -28807,7 +28317,6 @@ function resolvePattern(scope, value) {
|
|
|
28807
28317
|
}
|
|
28808
28318
|
return resolveComplexPattern(scope, value);
|
|
28809
28319
|
}
|
|
28810
|
-
;// ./node_modules/@fluent/bundle/esm/scope.js
|
|
28811
28320
|
class Scope {
|
|
28812
28321
|
constructor(bundle, errors, args) {
|
|
28813
28322
|
this.dirty = new WeakSet();
|
|
@@ -28836,7 +28345,6 @@ class Scope {
|
|
|
28836
28345
|
return cache[id];
|
|
28837
28346
|
}
|
|
28838
28347
|
}
|
|
28839
|
-
;// ./node_modules/@fluent/bundle/esm/builtins.js
|
|
28840
28348
|
|
|
28841
28349
|
function values(opts, allowed) {
|
|
28842
28350
|
const unwrapped = Object.create(null);
|
|
@@ -28877,7 +28385,6 @@ function DATETIME(args, opts) {
|
|
|
28877
28385
|
}
|
|
28878
28386
|
throw new TypeError("Invalid argument to DATETIME");
|
|
28879
28387
|
}
|
|
28880
|
-
;// ./node_modules/@fluent/bundle/esm/memoizer.js
|
|
28881
28388
|
const cache = new Map();
|
|
28882
28389
|
function getMemoizerForLocale(locales) {
|
|
28883
28390
|
const stringLocale = Array.isArray(locales) ? locales.join(" ") : locales;
|
|
@@ -28888,7 +28395,6 @@ function getMemoizerForLocale(locales) {
|
|
|
28888
28395
|
}
|
|
28889
28396
|
return memoizer;
|
|
28890
28397
|
}
|
|
28891
|
-
;// ./node_modules/@fluent/bundle/esm/bundle.js
|
|
28892
28398
|
|
|
28893
28399
|
|
|
28894
28400
|
|
|
@@ -28957,7 +28463,6 @@ class FluentBundle {
|
|
|
28957
28463
|
}
|
|
28958
28464
|
}
|
|
28959
28465
|
}
|
|
28960
|
-
;// ./node_modules/@fluent/bundle/esm/resource.js
|
|
28961
28466
|
const RE_MESSAGE_START = /^(-?[a-zA-Z][\w-]*) *= */gm;
|
|
28962
28467
|
const RE_ATTRIBUTE_START = /\.([a-zA-Z][\w-]*) *= */y;
|
|
28963
28468
|
const RE_VARIANT_START = /\*?\[/y;
|
|
@@ -29336,11 +28841,6 @@ class Indent {
|
|
|
29336
28841
|
this.length = length;
|
|
29337
28842
|
}
|
|
29338
28843
|
}
|
|
29339
|
-
;// ./node_modules/@fluent/bundle/esm/index.js
|
|
29340
|
-
|
|
29341
|
-
|
|
29342
|
-
|
|
29343
|
-
;// ./node_modules/@fluent/dom/esm/overlay.js
|
|
29344
28844
|
const reOverlay = /<|&#?\w+;/;
|
|
29345
28845
|
const TEXT_LEVEL_ELEMENTS = {
|
|
29346
28846
|
"http://www.w3.org/1999/xhtml": ["em", "strong", "small", "s", "cite", "q", "dfn", "abbr", "data", "time", "code", "var", "samp", "kbd", "sub", "sup", "i", "b", "u", "mark", "bdi", "bdo", "span", "br", "wbr"]
|
|
@@ -29491,7 +28991,6 @@ function shallowPopulateUsing(fromElement, toElement) {
|
|
|
29491
28991
|
overlayAttributes(fromElement, toElement);
|
|
29492
28992
|
return toElement;
|
|
29493
28993
|
}
|
|
29494
|
-
;// ./node_modules/cached-iterable/src/cached_iterable.mjs
|
|
29495
28994
|
class CachedIterable extends Array {
|
|
29496
28995
|
static from(iterable) {
|
|
29497
28996
|
if (iterable instanceof this) {
|
|
@@ -29500,42 +28999,6 @@ class CachedIterable extends Array {
|
|
|
29500
28999
|
return new this(iterable);
|
|
29501
29000
|
}
|
|
29502
29001
|
}
|
|
29503
|
-
;// ./node_modules/cached-iterable/src/cached_sync_iterable.mjs
|
|
29504
|
-
|
|
29505
|
-
class CachedSyncIterable extends CachedIterable {
|
|
29506
|
-
constructor(iterable) {
|
|
29507
|
-
super();
|
|
29508
|
-
if (Symbol.iterator in Object(iterable)) {
|
|
29509
|
-
this.iterator = iterable[Symbol.iterator]();
|
|
29510
|
-
} else {
|
|
29511
|
-
throw new TypeError("Argument must implement the iteration protocol.");
|
|
29512
|
-
}
|
|
29513
|
-
}
|
|
29514
|
-
[Symbol.iterator]() {
|
|
29515
|
-
const cached = this;
|
|
29516
|
-
let cur = 0;
|
|
29517
|
-
return {
|
|
29518
|
-
next() {
|
|
29519
|
-
if (cached.length <= cur) {
|
|
29520
|
-
cached.push(cached.iterator.next());
|
|
29521
|
-
}
|
|
29522
|
-
return cached[cur++];
|
|
29523
|
-
}
|
|
29524
|
-
};
|
|
29525
|
-
}
|
|
29526
|
-
touchNext(count = 1) {
|
|
29527
|
-
let idx = 0;
|
|
29528
|
-
while (idx++ < count) {
|
|
29529
|
-
const last = this[this.length - 1];
|
|
29530
|
-
if (last && last.done) {
|
|
29531
|
-
break;
|
|
29532
|
-
}
|
|
29533
|
-
this.push(this.iterator.next());
|
|
29534
|
-
}
|
|
29535
|
-
return this[this.length - 1];
|
|
29536
|
-
}
|
|
29537
|
-
}
|
|
29538
|
-
;// ./node_modules/cached-iterable/src/cached_async_iterable.mjs
|
|
29539
29002
|
|
|
29540
29003
|
class CachedAsyncIterable extends CachedIterable {
|
|
29541
29004
|
constructor(iterable) {
|
|
@@ -29572,10 +29035,6 @@ class CachedAsyncIterable extends CachedIterable {
|
|
|
29572
29035
|
return this[this.length - 1];
|
|
29573
29036
|
}
|
|
29574
29037
|
}
|
|
29575
|
-
;// ./node_modules/cached-iterable/src/index.mjs
|
|
29576
|
-
|
|
29577
|
-
|
|
29578
|
-
;// ./node_modules/@fluent/dom/esm/localization.js
|
|
29579
29038
|
|
|
29580
29039
|
class Localization {
|
|
29581
29040
|
constructor(resourceIds = [], generateBundles) {
|
|
@@ -29690,7 +29149,6 @@ function keysFromBundle(method, bundle, keys, translations) {
|
|
|
29690
29149
|
});
|
|
29691
29150
|
return missingIds;
|
|
29692
29151
|
}
|
|
29693
|
-
;// ./node_modules/@fluent/dom/esm/dom_localization.js
|
|
29694
29152
|
|
|
29695
29153
|
|
|
29696
29154
|
const L10NID_ATTR_NAME = "data-l10n-id";
|
|
@@ -29853,10 +29311,6 @@ class DOMLocalization extends Localization {
|
|
|
29853
29311
|
};
|
|
29854
29312
|
}
|
|
29855
29313
|
}
|
|
29856
|
-
;// ./node_modules/@fluent/dom/esm/index.js
|
|
29857
|
-
|
|
29858
|
-
|
|
29859
|
-
;// ./web/l10n.js
|
|
29860
29314
|
class L10n {
|
|
29861
29315
|
#dir;
|
|
29862
29316
|
#elements;
|
|
@@ -29948,9 +29402,6 @@ class L10n {
|
|
|
29948
29402
|
return ["ar", "he", "fa", "ps", "ur"].includes(shortCode);
|
|
29949
29403
|
}
|
|
29950
29404
|
}
|
|
29951
|
-
const GenericL10n = null;
|
|
29952
|
-
|
|
29953
|
-
;// ./web/genericl10n.js
|
|
29954
29405
|
|
|
29955
29406
|
|
|
29956
29407
|
|
|
@@ -29961,7 +29412,7 @@ function PLATFORM() {
|
|
|
29961
29412
|
isLinux,
|
|
29962
29413
|
isMac,
|
|
29963
29414
|
isWindows
|
|
29964
|
-
} = FeatureTest
|
|
29415
|
+
} = FeatureTest.platform;
|
|
29965
29416
|
if (isLinux) {
|
|
29966
29417
|
return "linux";
|
|
29967
29418
|
}
|
|
@@ -30054,8 +29505,6 @@ class genericl10n_GenericL10n extends L10n {
|
|
|
30054
29505
|
}
|
|
30055
29506
|
}
|
|
30056
29507
|
|
|
30057
|
-
;// ./web/pdf_history.js
|
|
30058
|
-
|
|
30059
29508
|
|
|
30060
29509
|
|
|
30061
29510
|
const HASH_CHANGE_TIMEOUT = 1000;
|
|
@@ -30304,7 +29753,7 @@ class PDFHistory {
|
|
|
30304
29753
|
if (this._destination.hash === position.hash) {
|
|
30305
29754
|
return;
|
|
30306
29755
|
}
|
|
30307
|
-
if (!this._destination.page && (
|
|
29756
|
+
if (!this._destination.page && (this._numPositionUpdates <= POSITION_UPDATED_THRESHOLD)) {
|
|
30308
29757
|
return;
|
|
30309
29758
|
}
|
|
30310
29759
|
let forceReplace = false;
|
|
@@ -30387,10 +29836,10 @@ class PDFHistory {
|
|
|
30387
29836
|
if (this._popStateInProgress) {
|
|
30388
29837
|
return;
|
|
30389
29838
|
}
|
|
30390
|
-
if (
|
|
29839
|
+
if (this._isPagesLoaded && this._destination && !this._destination.page) {
|
|
30391
29840
|
this._numPositionUpdates++;
|
|
30392
29841
|
}
|
|
30393
|
-
|
|
29842
|
+
{
|
|
30394
29843
|
this._updateViewareaTimeout = setTimeout(() => {
|
|
30395
29844
|
if (!this._popStateInProgress) {
|
|
30396
29845
|
this.#tryPushCurrentPosition(true);
|
|
@@ -30525,8 +29974,6 @@ function isDestArraysEqual(firstDest, secondDest) {
|
|
|
30525
29974
|
return true;
|
|
30526
29975
|
}
|
|
30527
29976
|
|
|
30528
|
-
;// ./web/annotation_editor_layer_builder.js
|
|
30529
|
-
|
|
30530
29977
|
|
|
30531
29978
|
class AnnotationEditorLayerBuilder {
|
|
30532
29979
|
#annotationLayer = null;
|
|
@@ -30618,8 +30065,6 @@ class AnnotationEditorLayerBuilder {
|
|
|
30618
30065
|
this.annotationEditorLayer.pause(false);
|
|
30619
30066
|
}
|
|
30620
30067
|
}
|
|
30621
|
-
|
|
30622
|
-
;// ./web/app_options.js
|
|
30623
30068
|
{
|
|
30624
30069
|
var compatParams = new Map();
|
|
30625
30070
|
const {
|
|
@@ -31067,8 +30512,6 @@ class AppOptions {
|
|
|
31067
30512
|
}
|
|
31068
30513
|
}
|
|
31069
30514
|
|
|
31070
|
-
;// ./web/autolinker.js
|
|
31071
|
-
|
|
31072
30515
|
|
|
31073
30516
|
function DOMRectToPDF({
|
|
31074
30517
|
width,
|
|
@@ -31195,8 +30638,6 @@ class Autolinker {
|
|
|
31195
30638
|
}
|
|
31196
30639
|
}
|
|
31197
30640
|
|
|
31198
|
-
;// ./web/base_pdf_page_view.js
|
|
31199
|
-
|
|
31200
30641
|
|
|
31201
30642
|
class BasePDFPageView {
|
|
31202
30643
|
#loadingId = null;
|
|
@@ -31400,8 +30841,6 @@ class BasePDFPageView {
|
|
|
31400
30841
|
}
|
|
31401
30842
|
}
|
|
31402
30843
|
|
|
31403
|
-
;// ./web/draw_layer_builder.js
|
|
31404
|
-
|
|
31405
30844
|
class DrawLayerBuilder {
|
|
31406
30845
|
#drawLayer = null;
|
|
31407
30846
|
constructor(options) {
|
|
@@ -31433,8 +30872,6 @@ class DrawLayerBuilder {
|
|
|
31433
30872
|
}
|
|
31434
30873
|
}
|
|
31435
30874
|
|
|
31436
|
-
;// ./web/pdf_page_detail_view.js
|
|
31437
|
-
|
|
31438
30875
|
|
|
31439
30876
|
|
|
31440
30877
|
class PDFPageDetailView extends BasePDFPageView {
|
|
@@ -31643,8 +31080,6 @@ class PDFPageDetailView extends BasePDFPageView {
|
|
|
31643
31080
|
}
|
|
31644
31081
|
}
|
|
31645
31082
|
|
|
31646
|
-
;// ./web/struct_tree_layer_builder.js
|
|
31647
|
-
|
|
31648
31083
|
|
|
31649
31084
|
const PDF_ROLE_TO_HTML_ROLE = {
|
|
31650
31085
|
Document: null,
|
|
@@ -31692,7 +31127,7 @@ const MathMLElements = new Set(["math", "merror", "mfrac", "mi", "mmultiscripts"
|
|
|
31692
31127
|
const MathMLNamespace = "http://www.w3.org/1998/Math/MathML";
|
|
31693
31128
|
class MathMLSanitizer {
|
|
31694
31129
|
static get sanitizer() {
|
|
31695
|
-
return shadow(this, "sanitizer", FeatureTest
|
|
31130
|
+
return shadow(this, "sanitizer", FeatureTest.isSanitizerSupported ? new Sanitizer({
|
|
31696
31131
|
elements: [...MathMLElements].map(name => ({
|
|
31697
31132
|
name,
|
|
31698
31133
|
namespace: MathMLNamespace
|
|
@@ -31878,8 +31313,6 @@ class StructTreeLayerBuilder {
|
|
|
31878
31313
|
}
|
|
31879
31314
|
}
|
|
31880
31315
|
|
|
31881
|
-
;// ./web/text_accessibility.js
|
|
31882
|
-
|
|
31883
31316
|
class TextAccessibilityManager {
|
|
31884
31317
|
#enabled = false;
|
|
31885
31318
|
#textChildren = null;
|
|
@@ -31892,7 +31325,7 @@ class TextAccessibilityManager {
|
|
|
31892
31325
|
const rect1 = e1.getBoundingClientRect();
|
|
31893
31326
|
const rect2 = e2.getBoundingClientRect();
|
|
31894
31327
|
if (rect1.width === 0 && rect1.height === 0) {
|
|
31895
|
-
return
|
|
31328
|
+
return 1;
|
|
31896
31329
|
}
|
|
31897
31330
|
if (rect2.width === 0 && rect2.height === 0) {
|
|
31898
31331
|
return -1;
|
|
@@ -31907,7 +31340,7 @@ class TextAccessibilityManager {
|
|
|
31907
31340
|
return -1;
|
|
31908
31341
|
}
|
|
31909
31342
|
if (mid2 <= top1 && mid1 >= bot2) {
|
|
31910
|
-
return
|
|
31343
|
+
return 1;
|
|
31911
31344
|
}
|
|
31912
31345
|
const centerX1 = rect1.x + rect1.width / 2;
|
|
31913
31346
|
const centerX2 = rect2.x + rect2.width / 2;
|
|
@@ -32028,8 +31461,6 @@ class TextAccessibilityManager {
|
|
|
32028
31461
|
return id;
|
|
32029
31462
|
}
|
|
32030
31463
|
}
|
|
32031
|
-
|
|
32032
|
-
;// ./web/text_highlighter.js
|
|
32033
31464
|
class TextHighlighter {
|
|
32034
31465
|
#eventAbortController = null;
|
|
32035
31466
|
constructor({
|
|
@@ -32134,7 +31565,6 @@ class TextHighlighter {
|
|
|
32134
31565
|
const highlightAll = findController.state.highlightAll;
|
|
32135
31566
|
let prevEnd = null;
|
|
32136
31567
|
const infinity = {
|
|
32137
|
-
divIdx: -1,
|
|
32138
31568
|
offset: undefined
|
|
32139
31569
|
};
|
|
32140
31570
|
function beginText(begin, className) {
|
|
@@ -32256,8 +31686,6 @@ class TextHighlighter {
|
|
|
32256
31686
|
}
|
|
32257
31687
|
}
|
|
32258
31688
|
|
|
32259
|
-
;// ./web/text_layer_builder.js
|
|
32260
|
-
|
|
32261
31689
|
|
|
32262
31690
|
class TextLayerBuilder {
|
|
32263
31691
|
#enablePermissions = false;
|
|
@@ -32456,8 +31884,6 @@ class TextLayerBuilder {
|
|
|
32456
31884
|
}
|
|
32457
31885
|
}
|
|
32458
31886
|
|
|
32459
|
-
;// ./web/xfa_layer_builder.js
|
|
32460
|
-
|
|
32461
31887
|
class XfaLayerBuilder {
|
|
32462
31888
|
constructor({
|
|
32463
31889
|
pdfPage,
|
|
@@ -32525,8 +31951,6 @@ class XfaLayerBuilder {
|
|
|
32525
31951
|
}
|
|
32526
31952
|
}
|
|
32527
31953
|
|
|
32528
|
-
;// ./web/pdf_page_view.js
|
|
32529
|
-
|
|
32530
31954
|
|
|
32531
31955
|
|
|
32532
31956
|
|
|
@@ -32820,7 +32244,6 @@ class PDFPageView extends BasePDFPageView {
|
|
|
32820
32244
|
this._textHighlighter.enable();
|
|
32821
32245
|
}
|
|
32822
32246
|
async #injectLinkAnnotations(textLayerPromise) {
|
|
32823
|
-
let error = null;
|
|
32824
32247
|
try {
|
|
32825
32248
|
await textLayerPromise;
|
|
32826
32249
|
if (!this.annotationLayer) {
|
|
@@ -32829,7 +32252,6 @@ class PDFPageView extends BasePDFPageView {
|
|
|
32829
32252
|
await this.annotationLayer.injectLinkAnnotations(Autolinker.processLinks(this));
|
|
32830
32253
|
} catch (ex) {
|
|
32831
32254
|
console.error("#injectLinkAnnotations:", ex);
|
|
32832
|
-
error = ex;
|
|
32833
32255
|
}
|
|
32834
32256
|
}
|
|
32835
32257
|
_resetCanvas() {
|
|
@@ -33329,8 +32751,6 @@ class PDFPageView extends BasePDFPageView {
|
|
|
33329
32751
|
}
|
|
33330
32752
|
}
|
|
33331
32753
|
|
|
33332
|
-
;// ./web/generic_scripting.js
|
|
33333
|
-
|
|
33334
32754
|
async function docProperties(pdfDocument) {
|
|
33335
32755
|
const url = "",
|
|
33336
32756
|
baseUrl = "";
|
|
@@ -33377,8 +32797,6 @@ class GenericScripting {
|
|
|
33377
32797
|
}
|
|
33378
32798
|
}
|
|
33379
32799
|
|
|
33380
|
-
;// ./web/pdf_scripting_manager.js
|
|
33381
|
-
|
|
33382
32800
|
|
|
33383
32801
|
class PDFScriptingManager {
|
|
33384
32802
|
#closeCapability = null;
|
|
@@ -33742,8 +33160,6 @@ class PDFScriptingManager {
|
|
|
33742
33160
|
}
|
|
33743
33161
|
}
|
|
33744
33162
|
|
|
33745
|
-
;// ./web/pdf_scripting_manager.component.js
|
|
33746
|
-
|
|
33747
33163
|
|
|
33748
33164
|
class PDFScriptingManagerComponents extends PDFScriptingManager {
|
|
33749
33165
|
constructor(options) {
|
|
@@ -33763,8 +33179,6 @@ class PDFScriptingManagerComponents extends PDFScriptingManager {
|
|
|
33763
33179
|
}
|
|
33764
33180
|
}
|
|
33765
33181
|
|
|
33766
|
-
;// ./web/pdf_rendering_queue.js
|
|
33767
|
-
|
|
33768
33182
|
|
|
33769
33183
|
const CLEANUP_TIMEOUT = 30000;
|
|
33770
33184
|
class PDFRenderingQueue {
|
|
@@ -33888,8 +33302,6 @@ class PDFRenderingQueue {
|
|
|
33888
33302
|
}
|
|
33889
33303
|
}
|
|
33890
33304
|
|
|
33891
|
-
;// ./web/pdf_viewer.js
|
|
33892
|
-
|
|
33893
33305
|
|
|
33894
33306
|
|
|
33895
33307
|
|
|
@@ -35592,8 +35004,6 @@ class PDFViewer {
|
|
|
35592
35004
|
}
|
|
35593
35005
|
}
|
|
35594
35006
|
|
|
35595
|
-
;// ./web/pdf_single_page_viewer.js
|
|
35596
|
-
|
|
35597
35007
|
|
|
35598
35008
|
class PDFSinglePageViewer extends PDFViewer {
|
|
35599
35009
|
_resetView() {
|
|
@@ -35607,8 +35017,6 @@ class PDFSinglePageViewer extends PDFViewer {
|
|
|
35607
35017
|
_updateSpreadMode() {}
|
|
35608
35018
|
}
|
|
35609
35019
|
|
|
35610
|
-
;// ./web/pdf_viewer.component.js
|
|
35611
|
-
|
|
35612
35020
|
|
|
35613
35021
|
|
|
35614
35022
|
|
|
@@ -35729,39 +35137,6 @@ function getDefaultExportFromCjs (x) {
|
|
|
35729
35137
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
35730
35138
|
}
|
|
35731
35139
|
|
|
35732
|
-
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
35733
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
35734
|
-
}
|
|
35735
|
-
|
|
35736
|
-
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
35737
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
35738
|
-
}
|
|
35739
|
-
|
|
35740
|
-
function getAugmentedNamespace(n) {
|
|
35741
|
-
if (n.__esModule) return n;
|
|
35742
|
-
var f = n.default;
|
|
35743
|
-
if (typeof f == "function") {
|
|
35744
|
-
var a = function a () {
|
|
35745
|
-
if (this instanceof a) {
|
|
35746
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
35747
|
-
}
|
|
35748
|
-
return f.apply(this, arguments);
|
|
35749
|
-
};
|
|
35750
|
-
a.prototype = f.prototype;
|
|
35751
|
-
} else a = {};
|
|
35752
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
35753
|
-
Object.keys(n).forEach(function (k) {
|
|
35754
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
35755
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
35756
|
-
enumerable: true,
|
|
35757
|
-
get: function () {
|
|
35758
|
-
return n[k];
|
|
35759
|
-
}
|
|
35760
|
-
});
|
|
35761
|
-
});
|
|
35762
|
-
return a;
|
|
35763
|
-
}
|
|
35764
|
-
|
|
35765
35140
|
/*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
|
35766
35141
|
|
|
35767
35142
|
var axios_1;
|
|
@@ -35770,7 +35145,6 @@ var hasRequiredAxios;
|
|
|
35770
35145
|
function requireAxios () {
|
|
35771
35146
|
if (hasRequiredAxios) return axios_1;
|
|
35772
35147
|
hasRequiredAxios = 1;
|
|
35773
|
-
'use strict';
|
|
35774
35148
|
|
|
35775
35149
|
/**
|
|
35776
35150
|
* Create a bound version of a function with a specified `this` context
|
|
@@ -37268,7 +36642,7 @@ function requireAxios () {
|
|
|
37268
36642
|
function stringifySafely(rawValue, parser, encoder) {
|
|
37269
36643
|
if (utils$1.isString(rawValue)) {
|
|
37270
36644
|
try {
|
|
37271
|
-
(
|
|
36645
|
+
(0, JSON.parse)(rawValue);
|
|
37272
36646
|
return utils$1.trim(rawValue);
|
|
37273
36647
|
} catch (e) {
|
|
37274
36648
|
if (e.name !== 'SyntaxError') {
|
|
@@ -38481,7 +37855,7 @@ function requireAxios () {
|
|
|
38481
37855
|
const streamChunk = function* (chunk, chunkSize) {
|
|
38482
37856
|
let len = chunk.byteLength;
|
|
38483
37857
|
|
|
38484
|
-
if (
|
|
37858
|
+
if (len < chunkSize) {
|
|
38485
37859
|
yield chunk;
|
|
38486
37860
|
return;
|
|
38487
37861
|
}
|
|
@@ -39690,15 +39064,7 @@ var axios = /*@__PURE__*/getDefaultExportFromCjs(axiosExports);
|
|
|
39690
39064
|
////////////////////////////////////////////////////////////////////////
|
|
39691
39065
|
const Parameters = {
|
|
39692
39066
|
endpoints: {
|
|
39693
|
-
graphQL: "https://dypxviim4zgwtpev7valhchaem.appsync-api.eu-west-2.amazonaws.com/graphql"
|
|
39694
|
-
wssHost: "dypxviim4zgwtpev7valhchaem.appsync-api.eu-west-2.amazonaws.com",
|
|
39695
|
-
wssRealTime: 'wss://dypxviim4zgwtpev7valhchaem.appsync-realtime-api.eu-west-2.amazonaws.com/graphql'
|
|
39696
|
-
},
|
|
39697
|
-
buckets: {
|
|
39698
|
-
region: "eu-west-2",
|
|
39699
|
-
clearing: "lon-files-clearing",
|
|
39700
|
-
},
|
|
39701
|
-
};
|
|
39067
|
+
graphQL: "https://dypxviim4zgwtpev7valhchaem.appsync-api.eu-west-2.amazonaws.com/graphql"}};
|
|
39702
39068
|
|
|
39703
39069
|
// Construct all mutations for a template element.
|
|
39704
39070
|
const createElement = element => {
|
|
@@ -39822,23 +39188,6 @@ const swapRoles = (roleId1, roleId2) => {
|
|
|
39822
39188
|
})
|
|
39823
39189
|
}`;
|
|
39824
39190
|
};
|
|
39825
|
-
const getTemplateRoles = (id) => {
|
|
39826
|
-
return `
|
|
39827
|
-
query LDVGetTemplate {
|
|
39828
|
-
template(id: "${id}") {
|
|
39829
|
-
roles{
|
|
39830
|
-
id
|
|
39831
|
-
name
|
|
39832
|
-
roleType
|
|
39833
|
-
signerIndex
|
|
39834
|
-
ordinal
|
|
39835
|
-
signerParent
|
|
39836
|
-
experience
|
|
39837
|
-
}
|
|
39838
|
-
}
|
|
39839
|
-
}
|
|
39840
|
-
`;
|
|
39841
|
-
};
|
|
39842
39191
|
|
|
39843
39192
|
class LsDocumentAdapter {
|
|
39844
39193
|
endpoint;
|
|
@@ -40020,10 +39369,14 @@ const getGroupData = (id) => {
|
|
|
40020
39369
|
|
|
40021
39370
|
const lsDocumentViewerCss = () => `*,*::before,*::after{box-sizing:border-box}*{margin:0}@media (prefers-reduced-motion: no-preference){html{interpolate-size:allow-keywords}}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}#root,#__next{isolation:isolate}:host{display:flex;flex-direction:row;width:100vw;height:100vh;margin:0px;padding:0px}.left-slot-wrapper{position:fixed;top:0.375rem;left:0.675rem;z-index:2000}slot{justify-content:center;align-items:center;border-radius:1rem;font-size:0.75rem;font-style:normal;font-weight:500;line-height:1.25rem;width:fit-content;background-color:var(--green-30, #9df5d4);color:var(--green-100, #125241)}.right-slot-wrapper{position:fixed;top:0.375rem;right:0.675rem;z-index:2000}.validation-tag-wrapper{position:fixed;top:0.375rem;right:0.375rem;z-index:2000}#my-field-panel{position:relative;height:calc(100% - 4.313rem)}.leftBox{position:relative;border-radius:1rem;border:1px solid var(--gray-30, #edeff2);background:var(--white, #fff);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);width:21.25rem;margin:1rem;min-width:21.25rem;max-height:100%;z-index:1000;left:0;top:0}.left-box-inner{position:relative;display:flex;height:100%;padding:0.75rem;gap:0.75rem}.rightBox{border:1px gray solid;width:29.375rem;min-width:24.375rem;padding:0.25rem;font-family:inherit}.toolbox{display:flex;flex-direction:column;width:100%;height:100%;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--gray-10, #f7f8fa);padding:0.75rem;gap:1rem;overflow-y:auto}.compose-toolbox{display:flex;flex-direction:column;width:100%;height:100%;overflow:none;border-radius:0;border:none;background:white;padding:0.25rem}.recipients-box{position:relative;display:flex;flex-direction:column;gap:0.75rem;overflow-y:auto;width:calc(100% + 0.25rem);padding:0.75rem 0.25rem 0.25rem 0.25rem}.scroll-gradient-top{position:absolute;top:5.9375rem;left:0;width:100%;height:1rem;background:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));pointer-events:none;z-index:100}.scroll-gradient-bottom{position:absolute;bottom:1rem;left:0.75rem;width:calc(100% - 1.5rem);height:1rem;background:linear-gradient(to top, white, rgba(255, 255, 255, 0));pointer-events:none;z-index:100}.ls-editor-infobox{padding:0.125rem 0.5rem 0.125rem 0.5rem}#pdf-canvas{top:0px;left:0px;width:6.25rem;height:6.25rem;box-shadow:0 0.5rem 2rem 0 rgba(0, 0, 0, 0.12)}#ls-mid-area{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;width:100vw;height:100%}.document-frame-wrapper{display:flex;flex-direction:column;justify-content:start;align-items:start;overflow:visible;max-height:100%;width:100vw;overflow:scroll;padding:5rem 23.75rem 2rem 23.75rem}#ls-document-frame{position:relative;height:98vh;margin-right:auto;margin-left:auto}.prevButton{position:relative;bottom:1.875rem}.nextButton{position:relative;bottom:1.875rem}.fieldBox{z-index:1000}#ls-box-selector{position:absolute;visibility:hidden;background-color:transparent;border:1px rgba(71, 71, 71, 0.716) dashed}#ls-editor-form{display:flex;width:100vw;height:calc(100vh - 2.25rem);position:relative;background:var(--gray-10, #f7f8fa);box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.04) inset, 0 10px 15px 0 rgba(0, 0, 0, 0.04) inset}.hidden{visibility:hidden;display:none;width:0px}.toolbox-section-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.75rem;}.toolbox-section-description{color:var(--gray-80, #5e6066);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem}.fields-box{display:flex;flex-direction:column;gap:0.75rem}.page-header{display:flex;height:2.25rem;gap:0.5rem;padding:0.25rem 0.75rem;justify-content:center;align-items:center}.header-text-1{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.header-text-2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem}.properties-header{display:flex;padding:1rem;gap:0.75rem;align-items:center;border-bottom:1px solid var(--gray-20, #edeff2)}.properties-header-title{color:var(--gray-100, #45484d);width:100%;font-size:1.5rem;font-style:normal;font-weight:500;line-height:2rem;}.properties-header-icon{display:flex;padding:0.5rem;border-radius:0.625rem;background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.expand-fields-row{display:flex;align-items:center;gap:0.5rem;padding:0.5rem;cursor:pointer;color:var(--gray-80, #6c6e73);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.expand-fields-row p{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem;}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:2.25rem}.input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.field-properties-outer{position:relative;height:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
|
|
40022
39371
|
|
|
40023
|
-
GlobalWorkerOptions
|
|
40024
|
-
const LsDocumentViewer = class {
|
|
40025
|
-
constructor(
|
|
40026
|
-
|
|
39372
|
+
GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@5.4.449/build/pdf.worker.min.mjs`;
|
|
39373
|
+
const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentViewer extends H {
|
|
39374
|
+
constructor(registerHost) {
|
|
39375
|
+
super();
|
|
39376
|
+
if (registerHost !== false) {
|
|
39377
|
+
this.__registerHost();
|
|
39378
|
+
}
|
|
39379
|
+
this.__attachShadow();
|
|
40027
39380
|
this.pageRendered = createEvent(this, "pageRendered", 7);
|
|
40028
39381
|
this.pageChange = createEvent(this, "pageChange", 7);
|
|
40029
39382
|
this.selectFields = createEvent(this, "selectFields", 7);
|
|
@@ -40032,7 +39385,7 @@ const LsDocumentViewer = class {
|
|
|
40032
39385
|
this.validate = createEvent(this, "validate", 7);
|
|
40033
39386
|
this.addParticipant = createEvent(this, "addParticipant", 7);
|
|
40034
39387
|
}
|
|
40035
|
-
get component() { return
|
|
39388
|
+
get component() { return this; }
|
|
40036
39389
|
isPageRendering;
|
|
40037
39390
|
pdfDocument;
|
|
40038
39391
|
pageNumPending = null;
|
|
@@ -40423,7 +39776,7 @@ const LsDocumentViewer = class {
|
|
|
40423
39776
|
}
|
|
40424
39777
|
}
|
|
40425
39778
|
loadAndRender(src) {
|
|
40426
|
-
getDocument
|
|
39779
|
+
getDocument(src).promise.then((pdfDocument) => {
|
|
40427
39780
|
this.pdfDocument = pdfDocument;
|
|
40428
39781
|
this.renderPage(this.pageNum);
|
|
40429
39782
|
});
|
|
@@ -40446,13 +39799,7 @@ const LsDocumentViewer = class {
|
|
|
40446
39799
|
this.unselect();
|
|
40447
39800
|
}
|
|
40448
39801
|
if (getApiType(update.data) === 'element') {
|
|
40449
|
-
if (update.action === 'create')
|
|
40450
|
-
// const newData = { ...update.data, page: this.pageNum };
|
|
40451
|
-
// addField.bind(this)(this.component.shadowRoot.getElementById('ls-document-frame'), newData);
|
|
40452
|
-
//const newField = this.component.shadowRoot.getElementById('ls-field-' + update.data.id) as HTMLLsEditorFieldElement;
|
|
40453
|
-
//this.selected = [newField];
|
|
40454
|
-
//this.selectFields.emit([newData as LSApiElement]);
|
|
40455
|
-
}
|
|
39802
|
+
if (update.action === 'create') ;
|
|
40456
39803
|
else if (update.action === 'update') {
|
|
40457
39804
|
const fi = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
|
|
40458
39805
|
if (fi) {
|
|
@@ -40574,7 +39921,7 @@ const LsDocumentViewer = class {
|
|
|
40574
39921
|
return this.filtertoolbox === null || this.filtertoolbox.split('|').includes(fieldFormType);
|
|
40575
39922
|
}
|
|
40576
39923
|
render() {
|
|
40577
|
-
return (h(Host, { key: '
|
|
39924
|
+
return (h(Host, { key: '1c2056f695e2524d4528d48d275569f86ada5dde' }, h(h.Fragment, null, this.isLoading && h("ls-page-loader", { key: '604a97119f77b1a467dac7d0fa19225d5323a158' }), h("div", { key: 'a29bfd38955a3bf60370a5a3f96f5dd9288437b2', class: "page-header" }, h("div", { key: 'aea8ff00971dbef53b97130acb5bf3c90bf628ed', class: 'left-slot-wrapper' }, h("slot", { key: 'e9e381f10a9d63e50a95c7e1082ea216d8381550', name: "left-button" })), h("div", { key: '67e835295874fbb28d32a4314988552ff2c45ca4', class: 'right-slot-wrapper' }, h("slot", { key: '75b2ff60984537335aa2e182e1e226d81d80f442', name: "right-button" })), this.mode === 'editor' && (h("div", { key: '2361287fa8d93d6f10491e733cc73aa49dc3a583' }, h("span", { key: '4247dcce8529f094cd476152b1ffb434fe3421c4', class: "header-text-1" }, "Template Creation"), h("span", { key: '99940da3e2a59b65abf762925ac90ef05146dce7' }, "/"), h("span", { key: 'fcb3cd83693fa978699a0e548bfef0816c67f734', class: "header-text-2" }, this._template?.title))), this.mode === 'compose' && (h("div", { key: '365595a842926021a4a04122b89e0422796e2d7b', style: { display: 'flex', alignItems: 'center', gap: '0.25rem' } }, h("span", { key: 'c23263e87e2cf30119eb2e995eae9cdb827be6b8', class: "header-text-1" }, "Compose")))), this.mode === 'editor' && (h("div", { key: '4c2db6783aef2b9856643a1e07fbf14308e1e556', class: 'validation-tag-wrapper' }, h("ls-validation-tag", { key: '2876ba1dec573b8ae5e31db11359a68e63f59ebf', validationErrors: this.validationErrors }))), h("form", { key: 'af9ffc26ade5a1b310c431996e931e5cfa4f5123', id: "ls-editor-form" }, this.mode !== 'preview' ? (h("div", { id: "ls-left-box", class: "leftBox", style: this.mode === 'compose' ? { borderRadius: '1.75rem' } : {} }, h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, this.mode === 'editor' && (h("ls-feature-column", { mode: this.mode, onManage: manager => {
|
|
40578
39925
|
if (manager.detail === 'document') {
|
|
40579
39926
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
40580
39927
|
documentManager.template = this._template;
|
|
@@ -40592,14 +39939,290 @@ const LsDocumentViewer = class {
|
|
|
40592
39939
|
this._recipients.map(recipient => (h("ls-recipient-card", { recipient: recipient, activeRecipient: this.signer, filtertoolbox: this.filtertoolbox, template: this._template, validationErrors: this.validationErrors, fieldTypeSelected: this.fieldTypeSelected, "data-signer-index": recipient.signerIndex }))), h("slot", { name: 'recipient-panel' })))), !this.displayTable && (h("div", { class: this.selected.length > 0 ? 'field-properties-outer' : 'hidden' }, h("div", { class: 'properties-header' }, h("div", { class: 'properties-header-icon' }, h("ls-icon", { name: "pre-filled-content" })), h("h1", { class: 'properties-header-title' }, "Field Properties"), h("button", { class: 'tertiaryGrey', onClick: e => {
|
|
40593
39940
|
this.selected = [];
|
|
40594
39941
|
e.preventDefault();
|
|
40595
|
-
}, "data-tooltip": "Close Properties Panel" }, h("ls-icon", { name: "x", size: "1.25rem" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("ls-toolbar", { key: '
|
|
39942
|
+
}, "data-tooltip": "Close Properties Panel" }, h("ls-icon", { name: "x", size: "1.25rem" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("ls-toolbar", { key: 'ca15ea5f5993d15aed4914001e1101876cc48ff7', id: "ls-toolbar", template: this._template, editor: this, groupInfo: this.groupInfo, mode: this.mode }), h("div", { key: '9fa2020d20f3c6458e3a35ecdfb39968478f3418', id: "ls-mid-area" }, h("div", { key: '3210f5fe54621a53029f12967beed5a05dd9542f', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, h("div", { key: '762ce80ecd562548ae072ce204a0914bb384d6d3', id: "ls-document-frame" }, h("canvas", { key: '269b6ad74b91a525c4bfd8801c12e1bb67a847b6', id: "pdf-canvas", class: this.displayTable || this.isLoading ? 'hidden' : '' }), h("ls-editor-table", { key: '4925af7fdb05e8a2b6610ba26e817a0342d0f88c', editor: this, class: this.displayTable ? '' : 'hidden' }), h("div", { key: '208592b96a91e7c6de17c9797d5d64a38385801b', id: "ls-box-selector" }))), h("ls-statusbar", { key: '03b7a93c26576b9a9ef8e7446f1c39f7ef3ea6c0', editor: this, page: this.pageNum, pageCount: this.pageCount })))), h("ls-tooltip", { key: '6bb3c0e2bdf005cb491ab71e7f0497a41a9ebc9f', id: "ls-tooltip-master" })));
|
|
40596
39943
|
}
|
|
40597
39944
|
static get watchers() { return {
|
|
40598
39945
|
"mode": ["modeHandler"],
|
|
40599
39946
|
"zoom": ["zoomChanged"]
|
|
40600
39947
|
}; }
|
|
40601
|
-
}
|
|
40602
|
-
|
|
39948
|
+
static get style() { return lsDocumentViewerCss(); }
|
|
39949
|
+
}, [769, "ls-document-viewer", {
|
|
39950
|
+
"template": [1],
|
|
39951
|
+
"token": [1],
|
|
39952
|
+
"userpool": [1],
|
|
39953
|
+
"endpoint": [1],
|
|
39954
|
+
"templateid": [1],
|
|
39955
|
+
"recipients": [1],
|
|
39956
|
+
"_recipients": [16],
|
|
39957
|
+
"zoom": [1026],
|
|
39958
|
+
"pageNum": [1026, "page-num"],
|
|
39959
|
+
"pageCount": [1026, "page-count"],
|
|
39960
|
+
"signer": [1026],
|
|
39961
|
+
"groupInfo": [1032, "group-info"],
|
|
39962
|
+
"mode": [1],
|
|
39963
|
+
"manager": [1025],
|
|
39964
|
+
"displayTable": [1028, "display-table"],
|
|
39965
|
+
"filtertoolbox": [1],
|
|
39966
|
+
"showstatusbar": [4],
|
|
39967
|
+
"showpagepreview": [4],
|
|
39968
|
+
"readonly": [4],
|
|
39969
|
+
"showtableview": [4],
|
|
39970
|
+
"toolboxFilter": [1, "toolbox-filter"],
|
|
39971
|
+
"_template": [32],
|
|
39972
|
+
"validationErrors": [32],
|
|
39973
|
+
"status": [32],
|
|
39974
|
+
"fontSize": [32],
|
|
39975
|
+
"fontFamily": [32],
|
|
39976
|
+
"selected": [32],
|
|
39977
|
+
"isLoading": [32],
|
|
39978
|
+
"fieldTypeSelected": [32],
|
|
39979
|
+
"pageNext": [64],
|
|
39980
|
+
"pagePrev": [64],
|
|
39981
|
+
"unselect": [64],
|
|
39982
|
+
"setZoom": [64]
|
|
39983
|
+
}, [[0, "mutate", "mutateHandler"], [0, "fieldTypeSelected", "handleFieldTypeSelected"], [0, "addParticipant", "addParticpantHandler"], [0, "changeSigner", "updateSigner"], [0, "selectFields", "selectFieldsHandler"], [0, "roleChange", "roleHandler"]], {
|
|
39984
|
+
"mode": ["modeHandler"],
|
|
39985
|
+
"zoom": ["zoomChanged"]
|
|
39986
|
+
}]);
|
|
39987
|
+
function defineCustomElement$1() {
|
|
39988
|
+
if (typeof customElements === "undefined") {
|
|
39989
|
+
return;
|
|
39990
|
+
}
|
|
39991
|
+
const components = ["ls-document-viewer", "ls-document-options", "ls-editor-field", "ls-editor-table", "ls-feature-column", "ls-field-alignment", "ls-field-content", "ls-field-dimensions", "ls-field-distribute", "ls-field-footer", "ls-field-format", "ls-field-placement", "ls-field-properties", "ls-field-properties-advanced", "ls-field-properties-autosign", "ls-field-properties-container", "ls-field-properties-date", "ls-field-properties-email", "ls-field-properties-file", "ls-field-properties-general", "ls-field-properties-image", "ls-field-properties-multiple", "ls-field-properties-number", "ls-field-properties-signature", "ls-field-properties-text", "ls-field-size", "ls-field-type-display", "ls-helper-bar", "ls-icon", "ls-input-wrapper", "ls-keyboard-shortcuts", "ls-page-loader", "ls-participant-card", "ls-participant-manager", "ls-participant-select", "ls-props-section", "ls-recipient-card", "ls-recipient-manager", "ls-statusbar", "ls-toggle", "ls-toolbar", "ls-toolbox-field", "ls-tooltip", "ls-validation-manager", "ls-validation-tag"];
|
|
39992
|
+
components.forEach(tagName => { switch (tagName) {
|
|
39993
|
+
case "ls-document-viewer":
|
|
39994
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
39995
|
+
customElements.define(transformTag(tagName), LsDocumentViewer$1);
|
|
39996
|
+
}
|
|
39997
|
+
break;
|
|
39998
|
+
case "ls-document-options":
|
|
39999
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40000
|
+
defineCustomElement$J();
|
|
40001
|
+
}
|
|
40002
|
+
break;
|
|
40003
|
+
case "ls-editor-field":
|
|
40004
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40005
|
+
defineCustomElement$I();
|
|
40006
|
+
}
|
|
40007
|
+
break;
|
|
40008
|
+
case "ls-editor-table":
|
|
40009
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40010
|
+
defineCustomElement$H();
|
|
40011
|
+
}
|
|
40012
|
+
break;
|
|
40013
|
+
case "ls-feature-column":
|
|
40014
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40015
|
+
defineCustomElement$G();
|
|
40016
|
+
}
|
|
40017
|
+
break;
|
|
40018
|
+
case "ls-field-alignment":
|
|
40019
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40020
|
+
defineCustomElement$F();
|
|
40021
|
+
}
|
|
40022
|
+
break;
|
|
40023
|
+
case "ls-field-content":
|
|
40024
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40025
|
+
defineCustomElement$E();
|
|
40026
|
+
}
|
|
40027
|
+
break;
|
|
40028
|
+
case "ls-field-dimensions":
|
|
40029
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40030
|
+
defineCustomElement$D();
|
|
40031
|
+
}
|
|
40032
|
+
break;
|
|
40033
|
+
case "ls-field-distribute":
|
|
40034
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40035
|
+
defineCustomElement$C();
|
|
40036
|
+
}
|
|
40037
|
+
break;
|
|
40038
|
+
case "ls-field-footer":
|
|
40039
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40040
|
+
defineCustomElement$B();
|
|
40041
|
+
}
|
|
40042
|
+
break;
|
|
40043
|
+
case "ls-field-format":
|
|
40044
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40045
|
+
defineCustomElement$A();
|
|
40046
|
+
}
|
|
40047
|
+
break;
|
|
40048
|
+
case "ls-field-placement":
|
|
40049
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40050
|
+
defineCustomElement$z();
|
|
40051
|
+
}
|
|
40052
|
+
break;
|
|
40053
|
+
case "ls-field-properties":
|
|
40054
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40055
|
+
defineCustomElement$y();
|
|
40056
|
+
}
|
|
40057
|
+
break;
|
|
40058
|
+
case "ls-field-properties-advanced":
|
|
40059
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40060
|
+
defineCustomElement$x();
|
|
40061
|
+
}
|
|
40062
|
+
break;
|
|
40063
|
+
case "ls-field-properties-autosign":
|
|
40064
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40065
|
+
defineCustomElement$w();
|
|
40066
|
+
}
|
|
40067
|
+
break;
|
|
40068
|
+
case "ls-field-properties-container":
|
|
40069
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40070
|
+
defineCustomElement$v();
|
|
40071
|
+
}
|
|
40072
|
+
break;
|
|
40073
|
+
case "ls-field-properties-date":
|
|
40074
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40075
|
+
defineCustomElement$u();
|
|
40076
|
+
}
|
|
40077
|
+
break;
|
|
40078
|
+
case "ls-field-properties-email":
|
|
40079
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40080
|
+
defineCustomElement$t();
|
|
40081
|
+
}
|
|
40082
|
+
break;
|
|
40083
|
+
case "ls-field-properties-file":
|
|
40084
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40085
|
+
defineCustomElement$s();
|
|
40086
|
+
}
|
|
40087
|
+
break;
|
|
40088
|
+
case "ls-field-properties-general":
|
|
40089
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40090
|
+
defineCustomElement$r();
|
|
40091
|
+
}
|
|
40092
|
+
break;
|
|
40093
|
+
case "ls-field-properties-image":
|
|
40094
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40095
|
+
defineCustomElement$q();
|
|
40096
|
+
}
|
|
40097
|
+
break;
|
|
40098
|
+
case "ls-field-properties-multiple":
|
|
40099
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40100
|
+
defineCustomElement$p();
|
|
40101
|
+
}
|
|
40102
|
+
break;
|
|
40103
|
+
case "ls-field-properties-number":
|
|
40104
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40105
|
+
defineCustomElement$o();
|
|
40106
|
+
}
|
|
40107
|
+
break;
|
|
40108
|
+
case "ls-field-properties-signature":
|
|
40109
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40110
|
+
defineCustomElement$n();
|
|
40111
|
+
}
|
|
40112
|
+
break;
|
|
40113
|
+
case "ls-field-properties-text":
|
|
40114
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40115
|
+
defineCustomElement$m();
|
|
40116
|
+
}
|
|
40117
|
+
break;
|
|
40118
|
+
case "ls-field-size":
|
|
40119
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40120
|
+
defineCustomElement$l();
|
|
40121
|
+
}
|
|
40122
|
+
break;
|
|
40123
|
+
case "ls-field-type-display":
|
|
40124
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40125
|
+
defineCustomElement$k();
|
|
40126
|
+
}
|
|
40127
|
+
break;
|
|
40128
|
+
case "ls-helper-bar":
|
|
40129
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40130
|
+
defineCustomElement$j();
|
|
40131
|
+
}
|
|
40132
|
+
break;
|
|
40133
|
+
case "ls-icon":
|
|
40134
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40135
|
+
defineCustomElement$i();
|
|
40136
|
+
}
|
|
40137
|
+
break;
|
|
40138
|
+
case "ls-input-wrapper":
|
|
40139
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40140
|
+
defineCustomElement$h();
|
|
40141
|
+
}
|
|
40142
|
+
break;
|
|
40143
|
+
case "ls-keyboard-shortcuts":
|
|
40144
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40145
|
+
defineCustomElement$g();
|
|
40146
|
+
}
|
|
40147
|
+
break;
|
|
40148
|
+
case "ls-page-loader":
|
|
40149
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40150
|
+
defineCustomElement$f();
|
|
40151
|
+
}
|
|
40152
|
+
break;
|
|
40153
|
+
case "ls-participant-card":
|
|
40154
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40155
|
+
defineCustomElement$e();
|
|
40156
|
+
}
|
|
40157
|
+
break;
|
|
40158
|
+
case "ls-participant-manager":
|
|
40159
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40160
|
+
defineCustomElement$d();
|
|
40161
|
+
}
|
|
40162
|
+
break;
|
|
40163
|
+
case "ls-participant-select":
|
|
40164
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40165
|
+
defineCustomElement$c();
|
|
40166
|
+
}
|
|
40167
|
+
break;
|
|
40168
|
+
case "ls-props-section":
|
|
40169
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40170
|
+
defineCustomElement$b();
|
|
40171
|
+
}
|
|
40172
|
+
break;
|
|
40173
|
+
case "ls-recipient-card":
|
|
40174
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40175
|
+
defineCustomElement$a();
|
|
40176
|
+
}
|
|
40177
|
+
break;
|
|
40178
|
+
case "ls-recipient-manager":
|
|
40179
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40180
|
+
defineCustomElement$9();
|
|
40181
|
+
}
|
|
40182
|
+
break;
|
|
40183
|
+
case "ls-statusbar":
|
|
40184
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40185
|
+
defineCustomElement$8();
|
|
40186
|
+
}
|
|
40187
|
+
break;
|
|
40188
|
+
case "ls-toggle":
|
|
40189
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40190
|
+
defineCustomElement$7();
|
|
40191
|
+
}
|
|
40192
|
+
break;
|
|
40193
|
+
case "ls-toolbar":
|
|
40194
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40195
|
+
defineCustomElement$6();
|
|
40196
|
+
}
|
|
40197
|
+
break;
|
|
40198
|
+
case "ls-toolbox-field":
|
|
40199
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40200
|
+
defineCustomElement$5();
|
|
40201
|
+
}
|
|
40202
|
+
break;
|
|
40203
|
+
case "ls-tooltip":
|
|
40204
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40205
|
+
defineCustomElement$4();
|
|
40206
|
+
}
|
|
40207
|
+
break;
|
|
40208
|
+
case "ls-validation-manager":
|
|
40209
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40210
|
+
defineCustomElement$3();
|
|
40211
|
+
}
|
|
40212
|
+
break;
|
|
40213
|
+
case "ls-validation-tag":
|
|
40214
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
40215
|
+
defineCustomElement$2();
|
|
40216
|
+
}
|
|
40217
|
+
break;
|
|
40218
|
+
} });
|
|
40219
|
+
}
|
|
40220
|
+
defineCustomElement$1();
|
|
40221
|
+
|
|
40222
|
+
const LsDocumentViewer = LsDocumentViewer$1;
|
|
40223
|
+
const defineCustomElement = defineCustomElement$1;
|
|
40224
|
+
|
|
40225
|
+
export { LsDocumentViewer, defineCustomElement };
|
|
40226
|
+
//# sourceMappingURL=ls-document-viewer.js.map
|
|
40603
40227
|
|
|
40604
|
-
|
|
40605
|
-
//# sourceMappingURL=ls-document-viewer.entry.esm.js.map
|
|
40228
|
+
//# sourceMappingURL=ls-document-viewer.js.map
|